You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__tasks__index.8ef49fe0.as...

552 lines
2.8 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[298,3,5,6,7,8,9,15,20,141],{"+Axu":function(j,W,y){},"+NIl":function(j,W,y){(function(I){I(y("VrN/"))})(function(I){"use strict";I.defineMode("stex",function(v,T){"use strict";function b(i,t){i.cmdState.push(t)}function g(i){return i.cmdState.length>0?i.cmdState[i.cmdState.length-1]:null}function s(i){var t=i.cmdState.pop();t&&t.closeBracket()}function _(i){for(var t=i.cmdState,o=t.length-1;o>=0;o--){var c=t[o];if(c.name=="DEFAULT")continue;return c}return{styleIdentifier:function(){return null}}}function p(i,t,o){return function(){this.name=i,this.bracketNo=0,this.style=t,this.styles=o,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var e={};e.importmodule=p("importmodule","tag",["string","builtin"]),e.documentclass=p("documentclass","tag",["","atom"]),e.usepackage=p("usepackage","tag",["atom"]),e.begin=p("begin","tag",["atom"]),e.end=p("end","tag",["atom"]),e.label=p("label","tag",["atom"]),e.ref=p("ref","tag",["atom"]),e.eqref=p("eqref","tag",["atom"]),e.cite=p("cite","tag",["atom"]),e.bibitem=p("bibitem","tag",["atom"]),e.Bibitem=p("Bibitem","tag",["atom"]),e.RBibitem=p("RBibitem","tag",["atom"]),e.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function a(i,t){i.f=t}function n(i,t){var o;if(i.match(/^\\[a-zA-Z@]+/)){var c=i.current().slice(1);return o=e.hasOwnProperty(c)?e[c]:e.DEFAULT,o=new o,b(t,o),a(t,r),o.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return a(t,function(f,h){return l(f,h,"\\]")}),"keyword";if(i.match("\\("))return a(t,function(f,h){return l(f,h,"\\)")}),"keyword";if(i.match("$$"))return a(t,function(f,h){return l(f,h,"$$")}),"keyword";if(i.match("$"))return a(t,function(f,h){return l(f,h,"$")}),"keyword";var d=i.next();if(d=="%")return i.skipToEnd(),"comment";if(d=="}"||d=="]"){if(o=g(t),o)o.closeBracket(d),a(t,r);else return"error";return"bracket"}else return d=="{"||d=="["?(o=e.DEFAULT,o=new o,b(t,o),"bracket"):/\d/.test(d)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),o=_(t),o.name=="begin"&&(o.argument=i.current()),o.styleIdentifier())}function l(i,t,o){if(i.eatSpace())return null;if(o&&i.match(o))return a(t,n),"keyword";if(i.match(/^\\[a-zA-Z@]+/))return"tag";if(i.match(/^[a-zA-Z]+/))return"variable-2";if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/]/))return"tag";if(i.match(/^[\^_&]/))return"tag";if(i.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(i.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var c=i.next();return c=="{"||c=="}"||c=="["||c=="]"||c=="("||c==")"?"bracket":c=="%"?(i.skipToEnd(),"comment"):"error"}function r(i,t){var o=i.peek(),c;return o=="{"||o=="["?(c=g(t),c.openBracket(o),i.eat(o),a(t,n),"bracket"):/[ \t\r]/.test(o)?(i.eat(o),null):(a(t,n),s(t),n(i,t))}return{startState:function(){var i=T.inMathMode?function(t,o){return l(t,o)}:n;return{cmdState:[],f:i}},copyState:function(i){return{cmdState:i.cmdState.slice(),f:i.f}},token:function(i,t){return t.f(i,t)},blankLine:function(i){i.f=n,i.cmdState.length=0},lineComment:"%"}}),I.defineMIME("text/x-stex","stex"),I.defineMIME("text/x-latex","stex")})},"+QRC":function(j,W,y){"use strict";var I=y("E9nw"),v={"text/plain":"Text","text/html":"Url",default:"Text"},T="Copy to clipboard: #{key}, Enter";function b(s){var _=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,_)}function g(s,_){var p,e,a,n,l,r,i=!1;_||(_={}),p=_.debug||!1;try{a=I(),n=document.createRange(),l=document.getSelection(),r=document.createElement("span"),r.textContent=s,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(o){if(o.stopPropagation(),_.format)if(o.preventDefault(),typeof o.clipboardData=="undefined"){p&&console.warn("unable to use e.clipboardData"),p&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var c=v[_.format]||v.default;window.clipboardData.setData(c,s)}else o.clipboardData.clearData(),o.clipboardData.setData(_.format,s);_.onCopy&&(o.preventDefault(),_.onCopy(o.clipboardData))}),document.body.appendChild(r),n.selectNodeContents(r),l.addRange(n);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");i=!0}catch(o){p&&console.error("unable to copy using execCommand: ",o),p&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(_.format||"text",s),_.onCopy&&_.onCopy(window.clipboardData),i=!0}catch(c){p&&console.error("unable to copy using clipboardData: ",c),p&&console.error("falling back to prompt"),e=b("message"in _?_.message:T),window.prompt(e,s)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(n):l.removeAllRanges()),r&&document.body.removeChild(r),a()}return i}j.exports=g},"+ua5":function(j,W,y){},"/GNS":function(j,W,y){j.exports=y.p+"static/search1.c4136dd4.png"},"/POA":function(j,W,y){!function(I,v){if(!0)j.exports=v();else var T,b}(window,function(){return function(I){var v={};function T(b){if(v[b])return v[b].exports;var g=v[b]={i:b,l:!1,exports:{}};return I[b].call(g.exports,g,g.exports,T),g.l=!0,g.exports}return T.m=I,T.c=v,T.d=function(b,g,s){T.o(b,g)||Object.defineProperty(b,g,{enumerable:!0,get:s})},T.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},T.t=function(b,g){if(1&g&&(b=T(b)),8&g)return b;if(4&g&&typeof b=="object"&&b&&b.__esModule)return b;var s=Object.create(null);if(T.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:b}),2&g&&typeof b!="string")for(var _ in b)T.d(s,_,function(p){return b[p]}.bind(null,_));return s},T.n=function(b){var g=b&&b.__esModule?function(){return b.default}:function(){return b};return T.d(g,"a",g),g},T.o=function(b,g){return Object.prototype.hasOwnProperty.call(b,g)},T.p="",T(T.s=34)}([function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.forwardEvent=v.EventEmitter=void 0;var b=function(){function g(){this._listeners=[],this._disposed=!1}return Object.defineProperty(g.prototype,"event",{get:function(){var s=this;return this._event||(this._event=function(_){return s._listeners.push(_),{dispose:function(){if(!s._disposed){for(var p=0;p<s._listeners.length;p++)if(s._listeners[p]===_)return void s._listeners.splice(p,1)}}}}),this._event},enumerable:!1,configurable:!0}),g.prototype.fire=function(s,_){for(var p=[],e=0;e<this._listeners.length;e++)p.push(this._listeners[e]);for(e=0;e<p.length;e++)p[e].call(void 0,s,_)},g.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},g}();v.EventEmitter=b,v.forwardEvent=function(g,s){return g(function(_){return s.fire(_)})}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.IUnicodeService=v.IOptionsService=v.ILogService=v.IInstantiationService=v.IDirtyRowService=v.ICharsetService=v.ICoreService=v.ICoreMouseService=v.IBufferService=void 0;var b=T(14);v.IBufferService=b.createDecorator("BufferService"),v.ICoreMouseService=b.createDecorator("CoreMouseService"),v.ICoreService=b.createDecorator("CoreService"),v.ICharsetService=b.createDecorator("CharsetService"),v.IDirtyRowService=b.createDecorator("DirtyRowService"),v.IInstantiationService=b.createDecorator("InstantiationService"),v.ILogService=b.createDecorator("LogService"),v.IOptionsService=b.createDecorator("OptionsService"),v.IUnicodeService=b.createDecorator("UnicodeService")},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.getDisposeArrayDisposable=v.disposeArray=v.Disposable=void 0;var b=function(){function s(){this._disposables=[],this._isDisposed=!1}return s.prototype.dispose=function(){this._isDisposed=!0;for(var _=0,p=this._disposables;_<p.length;_++)p[_].dispose();this._disposables.length=0},s.prototype.register=function(_){return this._disposables.push(_),_},s.prototype.unregister=function(_){var p=this._disposables.indexOf(_);p!==-1&&this._disposables.splice(p,1)},s}();function g(s){for(var _=0,p=s;_<p.length;_++)p[_].dispose();s.length=0}v.Disposable=b,v.disposeArray=g,v.getDisposeArrayDisposable=function(s){return{dispose:function(){return g(s)}}}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.WHITESPACE_CELL_CODE=v.WHITESPACE_CELL_WIDTH=v.WHITESPACE_CELL_CHAR=v.NULL_CELL_CODE=v.NULL_CELL_WIDTH=v.NULL_CELL_CHAR=v.CHAR_DATA_CODE_INDEX=v.CHAR_DATA_WIDTH_INDEX=v.CHAR_DATA_CHAR_INDEX=v.CHAR_DATA_ATTR_INDEX=v.DEFAULT_ATTR=v.DEFAULT_COLOR=void 0,v.DEFAULT_COLOR=256,v.DEFAULT_ATTR=256|v.DEFAULT_COLOR<<9,v.CHAR_DATA_ATTR_INDEX=0,v.CHAR_DATA_CHAR_INDEX=1,v.CHAR_DATA_WIDTH_INDEX=2,v.CHAR_DATA_CODE_INDEX=3,v.NULL_CELL_CHAR="",v.NULL_CELL_WIDTH=1,v.NULL_CELL_CODE=0,v.WHITESPACE_CELL_CHAR=" ",v.WHITESPACE_CELL_WIDTH=1,v.WHITESPACE_CELL_CODE=32},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(a,n){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var i in r)r.hasOwnProperty(i)&&(l[i]=r[i])})(a,n)},function(a,n){function l(){this.constructor=a}b(a,n),a.prototype=n===null?Object.create(n):(l.prototype=n.prototype,new l)});Object.defineProperty(v,"__esModule",{value:!0}),v.CellData=void 0;var s=T(8),_=T(3),p=T(6),e=function(a){function n(){var l=a!==null&&a.apply(this,arguments)||this;return l.content=0,l.fg=0,l.bg=0,l.extended=new p.ExtendedAttrs,l.combinedData="",l}return g(n,a),n.fromCharData=function(l){var r=new n;return r.setFromCharData(l),r},n.prototype.isCombined=function(){return 2097152&this.content},n.prototype.getWidth=function(){return this.content>>22},n.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?s.stringFromCodePoint(2097151&this.content):""},n.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},n.prototype.setFromCharData=function(l){this.fg=l[_.CHAR_DATA_ATTR_INDEX],this.bg=0;var r=!1;if(l[_.CHAR_DATA_CHAR_INDEX].length>2)r=!0;else if(l[_.CHAR_DATA_CHAR_INDEX].length===2){var i=l[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){var t=l[_.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(i-55296)+t-56320+65536|l[_.CHAR_DATA_WIDTH_INDEX]<<22:r=!0}else r=!0}else this.content=l[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|l[_.CHAR_DATA_WIDTH_INDEX]<<22;r&&(this.combinedData=l[_.CHAR_DATA_CHAR_INDEX],this.content=2097152|l[_.CHAR_DATA_WIDTH_INDEX]<<22)},n.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},n}(p.AttributeData);v.CellData=e},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.ISoundService=v.ISelectionService=v.IRenderService=v.IMouseService=v.ICoreBrowserService=v.ICharSizeService=void 0;var b=T(14);v.ICharSizeService=b.createDecorator("CharSizeService"),v.ICoreBrowserService=b.createDecorator("CoreBrowserService"),v.IMouseService=b.createDecorator("MouseService"),v.IRenderService=b.createDecorator("RenderService"),v.ISelectionService=b.createDecorator("SelectionService"),v.ISoundService=b.createDecorator("SoundService")},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.ExtendedAttrs=v.AttributeData=void 0;var b=function(){function s(){this.fg=0,this.bg=0,this.extended=new g}return s.toColorRGB=function(_){return[_>>>16&255,_>>>8&255,255&_]},s.fromColorRGB=function(_){return(255&_[0])<<16|(255&_[1])<<8|255&_[2]},s.prototype.clone=function(){var _=new s;return _.fg=this.fg,_.bg=this.bg,_.extended=this.extended.clone(),_},s.prototype.isInverse=function(){return 67108864&this.fg},s.prototype.isBold=function(){return 134217728&this.fg},s.prototype.isUnderline=function(){return 268435456&this.fg},s.prototype.isBlink=function(){return 536870912&this.fg},s.prototype.isInvisible=function(){return 1073741824&this.fg},s.prototype.isItalic=function(){return 67108864&this.bg},s.prototype.isDim=function(){return 134217728&this.bg},s.prototype.getFgColorMode=function(){return 50331648&this.fg},s.prototype.getBgColorMode=function(){return 50331648&this.bg},s.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},s.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},s.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},s.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},s.prototype.isFgDefault=function(){return(50331648&this.fg)==0},s.prototype.isBgDefault=function(){return(50331648&this.bg)==0},s.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},s.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},s.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},s.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},s.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},s.prototype.getUnderlineColor=function(){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()},s.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},s.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},s.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},s.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},s.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},s}();v.AttributeData=b;var g=function(){function s(_,p){_===void 0&&(_=0),p===void 0&&(p=-1),this.underlineStyle=_,this.underlineColor=p}return s.prototype.clone=function(){return new s(this.underlineStyle,this.underlineColor)},s.prototype.isEmpty=function(){return this.underlineStyle===0},s}();v.ExtendedAttrs=g},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.addDisposableDomListener=void 0,v.addDisposableDomListener=function(b,g,s,_){b.addEventListener(g,s,_);var p=!1;return{dispose:function(){p||(p=!0,b.removeEventListener(g,s,_))}}}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.Utf8ToUtf32=v.StringToUtf32=v.utf32ToString=v.stringFromCodePoint=void 0,v.stringFromCodePoint=function(s){return s>65535?(s-=65536,String.fromCharCode(55296+(s>>10))+String.fromCharCode(s%1024+56320)):String.fromCharCode(s)},v.utf32ToString=function(s,_,p){_===void 0&&(_=0),p===void 0&&(p=s.length);for(var e="",a=_;a<p;++a){var n=s[a];n>65535?(n-=65536,e+=String.fromCharCode(55296+(n>>10))+String.fromCharCode(n%1024+56320)):e+=String.fromCharCode(n)}return e};var b=function(){function s(){this._interim=0}return s.prototype.clear=function(){this._interim=0},s.prototype.decode=function(_,p){var e=_.length;if(!e)return 0;var a=0,n=0;this._interim&&(56320<=(i=_.charCodeAt(n++))&&i<=57343?p[a++]=1024*(this._interim-55296)+i-56320+65536:(p[a++]=this._interim,p[a++]=i),this._interim=0);for(var l=n;l<e;++l){var r=_.charCodeAt(l);if(55296<=r&&r<=56319){if(++l>=e)return this._interim=r,a;var i;56320<=(i=_.charCodeAt(l))&&i<=57343?p[a++]=1024*(r-55296)+i-56320+65536:(p[a++]=r,p[a++]=i)}else p[a++]=r}return a},s}();v.StringToUtf32=b;var g=function(){function s(){this.interim=new Uint8Array(3)}return s.prototype.clear=function(){this.interim.fill(0)},s.prototype.decode=function(_,p){var e=_.length;if(!e)return 0;var a,n,l,r,i=0,t=0,o=0;if(this.interim[0]){var c=!1,d=this.interim[0];d&=(224&d)==192?31:(240&d)==224?15:7;for(var f=0,h=void 0;(h=63&this.interim[++f])&&f<4;)d<<=6,d|=h;for(var u=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,E=u-f;o<E;){if(o>=e)return 0;if((192&(h=_[o++]))!=128){o--,c=!0;break}this.interim[f++]=h,d<<=6,d|=63&h}c||(u===2?d<128?o--:p[i++]=d:u===3?d<2048||d>=55296&&d<=57343||(p[i++]=d):d<65536||d>1114111||(p[i++]=d)),this.interim.fill(0)}for(var x=e-4,O=o;O<e;){for(;!(!(O<x)||128&(a=_[O])||128&(n=_[O+1])||128&(l=_[O+2])||128&(r=_[O+3]));)p[i++]=a,p[i++]=n,p[i++]=l,p[i++]=r,O+=4;if((a=_[O++])<128)p[i++]=a;else if((224&a)==192){if(O>=e)return this.interim[0]=a,i;if((192&(n=_[O++]))!=128){O--;continue}if((t=(31&a)<<6|63&n)<128){O--;continue}p[i++]=t}else if((240&a)==224){if(O>=e)return this.interim[0]=a,i;if((192&(n=_[O++]))!=128){O--;continue}if(O>=e)return this.interim[0]=a,this.interim[1]=n,i;if((192&(l=_[O++]))!=128){O--;continue}if((t=(15&a)<<12|(63&n)<<6|63&l)<2048||t>=55296&&t<=57343)continue;p[i++]=t}else if((248&a)==240){if(O>=e)return this.interim[0]=a,i;if((192&(n=_[O++]))!=128){O--;continue}if(O>=e)return this.interim[0]=a,this.interim[1]=n,i;if((192&(l=_[O++]))!=128){O--;continue}if(O>=e)return this.interim[0]=a,this.interim[1]=n,this.interim[2]=l,i;if((192&(r=_[O++]))!=128){O--;continue}if((t=(7&a)<<18|(63&n)<<12|(63&l)<<6|63&r)<65536||t>1114111)continue;p[i++]=t}}return i},s}();v.Utf8ToUtf32=g},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.CHAR_ATLAS_CELL_SPACING=v.DIM_OPACITY=v.INVERTED_DEFAULT_COLOR=void 0,v.INVERTED_DEFAULT_COLOR=257,v.DIM_OPACITY=.5,v.CHAR_ATLAS_CELL_SPACING=1},function(I,v,T){"use strict";var b,g,s,_;function p(a){var n=a.toString(16);return n.length<2?"0"+n:n}function e(a,n){return a<n?(n+.05)/(a+.05):(a+.05)/(n+.05)}Object.defineProperty(v,"__esModule",{value:!0}),v.contrastRatio=v.toPaddedHex=v.rgba=v.rgb=v.css=v.color=v.channels=void 0,function(a){a.toCss=function(n,l,r,i){return i!==void 0?"#"+p(n)+p(l)+p(r)+p(i):"#"+p(n)+p(l)+p(r)},a.toRgba=function(n,l,r,i){return i===void 0&&(i=255),(n<<24|l<<16|r<<8|i)>>>0}}(b=v.channels||(v.channels={})),(g=v.color||(v.color={})).blend=function(a,n){var l=(255&n.rgba)/255;if(l===1)return{css:n.css,rgba:n.rgba};var r=n.rgba>>24&255,i=n.rgba>>16&255,t=n.rgba>>8&255,o=a.rgba>>24&255,c=a.rgba>>16&255,d=a.rgba>>8&255,f=o+Math.round((r-o)*l),h=c+Math.round((i-c)*l),u=d+Math.round((t-d)*l);return{css:b.toCss(f,h,u),rgba:b.toRgba(f,h,u)}},g.isOpaque=function(a){return(255&a.rgba)==255},g.ensureContrastRatio=function(a,n,l){var r=_.ensureContrastRatio(a.rgba,n.rgba,l);if(r)return _.toColor(r>>24&255,r>>16&255,r>>8&255)},g.opaque=function(a){var n=(255|a.rgba)>>>0,l=_.toChannels(n),r=l[0],i=l[1],t=l[2];return{css:b.toCss(r,i,t),rgba:n}},g.opacity=function(a,n){var l=Math.round(255*n),r=_.toChannels(a.rgba),i=r[0],t=r[1],o=r[2];return{css:b.toCss(i,t,o,l),rgba:b.toRgba(i,t,o,l)}},(v.css||(v.css={})).toColor=function(a){switch(a.length){case 7:return{css:a,rgba:(parseInt(a.slice(1),16)<<8|255)>>>0};case 9:return{css:a,rgba:parseInt(a.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(a){function n(l,r,i){var t=l/255,o=r/255,c=i/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}a.relativeLuminance=function(l){return n(l>>16&255,l>>8&255,255&l)},a.relativeLuminance2=n}(s=v.rgb||(v.rgb={})),function(a){function n(r,i,t){for(var o=r>>24&255,c=r>>16&255,d=r>>8&255,f=i>>24&255,h=i>>16&255,u=i>>8&255,E=e(s.relativeLuminance2(f,u,h),s.relativeLuminance2(o,c,d));E<t&&(f>0||h>0||u>0);)f-=Math.max(0,Math.ceil(.1*f)),h-=Math.max(0,Math.ceil(.1*h)),u-=Math.max(0,Math.ceil(.1*u)),E=e(s.relativeLuminance2(f,u,h),s.relativeLuminance2(o,c,d));return(f<<24|h<<16|u<<8|255)>>>0}function l(r,i,t){for(var o=r>>24&255,c=r>>16&255,d=r>>8&255,f=i>>24&255,h=i>>16&255,u=i>>8&255,E=e(s.relativeLuminance2(f,u,h),s.relativeLuminance2(o,c,d));E<t&&(f<255||h<255||u<255);)f=Math.min(255,f+Math.ceil(.1*(255-f))),h=Math.min(255,h+Math.ceil(.1*(255-h))),u=Math.min(255,u+Math.ceil(.1*(255-u))),E=e(s.relativeLuminance2(f,u,h),s.relativeLuminance2(o,c,d));return(f<<24|h<<16|u<<8|255)>>>0}a.ensureContrastRatio=function(r,i,t){var o=s.relativeLuminance(r>>8),c=s.relativeLuminance(i>>8);if(e(o,c)<t)return c<o?n(r,i,t):l(r,i,t)},a.reduceLuminance=n,a.increaseLuminance=l,a.toChannels=function(r){return[r>>24&255,r>>16&255,r>>8&255,255&r]},a.toColor=function(r,i,t){return{css:b.toCss(r,i,t),rgba:b.toRgba(r,i,t)}}}(_=v.rgba||(v.rgba={})),v.toPaddedHex=p,v.contrastRatio=e},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isLinux=v.isWindows=v.isIphone=v.isIpad=v.isMac=v.isSafari=v.isFirefox=void 0;var b=typeof navigator=="undefined",g=b?"node":navigator.userAgent,s=b?"node":navigator.platform;function _(p,e){return p.indexOf(e)>=0}v.isFirefox=!!~g.indexOf("Firefox"),v.isSafari=/^((?!chrome|android).)*safari/i.test(g),v.isMac=_(["Macintosh","MacIntel","MacPPC","Mac68K"],s),v.isIpad=s==="iPad",v.isIphone=s==="iPhone",v.isWindows=_(["Windows","Win16","Win32","WinCE"],s),v.isLinux=s.indexOf("Linux")>=0},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.C1=v.C0=void 0,function(b){b.NUL="\0",b.SOH="",b.STX="",b.ETX="",b.EOT="",b.ENQ="",b.ACK="",b.BEL="\x07",b.BS="\b",b.HT=" ",b.LF=`
`,b.VT="\v",b.FF="\f",b.CR="\r",b.SO="",b.SI="",b.DLE="",b.DC1="",b.DC2="",b.DC3="",b.DC4="",b.NAK="",b.SYN="",b.ETB="",b.CAN="",b.EM="",b.SUB="",b.ESC="",b.FS="",b.GS="",b.RS="",b.US="",b.SP=" ",b.DEL="\x7F"}(v.C0||(v.C0={})),function(b){b.PAD="\x80",b.HOP="\x81",b.BPH="\x82",b.NBH="\x83",b.IND="\x84",b.NEL="\x85",b.SSA="\x86",b.ESA="\x87",b.HTS="\x88",b.HTJ="\x89",b.VTS="\x8A",b.PLD="\x8B",b.PLU="\x8C",b.RI="\x8D",b.SS2="\x8E",b.SS3="\x8F",b.DCS="\x90",b.PU1="\x91",b.PU2="\x92",b.STS="\x93",b.CCH="\x94",b.MW="\x95",b.SPA="\x96",b.EPA="\x97",b.SOS="\x98",b.SGCI="\x99",b.SCI="\x9A",b.CSI="\x9B",b.ST="\x9C",b.OSC="\x9D",b.PM="\x9E",b.APC="\x9F"}(v.C1||(v.C1={}))},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.BaseRenderLayer=void 0;var b=T(3),g=T(9),s=T(25),_=T(6),p=T(28),e=T(10),a=T(17),n=function(){function l(r,i,t,o,c,d,f,h){this._container=r,this._alpha=o,this._colors=c,this._rendererId=d,this._bufferService=f,this._optionsService=h,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+i+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return l.prototype.dispose=function(){var r;a.removeElementFromParent(this._canvas),(r=this._charAtlas)===null||r===void 0||r.dispose()},l.prototype._initCanvas=function(){this._ctx=p.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},l.prototype.onOptionsChanged=function(){},l.prototype.onBlur=function(){},l.prototype.onFocus=function(){},l.prototype.onCursorMove=function(){},l.prototype.onGridChanged=function(r,i){},l.prototype.onSelectionChanged=function(r,i,t){t===void 0&&(t=!1)},l.prototype.setColors=function(r){this._refreshCharAtlas(r)},l.prototype._setTransparency=function(r){if(r!==this._alpha){var i=this._canvas;this._alpha=r,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,i),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},l.prototype._refreshCharAtlas=function(r){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=s.acquireCharAtlas(this._optionsService.options,this._rendererId,r,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},l.prototype.resize=function(r){this._scaledCellWidth=r.scaledCellWidth,this._scaledCellHeight=r.scaledCellHeight,this._scaledCharWidth=r.scaledCharWidth,this._scaledCharHeight=r.scaledCharHeight,this._scaledCharLeft=r.scaledCharLeft,this._scaledCharTop=r.scaledCharTop,this._canvas.width=r.scaledCanvasWidth,this._canvas.height=r.scaledCanvasHeight,this._canvas.style.width=r.canvasWidth+"px",this._canvas.style.height=r.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},l.prototype._fillCells=function(r,i,t,o){this._ctx.fillRect(r*this._scaledCellWidth,i*this._scaledCellHeight,t*this._scaledCellWidth,o*this._scaledCellHeight)},l.prototype._fillBottomLineAtCells=function(r,i,t){t===void 0&&(t=1),this._ctx.fillRect(r*this._scaledCellWidth,(i+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},l.prototype._fillLeftLineAtCell=function(r,i,t){this._ctx.fillRect(r*this._scaledCellWidth,i*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},l.prototype._strokeRectAtCell=function(r,i,t,o){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(r*this._scaledCellWidth+window.devicePixelRatio/2,i*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,o*this._scaledCellHeight-window.devicePixelRatio)},l.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},l.prototype._clearCells=function(r,i,t,o){this._alpha?this._ctx.clearRect(r*this._scaledCellWidth,i*this._scaledCellHeight,t*this._scaledCellWidth,o*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(r*this._scaledCellWidth,i*this._scaledCellHeight,t*this._scaledCellWidth,o*this._scaledCellHeight))},l.prototype._fillCharTrueColor=function(r,i,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(r.getChars(),i*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},l.prototype._drawChars=function(r,i,t){var o,c,d=this._getContrastColor(r);d||r.isFgRGB()||r.isBgRGB()?this._drawUncachedChars(r,i,t,d):(r.isInverse()?(o=r.isBgDefault()?g.INVERTED_DEFAULT_COLOR:r.getBgColor(),c=r.isFgDefault()?g.INVERTED_DEFAULT_COLOR:r.getFgColor()):(c=r.isBgDefault()?b.DEFAULT_COLOR:r.getBgColor(),o=r.isFgDefault()?b.DEFAULT_COLOR:r.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=r.getChars()||b.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=r.getCode()||b.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=o,this._currentGlyphIdentifier.bold=!!r.isBold(),this._currentGlyphIdentifier.dim=!!r.isDim(),this._currentGlyphIdentifier.italic=!!r.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,i*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(r,i,t))},l.prototype._drawUncachedChars=function(r,i,t,o){if(this._ctx.save(),this._ctx.font=this._getFont(!!r.isBold(),!!r.isItalic()),this._ctx.textBaseline="middle",r.isInverse())if(o)this._ctx.fillStyle=o.css;else if(r.isBgDefault())this._ctx.fillStyle=e.color.opaque(this._colors.background).css;else if(r.isBgRGB())this._ctx.fillStyle="rgb("+_.AttributeData.toColorRGB(r.getBgColor()).join(",")+")";else{var c=r.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&c<8&&(c+=8),this._ctx.fillStyle=this._colors.ansi[c].css}else if(o)this._ctx.fillStyle=o.css;else if(r.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(r.isFgRGB())this._ctx.fillStyle="rgb("+_.AttributeData.toColorRGB(r.getFgColor()).join(",")+")";else{var d=r.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&d<8&&(d+=8),this._ctx.fillStyle=this._colors.ansi[d].css}this._clipRow(t),r.isDim()&&(this._ctx.globalAlpha=g.DIM_OPACITY),this._ctx.fillText(r.getChars(),i*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},l.prototype._clipRow=function(r){this._ctx.beginPath(),this._ctx.rect(0,r*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},l.prototype._getFont=function(r,i){return(i?"italic":"")+" "+(r?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},l.prototype._getContrastColor=function(r){if(this._optionsService.options.minimumContrastRatio!==1){var i=this._colors.contrastCache.getColor(r.bg,r.fg);if(i!==void 0)return i||void 0;var t=r.getFgColor(),o=r.getFgColorMode(),c=r.getBgColor(),d=r.getBgColorMode(),f=!!r.isInverse(),h=!!r.isInverse();if(f){var u=t;t=c,c=u;var E=o;o=d,d=E}var x=this._resolveBackgroundRgba(d,c,f),O=this._resolveForegroundRgba(o,t,f,h),C=e.rgba.ensureContrastRatio(x,O,this._optionsService.options.minimumContrastRatio);if(C){var w={css:e.channels.toCss(C>>24&255,C>>16&255,C>>8&255),rgba:C};return this._colors.contrastCache.setColor(r.bg,r.fg,w),w}this._colors.contrastCache.setColor(r.bg,r.fg,null)}},l.prototype._resolveBackgroundRgba=function(r,i,t){switch(r){case 16777216:case 33554432:return this._colors.ansi[i].rgba;case 50331648:return i<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},l.prototype._resolveForegroundRgba=function(r,i,t,o){switch(r){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&o&&i<8&&(i+=8),this._colors.ansi[i].rgba;case 50331648:return i<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},l}();v.BaseRenderLayer=n},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.createDecorator=v.getServiceDependencies=v.serviceRegistry=void 0;function b(g,s,_){s.di$target===s?s.di$dependencies.push({id:g,index:_}):(s.di$dependencies=[{id:g,index:_}],s.di$target=s)}v.serviceRegistry=new Map,v.getServiceDependencies=function(g){return g.di$dependencies||[]},v.createDecorator=function(g){if(v.serviceRegistry.has(g))return v.serviceRegistry.get(g);var s=function(_,p,e){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");b(s,_,e)};return s.toString=function(){return g},v.serviceRegistry.set(g,s),s}},function(I,v,T){"use strict";function b(g,s,_,p){if(_===void 0&&(_=0),p===void 0&&(p=g.length),_>=g.length)return g;_=(g.length+_)%g.length,p=p>=g.length?g.length:(g.length+p)%g.length;for(var e=_;e<p;++e)g[e]=s;return g}Object.defineProperty(v,"__esModule",{value:!0}),v.concat=v.fillFallback=v.fill=void 0,v.fill=function(g,s,_,p){return g.fill?g.fill(s,_,p):b(g,s,_,p)},v.fillFallback=b,v.concat=function(g,s){var _=new g.constructor(g.length+s.length);return _.set(g),_.set(s,g.length),_}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.BufferLine=v.DEFAULT_ATTR_DATA=void 0;var b=T(8),g=T(3),s=T(4),_=T(6);v.DEFAULT_ATTR_DATA=Object.freeze(new _.AttributeData);var p=function(){function e(a,n,l){l===void 0&&(l=!1),this.isWrapped=l,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*a);for(var r=n||s.CellData.fromCharData([0,g.NULL_CELL_CHAR,g.NULL_CELL_WIDTH,g.NULL_CELL_CODE]),i=0;i<a;++i)this.setCell(i,r);this.length=a}return e.prototype.get=function(a){var n=this._data[3*a+0],l=2097151&n;return[this._data[3*a+1],2097152&n?this._combined[a]:l?b.stringFromCodePoint(l):"",n>>22,2097152&n?this._combined[a].charCodeAt(this._combined[a].length-1):l]},e.prototype.set=function(a,n){this._data[3*a+1]=n[g.CHAR_DATA_ATTR_INDEX],n[g.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[a]=n[1],this._data[3*a+0]=2097152|a|n[g.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*a+0]=n[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[g.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(a){return this._data[3*a+0]>>22},e.prototype.hasWidth=function(a){return 12582912&this._data[3*a+0]},e.prototype.getFg=function(a){return this._data[3*a+1]},e.prototype.getBg=function(a){return this._data[3*a+2]},e.prototype.hasContent=function(a){return 4194303&this._data[3*a+0]},e.prototype.getCodePoint=function(a){var n=this._data[3*a+0];return 2097152&n?this._combined[a].charCodeAt(this._combined[a].length-1):2097151&n},e.prototype.isCombined=function(a){return 2097152&this._data[3*a+0]},e.prototype.getString=function(a){var n=this._data[3*a+0];return 2097152&n?this._combined[a]:2097151&n?b.stringFromCodePoint(2097151&n):""},e.prototype.loadCell=function(a,n){var l=3*a;return n.content=this._data[l+0],n.fg=this._data[l+1],n.bg=this._data[l+2],2097152&n.content&&(n.combinedData=this._combined[a]),268435456&n.bg&&(n.extended=this._extendedAttrs[a]),n},e.prototype.setCell=function(a,n){2097152&n.content&&(this._combined[a]=n.combinedData),268435456&n.bg&&(this._extendedAttrs[a]=n.extended),this._data[3*a+0]=n.content,this._data[3*a+1]=n.fg,this._data[3*a+2]=n.bg},e.prototype.setCellFromCodePoint=function(a,n,l,r,i,t){268435456&i&&(this._extendedAttrs[a]=t),this._data[3*a+0]=n|l<<22,this._data[3*a+1]=r,this._data[3*a+2]=i},e.prototype.addCodepointToCell=function(a,n){var l=this._data[3*a+0];2097152&l?this._combined[a]+=b.stringFromCodePoint(n):(2097151&l?(this._combined[a]=b.stringFromCodePoint(2097151&l)+b.stringFromCodePoint(n),l&=-2097152,l|=2097152):l=n|1<<22,this._data[3*a+0]=l)},e.prototype.insertCells=function(a,n,l,r){if((a%=this.length)&&this.getWidth(a-1)===2&&this.setCellFromCodePoint(a-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new _.ExtendedAttrs),n<this.length-a){for(var i=new s.CellData,t=this.length-a-n-1;t>=0;--t)this.setCell(a+n+t,this.loadCell(a+t,i));for(t=0;t<n;++t)this.setCell(a+t,l)}else for(t=a;t<this.length;++t)this.setCell(t,l);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new _.ExtendedAttrs)},e.prototype.deleteCells=function(a,n,l,r){if(a%=this.length,n<this.length-a){for(var i=new s.CellData,t=0;t<this.length-a-n;++t)this.setCell(a+t,this.loadCell(a+n+t,i));for(t=this.length-n;t<this.length;++t)this.setCell(t,l)}else for(t=a;t<this.length;++t)this.setCell(t,l);a&&this.getWidth(a-1)===2&&this.setCellFromCodePoint(a-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new _.ExtendedAttrs),this.getWidth(a)!==0||this.hasContent(a)||this.setCellFromCodePoint(a,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new _.ExtendedAttrs)},e.prototype.replaceCells=function(a,n,l,r){for(a&&this.getWidth(a-1)===2&&this.setCellFromCodePoint(a-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new _.ExtendedAttrs),n<this.length&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new _.ExtendedAttrs);a<n&&a<this.length;)this.setCell(a++,l)},e.prototype.resize=function(a,n){if(a!==this.length){if(a>this.length){var l=new Uint32Array(3*a);this.length&&(3*a<this._data.length?l.set(this._data.subarray(0,3*a)):l.set(this._data)),this._data=l;for(var r=this.length;r<a;++r)this.setCell(r,n)}else if(a){(l=new Uint32Array(3*a)).set(this._data.subarray(0,3*a)),this._data=l;var i=Object.keys(this._combined);for(r=0;r<i.length;r++){var t=parseInt(i[r],10);t>=a&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=a}},e.prototype.fill=function(a){this._combined={},this._extendedAttrs={};for(var n=0;n<this.length;++n)this.setCell(n,a)},e.prototype.copyFrom=function(a){for(var n in this.length!==a.length?this._data=new Uint32Array(a._data):this._data.set(a._data),this.length=a.length,this._combined={},a._combined)this._combined[n]=a._combined[n];for(var n in this._extendedAttrs={},a._extendedAttrs)this._extendedAttrs[n]=a._extendedAttrs[n];this.isWrapped=a.isWrapped},e.prototype.clone=function(){var a=new e(0);for(var n in a._data=new Uint32Array(this._data),a.length=this.length,this._combined)a._combined[n]=this._combined[n];for(var n in this._extendedAttrs)a._extendedAttrs[n]=this._extendedAttrs[n];return a.isWrapped=this.isWrapped,a},e.prototype.getTrimmedLength=function(){for(var a=this.length-1;a>=0;--a)if(4194303&this._data[3*a+0])return a+(this._data[3*a+0]>>22);return 0},e.prototype.copyCellsFrom=function(a,n,l,r,i){var t=a._data;if(i)for(var o=r-1;o>=0;o--)for(var c=0;c<3;c++)this._data[3*(l+o)+c]=t[3*(n+o)+c];else for(o=0;o<r;o++)for(c=0;c<3;c++)this._data[3*(l+o)+c]=t[3*(n+o)+c];var d=Object.keys(a._combined);for(c=0;c<d.length;c++){var f=parseInt(d[c],10);f>=n&&(this._combined[f-n+l]=a._combined[f])}},e.prototype.translateToString=function(a,n,l){a===void 0&&(a=!1),n===void 0&&(n=0),l===void 0&&(l=this.length),a&&(l=Math.min(l,this.getTrimmedLength()));for(var r="";n<l;){var i=this._data[3*n+0],t=2097151&i;r+=2097152&i?this._combined[n]:t?b.stringFromCodePoint(t):g.WHITESPACE_CELL_CHAR,n+=i>>22||1}return r},e}();v.BufferLine=p},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.removeElementFromParent=void 0,v.removeElementFromParent=function(){for(var b,g=[],s=0;s<arguments.length;s++)g[s]=arguments[s];for(var _=0,p=g;_<p.length;_++){var e=p[_];(b=e==null?void 0:e.parentElement)===null||b===void 0||b.removeChild(e)}}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.tooMuchOutput=v.promptLabel=void 0,v.promptLabel="Terminal input",v.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(O,C){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var D in S)S.hasOwnProperty(D)&&(w[D]=S[D])})(O,C)},function(O,C){function w(){this.constructor=O}b(O,C),O.prototype=C===null?Object.create(C):(w.prototype=C.prototype,new w)});Object.defineProperty(v,"__esModule",{value:!0}),v.InputHandler=v.WindowsOptionsReportType=void 0;var s,_=T(12),p=T(20),e=T(39),a=T(2),n=T(15),l=T(8),r=T(16),i=T(0),t=T(3),o=T(4),c=T(6),d=T(22),f=T(24),h={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function u(O,C){if(O>24)return C.setWinLines||!1;switch(O){case 1:return!!C.restoreWin;case 2:return!!C.minimizeWin;case 3:return!!C.setWinPosition;case 4:return!!C.setWinSizePixels;case 5:return!!C.raiseWin;case 6:return!!C.lowerWin;case 7:return!!C.refreshWin;case 8:return!!C.setWinSizeChars;case 9:return!!C.maximizeWin;case 10:return!!C.fullscreenWin;case 11:return!!C.getWinState;case 13:return!!C.getWinPosition;case 14:return!!C.getWinSizePixels;case 15:return!!C.getScreenSizePixels;case 16:return!!C.getCellSizePixels;case 18:return!!C.getWinSizeChars;case 19:return!!C.getScreenSizeChars;case 20:return!!C.getIconTitle;case 21:return!!C.getWinTitle;case 22:return!!C.pushTitle;case 23:return!!C.popTitle;case 24:return!!C.setWinLines}return!1}!function(O){O[O.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",O[O.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(s=v.WindowsOptionsReportType||(v.WindowsOptionsReportType={}));var E=function(){function O(C,w,S,D){this._bufferService=C,this._coreService=w,this._logService=S,this._optionsService=D,this._data=new Uint32Array(0)}return O.prototype.hook=function(C){this._data=new Uint32Array(0)},O.prototype.put=function(C,w,S){this._data=n.concat(this._data,C.subarray(w,S))},O.prototype.unhook=function(C){if(C){var w=l.utf32ToString(this._data);switch(this._data=new Uint32Array(0),w){case'"q':return this._coreService.triggerDataEvent(_.C0.ESC+'P1$r0"q'+_.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(_.C0.ESC+'P1$r61;1"p'+_.C0.ESC+"\\");case"r":var S=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(_.C0.ESC+"P1$r"+S+_.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(_.C0.ESC+"P1$r0m"+_.C0.ESC+"\\");case" q":var D={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return D-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(_.C0.ESC+"P1$r"+D+" q"+_.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",w),this._coreService.triggerDataEvent(_.C0.ESC+"P0$r"+_.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},O}(),x=function(O){function C(w,S,D,R,P,N,M,z,X){X===void 0&&(X=new e.EscapeSequenceParser);var k=O.call(this)||this;k._bufferService=w,k._charsetService=S,k._coreService=D,k._dirtyRowService=R,k._logService=P,k._optionsService=N,k._coreMouseService=M,k._unicodeService=z,k._parser=X,k._parseBuffer=new Uint32Array(4096),k._stringDecoder=new l.StringToUtf32,k._utf8Decoder=new l.Utf8ToUtf32,k._workCell=new o.CellData,k._windowTitle="",k._iconName="",k._windowTitleStack=[],k._iconNameStack=[],k._curAttrData=r.DEFAULT_ATTR_DATA.clone(),k._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone(),k._onRequestBell=new i.EventEmitter,k._onRequestRefreshRows=new i.EventEmitter,k._onRequestReset=new i.EventEmitter,k._onRequestScroll=new i.EventEmitter,k._onRequestSyncScrollBar=new i.EventEmitter,k._onRequestWindowsOptionsReport=new i.EventEmitter,k._onA11yChar=new i.EventEmitter,k._onA11yTab=new i.EventEmitter,k._onCursorMove=new i.EventEmitter,k._onLineFeed=new i.EventEmitter,k._onScroll=new i.EventEmitter,k._onTitleChange=new i.EventEmitter,k.register(k._parser),k._parser.setCsiHandlerFallback(function(B,Z){k._logService.debug("Unknown CSI code: ",{identifier:k._parser.identToString(B),params:Z.toArray()})}),k._parser.setEscHandlerFallback(function(B){k._logService.debug("Unknown ESC code: ",{identifier:k._parser.identToString(B)})}),k._parser.setExecuteHandlerFallback(function(B){k._logService.debug("Unknown EXECUTE code: ",{code:B})}),k._parser.setOscHandlerFallback(function(B,Z,re){k._logService.debug("Unknown OSC code: ",{identifier:B,action:Z,data:re})}),k._parser.setDcsHandlerFallback(function(B,Z,re){Z==="HOOK"&&(re=re.toArray()),k._logService.debug("Unknown DCS code: ",{identifier:k._parser.identToString(B),action:Z,payload:re})}),k._parser.setPrintHandler(function(B,Z,re){return k.print(B,Z,re)}),k._parser.setCsiHandler({final:"@"},function(B){return k.insertChars(B)}),k._parser.setCsiHandler({intermediates:" ",final:"@"},function(B){return k.scrollLeft(B)}),k._parser.setCsiHandler({final:"A"},function(B){return k.cursorUp(B)}),k._parser.setCsiHandler({intermediates:" ",final:"A"},function(B){return k.scrollRight(B)}),k._parser.setCsiHandler({final:"B"},function(B){return k.cursorDown(B)}),k._parser.setCsiHandler({final:"C"},function(B){return k.cursorForward(B)}),k._parser.setCsiHandler({final:"D"},function(B){return k.cursorBackward(B)}),k._parser.setCsiHandler({final:"E"},function(B){return k.cursorNextLine(B)}),k._parser.setCsiHandler({final:"F"},function(B){return k.cursorPrecedingLine(B)}),k._parser.setCsiHandler({final:"G"},function(B){return k.cursorCharAbsolute(B)}),k._parser.setCsiHandler({final:"H"},function(B){return k.cursorPosition(B)}),k._parser.setCsiHandler({final:"I"},function(B){return k.cursorForwardTab(B)}),k._parser.setCsiHandler({final:"J"},function(B){return k.eraseInDisplay(B)}),k._parser.setCsiHandler({prefix:"?",final:"J"},function(B){return k.eraseInDisplay(B)}),k._parser.setCsiHandler({final:"K"},function(B){return k.eraseInLine(B)}),k._parser.setCsiHandler({prefix:"?",final:"K"},function(B){return k.eraseInLine(B)}),k._parser.setCsiHandler({final:"L"},function(B){return k.insertLines(B)}),k._parser.setCsiHandler({final:"M"},function(B){return k.deleteLines(B)}),k._parser.setCsiHandler({final:"P"},function(B){return k.deleteChars(B)}),k._parser.setCsiHandler({final:"S"},function(B){return k.scrollUp(B)}),k._parser.setCsiHandler({final:"T"},function(B){return k.scrollDown(B)}),k._parser.setCsiHandler({final:"X"},function(B){return k.eraseChars(B)}),k._parser.setCsiHandler({final:"Z"},function(B){return k.cursorBackwardTab(B)}),k._parser.setCsiHandler({final:"`"},function(B){return k.charPosAbsolute(B)}),k._parser.setCsiHandler({final:"a"},function(B){return k.hPositionRelative(B)}),k._parser.setCsiHandler({final:"b"},function(B){return k.repeatPrecedingCharacter(B)}),k._parser.setCsiHandler({final:"c"},function(B){return k.sendDeviceAttributesPrimary(B)}),k._parser.setCsiHandler({prefix:">",final:"c"},function(B){return k.sendDeviceAttributesSecondary(B)}),k._parser.setCsiHandler({final:"d"},function(B){return k.linePosAbsolute(B)}),k._parser.setCsiHandler({final:"e"},function(B){return k.vPositionRelative(B)}),k._parser.setCsiHandler({final:"f"},function(B){return k.hVPosition(B)}),k._parser.setCsiHandler({final:"g"},function(B){return k.tabClear(B)}),k._parser.setCsiHandler({final:"h"},function(B){return k.setMode(B)}),k._parser.setCsiHandler({prefix:"?",final:"h"},function(B){return k.setModePrivate(B)}),k._parser.setCsiHandler({final:"l"},function(B){return k.resetMode(B)}),k._parser.setCsiHandler({prefix:"?",final:"l"},function(B){return k.resetModePrivate(B)}),k._parser.setCsiHandler({final:"m"},function(B){return k.charAttributes(B)}),k._parser.setCsiHandler({final:"n"},function(B){return k.deviceStatus(B)}),k._parser.setCsiHandler({prefix:"?",final:"n"},function(B){return k.deviceStatusPrivate(B)}),k._parser.setCsiHandler({intermediates:"!",final:"p"},function(B){return k.softReset(B)}),k._parser.setCsiHandler({intermediates:" ",final:"q"},function(B){return k.setCursorStyle(B)}),k._parser.setCsiHandler({final:"r"},function(B){return k.setScrollRegion(B)}),k._parser.setCsiHandler({final:"s"},function(B){return k.saveCursor(B)}),k._parser.setCsiHandler({final:"t"},function(B){return k.windowOptions(B)}),k._parser.setCsiHandler({final:"u"},function(B){return k.restoreCursor(B)}),k._parser.setCsiHandler({intermediates:"'",final:"}"},function(B){return k.insertColumns(B)}),k._parser.setCsiHandler({intermediates:"'",final:"~"},function(B){return k.deleteColumns(B)}),k._parser.setExecuteHandler(_.C0.BEL,function(){return k.bell()}),k._parser.setExecuteHandler(_.C0.LF,function(){return k.lineFeed()}),k._parser.setExecuteHandler(_.C0.VT,function(){return k.lineFeed()}),k._parser.setExecuteHandler(_.C0.FF,function(){return k.lineFeed()}),k._parser.setExecuteHandler(_.C0.CR,function(){return k.carriageReturn()}),k._parser.setExecuteHandler(_.C0.BS,function(){return k.backspace()}),k._parser.setExecuteHandler(_.C0.HT,function(){return k.tab()}),k._parser.setExecuteHandler(_.C0.SO,function(){return k.shiftOut()}),k._parser.setExecuteHandler(_.C0.SI,function(){return k.shiftIn()}),k._parser.setExecuteHandler(_.C1.IND,function(){return k.index()}),k._parser.setExecuteHandler(_.C1.NEL,function(){return k.nextLine()}),k._parser.setExecuteHandler(_.C1.HTS,function(){return k.tabSet()}),k._parser.setOscHandler(0,new d.OscHandler(function(B){k.setTitle(B),k.setIconName(B)})),k._parser.setOscHandler(1,new d.OscHandler(function(B){return k.setIconName(B)})),k._parser.setOscHandler(2,new d.OscHandler(function(B){return k.setTitle(B)})),k._parser.setEscHandler({final:"7"},function(){return k.saveCursor()}),k._parser.setEscHandler({final:"8"},function(){return k.restoreCursor()}),k._parser.setEscHandler({final:"D"},function(){return k.index()}),k._parser.setEscHandler({final:"E"},function(){return k.nextLine()}),k._parser.setEscHandler({final:"H"},function(){return k.tabSet()}),k._parser.setEscHandler({final:"M"},function(){return k.reverseIndex()}),k._parser.setEscHandler({final:"="},function(){return k.keypadApplicationMode()}),k._parser.setEscHandler({final:">"},function(){return k.keypadNumericMode()}),k._parser.setEscHandler({final:"c"},function(){return k.fullReset()}),k._parser.setEscHandler({final:"n"},function(){return k.setgLevel(2)}),k._parser.setEscHandler({final:"o"},function(){return k.setgLevel(3)}),k._parser.setEscHandler({final:"|"},function(){return k.setgLevel(3)}),k._parser.setEscHandler({final:"}"},function(){return k.setgLevel(2)}),k._parser.setEscHandler({final:"~"},function(){return k.setgLevel(1)}),k._parser.setEscHandler({intermediates:"%",final:"@"},function(){return k.selectDefaultCharset()}),k._parser.setEscHandler({intermediates:"%",final:"G"},function(){return k.selectDefaultCharset()});var F=function(B){U._parser.setEscHandler({intermediates:"(",final:B},function(){return k.selectCharset("("+B)}),U._parser.setEscHandler({intermediates:")",final:B},function(){return k.selectCharset(")"+B)}),U._parser.setEscHandler({intermediates:"*",final:B},function(){return k.selectCharset("*"+B)}),U._parser.setEscHandler({intermediates:"+",final:B},function(){return k.selectCharset("+"+B)}),U._parser.setEscHandler({intermediates:"-",final:B},function(){return k.selectCharset("-"+B)}),U._parser.setEscHandler({intermediates:".",final:B},function(){return k.selectCharset("."+B)}),U._parser.setEscHandler({intermediates:"/",final:B},function(){return k.selectCharset("/"+B)})},U=this;for(var L in p.CHARSETS)F(L);return k._parser.setEscHandler({intermediates:"#",final:"8"},function(){return k.screenAlignmentPattern()}),k._parser.setErrorHandler(function(B){return k._logService.error("Parsing error: ",B),B}),k._parser.setDcsHandler({intermediates:"$",final:"q"},new E(k._bufferService,k._coreService,k._logService,k._optionsService)),k}return g(C,O),Object.defineProperty(C.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),C.prototype.dispose=function(){O.prototype.dispose.call(this)},C.prototype.parse=function(w){var S=this._bufferService.buffer,D=S.x,R=S.y;if(this._logService.debug("parsing data",w),this._parseBuffer.length<w.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(w.length,131072))),this._dirtyRowService.clearRange(),w.length>131072)for(var P=0;P<w.length;P+=131072){var N=P+131072<w.length?P+131072:w.length,M=typeof w=="string"?this._stringDecoder.decode(w.substring(P,N),this._parseBuffer):this._utf8Decoder.decode(w.subarray(P,N),this._parseBuffer);this._parser.parse(this._parseBuffer,M)}else M=typeof w=="string"?this._stringDecoder.decode(w,this._parseBuffer):this._utf8Decoder.decode(w,this._parseBuffer),this._parser.parse(this._parseBuffer,M);(S=this._bufferService.buffer).x===D&&S.y===R||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},C.prototype.print=function(w,S,D){var R,P,N=this._bufferService.buffer,M=this._charsetService.charset,z=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,k=this._coreService.decPrivateModes.wraparound,F=this._coreService.modes.insertMode,U=this._curAttrData,L=N.lines.get(N.ybase+N.y);this._dirtyRowService.markDirty(N.y),N.x&&D-S>0&&L.getWidth(N.x-1)===2&&L.setCellFromCodePoint(N.x-1,0,1,U.fg,U.bg,U.extended);for(var B=S;B<D;++B){if(R=w[B],P=this._unicodeService.wcwidth(R),R<127&&M){var Z=M[String.fromCharCode(R)];Z&&(R=Z.charCodeAt(0))}if(z&&this._onA11yChar.fire(l.stringFromCodePoint(R)),P||!N.x){if(N.x+P-1>=X){if(k){for(;N.x<X;)L.setCellFromCodePoint(N.x++,0,1,U.fg,U.bg,U.extended);N.x=0,N.y++,N.y===N.scrollBottom+1?(N.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(N.y>=this._bufferService.rows&&(N.y=this._bufferService.rows-1),N.lines.get(N.ybase+N.y).isWrapped=!0),L=N.lines.get(N.ybase+N.y)}else if(N.x=X-1,P===2)continue}if(F&&(L.insertCells(N.x,P,N.getNullCell(U),U),L.getWidth(X-1)===2&&L.setCellFromCodePoint(X-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,U.fg,U.bg,U.extended)),L.setCellFromCodePoint(N.x++,R,P,U.fg,U.bg,U.extended),P>0)for(;--P;)L.setCellFromCodePoint(N.x++,0,0,U.fg,U.bg,U.extended)}else L.getWidth(N.x-1)?L.addCodepointToCell(N.x-1,R):L.addCodepointToCell(N.x-2,R)}D-S>0&&(L.loadCell(N.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),N.x<X&&D-S>0&&L.getWidth(N.x)===0&&!L.hasContent(N.x)&&L.setCellFromCodePoint(N.x,0,1,U.fg,U.bg,U.extended),this._dirtyRowService.markDirty(N.y)},C.prototype.addCsiHandler=function(w,S){var D=this;return w.final!=="t"||w.prefix||w.intermediates?this._parser.addCsiHandler(w,S):this._parser.addCsiHandler(w,function(R){return!u(R.params[0],D._optionsService.options.windowOptions)||S(R)})},C.prototype.addDcsHandler=function(w,S){return this._parser.addDcsHandler(w,new f.DcsHandler(S))},C.prototype.addEscHandler=function(w,S){return this._parser.addEscHandler(w,S)},C.prototype.addOscHandler=function(w,S){return this._parser.addOscHandler(w,new d.OscHandler(S))},C.prototype.bell=function(){this._onRequestBell.fire()},C.prototype.lineFeed=function(){var w=this._bufferService.buffer;this._dirtyRowService.markDirty(w.y),this._optionsService.options.convertEol&&(w.x=0),w.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),w.x>=this._bufferService.cols&&w.x--,this._dirtyRowService.markDirty(w.y),this._onLineFeed.fire()},C.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},C.prototype.backspace=function(){var w,S=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(S.x>0&&S.x--);if(this._restrictCursor(this._bufferService.cols),S.x>0)S.x--;else if(S.x===0&&S.y>S.scrollTop&&S.y<=S.scrollBottom&&((w=S.lines.get(S.ybase+S.y))===null||w===void 0?void 0:w.isWrapped)){S.lines.get(S.ybase+S.y).isWrapped=!1,S.y--,S.x=this._bufferService.cols-1;var D=S.lines.get(S.ybase+S.y);D.hasWidth(S.x)&&!D.hasContent(S.x)&&S.x--}this._restrictCursor()},C.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var w=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-w)}},C.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},C.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},C.prototype._restrictCursor=function(w){w===void 0&&(w=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(w,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},C.prototype._setCursor=function(w,S){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=w,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+S):(this._bufferService.buffer.x=w,this._bufferService.buffer.y=S),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},C.prototype._moveCursor=function(w,S){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+w,this._bufferService.buffer.y+S)},C.prototype.cursorUp=function(w){var S=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;S>=0?this._moveCursor(0,-Math.min(S,w.params[0]||1)):this._moveCursor(0,-(w.params[0]||1))},C.prototype.cursorDown=function(w){var S=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;S>=0?this._moveCursor(0,Math.min(S,w.params[0]||1)):this._moveCursor(0,w.params[0]||1)},C.prototype.cursorForward=function(w){this._moveCursor(w.params[0]||1,0)},C.prototype.cursorBackward=function(w){this._moveCursor(-(w.params[0]||1),0)},C.prototype.cursorNextLine=function(w){this.cursorDown(w),this._bufferService.buffer.x=0},C.prototype.cursorPrecedingLine=function(w){this.cursorUp(w),this._bufferService.buffer.x=0},C.prototype.cursorCharAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},C.prototype.cursorPosition=function(w){this._setCursor(w.length>=2?(w.params[1]||1)-1:0,(w.params[0]||1)-1)},C.prototype.charPosAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},C.prototype.hPositionRelative=function(w){this._moveCursor(w.params[0]||1,0)},C.prototype.linePosAbsolute=function(w){this._setCursor(this._bufferService.buffer.x,(w.params[0]||1)-1)},C.prototype.vPositionRelative=function(w){this._moveCursor(0,w.params[0]||1)},C.prototype.hVPosition=function(w){this.cursorPosition(w)},C.prototype.tabClear=function(w){var S=w.params[0];S===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:S===3&&(this._bufferService.buffer.tabs={})},C.prototype.cursorForwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=w.params[0]||1;S--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},C.prototype.cursorBackwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=w.params[0]||1,D=this._bufferService.buffer;S--;)D.x=D.prevStop()},C.prototype._eraseInBufferLine=function(w,S,D,R){R===void 0&&(R=!1);var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);P.replaceCells(S,D,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R&&(P.isWrapped=!1)},C.prototype._resetBufferLine=function(w){var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);S.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),S.isWrapped=!1},C.prototype.eraseInDisplay=function(w){var S;switch(this._restrictCursor(),w.params[0]){case 0:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);S<this._bufferService.rows;S++)this._resetBufferLine(S);this._dirtyRowService.markDirty(S);break;case 1:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(S+1).isWrapped=!1);S--;)this._resetBufferLine(S);this._dirtyRowService.markDirty(0);break;case 2:for(S=this._bufferService.rows,this._dirtyRowService.markDirty(S-1);S--;)this._resetBufferLine(S);this._dirtyRowService.markDirty(0);break;case 3:var D=this._bufferService.buffer.lines.length-this._bufferService.rows;D>0&&(this._bufferService.buffer.lines.trimStart(D),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-D,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-D,0),this._onScroll.fire(0))}},C.prototype.eraseInLine=function(w){switch(this._restrictCursor(),w.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},C.prototype.insertLines=function(w){this._restrictCursor();var S=w.params[0]||1,D=this._bufferService.buffer;if(!(D.y>D.scrollBottom||D.y<D.scrollTop)){for(var R=D.ybase+D.y,P=this._bufferService.rows-1-D.scrollBottom,N=this._bufferService.rows-1+D.ybase-P+1;S--;)D.lines.splice(N-1,1),D.lines.splice(R,0,D.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(D.y,D.scrollBottom),D.x=0}},C.prototype.deleteLines=function(w){this._restrictCursor();var S=w.params[0]||1,D=this._bufferService.buffer;if(!(D.y>D.scrollBottom||D.y<D.scrollTop)){var R,P=D.ybase+D.y;for(R=this._bufferService.rows-1-D.scrollBottom,R=this._bufferService.rows-1+D.ybase-R;S--;)D.lines.splice(P,1),D.lines.splice(R,0,D.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(D.y,D.scrollBottom),D.x=0}},C.prototype.insertChars=function(w){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.insertCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.deleteChars=function(w){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.deleteCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.scrollUp=function(w){for(var S=w.params[0]||1,D=this._bufferService.buffer;S--;)D.lines.splice(D.ybase+D.scrollTop,1),D.lines.splice(D.ybase+D.scrollBottom,0,D.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(D.scrollTop,D.scrollBottom)},C.prototype.scrollDown=function(w){for(var S=w.params[0]||1,D=this._bufferService.buffer;S--;)D.lines.splice(D.ybase+D.scrollBottom,1),D.lines.splice(D.ybase+D.scrollTop,0,D.getBlankLine(r.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(D.scrollTop,D.scrollBottom)},C.prototype.scrollLeft=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var D=w.params[0]||1,R=S.scrollTop;R<=S.scrollBottom;++R){var P=S.lines.get(S.ybase+R);P.deleteCells(0,D,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),P.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},C.prototype.scrollRight=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var D=w.params[0]||1,R=S.scrollTop;R<=S.scrollBottom;++R){var P=S.lines.get(S.ybase+R);P.insertCells(0,D,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),P.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},C.prototype.insertColumns=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var D=w.params[0]||1,R=S.scrollTop;R<=S.scrollBottom;++R){var P=this._bufferService.buffer.lines.get(S.ybase+R);P.insertCells(S.x,D,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),P.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},C.prototype.deleteColumns=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var D=w.params[0]||1,R=S.scrollTop;R<=S.scrollBottom;++R){var P=S.lines.get(S.ybase+R);P.deleteCells(S.x,D,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),P.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},C.prototype.eraseChars=function(w){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(w.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.repeatPrecedingCharacter=function(w){if(this._parser.precedingCodepoint){for(var S=w.params[0]||1,D=new Uint32Array(S),R=0;R<S;++R)D[R]=this._parser.precedingCodepoint;this.print(D,0,D.length)}},C.prototype.sendDeviceAttributesPrimary=function(w){w.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(_.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(_.C0.ESC+"[?6c"))},C.prototype.sendDeviceAttributesSecondary=function(w){w.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(_.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(_.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(w.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(_.C0.ESC+"[>83;40003;0c"))},C.prototype._is=function(w){return(this._optionsService.options.termName+"").indexOf(w)===0},C.prototype.setMode=function(w){for(var S=0;S<w.length;S++)switch(w.params[S]){case 4:this._coreService.modes.insertMode=!0}},C.prototype.setModePrivate=function(w){for(var S=0;S<w.length;S++)switch(w.params[S]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,p.DEFAULT_CHARSET),this._charsetService.setgCharset(1,p.DEFAULT_CHARSET),this._charsetService.setgCharset(2,p.DEFAULT_CHARSET),this._charsetService.setgCharset(3,p.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},C.prototype.resetMode=function(w){for(var S=0;S<w.length;S++)switch(w.params[S]){case 4:this._coreService.modes.insertMode=!1}},C.prototype.resetModePrivate=function(w){for(var S=0;S<w.length;S++)switch(w.params[S]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),w.params[S]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},C.prototype._updateAttrColor=function(w,S,D,R,P){return S===2?(w|=50331648,w&=-16777216,w|=c.AttributeData.fromColorRGB([D,R,P])):S===5&&(w&=-50331904,w|=33554432|255&D),w},C.prototype._extractColor=function(w,S,D){var R=[0,0,-1,0,0,0],P=0,N=0;do{if(R[N+P]=w.params[S+N],w.hasSubParams(S+N)){var M=w.getSubParams(S+N),z=0;do R[1]===5&&(P=1),R[N+z+1+P]=M[z];while(++z<M.length&&z+N+1+P<R.length);break}if(R[1]===5&&N+P>=2||R[1]===2&&N+P>=5)break;R[1]&&(P=1)}while(++N+S<w.length&&N+P<R.length);for(z=2;z<R.length;++z)R[z]===-1&&(R[z]=0);switch(R[0]){case 38:D.fg=this._updateAttrColor(D.fg,R[1],R[3],R[4],R[5]);break;case 48:D.bg=this._updateAttrColor(D.bg,R[1],R[3],R[4],R[5]);break;case 58:D.extended=D.extended.clone(),D.extended.underlineColor=this._updateAttrColor(D.extended.underlineColor,R[1],R[3],R[4],R[5])}return N},C.prototype._processUnderline=function(w,S){S.extended=S.extended.clone(),(!~w||w>5)&&(w=1),S.extended.underlineStyle=w,S.fg|=268435456,w===0&&(S.fg&=-268435457),S.updateExtended()},C.prototype.charAttributes=function(w){if(w.length===1&&w.params[0]===0)return this._curAttrData.fg=r.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=r.DEFAULT_ATTR_DATA.bg);for(var S,D=w.length,R=this._curAttrData,P=0;P<D;P++)(S=w.params[P])>=30&&S<=37?(R.fg&=-50331904,R.fg|=16777216|S-30):S>=40&&S<=47?(R.bg&=-50331904,R.bg|=16777216|S-40):S>=90&&S<=97?(R.fg&=-50331904,R.fg|=16777224|S-90):S>=100&&S<=107?(R.bg&=-50331904,R.bg|=16777224|S-100):S===0?(R.fg=r.DEFAULT_ATTR_DATA.fg,R.bg=r.DEFAULT_ATTR_DATA.bg):S===1?R.fg|=134217728:S===3?R.bg|=67108864:S===4?(R.fg|=268435456,this._processUnderline(w.hasSubParams(P)?w.getSubParams(P)[0]:1,R)):S===5?R.fg|=536870912:S===7?R.fg|=67108864:S===8?R.fg|=1073741824:S===2?R.bg|=134217728:S===21?this._processUnderline(2,R):S===22?(R.fg&=-134217729,R.bg&=-134217729):S===23?R.bg&=-67108865:S===24?R.fg&=-268435457:S===25?R.fg&=-536870913:S===27?R.fg&=-67108865:S===28?R.fg&=-1073741825:S===39?(R.fg&=-67108864,R.fg|=16777215&r.DEFAULT_ATTR_DATA.fg):S===49?(R.bg&=-67108864,R.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):S===38||S===48||S===58?P+=this._extractColor(w,P,R):S===59?(R.extended=R.extended.clone(),R.extended.underlineColor=-1,R.updateExtended()):S===100?(R.fg&=-67108864,R.fg|=16777215&r.DEFAULT_ATTR_DATA.fg,R.bg&=-67108864,R.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",S)},C.prototype.deviceStatus=function(w){switch(w.params[0]){case 5:this._coreService.triggerDataEvent(_.C0.ESC+"[0n");break;case 6:var S=this._bufferService.buffer.y+1,D=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(_.C0.ESC+"["+S+";"+D+"R")}},C.prototype.deviceStatusPrivate=function(w){switch(w.params[0]){case 6:var S=this._bufferService.buffer.y+1,D=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(_.C0.ESC+"[?"+S+";"+D+"R")}},C.prototype.softReset=function(w){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},C.prototype.setCursorStyle=function(w){var S=w.params[0]||1;switch(S){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"}var D=S%2==1;this._optionsService.options.cursorBlink=D},C.prototype.setScrollRegion=function(w){var S,D=w.params[0]||1;(w.length<2||(S=w.params[1])>this._bufferService.rows||S===0)&&(S=this._bufferService.rows),S>D&&(this._bufferService.buffer.scrollTop=D-1,this._bufferService.buffer.scrollBottom=S-1,this._setCursor(0,0))},C.prototype.windowOptions=function(w){if(u(w.params[0],this._optionsService.options.windowOptions)){var S=w.length>1?w.params[1]:0;switch(w.params[0]){case 14:S!==2&&this._onRequestWindowsOptionsReport.fire(s.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(s.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(_.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:S!==0&&S!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),S!==0&&S!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:S!==0&&S!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),S!==0&&S!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},C.prototype.saveCursor=function(w){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},C.prototype.restoreCursor=function(w){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},C.prototype.setTitle=function(w){this._windowTitle=w,this._onTitleChange.fire(w)},C.prototype.setIconName=function(w){this._iconName=w},C.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},C.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},C.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},C.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,p.DEFAULT_CHARSET)},C.prototype.selectCharset=function(w){w.length===2?w[0]!=="/"&&this._charsetService.setgCharset(h[w[0]],p.CHARSETS[w[1]]||p.DEFAULT_CHARSET):this.selectDefaultCharset()},C.prototype.index=function(){this._restrictCursor();var w=this._bufferService.buffer;this._bufferService.buffer.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),this._restrictCursor()},C.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},C.prototype.reverseIndex=function(){this._restrictCursor();var w=this._bufferService.buffer;if(w.y===w.scrollTop){var S=w.scrollBottom-w.scrollTop;w.lines.shiftElements(w.ybase+w.y,S,1),w.lines.set(w.ybase+w.y,w.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}else w.y--,this._restrictCursor()},C.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},C.prototype.reset=function(){this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone()},C.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},C.prototype.setgLevel=function(w){this._charsetService.setgLevel(w)},C.prototype.screenAlignmentPattern=function(){var w=new o.CellData;w.content=1<<22|"E".charCodeAt(0),w.fg=this._curAttrData.fg,w.bg=this._curAttrData.bg;var S=this._bufferService.buffer;this._setCursor(0,0);for(var D=0;D<this._bufferService.rows;++D){var R=S.ybase+S.y+D,P=S.lines.get(R);P&&(P.fill(w),P.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},C}(a.Disposable);v.InputHandler=x},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DEFAULT_CHARSET=v.CHARSETS=void 0,v.CHARSETS={},v.DEFAULT_CHARSET=v.CHARSETS.B,v.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"},v.CHARSETS.A={"#":"\xA3"},v.CHARSETS.B=void 0,v.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},v.CHARSETS.C=v.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},v.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},v.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},v.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},v.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},v.CHARSETS.E=v.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},v.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},v.CHARSETS.H=v.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},v.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.Params=void 0;var b=function(){function g(s,_){if(s===void 0&&(s=32),_===void 0&&(_=32),this.maxLength=s,this.maxSubParamsLength=_,_>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(s),this.length=0,this._subParams=new Int32Array(_),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(s),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return g.fromArray=function(s){var _=new g;if(!s.length)return _;for(var p=s[0]instanceof Array?1:0;p<s.length;++p){var e=s[p];if(e instanceof Array)for(var a=0;a<e.length;++a)_.addSubParam(e[a]);else _.addParam(e)}return _},g.prototype.clone=function(){var s=new g(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},g.prototype.toArray=function(){for(var s=[],_=0;_<this.length;++_){s.push(this.params[_]);var p=this._subParamsIdx[_]>>8,e=255&this._subParamsIdx[_];e-p>0&&s.push(Array.prototype.slice.call(this._subParams,p,e))}return s},g.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},g.prototype.addParam=function(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>2147483647?2147483647:s}},g.prototype.addSubParam=function(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>2147483647?2147483647:s,this._subParamsIdx[this.length-1]++}},g.prototype.hasSubParams=function(s){return(255&this._subParamsIdx[s])-(this._subParamsIdx[s]>>8)>0},g.prototype.getSubParams=function(s){var _=this._subParamsIdx[s]>>8,p=255&this._subParamsIdx[s];return p-_>0?this._subParams.subarray(_,p):null},g.prototype.getSubParamsAll=function(){for(var s={},_=0;_<this.length;++_){var p=this._subParamsIdx[_]>>8,e=255&this._subParamsIdx[_];e-p>0&&(s[_]=this._subParams.slice(p,e))}return s},g.prototype.addDigit=function(s){var _;if(!(this._rejectDigits||!(_=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var p=this._digitIsSub?this._subParams:this.params,e=p[_-1];p[_-1]=~e?Math.min(10*e+s,2147483647):s}},g}();v.Params=b},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.OscHandler=v.OscParser=void 0;var b=T(23),g=T(8),s=function(){function p(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return p.prototype.addHandler=function(e,a){this._handlers[e]===void 0&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(a),{dispose:function(){var l=n.indexOf(a);l!==-1&&n.splice(l,1)}}},p.prototype.setHandler=function(e,a){this._handlers[e]=[a]},p.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},p.prototype.setHandlerFallback=function(e){this._handlerFb=e},p.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},p.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},p.prototype._start=function(){var e=this._handlers[this._id];if(e)for(var a=e.length-1;a>=0;a--)e[a].start();else this._handlerFb(this._id,"START")},p.prototype._put=function(e,a,n){var l=this._handlers[this._id];if(l)for(var r=l.length-1;r>=0;r--)l[r].put(e,a,n);else this._handlerFb(this._id,"PUT",g.utf32ToString(e,a,n))},p.prototype._end=function(e){var a=this._handlers[this._id];if(a){for(var n=a.length-1;n>=0&&a[n].end(e)===!1;n--);for(n--;n>=0;n--)a[n].end(!1)}else this._handlerFb(this._id,"END",e)},p.prototype.start=function(){this.reset(),this._id=-1,this._state=1},p.prototype.put=function(e,a,n){if(this._state!==3){if(this._state===1)for(;a<n;){var l=e[a++];if(l===59){this._state=2,this._start();break}if(l<48||57<l)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+l-48}this._state===2&&n-a>0&&this._put(e,a,n)}},p.prototype.end=function(e){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(e)),this._id=-1,this._state=0)},p}();v.OscParser=s;var _=function(){function p(e){this._handler=e,this._data="",this._hitLimit=!1}return p.prototype.start=function(){this._data="",this._hitLimit=!1},p.prototype.put=function(e,a,n){this._hitLimit||(this._data+=g.utf32ToString(e,a,n),this._data.length>b.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},p.prototype.end=function(e){var a;return this._hitLimit?a=!1:e&&(a=this._handler(this._data)),this._data="",this._hitLimit=!1,a},p}();v.OscHandler=_},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.PAYLOAD_LIMIT=void 0,v.PAYLOAD_LIMIT=1e7},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DcsHandler=v.DcsParser=void 0;var b=T(8),g=T(21),s=T(23),_=[],p=function(){function a(){this._handlers=Object.create(null),this._active=_,this._ident=0,this._handlerFb=function(){}}return a.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},a.prototype.addHandler=function(n,l){this._handlers[n]===void 0&&(this._handlers[n]=[]);var r=this._handlers[n];return r.push(l),{dispose:function(){var i=r.indexOf(l);i!==-1&&r.splice(i,1)}}},a.prototype.setHandler=function(n,l){this._handlers[n]=[l]},a.prototype.clearHandler=function(n){this._handlers[n]&&delete this._handlers[n]},a.prototype.setHandlerFallback=function(n){this._handlerFb=n},a.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=_,this._ident=0},a.prototype.hook=function(n,l){if(this.reset(),this._ident=n,this._active=this._handlers[n]||_,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(l);else this._handlerFb(this._ident,"HOOK",l)},a.prototype.put=function(n,l,r){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(n,l,r);else this._handlerFb(this._ident,"PUT",b.utf32ToString(n,l,r))},a.prototype.unhook=function(n){if(this._active.length){for(var l=this._active.length-1;l>=0&&this._active[l].unhook(n)===!1;l--);for(l--;l>=0;l--)this._active[l].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",n);this._active=_,this._ident=0},a}();v.DcsParser=p;var e=function(){function a(n){this._handler=n,this._data="",this._hitLimit=!1}return a.prototype.hook=function(n){this._params=n.clone(),this._data="",this._hitLimit=!1},a.prototype.put=function(n,l,r){this._hitLimit||(this._data+=b.utf32ToString(n,l,r),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},a.prototype.unhook=function(n){var l;return this._hitLimit?l=!1:n&&(l=this._handler(this._data,this._params||new g.Params)),this._params=void 0,this._data="",this._hitLimit=!1,l},a}();v.DcsHandler=e},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.removeTerminalFromCache=v.acquireCharAtlas=void 0;var b=T(26),g=T(43),s=[];v.acquireCharAtlas=function(_,p,e,a,n){for(var l=b.generateConfig(a,n,_,e),r=0;r<s.length;r++){var i=(t=s[r]).ownedBy.indexOf(p);if(i>=0){if(b.configEquals(t.config,l))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),s.splice(r,1)):t.ownedBy.splice(i,1);break}}for(r=0;r<s.length;r++){var t=s[r];if(b.configEquals(t.config,l))return t.ownedBy.push(p),t.atlas}var o={atlas:new g.DynamicCharAtlas(document,l),config:l,ownedBy:[p]};return s.push(o),o.atlas},v.removeTerminalFromCache=function(_){for(var p=0;p<s.length;p++){var e=s[p].ownedBy.indexOf(_);if(e!==-1){s[p].ownedBy.length===1?(s[p].atlas.dispose(),s.splice(p,1)):s[p].ownedBy.splice(e,1);break}}}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.is256Color=v.configEquals=v.generateConfig=void 0;var b=T(3);v.generateConfig=function(g,s,_,p){var e={foreground:p.foreground,background:p.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:p.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:g,scaledCharHeight:s,fontFamily:_.fontFamily,fontSize:_.fontSize,fontWeight:_.fontWeight,fontWeightBold:_.fontWeightBold,allowTransparency:_.allowTransparency,colors:e}},v.configEquals=function(g,s){for(var _=0;_<g.colors.ansi.length;_++)if(g.colors.ansi[_].rgba!==s.colors.ansi[_].rgba)return!1;return g.devicePixelRatio===s.devicePixelRatio&&g.fontFamily===s.fontFamily&&g.fontSize===s.fontSize&&g.fontWeight===s.fontWeight&&g.fontWeightBold===s.fontWeightBold&&g.allowTransparency===s.allowTransparency&&g.scaledCharWidth===s.scaledCharWidth&&g.scaledCharHeight===s.scaledCharHeight&&g.colors.foreground===s.colors.foreground&&g.colors.background===s.colors.background},v.is256Color=function(g){return g<b.DEFAULT_COLOR}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.ColorManager=v.DEFAULT_ANSI_COLORS=void 0;var b=T(10),g=T(45),s=b.css.toColor("#ffffff"),_=b.css.toColor("#000000"),p=b.css.toColor("#ffffff"),e=b.css.toColor("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};v.DEFAULT_ANSI_COLORS=function(){for(var l=[b.css.toColor("#2e3436"),b.css.toColor("#cc0000"),b.css.toColor("#4e9a06"),b.css.toColor("#c4a000"),b.css.toColor("#3465a4"),b.css.toColor("#75507b"),b.css.toColor("#06989a"),b.css.toColor("#d3d7cf"),b.css.toColor("#555753"),b.css.toColor("#ef2929"),b.css.toColor("#8ae234"),b.css.toColor("#fce94f"),b.css.toColor("#729fcf"),b.css.toColor("#ad7fa8"),b.css.toColor("#34e2e2"),b.css.toColor("#eeeeec")],r=[0,95,135,175,215,255],i=0;i<216;i++){var t=r[i/36%6|0],o=r[i/6%6|0],c=r[i%6];l.push({css:b.channels.toCss(t,o,c),rgba:b.channels.toRgba(t,o,c)})}for(i=0;i<24;i++){var d=8+10*i;l.push({css:b.channels.toCss(d,d,d),rgba:b.channels.toRgba(d,d,d)})}return l}();var n=function(){function l(r,i){this.allowTransparency=i;var t=r.createElement("canvas");t.width=1,t.height=1;var o=t.getContext("2d");if(!o)throw new Error("Could not get rendering context");this._ctx=o,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new g.ColorContrastCache,this.colors={foreground:s,background:_,cursor:p,cursorAccent:e,selectionTransparent:a,selectionOpaque:b.color.blend(_,a),ansi:v.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return l.prototype.onOptionsChange=function(r){r==="minimumContrastRatio"&&this._contrastCache.clear()},l.prototype.setTheme=function(r){(r===void 0&&(r={}),this.colors.foreground=this._parseColor(r.foreground,s),this.colors.background=this._parseColor(r.background,_),this.colors.cursor=this._parseColor(r.cursor,p,!0),this.colors.cursorAccent=this._parseColor(r.cursorAccent,e,!0),this.colors.selectionTransparent=this._parseColor(r.selection,a,!0),this.colors.selectionOpaque=b.color.blend(this.colors.background,this.colors.selectionTransparent),b.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=b.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(r.black,v.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(r.red,v.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(r.green,v.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(r.yellow,v.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(r.blue,v.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(r.magenta,v.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(r.cyan,v.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(r.white,v.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(r.brightBlack,v.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(r.brightRed,v.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(r.brightGreen,v.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(r.brightYellow,v.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(r.brightBlue,v.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(r.brightMagenta,v.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(r.brightCyan,v.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(r.brightWhite,v.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},l.prototype._parseColor=function(r,i,t){if(t===void 0&&(t=this.allowTransparency),r===void 0)return i;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=r,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+r+" is invalid using fallback "+i.css),i;this._ctx.fillRect(0,0,1,1);var o=this._ctx.getImageData(0,0,1,1).data;if(o[3]!==255){if(!t)return console.warn("Color: "+r+" is using transparency, but allowTransparency is false. Using fallback "+i.css+"."),i;var c=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(x){return Number(x)}),d=c[0],f=c[1],h=c[2],u=c[3],E=Math.round(255*u);return{rgba:b.channels.toRgba(d,f,h,E),css:r}}return{css:this._ctx.fillStyle,rgba:b.channels.toRgba(o[0],o[1],o[2],o[3])}},l}();v.ColorManager=n},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.throwIfFalsy=void 0,v.throwIfFalsy=function(b){if(!b)throw new Error("value must not be falsy");return b}},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(n,l){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var t in i)i.hasOwnProperty(t)&&(r[t]=i[t])})(n,l)},function(n,l){function r(){this.constructor=n}b(n,l),n.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(v,"__esModule",{value:!0}),v.CharacterJoinerRegistry=v.JoinedCellData=void 0;var s=T(6),_=T(3),p=T(4),e=function(n){function l(r,i,t){var o=n.call(this)||this;return o.content=0,o.combinedData="",o.fg=r.fg,o.bg=r.bg,o.combinedData=i,o._width=t,o}return g(l,n),l.prototype.isCombined=function(){return 2097152},l.prototype.getWidth=function(){return this._width},l.prototype.getChars=function(){return this.combinedData},l.prototype.getCode=function(){return 2097151},l.prototype.setFromCharData=function(r){throw new Error("not implemented")},l.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},l}(s.AttributeData);v.JoinedCellData=e;var a=function(){function n(l){this._bufferService=l,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}return n.prototype.registerCharacterJoiner=function(l){var r={id:this._nextCharacterJoinerId++,handler:l};return this._characterJoiners.push(r),r.id},n.prototype.deregisterCharacterJoiner=function(l){for(var r=0;r<this._characterJoiners.length;r++)if(this._characterJoiners[r].id===l)return this._characterJoiners.splice(r,1),!0;return!1},n.prototype.getJoinedCharacters=function(l){if(this._characterJoiners.length===0)return[];var r=this._bufferService.buffer.lines.get(l);if(!r||r.length===0)return[];for(var i=[],t=r.translateToString(!0),o=0,c=0,d=0,f=r.getFg(0),h=r.getBg(0),u=0;u<r.getTrimmedLength();u++)if(r.loadCell(u,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==f||this._workCell.bg!==h){if(u-o>1)for(var E=this._getJoinedRanges(t,d,c,r,o),x=0;x<E.length;x++)i.push(E[x]);o=u,d=c,f=this._workCell.fg,h=this._workCell.bg}c+=this._workCell.getChars().length||_.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-o>1)for(E=this._getJoinedRanges(t,d,c,r,o),x=0;x<E.length;x++)i.push(E[x]);return i},n.prototype._getJoinedRanges=function(l,r,i,t,o){for(var c=l.substring(r,i),d=this._characterJoiners[0].handler(c),f=1;f<this._characterJoiners.length;f++)for(var h=this._characterJoiners[f].handler(c),u=0;u<h.length;u++)n._mergeRanges(d,h[u]);return this._stringRangesToCellRanges(d,t,o),d},n.prototype._stringRangesToCellRanges=function(l,r,i){var t=0,o=!1,c=0,d=l[t];if(d){for(var f=i;f<this._bufferService.cols;f++){var h=r.getWidth(f),u=r.getString(f).length||_.WHITESPACE_CELL_CHAR.length;if(h!==0){if(!o&&d[0]<=c&&(d[0]=f,o=!0),d[1]<=c){if(d[1]=f,!(d=l[++t]))break;d[0]<=c?(d[0]=f,o=!0):o=!1}c+=u}}d&&(d[1]=this._bufferService.cols)}},n._mergeRanges=function(l,r){for(var i=!1,t=0;t<l.length;t++){var o=l[t];if(i){if(r[1]<=o[0])return l[t-1][1]=r[1],l;if(r[1]<=o[1])return l[t-1][1]=Math.max(r[1],o[1]),l.splice(t,1),l;l.splice(t,1),t--}else{if(r[1]<=o[0])return l.splice(t,0,r),l;if(r[1]<=o[1])return o[0]=Math.min(r[0],o[0]),l;r[0]<o[1]&&(o[0]=Math.min(r[0],o[0]),i=!0)}}return i?l[l.length-1][1]=r[1]:l.push(r),l},n}();v.CharacterJoinerRegistry=a},function(I,v,T){"use strict";function b(g,s){var _=s.getBoundingClientRect();return[g.clientX-_.left,g.clientY-_.top]}Object.defineProperty(v,"__esModule",{value:!0}),v.getRawByteCoords=v.getCoords=v.getCoordsRelativeToElement=void 0,v.getCoordsRelativeToElement=b,v.getCoords=function(g,s,_,p,e,a,n,l){if(e){var r=b(g,s);if(r)return r[0]=Math.ceil((r[0]+(l?a/2:0))/a),r[1]=Math.ceil(r[1]/n),r[0]=Math.min(Math.max(r[0],1),_+(l?1:0)),r[1]=Math.min(Math.max(r[1],1),p),r}},v.getRawByteCoords=function(g){if(g)return{x:g[0]+32,y:g[1]+32}}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.RenderDebouncer=void 0;var b=function(){function g(s){this._renderCallback=s}return g.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},g.prototype.refresh=function(s,_,p){var e=this;this._rowCount=p,s=s!==void 0?s:0,_=_!==void 0?_:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,s):s,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,_):_,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return e._innerRefresh()}))},g.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var s=Math.max(this._rowStart,0),_=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(s,_)}},g}();v.RenderDebouncer=b},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(_,p){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])})(_,p)},function(_,p){function e(){this.constructor=_}b(_,p),_.prototype=p===null?Object.create(p):(e.prototype=p.prototype,new e)});Object.defineProperty(v,"__esModule",{value:!0}),v.ScreenDprMonitor=void 0;var s=function(_){function p(){var e=_!==null&&_.apply(this,arguments)||this;return e._currentDevicePixelRatio=window.devicePixelRatio,e}return g(p,_),p.prototype.setListener=function(e){var a=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){a._listener&&(a._listener(window.devicePixelRatio,a._currentDevicePixelRatio),a._updateDpr())},this._updateDpr()},p.prototype.dispose=function(){_.prototype.dispose.call(this),this.clearListener()},p.prototype._updateDpr=function(){var e;this._outerListener&&((e=this._resolutionMediaMatchList)===null||e===void 0||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},p.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},p}(T(2).Disposable);v.ScreenDprMonitor=s},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.clone=void 0,v.clone=function b(g,s){if(s===void 0&&(s=5),typeof g!="object")return g;var _=Array.isArray(g)?[]:{};for(var p in g)_[p]=s<=1?g[p]:g[p]?b(g[p],s-1):g[p];return _}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.Terminal=void 0;var b=T(4),g=T(35),s=T(18),_=T(0),p=T(83),e=function(){function t(o){this._core=new g.Terminal(o),this._addonManager=new p.AddonManager}return t.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new r(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unicode",{get:function(){return this._checkProposedApi(),new i(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._checkProposedApi(),new n(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),t.prototype.blur=function(){this._core.blur()},t.prototype.focus=function(){this._core.focus()},t.prototype.resize=function(o,c){this._verifyIntegers(o,c),this._core.resize(o,c)},t.prototype.open=function(o){this._core.open(o)},t.prototype.attachCustomKeyEventHandler=function(o){this._core.attachCustomKeyEventHandler(o)},t.prototype.registerLinkMatcher=function(o,c,d){return this._checkProposedApi(),this._core.registerLinkMatcher(o,c,d)},t.prototype.deregisterLinkMatcher=function(o){this._checkProposedApi(),this._core.deregisterLinkMatcher(o)},t.prototype.registerLinkProvider=function(o){return this._checkProposedApi(),this._core.registerLinkProvider(o)},t.prototype.registerCharacterJoiner=function(o){return this._checkProposedApi(),this._core.registerCharacterJoiner(o)},t.prototype.deregisterCharacterJoiner=function(o){this._checkProposedApi(),this._core.deregisterCharacterJoiner(o)},t.prototype.registerMarker=function(o){return this._checkProposedApi(),this._verifyIntegers(o),this._core.addMarker(o)},t.prototype.addMarker=function(o){return this.registerMarker(o)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.select=function(o,c,d){this._verifyIntegers(o,c,d),this._core.select(o,c,d)},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(o,c){this._verifyIntegers(o,c),this._core.selectLines(o,c)},t.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},t.prototype.scrollLines=function(o){this._verifyIntegers(o),this._core.scrollLines(o)},t.prototype.scrollPages=function(o){this._verifyIntegers(o),this._core.scrollPages(o)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(o){this._verifyIntegers(o),this._core.scrollToLine(o)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(o,c){this._core.write(o,c)},t.prototype.writeUtf8=function(o,c){this._core.write(o,c)},t.prototype.writeln=function(o,c){this._core.write(o),this._core.write(`\r
`,c)},t.prototype.paste=function(o){this._core.paste(o)},t.prototype.getOption=function(o){return this._core.optionsService.getOption(o)},t.prototype.setOption=function(o,c){this._core.optionsService.setOption(o,c)},t.prototype.refresh=function(o,c){this._verifyIntegers(o,c),this._core.refresh(o,c)},t.prototype.reset=function(){this._core.reset()},t.prototype.loadAddon=function(o){return this._addonManager.loadAddon(this,o)},Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];for(var d=0,f=o;d<f.length;d++){var h=f[d];if(h===1/0||isNaN(h)||h%1!=0)throw new Error("This API only accepts integers")}},t}();v.Terminal=e;var a=function(){function t(o,c){this._buffer=o,this.type=c}return t.prototype.init=function(o){return this._buffer=o,this},Object.defineProperty(t.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),t.prototype.getLine=function(o){var c=this._buffer.lines.get(o);if(c)return new l(c)},t.prototype.getNullCell=function(){return new b.CellData},t}(),n=function(){function t(o){var c=this;this._buffers=o,this._onBufferChange=new _.EventEmitter,this._normal=new a(this._buffers.normal,"normal"),this._alternate=new a(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(t.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),t}(),l=function(){function t(o){this._line=o}return Object.defineProperty(t.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),t.prototype.getCell=function(o,c){if(!(o<0||o>=this._line.length))return c?(this._line.loadCell(o,c),c):this._line.loadCell(o,new b.CellData)},t.prototype.translateToString=function(o,c,d){return this._line.translateToString(o,c,d)},t}(),r=function(){function t(o){this._core=o}return t.prototype.registerCsiHandler=function(o,c){return this._core.addCsiHandler(o,function(d){return c(d.toArray())})},t.prototype.addCsiHandler=function(o,c){return this.registerCsiHandler(o,c)},t.prototype.registerDcsHandler=function(o,c){return this._core.addDcsHandler(o,function(d,f){return c(d,f.toArray())})},t.prototype.addDcsHandler=function(o,c){return this.registerDcsHandler(o,c)},t.prototype.registerEscHandler=function(o,c){return this._core.addEscHandler(o,c)},t.prototype.addEscHandler=function(o,c){return this.registerEscHandler(o,c)},t.prototype.registerOscHandler=function(o,c){return this._core.addOscHandler(o,c)},t.prototype.addOscHandler=function(o,c){return this.registerOscHandler(o,c)},t}(),i=function(){function t(o){this._core=o}return t.prototype.register=function(o){this._core.unicodeService.register(o)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(o){this._core.unicodeService.activeVersion=o},enumerable:!1,configurable:!0}),t}()},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(X,k){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,U){F.__proto__=U}||function(F,U){for(var L in U)U.hasOwnProperty(L)&&(F[L]=U[L])})(X,k)},function(X,k){function F(){this.constructor=X}b(X,k),X.prototype=k===null?Object.create(k):(F.prototype=k.prototype,new F)});Object.defineProperty(v,"__esModule",{value:!0}),v.Terminal=void 0;var s=T(36),_=T(37),p=T(38),e=T(12),a=T(19),n=T(40),l=T(50),r=T(51),i=T(11),t=T(7),o=T(18),c=T(54),d=T(55),f=T(56),h=T(57),u=T(59),E=T(0),x=T(16),O=T(27),C=T(60),w=T(5),S=T(61),D=T(62),R=T(63),P=T(64),N=T(65),M=typeof window!="undefined"?window.document:null,z=function(X){function k(F){F===void 0&&(F={});var U=X.call(this,F)||this;return U.browser=i,U._keyDownHandled=!1,U._onCursorMove=new E.EventEmitter,U._onKey=new E.EventEmitter,U._onRender=new E.EventEmitter,U._onSelectionChange=new E.EventEmitter,U._onTitleChange=new E.EventEmitter,U._onFocus=new E.EventEmitter,U._onBlur=new E.EventEmitter,U._onA11yCharEmitter=new E.EventEmitter,U._onA11yTabEmitter=new E.EventEmitter,U._setup(),U.linkifier=U._instantiationService.createInstance(l.Linkifier),U.linkifier2=U.register(U._instantiationService.createInstance(R.Linkifier2)),U.register(U._inputHandler.onRequestBell(function(){return U.bell()})),U.register(U._inputHandler.onRequestRefreshRows(function(L,B){return U.refresh(L,B)})),U.register(U._inputHandler.onRequestReset(function(){return U.reset()})),U.register(U._inputHandler.onRequestScroll(function(L,B){return U.scroll(L,B||void 0)})),U.register(U._inputHandler.onRequestWindowsOptionsReport(function(L){return U._reportWindowsOptions(L)})),U.register(E.forwardEvent(U._inputHandler.onCursorMove,U._onCursorMove)),U.register(E.forwardEvent(U._inputHandler.onTitleChange,U._onTitleChange)),U.register(E.forwardEvent(U._inputHandler.onA11yChar,U._onA11yCharEmitter)),U.register(E.forwardEvent(U._inputHandler.onA11yTab,U._onA11yTabEmitter)),U.register(U._bufferService.onResize(function(L){return U._afterResize(L.cols,L.rows)})),U}return g(k,X),Object.defineProperty(k.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),k.prototype.dispose=function(){var F,U,L;this._isDisposed||(X.prototype.dispose.call(this),(F=this._renderService)===null||F===void 0||F.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(L=(U=this.element)===null||U===void 0?void 0:U.parentNode)===null||L===void 0||L.removeChild(this.element))},k.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(k.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),k.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},k.prototype._updateOptions=function(F){var U,L,B,Z;switch(X.prototype._updateOptions.call(this,F),F){case"fontFamily":case"fontSize":(U=this._renderService)===null||U===void 0||U.clear(),(L=this._charSizeService)===null||L===void 0||L.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(B=this.viewport)===null||B===void 0||B.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new f.AccessibilityManager(this,this._renderService)):((Z=this._accessibilityManager)===null||Z===void 0||Z.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},k.prototype._onTextAreaFocus=function(F){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(e.C0.ESC+"[I"),this.updateCursorStyle(F),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},k.prototype.blur=function(){var F;return(F=this.textarea)===null||F===void 0?void 0:F.blur()},k.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(e.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},k.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var F=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),U=this._bufferService.buffer.y*F,L=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=L+"px",this.textarea.style.top=U+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=F+"px",this.textarea.style.lineHeight=F+"px",this.textarea.style.zIndex="-5"}},k.prototype._initGlobal=function(){var F=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(L){F.hasSelection()&&p.copyHandler(L,F._selectionService)}));var U=function(L){return p.handlePasteEvent(L,F.textarea,F._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",U)),this.register(t.addDisposableDomListener(this.element,"paste",U)),i.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(L){L.button===2&&p.rightClickHandler(L,F.textarea,F.screenElement,F._selectionService,F.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(L){p.rightClickHandler(L,F.textarea,F.screenElement,F._selectionService,F.options.rightClickSelectsWord)})),i.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(L){L.button===1&&p.moveTextAreaUnderMouseCursor(L,F.textarea,F.screenElement)}))},k.prototype._bindKeys=function(){var F=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(U){return F._keyUp(U)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(U){return F._keyDown(U)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(U){return F._keyPress(U)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return F._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(U){return F._compositionHelper.compositionupdate(U)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return F._compositionHelper.compositionend()})),this.register(this.onRender(function(){return F._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(U){return F._queueLinkification(U.start,U.end)}))},k.prototype.open=function(F){var U=this;if(!F)throw new Error("Terminal requires a parent element.");M.body.contains(F)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=F.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),F.appendChild(this.element);var L=M.createDocumentFragment();this._viewportElement=M.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),L.appendChild(this._viewportElement),this._viewportScrollArea=M.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=M.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=M.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),L.appendChild(this.screenElement),this.textarea=M.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",o.promptLabel),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.register(t.addDisposableDomListener(this.textarea,"focus",function(re){return U._onTextAreaFocus(re)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return U._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var B=this._instantiationService.createInstance(P.CoreBrowserService,this.textarea);this._instantiationService.setService(w.ICoreBrowserService,B),this._charSizeService=this._instantiationService.createInstance(S.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(w.ICharSizeService,this._charSizeService),this._compositionView=M.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(s.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(L),this._theme=this.options.theme||this._theme,this._colorManager=new O.ColorManager(M,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(re){return U._colorManager.onOptionsChange(re)})),this._colorManager.setTheme(this._theme);var Z=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(C.RenderService,Z,this.rows,this.screenElement)),this._instantiationService.setService(w.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(re){return U._onRender.fire(re)})),this.onResize(function(re){return U._renderService.resize(re.cols,re.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(w.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(D.MouseService),this._instantiationService.setService(w.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(_.Viewport,function(re,me){return U.scrollLines(re,me)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return U.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){U._renderService.onCursorMove(),U._syncTextArea()})),this.register(this.onResize(function(){return U._renderService.onResize(U.cols,U.rows)})),this.register(this.onBlur(function(){return U._renderService.onBlur()})),this.register(this.onFocus(function(){return U._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return U.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(r.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(w.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(re){return U.scrollLines(re.amount,re.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return U._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(re){return U._renderService.onSelectionChanged(re.start,re.end,re.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(re){U.textarea.value=re,U.textarea.focus(),U.textarea.select()})),this.register(this.onScroll(function(){U.viewport.syncScrollArea(),U._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return U._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(d.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return U._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(re){return U._selectionService.onMouseDown(re)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new f.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},k.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(n.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(h.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},k.prototype._setTheme=function(F){var U,L,B;this._theme=F,(U=this._colorManager)===null||U===void 0||U.setTheme(F),(L=this._renderService)===null||L===void 0||L.setColors(this._colorManager.colors),(B=this.viewport)===null||B===void 0||B.onThemeChange(this._colorManager.colors)},k.prototype.bindMouse=function(){var F=this,U=this,L=this.element;function B(te){var Ce,we,ce=U._mouseService.getRawByteCoords(te,U.screenElement,U.cols,U.rows);if(!ce)return!1;switch(te.overrideType||te.type){case"mousemove":we=32,te.buttons===void 0?(Ce=3,te.button!==void 0&&(Ce=te.button<3?te.button:3)):Ce=1&te.buttons?0:4&te.buttons?1:2&te.buttons?2:3;break;case"mouseup":we=0,Ce=te.button<3?te.button:3;break;case"mousedown":we=1,Ce=te.button<3?te.button:3;break;case"wheel":te.deltaY!==0&&(we=te.deltaY<0?0:1),Ce=4;break;default:return!1}return!(we===void 0||Ce===void 0||Ce>4)&&U._coreMouseService.triggerMouseEvent({col:ce.x-33,row:ce.y-33,button:Ce,action:we,ctrl:te.ctrlKey,alt:te.altKey,shift:te.shiftKey})}var Z={mouseup:null,wheel:null,mousedrag:null,mousemove:null},re=function(te){return B(te),te.buttons||(F._document.removeEventListener("mouseup",Z.mouseup),Z.mousedrag&&F._document.removeEventListener("mousemove",Z.mousedrag)),F.cancel(te)},me=function(te){return B(te),te.preventDefault(),F.cancel(te)},Ee=function(te){te.buttons&&B(te)},De=function(te){te.buttons||B(te)};this.register(this._coreMouseService.onProtocolChange(function(te){te?(F.optionsService.options.logLevel==="debug"&&F._logService.debug("Binding to mouse events:",F._coreMouseService.explainEvents(te)),F.element.classList.add("enable-mouse-events"),F._selectionService.disable()):(F._logService.debug("Unbinding from mouse events."),F.element.classList.remove("enable-mouse-events"),F._selectionService.enable()),8&te?Z.mousemove||(L.addEventListener("mousemove",De),Z.mousemove=De):(L.removeEventListener("mousemove",Z.mousemove),Z.mousemove=null),16&te?Z.wheel||(L.addEventListener("wheel",me,{passive:!1}),Z.wheel=me):(L.removeEventListener("wheel",Z.wheel),Z.wheel=null),2&te?Z.mouseup||(Z.mouseup=re):(F._document.removeEventListener("mouseup",Z.mouseup),Z.mouseup=null),4&te?Z.mousedrag||(Z.mousedrag=Ee):(F._document.removeEventListener("mousemove",Z.mousedrag),Z.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(L,"mousedown",function(te){if(te.preventDefault(),F.focus(),F._coreMouseService.areMouseEventsActive&&!F._selectionService.shouldForceSelection(te))return B(te),Z.mouseup&&F._document.addEventListener("mouseup",Z.mouseup),Z.mousedrag&&F._document.addEventListener("mousemove",Z.mousedrag),F.cancel(te)})),this.register(t.addDisposableDomListener(L,"wheel",function(te){if(!Z.wheel){if(!F.buffer.hasScrollback){var Ce=F.viewport.getLinesScrolled(te);if(Ce===0)return;for(var we=e.C0.ESC+(F._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(te.deltaY<0?"A":"B"),ce="",le=0;le<Math.abs(Ce);le++)ce+=we;F._coreService.triggerDataEvent(ce,!0)}}},{passive:!0})),this.register(t.addDisposableDomListener(L,"wheel",function(te){if(!Z.wheel)return F.viewport.onWheel(te)?void 0:F.cancel(te)},{passive:!1})),this.register(t.addDisposableDomListener(L,"touchstart",function(te){if(!F._coreMouseService.areMouseEventsActive)return F.viewport.onTouchStart(te),F.cancel(te)},{passive:!0})),this.register(t.addDisposableDomListener(L,"touchmove",function(te){if(!F._coreMouseService.areMouseEventsActive)return F.viewport.onTouchMove(te)?void 0:F.cancel(te)},{passive:!1}))},k.prototype.refresh=function(F,U){var L;(L=this._renderService)===null||L===void 0||L.refreshRows(F,U)},k.prototype._queueLinkification=function(F,U){var L;(L=this.linkifier)===null||L===void 0||L.linkifyRows(F,U)},k.prototype.updateCursorStyle=function(F){this._selectionService&&this._selectionService.shouldColumnSelect(F)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},k.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},k.prototype.scrollLines=function(F,U){X.prototype.scrollLines.call(this,F,U),this.refresh(0,this.rows-1)},k.prototype.paste=function(F){p.paste(F,this.textarea,this._coreService)},k.prototype.attachCustomKeyEventHandler=function(F){this._customKeyEventHandler=F},k.prototype.registerLinkMatcher=function(F,U,L){var B=this.linkifier.registerLinkMatcher(F,U,L);return this.refresh(0,this.rows-1),B},k.prototype.deregisterLinkMatcher=function(F){this.linkifier.deregisterLinkMatcher(F)&&this.refresh(0,this.rows-1)},k.prototype.registerLinkProvider=function(F){return this.linkifier2.registerLinkProvider(F)},k.prototype.registerCharacterJoiner=function(F){var U=this._renderService.registerCharacterJoiner(F);return this.refresh(0,this.rows-1),U},k.prototype.deregisterCharacterJoiner=function(F){this._renderService.deregisterCharacterJoiner(F)&&this.refresh(0,this.rows-1)},Object.defineProperty(k.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),k.prototype.addMarker=function(F){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+F)},k.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},k.prototype.select=function(F,U,L){this._selectionService.setSelection(F,U,L)},k.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},k.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},k.prototype.clearSelection=function(){var F;(F=this._selectionService)===null||F===void 0||F.clearSelection()},k.prototype.selectAll=function(){var F;(F=this._selectionService)===null||F===void 0||F.selectAll()},k.prototype.selectLines=function(F,U){var L;(L=this._selectionService)===null||L===void 0||L.selectLines(F,U)},k.prototype._keyDown=function(F){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(F)===!1)return!1;if(!this._compositionHelper.keydown(F))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var U=u.evaluateKeyboardEvent(F,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(F),U.type===3||U.type===2){var L=this.rows-1;return this.scrollLines(U.type===2?-L:L),this.cancel(F,!0)}return U.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,F)||(U.cancel&&this.cancel(F,!0),!U.key||(U.key!==e.C0.ETX&&U.key!==e.C0.CR||(this.textarea.value=""),this._onKey.fire({key:U.key,domEvent:F}),this._showCursor(),this._coreService.triggerDataEvent(U.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(F,!0)))},k.prototype._isThirdLevelShift=function(F,U){var L=F.isMac&&!this.options.macOptionIsMeta&&U.altKey&&!U.ctrlKey&&!U.metaKey||F.isWindows&&U.altKey&&U.ctrlKey&&!U.metaKey;return U.type==="keypress"?L:L&&(!U.keyCode||U.keyCode>47)},k.prototype._keyUp=function(F){this._customKeyEventHandler&&this._customKeyEventHandler(F)===!1||(function(U){return U.keyCode===16||U.keyCode===17||U.keyCode===18}(F)||this.focus(),this.updateCursorStyle(F))},k.prototype._keyPress=function(F){var U;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(F)===!1)return!1;if(this.cancel(F),F.charCode)U=F.charCode;else if(F.which===null||F.which===void 0)U=F.keyCode;else{if(F.which===0||F.charCode===0)return!1;U=F.which}return!(!U||(F.altKey||F.ctrlKey||F.metaKey)&&!this._isThirdLevelShift(this.browser,F))&&(U=String.fromCharCode(U),this._onKey.fire({key:U,domEvent:F}),this._showCursor(),this._coreService.triggerDataEvent(U,!0),!0)},k.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},k.prototype.resize=function(F,U){F!==this.cols||U!==this.rows?X.prototype.resize.call(this,F,U):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},k.prototype._afterResize=function(F,U){var L,B;(L=this._charSizeService)===null||L===void 0||L.measure(),(B=this.viewport)===null||B===void 0||B.syncScrollArea(!0)},k.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){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(var F=1;F<this.rows;F++)this.buffer.lines.push(this.buffer.getBlankLine(x.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},k.prototype.reset=function(){var F,U;this.options.rows=this.rows,this.options.cols=this.cols;var L=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(F=this._selectionService)===null||F===void 0||F.reset(),this._customKeyEventHandler=L,this.refresh(0,this.rows-1),(U=this.viewport)===null||U===void 0||U.syncScrollArea()},k.prototype._reportWindowsOptions=function(F){if(this._renderService)switch(F){case a.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var U=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),L=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(e.C0.ESC+"[4;"+L+";"+U+"t");break;case a.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var B=this._renderService.dimensions.scaledCellWidth.toFixed(0),Z=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(e.C0.ESC+"[6;"+Z+";"+B+"t")}},k.prototype.cancel=function(F,U){if(this.options.cancelEvents||U)return F.preventDefault(),F.stopPropagation(),!1},k.prototype._visualBell=function(){return!1},k.prototype._soundBell=function(){return this.options.bellStyle==="sound"},k}(N.CoreTerminal);v.Terminal=z},function(I,v,T){"use strict";var b=this&&this.__decorate||function(e,a,n,l){var r,i=arguments.length,t=i<3?a:l===null?l=Object.getOwnPropertyDescriptor(a,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(e,a,n,l);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(t=(i<3?r(t):i>3?r(a,n,t):r(a,n))||t);return i>3&&t&&Object.defineProperty(a,n,t),t},g=this&&this.__param||function(e,a){return function(n,l){a(n,l,e)}};Object.defineProperty(v,"__esModule",{value:!0}),v.CompositionHelper=void 0;var s=T(5),_=T(1),p=function(){function e(a,n,l,r,i,t){this._textarea=a,this._compositionView=n,this._bufferService=l,this._optionsService=r,this._charSizeService=i,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(a){var n=this;this._compositionView.textContent=a.data,this.updateCompositionElements(),setTimeout(function(){n._compositionPosition.end=n._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(a){if(this._isComposing||this._isSendingComposition){if(a.keyCode===229)return!1;if(a.keyCode===16||a.keyCode===17||a.keyCode===18)return!1;this._finalizeComposition(!1)}return a.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(a){var n=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,a){var l={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(n._isSendingComposition){n._isSendingComposition=!1;var i=void 0;i=n._isComposing?n._textarea.value.substring(l.start,l.end):n._textarea.value.substring(l.start),n._coreService.triggerDataEvent(i,!0)}},0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!0)}},e.prototype._handleAnyTextareaChanges=function(){var a=this,n=this._textarea.value;setTimeout(function(){if(!a._isComposing){var l=a._textarea.value.replace(n,"");l.length>0&&a._coreService.triggerDataEvent(l,!0)}},0)},e.prototype.updateCompositionElements=function(a){var n=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var l=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),r=this._bufferService.buffer.y*l,i=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=l+"px",this._compositionView.style.lineHeight=l+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=i+"px",this._textarea.style.top=r+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}a||setTimeout(function(){return n.updateCompositionElements(!0)},0)}},e=b([g(2,_.IBufferService),g(3,_.IOptionsService),g(4,s.ICharSizeService),g(5,_.ICoreService)],e)}();v.CompositionHelper=p},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(r,i){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var c in o)o.hasOwnProperty(c)&&(t[c]=o[c])})(r,i)},function(r,i){function t(){this.constructor=r}b(r,i),r.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}),s=this&&this.__decorate||function(r,i,t,o){var c,d=arguments.length,f=d<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(r,i,t,o);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(f=(d<3?c(f):d>3?c(i,t,f):c(i,t))||f);return d>3&&f&&Object.defineProperty(i,t,f),f},_=this&&this.__param||function(r,i){return function(t,o){i(t,o,r)}};Object.defineProperty(v,"__esModule",{value:!0}),v.Viewport=void 0;var p=T(2),e=T(7),a=T(5),n=T(1),l=function(r){function i(t,o,c,d,f,h,u){var E=r.call(this)||this;return E._scrollLines=t,E._viewportElement=o,E._scrollArea=c,E._bufferService=d,E._optionsService=f,E._charSizeService=h,E._renderService=u,E.scrollBarWidth=0,E._currentRowHeight=0,E._lastRecordedBufferLength=0,E._lastRecordedViewportHeight=0,E._lastRecordedBufferHeight=0,E._lastTouchY=0,E._lastScrollTop=0,E._wheelPartialScroll=0,E._refreshAnimationFrame=null,E._ignoreNextScrollEvent=!1,E.scrollBarWidth=E._viewportElement.offsetWidth-E._scrollArea.offsetWidth||15,E.register(e.addDisposableDomListener(E._viewportElement,"scroll",E._onScroll.bind(E))),setTimeout(function(){return E.syncScrollArea()},0),E}return g(i,r),i.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},i.prototype._refresh=function(t){var o=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return o._innerRefresh()}))},i.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var o=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==o&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=o),this._refreshAnimationFrame=null},i.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var o=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===o&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},i.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var o=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(o,!0)}},i.prototype._bubbleScroll=function(t,o){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(o<0&&this._viewportElement.scrollTop!==0||o>0&&c<this._lastRecordedBufferHeight)||(t.cancelable&&t.preventDefault(),!1)},i.prototype.onWheel=function(t){var o=this._getPixelsScrolled(t);return o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(t,o))},i.prototype._getPixelsScrolled=function(t){if(t.deltaY===0)return 0;var o=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_LINE?o*=this._currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._currentRowHeight*this._bufferService.rows),o},i.prototype.getLinesScrolled=function(t){if(t.deltaY===0)return 0;var o=this._applyScrollModifier(t.deltaY,t);return t.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):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._bufferService.rows),o},i.prototype._applyScrollModifier=function(t,o){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&o.altKey||c==="ctrl"&&o.ctrlKey||c==="shift"&&o.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},i.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},i.prototype.onTouchMove=function(t){var o=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(t,o))},i=s([_(3,n.IBufferService),_(4,n.IOptionsService),_(5,a.ICharSizeService),_(6,a.IRenderService)],i)}(p.Disposable);v.Viewport=l},function(I,v,T){"use strict";function b(p){return p.replace(/\r?\n/g,"\r")}function g(p,e){return e?"[200~"+p+"[201~":p}function s(p,e,a){p=g(p=b(p),a.decPrivateModes.bracketedPasteMode),a.triggerDataEvent(p,!0),e.value=""}function _(p,e,a){var n=a.getBoundingClientRect(),l=p.clientX-n.left-10,r=p.clientY-n.top-10;e.style.width="20px",e.style.height="20px",e.style.left=l+"px",e.style.top=r+"px",e.style.zIndex="1000",e.focus()}Object.defineProperty(v,"__esModule",{value:!0}),v.rightClickHandler=v.moveTextAreaUnderMouseCursor=v.paste=v.handlePasteEvent=v.copyHandler=v.bracketTextForPaste=v.prepareTextForTerminal=void 0,v.prepareTextForTerminal=b,v.bracketTextForPaste=g,v.copyHandler=function(p,e){p.clipboardData&&p.clipboardData.setData("text/plain",e.selectionText),p.preventDefault()},v.handlePasteEvent=function(p,e,a){p.stopPropagation(),p.clipboardData&&s(p.clipboardData.getData("text/plain"),e,a)},v.paste=s,v.moveTextAreaUnderMouseCursor=_,v.rightClickHandler=function(p,e,a,n,l){_(p,e,a),l&&!n.isClickInSelection(p)&&n.selectWordAtCursor(p),e.value=n.selectionText,e.select()}},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(r,i){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var c in o)o.hasOwnProperty(c)&&(t[c]=o[c])})(r,i)},function(r,i){function t(){this.constructor=r}b(r,i),r.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(v,"__esModule",{value:!0}),v.EscapeSequenceParser=v.VT500_TRANSITION_TABLE=v.TransitionTable=void 0;var s=T(2),_=T(15),p=T(21),e=T(22),a=T(24),n=function(){function r(i){this.table=new Uint8Array(i)}return r.prototype.setDefault=function(i,t){_.fill(this.table,i<<4|t)},r.prototype.add=function(i,t,o,c){this.table[t<<8|i]=o<<4|c},r.prototype.addMany=function(i,t,o,c){for(var d=0;d<i.length;d++)this.table[t<<8|i[d]]=o<<4|c},r}();v.TransitionTable=n,v.VT500_TRANSITION_TABLE=function(){var r=new n(4095),i=Array.apply(null,Array(256)).map(function(h,u){return u}),t=function(h,u){return i.slice(h,u)},o=t(32,127),c=t(0,24);c.push(25),c.push.apply(c,t(28,32));var d,f=t(0,14);for(d in r.setDefault(1,0),r.addMany(o,0,2,0),f)r.addMany([24,26,153,154],d,3,0),r.addMany(t(128,144),d,3,0),r.addMany(t(144,152),d,3,0),r.add(156,d,0,0),r.add(27,d,11,1),r.add(157,d,4,8),r.addMany([152,158,159],d,0,7),r.add(155,d,11,3),r.add(144,d,11,9);return r.addMany(c,0,3,0),r.addMany(c,1,3,1),r.add(127,1,0,1),r.addMany(c,8,0,8),r.addMany(c,3,3,3),r.add(127,3,0,3),r.addMany(c,4,3,4),r.add(127,4,0,4),r.addMany(c,6,3,6),r.addMany(c,5,3,5),r.add(127,5,0,5),r.addMany(c,2,3,2),r.add(127,2,0,2),r.add(93,1,4,8),r.addMany(o,8,5,8),r.add(127,8,5,8),r.addMany([156,27,24,26,7],8,6,0),r.addMany(t(28,32),8,0,8),r.addMany([88,94,95],1,0,7),r.addMany(o,7,0,7),r.addMany(c,7,0,7),r.add(156,7,0,0),r.add(127,7,0,7),r.add(91,1,11,3),r.addMany(t(64,127),3,7,0),r.addMany(t(48,60),3,8,4),r.addMany([60,61,62,63],3,9,4),r.addMany(t(48,60),4,8,4),r.addMany(t(64,127),4,7,0),r.addMany([60,61,62,63],4,0,6),r.addMany(t(32,64),6,0,6),r.add(127,6,0,6),r.addMany(t(64,127),6,0,0),r.addMany(t(32,48),3,9,5),r.addMany(t(32,48),5,9,5),r.addMany(t(48,64),5,0,6),r.addMany(t(64,127),5,7,0),r.addMany(t(32,48),4,9,5),r.addMany(t(32,48),1,9,2),r.addMany(t(32,48),2,9,2),r.addMany(t(48,127),2,10,0),r.addMany(t(48,80),1,10,0),r.addMany(t(81,88),1,10,0),r.addMany([89,90,92],1,10,0),r.addMany(t(96,127),1,10,0),r.add(80,1,11,9),r.addMany(c,9,0,9),r.add(127,9,0,9),r.addMany(t(28,32),9,0,9),r.addMany(t(32,48),9,9,12),r.addMany(t(48,60),9,8,10),r.addMany([60,61,62,63],9,9,10),r.addMany(c,11,0,11),r.addMany(t(32,128),11,0,11),r.addMany(t(28,32),11,0,11),r.addMany(c,10,0,10),r.add(127,10,0,10),r.addMany(t(28,32),10,0,10),r.addMany(t(48,60),10,8,10),r.addMany([60,61,62,63],10,0,11),r.addMany(t(32,48),10,9,12),r.addMany(c,12,0,12),r.add(127,12,0,12),r.addMany(t(28,32),12,0,12),r.addMany(t(32,48),12,9,12),r.addMany(t(48,64),12,0,11),r.addMany(t(64,127),12,12,13),r.addMany(t(64,127),10,12,13),r.addMany(t(64,127),9,12,13),r.addMany(c,13,13,13),r.addMany(o,13,13,13),r.add(127,13,0,13),r.addMany([27,156,24,26],13,14,0),r.add(160,0,2,0),r.add(160,8,5,8),r.add(160,6,0,6),r.add(160,11,0,11),r.add(160,13,13,13),r}();var l=function(r){function i(t){t===void 0&&(t=v.VT500_TRANSITION_TABLE);var o=r.call(this)||this;return o._transitions=t,o.initialState=0,o.currentState=o.initialState,o._params=new p.Params,o._params.addParam(0),o._collect=0,o.precedingCodepoint=0,o._printHandlerFb=function(c,d,f){},o._executeHandlerFb=function(c){},o._csiHandlerFb=function(c,d){},o._escHandlerFb=function(c){},o._errorHandlerFb=function(c){return c},o._printHandler=o._printHandlerFb,o._executeHandlers=Object.create(null),o._csiHandlers=Object.create(null),o._escHandlers=Object.create(null),o._oscParser=new e.OscParser,o._dcsParser=new a.DcsParser,o._errorHandler=o._errorHandlerFb,o.setEscHandler({final:"\\"},function(){}),o}return g(i,r),i.prototype._identifier=function(t,o){o===void 0&&(o=[64,126]);var c=0;if(t.prefix){if(t.prefix.length>1)throw new Error("only one byte as prefix supported");if((c=t.prefix.charCodeAt(0))&&60>c||c>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var d=0;d<t.intermediates.length;++d){var f=t.intermediates.charCodeAt(d);if(32>f||f>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=f}}if(t.final.length!==1)throw new Error("final must be a single byte");var h=t.final.charCodeAt(0);if(o[0]>h||h>o[1])throw new Error("final must be in range "+o[0]+" .. "+o[1]);return c<<=8,c|=h},i.prototype.identToString=function(t){for(var o=[];t;)o.push(String.fromCharCode(255&t)),t>>=8;return o.reverse().join("")},i.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},i.prototype.setPrintHandler=function(t){this._printHandler=t},i.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},i.prototype.addEscHandler=function(t,o){var c=this._identifier(t,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var d=this._escHandlers[c];return d.push(o),{dispose:function(){var f=d.indexOf(o);f!==-1&&d.splice(f,1)}}},i.prototype.setEscHandler=function(t,o){this._escHandlers[this._identifier(t,[48,126])]=[o]},i.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},i.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},i.prototype.setExecuteHandler=function(t,o){this._executeHandlers[t.charCodeAt(0)]=o},i.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},i.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},i.prototype.addCsiHandler=function(t,o){var c=this._identifier(t);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var d=this._csiHandlers[c];return d.push(o),{dispose:function(){var f=d.indexOf(o);f!==-1&&d.splice(f,1)}}},i.prototype.setCsiHandler=function(t,o){this._csiHandlers[this._identifier(t)]=[o]},i.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},i.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},i.prototype.addDcsHandler=function(t,o){return this._dcsParser.addHandler(this._identifier(t),o)},i.prototype.setDcsHandler=function(t,o){this._dcsParser.setHandler(this._identifier(t),o)},i.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},i.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},i.prototype.addOscHandler=function(t,o){return this._oscParser.addHandler(t,o)},i.prototype.setOscHandler=function(t,o){this._oscParser.setHandler(t,o)},i.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},i.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},i.prototype.setErrorHandler=function(t){this._errorHandler=t},i.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},i.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},i.prototype.parse=function(t,o){for(var c=0,d=0,f=this.currentState,h=this._oscParser,u=this._dcsParser,E=this._collect,x=this._params,O=this._transitions.table,C=0;C<o;++C){switch((d=O[f<<8|((c=t[C])<160?c:160)])>>4){case 2:for(var w=C+1;;++w){if(w>=o||(c=t[w])<32||c>126&&c<160){this._printHandler(t,C,w),C=w-1;break}if(++w>=o||(c=t[w])<32||c>126&&c<160){this._printHandler(t,C,w),C=w-1;break}if(++w>=o||(c=t[w])<32||c>126&&c<160){this._printHandler(t,C,w),C=w-1;break}if(++w>=o||(c=t[w])<32||c>126&&c<160){this._printHandler(t,C,w),C=w-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:C,code:c,currentState:f,collect:E,params:x,abort:!1}).abort)return;break;case 7:for(var S=this._csiHandlers[E<<8|c],D=S?S.length-1:-1;D>=0&&S[D](x)===!1;D--);D<0&&this._csiHandlerFb(E<<8|c,x),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:x.addParam(0);break;case 58:x.addSubParam(-1);break;default:x.addDigit(c-48)}while(++C<o&&(c=t[C])>47&&c<60);C--;break;case 9:E<<=8,E|=c;break;case 10:for(var R=this._escHandlers[E<<8|c],P=R?R.length-1:-1;P>=0&&R[P]()===!1;P--);P<0&&this._escHandlerFb(E<<8|c),this.precedingCodepoint=0;break;case 11:x.reset(),x.addParam(0),E=0;break;case 12:u.hook(E<<8|c,x);break;case 13:for(var N=C+1;;++N)if(N>=o||(c=t[N])===24||c===26||c===27||c>127&&c<160){u.put(t,C,N),C=N-1;break}break;case 14:u.unhook(c!==24&&c!==26),c===27&&(d|=1),x.reset(),x.addParam(0),E=0,this.precedingCodepoint=0;break;case 4:h.start();break;case 5:for(var M=C+1;;M++)if(M>=o||(c=t[M])<32||c>127&&c<=159){h.put(t,C,M),C=M-1;break}break;case 6:h.end(c!==24&&c!==26),c===27&&(d|=1),x.reset(),x.addParam(0),E=0,this.precedingCodepoint=0}f=15&d}this._collect=E,this.currentState=f},i}(s.Disposable);v.EscapeSequenceParser=l},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(h,u){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var O in x)x.hasOwnProperty(O)&&(E[O]=x[O])})(h,u)},function(h,u){function E(){this.constructor=h}b(h,u),h.prototype=u===null?Object.create(u):(E.prototype=u.prototype,new E)}),s=this&&this.__decorate||function(h,u,E,x){var O,C=arguments.length,w=C<3?u:x===null?x=Object.getOwnPropertyDescriptor(u,E):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(h,u,E,x);else for(var S=h.length-1;S>=0;S--)(O=h[S])&&(w=(C<3?O(w):C>3?O(u,E,w):O(u,E))||w);return C>3&&w&&Object.defineProperty(u,E,w),w},_=this&&this.__param||function(h,u){return function(E,x){u(E,x,h)}};Object.defineProperty(v,"__esModule",{value:!0}),v.Renderer=void 0;var p=T(41),e=T(47),a=T(48),n=T(49),l=T(29),r=T(2),i=T(5),t=T(1),o=T(25),c=T(0),d=1,f=function(h){function u(E,x,O,C,w,S,D,R,P){var N=h.call(this)||this;N._colors=E,N._screenElement=x,N._bufferService=w,N._charSizeService=S,N._optionsService=D,N._id=d++,N._onRequestRedraw=new c.EventEmitter;var M=N._optionsService.options.allowTransparency;return N._characterJoinerRegistry=new l.CharacterJoinerRegistry(N._bufferService),N._renderLayers=[new p.TextRenderLayer(N._screenElement,0,N._colors,N._characterJoinerRegistry,M,N._id,N._bufferService,D),new e.SelectionRenderLayer(N._screenElement,1,N._colors,N._id,N._bufferService,D),new n.LinkRenderLayer(N._screenElement,2,N._colors,N._id,O,C,N._bufferService,D),new a.CursorRenderLayer(N._screenElement,3,N._colors,N._id,N._onRequestRedraw,N._bufferService,D,R,P)],N.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},N._devicePixelRatio=window.devicePixelRatio,N._updateDimensions(),N.onOptionsChanged(),N}return g(u,h),Object.defineProperty(u.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),u.prototype.dispose=function(){for(var E=0,x=this._renderLayers;E<x.length;E++)x[E].dispose();h.prototype.dispose.call(this),o.removeTerminalFromCache(this._id)},u.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},u.prototype.setColors=function(E){this._colors=E;for(var x=0,O=this._renderLayers;x<O.length;x++){var C=O[x];C.setColors(this._colors),C.reset()}},u.prototype.onResize=function(E,x){this._updateDimensions();for(var O=0,C=this._renderLayers;O<C.length;O++)C[O].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},u.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},u.prototype.onBlur=function(){this._runOperation(function(E){return E.onBlur()})},u.prototype.onFocus=function(){this._runOperation(function(E){return E.onFocus()})},u.prototype.onSelectionChanged=function(E,x,O){O===void 0&&(O=!1),this._runOperation(function(C){return C.onSelectionChanged(E,x,O)})},u.prototype.onCursorMove=function(){this._runOperation(function(E){return E.onCursorMove()})},u.prototype.onOptionsChanged=function(){this._runOperation(function(E){return E.onOptionsChanged()})},u.prototype.clear=function(){this._runOperation(function(E){return E.reset()})},u.prototype._runOperation=function(E){for(var x=0,O=this._renderLayers;x<O.length;x++)E(O[x])},u.prototype.renderRows=function(E,x){for(var O=0,C=this._renderLayers;O<C.length;O++)C[O].onGridChanged(E,x)},u.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},u.prototype.registerCharacterJoiner=function(E){return this._characterJoinerRegistry.registerCharacterJoiner(E)},u.prototype.deregisterCharacterJoiner=function(E){return this._characterJoinerRegistry.deregisterCharacterJoiner(E)},u=s([_(4,t.IBufferService),_(5,i.ICharSizeService),_(6,t.IOptionsService),_(7,t.ICoreService),_(8,i.ICoreBrowserService)],u)}(r.Disposable);v.Renderer=f},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(r,i){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var c in o)o.hasOwnProperty(c)&&(t[c]=o[c])})(r,i)},function(r,i){function t(){this.constructor=r}b(r,i),r.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(v,"__esModule",{value:!0}),v.TextRenderLayer=void 0;var s=T(42),_=T(13),p=T(6),e=T(3),a=T(29),n=T(4),l=function(r){function i(t,o,c,d,f,h,u,E){var x=r.call(this,t,"text",o,f,c,h,u,E)||this;return x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new n.CellData,x._state=new s.GridCache,x._characterJoinerRegistry=d,x}return g(i,r),i.prototype.resize=function(t){r.prototype.resize.call(this,t);var o=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===o||(this._characterWidth=t.scaledCharWidth,this._characterFont=o,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},i.prototype.reset=function(){this._state.clear(),this._clearAll()},i.prototype._forEachCell=function(t,o,c,d){for(var f=t;f<=o;f++)for(var h=f+this._bufferService.buffer.ydisp,u=this._bufferService.buffer.lines.get(h),E=c?c.getJoinedCharacters(h):[],x=0;x<this._bufferService.cols;x++){u.loadCell(x,this._workCell);var O=this._workCell,C=!1,w=x;if(O.getWidth()!==0){if(E.length>0&&x===E[0][0]){C=!0;var S=E.shift();O=new a.JoinedCellData(this._workCell,u.translateToString(!0,S[0],S[1]),S[1]-S[0]),w=S[1]-1}!C&&this._isOverlapping(O)&&w<u.length-1&&u.getCodePoint(w+1)===e.NULL_CELL_CODE&&(O.content&=-12582913,O.content|=2<<22),d(O,x,f),x=w}}},i.prototype._drawBackground=function(t,o){var c=this,d=this._ctx,f=this._bufferService.cols,h=0,u=0,E=null;d.save(),this._forEachCell(t,o,null,function(x,O,C){var w=null;x.isInverse()?w=x.isFgDefault()?c._colors.foreground.css:x.isFgRGB()?"rgb("+p.AttributeData.toColorRGB(x.getFgColor()).join(",")+")":c._colors.ansi[x.getFgColor()].css:x.isBgRGB()?w="rgb("+p.AttributeData.toColorRGB(x.getBgColor()).join(",")+")":x.isBgPalette()&&(w=c._colors.ansi[x.getBgColor()].css),E===null&&(h=O,u=C),C!==u?(d.fillStyle=E||"",c._fillCells(h,u,f-h,1),h=O,u=C):E!==w&&(d.fillStyle=E||"",c._fillCells(h,u,O-h,1),h=O,u=C),E=w}),E!==null&&(d.fillStyle=E,this._fillCells(h,u,f-h,1)),d.restore()},i.prototype._drawForeground=function(t,o){var c=this;this._forEachCell(t,o,this._characterJoinerRegistry,function(d,f,h){if(!d.isInvisible()&&(c._drawChars(d,f,h),d.isUnderline())){if(c._ctx.save(),d.isInverse())if(d.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(d.isBgRGB())c._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(d.getBgColor()).join(",")+")";else{var u=d.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&u<8&&(u+=8),c._ctx.fillStyle=c._colors.ansi[u].css}else if(d.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(d.isFgRGB())c._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(d.getFgColor()).join(",")+")";else{var E=d.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&E<8&&(E+=8),c._ctx.fillStyle=c._colors.ansi[E].css}c._fillBottomLineAtCells(f,h,d.getWidth()),c._ctx.restore()}})},i.prototype.onGridChanged=function(t,o){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,t,this._bufferService.cols,o-t+1),this._drawBackground(t,o),this._drawForeground(t,o))},i.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},i.prototype._isOverlapping=function(t){if(t.getWidth()!==1)return!1;if(t.getCode()<256)return!1;var o=t.getChars();if(this._characterOverlapCache.hasOwnProperty(o))return this._characterOverlapCache[o];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(o).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[o]=c,c},i}(_.BaseRenderLayer);v.TextRenderLayer=l},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.GridCache=void 0;var b=function(){function g(){this.cache=[]}return g.prototype.resize=function(s,_){for(var p=0;p<s;p++){this.cache.length<=p&&this.cache.push([]);for(var e=this.cache[p].length;e<_;e++)this.cache[p].push(void 0);this.cache[p].length=_}this.cache.length=s},g.prototype.clear=function(){for(var s=0;s<this.cache.length;s++)for(var _=0;_<this.cache[s].length;_++)this.cache[s][_]=void 0},g}();v.GridCache=b},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(c,d){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var u in h)h.hasOwnProperty(u)&&(f[u]=h[u])})(c,d)},function(c,d){function f(){this.constructor=c}b(c,d),c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)});Object.defineProperty(v,"__esModule",{value:!0}),v.NoneCharAtlas=v.DynamicCharAtlas=v.getGlyphCacheKey=void 0;var s=T(9),_=T(44),p=T(27),e=T(46),a=T(11),n=T(28),l=T(10),r={css:"rgba(0, 0, 0, 0)",rgba:0};function i(c){return c.code<<21|c.bg<<12|c.fg<<3|(c.bold?0:4)+(c.dim?0:2)+(c.italic?0:1)}v.getGlyphCacheKey=i;var t=function(c){function d(f,h){var u=c.call(this)||this;u._config=h,u._drawToCacheCount=0,u._glyphsWaitingOnBitmap=[],u._bitmapCommitTimeout=null,u._bitmap=null,u._cacheCanvas=f.createElement("canvas"),u._cacheCanvas.width=1024,u._cacheCanvas.height=1024,u._cacheCtx=n.throwIfFalsy(u._cacheCanvas.getContext("2d",{alpha:!0}));var E=f.createElement("canvas");E.width=u._config.scaledCharWidth,E.height=u._config.scaledCharHeight,u._tmpCtx=n.throwIfFalsy(E.getContext("2d",{alpha:u._config.allowTransparency})),u._width=Math.floor(1024/u._config.scaledCharWidth),u._height=Math.floor(1024/u._config.scaledCharHeight);var x=u._width*u._height;return u._cacheMap=new e.LRUMap(x),u._cacheMap.prealloc(x),u}return g(d,c),d.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},d.prototype.beginFrame=function(){this._drawToCacheCount=0},d.prototype.draw=function(f,h,u,E){if(h.code===32)return!0;if(!this._canCache(h))return!1;var x=i(h),O=this._cacheMap.get(x);if(O!=null)return this._drawFromCache(f,O,u,E),!0;if(this._drawToCacheCount<100){var C=void 0;C=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var w=this._drawToCache(h,C);return this._cacheMap.set(x,w),this._drawFromCache(f,w,u,E),!0}return!1},d.prototype._canCache=function(f){return f.code<256},d.prototype._toCoordinateX=function(f){return f%this._width*this._config.scaledCharWidth},d.prototype._toCoordinateY=function(f){return Math.floor(f/this._width)*this._config.scaledCharHeight},d.prototype._drawFromCache=function(f,h,u,E){if(!h.isEmpty){var x=this._toCoordinateX(h.index),O=this._toCoordinateY(h.index);f.drawImage(h.inBitmap?this._bitmap:this._cacheCanvas,x,O,this._config.scaledCharWidth,this._config.scaledCharHeight,u,E,this._config.scaledCharWidth,this._config.scaledCharHeight)}},d.prototype._getColorFromAnsiIndex=function(f){return f<this._config.colors.ansi.length?this._config.colors.ansi[f]:p.DEFAULT_ANSI_COLORS[f]},d.prototype._getBackgroundColor=function(f){return this._config.allowTransparency?r:f.bg===s.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:f.bg<256?this._getColorFromAnsiIndex(f.bg):this._config.colors.background},d.prototype._getForegroundColor=function(f){return f.fg===s.INVERTED_DEFAULT_COLOR?l.color.opaque(this._config.colors.background):f.fg<256?this._getColorFromAnsiIndex(f.fg):this._config.colors.foreground},d.prototype._drawToCache=function(f,h){this._drawToCacheCount++,this._tmpCtx.save();var u=this._getBackgroundColor(f);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=u.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var E=f.bold?this._config.fontWeightBold:this._config.fontWeight,x=f.italic?"italic":"";this._tmpCtx.font=x+" "+E+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(f).css,f.dim&&(this._tmpCtx.globalAlpha=s.DIM_OPACITY),this._tmpCtx.fillText(f.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var O=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),C=!1;this._config.allowTransparency||(C=function(R,P){for(var N=!0,M=P.rgba>>>24,z=P.rgba>>>16&255,X=P.rgba>>>8&255,k=0;k<R.data.length;k+=4)R.data[k]===M&&R.data[k+1]===z&&R.data[k+2]===X?R.data[k+3]=0:N=!1;return N}(O,u));var w=this._toCoordinateX(h),S=this._toCoordinateY(h);this._cacheCtx.putImageData(O,w,S);var D={index:h,isEmpty:C,inBitmap:!1};return this._addGlyphToBitmap(D),D},d.prototype._addGlyphToBitmap=function(f){var h=this;!("createImageBitmap"in window)||a.isFirefox||a.isSafari||(this._glyphsWaitingOnBitmap.push(f),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return h._generateBitmap()},100)))},d.prototype._generateBitmap=function(){var f=this,h=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(u){f._bitmap=u;for(var E=0;E<h.length;E++)h[E].inBitmap=!0}),this._bitmapCommitTimeout=null},d}(_.BaseCharAtlas);v.DynamicCharAtlas=t;var o=function(c){function d(f,h){return c.call(this)||this}return g(d,c),d.prototype.draw=function(f,h,u,E){return!1},d}(_.BaseCharAtlas);v.NoneCharAtlas=o},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.BaseCharAtlas=void 0;var b=function(){function g(){this._didWarmUp=!1}return g.prototype.dispose=function(){},g.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},g.prototype._doWarmUp=function(){},g.prototype.beginFrame=function(){},g}();v.BaseCharAtlas=b},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.ColorContrastCache=void 0;var b=function(){function g(){this._color={},this._rgba={}}return g.prototype.clear=function(){this._color={},this._rgba={}},g.prototype.setCss=function(s,_,p){this._rgba[s]||(this._rgba[s]={}),this._rgba[s][_]=p},g.prototype.getCss=function(s,_){return this._rgba[s]?this._rgba[s][_]:void 0},g.prototype.setColor=function(s,_,p){this._color[s]||(this._color[s]={}),this._color[s][_]=p},g.prototype.getColor=function(s,_){return this._color[s]?this._color[s][_]:void 0},g}();v.ColorContrastCache=b},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.LRUMap=void 0;var b=function(){function g(s){this.capacity=s,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return g.prototype._unlinkNode=function(s){var _=s.prev,p=s.next;s===this._head&&(this._head=p),s===this._tail&&(this._tail=_),_!==null&&(_.next=p),p!==null&&(p.prev=_)},g.prototype._appendNode=function(s){var _=this._tail;_!==null&&(_.next=s),s.prev=_,s.next=null,this._tail=s,this._head===null&&(this._head=s)},g.prototype.prealloc=function(s){for(var _=this._nodePool,p=0;p<s;p++)_.push({prev:null,next:null,key:null,value:null})},g.prototype.get=function(s){var _=this._map[s];return _!==void 0?(this._unlinkNode(_),this._appendNode(_),_.value):null},g.prototype.peekValue=function(s){var _=this._map[s];return _!==void 0?_.value:null},g.prototype.peek=function(){var s=this._head;return s===null?null:s.value},g.prototype.set=function(s,_){var p=this._map[s];if(p!==void 0)p=this._map[s],this._unlinkNode(p),p.value=_;else if(this.size>=this.capacity)p=this._head,this._unlinkNode(p),delete this._map[p.key],p.key=s,p.value=_,this._map[s]=p;else{var e=this._nodePool;e.length>0?((p=e.pop()).key=s,p.value=_):p={prev:null,next:null,key:s,value:_},this._map[s]=p,this.size++}this._appendNode(p)},g}();v.LRUMap=b},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(_,p){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])})(_,p)},function(_,p){function e(){this.constructor=_}b(_,p),_.prototype=p===null?Object.create(p):(e.prototype=p.prototype,new e)});Object.defineProperty(v,"__esModule",{value:!0}),v.SelectionRenderLayer=void 0;var s=function(_){function p(e,a,n,l,r,i){var t=_.call(this,e,"selection",a,!0,n,l,r,i)||this;return t._clearState(),t}return g(p,_),p.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},p.prototype.resize=function(e){_.prototype.resize.call(this,e),this._clearState()},p.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},p.prototype.onSelectionChanged=function(e,a,n){if(this._didStateChange(e,a,n,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&a){var l=e[1]-this._bufferService.buffer.ydisp,r=a[1]-this._bufferService.buffer.ydisp,i=Math.max(l,0),t=Math.min(r,this._bufferService.rows-1);if(!(i>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var o=e[0],c=a[0]-o,d=t-i+1;this._fillCells(o,i,c,d)}else{o=l===i?e[0]:0;var f=i===t?a[0]:this._bufferService.cols;this._fillCells(o,i,f-o,1);var h=Math.max(t-i-1,0);if(this._fillCells(0,i+1,this._bufferService.cols,h),i!==t){var u=r===t?a[0]:this._bufferService.cols;this._fillCells(0,t,u,1)}}this._state.start=[e[0],e[1]],this._state.end=[a[0],a[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},p.prototype._didStateChange=function(e,a,n,l){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(a,this._state.end)||n!==this._state.columnSelectMode||l!==this._state.ydisp},p.prototype._areCoordinatesEqual=function(e,a){return!(!e||!a)&&e[0]===a[0]&&e[1]===a[1]},p}(T(13).BaseRenderLayer);v.SelectionRenderLayer=s},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(a,n){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var i in r)r.hasOwnProperty(i)&&(l[i]=r[i])})(a,n)},function(a,n){function l(){this.constructor=a}b(a,n),a.prototype=n===null?Object.create(n):(l.prototype=n.prototype,new l)});Object.defineProperty(v,"__esModule",{value:!0}),v.CursorRenderLayer=void 0;var s=T(13),_=T(4),p=function(a){function n(l,r,i,t,o,c,d,f,h){var u=a.call(this,l,"cursor",r,!0,i,t,c,d)||this;return u._onRequestRedraw=o,u._coreService=f,u._coreBrowserService=h,u._cell=new _.CellData,u._state={x:0,y:0,isFocused:!1,style:"",width:0},u._cursorRenderers={bar:u._renderBarCursor.bind(u),block:u._renderBlockCursor.bind(u),underline:u._renderUnderlineCursor.bind(u)},u}return g(n,a),n.prototype.resize=function(l){a.prototype.resize.call(this,l),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},n.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},n.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},n.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},n.prototype.onOptionsChanged=function(){var l,r=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new e(this._coreBrowserService.isFocused,function(){r._render(!0)})):((l=this._cursorBlinkStateManager)===null||l===void 0||l.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},n.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},n.prototype.onGridChanged=function(l,r){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},n.prototype._render=function(l){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=r-this._bufferService.buffer.ydisp;if(i<0||i>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(r).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var o=this._optionsService.options.cursorStyle;return o&&o!=="block"?this._cursorRenderers[o](t,i,this._cell):this._renderBlurCursor(t,i,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=i,this._state.isFocused=!1,this._state.style=o,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===i&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,i,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=i,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},n.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},n.prototype._renderBarCursor=function(l,r,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(l,r,this._optionsService.options.cursorWidth),this._ctx.restore()},n.prototype._renderBlockCursor=function(l,r,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(l,r,i.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(i,l,r),this._ctx.restore()},n.prototype._renderUnderlineCursor=function(l,r,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(l,r),this._ctx.restore()},n.prototype._renderBlurCursor=function(l,r,i){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(l,r,i.getWidth(),1),this._ctx.restore()},n}(s.BaseRenderLayer);v.CursorRenderLayer=p;var e=function(){function a(n,l){this._renderCallback=l,this.isCursorVisible=!0,n&&this._restartInterval()}return Object.defineProperty(a.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),a.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},a.prototype.restartBlinkAnimation=function(){var n=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0})))},a.prototype._restartInterval=function(n){var l=this;n===void 0&&(n=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(l._animationTimeRestarted){var r=600-(Date.now()-l._animationTimeRestarted);if(l._animationTimeRestarted=void 0,r>0)return void l._restartInterval(r)}l.isCursorVisible=!1,l._animationFrame=window.requestAnimationFrame(function(){l._renderCallback(),l._animationFrame=void 0}),l._blinkInterval=window.setInterval(function(){if(l._animationTimeRestarted){var i=600-(Date.now()-l._animationTimeRestarted);return l._animationTimeRestarted=void 0,void l._restartInterval(i)}l.isCursorVisible=!l.isCursorVisible,l._animationFrame=window.requestAnimationFrame(function(){l._renderCallback(),l._animationFrame=void 0})},600)},n)},a.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},a.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},a}()},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(a,n){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var i in r)r.hasOwnProperty(i)&&(l[i]=r[i])})(a,n)},function(a,n){function l(){this.constructor=a}b(a,n),a.prototype=n===null?Object.create(n):(l.prototype=n.prototype,new l)});Object.defineProperty(v,"__esModule",{value:!0}),v.LinkRenderLayer=void 0;var s=T(13),_=T(9),p=T(26),e=function(a){function n(l,r,i,t,o,c,d,f){var h=a.call(this,l,"link",r,!0,i,t,d,f)||this;return o.onShowLinkUnderline(function(u){return h._onShowLinkUnderline(u)}),o.onHideLinkUnderline(function(u){return h._onHideLinkUnderline(u)}),c.onShowLinkUnderline(function(u){return h._onShowLinkUnderline(u)}),c.onHideLinkUnderline(function(u){return h._onHideLinkUnderline(u)}),h}return g(n,a),n.prototype.resize=function(l){a.prototype.resize.call(this,l),this._state=void 0},n.prototype.reset=function(){this._clearCurrentLink()},n.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var l=this._state.y2-this._state.y1-1;l>0&&this._clearCells(0,this._state.y1+1,this._state.cols,l),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},n.prototype._onShowLinkUnderline=function(l){if(l.fg===_.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:l.fg&&p.is256Color(l.fg)?this._ctx.fillStyle=this._colors.ansi[l.fg].css:this._ctx.fillStyle=this._colors.foreground.css,l.y1===l.y2)this._fillBottomLineAtCells(l.x1,l.y1,l.x2-l.x1);else{this._fillBottomLineAtCells(l.x1,l.y1,l.cols-l.x1);for(var r=l.y1+1;r<l.y2;r++)this._fillBottomLineAtCells(0,r,l.cols);this._fillBottomLineAtCells(0,l.y2,l.x2)}this._state=l},n.prototype._onHideLinkUnderline=function(l){this._clearCurrentLink()},n}(s.BaseRenderLayer);v.LinkRenderLayer=e},function(I,v,T){"use strict";var b=this&&this.__decorate||function(a,n,l,r){var i,t=arguments.length,o=t<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,l):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,n,l,r);else for(var c=a.length-1;c>=0;c--)(i=a[c])&&(o=(t<3?i(o):t>3?i(n,l,o):i(n,l))||o);return t>3&&o&&Object.defineProperty(n,l,o),o},g=this&&this.__param||function(a,n){return function(l,r){n(l,r,a)}};Object.defineProperty(v,"__esModule",{value:!0}),v.MouseZone=v.Linkifier=void 0;var s=T(0),_=T(1),p=function(){function a(n,l,r){this._bufferService=n,this._logService=l,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new s.EventEmitter,this._onHideLinkUnderline=new s.EventEmitter,this._onLinkTooltip=new s.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(a.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),a.prototype.attachToDom=function(n,l){this._element=n,this._mouseZoneManager=l},a.prototype.linkifyRows=function(n,l){var r=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=n,this._rowsToLinkify.end=l):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,n),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,l)),this._mouseZoneManager.clearAll(n,l),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return r._linkifyRows()},a._timeBeforeLatency))},a.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var n=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var l=n.ydisp+this._rowsToLinkify.start;if(!(l>=n.lines.length)){for(var r=n.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,i=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,l,r,i,i);t.hasNext();)for(var o=t.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[c]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},a.prototype.registerLinkMatcher=function(n,l,r){if(r===void 0&&(r={}),!l)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:n,handler:l,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,willLinkActivate:r.willLinkActivate,priority:r.priority||0};return this._addLinkMatcherToList(i),i.id},a.prototype._addLinkMatcherToList=function(n){if(this._linkMatchers.length!==0){for(var l=this._linkMatchers.length-1;l>=0;l--)if(n.priority<=this._linkMatchers[l].priority)return void this._linkMatchers.splice(l+1,0,n);this._linkMatchers.splice(0,0,n)}else this._linkMatchers.push(n)},a.prototype.deregisterLinkMatcher=function(n){for(var l=0;l<this._linkMatchers.length;l++)if(this._linkMatchers[l].id===n)return this._linkMatchers.splice(l,1),!0;return!1},a.prototype._doLinkifyRow=function(n,l,r){for(var i,t=this,o=new RegExp(r.regex.source,(r.regex.flags||"")+"g"),c=-1,d=function(){var h=i[typeof r.matchIndex!="number"?0:r.matchIndex];if(!h)return f._logService.debug("match found without corresponding matchIndex",i,r),"break";if(c=l.indexOf(h,c+1),o.lastIndex=c+h.length,c<0)return"break";var u=f._bufferService.buffer.stringIndexToBufferIndex(n,c);if(u[0]<0)return"break";var E=f._bufferService.buffer.lines.get(u[0]);if(!E)return"break";var x=E.getFg(u[1]),O=x?x>>9&511:void 0;r.validationCallback?r.validationCallback(h,function(C){t._rowsTimeoutId||C&&t._addLink(u[1],u[0]-t._bufferService.buffer.ydisp,h,r,O)}):f._addLink(u[1],u[0]-f._bufferService.buffer.ydisp,h,r,O)},f=this;(i=o.exec(l))!==null&&!(d()==="break"););},a.prototype._addLink=function(n,l,r,i,t){var o=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(r),d=n%this._bufferService.cols,f=l+Math.floor(n/this._bufferService.cols),h=(d+c)%this._bufferService.cols,u=f+Math.floor((d+c)/this._bufferService.cols);h===0&&(h=this._bufferService.cols,u--),this._mouseZoneManager.add(new e(d+1,f+1,h+1,u+1,function(E){if(i.handler)return i.handler(E,r);var x=window.open();x?(x.opener=null,x.location.href=r):console.warn("Opening link blocked as opener could not be cleared")},function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(d,f,h,u,t)),o._element.classList.add("xterm-cursor-pointer")},function(E){o._onLinkTooltip.fire(o._createLinkHoverEvent(d,f,h,u,t)),i.hoverTooltipCallback&&i.hoverTooltipCallback(E,r,{start:{x:d,y:f},end:{x:h,y:u}})},function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(d,f,h,u,t)),o._element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()},function(E){return!i.willLinkActivate||i.willLinkActivate(E,r)}))}},a.prototype._createLinkHoverEvent=function(n,l,r,i,t){return{x1:n,y1:l,x2:r,y2:i,cols:this._bufferService.cols,fg:t}},a._timeBeforeLatency=200,a=b([g(0,_.IBufferService),g(1,_.ILogService),g(2,_.IUnicodeService)],a)}();v.Linkifier=p;var e=function(a,n,l,r,i,t,o,c,d){this.x1=a,this.y1=n,this.x2=l,this.y2=r,this.clickCallback=i,this.hoverCallback=t,this.tooltipCallback=o,this.leaveCallback=c,this.willLinkActivate=d};v.MouseZone=e},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(h,u){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var O in x)x.hasOwnProperty(O)&&(E[O]=x[O])})(h,u)},function(h,u){function E(){this.constructor=h}b(h,u),h.prototype=u===null?Object.create(u):(E.prototype=u.prototype,new E)}),s=this&&this.__decorate||function(h,u,E,x){var O,C=arguments.length,w=C<3?u:x===null?x=Object.getOwnPropertyDescriptor(u,E):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(h,u,E,x);else for(var S=h.length-1;S>=0;S--)(O=h[S])&&(w=(C<3?O(w):C>3?O(u,E,w):O(u,E))||w);return C>3&&w&&Object.defineProperty(u,E,w),w},_=this&&this.__param||function(h,u){return function(E,x){u(E,x,h)}};Object.defineProperty(v,"__esModule",{value:!0}),v.SelectionService=void 0;var p=T(11),e=T(52),a=T(4),n=T(0),l=T(5),r=T(1),i=T(30),t=T(53),o=T(2),c=String.fromCharCode(160),d=new RegExp(c,"g"),f=function(h){function u(E,x,O,C,w,S,D){var R=h.call(this)||this;return R._element=E,R._screenElement=x,R._bufferService=O,R._coreService=C,R._mouseService=w,R._optionsService=S,R._renderService=D,R._dragScrollAmount=0,R._enabled=!0,R._workCell=new a.CellData,R._mouseDownTimeStamp=0,R._onLinuxMouseSelection=R.register(new n.EventEmitter),R._onRedrawRequest=R.register(new n.EventEmitter),R._onSelectionChange=R.register(new n.EventEmitter),R._onRequestScrollLines=R.register(new n.EventEmitter),R._mouseMoveListener=function(P){return R._onMouseMove(P)},R._mouseUpListener=function(P){return R._onMouseUp(P)},R._coreService.onUserInput(function(){R.hasSelection&&R.clearSelection()}),R._trimListener=R._bufferService.buffer.lines.onTrim(function(P){return R._onTrim(P)}),R.register(R._bufferService.buffers.onBufferActivate(function(P){return R._onBufferActivate(P)})),R.enable(),R._model=new e.SelectionModel(R._bufferService),R._activeSelectionMode=0,R}return g(u,h),Object.defineProperty(u.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),u.prototype.dispose=function(){this._removeMouseDownListeners()},u.prototype.reset=function(){this.clearSelection()},u.prototype.disable=function(){this.clearSelection(),this._enabled=!1},u.prototype.enable=function(){this._enabled=!0},Object.defineProperty(u.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;return!(!E||!x)&&(E[0]!==x[0]||E[1]!==x[1])},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;if(!E||!x)return"";var O=this._bufferService.buffer,C=[];if(this._activeSelectionMode===3){if(E[0]===x[0])return"";for(var w=E[1];w<=x[1];w++){var S=O.translateBufferLineToString(w,!0,E[0],x[0]);C.push(S)}}else{var D=E[1]===x[1]?x[0]:void 0;for(C.push(O.translateBufferLineToString(E[1],!0,E[0],D)),w=E[1]+1;w<=x[1]-1;w++){var R=O.lines.get(w);S=O.translateBufferLineToString(w,!0),R&&R.isWrapped?C[C.length-1]+=S:C.push(S)}E[1]!==x[1]&&(R=O.lines.get(x[1]),S=O.translateBufferLineToString(x[1],!0,0,x[0]),R&&R.isWrapped?C[C.length-1]+=S:C.push(S))}return C.map(function(P){return P.replace(d," ")}).join(p.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),u.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},u.prototype.refresh=function(E){var x=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return x._refresh()})),p.isLinux&&E)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},u.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},u.prototype.isClickInSelection=function(E){var x=this._getMouseBufferCoords(E),O=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!!(O&&C&&x)&&this._areCoordsInSelection(x,O,C)},u.prototype._areCoordsInSelection=function(E,x,O){return E[1]>x[1]&&E[1]<O[1]||x[1]===O[1]&&E[1]===x[1]&&E[0]>=x[0]&&E[0]<O[0]||x[1]<O[1]&&E[1]===O[1]&&E[0]<O[0]||x[1]<O[1]&&E[1]===x[1]&&E[0]>=x[0]},u.prototype.selectWordAtCursor=function(E){var x=this._getMouseBufferCoords(E);x&&(this._selectWordAt(x,!1),this._model.selectionEnd=void 0,this.refresh(!0))},u.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},u.prototype.selectLines=function(E,x){this._model.clearSelection(),E=Math.max(E,0),x=Math.min(x,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,E],this._model.selectionEnd=[this._bufferService.cols,x],this.refresh(),this._onSelectionChange.fire()},u.prototype._onTrim=function(E){this._model.onTrim(E)&&this.refresh()},u.prototype._getMouseBufferCoords=function(E){var x=this._mouseService.getCoords(E,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(x)return x[0]--,x[1]--,x[1]+=this._bufferService.buffer.ydisp,x},u.prototype._getMouseEventScrollAmount=function(E){var x=i.getCoordsRelativeToElement(E,this._screenElement)[1],O=this._renderService.dimensions.canvasHeight;return x>=0&&x<=O?0:(x>O&&(x-=O),x=Math.min(Math.max(x,-50),50),(x/=50)/Math.abs(x)+Math.round(14*x))},u.prototype.shouldForceSelection=function(E){return p.isMac?E.altKey&&this._optionsService.options.macOptionClickForcesSelection:E.shiftKey},u.prototype.onMouseDown=function(E){if(this._mouseDownTimeStamp=E.timeStamp,(E.button!==2||!this.hasSelection)&&E.button===0){if(!this._enabled){if(!this.shouldForceSelection(E))return;E.stopPropagation()}E.preventDefault(),this._dragScrollAmount=0,this._enabled&&E.shiftKey?this._onIncrementalClick(E):E.detail===1?this._onSingleClick(E):E.detail===2?this._onDoubleClick(E):E.detail===3&&this._onTripleClick(E),this._addMouseDownListeners(),this.refresh(!0)}},u.prototype._addMouseDownListeners=function(){var E=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return E._dragScroll()},50)},u.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},u.prototype._onIncrementalClick=function(E){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(E))},u.prototype._onSingleClick=function(E){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(E)?3:0,this._model.selectionStart=this._getMouseBufferCoords(E),this._model.selectionStart){this._model.selectionEnd=void 0;var x=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);x&&x.length!==this._model.selectionStart[0]&&x.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},u.prototype._onDoubleClick=function(E){var x=this._getMouseBufferCoords(E);x&&(this._activeSelectionMode=1,this._selectWordAt(x,!0))},u.prototype._onTripleClick=function(E){var x=this._getMouseBufferCoords(E);x&&(this._activeSelectionMode=2,this._selectLineAt(x[1]))},u.prototype.shouldColumnSelect=function(E){return E.altKey&&!(p.isMac&&this._optionsService.options.macOptionClickForcesSelection)},u.prototype._onMouseMove=function(E){if(E.stopImmediatePropagation(),this._model.selectionStart){var x=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(E),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(E),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var O=this._bufferService.buffer;if(this._model.selectionEnd[1]<O.lines.length){var C=O.lines.get(this._model.selectionEnd[1]);C&&C.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}x&&x[0]===this._model.selectionEnd[0]&&x[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},u.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var E=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(E.ydisp+this._bufferService.rows,E.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=E.ydisp),this.refresh()}},u.prototype._onMouseUp=function(E){var x=E.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&x<500&&E.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var O=this._mouseService.getCoords(E,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(O&&O[0]!==void 0&&O[1]!==void 0){var C=t.moveToCellSequence(O[0]-1,O[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(C,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},u.prototype._onBufferActivate=function(E){var x=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=E.activeBuffer.lines.onTrim(function(O){return x._onTrim(O)})},u.prototype._convertViewportColToCharacterIndex=function(E,x){for(var O=x[0],C=0;x[0]>=C;C++){var w=E.loadCell(C,this._workCell).getChars().length;this._workCell.getWidth()===0?O--:w>1&&x[0]!==C&&(O+=w-1)}return O},u.prototype.setSelection=function(E,x,O){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[E,x],this._model.selectionStartLength=O,this.refresh()},u.prototype._getWordAt=function(E,x,O,C){if(O===void 0&&(O=!0),C===void 0&&(C=!0),!(E[0]>=this._bufferService.cols)){var w=this._bufferService.buffer,S=w.lines.get(E[1]);if(S){var D=w.translateBufferLineToString(E[1],!1),R=this._convertViewportColToCharacterIndex(S,E),P=R,N=E[0]-R,M=0,z=0,X=0,k=0;if(D.charAt(R)===" "){for(;R>0&&D.charAt(R-1)===" ";)R--;for(;P<D.length&&D.charAt(P+1)===" ";)P++}else{var F=E[0],U=E[0];S.getWidth(F)===0&&(M++,F--),S.getWidth(U)===2&&(z++,U++);var L=S.getString(U).length;for(L>1&&(k+=L-1,P+=L-1);F>0&&R>0&&!this._isCharWordSeparator(S.loadCell(F-1,this._workCell));){S.loadCell(F-1,this._workCell);var B=this._workCell.getChars().length;this._workCell.getWidth()===0?(M++,F--):B>1&&(X+=B-1,R-=B-1),R--,F--}for(;U<S.length&&P+1<D.length&&!this._isCharWordSeparator(S.loadCell(U+1,this._workCell));){S.loadCell(U+1,this._workCell);var Z=this._workCell.getChars().length;this._workCell.getWidth()===2?(z++,U++):Z>1&&(k+=Z-1,P+=Z-1),P++,U++}}P++;var re=R+N-M+X,me=Math.min(this._bufferService.cols,P-R+M+z-X-k);if(x||D.slice(R,P).trim()!==""){if(O&&re===0&&S.getCodePoint(0)!==32){var Ee=w.lines.get(E[1]-1);if(Ee&&S.isWrapped&&Ee.getCodePoint(this._bufferService.cols-1)!==32){var De=this._getWordAt([this._bufferService.cols-1,E[1]-1],!1,!0,!1);if(De){var te=this._bufferService.cols-De.start;re-=te,me+=te}}}if(C&&re+me===this._bufferService.cols&&S.getCodePoint(this._bufferService.cols-1)!==32){var Ce=w.lines.get(E[1]+1);if(Ce&&Ce.isWrapped&&Ce.getCodePoint(0)!==32){var we=this._getWordAt([0,E[1]+1],!1,!1,!0);we&&(me+=we.length)}}return{start:re,length:me}}}}},u.prototype._selectWordAt=function(E,x){var O=this._getWordAt(E,x);if(O){for(;O.start<0;)O.start+=this._bufferService.cols,E[1]--;this._model.selectionStart=[O.start,E[1]],this._model.selectionStartLength=O.length}},u.prototype._selectToWordAt=function(E){var x=this._getWordAt(E,!0);if(x){for(var O=E[1];x.start<0;)x.start+=this._bufferService.cols,O--;if(!this._model.areSelectionValuesReversed())for(;x.start+x.length>this._bufferService.cols;)x.length-=this._bufferService.cols,O++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?x.start:x.start+x.length,O]}},u.prototype._isCharWordSeparator=function(E){return E.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(E.getChars())>=0},u.prototype._selectLineAt=function(E){var x=this._bufferService.buffer.getWrappedRangeForLine(E);this._model.selectionStart=[0,x.first],this._model.selectionEnd=[this._bufferService.cols,x.last],this._model.selectionStartLength=0},u=s([_(2,r.IBufferService),_(3,r.ICoreService),_(4,l.IMouseService),_(5,r.IOptionsService),_(6,l.IRenderService)],u)}(o.Disposable);v.SelectionService=f},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.SelectionModel=void 0;var b=function(){function g(s){this._bufferService=s,this.isSelectAllActive=!1,this.selectionStartLength=0}return g.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(g.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var s=this.selectionStart[0]+this.selectionStartLength;return s>this._bufferService.cols?[s%this._bufferService.cols,this.selectionStart[1]+Math.floor(s/this._bufferService.cols)]:[s,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),g.prototype.areSelectionValuesReversed=function(){var s=this.selectionStart,_=this.selectionEnd;return!(!s||!_)&&(s[1]>_[1]||s[1]===_[1]&&s[0]>_[0])},g.prototype.onTrim=function(s){return this.selectionStart&&(this.selectionStart[1]-=s),this.selectionEnd&&(this.selectionEnd[1]-=s),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},g}();v.SelectionModel=b},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.moveToCellSequence=void 0;var b=T(12);function g(n,l,r,i){var t=n-s(r,n),o=l-s(r,l);return a(Math.abs(t-o)-function(c,d,f){for(var h=0,u=c-s(f,c),E=d-s(f,d),x=0;x<Math.abs(u-E);x++){var O=_(c,d)==="A"?-1:1,C=f.buffer.lines.get(u+O*x);C&&C.isWrapped&&h++}return h}(n,l,r),e(_(n,l),i))}function s(n,l){for(var r=0,i=n.buffer.lines.get(l),t=i&&i.isWrapped;t&&l>=0&&l<n.rows;)r++,t=(i=n.buffer.lines.get(--l))&&i.isWrapped;return r}function _(n,l){return n>l?"A":"B"}function p(n,l,r,i,t,o){for(var c=n,d=l,f="";c!==r||d!==i;)c+=t?1:-1,t&&c>o.cols-1?(f+=o.buffer.translateBufferLineToString(d,!1,n,c),c=0,n=0,d++):!t&&c<0&&(f+=o.buffer.translateBufferLineToString(d,!1,0,n+1),n=c=o.cols-1,d--);return f+o.buffer.translateBufferLineToString(d,!1,n,c)}function e(n,l){var r=l?"O":"[";return b.C0.ESC+r+n}function a(n,l){n=Math.floor(n);for(var r="",i=0;i<n;i++)r+=l;return r}v.moveToCellSequence=function(n,l,r,i){var t,o=r.buffer.x,c=r.buffer.y;if(!r.buffer.hasScrollback)return function(f,h,u,E,x,O){return g(h,E,x,O).length===0?"":a(p(f,h,f,h-s(x,h),!1,x).length,e("D",O))}(o,c,0,l,r,i)+g(c,l,r,i)+function(f,h,u,E,x,O){var C;C=g(h,E,x,O).length>0?E-s(x,E):h;var w=E,S=function(D,R,P,N,M,z){var X;return X=g(P,N,M,z).length>0?N-s(M,N):R,D<P&&X<=N||D>=P&&X<N?"C":"D"}(f,h,u,E,x,O);return a(p(f,C,u,w,S==="C",x).length,e(S,O))}(o,c,n,l,r,i);if(c===l)return t=o>n?"D":"C",a(Math.abs(o-n),e(t,i));t=c>l?"D":"C";var d=Math.abs(c-l);return a(function(f,h){return h.cols-f}(c>l?n:o,r)+(d-1)*r.cols+1+((c>l?o:n)-1),e(t,i))}},function(I,v,T){"use strict";var b=this&&this.__decorate||function(p,e,a,n){var l,r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(p,e,a,n);else for(var t=p.length-1;t>=0;t--)(l=p[t])&&(i=(r<3?l(i):r>3?l(e,a,i):l(e,a))||i);return r>3&&i&&Object.defineProperty(e,a,i),i},g=this&&this.__param||function(p,e){return function(a,n){e(a,n,p)}};Object.defineProperty(v,"__esModule",{value:!0}),v.SoundService=void 0;var s=T(1),_=function(){function p(e){this._optionsService=e}return Object.defineProperty(p,"audioContext",{get:function(){if(!p._audioContext){var e=window.AudioContext||window.webkitAudioContext;if(!e)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;p._audioContext=new e}return p._audioContext},enumerable:!1,configurable:!0}),p.prototype.playBellSound=function(){var e=p.audioContext;if(e){var a=e.createBufferSource();e.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(n){a.buffer=n,a.connect(e.destination),a.start(0)})}},p.prototype._base64ToArrayBuffer=function(e){for(var a=window.atob(e),n=a.length,l=new Uint8Array(n),r=0;r<n;r++)l[r]=a.charCodeAt(r);return l.buffer},p.prototype._removeMimeType=function(e){return e.split(",")[1]},p=b([g(0,s.IOptionsService)],p)}();v.SoundService=_},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(r,i){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var c in o)o.hasOwnProperty(c)&&(t[c]=o[c])})(r,i)},function(r,i){function t(){this.constructor=r}b(r,i),r.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}),s=this&&this.__decorate||function(r,i,t,o){var c,d=arguments.length,f=d<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(r,i,t,o);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(f=(d<3?c(f):d>3?c(i,t,f):c(i,t))||f);return d>3&&f&&Object.defineProperty(i,t,f),f},_=this&&this.__param||function(r,i){return function(t,o){i(t,o,r)}};Object.defineProperty(v,"__esModule",{value:!0}),v.MouseZoneManager=void 0;var p=T(2),e=T(7),a=T(5),n=T(1),l=function(r){function i(t,o,c,d,f,h){var u=r.call(this)||this;return u._element=t,u._screenElement=o,u._bufferService=c,u._mouseService=d,u._selectionService=f,u._optionsService=h,u._zones=[],u._areZonesActive=!1,u._lastHoverCoords=[void 0,void 0],u._initialSelectionLength=0,u.register(e.addDisposableDomListener(u._element,"mousedown",function(E){return u._onMouseDown(E)})),u._mouseMoveListener=function(E){return u._onMouseMove(E)},u._mouseLeaveListener=function(E){return u._onMouseLeave(E)},u._clickListener=function(E){return u._onClick(E)},u}return g(i,r),i.prototype.dispose=function(){r.prototype.dispose.call(this),this._deactivate()},i.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},i.prototype.clearAll=function(t,o){if(this._zones.length!==0){t&&o||(t=0,o=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var d=this._zones[c];(d.y1>t&&d.y1<=o+1||d.y2>t&&d.y2<=o+1||d.y1<t&&d.y2>o+1)&&(this._currentZone&&this._currentZone===d&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(c--,1))}this._zones.length===0&&this._deactivate()}},i.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},i.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},i.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},i.prototype._onHover=function(t){var o=this,c=this._findZoneEventAt(t);c!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),c&&(this._currentZone=c,c.hoverCallback&&c.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return o._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},i.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var o=this._findZoneEventAt(t);o&&o.tooltipCallback&&o.tooltipCallback(t)},i.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var o=this._findZoneEventAt(t);(o==null?void 0:o.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},i.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},i.prototype._onClick=function(t){var o=this._findZoneEventAt(t),c=this._getSelectionLength();o&&c===this._initialSelectionLength&&(o.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},i.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},i.prototype._findZoneEventAt=function(t){var o=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(o)for(var c=o[0],d=o[1],f=0;f<this._zones.length;f++){var h=this._zones[f];if(h.y1===h.y2){if(d===h.y1&&c>=h.x1&&c<h.x2)return h}else if(d===h.y1&&c>=h.x1||d===h.y2&&c<h.x2||d>h.y1&&d<h.y2)return h}},i=s([_(2,n.IBufferService),_(3,a.IMouseService),_(4,a.ISelectionService),_(5,n.IOptionsService)],i)}(p.Disposable);v.MouseZoneManager=l},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(i,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var d in c)c.hasOwnProperty(d)&&(o[d]=c[d])})(i,t)},function(i,t){function o(){this.constructor=i}b(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(v,"__esModule",{value:!0}),v.AccessibilityManager=void 0;var s=T(18),_=T(11),p=T(31),e=T(7),a=T(2),n=T(32),l=T(17),r=function(i){function t(o,c){var d=i.call(this)||this;d._terminal=o,d._renderService=c,d._liveRegionLineCount=0,d._charsToConsume=[],d._charsToAnnounce="",d._accessibilityTreeRoot=document.createElement("div"),d._accessibilityTreeRoot.classList.add("xterm-accessibility"),d._rowContainer=document.createElement("div"),d._rowContainer.classList.add("xterm-accessibility-tree"),d._rowContainer.setAttribute("role","list"),d._rowElements=[];for(var f=0;f<d._terminal.rows;f++)d._rowElements[f]=d._createAccessibilityTreeNode(),d._rowContainer.appendChild(d._rowElements[f]);if(d._topBoundaryFocusListener=function(h){return d._onBoundaryFocus(h,0)},d._bottomBoundaryFocusListener=function(h){return d._onBoundaryFocus(h,1)},d._rowElements[0].addEventListener("focus",d._topBoundaryFocusListener),d._rowElements[d._rowElements.length-1].addEventListener("focus",d._bottomBoundaryFocusListener),d._refreshRowsDimensions(),d._accessibilityTreeRoot.appendChild(d._rowContainer),d._renderRowsDebouncer=new p.RenderDebouncer(d._renderRows.bind(d)),d._refreshRows(),d._liveRegion=document.createElement("div"),d._liveRegion.classList.add("live-region"),d._liveRegion.setAttribute("aria-live","assertive"),d._accessibilityTreeRoot.appendChild(d._liveRegion),!d._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return d._terminal.element.insertAdjacentElement("afterbegin",d._accessibilityTreeRoot),d.register(d._renderRowsDebouncer),d.register(d._terminal.onResize(function(h){return d._onResize(h.rows)})),d.register(d._terminal.onRender(function(h){return d._refreshRows(h.start,h.end)})),d.register(d._terminal.onScroll(function(){return d._refreshRows()})),d.register(d._terminal.onA11yChar(function(h){return d._onChar(h)})),d.register(d._terminal.onLineFeed(function(){return d._onChar(`
`)})),d.register(d._terminal.onA11yTab(function(h){return d._onTab(h)})),d.register(d._terminal.onKey(function(h){return d._onKey(h.key)})),d.register(d._terminal.onBlur(function(){return d._clearLiveRegion()})),d.register(d._renderService.onDimensionsChange(function(){return d._refreshRowsDimensions()})),d._screenDprMonitor=new n.ScreenDprMonitor,d.register(d._screenDprMonitor),d._screenDprMonitor.setListener(function(){return d._refreshRowsDimensions()}),d.register(e.addDisposableDomListener(window,"resize",function(){return d._refreshRowsDimensions()})),d}return g(t,i),t.prototype.dispose=function(){i.prototype.dispose.call(this),l.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(o,c){var d=o.target,f=this._rowElements[c===0?1:this._rowElements.length-2];if(d.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&o.relatedTarget===f){var h,u;if(c===0?(h=d,u=this._rowElements.pop(),this._rowContainer.removeChild(u)):(h=this._rowElements.shift(),u=d,this._rowContainer.removeChild(h)),h.removeEventListener("focus",this._topBoundaryFocusListener),u.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var E=this._createAccessibilityTreeNode();this._rowElements.unshift(E),this._rowContainer.insertAdjacentElement("afterbegin",E)}else E=this._createAccessibilityTreeNode(),this._rowElements.push(E),this._rowContainer.appendChild(E);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(c===0?-1:1),this._rowElements[c===0?1:this._rowElements.length-2].focus(),o.preventDefault(),o.stopImmediatePropagation()}},t.prototype._onResize=function(o){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var c=this._rowContainer.children.length;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);for(;this._rowElements.length>o;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var o=document.createElement("div");return o.setAttribute("role","listitem"),o.tabIndex=-1,this._refreshRowDimensions(o),o},t.prototype._onTab=function(o){for(var c=0;c<o;c++)this._onChar(" ")},t.prototype._onChar=function(o){var c=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==o&&(this._charsToAnnounce+=o):this._charsToAnnounce+=o,o===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=s.tooMuchOutput)),_.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){c._accessibilityTreeRoot.appendChild(c._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,_.isMac&&l.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(o){this._clearLiveRegion(),this._charsToConsume.push(o)},t.prototype._refreshRows=function(o,c){this._renderRowsDebouncer.refresh(o,c,this._terminal.rows)},t.prototype._renderRows=function(o,c){for(var d=this._terminal.buffer,f=d.lines.length.toString(),h=o;h<=c;h++){var u=d.translateBufferLineToString(d.ydisp+h,!0),E=(d.ydisp+h+1).toString(),x=this._rowElements[h];x&&(u.length===0?x.innerHTML="&nbsp;":x.textContent=u,x.setAttribute("aria-posinset",E),x.setAttribute("aria-setsize",f))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var o=0;o<this._terminal.rows;o++)this._refreshRowDimensions(this._rowElements[o])}},t.prototype._refreshRowDimensions=function(o){o.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(a.Disposable);v.AccessibilityManager=r},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(d,f){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var E in u)u.hasOwnProperty(E)&&(h[E]=u[E])})(d,f)},function(d,f){function h(){this.constructor=d}b(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}),s=this&&this.__decorate||function(d,f,h,u){var E,x=arguments.length,O=x<3?f:u===null?u=Object.getOwnPropertyDescriptor(f,h):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(d,f,h,u);else for(var C=d.length-1;C>=0;C--)(E=d[C])&&(O=(x<3?E(O):x>3?E(f,h,O):E(f,h))||O);return x>3&&O&&Object.defineProperty(f,h,O),O},_=this&&this.__param||function(d,f){return function(h,u){f(h,u,d)}};Object.defineProperty(v,"__esModule",{value:!0}),v.DomRenderer=void 0;var p=T(58),e=T(9),a=T(2),n=T(5),l=T(1),r=T(0),i=T(10),t=T(17),o=1,c=function(d){function f(h,u,E,x,O,C,w,S,D){var R=d.call(this)||this;return R._colors=h,R._element=u,R._screenElement=E,R._viewportElement=x,R._linkifier=O,R._linkifier2=C,R._charSizeService=w,R._optionsService=S,R._bufferService=D,R._terminalClass=o++,R._rowElements=[],R._rowContainer=document.createElement("div"),R._rowContainer.classList.add("xterm-rows"),R._rowContainer.style.lineHeight="normal",R._rowContainer.setAttribute("aria-hidden","true"),R._refreshRowElements(R._bufferService.cols,R._bufferService.rows),R._selectionContainer=document.createElement("div"),R._selectionContainer.classList.add("xterm-selection"),R._selectionContainer.setAttribute("aria-hidden","true"),R.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},R._updateDimensions(),R._injectCss(),R._rowFactory=new p.DomRendererRowFactory(document,R._optionsService,R._colors),R._element.classList.add("xterm-dom-renderer-owner-"+R._terminalClass),R._screenElement.appendChild(R._rowContainer),R._screenElement.appendChild(R._selectionContainer),R._linkifier.onShowLinkUnderline(function(P){return R._onLinkHover(P)}),R._linkifier.onHideLinkUnderline(function(P){return R._onLinkLeave(P)}),R._linkifier2.onShowLinkUnderline(function(P){return R._onLinkHover(P)}),R._linkifier2.onHideLinkUnderline(function(P){return R._onLinkLeave(P)}),R}return g(f,d),Object.defineProperty(f.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),f.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),t.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),d.prototype.dispose.call(this)},f.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var h=0,u=this._rowElements;h<u.length;h++){var E=u[h];E.style.width=this.dimensions.canvasWidth+"px",E.style.height=this.dimensions.actualCellHeight+"px",E.style.lineHeight=this.dimensions.actualCellHeight+"px",E.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var x=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=x,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},f.prototype.setColors=function(h){this._colors=h,this._injectCss()},f.prototype._injectCss=function(){var h=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var u=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";u+=this._terminalSelector+" span:not(."+p.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+p.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+p.ITALIC_CLASS+" { font-style: italic;}",u+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",u+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",u+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+p.CURSOR_CLASS+"."+p.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+p.CURSOR_CLASS+"."+p.CURSOR_BLINK_CLASS+":not(."+p.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+p.CURSOR_CLASS+"."+p.CURSOR_BLINK_CLASS+"."+p.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+p.CURSOR_CLASS+"."+p.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+p.CURSOR_CLASS+"."+p.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+p.CURSOR_CLASS+"."+p.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",u+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(E,x){u+=h._terminalSelector+" .xterm-fg-"+x+" { color: "+E.css+"; }"+h._terminalSelector+" .xterm-bg-"+x+" { background-color: "+E.css+"; }"}),u+=this._terminalSelector+" .xterm-fg-"+e.INVERTED_DEFAULT_COLOR+" { color: "+i.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+e.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=u},f.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},f.prototype._refreshRowElements=function(h,u){for(var E=this._rowElements.length;E<=u;E++){var x=document.createElement("div");this._rowContainer.appendChild(x),this._rowElements.push(x)}for(;this._rowElements.length>u;)this._rowContainer.removeChild(this._rowElements.pop())},f.prototype.onResize=function(h,u){this._refreshRowElements(h,u),this._updateDimensions()},f.prototype.onCharSizeChanged=function(){this._updateDimensions()},f.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},f.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},f.prototype.onSelectionChanged=function(h,u,E){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(h&&u){var x=h[1]-this._bufferService.buffer.ydisp,O=u[1]-this._bufferService.buffer.ydisp,C=Math.max(x,0),w=Math.min(O,this._bufferService.rows-1);if(!(C>=this._bufferService.rows||w<0)){var S=document.createDocumentFragment();if(E)S.appendChild(this._createSelectionElement(C,h[0],u[0],w-C+1));else{var D=x===C?h[0]:0,R=C===w?u[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(C,D,R));var P=w-C-1;if(S.appendChild(this._createSelectionElement(C+1,0,this._bufferService.cols,P)),C!==w){var N=O===w?u[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(w,0,N))}}this._selectionContainer.appendChild(S)}}},f.prototype._createSelectionElement=function(h,u,E,x){x===void 0&&(x=1);var O=document.createElement("div");return O.style.height=x*this.dimensions.actualCellHeight+"px",O.style.top=h*this.dimensions.actualCellHeight+"px",O.style.left=u*this.dimensions.actualCellWidth+"px",O.style.width=this.dimensions.actualCellWidth*(E-u)+"px",O},f.prototype.onCursorMove=function(){},f.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},f.prototype.clear=function(){for(var h=0,u=this._rowElements;h<u.length;h++)u[h].innerHTML=""},f.prototype.renderRows=function(h,u){for(var E=this._bufferService.buffer.ybase+this._bufferService.buffer.y,x=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),O=this._optionsService.options.cursorBlink,C=h;C<=u;C++){var w=this._rowElements[C];w.innerHTML="";var S=C+this._bufferService.buffer.ydisp,D=this._bufferService.buffer.lines.get(S),R=this._optionsService.options.cursorStyle;w.appendChild(this._rowFactory.createRow(D,S===E,R,x,O,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(f.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),f.prototype.registerCharacterJoiner=function(h){return-1},f.prototype.deregisterCharacterJoiner=function(h){return!1},f.prototype._onLinkHover=function(h){this._setCellUnderline(h.x1,h.x2,h.y1,h.y2,h.cols,!0)},f.prototype._onLinkLeave=function(h){this._setCellUnderline(h.x1,h.x2,h.y1,h.y2,h.cols,!1)},f.prototype._setCellUnderline=function(h,u,E,x,O,C){for(;h!==u||E!==x;){var w=this._rowElements[E];if(!w)return;var S=w.children[h];S&&(S.style.textDecoration=C?"underline":"none"),++h>=O&&(h=0,E++)}},f=s([_(6,n.ICharSizeService),_(7,l.IOptionsService),_(8,l.IBufferService)],f)}(a.Disposable);v.DomRenderer=c},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DomRendererRowFactory=v.CURSOR_STYLE_UNDERLINE_CLASS=v.CURSOR_STYLE_BAR_CLASS=v.CURSOR_STYLE_BLOCK_CLASS=v.CURSOR_BLINK_CLASS=v.CURSOR_CLASS=v.UNDERLINE_CLASS=v.ITALIC_CLASS=v.DIM_CLASS=v.BOLD_CLASS=void 0;var b=T(9),g=T(3),s=T(4),_=T(10);v.BOLD_CLASS="xterm-bold",v.DIM_CLASS="xterm-dim",v.ITALIC_CLASS="xterm-italic",v.UNDERLINE_CLASS="xterm-underline",v.CURSOR_CLASS="xterm-cursor",v.CURSOR_BLINK_CLASS="xterm-cursor-blink",v.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",v.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",v.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var p=function(){function a(n,l,r){this._document=n,this._optionsService=l,this._colors=r,this._workCell=new s.CellData}return a.prototype.setColors=function(n){this._colors=n},a.prototype.createRow=function(n,l,r,i,t,o,c){for(var d=this._document.createDocumentFragment(),f=0,h=Math.min(n.length,c)-1;h>=0;h--)if(n.loadCell(h,this._workCell).getCode()!==g.NULL_CELL_CODE||l&&h===i){f=h+1;break}for(h=0;h<f;h++){n.loadCell(h,this._workCell);var u=this._workCell.getWidth();if(u!==0){var E=this._document.createElement("span");if(u>1&&(E.style.width=o*u+"px"),l&&h===i)switch(E.classList.add(v.CURSOR_CLASS),t&&E.classList.add(v.CURSOR_BLINK_CLASS),r){case"bar":E.classList.add(v.CURSOR_STYLE_BAR_CLASS);break;case"underline":E.classList.add(v.CURSOR_STYLE_UNDERLINE_CLASS);break;default:E.classList.add(v.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&E.classList.add(v.BOLD_CLASS),this._workCell.isItalic()&&E.classList.add(v.ITALIC_CLASS),this._workCell.isDim()&&E.classList.add(v.DIM_CLASS),this._workCell.isUnderline()&&E.classList.add(v.UNDERLINE_CLASS),this._workCell.isInvisible()?E.textContent=g.WHITESPACE_CELL_CHAR:E.textContent=this._workCell.getChars()||g.WHITESPACE_CELL_CHAR;var x=this._workCell.getFgColor(),O=this._workCell.getFgColorMode(),C=this._workCell.getBgColor(),w=this._workCell.getBgColorMode(),S=!!this._workCell.isInverse();if(S){var D=x;x=C,C=D;var R=O;O=w,w=R}switch(O){case 16777216:case 33554432:this._workCell.isBold()&&x<8&&this._optionsService.options.drawBoldTextInBrightColors&&(x+=8),this._applyMinimumContrast(E,this._colors.background,this._colors.ansi[x])||E.classList.add("xterm-fg-"+x);break;case 50331648:var P=_.rgba.toColor(x>>16&255,x>>8&255,255&x);this._applyMinimumContrast(E,this._colors.background,P)||this._addStyle(E,"color:#"+e(x.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(E,this._colors.background,this._colors.foreground)||S&&E.classList.add("xterm-fg-"+b.INVERTED_DEFAULT_COLOR)}switch(w){case 16777216:case 33554432:E.classList.add("xterm-bg-"+C);break;case 50331648:this._addStyle(E,"background-color:#"+e(C.toString(16),"0",6));break;case 0:default:S&&E.classList.add("xterm-bg-"+b.INVERTED_DEFAULT_COLOR)}d.appendChild(E)}}return d},a.prototype._applyMinimumContrast=function(n,l,r){if(this._optionsService.options.minimumContrastRatio===1)return!1;var i=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return i===void 0&&(i=_.color.ensureContrastRatio(l,r,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,i!=null?i:null)),!!i&&(this._addStyle(n,"color:"+i.css),!0)},a.prototype._addStyle=function(n,l){n.setAttribute("style",""+(n.getAttribute("style")||"")+l+";")},a}();function e(a,n,l){for(;a.length<l;)a=n+a;return a}v.DomRendererRowFactory=p},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.evaluateKeyboardEvent=void 0;var b=T(12),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:["'",'"']};v.evaluateKeyboardEvent=function(s,_,p,e){var a={type:0,cancel:!1,key:void 0},n=(s.shiftKey?1:0)|(s.altKey?2:0)|(s.ctrlKey?4:0)|(s.metaKey?8:0);switch(s.keyCode){case 0:s.key==="UIKeyInputUpArrow"?a.key=_?b.C0.ESC+"OA":b.C0.ESC+"[A":s.key==="UIKeyInputLeftArrow"?a.key=_?b.C0.ESC+"OD":b.C0.ESC+"[D":s.key==="UIKeyInputRightArrow"?a.key=_?b.C0.ESC+"OC":b.C0.ESC+"[C":s.key==="UIKeyInputDownArrow"&&(a.key=_?b.C0.ESC+"OB":b.C0.ESC+"[B");break;case 8:if(s.shiftKey){a.key=b.C0.BS;break}if(s.altKey){a.key=b.C0.ESC+b.C0.DEL;break}a.key=b.C0.DEL;break;case 9:if(s.shiftKey){a.key=b.C0.ESC+"[Z";break}a.key=b.C0.HT,a.cancel=!0;break;case 13:a.key=s.altKey?b.C0.ESC+b.C0.CR:b.C0.CR,a.cancel=!0;break;case 27:a.key=b.C0.ESC,s.altKey&&(a.key=b.C0.ESC+b.C0.ESC),a.cancel=!0;break;case 37:if(s.metaKey)break;n?(a.key=b.C0.ESC+"[1;"+(n+1)+"D",a.key===b.C0.ESC+"[1;3D"&&(a.key=b.C0.ESC+(p?"b":"[1;5D"))):a.key=_?b.C0.ESC+"OD":b.C0.ESC+"[D";break;case 39:if(s.metaKey)break;n?(a.key=b.C0.ESC+"[1;"+(n+1)+"C",a.key===b.C0.ESC+"[1;3C"&&(a.key=b.C0.ESC+(p?"f":"[1;5C"))):a.key=_?b.C0.ESC+"OC":b.C0.ESC+"[C";break;case 38:if(s.metaKey)break;n?(a.key=b.C0.ESC+"[1;"+(n+1)+"A",p||a.key!==b.C0.ESC+"[1;3A"||(a.key=b.C0.ESC+"[1;5A")):a.key=_?b.C0.ESC+"OA":b.C0.ESC+"[A";break;case 40:if(s.metaKey)break;n?(a.key=b.C0.ESC+"[1;"+(n+1)+"B",p||a.key!==b.C0.ESC+"[1;3B"||(a.key=b.C0.ESC+"[1;5B")):a.key=_?b.C0.ESC+"OB":b.C0.ESC+"[B";break;case 45:s.shiftKey||s.ctrlKey||(a.key=b.C0.ESC+"[2~");break;case 46:a.key=n?b.C0.ESC+"[3;"+(n+1)+"~":b.C0.ESC+"[3~";break;case 36:a.key=n?b.C0.ESC+"[1;"+(n+1)+"H":_?b.C0.ESC+"OH":b.C0.ESC+"[H";break;case 35:a.key=n?b.C0.ESC+"[1;"+(n+1)+"F":_?b.C0.ESC+"OF":b.C0.ESC+"[F";break;case 33:s.shiftKey?a.type=2:a.key=b.C0.ESC+"[5~";break;case 34:s.shiftKey?a.type=3:a.key=b.C0.ESC+"[6~";break;case 112:a.key=n?b.C0.ESC+"[1;"+(n+1)+"P":b.C0.ESC+"OP";break;case 113:a.key=n?b.C0.ESC+"[1;"+(n+1)+"Q":b.C0.ESC+"OQ";break;case 114:a.key=n?b.C0.ESC+"[1;"+(n+1)+"R":b.C0.ESC+"OR";break;case 115:a.key=n?b.C0.ESC+"[1;"+(n+1)+"S":b.C0.ESC+"OS";break;case 116:a.key=n?b.C0.ESC+"[15;"+(n+1)+"~":b.C0.ESC+"[15~";break;case 117:a.key=n?b.C0.ESC+"[17;"+(n+1)+"~":b.C0.ESC+"[17~";break;case 118:a.key=n?b.C0.ESC+"[18;"+(n+1)+"~":b.C0.ESC+"[18~";break;case 119:a.key=n?b.C0.ESC+"[19;"+(n+1)+"~":b.C0.ESC+"[19~";break;case 120:a.key=n?b.C0.ESC+"[20;"+(n+1)+"~":b.C0.ESC+"[20~";break;case 121:a.key=n?b.C0.ESC+"[21;"+(n+1)+"~":b.C0.ESC+"[21~";break;case 122:a.key=n?b.C0.ESC+"[23;"+(n+1)+"~":b.C0.ESC+"[23~";break;case 123:a.key=n?b.C0.ESC+"[24;"+(n+1)+"~":b.C0.ESC+"[24~";break;default:if(!s.ctrlKey||s.shiftKey||s.altKey||s.metaKey)if(p&&!e||!s.altKey||s.metaKey)p&&!s.altKey&&!s.ctrlKey&&s.metaKey?s.keyCode===65&&(a.type=1):s.key&&!s.ctrlKey&&!s.altKey&&!s.metaKey&&s.keyCode>=48&&s.key.length===1?a.key=s.key:s.key&&s.ctrlKey&&s.key==="_"&&(a.key=b.C0.US);else{var l=g[s.keyCode],r=l&&l[s.shiftKey?1:0];if(r)a.key=b.C0.ESC+r;else if(s.keyCode>=65&&s.keyCode<=90){var i=s.ctrlKey?s.keyCode-64:s.keyCode+32;a.key=b.C0.ESC+String.fromCharCode(i)}}else s.keyCode>=65&&s.keyCode<=90?a.key=String.fromCharCode(s.keyCode-64):s.keyCode===32?a.key=b.C0.NUL:s.keyCode>=51&&s.keyCode<=55?a.key=String.fromCharCode(s.keyCode-51+27):s.keyCode===56?a.key=b.C0.DEL:s.keyCode===219?a.key=b.C0.ESC:s.keyCode===220?a.key=b.C0.FS:s.keyCode===221&&(a.key=b.C0.GS)}return a}},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(o,c){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])})(o,c)},function(o,c){function d(){this.constructor=o}b(o,c),o.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}),s=this&&this.__decorate||function(o,c,d,f){var h,u=arguments.length,E=u<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,d):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(o,c,d,f);else for(var x=o.length-1;x>=0;x--)(h=o[x])&&(E=(u<3?h(E):u>3?h(c,d,E):h(c,d))||E);return u>3&&E&&Object.defineProperty(c,d,E),E},_=this&&this.__param||function(o,c){return function(d,f){c(d,f,o)}};Object.defineProperty(v,"__esModule",{value:!0}),v.RenderService=void 0;var p=T(31),e=T(0),a=T(2),n=T(32),l=T(7),r=T(1),i=T(5),t=function(o){function c(d,f,h,u,E,x){var O=o.call(this)||this;if(O._renderer=d,O._rowCount=f,O._isPaused=!1,O._needsFullRefresh=!1,O._isNextRenderRedrawOnly=!0,O._needsSelectionRefresh=!1,O._canvasWidth=0,O._canvasHeight=0,O._selectionState={start:void 0,end:void 0,columnSelectMode:!1},O._onDimensionsChange=new e.EventEmitter,O._onRender=new e.EventEmitter,O._onRefreshRequest=new e.EventEmitter,O.register({dispose:function(){return O._renderer.dispose()}}),O._renderDebouncer=new p.RenderDebouncer(function(w,S){return O._renderRows(w,S)}),O.register(O._renderDebouncer),O._screenDprMonitor=new n.ScreenDprMonitor,O._screenDprMonitor.setListener(function(){return O.onDevicePixelRatioChange()}),O.register(O._screenDprMonitor),O.register(x.onResize(function(w){return O._fullRefresh()})),O.register(u.onOptionChange(function(){return O._renderer.onOptionsChanged()})),O.register(E.onCharSizeChange(function(){return O.onCharSizeChanged()})),O._renderer.onRequestRedraw(function(w){return O.refreshRows(w.start,w.end,!0)}),O.register(l.addDisposableDomListener(window,"resize",function(){return O.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var C=new IntersectionObserver(function(w){return O._onIntersectionChange(w[w.length-1])},{threshold:0});C.observe(h),O.register({dispose:function(){return C.disconnect()}})}return O}return g(c,o),Object.defineProperty(c.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),c.prototype._onIntersectionChange=function(d){this._isPaused=d.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},c.prototype.refreshRows=function(d,f,h){h===void 0&&(h=!1),this._isPaused?this._needsFullRefresh=!0:(h||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(d,f,this._rowCount))},c.prototype._renderRows=function(d,f){this._renderer.renderRows(d,f),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:d,end:f}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(d,f){this._rowCount=f,this._fireOnCanvasResize()},c.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},c.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},c.prototype.dispose=function(){o.prototype.dispose.call(this)},c.prototype.setRenderer=function(d){var f=this;this._renderer.dispose(),this._renderer=d,this._renderer.onRequestRedraw(function(h){return f.refreshRows(h.start,h.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(d){this._renderer.setColors(d),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(d,f){this._renderer.onResize(d,f),this._fullRefresh()},c.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},c.prototype.onBlur=function(){this._renderer.onBlur()},c.prototype.onFocus=function(){this._renderer.onFocus()},c.prototype.onSelectionChanged=function(d,f,h){this._selectionState.start=d,this._selectionState.end=f,this._selectionState.columnSelectMode=h,this._renderer.onSelectionChanged(d,f,h)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(d){return this._renderer.registerCharacterJoiner(d)},c.prototype.deregisterCharacterJoiner=function(d){return this._renderer.deregisterCharacterJoiner(d)},c=s([_(3,r.IOptionsService),_(4,i.ICharSizeService),_(5,r.IBufferService)],c)}(a.Disposable);v.RenderService=t},function(I,v,T){"use strict";var b=this&&this.__decorate||function(a,n,l,r){var i,t=arguments.length,o=t<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,l):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,n,l,r);else for(var c=a.length-1;c>=0;c--)(i=a[c])&&(o=(t<3?i(o):t>3?i(n,l,o):i(n,l))||o);return t>3&&o&&Object.defineProperty(n,l,o),o},g=this&&this.__param||function(a,n){return function(l,r){n(l,r,a)}};Object.defineProperty(v,"__esModule",{value:!0}),v.CharSizeService=void 0;var s=T(1),_=T(0),p=function(){function a(n,l,r){this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new _.EventEmitter,this._measureStrategy=new e(n,l,this._optionsService)}return Object.defineProperty(a.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),a.prototype.measure=function(){var n=this._measureStrategy.measure();n.width===this.width&&n.height===this.height||(this.width=n.width,this.height=n.height,this._onCharSizeChange.fire())},a=b([g(2,s.IOptionsService)],a)}();v.CharSizeService=p;var e=function(){function a(n,l,r){this._document=n,this._parentElement=l,this._optionsService=r,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return a.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var n=this._measureElement.getBoundingClientRect();return n.width!==0&&n.height!==0&&(this._result.width=n.width,this._result.height=Math.ceil(n.height)),this._result},a}()},function(I,v,T){"use strict";var b=this&&this.__decorate||function(e,a,n,l){var r,i=arguments.length,t=i<3?a:l===null?l=Object.getOwnPropertyDescriptor(a,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(e,a,n,l);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(t=(i<3?r(t):i>3?r(a,n,t):r(a,n))||t);return i>3&&t&&Object.defineProperty(a,n,t),t},g=this&&this.__param||function(e,a){return function(n,l){a(n,l,e)}};Object.defineProperty(v,"__esModule",{value:!0}),v.MouseService=void 0;var s=T(5),_=T(30),p=function(){function e(a,n){this._renderService=a,this._charSizeService=n}return e.prototype.getCoords=function(a,n,l,r,i){return _.getCoords(a,n,l,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},e.prototype.getRawByteCoords=function(a,n,l,r){var i=this.getCoords(a,n,l,r);return _.getRawByteCoords(i)},e=b([g(0,s.IRenderService),g(1,s.ICharSizeService)],e)}();v.MouseService=p},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(r,i){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var c in o)o.hasOwnProperty(c)&&(t[c]=o[c])})(r,i)},function(r,i){function t(){this.constructor=r}b(r,i),r.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}),s=this&&this.__decorate||function(r,i,t,o){var c,d=arguments.length,f=d<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(r,i,t,o);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(f=(d<3?c(f):d>3?c(i,t,f):c(i,t))||f);return d>3&&f&&Object.defineProperty(i,t,f),f},_=this&&this.__param||function(r,i){return function(t,o){i(t,o,r)}};Object.defineProperty(v,"__esModule",{value:!0}),v.Linkifier2=void 0;var p=T(1),e=T(0),a=T(2),n=T(7),l=function(r){function i(t){var o=r.call(this)||this;return o._bufferService=t,o._linkProviders=[],o._linkCacheDisposables=[],o._isMouseOut=!0,o._activeLine=-1,o._onShowLinkUnderline=o.register(new e.EventEmitter),o._onHideLinkUnderline=o.register(new e.EventEmitter),o.register(a.getDisposeArrayDisposable(o._linkCacheDisposables)),o}return g(i,r),Object.defineProperty(i.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),i.prototype.registerLinkProvider=function(t){var o=this;return this._linkProviders.push(t),{dispose:function(){var c=o._linkProviders.indexOf(t);c!==-1&&o._linkProviders.splice(c,1)}}},i.prototype.attachToDom=function(t,o,c){var d=this;this._element=t,this._mouseService=o,this._renderService=c,this.register(n.addDisposableDomListener(this._element,"mouseleave",function(){d._isMouseOut=!0,d._clearCurrentLink()})),this.register(n.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(n.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},i.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var o=this._positionFromMouseEvent(t,this._element,this._mouseService);if(o){this._isMouseOut=!1;for(var c=t.composedPath(),d=0;d<c.length;d++){var f=c[d];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&o.x===this._lastBufferCell.x&&o.y===this._lastBufferCell.y||(this._onHover(o),this._lastBufferCell=o)}}},i.prototype._onHover=function(t){if(this._activeLine!==t.y)return this._clearCurrentLink(),void this._askForLink(t,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,t)||(this._clearCurrentLink(),this._askForLink(t,!0))},i.prototype._askForLink=function(t,o){var c=this;this._activeProviderReplies&&o||(this._activeProviderReplies=new Map,this._activeLine=t.y);var d=!1;this._linkProviders.forEach(function(f,h){var u;o?((u=c._activeProviderReplies)===null||u===void 0?void 0:u.get(h))&&(d=c._checkLinkProviderResult(h,t,d)):f.provideLinks(t.y,function(E){var x,O;if(!c._isMouseOut){var C=E==null?void 0:E.map(function(w){return{link:w}});(x=c._activeProviderReplies)===null||x===void 0||x.set(h,C),d=c._checkLinkProviderResult(h,t,d),((O=c._activeProviderReplies)===null||O===void 0?void 0:O.size)===c._linkProviders.length&&c._removeIntersectingLinks(t.y,c._activeProviderReplies)}})})},i.prototype._removeIntersectingLinks=function(t,o){for(var c=new Set,d=0;d<o.size;d++){var f=o.get(d);if(f)for(var h=0;h<f.length;h++)for(var u=f[h],E=u.link.range.start.y<t?0:u.link.range.start.x,x=u.link.range.end.y>t?this._bufferService.cols:u.link.range.end.x,O=E;O<=x;O++){if(c.has(O)){f.splice(h--,1);break}c.add(O)}}},i.prototype._checkLinkProviderResult=function(t,o,c){var d,f=this;if(!this._activeProviderReplies)return c;for(var h=this._activeProviderReplies.get(t),u=!1,E=0;E<t;E++)this._activeProviderReplies.has(E)&&!this._activeProviderReplies.get(E)||(u=!0);if(!u&&h){var x=h.find(function(C){return f._linkAtPosition(C.link,o)});x&&(c=!0,this._handleNewLink(x))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(E=0;E<this._activeProviderReplies.size;E++){var O=(d=this._activeProviderReplies.get(E))===null||d===void 0?void 0:d.find(function(C){return f._linkAtPosition(C.link,o)});if(O){c=!0,this._handleNewLink(O);break}}return c},i.prototype._onClick=function(t){if(this._element&&this._mouseService&&this._currentLink){var o=this._positionFromMouseEvent(t,this._element,this._mouseService);o&&this._linkAtPosition(this._currentLink.link,o)&&this._currentLink.link.activate(t,this._currentLink.link.text)}},i.prototype._clearCurrentLink=function(t,o){this._element&&this._currentLink&&this._lastMouseEvent&&(!t||!o||this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=o)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,a.disposeArray(this._linkCacheDisposables))},i.prototype._handleNewLink=function(t){var o=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._linkAtPosition(t.link,c)&&(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:function(){var d,f;return(f=(d=o._currentLink)===null||d===void 0?void 0:d.state)===null||f===void 0?void 0:f.decorations.pointerCursor},set:function(d){var f,h;((f=o._currentLink)===null||f===void 0?void 0:f.state)&&o._currentLink.state.decorations.pointerCursor!==d&&(o._currentLink.state.decorations.pointerCursor=d,o._currentLink.state.isHovered&&((h=o._element)===null||h===void 0||h.classList.toggle("xterm-cursor-pointer",d)))}},underline:{get:function(){var d,f;return(f=(d=o._currentLink)===null||d===void 0?void 0:d.state)===null||f===void 0?void 0:f.decorations.underline},set:function(d){var f,h,u;((f=o._currentLink)===null||f===void 0?void 0:f.state)&&((u=(h=o._currentLink)===null||h===void 0?void 0:h.state)===null||u===void 0?void 0:u.decorations.underline)!==d&&(o._currentLink.state.decorations.underline=d,o._currentLink.state.isHovered&&o._fireUnderlineEvent(t.link,d))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(d){var f=d.start===0?0:d.start+1+o._bufferService.buffer.ydisp;o._clearCurrentLink(f,d.end+1+o._bufferService.buffer.ydisp)})))}},i.prototype._linkHover=function(t,o,c){var d;((d=this._currentLink)===null||d===void 0?void 0:d.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),o.hover&&o.hover(c,o.text)},i.prototype._fireUnderlineEvent=function(t,o){var c=t.range,d=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(c.start.x-1,c.start.y-d-1,c.end.x,c.end.y-d-1,void 0);(o?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)},i.prototype._linkLeave=function(t,o,c){var d;((d=this._currentLink)===null||d===void 0?void 0:d.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),o.leave&&o.leave(c,o.text)},i.prototype._linkAtPosition=function(t,o){var c=t.range.start.y===t.range.end.y,d=t.range.start.y<o.y,f=t.range.end.y>o.y;return(c&&t.range.start.x<=o.x&&t.range.end.x>=o.x||d&&t.range.end.x>=o.x||f&&t.range.start.x<=o.x||d&&f)&&t.range.start.y<=o.y&&t.range.end.y>=o.y},i.prototype._positionFromMouseEvent=function(t,o,c){var d=c.getCoords(t,o,this._bufferService.cols,this._bufferService.rows);if(d)return{x:d[0],y:d[1]+this._bufferService.buffer.ydisp}},i.prototype._createLinkUnderlineEvent=function(t,o,c,d,f){return{x1:t,y1:o,x2:c,y2:d,cols:this._bufferService.cols,fg:f}},i=s([_(0,p.IBufferService)],i)}(a.Disposable);v.Linkifier2=l},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.CoreBrowserService=void 0;var b=function(){function g(s){this._textarea=s}return Object.defineProperty(g.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),g}();v.CoreBrowserService=b},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(E,x){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,C){O.__proto__=C}||function(O,C){for(var w in C)C.hasOwnProperty(w)&&(O[w]=C[w])})(E,x)},function(E,x){function O(){this.constructor=E}b(E,x),E.prototype=x===null?Object.create(x):(O.prototype=x.prototype,new O)});Object.defineProperty(v,"__esModule",{value:!0}),v.CoreTerminal=void 0;var s=T(2),_=T(1),p=T(66),e=T(67),a=T(68),n=T(74),l=T(75),r=T(0),i=T(76),t=T(77),o=T(78),c=T(80),d=T(81),f=T(19),h=T(82),u=function(E){function x(O){var C=E.call(this)||this;return C._onBinary=new r.EventEmitter,C._onData=new r.EventEmitter,C._onLineFeed=new r.EventEmitter,C._onResize=new r.EventEmitter,C._onScroll=new r.EventEmitter,C._instantiationService=new p.InstantiationService,C.optionsService=new n.OptionsService(O),C._instantiationService.setService(_.IOptionsService,C.optionsService),C._bufferService=C.register(C._instantiationService.createInstance(a.BufferService)),C._instantiationService.setService(_.IBufferService,C._bufferService),C._logService=C._instantiationService.createInstance(e.LogService),C._instantiationService.setService(_.ILogService,C._logService),C._coreService=C.register(C._instantiationService.createInstance(l.CoreService,function(){return C.scrollToBottom()})),C._instantiationService.setService(_.ICoreService,C._coreService),C._coreMouseService=C._instantiationService.createInstance(i.CoreMouseService),C._instantiationService.setService(_.ICoreMouseService,C._coreMouseService),C._dirtyRowService=C._instantiationService.createInstance(t.DirtyRowService),C._instantiationService.setService(_.IDirtyRowService,C._dirtyRowService),C.unicodeService=C._instantiationService.createInstance(o.UnicodeService),C._instantiationService.setService(_.IUnicodeService,C.unicodeService),C._charsetService=C._instantiationService.createInstance(c.CharsetService),C._instantiationService.setService(_.ICharsetService,C._charsetService),C._inputHandler=new f.InputHandler(C._bufferService,C._charsetService,C._coreService,C._dirtyRowService,C._logService,C.optionsService,C._coreMouseService,C.unicodeService),C.register(r.forwardEvent(C._inputHandler.onLineFeed,C._onLineFeed)),C.register(C._inputHandler),C.register(r.forwardEvent(C._bufferService.onResize,C._onResize)),C.register(r.forwardEvent(C._coreService.onData,C._onData)),C.register(r.forwardEvent(C._coreService.onBinary,C._onBinary)),C.register(C.optionsService.onOptionChange(function(w){return C._updateOptions(w)})),C._writeBuffer=new h.WriteBuffer(function(w){return C._inputHandler.parse(w)}),C}return g(x,E),Object.defineProperty(x.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){var O;this._isDisposed||(E.prototype.dispose.call(this),(O=this._windowsMode)===null||O===void 0||O.dispose(),this._windowsMode=void 0)},x.prototype.write=function(O,C){this._writeBuffer.write(O,C)},x.prototype.writeSync=function(O){this._writeBuffer.writeSync(O)},x.prototype.resize=function(O,C){isNaN(O)||isNaN(C)||(O=Math.max(O,a.MINIMUM_COLS),C=Math.max(C,a.MINIMUM_ROWS),this._bufferService.resize(O,C))},x.prototype.scroll=function(O,C){C===void 0&&(C=!1);var w,S=this._bufferService.buffer;(w=this._cachedBlankLine)&&w.length===this.cols&&w.getFg(0)===O.fg&&w.getBg(0)===O.bg||(w=S.getBlankLine(O,C),this._cachedBlankLine=w),w.isWrapped=C;var D=S.ybase+S.scrollTop,R=S.ybase+S.scrollBottom;if(S.scrollTop===0){var P=S.lines.isFull;R===S.lines.length-1?P?S.lines.recycle().copyFrom(w):S.lines.push(w.clone()):S.lines.splice(R+1,0,w.clone()),P?this._bufferService.isUserScrolling&&(S.ydisp=Math.max(S.ydisp-1,0)):(S.ybase++,this._bufferService.isUserScrolling||S.ydisp++)}else{var N=R-D+1;S.lines.shiftElements(D+1,N-1,-1),S.lines.set(R,w.clone())}this._bufferService.isUserScrolling||(S.ydisp=S.ybase),this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom),this._onScroll.fire(S.ydisp)},x.prototype.scrollLines=function(O,C){var w=this._bufferService.buffer;if(O<0){if(w.ydisp===0)return;this._bufferService.isUserScrolling=!0}else O+w.ydisp>=w.ybase&&(this._bufferService.isUserScrolling=!1);var S=w.ydisp;w.ydisp=Math.max(Math.min(w.ydisp+O,w.ybase),0),S!==w.ydisp&&(C||this._onScroll.fire(w.ydisp))},x.prototype.scrollPages=function(O){this.scrollLines(O*(this.rows-1))},x.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},x.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},x.prototype.scrollToLine=function(O){var C=O-this._bufferService.buffer.ydisp;C!==0&&this.scrollLines(C)},x.prototype.addEscHandler=function(O,C){return this._inputHandler.addEscHandler(O,C)},x.prototype.addDcsHandler=function(O,C){return this._inputHandler.addDcsHandler(O,C)},x.prototype.addCsiHandler=function(O,C){return this._inputHandler.addCsiHandler(O,C)},x.prototype.addOscHandler=function(O,C){return this._inputHandler.addOscHandler(O,C)},x.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},x.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},x.prototype._updateOptions=function(O){var C;switch(O){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)}},x.prototype._enableWindowsMode=function(){var O=this;if(!this._windowsMode){var C=[];C.push(this.onLineFeed(d.updateWindowsModeWrappedState.bind(null,this._bufferService))),C.push(this.addCsiHandler({final:"H"},function(){return d.updateWindowsModeWrappedState(O._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,S=C;w<S.length;w++)S[w].dispose()}}}},x}(s.Disposable);v.CoreTerminal=u},function(I,v,T){"use strict";var b=this&&this.__spreadArrays||function(){for(var e=0,a=0,n=arguments.length;a<n;a++)e+=arguments[a].length;var l=Array(e),r=0;for(a=0;a<n;a++)for(var i=arguments[a],t=0,o=i.length;t<o;t++,r++)l[r]=i[t];return l};Object.defineProperty(v,"__esModule",{value:!0}),v.InstantiationService=v.ServiceCollection=void 0;var g=T(1),s=T(14),_=function(){function e(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];this._entries=new Map;for(var l=0,r=a;l<r.length;l++){var i=r[l],t=i[0],o=i[1];this.set(t,o)}}return e.prototype.set=function(a,n){var l=this._entries.get(a);return this._entries.set(a,n),l},e.prototype.forEach=function(a){this._entries.forEach(function(n,l){return a(l,n)})},e.prototype.has=function(a){return this._entries.has(a)},e.prototype.get=function(a){return this._entries.get(a)},e}();v.ServiceCollection=_;var p=function(){function e(){this._services=new _,this._services.set(g.IInstantiationService,this)}return e.prototype.setService=function(a,n){this._services.set(a,n)},e.prototype.getService=function(a){return this._services.get(a)},e.prototype.createInstance=function(a){for(var n=[],l=1;l<arguments.length;l++)n[l-1]=arguments[l];for(var r=s.getServiceDependencies(a).sort(function(h,u){return h.index-u.index}),i=[],t=0,o=r;t<o.length;t++){var c=o[t],d=this._services.get(c.id);if(!d)throw new Error("[createInstance] "+a.name+" depends on UNKNOWN service "+c.id+".");i.push(d)}var f=r.length>0?r[0].index:n.length;if(n.length!==f)throw new Error("[createInstance] First service dependency of "+a.name+" at position "+(f+1)+" conflicts with "+n.length+" static arguments");return new(a.bind.apply(a,b([void 0],b(n,i))))},e}();v.InstantiationService=p},function(I,v,T){"use strict";var b=this&&this.__decorate||function(n,l,r,i){var t,o=arguments.length,c=o<3?l:i===null?i=Object.getOwnPropertyDescriptor(l,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,l,r,i);else for(var d=n.length-1;d>=0;d--)(t=n[d])&&(c=(o<3?t(c):o>3?t(l,r,c):t(l,r))||c);return o>3&&c&&Object.defineProperty(l,r,c),c},g=this&&this.__param||function(n,l){return function(r,i){l(r,i,n)}},s=this&&this.__spreadArrays||function(){for(var n=0,l=0,r=arguments.length;l<r;l++)n+=arguments[l].length;var i=Array(n),t=0;for(l=0;l<r;l++)for(var o=arguments[l],c=0,d=o.length;c<d;c++,t++)i[t]=o[c];return i};Object.defineProperty(v,"__esModule",{value:!0}),v.LogService=v.LogLevel=void 0;var _,p=T(1);!function(n){n[n.DEBUG=0]="DEBUG",n[n.INFO=1]="INFO",n[n.WARN=2]="WARN",n[n.ERROR=3]="ERROR",n[n.OFF=4]="OFF"}(_=v.LogLevel||(v.LogLevel={}));var e={debug:_.DEBUG,info:_.INFO,warn:_.WARN,error:_.ERROR,off:_.OFF},a=function(){function n(l){var r=this;this._optionsService=l,this._updateLogLevel(),this._optionsService.onOptionChange(function(i){i==="logLevel"&&r._updateLogLevel()})}return n.prototype._updateLogLevel=function(){this._logLevel=e[this._optionsService.options.logLevel]},n.prototype._evalLazyOptionalParams=function(l){for(var r=0;r<l.length;r++)typeof l[r]=="function"&&(l[r]=l[r]())},n.prototype._log=function(l,r,i){this._evalLazyOptionalParams(i),l.call.apply(l,s([console,"xterm.js: "+r],i))},n.prototype.debug=function(l){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this._logLevel<=_.DEBUG&&this._log(console.log,l,r)},n.prototype.info=function(l){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this._logLevel<=_.INFO&&this._log(console.info,l,r)},n.prototype.warn=function(l){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this._logLevel<=_.WARN&&this._log(console.warn,l,r)},n.prototype.error=function(l){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this._logLevel<=_.ERROR&&this._log(console.error,l,r)},n=b([g(0,p.IOptionsService)],n)}();v.LogService=a},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(r,i){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var c in o)o.hasOwnProperty(c)&&(t[c]=o[c])})(r,i)},function(r,i){function t(){this.constructor=r}b(r,i),r.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}),s=this&&this.__decorate||function(r,i,t,o){var c,d=arguments.length,f=d<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(r,i,t,o);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(f=(d<3?c(f):d>3?c(i,t,f):c(i,t))||f);return d>3&&f&&Object.defineProperty(i,t,f),f},_=this&&this.__param||function(r,i){return function(t,o){i(t,o,r)}};Object.defineProperty(v,"__esModule",{value:!0}),v.BufferService=v.MINIMUM_ROWS=v.MINIMUM_COLS=void 0;var p=T(1),e=T(69),a=T(0),n=T(2);v.MINIMUM_COLS=2,v.MINIMUM_ROWS=1;var l=function(r){function i(t){var o=r.call(this)||this;return o._optionsService=t,o.isUserScrolling=!1,o._onResize=new a.EventEmitter,o.cols=Math.max(t.options.cols,v.MINIMUM_COLS),o.rows=Math.max(t.options.rows,v.MINIMUM_ROWS),o.buffers=new e.BufferSet(t,o),o}return g(i,r),Object.defineProperty(i.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){r.prototype.dispose.call(this),this.buffers.dispose()},i.prototype.resize=function(t,o){this.cols=t,this.rows=o,this.buffers.resize(t,o),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:o})},i.prototype.reset=function(){this.buffers.dispose(),this.buffers=new e.BufferSet(this._optionsService,this),this.isUserScrolling=!1},i=s([_(0,p.IOptionsService)],i)}(n.Disposable);v.BufferService=l},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(e,a){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var r in l)l.hasOwnProperty(r)&&(n[r]=l[r])})(e,a)},function(e,a){function n(){this.constructor=e}b(e,a),e.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(v,"__esModule",{value:!0}),v.BufferSet=void 0;var s=T(70),_=T(0),p=function(e){function a(n,l){var r=e.call(this)||this;return r._onBufferActivate=r.register(new _.EventEmitter),r._normal=new s.Buffer(!0,n,l),r._normal.fillViewportRows(),r._alt=new s.Buffer(!1,n,l),r._activeBuffer=r._normal,r.setupTabStops(),r}return g(a,e),Object.defineProperty(a.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),a.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},a.prototype.activateAltBuffer=function(n){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(n),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}))},a.prototype.resize=function(n,l){this._normal.resize(n,l),this._alt.resize(n,l)},a.prototype.setupTabStops=function(n){this._normal.setupTabStops(n),this._alt.setupTabStops(n)},a}(T(2).Disposable);v.BufferSet=p},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.BufferStringIterator=v.Buffer=v.MAX_BUFFER_SIZE=void 0;var b=T(71),g=T(16),s=T(4),_=T(3),p=T(72),e=T(73),a=T(20),n=T(6);v.MAX_BUFFER_SIZE=4294967295;var l=function(){function i(t,o,c){this._hasScrollback=t,this._optionsService=o,this._bufferService=c,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=g.DEFAULT_ATTR_DATA.clone(),this.savedCharset=a.DEFAULT_CHARSET,this.markers=[],this._nullCell=s.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),this._whitespaceCell=s.CellData.fromCharData([0,_.WHITESPACE_CELL_CHAR,_.WHITESPACE_CELL_WIDTH,_.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new b.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return i.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell},i.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell},i.prototype.getBlankLine=function(t,o){return new g.BufferLine(this._bufferService.cols,this.getNullCell(t),o)},Object.defineProperty(i.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCursorInViewport",{get:function(){var t=this.ybase+this.y-this.ydisp;return t>=0&&t<this._rows},enumerable:!1,configurable:!0}),i.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var o=t+this._optionsService.options.scrollback;return o>v.MAX_BUFFER_SIZE?v.MAX_BUFFER_SIZE:o},i.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=g.DEFAULT_ATTR_DATA);for(var o=this._rows;o--;)this.lines.push(this.getBlankLine(t))}},i.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new b.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},i.prototype.resize=function(t,o){var c=this.getNullCell(g.DEFAULT_ATTR_DATA),d=this._getCorrectBufferLength(o);if(d>this.lines.maxLength&&(this.lines.maxLength=d),this.lines.length>0){if(this._cols<t)for(var f=0;f<this.lines.length;f++)this.lines.get(f).resize(t,c);var h=0;if(this._rows<o)for(var u=this._rows;u<o;u++)this.lines.length<o+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new g.BufferLine(t,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+h+1?(this.ybase--,h++,this.ydisp>0&&this.ydisp--):this.lines.push(new g.BufferLine(t,c)));else for(u=this._rows;u>o;u--)this.lines.length>o+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(d<this.lines.maxLength){var E=this.lines.length-d;E>0&&(this.lines.trimStart(E),this.ybase=Math.max(this.ybase-E,0),this.ydisp=Math.max(this.ydisp-E,0),this.savedY=Math.max(this.savedY-E,0)),this.lines.maxLength=d}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,o-1),h&&(this.y+=h),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=o-1,this._isReflowEnabled&&(this._reflow(t,o),this._cols>t))for(f=0;f<this.lines.length;f++)this.lines.get(f).resize(t,c);this._cols=t,this._rows=o},Object.defineProperty(i.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),i.prototype._reflow=function(t,o){this._cols!==t&&(t>this._cols?this._reflowLarger(t,o):this._reflowSmaller(t,o))},i.prototype._reflowLarger=function(t,o){var c=p.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(g.DEFAULT_ATTR_DATA));if(c.length>0){var d=p.reflowLargerCreateNewLayout(this.lines,c);p.reflowLargerApplyNewLayout(this.lines,d.layout),this._reflowLargerAdjustViewport(t,o,d.countRemoved)}},i.prototype._reflowLargerAdjustViewport=function(t,o,c){for(var d=this.getNullCell(g.DEFAULT_ATTR_DATA),f=c;f-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<o&&this.lines.push(new g.BufferLine(t,d))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},i.prototype._reflowSmaller=function(t,o){for(var c=this.getNullCell(g.DEFAULT_ATTR_DATA),d=[],f=0,h=this.lines.length-1;h>=0;h--){var u=this.lines.get(h);if(!(!u||!u.isWrapped&&u.getTrimmedLength()<=t)){for(var E=[u];u.isWrapped&&h>0;)u=this.lines.get(--h),E.unshift(u);var x=this.ybase+this.y;if(!(x>=h&&x<h+E.length)){var O=E[E.length-1].getTrimmedLength(),C=p.reflowSmallerGetNewLineLengths(E,this._cols,t),w=C.length-E.length,S=void 0;S=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+w):Math.max(0,this.lines.length-this.lines.maxLength+w);for(var D=[],R=0;R<w;R++){var P=this.getBlankLine(g.DEFAULT_ATTR_DATA,!0);D.push(P)}D.length>0&&(d.push({start:h+E.length+f,newLines:D}),f+=D.length),E.push.apply(E,D);var N=C.length-1,M=C[N];M===0&&(M=C[--N]);for(var z=E.length-w-1,X=O;z>=0;){var k=Math.min(X,M);if(E[N].copyCellsFrom(E[z],X-k,M-k,k,!0),(M-=k)===0&&(M=C[--N]),(X-=k)===0){z--;var F=Math.max(z,0);X=p.getWrappedLineTrimmedLength(E,F,this._cols)}}for(R=0;R<E.length;R++)C[R]<t&&E[R].setCell(C[R],c);for(var U=w-S;U-- >0;)this.ybase===0?this.y<o-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+f)-o&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+w,this.ybase+o-1)}}}if(d.length>0){var L=[],B=[];for(R=0;R<this.lines.length;R++)B.push(this.lines.get(R));var Z=this.lines.length,re=Z-1,me=0,Ee=d[me];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+f);var De=0;for(R=Math.min(this.lines.maxLength-1,Z+f-1);R>=0;R--)if(Ee&&Ee.start>re+De){for(var te=Ee.newLines.length-1;te>=0;te--)this.lines.set(R--,Ee.newLines[te]);R++,L.push({index:re+1,amount:Ee.newLines.length}),De+=Ee.newLines.length,Ee=d[++me]}else this.lines.set(R,B[re--]);var Ce=0;for(R=L.length-1;R>=0;R--)L[R].index+=Ce,this.lines.onInsertEmitter.fire(L[R]),Ce+=L[R].amount;var we=Math.max(0,Z+f-this.lines.maxLength);we>0&&this.lines.onTrimEmitter.fire(we)}},i.prototype.stringIndexToBufferIndex=function(t,o,c){for(c===void 0&&(c=!1);o;){var d=this.lines.get(t);if(!d)return[-1,-1];for(var f=c?d.getTrimmedLength():d.length,h=0;h<f;++h)if(d.get(h)[_.CHAR_DATA_WIDTH_INDEX]&&(o-=d.get(h)[_.CHAR_DATA_CHAR_INDEX].length||1),o<0)return[t,h];t++}return[t,0]},i.prototype.translateBufferLineToString=function(t,o,c,d){c===void 0&&(c=0);var f=this.lines.get(t);return f?f.translateToString(o,c,d):""},i.prototype.getWrappedRangeForLine=function(t){for(var o=t,c=t;o>0&&this.lines.get(o).isWrapped;)o--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:o,last:c}},i.prototype.setupTabStops=function(t){for(t!=null?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this._cols;t+=this._optionsService.options.tabStopWidth)this.tabs[t]=!0},i.prototype.prevStop=function(t){for(t==null&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this._cols?this._cols-1:t<0?0:t},i.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t<this._cols;);return t>=this._cols?this._cols-1:t<0?0:t},i.prototype.addMarker=function(t){var o=this,c=new e.Marker(t);return this.markers.push(c),c.register(this.lines.onTrim(function(d){c.line-=d,c.line<0&&c.dispose()})),c.register(this.lines.onInsert(function(d){c.line>=d.index&&(c.line+=d.amount)})),c.register(this.lines.onDelete(function(d){c.line>=d.index&&c.line<d.index+d.amount&&c.dispose(),c.line>d.index&&(c.line-=d.amount)})),c.register(c.onDispose(function(){return o._removeMarker(c)})),c},i.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},i.prototype.iterator=function(t,o,c,d,f){return new r(this,t,o,c,d,f)},i}();v.Buffer=l;var r=function(){function i(t,o,c,d,f,h){c===void 0&&(c=0),d===void 0&&(d=t.lines.length),f===void 0&&(f=0),h===void 0&&(h=0),this._buffer=t,this._trimRight=o,this._startIndex=c,this._endIndex=d,this._startOverscan=f,this._endOverscan=h,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return i.prototype.hasNext=function(){return this._current<this._endIndex},i.prototype.next=function(){var t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var o="",c=t.first;c<=t.last;++c)o+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=t.last+1,{range:t,content:o}},i}();v.BufferStringIterator=r},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.CircularList=void 0;var b=T(0),g=function(){function s(_){this._maxLength=_,this.onDeleteEmitter=new b.EventEmitter,this.onInsertEmitter=new b.EventEmitter,this.onTrimEmitter=new b.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(s.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxLength",{get:function(){return this._maxLength},set:function(_){if(this._maxLength!==_){for(var p=new Array(_),e=0;e<Math.min(_,this.length);e++)p[e]=this._array[this._getCyclicIndex(e)];this._array=p,this._maxLength=_,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"length",{get:function(){return this._length},set:function(_){if(_>this._length)for(var p=this._length;p<_;p++)this._array[p]=void 0;this._length=_},enumerable:!1,configurable:!0}),s.prototype.get=function(_){return this._array[this._getCyclicIndex(_)]},s.prototype.set=function(_,p){this._array[this._getCyclicIndex(_)]=p},s.prototype.push=function(_){this._array[this._getCyclicIndex(this._length)]=_,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},s.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(s.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),s.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},s.prototype.splice=function(_,p){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];if(p){for(var n=_;n<this._length-p;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+p)];this._length-=p}for(n=this._length-1;n>=_;n--)this._array[this._getCyclicIndex(n+e.length)]=this._array[this._getCyclicIndex(n)];for(n=0;n<e.length;n++)this._array[this._getCyclicIndex(_+n)]=e[n];if(this._length+e.length>this._maxLength){var l=this._length+e.length-this._maxLength;this._startIndex+=l,this._length=this._maxLength,this.onTrimEmitter.fire(l)}else this._length+=e.length},s.prototype.trimStart=function(_){_>this._length&&(_=this._length),this._startIndex+=_,this._length-=_,this.onTrimEmitter.fire(_)},s.prototype.shiftElements=function(_,p,e){if(!(p<=0)){if(_<0||_>=this._length)throw new Error("start argument out of range");if(_+e<0)throw new Error("Cannot shift elements in list beyond index 0");if(e>0){for(var a=p-1;a>=0;a--)this.set(_+a+e,this.get(_+a));var n=_+p+e-this._length;if(n>0)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(a=0;a<p;a++)this.set(_+a+e,this.get(_+a))}},s.prototype._getCyclicIndex=function(_){return(this._startIndex+_)%this._maxLength},s}();v.CircularList=g},function(I,v,T){"use strict";function b(g,s,_){if(s===g.length-1)return g[s].getTrimmedLength();var p=!g[s].hasContent(_-1)&&g[s].getWidth(_-1)===1,e=g[s+1].getWidth(0)===2;return p&&e?_-1:_}Object.defineProperty(v,"__esModule",{value:!0}),v.getWrappedLineTrimmedLength=v.reflowSmallerGetNewLineLengths=v.reflowLargerApplyNewLayout=v.reflowLargerCreateNewLayout=v.reflowLargerGetLinesToRemove=void 0,v.reflowLargerGetLinesToRemove=function(g,s,_,p,e){for(var a=[],n=0;n<g.length-1;n++){var l=n,r=g.get(++l);if(r.isWrapped){for(var i=[g.get(n)];l<g.length&&r.isWrapped;)i.push(r),r=g.get(++l);if(p>=n&&p<l)n+=i.length-1;else{for(var t=0,o=b(i,t,s),c=1,d=0;c<i.length;){var f=b(i,c,s),h=f-d,u=_-o,E=Math.min(h,u);i[t].copyCellsFrom(i[c],d,o,E,!1),(o+=E)===_&&(t++,o=0),(d+=E)===f&&(c++,d=0),o===0&&t!==0&&i[t-1].getWidth(_-1)===2&&(i[t].copyCellsFrom(i[t-1],_-1,o++,1,!1),i[t-1].setCell(_-1,e))}i[t].replaceCells(o,_,e);for(var x=0,O=i.length-1;O>0&&(O>t||i[O].getTrimmedLength()===0);O--)x++;x>0&&(a.push(n+i.length-x),a.push(x)),n+=i.length-1}}}return a},v.reflowLargerCreateNewLayout=function(g,s){for(var _=[],p=0,e=s[p],a=0,n=0;n<g.length;n++)if(e===n){var l=s[++p];g.onDeleteEmitter.fire({index:n-a,amount:l}),n+=l-1,a+=l,e=s[++p]}else _.push(n);return{layout:_,countRemoved:a}},v.reflowLargerApplyNewLayout=function(g,s){for(var _=[],p=0;p<s.length;p++)_.push(g.get(s[p]));for(p=0;p<_.length;p++)g.set(p,_[p]);g.length=s.length},v.reflowSmallerGetNewLineLengths=function(g,s,_){for(var p=[],e=g.map(function(o,c){return b(g,c,s)}).reduce(function(o,c){return o+c}),a=0,n=0,l=0;l<e;){if(e-l<_){p.push(e-l);break}a+=_;var r=b(g,n,s);a>r&&(a-=r,n++);var i=g[n].getWidth(a-1)===2;i&&a--;var t=i?_-1:_;p.push(t),l+=t}return p},v.getWrappedLineTrimmedLength=b},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(p,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l])})(p,e)},function(p,e){function a(){this.constructor=p}b(p,e),p.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)});Object.defineProperty(v,"__esModule",{value:!0}),v.Marker=void 0;var s=T(0),_=function(p){function e(a){var n=p.call(this)||this;return n.line=a,n._id=e._nextId++,n.isDisposed=!1,n._onDispose=new s.EventEmitter,n}return g(e,p),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},e._nextId=1,e}(T(2).Disposable);v.Marker=_},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.OptionsService=v.DEFAULT_OPTIONS=v.DEFAULT_BELL_SOUND=void 0;var b=T(0),g=T(11),s=T(33);v.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",v.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:v.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:g.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var _=["cols","rows"],p=function(){function e(a){this._onOptionChange=new b.EventEmitter,this.options=s.clone(v.DEFAULT_OPTIONS);for(var n=0,l=Object.keys(a);n<l.length;n++){var r=l[n];if(r in this.options){var i=a[r];this.options[r]=i}}}return Object.defineProperty(e.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),e.prototype.setOption=function(a,n){if(!(a in v.DEFAULT_OPTIONS))throw new Error('No option with key "'+a+'"');if(_.indexOf(a)!==-1)throw new Error('Option "'+a+'" can only be set in the constructor');this.options[a]!==n&&(n=this._sanitizeAndValidateOption(a,n),this.options[a]!==n&&(this.options[a]=n,this._onOptionChange.fire(a)))},e.prototype._sanitizeAndValidateOption=function(a,n){switch(a){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":n||(n=v.DEFAULT_OPTIONS[a]);break;case"cursorWidth":n=Math.floor(n);case"lineHeight":case"tabStopWidth":if(n<1)throw new Error(a+" cannot be less than 1, value: "+n);break;case"minimumContrastRatio":n=Math.max(1,Math.min(21,Math.round(10*n)/10));break;case"scrollback":if((n=Math.min(n,4294967295))<0)throw new Error(a+" cannot be less than 0, value: "+n);break;case"fastScrollSensitivity":case"scrollSensitivity":if(n<=0)throw new Error(a+" cannot be less than or equal to 0, value: "+n)}return n},e.prototype.getOption=function(a){if(!(a in v.DEFAULT_OPTIONS))throw new Error('No option with key "'+a+'"');return this.options[a]},e}();v.OptionsService=p},function(I,v,T){"use strict";var b,g=this&&this.__extends||(b=function(t,o){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])})(t,o)},function(t,o){function c(){this.constructor=t}b(t,o),t.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}),s=this&&this.__decorate||function(t,o,c,d){var f,h=arguments.length,u=h<3?o:d===null?d=Object.getOwnPropertyDescriptor(o,c):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(t,o,c,d);else for(var E=t.length-1;E>=0;E--)(f=t[E])&&(u=(h<3?f(u):h>3?f(o,c,u):f(o,c))||u);return h>3&&u&&Object.defineProperty(o,c,u),u},_=this&&this.__param||function(t,o){return function(c,d){o(c,d,t)}};Object.defineProperty(v,"__esModule",{value:!0}),v.CoreService=void 0;var p=T(1),e=T(0),a=T(33),n=T(2),l=Object.freeze({insertMode:!1}),r=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),i=function(t){function o(c,d,f,h){var u=t.call(this)||this;return u._bufferService=d,u._logService=f,u._optionsService=h,u.isCursorInitialized=!1,u.isCursorHidden=!1,u._onData=u.register(new e.EventEmitter),u._onUserInput=u.register(new e.EventEmitter),u._onBinary=u.register(new e.EventEmitter),u._scrollToBottom=c,u.register({dispose:function(){return u._scrollToBottom=void 0}}),u.modes=a.clone(l),u.decPrivateModes=a.clone(r),u}return g(o,t),Object.defineProperty(o.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),o.prototype.reset=function(){this.modes=a.clone(l),this.decPrivateModes=a.clone(r)},o.prototype.triggerDataEvent=function(c,d){if(d===void 0&&(d=!1),!this._optionsService.options.disableStdin){var f=this._bufferService.buffer;f.ybase!==f.ydisp&&this._scrollToBottom(),d&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(h){return h.charCodeAt(0)})}),this._onData.fire(c)}},o.prototype.triggerBinaryEvent=function(c){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+c+'"',function(){return c.split("").map(function(d){return d.charCodeAt(0)})}),this._onBinary.fire(c))},o=s([_(1,p.IBufferService),_(2,p.ILogService),_(3,p.IOptionsService)],o)}(n.Disposable);v.CoreService=i},function(I,v,T){"use strict";var b=this&&this.__decorate||function(r,i,t,o){var c,d=arguments.length,f=d<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(r,i,t,o);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(f=(d<3?c(f):d>3?c(i,t,f):c(i,t))||f);return d>3&&f&&Object.defineProperty(i,t,f),f},g=this&&this.__param||function(r,i){return function(t,o){i(t,o,r)}};Object.defineProperty(v,"__esModule",{value:!0}),v.CoreMouseService=void 0;var s=T(1),_=T(0),p={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(r){return r.button!==4&&r.action===1&&(r.ctrl=!1,r.alt=!1,r.shift=!1,!0)}},VT200:{events:19,restrict:function(r){return r.action!==32}},DRAG:{events:23,restrict:function(r){return r.action!==32||r.button!==3}},ANY:{events:31,restrict:function(r){return!0}}};function e(r,i){var t=(r.ctrl?16:0)|(r.shift?4:0)|(r.alt?8:0);return r.button===4?(t|=64,t|=r.action):(t|=3&r.button,4&r.button&&(t|=64),8&r.button&&(t|=128),r.action===32?t|=32:r.action!==0||i||(t|=3)),t}var a=String.fromCharCode,n={DEFAULT:function(r){var i=[e(r,!1)+32,r.col+32,r.row+32];return i[0]>255||i[1]>255||i[2]>255?"":""+a(i[0])+a(i[1])+a(i[2])},SGR:function(r){var i=r.action===0&&r.button!==4?"m":"M";return"[<"+e(r,!0)+";"+r.col+";"+r.row+i}},l=function(){function r(i,t){this._bufferService=i,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new _.EventEmitter,this._lastEvent=null;for(var o=0,c=Object.keys(p);o<c.length;o++){var d=c[o];this.addProtocol(d,p[d])}for(var f=0,h=Object.keys(n);f<h.length;f++){var u=h[f];this.addEncoding(u,n[u])}this.reset()}return r.prototype.addProtocol=function(i,t){this._protocols[i]=t},r.prototype.addEncoding=function(i,t){this._encodings[i]=t},Object.defineProperty(r.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(i){if(!this._protocols[i])throw new Error('unknown protocol "'+i+'"');this._activeProtocol=i,this._onProtocolChange.fire(this._protocols[i].events)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(i){if(!this._encodings[i])throw new Error('unknown encoding "'+i+'"');this._activeEncoding=i},enumerable:!1,configurable:!0}),r.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(r.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),r.prototype.triggerMouseEvent=function(i){if(i.col<0||i.col>=this._bufferService.cols||i.row<0||i.row>=this._bufferService.rows)return!1;if(i.button===4&&i.action===32)return!1;if(i.button===3&&i.action!==32)return!1;if(i.button!==4&&(i.action===2||i.action===3))return!1;if(i.col++,i.row++,i.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,i))return!1;if(!this._protocols[this._activeProtocol].restrict(i))return!1;var t=this._encodings[this._activeEncoding](i);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=i,!0},r.prototype.explainEvents=function(i){return{down:!!(1&i),up:!!(2&i),drag:!!(4&i),move:!!(8&i),wheel:!!(16&i)}},r.prototype._compareEvents=function(i,t){return i.col===t.col&&(i.row===t.row&&(i.button===t.button&&(i.action===t.action&&(i.ctrl===t.ctrl&&i.alt===t.alt))))&&i.shift===t.shift},r=b([g(0,s.IBufferService),g(1,s.ICoreService)],r)}();v.CoreMouseService=l},function(I,v,T){"use strict";var b=this&&this.__decorate||function(p,e,a,n){var l,r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(p,e,a,n);else for(var t=p.length-1;t>=0;t--)(l=p[t])&&(i=(r<3?l(i):r>3?l(e,a,i):l(e,a))||i);return r>3&&i&&Object.defineProperty(e,a,i),i},g=this&&this.__param||function(p,e){return function(a,n){e(a,n,p)}};Object.defineProperty(v,"__esModule",{value:!0}),v.DirtyRowService=void 0;var s=T(1),_=function(){function p(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(p.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),p.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},p.prototype.markDirty=function(e){e<this._start?this._start=e:e>this._end&&(this._end=e)},p.prototype.markRangeDirty=function(e,a){if(e>a){var n=e;e=a,a=n}e<this._start&&(this._start=e),a>this._end&&(this._end=a)},p.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},p=b([g(0,s.IBufferService)],p)}();v.DirtyRowService=_},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.UnicodeService=void 0;var b=T(0),g=T(79),s=function(){function _(){this._providers=Object.create(null),this._active="",this._onChange=new b.EventEmitter;var p=new g.UnicodeV6;this.register(p),this._active=p.version,this._activeProvider=p}return Object.defineProperty(_.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"activeVersion",{get:function(){return this._active},set:function(p){if(!this._providers[p])throw new Error('unknown Unicode version "'+p+'"');this._active=p,this._activeProvider=this._providers[p],this._onChange.fire(p)},enumerable:!1,configurable:!0}),_.prototype.register=function(p){this._providers[p.version]=p},_.prototype.wcwidth=function(p){return this._activeProvider.wcwidth(p)},_.prototype.getStringCellWidth=function(p){for(var e=0,a=p.length,n=0;n<a;++n){var l=p.charCodeAt(n);if(55296<=l&&l<=56319){if(++n>=a)return e+this.wcwidth(l);var r=p.charCodeAt(n);56320<=r&&r<=57343?l=1024*(l-55296)+r-56320+65536:e+=this.wcwidth(r)}e+=this.wcwidth(l)}return e},_}();v.UnicodeService=s},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.UnicodeV6=void 0;var b,g=T(15),s=[[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]],_=[[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]],p=function(){function e(){if(this.version="6",!b){b=new Uint8Array(65536),g.fill(b,1),b[0]=0,g.fill(b,0,1,32),g.fill(b,0,127,160),g.fill(b,2,4352,4448),b[9001]=2,b[9002]=2,g.fill(b,2,11904,42192),b[12351]=1,g.fill(b,2,44032,55204),g.fill(b,2,63744,64256),g.fill(b,2,65040,65050),g.fill(b,2,65072,65136),g.fill(b,2,65280,65377),g.fill(b,2,65504,65511);for(var a=0;a<s.length;++a)g.fill(b,0,s[a][0],s[a][1]+1)}}return e.prototype.wcwidth=function(a){return a<32?0:a<127?1:a<65536?b[a]:function(n,l){var r,i=0,t=l.length-1;if(n<l[0][0]||n>l[t][1])return!1;for(;t>=i;)if(n>l[r=i+t>>1][1])i=r+1;else{if(!(n<l[r][0]))return!0;t=r-1}return!1}(a,_)?0:a>=131072&&a<=196605||a>=196608&&a<=262141?2:1},e}();v.UnicodeV6=p},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.CharsetService=void 0;var b=function(){function g(){this.glevel=0,this._charsets=[]}return g.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},g.prototype.setgLevel=function(s){this.glevel=s,this.charset=this._charsets[s]},g.prototype.setgCharset=function(s,_){this._charsets[s]=_,this.glevel===s&&(this.charset=_)},g}();v.CharsetService=b},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.updateWindowsModeWrappedState=void 0;var b=T(3);v.updateWindowsModeWrappedState=function(g){var s=g.buffer.lines.get(g.buffer.ybase+g.buffer.y-1),_=s==null?void 0:s.get(g.cols-1),p=g.buffer.lines.get(g.buffer.ybase+g.buffer.y);p&&_&&(p.isWrapped=_[b.CHAR_DATA_CODE_INDEX]!==b.NULL_CELL_CODE&&_[b.CHAR_DATA_CODE_INDEX]!==b.WHITESPACE_CELL_CODE)}},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.WriteBuffer=void 0;var b=function(){function g(s){this._action=s,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return g.prototype.writeSync=function(s){if(this._writeBuffer.length){for(var _=this._bufferOffset;_<this._writeBuffer.length;++_){var p=this._writeBuffer[_],e=this._callbacks[_];this._action(p),e&&e()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(s)},g.prototype.write=function(s,_){var p=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return p._innerWrite()})),this._pendingData+=s.length,this._writeBuffer.push(s),this._callbacks.push(_)},g.prototype._innerWrite=function(){for(var s=this,_=Date.now();this._writeBuffer.length>this._bufferOffset;){var p=this._writeBuffer[this._bufferOffset],e=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(p),this._pendingData-=p.length,e&&e(),Date.now()-_>=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(function(){return s._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},g}();v.WriteBuffer=b},function(I,v,T){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.AddonManager=void 0;var b=function(){function g(){this._addons=[]}return g.prototype.dispose=function(){for(var s=this._addons.length-1;s>=0;s--)this._addons[s].instance.dispose()},g.prototype.loadAddon=function(s,_){var p=this,e={instance:_,dispose:_.dispose,isDisposed:!1};this._addons.push(e),_.dispose=function(){return p._wrappedAddonDispose(e)},_.activate(s)},g.prototype._wrappedAddonDispose=function(s){if(!s.isDisposed){for(var _=-1,p=0;p<this._addons.length;p++)if(this._addons[p]===s){_=p;break}if(_===-1)throw new Error("Could not dispose an addon that has not been loaded");s.isDisposed=!0,s.dispose.apply(s.instance),this._addons.splice(_,1)}},g}();v.AddonManager=b}])})},"/cxE":function(j,W,y){"use strict";y.d(W,"f",function(){return T}),y.d(W,"g",function(){return b}),y.d(W,"h",function(){return g}),y.d(W,"e",function(){return _}),y.d(W,"b",function(){return p}),y.d(W,"c",function(){return e}),y.d(W,"d",function(){return a}),y.d(W,"a",function(){return n});class I{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(l){setTimeout(()=>{throw l.stack?new Error(l.message+`
`+l.stack):l},0)}}emit(l){this.listeners.forEach(r=>{r(l)})}onUnexpectedError(l){this.unexpectedErrorHandler(l),this.emit(l)}onUnexpectedExternalError(l){this.unexpectedErrorHandler(l)}}const v=new I;function T(l){_(l)||v.onUnexpectedError(l);return}function b(l){_(l)||v.onUnexpectedExternalError(l);return}function g(l){if(l instanceof Error){let{name:r,message:i}=l;const t=l.stacktrace||l.stack;return{$isError:!0,name:r,message:i,stack:t}}return l}const s="Canceled";function _(l){return l instanceof Error&&l.name===s&&l.message===s}function p(){const l=new Error(s);return l.name=l.message,l}function e(l){return l?new Error(`Illegal argument: ${l}`):new Error("Illegal argument")}function a(l){return l?new Error(`Illegal state: ${l}`):new Error("Illegal state")}class n extends Error{constructor(l){super("NotSupported");l&&(this.message=l)}}},"/omn":function(j,W,y){},"0/SM":function(j,W,y){j.exports={flex_box_center:"flex_box_center___gv1YF",flex_space_between:"flex_space_between___pJTp_",flex_box_vertical_center:"flex_box_vertical_center___2X-O9",flex_box_center_end:"flex_box_center_end___21hK4",flex_box_column:"flex_box_column___psPJb",wrap:"wrap___QvUDk",full:"full___2gLfk"}},"07cG":function(j,W,y){j.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0i5U":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNEMUNCRTZCNDE1MzExRThBREM4QUVGRUEwQjY3M0FFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNEMUNCRTZDNDE1MzExRThBREM4QUVGRUEwQjY3M0FFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0QxQ0JFNjk0MTUzMTFFOEFEQzhBRUZFQTBCNjczQUUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0QxQ0JFNkE0MTUzMTFFOEFEQzhBRUZFQTBCNjczQUUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6xcnMrAAABN0lEQVR42qzTsUtCURTH8fskisZoa4ogcGhpcYuW+gsk+icyGiyEoNVB0i3EWYJwaG2Koj+gBiEqqIasRQlCHCJ8fU+cB4fLldS68BHO755zeQ/vi7L3q4vOuRMsu9HWNTZT/NTHGHY6U5cDMm78lUm5P65/OaDtZXsoB3or2PWythxQ9cInFHBrsjvNHr3eqhxQxIsJS5jAlsl29GlLJpOZooQ979HmsY9zHOMUZ8hjwfTJTC/iIkkR4RIruvmJJXQxhVhfaVr3ryCDcfIvSMM2+lpP4ghveMahGe5rb+z/jTeomXoNG1hH1uQ17f1ZySskaxYPmNH6FR9Ia/0O+XY6gy6SbByYes4MO93r/HYT5V40A3kzcGeCB3whF8hzujfUt3CBhqkbmo30McnFaan8oKZvAQYAarBDzHlRpVIAAAAASUVORK5CYII="},"19Vz":function(j,W,y){(function(I){I(y("VrN/"))})(function(I){I.defineOption("placeholder","",function(p,e,a){var n=a&&a!=I.Init;if(e&&!n)p.on("blur",g),p.on("change",s),p.on("swapDoc",s),I.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){b(p)}),s(p);else if(!e&&n){p.off("blur",g),p.off("change",s),p.off("swapDoc",s),I.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),v(p);var l=p.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}e&&!p.hasFocus()&&g(p)});function v(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function T(p){v(p);var e=p.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=p.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var a=p.getOption("placeholder");typeof a=="string"&&(a=document.createTextNode(a)),e.appendChild(a),p.display.lineSpace.insertBefore(e,p.display.lineSpace.firstChild)}function b(p){setTimeout(function(){var e=!1,a=p.getInputField();a.nodeName=="TEXTAREA"?e=!a.value:p.lineCount()==1&&(e=!/[^\u200b]/.test(a.querySelector(".CodeMirror-line").textContent)),e?T(p):v(p)},20)}function g(p){_(p)&&T(p)}function s(p){var e=p.getWrapperElement(),a=_(p);e.className=e.className.replace(" CodeMirror-empty","")+(a?" CodeMirror-empty":""),a?T(p):v(p)}function _(p){return p.lineCount()===1&&p.getLine(0)===""}})},"1A8V":function(j,W,y){},"1dTM":function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I=y("GQ8N"),v=S(y("Lo0S")),T=y("VSMT"),b=y("GdRQ"),g=y("SZEN"),s=y("vewr"),_=C(y("YJ9k")),p=C(y("MZdM")),e=C(y("ItS6")),a=C(y("whVF")),n=C(y("Fv0C")),l=C(y("LCi9")),r=C(y("rwxt")),i=C(y("Mmt2")),t=C(y("iUHT")),o=C(y("mHUz")),c=C(y("P2ho")),d=y("NBmB");y("mdZa");var f=C(y("34/K")),h=C(y("hXwI")),u=C(y("SgaC")),E=C(y("3690")),x=C(y("8K/p")),O=C(y("xO64"));function C(ue){return ue&&ue.__esModule?ue:{default:ue}}function w(){if(typeof WeakMap!="function")return null;var ue=new WeakMap;return w=function(){return ue},ue}function S(ue){if(ue&&ue.__esModule)return ue;if(ue===null||D(ue)!=="object"&&typeof ue!="function")return{default:ue};var ae=w();if(ae&&ae.has(ue))return ae.get(ue);var be={},Ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var pe in ue)if(Object.prototype.hasOwnProperty.call(ue,pe)){var Le=Ie?Object.getOwnPropertyDescriptor(ue,pe):null;Le&&(Le.get||Le.set)?Object.defineProperty(be,pe,Le):be[pe]=ue[pe]}return be.default=ue,ae&&ae.set(ue,be),be}function D(ue){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(be){return typeof be}:D=function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},D(ue)}function R(ue,ae){if(!(ue instanceof ae))throw new TypeError("Cannot call a class as a function")}function P(ue,ae){for(var be=0;be<ae.length;be++){var Ie=ae[be];Ie.enumerable=Ie.enumerable||!1,Ie.configurable=!0,"value"in Ie&&(Ie.writable=!0),Object.defineProperty(ue,Ie.key,Ie)}}function N(ue,ae,be){return ae&&P(ue.prototype,ae),be&&P(ue,be),ue}function M(ue,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function");ue.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ue,writable:!0,configurable:!0}}),ae&&z(ue,ae)}function z(ue,ae){return z=Object.setPrototypeOf||function(Ie,pe){return Ie.__proto__=pe,Ie},z(ue,ae)}function X(ue){var ae=U();return function(){var Ie=L(ue),pe;if(ae){var Le=L(this).constructor;pe=Reflect.construct(Ie,arguments,Le)}else pe=Ie.apply(this,arguments);return k(this,pe)}}function k(ue,ae){return ae&&(D(ae)==="object"||typeof ae=="function")?ae:F(ue)}function F(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function U(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ue){return!1}}function L(ue){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(be){return be.__proto__||Object.getPrototypeOf(be)},L(ue)}var B=3,Z="rgb(40, 40, 40)",re=17,me=50,Ee=19,De=75,te=50,Ce=1e3,we=50,ce=1,le=1<<1,oe=1<<2,xe=1<<3,q=1<<4,se=1<<24,Ne=1<<25,de=1<<26,$=1<<27,Q=1<<28,Y=function(ue){M(be,ue);var ae=X(be);function be(Ie,pe,Le){var ve;if(R(this,be),!Ie)throw new Error("Must specify target");if(!pe)throw new Error("Must specify URL");ve=ae.call(this),ve._target=Ie,ve._url=pe,Le=Le||{},ve._rfbCredentials=Le.credentials||{},ve._shared="shared"in Le?!!Le.shared:!0,ve._repeaterID=Le.repeaterID||"",ve._wsProtocols=Le.wsProtocols||[],ve._rfbConnectionState="",ve._rfbInitState="",ve._rfbAuthScheme=-1,ve._rfbCleanDisconnect=!0,ve._rfbVersion=0,ve._rfbMaxVersion=3.8,ve._rfbTightVNC=!1,ve._rfbVeNCryptState=0,ve._rfbXvpVer=0,ve._fbWidth=0,ve._fbHeight=0,ve._fbName="",ve._capabilities={power:!1},ve._supportsFence=!1,ve._supportsContinuousUpdates=!1,ve._enabledContinuousUpdates=!1,ve._supportsSetDesktopSize=!1,ve._screenID=0,ve._screenFlags=0,ve._qemuExtKeyEventSupported=!1,ve._clipboardText=null,ve._clipboardServerCapabilitiesActions={},ve._clipboardServerCapabilitiesFormats={},ve._sock=null,ve._display=null,ve._flushing=!1,ve._keyboard=null,ve._gestures=null,ve._disconnTimer=null,ve._resizeTimeout=null,ve._mouseMoveTimer=null,ve._decoders={},ve._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},ve._mousePos={},ve._mouseButtonMask=0,ve._mouseLastMoveTime=0,ve._viewportDragging=!1,ve._viewportDragPos={},ve._viewportHasMoved=!1,ve._accumulatedWheelDeltaX=0,ve._accumulatedWheelDeltaY=0,ve._gestureLastTapTime=null,ve._gestureFirstDoubleTapEv=null,ve._gestureLastMagnitudeX=0,ve._gestureLastMagnitudeY=0,ve._eventHandlers={focusCanvas:ve._focusCanvas.bind(F(ve)),windowResize:ve._windowResize.bind(F(ve)),handleMouse:ve._handleMouse.bind(F(ve)),handleWheel:ve._handleWheel.bind(F(ve)),handleGesture:ve._handleGesture.bind(F(ve))},v.Debug(">> RFB.constructor"),ve._screen=document.createElement("div"),ve._screen.style.display="flex",ve._screen.style.width="100%",ve._screen.style.height="100%",ve._screen.style.overflow="auto",ve._screen.style.background=Z,ve._canvas=document.createElement("canvas"),ve._canvas.style.margin="auto",ve._canvas.style.outline="none",ve._canvas.style.flexShrink="0",ve._canvas.width=0,ve._canvas.height=0,ve._canvas.tabIndex=-1,ve._screen.appendChild(ve._canvas),ve._cursor=new r.default,ve._cursorImage=be.cursors.none,ve._decoders[d.encodings.encodingRaw]=new f.default,ve._decoders[d.encodings.encodingCopyRect]=new h.default,ve._decoders[d.encodings.encodingRRE]=new u.default,ve._decoders[d.encodings.encodingHextile]=new E.default,ve._decoders[d.encodings.encodingTight]=new x.default,ve._decoders[d.encodings.encodingTightPNG]=new O.default;try{ve._display=new p.default(ve._canvas)}catch(Xe){throw v.Error("Display exception: "+Xe),Xe}return ve._display.onflush=ve._onFlush.bind(F(ve)),ve._keyboard=new n.default(ve._canvas),ve._keyboard.onkeyevent=ve._handleKeyEvent.bind(F(ve)),ve._gestures=new l.default,ve._sock=new i.default,ve._sock.on("message",function(){ve._handleMessage()}),ve._sock.on("open",function(){ve._rfbConnectionState==="connecting"&&ve._rfbInitState===""?(ve._rfbInitState="ProtocolVersion",v.Debug("Starting VNC handshake")):ve._fail("Unexpected server connection while "+ve._rfbConnectionState)}),ve._sock.on("close",function(Xe){v.Debug("WebSocket on-close event");var $e="";Xe.code&&($e="(code: "+Xe.code,Xe.reason&&($e+=", reason: "+Xe.reason),$e+=")");switch(ve._rfbConnectionState){case"connecting":ve._fail("Connection closed "+$e);break;case"connected":ve._updateConnectionState("disconnecting"),ve._updateConnectionState("disconnected");break;case"disconnecting":ve._updateConnectionState("disconnected");break;case"disconnected":ve._fail("Unexpected server disconnect when already disconnected "+$e);break;default:ve._fail("Unexpected server disconnect before connecting "+$e);break}ve._sock.off("close")}),ve._sock.on("error",function(Xe){return v.Warn("WebSocket on-error event")}),setTimeout(ve._updateConnectionState.bind(F(ve),"connecting")),v.Debug("<< RFB.constructor"),ve.dragViewport=!1,ve.focusOnClick=!0,ve._viewOnly=!1,ve._clipViewport=!1,ve._scaleViewport=!1,ve._resizeSession=!1,ve._showDotCursor=!1,Le.showDotCursor!==void 0&&(v.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),ve._showDotCursor=Le.showDotCursor),ve._qualityLevel=6,ve._compressionLevel=2,ve}return N(be,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(pe){this._rfbCredentials=pe,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;v.Info("Sending Ctrl-Alt-Del"),this.sendKey(o.default.XK_Control_L,"ControlLeft",!0),this.sendKey(o.default.XK_Alt_L,"AltLeft",!0),this.sendKey(o.default.XK_Delete,"Delete",!0),this.sendKey(o.default.XK_Delete,"Delete",!1),this.sendKey(o.default.XK_Alt_L,"AltLeft",!1),this.sendKey(o.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(pe,Le,ve){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(ve===void 0){this.sendKey(pe,Le,!0),this.sendKey(pe,Le,!1);return}var Xe=c.default[Le];if(this._qemuExtKeyEventSupported&&Xe)pe=pe||0,v.Info("Sending key ("+(ve?"down":"up")+"): keysym "+pe+", scancode "+Xe),be.messages.QEMUExtendedKeyEvent(this._sock,pe,ve,Xe);else{if(!pe)return;v.Info("Sending keysym ("+(ve?"down":"up")+"): "+pe),be.messages.keyEvent(this._sock,pe,ve?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(pe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[ce]&&this._clipboardServerCapabilitiesActions[$])this._clipboardText=pe,be.messages.extendedClipboardNotify(this._sock,[ce]);else{for(var Le=new Uint8Array(pe.length),ve=0;ve<pe.length;ve++)Le[ve]=pe.charCodeAt(ve);be.messages.clientCutText(this._sock,Le)}}},{key:"_connect",value:function(){v.Debug(">> RFB.connect"),v.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(pe){pe.name==="SyntaxError"?this._fail("Invalid host or port ("+pe+")"):this._fail("Error when opening socket ("+pe+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),v.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){v.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(pe){if(!(pe.name==="NotFoundError"))throw pe}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),v.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(pe){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(pe){this._fbName=pe,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(pe){var Le=this;window.requestAnimationFrame(function(){Le._updateClip(),Le._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var pe=this._display.clipViewport,Le=this._clipViewport;if(this._scaleViewport&&(Le=!1),pe!==Le&&(this._display.clipViewport=Le),Le){var ve=this._screenSize();this._display.viewportChangeSize(ve.w,ve.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var pe=this._screenSize();this._display.autoscale(pe.w,pe.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var pe=this._screenSize();be.messages.setDesktopSize(this._sock,Math.floor(pe.w),Math.floor(pe.h),this._screenID,this._screenFlags),v.Debug("Requested new desktop size: "+pe.w+"x"+pe.h)}},{key:"_screenSize",value:function(){var pe=this._screen.getBoundingClientRect();return{w:pe.width,h:pe.height}}},{key:"_fixScrollbars",value:function(){var pe=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=pe}},{key:"_updateConnectionState",value:function(pe){var Le=this,ve=this._rfbConnectionState;if(pe===ve){v.Debug("Already in state '"+pe+"', ignoring");return}if(ve==="disconnected"){v.Error("Tried changing state of a disconnected RFB object");return}switch(pe){case"connected":if(ve!=="connecting"){v.Error("Bad transition to connected state, previous connection state: "+ve);return}break;case"disconnected":if(ve!=="disconnecting"){v.Error("Bad transition to disconnected state, previous connection state: "+ve);return}break;case"connecting":if(ve!==""){v.Error("Bad transition to connecting state, previous connection state: "+ve);return}break;case"disconnecting":if(ve!=="connected"&&ve!=="connecting"){v.Error("Bad transition to disconnecting state, previous connection state: "+ve);return}break;default:v.Error("Unknown connection state: "+pe);return}this._rfbConnectionState=pe,v.Debug("New state '"+pe+"', was '"+ve+"'."),this._disconnTimer&&pe!=="disconnecting"&&(v.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(pe){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){v.Error("Disconnection timed out."),Le._updateConnectionState("disconnected")},B*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(pe){switch(this._rfbConnectionState){case"disconnecting":v.Error("Failed when disconnecting: "+pe);break;case"connected":v.Error("Failed while connected: "+pe);break;case"connecting":v.Error("Failed when connecting: "+pe);break;default:v.Error("RFB failure: "+pe);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(pe,Le){this._capabilities[pe]=Le,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){v.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":v.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(pe,Le,ve){this.sendKey(pe,Le,ve)}},{key:"_handleMouse",value:function(pe){if(pe.type==="click"&&pe.target!==this._canvas)return;if(pe.stopPropagation(),pe.preventDefault(),pe.type==="click"||pe.type==="contextmenu")return;var Le=(0,g.clientToElement)(pe.clientX,pe.clientY,this._canvas);switch(pe.type){case"mousedown":(0,s.setCapture)(this._canvas),this._handleMouseButton(Le.x,Le.y,!0,1<<pe.button);break;case"mouseup":this._handleMouseButton(Le.x,Le.y,!1,1<<pe.button);break;case"mousemove":this._handleMouseMove(Le.x,Le.y);break}}},{key:"_handleMouseButton",value:function(pe,Le,ve,Xe){if(this.dragViewport)if(ve&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:pe,y:Le},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(pe,Le,Xe)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(pe,Le,this._mouseButtonMask)),ve?this._mouseButtonMask|=Xe:this._mouseButtonMask&=~Xe,this._sendMouse(pe,Le,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(pe,Le){var ve=this;if(this._viewportDragging){var Xe=this._viewportDragPos.x-pe,$e=this._viewportDragPos.y-Le;(this._viewportHasMoved||Math.abs(Xe)>b.dragThreshold||Math.abs($e)>b.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:pe,y:Le},this._display.viewportChangePos(Xe,$e));return}if(this._mousePos={x:pe,y:Le},this._mouseMoveTimer==null){var Ge=Date.now()-this._mouseLastMoveTime;Ge>re?(this._sendMouse(pe,Le,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){ve._handleDelayedMouseMove()},re-Ge)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(pe,Le,ve){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;be.messages.pointerEvent(this._sock,this._display.absX(pe),this._display.absY(Le),ve)}},{key:"_handleWheel",value:function(pe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;pe.stopPropagation(),pe.preventDefault();var Le=(0,g.clientToElement)(pe.clientX,pe.clientY,this._canvas),ve=pe.deltaX,Xe=pe.deltaY;pe.deltaMode!==0&&(ve*=Ee,Xe*=Ee),this._accumulatedWheelDeltaX+=ve,this._accumulatedWheelDeltaY+=Xe,Math.abs(this._accumulatedWheelDeltaX)>=me&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(Le.x,Le.y,!0,1<<5),this._handleMouseButton(Le.x,Le.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(Le.x,Le.y,!0,1<<6),this._handleMouseButton(Le.x,Le.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=me&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(Le.x,Le.y,!0,1<<3),this._handleMouseButton(Le.x,Le.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(Le.x,Le.y,!0,1<<4),this._handleMouseButton(Le.x,Le.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(pe,Le,ve){this._handleMouseMove(Le,ve),this._cursor.move(pe.detail.clientX,pe.detail.clientY)}},{key:"_handleTapEvent",value:function(pe,Le){var ve=(0,g.clientToElement)(pe.detail.clientX,pe.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<Ce&&this._gestureFirstDoubleTapEv.detail.type===pe.detail.type){var Xe=this._gestureFirstDoubleTapEv.detail.clientX-pe.detail.clientX,$e=this._gestureFirstDoubleTapEv.detail.clientY-pe.detail.clientY,Ge=Math.hypot(Xe,$e);Ge<we?ve=(0,g.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=pe}else this._gestureFirstDoubleTapEv=pe;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,ve.x,ve.y),this._handleMouseButton(ve.x,ve.y,!0,Le),this._handleMouseButton(ve.x,ve.y,!1,Le)}},{key:"_handleGesture",value:function(pe){var Le,ve=(0,g.clientToElement)(pe.detail.clientX,pe.detail.clientY,this._canvas);switch(pe.type){case"gesturestart":switch(pe.detail.type){case"onetap":this._handleTapEvent(pe,1);break;case"twotap":this._handleTapEvent(pe,4);break;case"threetap":this._handleTapEvent(pe,2);break;case"drag":this._fakeMouseMove(pe,ve.x,ve.y),this._handleMouseButton(ve.x,ve.y,!0,1);break;case"longpress":this._fakeMouseMove(pe,ve.x,ve.y),this._handleMouseButton(ve.x,ve.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=pe.detail.magnitudeX,this._gestureLastMagnitudeY=pe.detail.magnitudeY,this._fakeMouseMove(pe,ve.x,ve.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(pe.detail.magnitudeX,pe.detail.magnitudeY),this._fakeMouseMove(pe,ve.x,ve.y);break}break;case"gesturemove":switch(pe.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(pe,ve.x,ve.y);break;case"twodrag":for(this._fakeMouseMove(pe,ve.x,ve.y);pe.detail.magnitudeY-this._gestureLastMagnitudeY>te;)this._handleMouseButton(ve.x,ve.y,!0,8),this._handleMouseButton(ve.x,ve.y,!1,8),this._gestureLastMagnitudeY+=te;for(;pe.detail.magnitudeY-this._gestureLastMagnitudeY<-te;)this._handleMouseButton(ve.x,ve.y,!0,16),this._handleMouseButton(ve.x,ve.y,!1,16),this._gestureLastMagnitudeY-=te;for(;pe.detail.magnitudeX-this._gestureLastMagnitudeX>te;)this._handleMouseButton(ve.x,ve.y,!0,32),this._handleMouseButton(ve.x,ve.y,!1,32),this._gestureLastMagnitudeX+=te;for(;pe.detail.magnitudeX-this._gestureLastMagnitudeX<-te;)this._handleMouseButton(ve.x,ve.y,!0,64),this._handleMouseButton(ve.x,ve.y,!1,64),this._gestureLastMagnitudeX-=te;break;case"pinch":if(this._fakeMouseMove(pe,ve.x,ve.y),Le=Math.hypot(pe.detail.magnitudeX,pe.detail.magnitudeY),Math.abs(Le-this._gestureLastMagnitudeX)>De){for(this._handleKeyEvent(o.default.XK_Control_L,"ControlLeft",!0);Le-this._gestureLastMagnitudeX>De;)this._handleMouseButton(ve.x,ve.y,!0,8),this._handleMouseButton(ve.x,ve.y,!1,8),this._gestureLastMagnitudeX+=De;for(;Le-this._gestureLastMagnitudeX<-De;)this._handleMouseButton(ve.x,ve.y,!0,16),this._handleMouseButton(ve.x,ve.y,!1,16),this._gestureLastMagnitudeX-=De}this._handleKeyEvent(o.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(pe.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(pe,ve.x,ve.y),this._handleMouseButton(ve.x,ve.y,!1,1);break;case"longpress":this._fakeMouseMove(pe,ve.x,ve.y),this._handleMouseButton(ve.x,ve.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var pe=this._sock.rQshiftStr(12).substr(4,7);v.Info("Server ProtocolVersion: "+pe);var Le=0;switch(pe){case"000.000":Le=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+pe)}if(Le){for(var ve="ID:"+this._repeaterID;ve.length<250;)ve+="\0";return this._sock.sendString(ve),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Xe="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Xe+`
`),v.Debug("Sent ProtocolVersion: "+Xe),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function pe(Xe,$e){for(var Ge=0;Ge<$e.length;Ge++)if($e[Ge]===Xe)return!0;return!1}if(this._rfbVersion>=3.7){var Le=this._sock.rQshift8();if(this._sock.rQwait("security type",Le,1))return!1;if(Le===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var ve=this._sock.rQshiftBytes(Le);if(v.Debug("Server security types: "+ve),pe(1,ve))this._rfbAuthScheme=1;else if(pe(22,ve))this._rfbAuthScheme=22;else if(pe(16,ve))this._rfbAuthScheme=16;else if(pe(2,ve))this._rfbAuthScheme=2;else if(pe(19,ve))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+ve+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",v.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var pe=this._sock.rQshift32(),Le="";if(pe>0){if(this._sock.rQwait("reason",pe,4))return!1;Le=this._sock.rQshiftStr(pe)}return Le!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:Le}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+Le+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var pe=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(pe),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var pe=this._sock.rQshift8(),Le=this._sock.rQshift8();if(!(pe==0&&Le==2))return this._fail("Unsupported VeNCrypt version "+pe+"."+Le);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var ve=this._sock.rQshift8();if(ve!=0)return this._fail("VeNCrypt failure "+ve);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Xe=this._sock.rQshift8();if(Xe<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Xe,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var $e=[],Ge=0;Ge<this._rfbVeNCryptSubtypesLength;Ge++)$e.push(this._sock.rQshift32());if($e.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var Me=(0,T.encodeUTF8)(this._rfbCredentials.username),gt=(0,T.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Me.length]),this._sock.send([0,0,0,gt.length]),this._sock.sendString(Me),this._sock.sendString(gt),this._rfbInitState="SecurityResult",!0}}},{key:"_negotiateStdVNCAuth",value:function(){if(this._sock.rQwait("auth challenge",16))return!1;if(this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;var pe=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),Le=be.genDES(this._rfbCredentials.password,pe);return this._sock.send(Le),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(pe){for(var Le={0:{vendor:"TGHT",signature:"NOTUNNEL"}},ve={},Xe=0;Xe<pe;Xe++){var $e=this._sock.rQshift32(),Ge=this._sock.rQshiftStr(4),Me=this._sock.rQshiftStr(8);ve[$e]={vendor:Ge,signature:Me}}return v.Debug("Server Tight tunnel types: "+ve),ve[1]&&ve[1].vendor==="SICR"&&ve[1].signature==="SCHANNEL"&&(v.Debug("Detected Siemens server. Assuming NOTUNNEL support."),ve[0]={vendor:"TGHT",signature:"NOTUNNEL"}),ve[0]?ve[0].vendor!=Le[0].vendor||ve[0].signature!=Le[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(v.Debug("Selected tunnel type: "+Le[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var pe=this._sock.rQshift32();if(pe>0&&this._sock.rQwait("tunnel capabilities",16*pe,4))return!1;if(this._rfbTightVNC=!0,pe>0)return this._negotiateTightTunnels(pe),!1}if(this._sock.rQwait("sub auth count",4))return!1;var Le=this._sock.rQshift32();if(Le===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*Le,4))return!1;for(var ve={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Xe=[],$e=0;$e<Le;$e++){this._sock.rQshift32();var Ge=this._sock.rQshiftStr(12);Xe.push(Ge)}v.Debug("Server Tight authentication types: "+Xe);for(var Me in ve)if(Xe.indexOf(Me)!=-1){this._sock.send([0,0,0,ve[Me]]),v.Debug("Selected authentication type: "+Me);switch(Me){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+Me+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var pe=this._sock.rQshift32();return pe===0?(this._rfbInitState="ClientInitialisation",v.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=pe,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:pe}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var pe=this._sock.rQshift16(),Le=this._sock.rQshift16(),ve=this._sock.rQshift8(),Xe=this._sock.rQshift8(),$e=this._sock.rQshift8(),Ge=this._sock.rQshift8(),Me=this._sock.rQshift16(),gt=this._sock.rQshift16(),Te=this._sock.rQshift16(),Ye=this._sock.rQshift8(),Ze=this._sock.rQshift8(),Ve=this._sock.rQshift8();this._sock.rQskipBytes(3);var Fe=this._sock.rQshift32();if(this._sock.rQwait("server init name",Fe,24))return!1;var Be=this._sock.rQshiftStr(Fe);if(Be=(0,T.decodeUTF8)(Be,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Fe))return!1;var _e=this._sock.rQshift16(),Ae=this._sock.rQshift16(),fe=this._sock.rQshift16();this._sock.rQskipBytes(2);var ke=(_e+Ae+fe)*16;if(this._sock.rQwait("TightVNC extended server init header",ke,32+Fe))return!1;this._sock.rQskipBytes(16*_e),this._sock.rQskipBytes(16*Ae),this._sock.rQskipBytes(16*fe)}return v.Info("Screen: "+pe+"x"+Le+", bpp: "+ve+", depth: "+Xe+", bigEndian: "+$e+", trueColor: "+Ge+", redMax: "+Me+", greenMax: "+gt+", blueMax: "+Te+", redShift: "+Ye+", greenShift: "+Ze+", blueShift: "+Ve),this._setDesktopName(Be),this._resize(pe,Le),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(v.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),be.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),be.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var pe=[];pe.push(d.encodings.encodingCopyRect),this._fbDepth==24&&(pe.push(d.encodings.encodingTight),pe.push(d.encodings.encodingTightPNG),pe.push(d.encodings.encodingHextile),pe.push(d.encodings.encodingRRE)),pe.push(d.encodings.encodingRaw),pe.push(d.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),pe.push(d.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),pe.push(d.encodings.pseudoEncodingDesktopSize),pe.push(d.encodings.pseudoEncodingLastRect),pe.push(d.encodings.pseudoEncodingQEMUExtendedKeyEvent),pe.push(d.encodings.pseudoEncodingExtendedDesktopSize),pe.push(d.encodings.pseudoEncodingXvp),pe.push(d.encodings.pseudoEncodingFence),pe.push(d.encodings.pseudoEncodingContinuousUpdates),pe.push(d.encodings.pseudoEncodingDesktopName),pe.push(d.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(pe.push(d.encodings.pseudoEncodingVMwareCursor),pe.push(d.encodings.pseudoEncodingCursor)),be.messages.clientEncodings(this._sock,pe)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return v.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(v.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var pe=this._sock.rQshift32();if(pe=(0,I.toSigned32bit)(pe),this._sock.rQwait("ServerCutText content",Math.abs(pe),8))return!1;if(pe>=0){var Le=this._sock.rQshiftStr(pe);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Le}}))}else{pe=Math.abs(pe);var ve=this._sock.rQshift32(),Xe=ve&65535,$e=ve&4278190080,Ge=!!($e&se);if(Ge){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Me=0;Me<=15;Me++){var gt=1<<Me;Xe&gt&&(this._clipboardServerCapabilitiesFormats[gt]=!0,this._sock.rQshift32())}for(var Te=24;Te<=31;Te++){var Ye=1<<Te;this._clipboardServerCapabilitiesActions[Ye]=!!($e&Ye)}var Ze=[se,Ne,de,$,Q];be.messages.extendedClipboardCaps(this._sock,Ze,{extendedClipboardFormatText:0})}else if($e===Ne){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Q]&&(Xe&ce&&be.messages.extendedClipboardProvide(this._sock,[ce],[this._clipboardText]))}else if($e===de){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[$]&&(this._clipboardText!=null?be.messages.extendedClipboardNotify(this._sock,[ce]):be.messages.extendedClipboardNotify(this._sock,[]))}else if($e===$){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Ne]&&(Xe&ce&&be.messages.extendedClipboardRequest(this._sock,[ce]))}else if($e===Q){if(this._viewOnly)return!0;if(!(Xe&ce))return!0;this._clipboardText=null;var Ve=this._sock.rQshiftBytes(pe-4),Fe=new e.default,Be=null;Fe.setInput(Ve);for(var _e=0;_e<=15;_e++){var Ae=1<<_e;if(Xe&Ae){var fe=0,ke=Fe.inflate(4);fe|=ke[0]<<24,fe|=ke[1]<<16,fe|=ke[2]<<8,fe|=ke[3];var Je=Fe.inflate(fe);Ae===ce&&(Be=Je)}}if(Fe.setInput(null),Be!==null){for(var ne="",Qe=0;Qe<Be.length;Qe++)ne+=String.fromCharCode(Be[Qe]);Be=ne,Be=(0,T.decodeUTF8)(Be),Be.length>0&&Be.charAt(Be.length-1)==="\0"&&(Be=Be.slice(0,-1)),Be=Be.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Be}}))}}else return this._fail("Unexpected action in extended clipboard message: "+$e)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var pe=this._sock.rQshift32(),Le=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",Le,9))return!1;Le>64&&(v.Warn("Bad payload length ("+Le+") in fence response"),Le=64);var ve=this._sock.rQshiftStr(Le);return this._supportsFence=!0,pe&1<<31?(pe&=1<<0|1<<1,be.messages.clientFence(this._sock,pe,ve),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var pe=this._sock.rQshift8(),Le=this._sock.rQshift8();switch(Le){case 0:v.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=pe,v.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+Le+")");break}return!0}},{key:"_normalMsg",value:function(){var pe;this._FBU.rects>0?pe=0:pe=this._sock.rQshift8();var Le,ve;switch(pe){case 0:return ve=this._framebufferUpdate(),ve&&!this._enabledContinuousUpdates&&be.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),ve;case 1:return this._handleSetColourMapMsg();case 2:return v.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return Le=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,Le&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),v.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+pe+")"),v.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var pe=this._sock.rQshiftBytes(12);this._FBU.x=(pe[0]<<8)+pe[1],this._FBU.y=(pe[2]<<8)+pe[3],this._FBU.width=(pe[4]<<8)+pe[5],this._FBU.height=(pe[6]<<8)+pe[7],this._FBU.encoding=parseInt((pe[8]<<24)+(pe[9]<<16)+(pe[10]<<8)+pe[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case d.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case d.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case d.encodings.pseudoEncodingCursor:return this._handleCursor();case d.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var pe=document.createEvent("keyboardEvent");pe.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(Le){}return!0;case d.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case d.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case d.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var pe=this._FBU.x,Le=this._FBU.y,ve=this._FBU.width,Xe=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var $e=this._sock.rQshift8();this._sock.rQshift8();var Ge,Me=4;if($e==0){var gt=4294967040|0;if(Ge=new Array(ve*Xe*Me),this._sock.rQwait("VMware cursor classic encoding",ve*Xe*Me*2,2))return!1;for(var Te=new Array(ve*Xe),Ye=0;Ye<ve*Xe;Ye++)Te[Ye]=this._sock.rQshift32();for(var Ze=new Array(ve*Xe),Ve=0;Ve<ve*Xe;Ve++)Ze[Ve]=this._sock.rQshift32();for(var Fe=0;Fe<ve*Xe;Fe++)if(Te[Fe]==0){var Be=Ze[Fe],_e=Be>>8&255,Ae=Be>>16&255,fe=Be>>24&255;Ge[Fe*Me]=_e,Ge[Fe*Me+1]=Ae,Ge[Fe*Me+2]=fe,Ge[Fe*Me+3]=255}else(Te[Fe]&gt)==gt?Ze[Fe]==0?(Ge[Fe*Me]=0,Ge[Fe*Me+1]=0,Ge[Fe*Me+2]=0,Ge[Fe*Me+3]=0):((Ze[Fe]&gt)==gt,Ge[Fe*Me]=0,Ge[Fe*Me+1]=0,Ge[Fe*Me+2]=0,Ge[Fe*Me+3]=255):(Ge[Fe*Me]=0,Ge[Fe*Me+1]=0,Ge[Fe*Me+2]=0,Ge[Fe*Me+3]=255)}else if($e==1){if(this._sock.rQwait("VMware cursor alpha encoding",ve*Xe*4,2))return!1;Ge=new Array(ve*Xe*Me);for(var ke=0;ke<ve*Xe;ke++){var Je=this._sock.rQshift32();Ge[ke*4]=Je>>24&255,Ge[ke*4+1]=Je>>16&255,Ge[ke*4+2]=Je>>8&255,Ge[ke*4+3]=Je&255}}else return v.Warn("The given cursor type is not supported: "+$e+" given."),!1;return this._updateCursor(Ge,pe,Le,ve,Xe),!0}},{key:"_handleCursor",value:function(){var pe=this._FBU.x,Le=this._FBU.y,ve=this._FBU.width,Xe=this._FBU.height,$e=ve*Xe*4,Ge=Math.ceil(ve/8)*Xe,Me=$e+Ge;if(this._sock.rQwait("cursor encoding",Me))return!1;for(var gt=this._sock.rQshiftBytes($e),Te=this._sock.rQshiftBytes(Ge),Ye=new Uint8Array(ve*Xe*4),Ze=0,Ve=0;Ve<Xe;Ve++)for(var Fe=0;Fe<ve;Fe++){var Be=Ve*Math.ceil(ve/8)+Math.floor(Fe/8),_e=Te[Be]<<Fe%8&128?255:0;Ye[Ze]=gt[Ze+2],Ye[Ze+1]=gt[Ze+1],Ye[Ze+2]=gt[Ze],Ye[Ze+3]=_e,Ze+=4}return this._updateCursor(Ye,pe,Le,ve,Xe),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var pe=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",pe,4))return!1;var Le=this._sock.rQshiftStr(pe);return Le=(0,T.decodeUTF8)(Le,!0),this._setDesktopName(Le),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var pe=this._sock.rQpeek8(),Le=4+pe*16;if(this._sock.rQwait("ExtendedDesktopSize",Le))return!1;var ve=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,ve&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Xe=0;Xe<pe;Xe+=1)Xe===0?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(this._FBU.x===1&&this._FBU.y!==0){var $e="";switch(this._FBU.y){case 1:$e="Resize is administratively prohibited";break;case 2:$e="Out of resources";break;case 3:$e="Invalid screen layout";break;default:$e="Unknown reason";break}v.Warn("Server did not accept the resize request: "+$e)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var pe=this._decoders[this._FBU.encoding];if(!pe)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return pe.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(Le){return this._fail("Error decoding rect: "+Le),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;be.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(pe,Le){this._fbWidth=pe,this._fbHeight=Le,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(pe,Le){if(this._rfbXvpVer<pe)return;v.Info("Sending XVP operation "+Le+" (version "+pe+")"),be.messages.xvpOp(this._sock,pe,Le)}},{key:"_updateCursor",value:function(pe,Le,ve,Xe,$e){this._cursorImage={rgbaPixels:pe,hotx:Le,hoty:ve,w:Xe,h:$e},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var pe=3;pe<this._cursorImage.rgbaPixels.length;pe+=4)if(this._cursorImage.rgbaPixels[pe])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var pe=this._shouldShowDotCursor()?be.cursors.dot:this._cursorImage;this._cursor.change(pe.rgbaPixels,pe.hotx,pe.hoty,pe.w,pe.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(pe){this._viewOnly=pe,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(pe?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(pe){v.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(pe){this._clipViewport=pe,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(pe){this._scaleViewport=pe,pe&&this._clipViewport&&this._updateClip(),this._updateScale(),!pe&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(pe){this._resizeSession=pe,pe&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(pe){this._showDotCursor=pe,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(pe){this._screen.style.background=pe}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(pe){if(!Number.isInteger(pe)||pe<0||pe>9){v.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===pe)return;this._qualityLevel=pe,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(pe){if(!Number.isInteger(pe)||pe<0||pe>9){v.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===pe)return;this._compressionLevel=pe,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(pe,Le){var ve=pe.split("").map(function(Xe){return Xe.charCodeAt(0)});return new t.default(ve).encrypt(Le)}}]),be}(_.default);W.default=Y,Y.messages={keyEvent:function(ae,be,Ie){var pe=ae._sQ,Le=ae._sQlen;pe[Le]=4,pe[Le+1]=Ie,pe[Le+2]=0,pe[Le+3]=0,pe[Le+4]=be>>24,pe[Le+5]=be>>16,pe[Le+6]=be>>8,pe[Le+7]=be,ae._sQlen+=8,ae.flush()},QEMUExtendedKeyEvent:function(ae,be,Ie,pe){function Le(Ge){var Me=pe>>8,gt=pe&255;return Me===224&&gt<127?gt|128:Ge}var ve=ae._sQ,Xe=ae._sQlen;ve[Xe]=255,ve[Xe+1]=0,ve[Xe+2]=Ie>>8,ve[Xe+3]=Ie,ve[Xe+4]=be>>24,ve[Xe+5]=be>>16,ve[Xe+6]=be>>8,ve[Xe+7]=be;var $e=Le(pe);ve[Xe+8]=$e>>24,ve[Xe+9]=$e>>16,ve[Xe+10]=$e>>8,ve[Xe+11]=$e,ae._sQlen+=12,ae.flush()},pointerEvent:function(ae,be,Ie,pe){var Le=ae._sQ,ve=ae._sQlen;Le[ve]=5,Le[ve+1]=pe,Le[ve+2]=be>>8,Le[ve+3]=be,Le[ve+4]=Ie>>8,Le[ve+5]=Ie,ae._sQlen+=6,ae.flush()},_buildExtendedClipboardFlags:function(ae,be){for(var Ie=new Uint8Array(4),pe=0,Le=0,ve=0;ve<ae.length;ve++)Le|=ae[ve];for(var Xe=0;Xe<be.length;Xe++)pe|=be[Xe];return Ie[0]=Le>>24,Ie[1]=0,Ie[2]=0,Ie[3]=pe,Ie},extendedClipboardProvide:function(ae,be,Ie){for(var pe=new a.default,Le=[],ve=0;ve<be.length;ve++){if(be[ve]!=ce)throw new Error("Unsupported extended clipboard format for Provide message.");Ie[ve]=Ie[ve].replace(/\r\n|\r|\n/gm,`\r
`);var Xe=(0,T.encodeUTF8)(Ie[ve]+"\0");Le.push(Xe.length>>24&255,Xe.length>>16&255,Xe.length>>8&255,Xe.length&255);for(var $e=0;$e<Xe.length;$e++)Le.push(Xe.charCodeAt($e))}var Ge=pe.deflate(new Uint8Array(Le)),Me=new Uint8Array(4+Ge.length);Me.set(Y.messages._buildExtendedClipboardFlags([Q],be)),Me.set(Ge,4),Y.messages.clientCutText(ae,Me,!0)},extendedClipboardNotify:function(ae,be){var Ie=Y.messages._buildExtendedClipboardFlags([$],be);Y.messages.clientCutText(ae,Ie,!0)},extendedClipboardRequest:function(ae,be){var Ie=Y.messages._buildExtendedClipboardFlags([Ne],be);Y.messages.clientCutText(ae,Ie,!0)},extendedClipboardCaps:function(ae,be,Ie){var pe=Object.keys(Ie),Le=new Uint8Array(4+4*pe.length);pe.map(function($e){return parseInt($e)}),pe.sort(function($e,Ge){return $e-Ge}),Le.set(Y.messages._buildExtendedClipboardFlags(be,[]));for(var ve=4,Xe=0;Xe<pe.length;Xe++)Le[ve]=Ie[pe[Xe]]>>24,Le[ve+1]=Ie[pe[Xe]]>>16,Le[ve+2]=Ie[pe[Xe]]>>8,Le[ve+3]=Ie[pe[Xe]]>>0,ve+=4,Le[3]|=1<<pe[Xe];Y.messages.clientCutText(ae,Le,!0)},clientCutText:function(ae,be){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pe=ae._sQ,Le=ae._sQlen;pe[Le]=6,pe[Le+1]=0,pe[Le+2]=0,pe[Le+3]=0;var ve;Ie?ve=(0,I.toUnsigned32bit)(-be.length):ve=be.length,pe[Le+4]=ve>>24,pe[Le+5]=ve>>16,pe[Le+6]=ve>>8,pe[Le+7]=ve,ae._sQlen+=8;for(var Xe=0,$e=be.length;$e>0;){for(var Ge=Math.min($e,ae._sQbufferSize-ae._sQlen),Me=0;Me<Ge;Me++)pe[ae._sQlen+Me]=be[Xe+Me];ae._sQlen+=Ge,ae.flush(),$e-=Ge,Xe+=Ge}},setDesktopSize:function(ae,be,Ie,pe,Le){var ve=ae._sQ,Xe=ae._sQlen;ve[Xe]=251,ve[Xe+1]=0,ve[Xe+2]=be>>8,ve[Xe+3]=be,ve[Xe+4]=Ie>>8,ve[Xe+5]=Ie,ve[Xe+6]=1,ve[Xe+7]=0,ve[Xe+8]=pe>>24,ve[Xe+9]=pe>>16,ve[Xe+10]=pe>>8,ve[Xe+11]=pe,ve[Xe+12]=0,ve[Xe+13]=0,ve[Xe+14]=0,ve[Xe+15]=0,ve[Xe+16]=be>>8,ve[Xe+17]=be,ve[Xe+18]=Ie>>8,ve[Xe+19]=Ie,ve[Xe+20]=Le>>24,ve[Xe+21]=Le>>16,ve[Xe+22]=Le>>8,ve[Xe+23]=Le,ae._sQlen+=24,ae.flush()},clientFence:function(ae,be,Ie){var pe=ae._sQ,Le=ae._sQlen;pe[Le]=248,pe[Le+1]=0,pe[Le+2]=0,pe[Le+3]=0,pe[Le+4]=be>>24,pe[Le+5]=be>>16,pe[Le+6]=be>>8,pe[Le+7]=be;var ve=Ie.length;pe[Le+8]=ve;for(var Xe=0;Xe<ve;Xe++)pe[Le+9+Xe]=Ie.charCodeAt(Xe);ae._sQlen+=9+ve,ae.flush()},enableContinuousUpdates:function(ae,be,Ie,pe,Le,ve){var Xe=ae._sQ,$e=ae._sQlen;Xe[$e]=150,Xe[$e+1]=be,Xe[$e+2]=Ie>>8,Xe[$e+3]=Ie,Xe[$e+4]=pe>>8,Xe[$e+5]=pe,Xe[$e+6]=Le>>8,Xe[$e+7]=Le,Xe[$e+8]=ve>>8,Xe[$e+9]=ve,ae._sQlen+=10,ae.flush()},pixelFormat:function(ae,be,Ie){var pe=ae._sQ,Le=ae._sQlen,ve;be>16?ve=32:be>8?ve=16:ve=8;var Xe=Math.floor(be/3);pe[Le]=0,pe[Le+1]=0,pe[Le+2]=0,pe[Le+3]=0,pe[Le+4]=ve,pe[Le+5]=be,pe[Le+6]=0,pe[Le+7]=Ie?1:0,pe[Le+8]=0,pe[Le+9]=(1<<Xe)-1,pe[Le+10]=0,pe[Le+11]=(1<<Xe)-1,pe[Le+12]=0,pe[Le+13]=(1<<Xe)-1,pe[Le+14]=Xe*2,pe[Le+15]=Xe*1,pe[Le+16]=Xe*0,pe[Le+17]=0,pe[Le+18]=0,pe[Le+19]=0,ae._sQlen+=20,ae.flush()},clientEncodings:function(ae,be){var Ie=ae._sQ,pe=ae._sQlen;Ie[pe]=2,Ie[pe+1]=0,Ie[pe+2]=be.length>>8,Ie[pe+3]=be.length;for(var Le=pe+4,ve=0;ve<be.length;ve++){var Xe=be[ve];Ie[Le]=Xe>>24,Ie[Le+1]=Xe>>16,Ie[Le+2]=Xe>>8,Ie[Le+3]=Xe,Le+=4}ae._sQlen+=Le-pe,ae.flush()},fbUpdateRequest:function(ae,be,Ie,pe,Le,ve){var Xe=ae._sQ,$e=ae._sQlen;typeof Ie=="undefined"&&(Ie=0),typeof pe=="undefined"&&(pe=0),Xe[$e]=3,Xe[$e+1]=be?1:0,Xe[$e+2]=Ie>>8&255,Xe[$e+3]=Ie&255,Xe[$e+4]=pe>>8&255,Xe[$e+5]=pe&255,Xe[$e+6]=Le>>8&255,Xe[$e+7]=Le&255,Xe[$e+8]=ve>>8&255,Xe[$e+9]=ve&255,ae._sQlen+=10,ae.flush()},xvpOp:function(ae,be,Ie){var pe=ae._sQ,Le=ae._sQlen;pe[Le]=250,pe[Le+1]=0,pe[Le+2]=be,pe[Le+3]=Ie,ae._sQlen+=4,ae.flush()}},Y.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(j,W,y){(function(I){I(y("VrN/"))})(function(I){"use strict";var v={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};I.defineMode("xml",function(b,g){var s=b.indentUnit,_={},p=g.htmlMode?v:T;for(var e in p)_[e]=p[e];for(var e in g)_[e]=g[e];var a,n;function l(R,P){function N(X){return P.tokenize=X,X(R,P)}var M=R.next();if(M=="<")return R.eat("!")?R.eat("[")?R.match("CDATA[")?N(t("atom","]]>")):null:R.match("--")?N(t("comment","-->")):R.match("DOCTYPE",!0,!0)?(R.eatWhile(/[\w\._\-]/),N(o(1))):null:R.eat("?")?(R.eatWhile(/[\w\._\-]/),P.tokenize=t("meta","?>"),"meta"):(a=R.eat("/")?"closeTag":"openTag",P.tokenize=r,"tag bracket");if(M=="&"){var z;return R.eat("#")?R.eat("x")?z=R.eatWhile(/[a-fA-F\d]/)&&R.eat(";"):z=R.eatWhile(/[\d]/)&&R.eat(";"):z=R.eatWhile(/[\w\.\-:]/)&&R.eat(";"),z?"atom":"error"}else return R.eatWhile(/[^&<]/),null}l.isInText=!0;function r(R,P){var N=R.next();if(N==">"||N=="/"&&R.eat(">"))return P.tokenize=l,a=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return a="equals",null;if(N=="<"){P.tokenize=l,P.state=h,P.tagName=P.tagStart=null;var M=P.tokenize(R,P);return M?M+" tag error":"tag error"}else return/[\'\"]/.test(N)?(P.tokenize=i(N),P.stringStartCol=R.column(),P.tokenize(R,P)):(R.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(R){var P=function(N,M){for(;!N.eol();)if(N.next()==R){M.tokenize=r;break}return"string"};return P.isInAttribute=!0,P}function t(R,P){return function(N,M){for(;!N.eol();){if(N.match(P)){M.tokenize=l;break}N.next()}return R}}function o(R){return function(P,N){for(var M;(M=P.next())!=null;){if(M=="<")return N.tokenize=o(R+1),N.tokenize(P,N);if(M==">")if(R==1){N.tokenize=l;break}else return N.tokenize=o(R-1),N.tokenize(P,N)}return"meta"}}function c(R,P,N){this.prev=R.context,this.tagName=P,this.indent=R.indented,this.startOfLine=N,(_.doNotIndent.hasOwnProperty(P)||R.context&&R.context.noIndent)&&(this.noIndent=!0)}function d(R){R.context&&(R.context=R.context.prev)}function f(R,P){for(var N;;){if(!R.context)return;if(N=R.context.tagName,!_.contextGrabbers.hasOwnProperty(N)||!_.contextGrabbers[N].hasOwnProperty(P))return;d(R)}}function h(R,P,N){return R=="openTag"?(N.tagStart=P.column(),u):R=="closeTag"?E:h}function u(R,P,N){return R=="word"?(N.tagName=P.current(),n="tag",C):_.allowMissingTagName&&R=="endTag"?(n="tag bracket",C(R,P,N)):(n="error",u)}function E(R,P,N){if(R=="word"){var M=P.current();return N.context&&N.context.tagName!=M&&_.implicitlyClosed.hasOwnProperty(N.context.tagName)&&d(N),N.context&&N.context.tagName==M||_.matchClosing===!1?(n="tag",x):(n="tag error",O)}else return _.allowMissingTagName&&R=="endTag"?(n="tag bracket",x(R,P,N)):(n="error",O)}function x(R,P,N){return R!="endTag"?(n="error",x):(d(N),h)}function O(R,P,N){return n="error",x(R,P,N)}function C(R,P,N){if(R=="word")return n="attribute",w;if(R=="endTag"||R=="selfcloseTag"){var M=N.tagName,z=N.tagStart;return N.tagName=N.tagStart=null,R=="selfcloseTag"||_.autoSelfClosers.hasOwnProperty(M)?f(N,M):(f(N,M),N.context=new c(N,M,z==N.indented)),h}return n="error",C}function w(R,P,N){return R=="equals"?S:(_.allowMissing||(n="error"),C(R,P,N))}function S(R,P,N){return R=="string"?D:R=="word"&&_.allowUnquoted?(n="string",C):(n="error",C(R,P,N))}function D(R,P,N){return R=="string"?D:C(R,P,N)}return{startState:function(R){var P={tokenize:l,state:h,indented:R||0,tagName:null,tagStart:null,context:null};return R!=null&&(P.baseIndent=R),P},token:function(R,P){if(!P.tagName&&R.sol()&&(P.indented=R.indentation()),R.eatSpace())return null;a=null;var N=P.tokenize(R,P);return(N||a)&&N!="comment"&&(n=null,P.state=P.state(a||N,R,P),n&&(N=n=="error"?N+" error":n)),N},indent:function(R,P,N){var M=R.context;if(R.tokenize.isInAttribute)return R.tagStart==R.indented?R.stringStartCol+1:R.indented+s;if(M&&M.noIndent)return I.Pass;if(R.tokenize!=r&&R.tokenize!=l)return N?N.match(/^(\s*)/)[0].length:0;if(R.tagName)return _.multilineTagIndentPastTag!==!1?R.tagStart+R.tagName.length+2:R.tagStart+s*(_.multilineTagIndentFactor||1);if(_.alignCDATA&&/<!\[CDATA\[/.test(P))return 0;var z=P&&/^<(\/)?([\w_:\.-]*)/.exec(P);if(z&&z[1])for(;M;)if(M.tagName==z[2]){M=M.prev;break}else if(_.implicitlyClosed.hasOwnProperty(M.tagName))M=M.prev;else break;else if(z)for(;M;){var X=_.contextGrabbers[M.tagName];if(X&&X.hasOwnProperty(z[2]))M=M.prev;else break}for(;M&&M.prev&&!M.startOfLine;)M=M.prev;return M?M.indent+s:R.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:_.htmlMode?"html":"xml",helperType:_.htmlMode?"html":"xml",skipAttribute:function(R){R.state==S&&(R.state=C)},xmlCurrentTag:function(R){return R.tagName?{name:R.tagName,close:R.type=="closeTag"}:null},xmlCurrentContext:function(R){for(var P=[],N=R.context;N;N=N.prev)N.tagName&&P.push(N.tagName);return P.reverse()}}}),I.defineMIME("text/xml","xml"),I.defineMIME("application/xml","xml"),I.mimeModes.hasOwnProperty("text/html")||I.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(j,W,y){"use strict";y.d(W,"d",function(){return Ie}),y.d(W,"b",function(){return Je}),y.d(W,"c",function(){return Qe}),y.d(W,"a",function(){return Ke});var I=y("VTBJ"),v=y("1OyB"),T=y("vuIU"),b=y("JX7q"),g=y("Ji7U"),s=y("LK+K"),_=y("q1tI"),p=y("I8Z2"),e=y("BGR+"),a=y("wx14"),n=y("rePB"),l=y("4IlW"),r=y("2GS6"),i=y("Gytx"),t=y.n(i),o=y("TSYQ"),c=y.n(o),d=y("U8pU"),f=y("ODXe"),h=/iPhone/i,u=/iPod/i,E=/iPad/i,x=/\bAndroid(?:.+)Mobile\b/i,O=/Android/i,C=/\bAndroid(?:.+)SD4930UR\b/i,w=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,S=/Windows Phone/i,D=/\bWindows(?:.+)ARM\b/i,R=/BlackBerry/i,P=/BB10/i,N=/Opera Mini/i,M=/\b(CriOS|Chrome)(?:.+)Mobile/i,z=/Mobile(?:.+)Firefox\b/i;function X(rt,bt){return rt.test(bt)}function k(rt){var bt=rt||(typeof navigator!="undefined"?navigator.userAgent:""),ut=bt.split("[FBAN");if(typeof ut[1]!="undefined"){var ot=ut,Ue=Object(f.a)(ot,1);bt=Ue[0]}if(ut=bt.split("Twitter"),typeof ut[1]!="undefined"){var We=ut,ft=Object(f.a)(We,1);bt=ft[0]}var nt={apple:{phone:X(h,bt)&&!X(S,bt),ipod:X(u,bt),tablet:!X(h,bt)&&X(E,bt)&&!X(S,bt),device:(X(h,bt)||X(u,bt)||X(E,bt))&&!X(S,bt)},amazon:{phone:X(C,bt),tablet:!X(C,bt)&&X(w,bt),device:X(C,bt)||X(w,bt)},android:{phone:!X(S,bt)&&X(C,bt)||!X(S,bt)&&X(x,bt),tablet:!X(S,bt)&&!X(C,bt)&&!X(x,bt)&&(X(w,bt)||X(O,bt)),device:!X(S,bt)&&(X(C,bt)||X(w,bt)||X(x,bt)||X(O,bt))||X(/\bokhttp\b/i,bt)},windows:{phone:X(S,bt),tablet:X(D,bt),device:X(S,bt)||X(D,bt)},other:{blackberry:X(R,bt),blackberry10:X(P,bt),opera:X(N,bt),firefox:X(z,bt),chrome:X(M,bt),device:X(R,bt)||X(P,bt)||X(N,bt)||X(z,bt)||X(M,bt)},any:null,phone:null,tablet:null};return nt.any=nt.apple.device||nt.android.device||nt.windows.device||nt.other.device,nt.phone=nt.apple.phone||nt.android.phone||nt.windows.phone,nt.tablet=nt.apple.tablet||nt.android.tablet||nt.windows.tablet,nt}var F=Object(I.a)(Object(I.a)({},k()),{},{isMobile:k}),U=F;function L(){}function B(rt,bt,ut){var ot=bt||"";return rt.key||"".concat(ot,"item_").concat(ut)}function Z(rt){return"".concat(rt,"-menu-")}function re(rt,bt){var ut=-1;_.Children.forEach(rt,function(ot){ut+=1,ot&&ot.type&&ot.type.isMenuItemGroup?_.Children.forEach(ot.props.children,function(Ue){ut+=1,bt(Ue,ut)}):bt(ot,ut)})}function me(rt,bt,ut){if(!rt||ut.find)return;_.Children.forEach(rt,function(ot){if(ot){var Ue=ot.type;if(!Ue||!(Ue.isSubMenu||Ue.isMenuItem||Ue.isMenuItemGroup))return;bt.indexOf(ot.key)!==-1?ut.find=!0:ot.props.children&&me(ot.props.children,bt,ut)}})}var Ee=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],De=function(bt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(ot){if(ut){var Ue=getComputedStyle(bt),We=Ue.marginLeft,ft=Ue.marginRight;ot+=+We.replace("px","")+ +ft.replace("px","")}ot=+ot.toFixed(6)}return ot||0},te=function(bt,ut,ot){bt&&Object(d.a)(bt.style)==="object"&&(bt.style[ut]=ot)},Ce=function(){return U.any},we=y("KQm4"),ce=y("Ff2n"),le=y("i8i4"),oe=y("bdgK"),xe=y("uciX"),q=y("8XRh"),se={adjustX:1,adjustY:1},Ne={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:se,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:se,offset:[4,0]}},de={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:se,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:se,offset:[4,0]}},$=Ne,Q=0,Y={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ue=function(bt,ut,ot){var Ue=Z(ut),We=bt.getState();bt.setState({defaultActiveFirst:Object(I.a)(Object(I.a)({},We.defaultActiveFirst),{},Object(n.a)({},Ue,ot))})},ae=function(rt){Object(g.a)(ut,rt);var bt=Object(s.a)(ut);function ut(ot){var Ue;Object(v.a)(this,ut),Ue=bt.call(this,ot),Ue.onDestroy=function(vt){Ue.props.onDestroy(vt)},Ue.onKeyDown=function(vt){var Ht=vt.keyCode,Ft=Ue.menuInstance,Lt=Ue.props,zt=Lt.isOpen,Qt=Lt.store;if(Ht===l.a.ENTER)return Ue.onTitleClick(vt),ue(Qt,Ue.props.eventKey,!0),!0;if(Ht===l.a.RIGHT)return zt?Ft.onKeyDown(vt):(Ue.triggerOpenChange(!0),ue(Qt,Ue.props.eventKey,!0)),!0;if(Ht===l.a.LEFT){var bn;if(zt)bn=Ft.onKeyDown(vt);else return;return bn||(Ue.triggerOpenChange(!1),bn=!0),bn}return zt&&(Ht===l.a.UP||Ht===l.a.DOWN)?Ft.onKeyDown(vt):void 0},Ue.onOpenChange=function(vt){Ue.props.onOpenChange(vt)},Ue.onPopupVisibleChange=function(vt){Ue.triggerOpenChange(vt,vt?"mouseenter":"mouseleave")},Ue.onMouseEnter=function(vt){var Ht=Ue.props,Ft=Ht.eventKey,Lt=Ht.onMouseEnter,zt=Ht.store;ue(zt,Ue.props.eventKey,!1),Lt({key:Ft,domEvent:vt})},Ue.onMouseLeave=function(vt){var Ht=Ue.props,Ft=Ht.parentMenu,Lt=Ht.eventKey,zt=Ht.onMouseLeave;Ft.subMenuInstance=Object(b.a)(Ue),zt({key:Lt,domEvent:vt})},Ue.onTitleMouseEnter=function(vt){var Ht=Ue.props,Ft=Ht.eventKey,Lt=Ht.onItemHover,zt=Ht.onTitleMouseEnter;Lt({key:Ft,hover:!0}),zt({key:Ft,domEvent:vt})},Ue.onTitleMouseLeave=function(vt){var Ht=Ue.props,Ft=Ht.parentMenu,Lt=Ht.eventKey,zt=Ht.onItemHover,Qt=Ht.onTitleMouseLeave;Ft.subMenuInstance=Object(b.a)(Ue),zt({key:Lt,hover:!1}),Qt({key:Lt,domEvent:vt})},Ue.onTitleClick=function(vt){var Ht=Object(b.a)(Ue),Ft=Ht.props;if(Ft.onTitleClick({key:Ft.eventKey,domEvent:vt}),Ft.triggerSubMenuAction==="hover")return;Ue.triggerOpenChange(!Ft.isOpen,"click"),ue(Ft.store,Ue.props.eventKey,!1)},Ue.onSubMenuClick=function(vt){typeof Ue.props.onClick=="function"&&Ue.props.onClick(Ue.addKeyPath(vt))},Ue.onSelect=function(vt){Ue.props.onSelect(vt)},Ue.onDeselect=function(vt){Ue.props.onDeselect(vt)},Ue.getPrefixCls=function(){return"".concat(Ue.props.rootPrefixCls,"-submenu")},Ue.getActiveClassName=function(){return"".concat(Ue.getPrefixCls(),"-active")},Ue.getDisabledClassName=function(){return"".concat(Ue.getPrefixCls(),"-disabled")},Ue.getSelectedClassName=function(){return"".concat(Ue.getPrefixCls(),"-selected")},Ue.getOpenClassName=function(){return"".concat(Ue.props.rootPrefixCls,"-submenu-open")},Ue.saveMenuInstance=function(vt){Ue.menuInstance=vt},Ue.addKeyPath=function(vt){return Object(I.a)(Object(I.a)({},vt),{},{keyPath:(vt.keyPath||[]).concat(Ue.props.eventKey)})},Ue.triggerOpenChange=function(vt,Ht){var Ft=Ue.props.eventKey,Lt=function(){Ue.onOpenChange({key:Ft,item:Object(b.a)(Ue),trigger:Ht,open:vt})};Ht==="mouseenter"?Ue.mouseenterTimeout=setTimeout(function(){Lt()},0):Lt()},Ue.isChildrenSelected=function(){var vt={find:!1};return me(Ue.props.children,Ue.props.selectedKeys,vt),vt.find},Ue.isOpen=function(){return Ue.props.openKeys.indexOf(Ue.props.eventKey)!==-1},Ue.adjustWidth=function(){if(!Ue.subMenuTitle||!Ue.menuInstance)return;var vt=le.findDOMNode(Ue.menuInstance);if(vt.offsetWidth>=Ue.subMenuTitle.offsetWidth)return;vt.style.minWidth="".concat(Ue.subMenuTitle.offsetWidth,"px")},Ue.saveSubMenuTitle=function(vt){Ue.subMenuTitle=vt},Ue.getBaseProps=function(){var vt=Object(b.a)(Ue),Ht=vt.props;return{mode:Ht.mode==="horizontal"?"vertical":Ht.mode,visible:Ue.props.isOpen,level:Ht.level+1,inlineIndent:Ht.inlineIndent,focusable:!1,onClick:Ue.onSubMenuClick,onSelect:Ue.onSelect,onDeselect:Ue.onDeselect,onDestroy:Ue.onDestroy,selectedKeys:Ht.selectedKeys,eventKey:"".concat(Ht.eventKey,"-menu-"),openKeys:Ht.openKeys,motion:Ht.motion,onOpenChange:Ue.onOpenChange,subMenuOpenDelay:Ht.subMenuOpenDelay,parentMenu:Object(b.a)(Ue),subMenuCloseDelay:Ht.subMenuCloseDelay,forceSubMenuRender:Ht.forceSubMenuRender,triggerSubMenuAction:Ht.triggerSubMenuAction,builtinPlacements:Ht.builtinPlacements,defaultActiveFirst:Ht.store.getState().defaultActiveFirst[Z(Ht.eventKey)],multiple:Ht.multiple,prefixCls:Ht.rootPrefixCls,id:Ue.internalMenuId,manualRef:Ue.saveMenuInstance,itemIcon:Ht.itemIcon,expandIcon:Ht.expandIcon,direction:Ht.direction}},Ue.getMotion=function(vt,Ht){var Ft=Object(b.a)(Ue),Lt=Ft.haveRendered,zt=Ue.props,Qt=zt.motion,bn=zt.rootPrefixCls,Zt=Object(I.a)(Object(I.a)({},Qt),{},{leavedClassName:"".concat(bn,"-hidden"),removeOnLeave:!1,motionAppear:Lt||!Ht||vt!=="inline"});return Zt};var We=ot.store,ft=ot.eventKey,nt=We.getState(),Dt=nt.defaultActiveFirst;Ue.isRootMenu=!1;var Kt=!1;return Dt&&(Kt=Dt[ft]),ue(We,ft,Kt),Ue}return Object(T.a)(ut,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ue=this,We=this.props,ft=We.mode,nt=We.parentMenu,Dt=We.manualRef;if(Dt&&Dt(this),ft!=="horizontal"||!nt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ue.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ue=this.props,We=Ue.onDestroy,ft=Ue.eventKey;We&&We(ft),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ue){var We=this,ft=this.getBaseProps(),nt=this.getMotion(ft.mode,ft.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ft.visible||ft.forceSubMenuRender,!this.haveOpened)return _.createElement("div",null);var Dt=ft.direction;return _.createElement(q.default,Object.assign({visible:ft.visible},nt),function(Kt){var vt=Kt.className,Ht=Kt.style,Ft=c()("".concat(ft.prefixCls,"-sub"),vt,Object(n.a)({},"".concat(ft.prefixCls,"-rtl"),Dt==="rtl"));return _.createElement(Ve,Object.assign({},ft,{id:We.internalMenuId,className:Ft,style:Ht}),Ue)})}},{key:"render",value:function(){var Ue,We=Object(I.a)({},this.props),ft=We.isOpen,nt=this.getPrefixCls(),Dt=We.mode==="inline",Kt=c()(nt,"".concat(nt,"-").concat(We.mode),(Ue={},Object(n.a)(Ue,We.className,!!We.className),Object(n.a)(Ue,this.getOpenClassName(),ft),Object(n.a)(Ue,this.getActiveClassName(),We.active||ft&&!Dt),Object(n.a)(Ue,this.getDisabledClassName(),We.disabled),Object(n.a)(Ue,this.getSelectedClassName(),this.isChildrenSelected()),Ue));this.internalMenuId||(We.eventKey?this.internalMenuId="".concat(We.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var vt={},Ht={},Ft={};We.disabled||(vt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ht={onClick:this.onTitleClick},Ft={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Lt={},zt=We.direction;Dt&&(zt==="rtl"?Lt.paddingRight=We.inlineIndent*We.level:Lt.paddingLeft=We.inlineIndent*We.level);var Qt={};this.props.isOpen&&(Qt={"aria-owns":this.internalMenuId});var bn=null;We.mode!=="horizontal"&&(bn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(bn=_.createElement(this.props.expandIcon,Object(I.a)({},this.props))));var Zt=_.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Lt,className:"".concat(nt,"-title"),role:"button"},Ft,Ht,{"aria-expanded":ft},Qt,{"aria-haspopup":"true",title:typeof We.title=="string"?We.title:void 0}),We.title,bn||_.createElement("i",{className:"".concat(nt,"-arrow")})),$t=this.renderChildren(We.children),Zn=We.parentMenu.isRootMenu?We.parentMenu.props.getPopupContainer:function(Mr){return Mr.parentNode},Fn=Y[We.mode],Hn=We.popupOffset?{offset:We.popupOffset}:{},Yn=We.mode==="inline"?"":We.popupClassName;Yn+=zt==="rtl"?" ".concat(nt,"-rtl"):"";var jn=We.disabled,or=We.triggerSubMenuAction,jr=We.subMenuOpenDelay,qt=We.forceSubMenuRender,wn=We.subMenuCloseDelay,Kr=We.builtinPlacements;Ee.forEach(function(Mr){return delete We[Mr]}),delete We.onClick;var Li=zt==="rtl"?Object.assign({},de,Kr):Object.assign({},Ne,Kr);return delete We.direction,_.createElement("li",Object.assign({},We,vt,{className:Kt,role:"menuitem"}),Dt&&Zt,Dt&&$t,!Dt&&_.createElement(xe.a,{prefixCls:nt,popupClassName:c()("".concat(nt,"-popup"),Yn),getPopupContainer:Zn,builtinPlacements:Li,popupPlacement:Fn,popupVisible:ft,popupAlign:Hn,popup:$t,action:jn?[]:[or],mouseEnterDelay:jr,mouseLeaveDelay:wn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:qt},Zt))}}]),ut}(_.Component);ae.defaultProps={onMouseEnter:L,onMouseLeave:L,onTitleMouseEnter:L,onTitleMouseLeave:L,onTitleClick:L,manualRef:L,mode:"vertical",title:""};var be=Object(p.b)(function(rt,bt){var ut=rt.openKeys,ot=rt.activeKey,Ue=rt.selectedKeys,We=bt.eventKey,ft=bt.subMenuKey;return{isOpen:ut.indexOf(We)>-1,active:ot[ft]===We,selectedKeys:Ue}})(ae);be.isSubMenu=!0;var Ie=be,pe="menuitem-overflowed",Le=.5,ve=function(rt){Object(g.a)(ut,rt);var bt=Object(s.a)(ut);function ut(){var ot;return Object(v.a)(this,ut),ot=bt.apply(this,arguments),ot.resizeObserver=null,ot.mutationObserver=null,ot.originalTotalWidth=0,ot.overflowedItems=[],ot.menuItemSizes=[],ot.cancelFrameId=null,ot.state={lastVisibleIndex:void 0},ot.getMenuItemNodes=function(){var Ue=ot.props.prefixCls,We=le.findDOMNode(Object(b.a)(ot));return We?[].slice.call(We.children).filter(function(ft){return ft.className.split(" ").indexOf("".concat(Ue,"-overflowed-submenu"))<0}):[]},ot.getOverflowedSubMenuItem=function(Ue,We,ft){var nt=ot.props,Dt=nt.overflowedIndicator,Kt=nt.level,vt=nt.mode,Ht=nt.prefixCls,Ft=nt.theme;if(Kt!==1||vt!=="horizontal")return null;var Lt=ot.props.children[0],zt=Lt.props,Qt=zt.children,bn=zt.title,Zt=zt.style,$t=Object(ce.a)(zt,["children","title","style"]),Zn=Object(I.a)({},Zt),Fn="".concat(Ue,"-overflowed-indicator"),Hn="".concat(Ue,"-overflowed-indicator");We.length===0&&ft!==!0?Zn=Object(I.a)(Object(I.a)({},Zn),{},{display:"none"}):ft&&(Zn=Object(I.a)(Object(I.a)({},Zn),{},{visibility:"hidden",position:"absolute"}),Fn="".concat(Fn,"-placeholder"),Hn="".concat(Hn,"-placeholder"));var Yn=Ft?"".concat(Ht,"-").concat(Ft):"",jn={};return Ee.forEach(function(or){$t[or]!==void 0&&(jn[or]=$t[or])}),_.createElement(Ie,Object.assign({title:Dt,className:"".concat(Ht,"-overflowed-submenu"),popupClassName:Yn},jn,{key:Fn,eventKey:Hn,disabled:!1,style:Zn}),We)},ot.setChildrenWidthAndResize=function(){if(ot.props.mode!=="horizontal")return;var Ue=le.findDOMNode(Object(b.a)(ot));if(!Ue)return;var We=Ue.children;if(!We||We.length===0)return;var ft=Ue.children[We.length-1];te(ft,"display","inline-block");var nt=ot.getMenuItemNodes(),Dt=nt.filter(function(Kt){return Kt.className.split(" ").indexOf(pe)>=0});Dt.forEach(function(Kt){te(Kt,"display","inline-block")}),ot.menuItemSizes=nt.map(function(Kt){return De(Kt,!0)}),Dt.forEach(function(Kt){te(Kt,"display","none")}),ot.overflowedIndicatorWidth=De(Ue.children[Ue.children.length-1],!0),ot.originalTotalWidth=ot.menuItemSizes.reduce(function(Kt,vt){return Kt+vt},0),ot.handleResize(),te(ft,"display","none")},ot.handleResize=function(){if(ot.props.mode!=="horizontal")return;var Ue=le.findDOMNode(Object(b.a)(ot));if(!Ue)return;var We=De(Ue);ot.overflowedItems=[];var ft=0,nt;ot.originalTotalWidth>We+Le&&(nt=-1,ot.menuItemSizes.forEach(function(Dt){ft+=Dt,ft+ot.overflowedIndicatorWidth<=We&&(nt+=1)})),ot.setState({lastVisibleIndex:nt})},ot}return Object(T.a)(ut,[{key:"componentDidMount",value:function(){var Ue=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var We=le.findDOMNode(this);if(!We)return;this.resizeObserver=new oe.default(function(ft){ft.forEach(function(){var nt=Ue.cancelFrameId;cancelAnimationFrame(nt),Ue.cancelFrameId=requestAnimationFrame(Ue.setChildrenWidthAndResize)})}),[].slice.call(We.children).concat(We).forEach(function(ft){Ue.resizeObserver.observe(ft)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ue.resizeObserver.disconnect(),[].slice.call(We.children).concat(We).forEach(function(ft){Ue.resizeObserver.observe(ft)}),Ue.setChildrenWidthAndResize()}),this.mutationObserver.observe(We,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ue){var We=this,ft=this.state.lastVisibleIndex;return(Ue||[]).reduce(function(nt,Dt,Kt){var vt=Dt;if(We.props.mode==="horizontal"){var Ht=We.getOverflowedSubMenuItem(Dt.props.eventKey,[]);ft!==void 0&&We.props.className.indexOf("".concat(We.props.prefixCls,"-root"))!==-1&&(Kt>ft&&(vt=_.cloneElement(Dt,{style:{display:"none"},eventKey:"".concat(Dt.props.eventKey,"-hidden"),className:"".concat(pe)})),Kt===ft+1&&(We.overflowedItems=Ue.slice(ft+1).map(function(Lt){return _.cloneElement(Lt,{key:Lt.props.eventKey,mode:"vertical-left"})}),Ht=We.getOverflowedSubMenuItem(Dt.props.eventKey,We.overflowedItems)));var Ft=[].concat(Object(we.a)(nt),[Ht,vt]);return Kt===Ue.length-1&&Ft.push(We.getOverflowedSubMenuItem(Dt.props.eventKey,[],!0)),Ft}return[].concat(Object(we.a)(nt),[vt])},[])}},{key:"render",value:function(){var Ue=this.props,We=Ue.visible,ft=Ue.prefixCls,nt=Ue.overflowedIndicator,Dt=Ue.mode,Kt=Ue.level,vt=Ue.tag,Ht=Ue.children,Ft=Ue.theme,Lt=Object(ce.a)(Ue,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),zt=vt;return _.createElement(zt,Object.assign({},Lt),this.renderChildren(Ht))}}]),ut}(_.Component);ve.defaultProps={tag:"div",className:""};var Xe=ve;function $e(rt){return rt.length?rt.every(function(bt){return!!bt.props.disabled}):!0}function Ge(rt,bt,ut){var ot=rt.getState();rt.setState({activeKey:Object(I.a)(Object(I.a)({},ot.activeKey),{},Object(n.a)({},bt,ut))})}function Me(rt){return rt.eventKey||"0-menu-"}function gt(rt,bt){var ut=bt,ot=rt.children,Ue=rt.eventKey;if(ut){var We;if(re(ot,function(ft,nt){ft&&ft.props&&!ft.props.disabled&&ut===B(ft,Ue,nt)&&(We=!0)}),We)return ut}return ut=null,rt.defaultActiveFirst&&re(ot,function(ft,nt){!ut&&ft&&!ft.props.disabled&&(ut=B(ft,Ue,nt))}),ut}function Te(rt){if(rt){var bt=this.instanceArray.indexOf(rt);bt!==-1?this.instanceArray[bt]=rt:this.instanceArray.push(rt)}}var Ye=function(rt){Object(g.a)(ut,rt);var bt=Object(s.a)(ut);function ut(ot){var Ue;return Object(v.a)(this,ut),Ue=bt.call(this,ot),Ue.onKeyDown=function(We,ft){var nt=We.keyCode,Dt;if(Ue.getFlatInstanceArray().forEach(function(vt){vt&&vt.props.active&&vt.onKeyDown&&(Dt=vt.onKeyDown(We))}),Dt)return 1;var Kt=null;return(nt===l.a.UP||nt===l.a.DOWN)&&(Kt=Ue.step(nt===l.a.UP?-1:1)),Kt?(We.preventDefault(),Ge(Ue.props.store,Me(Ue.props),Kt.props.eventKey),typeof ft=="function"&&ft(Kt),1):void 0},Ue.onItemHover=function(We){var ft=We.key,nt=We.hover;Ge(Ue.props.store,Me(Ue.props),nt?ft:null)},Ue.onDeselect=function(We){Ue.props.onDeselect(We)},Ue.onSelect=function(We){Ue.props.onSelect(We)},Ue.onClick=function(We){Ue.props.onClick(We)},Ue.onOpenChange=function(We){Ue.props.onOpenChange(We)},Ue.onDestroy=function(We){Ue.props.onDestroy(We)},Ue.getFlatInstanceArray=function(){return Ue.instanceArray},Ue.step=function(We){var ft=Ue.getFlatInstanceArray(),nt=Ue.props.store.getState().activeKey[Me(Ue.props)],Dt=ft.length;if(!Dt)return null;We<0&&(ft=ft.concat().reverse());var Kt=-1;if(ft.every(function(Lt,zt){return Lt&&Lt.props.eventKey===nt?(Kt=zt,!1):!0}),!Ue.props.defaultActiveFirst&&Kt!==-1&&$e(ft.slice(Kt,Dt-1)))return;var vt=(Kt+1)%Dt,Ht=vt;do{var Ft=ft[Ht];if(!Ft||Ft.props.disabled)Ht=(Ht+1)%Dt;else return Ft}while(Ht!==vt);return null},Ue.renderCommonMenuItem=function(We,ft,nt){var Dt=Ue.props.store.getState(),Kt=Object(b.a)(Ue),vt=Kt.props,Ht=B(We,vt.eventKey,ft),Ft=We.props;if(!Ft||typeof We.type=="string")return We;var Lt=Ht===Dt.activeKey,zt=Object(I.a)(Object(I.a)({mode:Ft.mode||vt.mode,level:vt.level,inlineIndent:vt.inlineIndent,renderMenuItem:Ue.renderMenuItem,rootPrefixCls:vt.prefixCls,index:ft,parentMenu:vt.parentMenu,manualRef:Ft.disabled?void 0:Object(r.a)(We.ref,Te.bind(Object(b.a)(Ue))),eventKey:Ht,active:!Ft.disabled&&Lt,multiple:vt.multiple,onClick:function(bn){(Ft.onClick||L)(bn),Ue.onClick(bn)},onItemHover:Ue.onItemHover,motion:vt.motion,subMenuOpenDelay:vt.subMenuOpenDelay,subMenuCloseDelay:vt.subMenuCloseDelay,forceSubMenuRender:vt.forceSubMenuRender,onOpenChange:Ue.onOpenChange,onDeselect:Ue.onDeselect,onSelect:Ue.onSelect,builtinPlacements:vt.builtinPlacements,itemIcon:Ft.itemIcon||Ue.props.itemIcon,expandIcon:Ft.expandIcon||Ue.props.expandIcon},nt),{},{direction:vt.direction});return(vt.mode==="inline"||Ce())&&(zt.triggerSubMenuAction="click"),_.cloneElement(We,zt)},Ue.renderMenuItem=function(We,ft,nt){if(!We)return null;var Dt=Ue.props.store.getState(),Kt={openKeys:Dt.openKeys,selectedKeys:Dt.selectedKeys,triggerSubMenuAction:Ue.props.triggerSubMenuAction,subMenuKey:nt};return Ue.renderCommonMenuItem(We,ft,Kt)},ot.store.setState({activeKey:Object(I.a)(Object(I.a)({},ot.store.getState().activeKey),{},Object(n.a)({},ot.eventKey,gt(ot,ot.activeKey)))}),Ue.instanceArray=[],Ue}return Object(T.a)(ut,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ue){return this.props.visible||Ue.visible||this.props.className!==Ue.className||!t()(this.props.style,Ue.style)}},{key:"componentDidUpdate",value:function(Ue){var We=this.props,ft="activeKey"in We?We.activeKey:We.store.getState().activeKey[Me(We)],nt=gt(We,ft);if(nt!==ft)Ge(We.store,Me(We),nt);else if("activeKey"in Ue){var Dt=gt(Ue,Ue.activeKey);nt!==Dt&&Ge(We.store,Me(We),nt)}}},{key:"render",value:function(){var Ue=this,We=Object(a.a)({},this.props);this.instanceArray=[];var ft=c()(We.prefixCls,We.className,"".concat(We.prefixCls,"-").concat(We.mode)),nt={className:ft,role:We.role||"menu"};We.id&&(nt.id=We.id),We.focusable&&(nt.tabIndex=0,nt.onKeyDown=this.onKeyDown);var Dt=We.prefixCls,Kt=We.eventKey,vt=We.visible,Ht=We.level,Ft=We.mode,Lt=We.overflowedIndicator,zt=We.theme;return Ee.forEach(function(Qt){return delete We[Qt]}),delete We.onClick,_.createElement(Xe,Object.assign({},We,{prefixCls:Dt,mode:Ft,tag:"ul",level:Ht,theme:zt,visible:vt,overflowedIndicator:Lt},nt),_.Children.map(We.children,function(Qt,bn){return Ue.renderMenuItem(Qt,bn,Kt||"0-menu-")}))}}]),ut}(_.Component);Ye.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:L};var Ze=Object(p.b)()(Ye),Ve=Ze,Fe=y("Kwbf");function Be(rt,bt,ut){var ot=rt.prefixCls,Ue=rt.motion,We=rt.defaultMotions,ft=We===void 0?{}:We,nt=rt.openAnimation,Dt=rt.openTransitionName,Kt=bt.switchingModeFromInline;if(Ue)return Ue;if(Object(d.a)(nt)==="object"&&nt)Object(Fe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof nt=="string")return{motionName:"".concat(ot,"-open-").concat(nt)};if(Dt)return{motionName:Dt};var vt=ft[ut];return vt||(Kt?null:ft.other)}var _e=function(rt){Object(g.a)(ut,rt);var bt=Object(s.a)(ut);function ut(ot){var Ue;Object(v.a)(this,ut),Ue=bt.call(this,ot),Ue.inlineOpenKeys=[],Ue.onSelect=function(nt){var Dt=Object(b.a)(Ue),Kt=Dt.props;if(Kt.selectable){var vt=Ue.store.getState(),Ht=vt.selectedKeys,Ft=nt.key;Kt.multiple?Ht=Ht.concat([Ft]):Ht=[Ft],"selectedKeys"in Kt||Ue.store.setState({selectedKeys:Ht}),Kt.onSelect(Object(I.a)(Object(I.a)({},nt),{},{selectedKeys:Ht}))}},Ue.onClick=function(nt){var Dt=Ue.getRealMenuMode(),Kt=Object(b.a)(Ue),vt=Kt.store,Ht=Kt.props.onOpenChange;Dt!=="inline"&&!("openKeys"in Ue.props)&&(vt.setState({openKeys:[]}),Ht([])),Ue.props.onClick(nt)},Ue.onKeyDown=function(nt,Dt){Ue.innerMenu.getWrappedInstance().onKeyDown(nt,Dt)},Ue.onOpenChange=function(nt){var Dt=Object(b.a)(Ue),Kt=Dt.props,vt=Ue.store.getState().openKeys.concat(),Ht=!1,Ft=function(zt){var Qt=!1;if(zt.open)Qt=vt.indexOf(zt.key)===-1,Qt&&vt.push(zt.key);else{var bn=vt.indexOf(zt.key);Qt=bn!==-1,Qt&&vt.splice(bn,1)}Ht=Ht||Qt};Array.isArray(nt)?nt.forEach(Ft):Ft(nt),Ht&&("openKeys"in Ue.props||Ue.store.setState({openKeys:vt}),Kt.onOpenChange(vt))},Ue.onDeselect=function(nt){var Dt=Object(b.a)(Ue),Kt=Dt.props;if(Kt.selectable){var vt=Ue.store.getState().selectedKeys.concat(),Ht=nt.key,Ft=vt.indexOf(Ht);Ft!==-1&&vt.splice(Ft,1),"selectedKeys"in Kt||Ue.store.setState({selectedKeys:vt}),Kt.onDeselect(Object(I.a)(Object(I.a)({},nt),{},{selectedKeys:vt}))}},Ue.onMouseEnter=function(nt){Ue.restoreModeVerticalFromInline();var Dt=Ue.props.onMouseEnter;Dt&&Dt(nt)},Ue.onTransitionEnd=function(nt){var Dt=nt.propertyName==="width"&&nt.target===nt.currentTarget,Kt=nt.target.className,vt=Object.prototype.toString.call(Kt)==="[object SVGAnimatedString]"?Kt.animVal:Kt,Ht=nt.propertyName==="font-size"&&vt.indexOf("anticon")>=0;(Dt||Ht)&&Ue.restoreModeVerticalFromInline()},Ue.setInnerMenu=function(nt){Ue.innerMenu=nt},Ue.isRootMenu=!0;var We=ot.defaultSelectedKeys,ft=ot.defaultOpenKeys;return"selectedKeys"in ot&&(We=ot.selectedKeys||[]),"openKeys"in ot&&(ft=ot.openKeys||[]),Ue.store=Object(p.c)({selectedKeys:We,openKeys:ft,activeKey:{"0-menu-":gt(ot,ot.activeKey)}}),Ue.state={switchingModeFromInline:!1},Ue}return Object(T.a)(ut,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ue){this.updateOpentKeysWhenSwitchMode(Ue),this.updateMiniStore();var We=this.props,ft=We.siderCollapsed,nt=We.inlineCollapsed,Dt=We.onOpenChange;(!Ue.inlineCollapsed&&nt||!Ue.siderCollapsed&&ft)&&Dt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ue){var We=this.props,ft=this.store,nt=this.inlineOpenKeys,Dt=ft.getState(),Kt={};Ue.mode==="inline"&&We.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in We||((We.inlineCollapsed&&!Ue.inlineCollapsed||We.siderCollapsed&&!Ue.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Dt.openKeys.concat(),Kt.openKeys=[]),(!We.inlineCollapsed&&Ue.inlineCollapsed||!We.siderCollapsed&&Ue.siderCollapsed)&&(Kt.openKeys=nt,this.inlineOpenKeys=[])),Object.keys(Kt).length&&ft.setState(Kt)}},{key:"updateMenuDisplay",value:function(){var Ue=this.props.collapsedWidth,We=this.store,ft=this.prevOpenKeys,nt=this.getInlineCollapsed()&&(Ue===0||Ue==="0"||Ue==="0px");nt?(this.prevOpenKeys=We.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ft&&(this.store.setState({openKeys:ft}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ue=this.props.mode,We=this.state.switchingModeFromInline,ft=this.getInlineCollapsed();return We&&ft?"inline":ft?"vertical":Ue}},{key:"getInlineCollapsed",value:function(){var Ue=this.props,We=Ue.inlineCollapsed,ft=Ue.siderCollapsed;return ft!==void 0?ft:We}},{key:"restoreModeVerticalFromInline",value:function(){var Ue=this.state.switchingModeFromInline;Ue&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ue=Object(I.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),We=this.getRealMenuMode();return Ue.className+=" ".concat(Ue.prefixCls,"-root"),Ue.direction==="rtl"&&(Ue.className+=" ".concat(Ue.prefixCls,"-rtl")),Ue=Object(I.a)(Object(I.a)({},Ue),{},{mode:We,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Be(this.props,this.state,We)}),delete Ue.openAnimation,delete Ue.openTransitionName,_.createElement(p.a,{store:this.store},_.createElement(Ve,Object.assign({},Ue,{ref:this.setInnerMenu}),this.props.children))}}]),ut}(_.Component);_e.defaultProps={selectable:!0,onClick:L,onSelect:L,onOpenChange:L,onDeselect:L,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:_.createElement("span",null,"\xB7\xB7\xB7")};var Ae=_e,fe=function(rt){Object(g.a)(ut,rt);var bt=Object(s.a)(ut);function ut(){var ot;return Object(v.a)(this,ut),ot=bt.apply(this,arguments),ot.onKeyDown=function(Ue){var We=Ue.keyCode;return We===l.a.ENTER?(ot.onClick(Ue),!0):void 0},ot.onMouseLeave=function(Ue){var We=ot.props,ft=We.eventKey,nt=We.onItemHover,Dt=We.onMouseLeave;nt({key:ft,hover:!1}),Dt({key:ft,domEvent:Ue})},ot.onMouseEnter=function(Ue){var We=ot.props,ft=We.eventKey,nt=We.onItemHover,Dt=We.onMouseEnter;nt({key:ft,hover:!0}),Dt({key:ft,domEvent:Ue})},ot.onClick=function(Ue){var We=ot.props,ft=We.eventKey,nt=We.multiple,Dt=We.onClick,Kt=We.onSelect,vt=We.onDeselect,Ht=We.isSelected,Ft={key:ft,keyPath:[ft],item:Object(b.a)(ot),domEvent:Ue};Dt(Ft),nt?Ht?vt(Ft):Kt(Ft):Ht||Kt(Ft)},ot.saveNode=function(Ue){ot.node=Ue},ot}return Object(T.a)(ut,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ue=this.props;Ue.onDestroy&&Ue.onDestroy(Ue.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ue,We=Object(I.a)({},this.props),ft=c()(this.getPrefixCls(),We.className,(Ue={},Object(n.a)(Ue,this.getActiveClassName(),!We.disabled&&We.active),Object(n.a)(Ue,this.getSelectedClassName(),We.isSelected),Object(n.a)(Ue,this.getDisabledClassName(),We.disabled),Ue)),nt=Object(I.a)(Object(I.a)({},We.attribute),{},{title:typeof We.title=="string"?We.title:void 0,className:ft,role:We.role||"menuitem","aria-disabled":We.disabled});We.role==="option"?nt=Object(I.a)(Object(I.a)({},nt),{},{role:"option","aria-selected":We.isSelected}):(We.role===null||We.role==="none")&&(nt.role="none");var Dt={onClick:We.disabled?null:this.onClick,onMouseLeave:We.disabled?null:this.onMouseLeave,onMouseEnter:We.disabled?null:this.onMouseEnter},Kt=Object(I.a)({},We.style);We.mode==="inline"&&(We.direction==="rtl"?Kt.paddingRight=We.inlineIndent*We.level:Kt.paddingLeft=We.inlineIndent*We.level),Ee.forEach(function(Ht){return delete We[Ht]}),delete We.direction;var vt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(vt=_.createElement(this.props.itemIcon,this.props)),_.createElement("li",Object.assign({},Object(e.default)(We,["onClick","onMouseEnter","onMouseLeave","onSelect"]),nt,Dt,{style:Kt,ref:this.saveNode}),We.children,vt)}}]),ut}(_.Component);fe.isMenuItem=!0,fe.defaultProps={onSelect:L,onMouseEnter:L,onMouseLeave:L,manualRef:L};var ke=Object(p.b)(function(rt,bt){var ut=rt.activeKey,ot=rt.selectedKeys,Ue=bt.eventKey,We=bt.subMenuKey;return{active:ut[We]===Ue,isSelected:ot.indexOf(Ue)!==-1}})(fe),Je=ke,ne=function(rt){Object(g.a)(ut,rt);var bt=Object(s.a)(ut);function ut(){var ot;return Object(v.a)(this,ut),ot=bt.apply(this,arguments),ot.renderInnerMenuItem=function(Ue){var We=ot.props,ft=We.renderMenuItem,nt=We.index;return ft(Ue,nt,ot.props.subMenuKey)},ot}return Object(T.a)(ut,[{key:"render",value:function(){var Ue=Object(a.a)({},this.props),We=Ue.className,ft=We===void 0?"":We,nt=Ue.rootPrefixCls,Dt="".concat(nt,"-item-group-title"),Kt="".concat(nt,"-item-group-list"),vt=Ue.title,Ht=Ue.children;return Ee.forEach(function(Ft){return delete Ue[Ft]}),delete Ue.onClick,delete Ue.direction,_.createElement("li",Object.assign({},Ue,{className:"".concat(ft," ").concat(nt,"-item-group")}),_.createElement("div",{className:Dt,title:typeof vt=="string"?vt:void 0},vt),_.createElement("ul",{className:Kt},_.Children.map(Ht,this.renderInnerMenuItem)))}}]),ut}(_.Component);ne.isMenuItemGroup=!0,ne.defaultProps={disabled:!0};var Qe=ne,dt=function(bt){var ut=bt.className,ot=bt.rootPrefixCls,Ue=bt.style;return _.createElement("li",{className:"".concat(ut," ").concat(ot,"-item-divider"),style:Ue})};dt.defaultProps={disabled:!0,className:"",style:{}};var Ke=dt,et=W.e=Ae},"1q3G":function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=I;function I(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1uat":function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("MlIO"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.Hasher,g=v.x64,s=g.Word,_=g.WordArray,p=v.algo;function e(){return s.create.apply(s,arguments)}var a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],n=[];(function(){for(var r=0;r<80;r++)n[r]=e()})();var l=p.SHA512=b.extend({_doReset:function(){this._hash=new _.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(r,i){for(var t=this._hash.words,o=t[0],c=t[1],d=t[2],f=t[3],h=t[4],u=t[5],E=t[6],x=t[7],O=o.high,C=o.low,w=c.high,S=c.low,D=d.high,R=d.low,P=f.high,N=f.low,M=h.high,z=h.low,X=u.high,k=u.low,F=E.high,U=E.low,L=x.high,B=x.low,Z=O,re=C,me=w,Ee=S,De=D,te=R,Ce=P,we=N,ce=M,le=z,oe=X,xe=k,q=F,se=U,Ne=L,de=B,$=0;$<80;$++){var Q,Y,ue=n[$];if($<16)Y=ue.high=r[i+$*2]|0,Q=ue.low=r[i+$*2+1]|0;else{var ae=n[$-15],be=ae.high,Ie=ae.low,pe=(be>>>1|Ie<<31)^(be>>>8|Ie<<24)^be>>>7,Le=(Ie>>>1|be<<31)^(Ie>>>8|be<<24)^(Ie>>>7|be<<25),ve=n[$-2],Xe=ve.high,$e=ve.low,Ge=(Xe>>>19|$e<<13)^(Xe<<3|$e>>>29)^Xe>>>6,Me=($e>>>19|Xe<<13)^($e<<3|Xe>>>29)^($e>>>6|Xe<<26),gt=n[$-7],Te=gt.high,Ye=gt.low,Ze=n[$-16],Ve=Ze.high,Fe=Ze.low;Q=Le+Ye,Y=pe+Te+(Q>>>0<Le>>>0?1:0),Q=Q+Me,Y=Y+Ge+(Q>>>0<Me>>>0?1:0),Q=Q+Fe,Y=Y+Ve+(Q>>>0<Fe>>>0?1:0),ue.high=Y,ue.low=Q}var Be=ce&oe^~ce&q,_e=le&xe^~le&se,Ae=Z&me^Z&De^me&De,fe=re&Ee^re&te^Ee&te,ke=(Z>>>28|re<<4)^(Z<<30|re>>>2)^(Z<<25|re>>>7),Je=(re>>>28|Z<<4)^(re<<30|Z>>>2)^(re<<25|Z>>>7),ne=(ce>>>14|le<<18)^(ce>>>18|le<<14)^(ce<<23|le>>>9),Qe=(le>>>14|ce<<18)^(le>>>18|ce<<14)^(le<<23|ce>>>9),dt=a[$],Ke=dt.high,et=dt.low,rt=de+Qe,bt=Ne+ne+(rt>>>0<de>>>0?1:0),rt=rt+_e,bt=bt+Be+(rt>>>0<_e>>>0?1:0),rt=rt+et,bt=bt+Ke+(rt>>>0<et>>>0?1:0),rt=rt+Q,bt=bt+Y+(rt>>>0<Q>>>0?1:0),ut=Je+fe,ot=ke+Ae+(ut>>>0<Je>>>0?1:0);Ne=q,de=se,q=oe,se=xe,oe=ce,xe=le,le=we+rt|0,ce=Ce+bt+(le>>>0<we>>>0?1:0)|0,Ce=De,we=te,De=me,te=Ee,me=Z,Ee=re,re=rt+ut|0,Z=bt+ot+(re>>>0<rt>>>0?1:0)|0}C=o.low=C+re,o.high=O+Z+(C>>>0<re>>>0?1:0),S=c.low=S+Ee,c.high=w+me+(S>>>0<Ee>>>0?1:0),R=d.low=R+te,d.high=D+De+(R>>>0<te>>>0?1:0),N=f.low=N+we,f.high=P+Ce+(N>>>0<we>>>0?1:0),z=h.low=z+le,h.high=M+ce+(z>>>0<le>>>0?1:0),k=u.low=k+xe,u.high=X+oe+(k>>>0<xe>>>0?1:0),U=E.low=U+se,E.high=F+q+(U>>>0<se>>>0?1:0),B=x.low=B+de,x.high=L+Ne+(B>>>0<de>>>0?1:0)},_doFinalize:function(){var r=this._data,i=r.words,t=this._nDataBytes*8,o=r.sigBytes*8;i[o>>>5]|=128<<24-o%32,i[(o+128>>>10<<5)+30]=Math.floor(t/4294967296),i[(o+128>>>10<<5)+31]=t,r.sigBytes=i.length*4,this._process();var c=this._hash.toX32();return c},clone:function(){var r=b.clone.call(this);return r._hash=this._hash.clone(),r},blockSize:1024/32});v.SHA512=b._createHelper(l),v.HmacSHA512=b._createHmacHelper(l)}(),I.SHA512})},"24hK":function(j,W,y){"use strict";y.d(W,"a",function(){return v});class I{constructor(T){this.element=T,this.next=I.Undefined,this.prev=I.Undefined}}I.Undefined=new I(void 0);class v{constructor(){this._first=I.Undefined,this._last=I.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===I.Undefined}clear(){let T=this._first;for(;T!==I.Undefined;){const b=T.next;T.prev=I.Undefined,T.next=I.Undefined,T=b}this._first=I.Undefined,this._last=I.Undefined,this._size=0}unshift(T){return this._insert(T,!1)}push(T){return this._insert(T,!0)}_insert(T,b){const g=new I(T);if(this._first===I.Undefined)this._first=g,this._last=g;else if(b){const _=this._last;this._last=g,g.prev=_,_.next=g}else{const _=this._first;this._first=g,g.next=_,_.prev=g}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(g))}}shift(){if(this._first===I.Undefined)return;{const T=this._first.element;return this._remove(this._first),T}}pop(){if(this._last===I.Undefined)return;{const T=this._last.element;return this._remove(this._last),T}}_remove(T){if(T.prev!==I.Undefined&&T.next!==I.Undefined){const b=T.prev;b.next=T.next,T.next.prev=b}else T.prev===I.Undefined&&T.next===I.Undefined?(this._first=I.Undefined,this._last=I.Undefined):T.next===I.Undefined?(this._last=this._last.prev,this._last.next=I.Undefined):T.prev===I.Undefined&&(this._first=this._first.next,this._first.prev=I.Undefined);this._size-=1}*[Symbol.iterator](){let T=this._first;for(;T!==I.Undefined;)yield T.element,T=T.next}}},"25Vc":function(j,W,y){j.exports={wrap:"wrap___3gf4v",title:"title___BnbVm",path:"path___1Prpu",colorBlue:"colorBlue___1sUTa"}},"3/fG":function(j,W,y){"use strict";y.d(W,"a",function(){return v});function I(T,b){let g;return b.length===0?g=T:g=T.replace(/\{(\d+)\}/g,function(s,_){const p=_[0];return typeof b[p]!="undefined"?b[p]:s}),g}function v(T,b,...g){return I(b,g)}},"34/K":function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;function I(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function v(g,s){for(var _=0;_<s.length;_++){var p=s[_];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(g,p.key,p)}}function T(g,s,_){return s&&v(g.prototype,s),_&&v(g,_),g}var b=function(){function g(){I(this,g),this._lines=0}return T(g,[{key:"decodeRect",value:function(_,p,e,a,n,l,r){this._lines===0&&(this._lines=a);var i=r==8?1:4,t=e*i;if(n.rQwait("RAW",t))return!1;var o=p+(a-this._lines),c=Math.min(this._lines,Math.floor(n.rQlen/t)),d=n.rQ,f=n.rQi;if(r==8){for(var h=e*c,u=new Uint8Array(h*4),E=0;E<h;E++)u[E*4+0]=(d[f+E]>>0&3)*255/3,u[E*4+1]=(d[f+E]>>2&3)*255/3,u[E*4+2]=(d[f+E]>>4&3)*255/3,u[E*4+4]=0;d=u,f=0}return l.blitImage(_,o,e,c,d,f),n.rQskipBytes(c*t),this._lines-=c,!(this._lines>0)}}]),g}();W.default=b},"362i":function(j,W,y){j.exports=y.p+"static/passpart.cc679602.png"},"3690":function(j,W,y){"use strict";function I(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(n){return typeof n}:I=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},I(e)}Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var v=b(y("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return T=function(){return e},e}function b(e){if(e&&e.__esModule)return e;if(e===null||I(e)!=="object"&&typeof e!="function")return{default:e};var a=T();if(a&&a.has(e))return a.get(e);var n={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=l?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}return n.default=e,a&&a.set(e,n),n}function g(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function s(e,a){for(var n=0;n<a.length;n++){var l=a[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function _(e,a,n){return a&&s(e.prototype,a),n&&s(e,n),e}var p=function(){function e(){g(this,e),this._tiles=0,this._lastsubencoding=0}return _(e,[{key:"decodeRect",value:function(n,l,r,i,t,o,c){for(this._tiles===0&&(this._tilesX=Math.ceil(r/16),this._tilesY=Math.ceil(i/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var d=1;if(t.rQwait("HEXTILE",d))return!1;var f=t.rQ,h=t.rQi,u=f[h];if(u>30)throw new Error("Illegal hextile subencoding (subencoding: "+u+")");var E=this._totalTiles-this._tiles,x=E%this._tilesX,O=Math.floor(E/this._tilesX),C=n+x*16,w=l+O*16,S=Math.min(16,n+r-C),D=Math.min(16,l+i-w);if(u&1)d+=S*D*4;else if(u&2&&(d+=4),u&4&&(d+=4),u&8){if(d++,t.rQwait("HEXTILE",d))return!1;var R=f[h+d-1];u&16?d+=R*(4+2):d+=R*2}if(t.rQwait("HEXTILE",d))return!1;if(h++,u===0)this._lastsubencoding&1?v.Debug(" Ignoring blank after RAW"):o.fillRect(C,w,S,D,this._background);else if(u&1)o.blitImage(C,w,S,D,f,h),h+=d-1;else{if(u&2&&(this._background=[f[h],f[h+1],f[h+2],f[h+3]],h+=4),u&4&&(this._foreground=[f[h],f[h+1],f[h+2],f[h+3]],h+=4),o.startTile(C,w,S,D,this._background),u&8){var P=f[h];h++;for(var N=0;N<P;N++){var M=void 0;u&16?(M=[f[h],f[h+1],f[h+2],f[h+3]],h+=4):M=this._foreground;var z=f[h];h++;var X=z>>4,k=z&15,F=f[h];h++;var U=(F>>4)+1,L=(F&15)+1;o.subTile(X,k,U,L,M)}}o.finishTile()}t.rQi=h,this._lastsubencoding=u,this._tiles--}return!0}}]),e}();W.default=p},"38/S":function(j,W,y){j.exports={flex_box_center:"flex_box_center___gbeRc",flex_space_between:"flex_space_between___uP2NS",flex_box_vertical_center:"flex_box_vertical_center___WRzx9",flex_box_center_end:"flex_box_center_end___Ji__B",flex_box_column:"flex_box_column___2AV2J",wrap:"wrap___1Ahvb",content:"content___2i-vx",left:"left___2uoqO",head:"head___2M7yA",expression:"expression___h-UeP",listWarp:"listWarp___Xf69A",variable:"variable___3s7Tb",list:"list___2MKOm",right:"right___73uPW",btns:"btns___232BE",disabled:"disabled___3iQ89",text:"text___3xl2y"}},"3y9D":function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.WordArray,g=T.Hasher,s=v.algo,_=[],p=s.SHA1=g.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,a){for(var n=this._hash.words,l=n[0],r=n[1],i=n[2],t=n[3],o=n[4],c=0;c<80;c++){if(c<16)_[c]=e[a+c]|0;else{var d=_[c-3]^_[c-8]^_[c-14]^_[c-16];_[c]=d<<1|d>>>31}var f=(l<<5|l>>>27)+o+_[c];c<20?f+=(r&i|~r&t)+1518500249:c<40?f+=(r^i^t)+1859775393:c<60?f+=(r&i|r&t|i&t)-1894007588:f+=(r^i^t)-899497514,o=t,t=i,i=r<<30|r>>>2,r=l,l=f}n[0]=n[0]+l|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+t|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,a=e.words,n=this._nDataBytes*8,l=e.sigBytes*8;return a[l>>>5]|=128<<24-l%32,a[(l+64>>>9<<4)+14]=Math.floor(n/4294967296),a[(l+64>>>9<<4)+15]=n,e.sigBytes=a.length*4,this._process(),this._hash},clone:function(){var e=g.clone.call(this);return e._hash=this._hash.clone(),e}});v.SHA1=g._createHelper(p),v.HmacSHA1=g._createHmacHelper(p)}(),I.SHA1})},4:function(j,W){},"4K8j":function(j,W,y){"use strict";y.r(W);var I=y("14J3"),v=y("BMrR"),T=y("jCWc"),b=y("kPKH"),g=y("q1tI"),s=y.n(g),_=y("bntm"),p=y("1vsH"),e=y("0/SM"),a=y.n(e),n=y("2qtc"),l=y("kLXV"),r=y("+L6B"),i=y("2/Rp"),t=y("T2oS"),o=y("W9HT"),c=y("lUTK"),d=y("BvKs"),f=y("miYZ"),h=y("tsqr"),u=y("9og8"),E=y("5Dmo"),x=y("3S7+"),O=y("k1fw"),C=y("tJVT"),w=y("PpiC"),S=y("Znn+"),D=y("ZTPi"),R=y("WmNS"),P=y.n(R),N=y("5DcX"),M=y.n(N),z=y("Ty5D"),X=y("9kvl"),k=y("oBTY"),F=y("qVdP"),U=y("jsC+"),L=y("ozfa"),B=y("MJZm"),Z=y("IZBM"),re=y("P5Jw"),me=y("5NDa"),Ee=y("5rEg"),De=y("y8nQ"),te=y("Vl3Y"),Ce=y("FfZY"),we=y.n(Ce),ce=function(We){var ft=We.shixunsDetail,nt=We.globalSetting,Dt=We.loading,Kt=We.user,vt=We.dispatch,Ht=We.taskData,Ft=We.isRepository,Lt=Object(w.a)(We,["shixunsDetail","globalSetting","loading","user","dispatch","taskData","isRepository"]),zt=Object(z.h)(),Qt=Object(O.a)(Object(O.a)({},Object(z.i)()),Object(z.h)().query),bn=Object(g.useState)({}),Zt=Object(C.a)(bn,2),$t=Zt[0],Zn=Zt[1],Fn=Object(g.useRef)(),Hn=te.a.useForm(),Yn=Object(C.a)(Hn,1),jn=Yn[0],or=Object(g.useState)(""),jr=Object(C.a)(or,2),qt=jr[0],wn=jr[1];Object(g.useEffect)(function(){Lt.visible&&jn.resetFields()},[Lt.visible]),Object(g.useEffect)(function(){var Mr=sessionStorage.getItem("pathArray");if(Mr){var Qn=Mr.split(",").join("/"),ge=Qn.indexOf("/")===0?Qn.substr(1):Qn;wn(ge)}},[]),Object(g.useEffect)(function(){var Mr,Qn;Fn.current=(Mr=zt.pathname)===null||Mr===void 0||((Qn=Mr.split("/"))===null||Qn===void 0)?void 0:Qn[2]},[]);var Kr=function(){var Mr=Object(u.a)(P.a.mark(function Qn(){var ge,V,J=arguments;return P.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ge=J.length>0&&J[0]!==void 0?J[0]:{},Re.next=3,vt({type:"shixunsDetail/addRepositoryFile",payload:{id:Ht.myshixun.identifier,message:ge.commitMessage,content:"",path:(Lt.defaultPath?Lt.defaultPath+"/":"")+ge.path+"/"+(ge.file||".gitkeep"),secret_repository:Ft?void 0:!0}});case 3:V=Re.sent,(V==null?void 0:V.status)===0&&(h.b.success("\u6DFB\u52A0\u6210\u529F"),Lt.onOK({path:(Lt.defaultPath?Lt.defaultPath+"/":"")+ge.path+"/"+(ge.file||".gitkeep"),name:ge.path.split("/")[ge.path.split("/").length-1]}),Lt.onClose());case 5:case"end":return Re.stop()}},Qn)}));return function(){return Mr.apply(this,arguments)}}(),Li=function(){var Qn,ge;X.d.push("/shixuns/".concat(Fn.current,"/").concat((Qn=zt.pathname)===null||Qn===void 0||((ge=Qn.split("/"))===null||ge===void 0)?void 0:ge[3]).concat(qt?"/master/shixun_show/".concat(qt):""))};return s.a.createElement(l.a,{width:"60%",centered:!0,visible:Lt.visible,wrapClassName:we.a.modal,onOk:function(){jn.submit()},onCancel:Lt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},s.a.createElement("section",{className:we.a.bg},s.a.createElement("div",{className:we.a.wrap},s.a.createElement(te.a,{className:"mt10",form:jn,scrollToFirstError:!0,layout:"vertical",onFinish:Kr,onChange:function(){var Qn,ge,V,J,ie=Object(O.a)({},jn.getFieldsValue()),Re=ie==null||((Qn=ie.path)===null||Qn===void 0)?void 0:Qn.split(""),he=ie==null||((ge=ie.file)===null||ge===void 0)?void 0:ge.split("");Re!=null&&(V=Re.filter(function(it){return it=="/"}))!==null&&V!==void 0&&V.length&&(ie.path=ie.path.substring(0,ie.path.length-1)),he!=null&&(J=he.filter(function(it){return it=="/"}))!==null&&J!==void 0&&J.length&&(ie.file=ie.file.substring(0,ie.path.length-1)),jn.setFieldsValue(Object(O.a)({},ie)),Zn(ie)}},s.a.createElement(te.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},s.a.createElement(v.a,null,s.a.createElement(b.a,null,s.a.createElement("span",{className:we.a.filePath},Lt.defaultPath+"/")),s.a.createElement(b.a,{flex:"1"},s.a.createElement(te.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),s.a.createElement(te.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},s.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),s.a.createElement(te.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},le=Object(X.a)(function(Ue){var We=Ue.shixunsDetail,ft=Ue.loading,nt=Ue.globalSetting,Dt=Ue.user;return{shixunsDetail:We,globalSetting:nt,user:Dt,loading:ft.models.index}})(ce),oe=y("7ahc"),xe=function(We){var ft=We.shixunsDetail,nt=We.globalSetting,Dt=We.loading,Kt=We.user,vt=We.taskData,Ht=We.dispatch,Ft=We.isRepository,Lt=We.onClose,zt=Object(w.a)(We,["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository","onClose"]),Qt=Object(z.h)(),bn=Object(O.a)(Object(O.a)({},Object(z.i)()),Object(z.h)().query),Zt=Object(g.useState)({}),$t=Object(C.a)(Zt,2),Zn=$t[0],Fn=$t[1],Hn=Object(g.useRef)(),Yn=te.a.useForm(),jn=Object(C.a)(Yn,1),or=jn[0],jr=Object(g.useState)(""),qt=Object(C.a)(jr,2),wn=qt[0],Kr=qt[1];Object(g.useEffect)(function(){zt.visible&&or.resetFields()},[zt.visible]),Object(g.useEffect)(function(){var Qn=sessionStorage.getItem("pathArray");if(Qn){var ge=Qn.split(",").join("/"),V=ge.indexOf("/")===0?ge.substr(1):ge;Kr(V)}},[]),Object(g.useEffect)(function(){var Qn,ge;Hn.current=(Qn=Qt.pathname)===null||Qn===void 0||((ge=Qn.split("/"))===null||ge===void 0)?void 0:ge[2]},[]);var Li=function(){var Qn=Object(u.a)(P.a.mark(function ge(){var V,J,ie=arguments;return P.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return V=ie.length>0&&ie[0]!==void 0?ie[0]:{},he.next=3,Object(Z.a)({id:vt.myshixun.identifier,message:V.commitMessage,content:V.codeMirror,path:(zt.defaultPath?zt.defaultPath+"/":"")+V.path,secret_repository:Ft?void 0:!0});case 3:J=he.sent,(J==null?void 0:J.status)===0&&(h.b.success("\u6DFB\u52A0\u6210\u529F"),zt.onOK({path:(zt.defaultPath?zt.defaultPath+"/":"")+V.path,name:V.path.split("/")[V.path.split("/").length-1]}),Lt());case 5:case"end":return he.stop()}},ge)}));return function(){return Qn.apply(this,arguments)}}(),Mr=function(){var ge,V;X.d.push("/shixuns/".concat(Hn.current,"/").concat((ge=Qt.pathname)===null||ge===void 0||((V=ge.split("/"))===null||V===void 0)?void 0:V[3]).concat(wn?"/master/shixun_show/".concat(wn):""))};return s.a.createElement(l.a,{width:"60%",visible:zt.visible,wrapClassName:we.a.modal,centered:!0,onOk:function(){or.submit()},onCancel:Lt,title:"\u65B0\u5EFA\u6587\u4EF6"},s.a.createElement("section",{className:we.a.bg},s.a.createElement("div",{className:we.a.wrap},s.a.createElement(te.a,{className:"mt10",form:or,scrollToFirstError:!0,layout:"vertical",onFinish:Li,onChange:function(){var ge,V,J=Object(O.a)({},or.getFieldsValue()),ie=J==null||((ge=J.path)===null||ge===void 0)?void 0:ge.split("");(ie==null||((V=ie.filter(function(Re){return Re=="/"}))===null||V===void 0)?void 0:V.length)>1&&(J.path=J.path.substring(0,J.path.length-1)),or.setFieldsValue(Object(O.a)({},J)),Fn(J)}},s.a.createElement(te.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},s.a.createElement(v.a,null,s.a.createElement(b.a,null,s.a.createElement("span",{className:we.a.filePath},zt.defaultPath+"/")),s.a.createElement(b.a,{flex:"1"},s.a.createElement(te.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),s.a.createElement(te.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),s.a.createElement("div",{className:"mt10 mb20"},s.a.createElement(te.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},s.a.createElement(oe.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},q=Object(X.a)(function(Ue){var We=Ue.shixunsDetail,ft=Ue.loading,nt=Ue.globalSetting,Dt=Ue.user;return{shixunsDetail:We,globalSetting:nt,user:Dt,loading:ft.models.index}})(xe),se=function(We){var ft=We.shixunsDetail,nt=We.globalSetting,Dt=We.loading,Kt=We.user,vt=We.dispatch,Ht=We.isRepository,Ft=We.taskData,Lt=Object(w.a)(We,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository","taskData"]),zt=Object(z.h)(),Qt=Object(O.a)(Object(O.a)({},Object(z.i)()),Object(z.h)().query),bn=Object(g.useState)({}),Zt=Object(C.a)(bn,2),$t=Zt[0],Zn=Zt[1],Fn=Object(g.useRef)(),Hn=te.a.useForm(),Yn=Object(C.a)(Hn,1),jn=Yn[0],or=Object(g.useState)(""),jr=Object(C.a)(or,2),qt=jr[0],wn=jr[1],Kr=Object(g.useState)(""),Li=Object(C.a)(Kr,2),Mr=Li[0],Qn=Li[1];Object(g.useEffect)(function(){Lt.visible&&jn.resetFields()},[Lt.visible]),Object(g.useEffect)(function(){var J=Lt.defaultPath.split("/");J.length===1?(wn(""),Qn(Lt.defaultPath)):(Qn(J.pop()),wn(J.join("/")+"/"))},[Lt.defaultPath]),Object(g.useEffect)(function(){var J,ie;Fn.current=(J=zt.pathname)===null||J===void 0||((ie=J.split("/"))===null||ie===void 0)?void 0:ie[2]},[]);var ge=function(){var J=Object(u.a)(P.a.mark(function ie(){var Re,he,it,Ut=arguments;return P.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return he=Ut.length>0&&Ut[0]!==void 0?Ut[0]:{},an.next=3,Object(Z.v)({id:Ft==null||((Re=Ft.shixun)===null||Re===void 0)?void 0:Re.identifier,from:Lt.defaultPath,to:qt+he.path,message:he.commitMessage||"".concat(Lt.defaultPath," rename to ").concat(qt).concat(he.path," ")});case 3:it=an.sent,(it==null?void 0:it.status)===0&&(h.b.success("\u64CD\u4F5C\u6210\u529F"),Lt.onOK({path:he.path,name:he.path}),Lt.onClose());case 5:case"end":return an.stop()}},ie)}));return function(){return J.apply(this,arguments)}}(),V=function(){var ie,Re;X.d.push("/shixuns/".concat(Fn.current,"/").concat((ie=zt.pathname)===null||ie===void 0||((Re=ie.split("/"))===null||Re===void 0)?void 0:Re[3]).concat(qt?"/master/shixun_show/".concat(qt):""))};return s.a.createElement(l.a,{width:"40%",visible:Lt.visible,wrapClassName:we.a.modal,centered:!0,onOk:function(){jn.submit()},onCancel:Lt.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},s.a.createElement("section",{className:we.a.bg},s.a.createElement("div",{className:we.a.wrap},s.a.createElement(te.a,{className:"mt10",form:jn,scrollToFirstError:!0,layout:"vertical",onFinish:ge,onChange:function(){var ie,Re,he=Object(O.a)({},jn.getFieldsValue()),it=he==null||((ie=he.path)===null||ie===void 0)?void 0:ie.split("");(it==null||((Re=it.filter(function(Ut){return Ut=="/"}))===null||Re===void 0)?void 0:Re.length)>1&&(he.path=he.path.substring(0,he.path.length-1)),jn.setFieldsValue(Object(O.a)({},he)),Zn(he)}},s.a.createElement(te.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},s.a.createElement(v.a,null,s.a.createElement(b.a,{flex:"1"},s.a.createElement(te.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:Mr}))))),s.a.createElement(te.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},s.a.createElement(Ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Lt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},Ne=Object(X.a)(function(Ue){var We=Ue.shixunsDetail,ft=Ue.loading,nt=Ue.globalSetting,Dt=Ue.user;return{shixunsDetail:We,globalSetting:nt,user:Dt,loading:ft.models.index}})(se),de=y("DZo9"),$=y("8z0m"),Q=y("m3rI"),Y=y("8j3D"),ue=y("25Vc"),ae=y.n(ue),be=$.a.Dragger,Ie=function(We){var ft,nt=We.shixunsDetail,Dt=We.globalSetting,Kt=We.loading,vt=We.user,Ht=We.taskData,Ft=We.dispatch,Lt=We.isRepository,zt=Object(w.a)(We,["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository"]),Qt=Object(z.h)(),bn=Object(O.a)(Object(O.a)({},Object(z.i)()),Object(z.h)().query),Zt=Object(g.useState)({}),$t=Object(C.a)(Zt,2),Zn=$t[0],Fn=$t[1],Hn=Object(g.useRef)(),Yn=te.a.useForm(),jn=Object(C.a)(Yn,1),or=jn[0],jr=Object(g.useState)([]),qt=Object(C.a)(jr,2),wn=qt[0],Kr=qt[1],Li=Object(g.useState)(),Mr=Object(C.a)(Li,2),Qn=Mr[0],ge=Mr[1],V;Object(g.useEffect)(function(){zt.visible&&(or.resetFields(),Kr([]))},[zt.visible]),Object(g.useEffect)(function(){Hn.current=bn.id},[]),Object(g.useEffect)(function(){var Ut=sessionStorage.getItem("pathArray");if(Ut){var Jt=Ut.split(",").join("/"),an=Jt.indexOf("/")===0?Jt.substr(1):Jt;ge(an)}},[]);var J=function(Jt){if(V=Jt.file.name,Jt.file.status==="done"||Jt.file.status==="uploading"){var an,Pt,cn;if(Kr(Jt.fileList),!Jt.file.response)return;if(((an=Jt.file.response)===null||an===void 0?void 0:an.status)===0){h.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Kr(wn.filter(function(Rn){return Rn.uid!==Jt.file.uid})),((Pt=Jt.file.response)===null||Pt===void 0?void 0:Pt.message)&&h.b.info((cn=Jt.file.response)===null||cn===void 0?void 0:cn.message)}},ie=function(){var Ut=Object(u.a)(P.a.mark(function Jt(an){var Pt;return P.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if(an.response){Rn.next=3;break}return h.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),Rn.abrupt("return");case 3:return Rn.next=5,Ft({type:"shixunsDetail/deleteGitFile",payload:{id:bn.id,path:Qn?"".concat(Qn,"/").concat(an.name):an.name,message:or.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(Qn?"".concat(Qn,"/").concat(an.name):an.name),secret_repository:Lt?null:!0}});case 5:Pt=Rn.sent,Pt.status===0&&(Kr(wn.filter(function(Jn){return Jn.uid!==an.uid})),h.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return Rn.stop()}},Jt)}));return function(an){return Ut.apply(this,arguments)}}(),Re={height:300,multiple:!0,withCredentials:!0,data:function(){var Ut=Object(u.a)(P.a.mark(function an(){return P.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.abrupt("return",new Promise(function(){var Rn=Object(u.a)(P.a.mark(function Jn(ir,tr){return P.a.wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:setTimeout(Object(u.a)(P.a.mark(function Yi(){var oi,di;return P.a.wrap(function(Si){for(;;)switch(Si.prev=Si.next){case 0:return Si.next=2,or.getFieldsValue();case 2:oi=Si.sent,di=Object(O.a)(Object(O.a)({},{path:zt.defaultPath?zt.defaultPath:"",message:Zn.commitMessage||"\u4E0A\u4F20\u4E86".concat(V)}),Lt?{}:{secret_repository:!0}),ir(di);case 5:case"end":return Si.stop()}},Yi)})),200);case 1:case"end":return Dr.stop()}},Jn)}));return function(Jn,ir){return Rn.apply(this,arguments)}}()));case 1:case"end":return cn.stop()}},an)}));function Jt(){return Ut.apply(this,arguments)}return Jt}(),fileList:wn,method:"post",action:"".concat(Q.a.API_SERVER,"/api/myshixuns/").concat(Ht==null||((ft=Ht.myshixun)===null||ft===void 0)?void 0:ft.identifier,"/upload_git_file.json"),onChange:J,onRemove:ie,beforeUpload:function(Jt){V=Jt.name}},he=function(){var Ut=Object(u.a)(P.a.mark(function Jt(an){return P.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,or.validateFields();case 2:zt.onClose(),zt.onOK({path:zt.defaultPath}),it();case 5:case"end":return cn.stop()}},Jt)}));return function(an){return Ut.apply(this,arguments)}}(),it=function(){};return s.a.createElement(l.a,{visible:zt.visible,onOk:he,centered:!0,onCancel:zt.onClose,width:"70%"},s.a.createElement("section",{className:ae.a.bg},s.a.createElement("div",{className:ae.a.wrap},s.a.createElement("div",{className:ae.a.title},"\u4E0A\u4F20\u6587\u4EF6"),s.a.createElement(te.a,{className:"mt10",form:or,scrollToFirstError:!0,layout:"vertical",onFinish:he,onValuesChange:function(){return Fn(Object(O.a)({},or.getFieldsValue()))}},s.a.createElement(te.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(Ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),s.a.createElement(te.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},s.a.createElement(be,Re,s.a.createElement("div",null,s.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(ae.a.colorBlue)})),s.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",s.a.createElement("span",{className:"".concat(ae.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),s.a.createElement(Y.a,{onFinish:function(Jt){return ge(Jt)}})))},pe=Object(X.a)(function(Ue){var We=Ue.shixunsDetail,ft=Ue.loading,nt=Ue.globalSetting,Dt=Ue.user;return{shixunsDetail:We,globalSetting:nt,user:Dt,loading:ft.models.index}})(Ie),Le=y("aVK0"),ve=y.n(Le),Xe=y("TXba"),$e=y.n(Xe),Ge=function(We){var ft=We.shixunsDetail,nt=We.globalSetting,Dt=We.loading,Kt=We.dispatch,vt=We.title,Ht=We.pathList,Ft=Ht===void 0?[]:Ht,Lt=We.showInputPath,zt=Lt===void 0?!1:Lt,Qt=We.isMergeSelectFile,bn=Qt===void 0?!1:Qt,Zt=We.onFinish,$t=Zt===void 0?function(){}:Zt,Zn=te.a.useForm(),Fn=Object(C.a)(Zn,1),Hn=Fn[0],Yn=Object(O.a)(Object(O.a)({},Object(z.i)()),Object(z.h)().query),jn=Object(z.h)(),or=Object(g.useRef)(),jr=Object(g.useState)(""),qt=Object(C.a)(jr,2),wn=qt[0],Kr=qt[1],Li=Object(g.useState)(""),Mr=Object(C.a)(Li,2),Qn=Mr[0],ge=Mr[1],V=Object(g.useState)([]),J=Object(C.a)(V,2),ie=J[0],Re=J[1],he=Object(g.useState)([]),it=Object(C.a)(he,2),Ut=it[0],Jt=it[1];Object(g.useEffect)(function(){var ir,tr;or.current=((ir=jn.pathname)===null||ir===void 0||((tr=ir.split("/"))===null||tr===void 0)?void 0:tr[3])==="repository"},[]),Object(g.useEffect)(function(){if(ft.actionTabs.key!=="Repository-SelectFilePath")return;var ir=Ft.join("/"),tr=[];Ft.map(function(fr,Dr){Dr===0?tr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(fr),path:ir}):tr.push({val:"/".concat(fr),path:ir})}),Re(tr),Kr(ir),ge(ir),an(ir)},[ft.actionTabs.key]);var an=function(){var ir=Object(u.a)(P.a.mark(function tr(fr){var Dr;return P.a.wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:return oi.next=2,Kt({type:or.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Yn.id,path:fr}});case 2:Dr=oi.sent,Dr&&Jt(Dr.trees||[]);case 4:case"end":return oi.stop()}},tr)}));return function(fr){return ir.apply(this,arguments)}}(),Pt=function(tr){var fr=wn;tr.type==="tree"&&(ie.length?ie.push({val:"/".concat(tr.name),path:tr.name}):ie.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(tr.name),path:tr.name}),Re(ie),fr=wn?"".concat(wn,"/").concat(tr.name):tr.name,Kr(fr)),an(fr)},cn=function(tr,fr){var Dr=ie.filter(function(oi,di){return di<=fr});Re(Dr);var Yi=Dr.filter(function(oi,di){return di!==0}).map(function(oi){return oi.val}).join("").substr(1);Kr(Yi),an(Yi)},Rn=function(){var ir=Object(u.a)(P.a.mark(function tr(){var fr,Dr,Yi;return P.a.wrap(function(di){for(;;)switch(di.prev=di.next){case 0:if(fr=Hn==null?void 0:Hn.getFieldsValue(),Dr=wn?"".concat(wn).concat(fr!=null&&fr.name?"/".concat(fr==null?void 0:fr.name):""):fr==null?void 0:fr.name,!bn){di.next=6;break}return $t(Dr),Jn(),di.abrupt("return");case 6:if(!zt){di.next=16;break}return di.next=9,Hn.validateFields();case 9:return di.next=11,Kt({type:"shixunsDetail/uploadGitFolder",payload:Object(O.a)(Object(O.a)({},{id:Yn.id,path:Dr}),or.current?{}:{secret_repository:!0})});case 11:Yi=di.sent,$t(Qn),Yi.status===0&&h.b.info("\u65B0\u5EFA\u6210\u529F"),di.next=18;break;case 16:$t(Dr),h.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Jn();case 19:case"end":return di.stop()}},tr)}));return function(){return ir.apply(this,arguments)}}(),Jn=function(){Kt({type:"shixunsDetail/setActionTabs",payload:{}}),Hn.resetFields()};return s.a.createElement(l.a,{centered:!0,title:vt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:ft.actionTabs.key==="Repository-SelectFilePath",onOk:Rn,onCancel:Jn},s.a.createElement("div",{className:$e.a.wrap},s.a.createElement("div",{className:$e.a.content},s.a.createElement("div",{className:$e.a.mainPathWrap},!!(ie!=null&&ie.length)&&ie.map(function(ir,tr){return s.a.createElement("a",{key:tr,onClick:function(){return cn(ir,tr)}},ir.val)})),!!(Ut!=null&&Ut.length)&&Ut.map(function(ir,tr){return ir.type==="tree"&&s.a.createElement("a",{key:tr,onClick:function(){return Pt(ir)}},s.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat($e.a.colorBlue)}),ir.name)})),s.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),s.a.createElement("div",{className:"mt5 mb5"},wn),zt&&s.a.createElement(te.a,{form:Hn,scrollToFirstError:!0,className:"mt20"},s.a.createElement(te.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},Me=Object(X.a)(function(Ue){var We=Ue.shixunsDetail,ft=Ue.loading,nt=Ue.globalSetting;return{shixunsDetail:We,globalSetting:nt,loading:ft.models.index}})(Ge),gt=y("GZ0F"),Te=y("8Skl"),Ye=y("HBuW"),Ze=y("LvDl"),Ve=y("NLgs"),Fe=y("lzim"),Be=B.a.DirectoryTree,_e=function(We){var ft,nt,Dt,Kt=We.shixunsDetail,vt=We.globalSetting,Ht=We.loading,Ft=We.user,Lt=We.activeKey,zt=We.dispatch,Qt=We.taskData,bn=We.practiceSetting,Zt=We.isRepository,$t=We.treeData,Zn=We.setTreeData,Fn=We.params,Hn=Object(w.a)(We,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","taskData","practiceSetting","isRepository","treeData","setTreeData","params"]),Yn=Object(z.h)(),jn=Object(g.useState)(),or=Object(C.a)(jn,2),jr=or[0],qt=or[1],wn=Object(g.useState)(!1),Kr=Object(C.a)(wn,2),Li=Kr[0],Mr=Kr[1],Qn=Object(g.useState)(!1),ge=Object(C.a)(Qn,2),V=ge[0],J=ge[1],ie=Object(g.useState)(!1),Re=Object(C.a)(ie,2),he=Re[0],it=Re[1],Ut=Object(g.useState)(!1),Jt=Object(C.a)(Ut,2),an=Jt[0],Pt=Jt[1],cn=Object(g.useState)(""),Rn=Object(C.a)(cn,2),Jn=Rn[0],ir=Rn[1],tr=Object(g.useState)([]),fr=Object(C.a)(tr,2),Dr=fr[0],Yi=fr[1],oi=Object(g.useState)([]),di=Object(C.a)(oi,2),_a=di[0],Si=di[1],ga=Object(g.useState)([]),mo=Object(C.a)(ga,2),ao=mo[0],yo=mo[1],Ia=Object(g.useState)(!1),Za=Object(C.a)(Ia,2),Ri=Za[0],ri=Za[1],hi=Object(g.useState)(),Mi=Object(C.a)(hi,2),Nr=Mi[0],Ar=Mi[1],fi=Object(g.useState)(),wr=Object(C.a)(fi,2),vi=wr[0],pr=wr[1],ta=Object(g.useState)(""),Qi=Object(C.a)(ta,2),ea=Qi[0],Eo=Qi[1],ca=Object(g.useState)(),qa=Object(C.a)(ca,2),ja=qa[0],Ba=qa[1],Ka=Object(g.useState)(!1),Ha=Object(C.a)(Ka,2),Mo=Ha[0],Oo=Ha[1];Object(g.useEffect)(function(){Zn([]),Or(""),localStorage.warehouseHideTip||ri(!0)},[Yn.pathname,Zt]),Object(g.useEffect)(function(){var Nn;if(Qt!=null&&(Nn=Qt.challenge)!==null&&Nn!==void 0&&Nn.path&&$t!==null&&$t!==void 0&&$t.length){var sn,Bn,Dn,hr=Qt==null||((sn=Qt.challenge)===null||sn===void 0||((Bn=sn.path)===null||Bn===void 0))?void 0:Bn.replaceAll("\uFF1B",""),Ir=(Dn=Object(Ze.cloneDeep)($t))===null||Dn===void 0?void 0:Dn.filter(function(Zr){var yi;return Zr.name===(hr==null||((yi=hr.split("/"))===null||yi===void 0)?void 0:yi[0])});Ra(hr),($t==null?void 0:$t.length)!==1&&(console.log(Ir,"filterTreeData"),Zn(Ir))}},[Qt==null||((ft=Qt.challenge)===null||ft===void 0)?void 0:ft.path,$t]);var Ra=function(sn){nr(sn),_a=[sn],Si([sn])},Vo=function(){var Nn=Object(u.a)(P.a.mark(function sn(){var Bn,Dn,hr=arguments;return P.a.wrap(function(Zr){for(;;)switch(Zr.prev=Zr.next){case 0:return Bn=hr.length>0&&hr[0]!==void 0?hr[0]:"",Zr.next=3,Object(Ye.Gb)({id:Fn.id,secret_dir_path:Bn});case 3:Dn=Zr.sent,Dn&&Ba(Bn);case 5:case"end":return Zr.stop()}},sn)}));return function(){return Nn.apply(this,arguments)}}(),ar=function(sn){return s.a.createElement(d.a,{className:ve.a.menu,onClick:function(Dn){ir(sn.path||"");switch(Dn.key){case"1":Object(p.eb)(["\u5B9E\u9A8C\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Mr(!0);break;case"2":Object(p.eb)(["\u5B9E\u9A8C\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),it(!0);break;case"3":Object(p.eb)(["\u5B9E\u9A8C\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Pt(!0);break;case"4":Object(p.eb)(["\u5B9E\u9A8C\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),J(!0);break;case"5":Object(p.eb)(["\u5B9E\u9A8C\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Wr(sn.path,sn.name,sn);break;case"6":Object(p.eb)(["\u5B9E\u9A8C\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),$a(sn);break}}},(sn.type==="topTree"||sn.type==="tree")&&s.a.createElement(d.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(sn.type==="topTree"||sn.type==="tree")&&s.a.createElement(d.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(sn.type==="topTree"||sn.type==="tree")&&s.a.createElement(d.a.Item,{key:"3"},"\u4E0A\u4F20"),sn.type!=="topTree"&&sn.type!=="tree"&&s.a.createElement(d.a.Item,{key:"4"},"\u91CD\u547D\u540D"),sn.type!=="topTree"&&s.a.createElement(re.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Zt?"":"secret/").concat(sn==null?void 0:sn.path),onCopy:function(){return h.b.success("\u590D\u5236\u6210\u529F")}},s.a.createElement(d.a.Item,{key:"6"},s.a.createElement(s.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),sn.type!=="topTree"&&s.a.createElement(d.a.Item,{key:"5"},"\u5220\u9664"))},yr=function(sn,Bn){return sn.map(function(Dn){return Bn==""?Dn.path=Bn+Dn.name:Dn.path=Bn+"/"+Dn.name,Dn.title=s.a.createElement(v.a,{className:"font14"},s.a.createElement(b.a,{flex:"1"},s.a.createElement(v.a,null,s.a.createElement(b.a,{flex:"20px"},Dn.type==="blob"&&s.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),s.a.createElement(b.a,{flex:"1"},s.a.createElement("span",{className:" multi_ellipsis1"},Dn.name)))),s.a.createElement(b.a,null,(Dn.type==="blob"||Dn.type==="tree")&&s.a.createElement(U.a,{overlay:ar(Dn),className:ve.a.ellipsis},s.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Dn.disableCheckbox=jr&&jr!==Dn.name,Dn.className=Dn.type==="tree"?ve.a.pl23:"",Dn.checkable=Dn.type!=="tree",Dn.isLeaf=Dn.type!=="tree",Dn.children=Dn.type==="tree"&&[],Dn.key=Dn.path,Dn})},nr=function(sn){zt({type:"practiceSetting/setSideBarTabs",payload:{selectPath:sn}})},Fr=function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn,Dn){var hr;return P.a.wrap(function(Zr){for(;;)switch(Zr.prev=Zr.next){case 0:return hr=Bn.split("/"),Zr.next=3,Or(Jn);case 3:setTimeout(function(){nr(Bn),Dr=[hr[0]||""],_a=[Bn],Si(Object(k.a)(_a)),Yi(Object(k.a)(Dr))},150);case 4:case"end":return Zr.stop()}},sn)}));return function(Bn,Dn){return Nn.apply(this,arguments)}}(),si=function(sn,Bn){if(console.log(sn,"data"),Bn=="")Zn(Object(k.a)(sn));else{var Dn=Ci($t,Bn,sn);Zn(Object(k.a)(Dn))}};function Ci(Nn,sn,Bn){return Nn.map(function(Dn){return Dn.key===sn?(Dn.children=Object(k.a)(Bn),Object(O.a)({},Dn)):Dn.children?Object(O.a)(Object(O.a)({},Dn),{},{children:Ci(Dn.children,sn,Bn)}):Dn})}var Or=function(){var Nn=Object(u.a)(P.a.mark(function sn(){var Bn,Dn,hr,Ir,Zr,yi,aa=arguments;return P.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return Dn=aa.length>0&&aa[0]!==void 0?aa[0]:"",console.log("location:",Yn),ba.next=4,Object(Z.k)(Qt==null||((Bn=Qt.myshixun)===null||Bn===void 0)?void 0:Bn.identifier,{path:Dn});case 4:return hr=ba.sent,hr&&((Ir=hr.trees)!==null&&Ir!==void 0&&Ir.length?(yi=yr(Object(k.a)(hr.trees),Dn),si(yi,Dn),yo(hr.trees||[]),pr((hr==null?void 0:hr.secret_dir_path)||""),console.log("handleGetRepository:",yi,Dn),setTimeout(function(){return console.log($t)},2e3)):Dn==""&&Zn([]),Ar(((Zr=hr.commits)===null||Zr===void 0?void 0:Zr[0])||{})),ba.abrupt("return",hr);case 7:case"end":return ba.stop()}},sn)}));return function(){return Nn.apply(this,arguments)}}(),na=function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn){return P.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return hr.abrupt("return",new Promise(function(){var Ir=Object(u.a)(P.a.mark(function Zr(yi,aa){return P.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return Bn.children.length&&yi(),Eo(Bn.path),ba.next=4,Or(Bn.path);case 4:yi();case 5:case"end":return ba.stop()}},Zr)}));return function(Zr,yi){return Ir.apply(this,arguments)}}()));case 1:case"end":return hr.stop()}},sn)}));return function(Bn){return Nn.apply(this,arguments)}}(),Ea=function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn,Dn){var hr,Ir;return P.a.wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:if(console.log("handleSelectTree",Bn,Dn.nativeEvent.target.nodeName,Dn),hr=function(){nr(Dn.node.path),Bn=[Dn.node.path],Si(Object(k.a)(Bn))},!(Dn.nativeEvent.target.nodeName==="svg"||Dn.nativeEvent.target.nodeName==="LI"||Dn.nativeEvent.target.nodeName==="I")){yi.next=4;break}return yi.abrupt("return");case 4:Dn.node.type==="blob"&&(bn!=null&&(Ir=bn.sideBar)!==null&&Ir!==void 0&&Ir.confirmLeave?l.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){hr(),zt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):hr());case 5:case"end":return yi.stop()}},sn)}));return function(Bn,Dn){return Nn.apply(this,arguments)}}(),Wr=function(sn,Bn,Dn){l.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Dn.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var hr=Object(u.a)(P.a.mark(function Zr(){var yi,aa,Bi,ba;return P.a.wrap(function(Xa){for(;;)switch(Xa.prev=Xa.next){case 0:return Xa.next=2,Object(Z.f)({id:Qt==null||((yi=Qt.myshixun)===null||yi===void 0)?void 0:yi.identifier,path:sn,message:"\u5220\u9664".concat(sn)});case 2:if(aa=Xa.sent,Bi=sn.split("/"),!((aa==null?void 0:aa.status)===0)){Xa.next=20;break}return h.b.info("\u5220\u9664\u6210\u529F"),Bi.splice(Bi.length-1,1),Xa.next=9,Or(Bi.length>1?Bi.join("/"):"");case 9:if(ba=Xa.sent,!(ba!=null&&ba.trees)){Xa.next=13;break}Xa.next=16;break;case 13:return Bi.splice(Bi.length-1,1),Xa.next=16,Or(Bi.length>1?Bi.join("/"):"");case 16:return nr(""),Xa.abrupt("return",!0);case 20:(aa==null?void 0:aa.status)===-3&&l.a.info({title:"\u5220\u9664\u5931\u8D25",content:s.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",sn,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}});case 21:case"end":return Xa.stop()}},Zr)}));function Ir(){return hr.apply(this,arguments)}return Ir}()})},$a=function(sn){console.log(sn,"item")},_i=function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn,Dn){return P.a.wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(console.log("handleExpand",Dn),!(Dn.nativeEvent.target.nodeName==="svg"||Dn.nativeEvent.target.nodeName==="path"||Dn.nativeEvent.target.nodeName==="LI")){Ir.next=5;break}return Ir.abrupt("return",!0);case 5:return Ir.next=7,na(Dn.node);case 7:Dr.includes(Dn.node.path)?Dr.splice(Dr.indexOf(Dn.node.path),1):Dr.push(Dn.node.path);case 8:Yi(Object(k.a)(Dr));case 9:case"end":return Ir.stop()}},sn)}));return function(Bn,Dn){return Nn.apply(this,arguments)}}(),da=function(){ri(!1),localStorage.warehouseHideTip=!0},xa=function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn){var Dn,hr,Ir,Zr,yi;return P.a.wrap(function(Bi){for(;;)switch(Bi.prev=Bi.next){case 0:Ir="",Bi.t0=Zt,Bi.next=Bi.t0===!0?4:Bi.t0===!1?9:11;break;case 4:return Ir="\u5F00\u542F\u7248\u672C\u5E93",Zr="\u5F00\u542F",yi="\u4E0D\u5F00\u542F",hr=s.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),Bi.abrupt("break",11);case 9:return Kt!=null&&(Dn=Kt.detail)!==null&&Dn!==void 0&&Dn.secret_repository?(Ir="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Zr="\u786E\u5B9A",yi="\u53D6\u6D88",hr=s.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(Ir="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Zr="\u4E0D\u4F7F\u7528",yi="\u4F7F\u7528",hr=s.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),Bi.abrupt("break",11);case 11:if(!(!Zt&&Object(Ve.b)(zt,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){Bi.next=13;break}return Bi.abrupt("return");case 13:l.a.confirm({title:Ir,okText:Zr,cancelText:yi,content:hr,onOk:function(){var Ro;Object(p.eb)(["\u5B9E\u9A8C\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",Ir]),!Zt&&!(Kt!=null&&(Ro=Kt.detail)!==null&&Ro!==void 0&&Ro.secret_repository)||Wa(Bn)},onCancel:function(){var Ro;!Zt&&!(Kt!=null&&(Ro=Kt.detail)!==null&&Ro!==void 0&&Ro.secret_repository)&&Wa(Bn)}});case 14:case"end":return Bi.stop()}},sn)}));return function(Bn){return Nn.apply(this,arguments)}}(),Wa=function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn){return P.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:if(!Zt){hr.next=6;break}return hr.next=3,Object(Ye.r)(Object(O.a)({},Fn));case 3:zt({type:"practiceSetting/getCommonData",payload:Object(O.a)({},Fn)}),hr.next=8;break;case 6:return hr.next=8,Object(Ye.t)(Object(O.a)(Object(O.a)({},Fn),{},{is_secret_repository:Bn}));case 8:Or(),zt({type:"shixunsDetail/getShixunsDetail",payload:{id:Fn.id}});case 10:case"end":return hr.stop()}},sn)}));return function(Bn){return Nn.apply(this,arguments)}}(),Yo=function(sn){console.log(sn)},bi=function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn){var Dn,hr,Ir,Zr,yi,aa,Bi,ba,Ro,Xa,Ps;return P.a.wrap(function(ka){for(;;)switch(ka.prev=ka.next){case 0:if(console.log(Bn),Dn=Bn.node.key,hr=Bn.dragNode.key,Ir=Bn.node.pos.split("-"),Zr=Bn.dropPosition-Number(Ir[Ir.length-1]),!(Bn.node.type!=="tree"||Bn.dragNode.path.split("/").length===1)){ka.next=8;break}return h.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),ka.abrupt("return");case 8:return ka.next=10,zt({type:"shixunsDetail/moveGitFile",payload:{id:Fn.id,from:Bn.dragNode.path,to:Bn.node.path+"/"+Bn.dragNode.name,message:"".concat(Bn.dragNode.path," move to ").concat(Bn.node.path+"/"+Bn.dragNode.name," ")}});case 10:if(yi=ka.sent,!(yi.status===0)){ka.next=22;break}return nr(""),aa=Bn.dragNode.path.split("/"),aa.pop(),ka.next=17,Or(Bn.node.path);case 17:return ka.next=19,Or(aa.join("/"));case 19:return aa.pop(),ka.next=22,Or(aa.join("/"));case 22:return ka.abrupt("return");case 28:case"end":return ka.stop()}},sn)}));return function(Bn){return Nn.apply(this,arguments)}}();return s.a.createElement("section",{className:ve.a.bg},s.a.createElement("div",{className:ve.a.contentbg},s.a.createElement("div",{className:ve.a.wrap},s.a.createElement(v.a,{className:ve.a.gitCode},s.a.createElement(b.a,{flex:"1"},s.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),Zt?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),s.a.createElement(b.a,null,s.a.createElement(U.a,{overlay:ar({type:"topTree"}),className:"current"},s.a.createElement(x.a,{visible:Ri,title:s.a.createElement("div",{className:"font16"},s.a.createElement(gt.a,{style:{position:"relative",left:-35},onClick:function(){return da()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",s.a.createElement("span",{onClick:function(){return da()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:ve.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"})))),!!$t.length&&!Zt&&s.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},s.a.createElement("div",null,"\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh")),$t.length?s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:ve.a.content},s.a.createElement(Be,{disabled:!!Ht.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:$t,switcherIcon:s.a.createElement(Te.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:_i,expandedKeys:Dr,selectedKeys:_a,onSelect:Ea,draggable:!0,onDragEnter:Yo,onDrop:bi,allowDrop:function(sn){var Bn=sn.dropNode,Dn=sn.dropPosition;return!1}}))):"",!$t.length&&Zt&&(Kt==null||((nt=Kt.detail)===null||nt===void 0)?void 0:nt.init_repository)&&s.a.createElement(Ae,null),!$t.length&&!Zt&&(Kt==null||((Dt=Kt.detail)===null||Dt===void 0)?void 0:Dt.secret_repository)&&s.a.createElement(Ae,null))),s.a.createElement(Ne,{taskData:Qt,visible:V,defaultPath:Jn,onClose:function(){return J(!1)},isRepository:!Zt,onOK:function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn){var Dn;return P.a.wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return Dn=Jn.split("/"),Dn.pop(),Ir.next=4,Or(Dn.join("/"));case 4:nr("");case 5:case"end":return Ir.stop()}},sn)}));return function(sn){return Nn.apply(this,arguments)}}()}),s.a.createElement(q,{taskData:Qt,visible:Li,defaultPath:Jn,onClose:function(){return Mr(!1)},isRepository:Zt,onOK:function(sn){Fr(sn.path,sn.name)}}),s.a.createElement(le,{taskData:Qt,visible:he,defaultPath:Jn,onClose:function(){return it(!1)},isRepository:Zt,onOK:function(sn){Fr(sn.path,sn.name)}}),s.a.createElement(pe,{taskData:Qt,defaultPath:Jn,visible:an,isRepository:Zt,onClose:function(){return Pt(!1)},onOK:function(){var Nn=Object(u.a)(P.a.mark(function sn(Bn){var Dn;return P.a.wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return Dn=Jn.split("/"),Ir.next=3,Or(Jn);case 3:Dr=[Dn[0]||""],_a=[Jn],Si(Object(k.a)(_a)),Yi(Object(k.a)(Dr));case 7:case"end":return Ir.stop()}},sn)}));return function(sn){return Nn.apply(this,arguments)}}()}),s.a.createElement(Me,{pathList:Jn==null?void 0:Jn.split("/"),showInputPath:!0,isMergeSelectFile:Mo,onFinish:function(sn){Mo?Vo(sn):Or(sn),Oo(!1)}}))},Ae=function(){return s.a.createElement("div",{className:"mt20 pb50 ".concat(ve.a.nodata)},s.a.createElement("div",{className:ve.a.headLeft},"\u63D0\u793A\uFF1A",s.a.createElement("br",null),"\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u4EE5\u4E0B",s.a.createElement("br",null),"\u4E24\u79CD\u65B9\u5F0F\u6765\u4F7F\u7528\uFF1A",s.a.createElement("br",null),"1\u3001",s.a.createElement("a",{href:"/forums/2784",target:"_blank"},"Git\u5BA2\u6237\u7AEF")," ","\u4E0A\u4F20\u5DF2\u6709\u6587\u4EF6\u6765\u5F00\u59CB\u4F7F\u7528\u3002",s.a.createElement("br",null),"2\u3001\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6\u3002"),s.a.createElement("img",{width:"100%",src:Fe.u}))},fe=Object(X.a)(function(Ue){var We=Ue.shixunsDetail,ft=Ue.loading,nt=Ue.globalSetting,Dt=Ue.practiceSetting,Kt=Ue.user;return{shixunsDetail:We,globalSetting:nt,user:Kt,practiceSetting:Dt,loading:ft}})(_e),ke=y("/zsF"),Je=y("PArb"),ne=y("5GGG"),Qe=y.n(ne),dt=function(We){var ft=We.shixunsDetail,nt=We.globalSetting,Dt=We.loading,Kt=We.user,vt=We.dispatch,Ht=We.isRepository,Ft=Object(w.a)(We,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Lt=Object(O.a)(Object(O.a)({},Object(z.i)()),Object(z.h)().query),zt=Object(g.useState)([]),Qt=Object(C.a)(zt,2),bn=Qt[0],Zt=Qt[1];Object(g.useEffect)(function(){$t()},[Ht]);var $t=function(){var Zn=Object(u.a)(P.a.mark(function Fn(){var Hn;return P.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,vt({type:"shixunsDetail/getRepositoryCommit",payload:{id:Lt.id,secret_repository:Ht?void 0:!0}});case 2:Hn=jn.sent,Hn&&Zt(Hn.commits||[]);case 4:case"end":return jn.stop()}},Fn)}));return function(){return Zn.apply(this,arguments)}}();return s.a.createElement(s.a.Fragment,null,bn==""&&s.a.createElement("div",{className:Qe.a.empty},s.a.createElement("img",{src:Fe.k,width:"258"}),s.a.createElement("br",null),s.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),bn!=""&&s.a.createElement("section",{className:Qe.a.bg},s.a.createElement("div",{className:Qe.a.wrap},s.a.createElement("div",{className:Qe.a.content},bn==null?void 0:bn.map(function(Zn){var Fn,Hn;return s.a.createElement("div",null,s.a.createElement(v.a,{align:"middle",className:"c-white font16"},s.a.createElement(b.a,null,Zn.title)),s.a.createElement(v.a,{align:"middle",className:"mt20 "},s.a.createElement(b.a,null,s.a.createElement("img",{className:Qe.a.imageUrl,src:Q.a.IMG_SERVER+"/"+((Fn=Zn.author)===null||Fn===void 0?void 0:Fn.image_url)})),s.a.createElement(b.a,{className:Qe.a.blueLight},s.a.createElement("span",{className:"ml20"},(Hn=Zn.author)===null||Hn===void 0?void 0:Hn.username)),s.a.createElement(b.a,null,s.a.createElement("span",{className:"ml20 ".concat(Qe.a.blueLight)},"\u63D0\u4EA4\u4E8E"),s.a.createElement("span",{className:"ml20 ".concat(Qe.a.blueLight)},Zn.time))),s.a.createElement(Je.a,{className:Qe.a.divider}))})))))},Ke=Object(X.a)(function(Ue){var We=Ue.shixunsDetail,ft=Ue.loading,nt=Ue.globalSetting,Dt=Ue.user;return{shixunsDetail:We,globalSetting:nt,user:Dt,loading:ft.models.index}})(dt),et=y("p5ED"),rt=D.a.TabPane,bt=function(We){var ft,nt,Dt,Kt,vt,Ht,Ft=We.globalSetting,Lt=We.loading,zt=We.dispatch,Qt=We.practiceSetting,bn=We.shixunsDetail,Zt=We.taskData,$t=We.taskId,Zn=We.onEditRepCode,Fn=Object(w.a)(We,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail","taskData","taskId","onEditRepCode"]),Hn=!(Zt!=null&&Zt.is_last_game)&&((Zt==null?void 0:Zt.shixun.status)>0||(Zt==null||((ft=Zt.user)===null||ft===void 0)?void 0:ft.identity)<5),Yn=Object(g.useState)("1"),jn=Object(C.a)(Yn,2),or=jn[0],jr=jn[1],qt=Object(g.useState)("1"),wn=Object(C.a)(qt,2),Kr=wn[0],Li=wn[1],Mr=Object(g.useState)(!0),Qn=Object(C.a)(Mr,2),ge=Qn[0],V=Qn[1],J=Object(g.useState)({}),ie=Object(C.a)(J,2),Re=ie[0],he=ie[1],it=Object(g.useRef)(),Ut=Object(g.useState)(!0),Jt=Object(C.a)(Ut,2),an=Jt[0],Pt=Jt[1],cn=Object(g.useState)(["2","1"]),Rn=Object(C.a)(cn,2),Jn=Rn[0],ir=Rn[1],tr=Object(g.useState)([]),fr=Object(C.a)(tr,2),Dr=fr[0],Yi=fr[1],oi=Object(g.useRef)(),di=Object(O.a)(Object(O.a)({},Object(z.i)()),{},{taskId:$t}),_a=Object(g.useState)(!1),Si=Object(C.a)(_a,2),ga=Si[0],mo=Si[1],ao=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:s.a.createElement("span",null,s.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),s.a.createElement(x.a,{title:"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002"},s.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(g.useEffect)(function(){var ri,hi=Qt==null||((ri=Qt.sideBar)===null||ri===void 0)?void 0:ri.selectPath.split("/");ir(hi)},[Qt==null||((nt=Qt.sideBar)===null||nt===void 0)?void 0:nt.selectPath]);var yo=function(hi){hi.data==="compileResltDone"&&mo(!1)};Object(g.useEffect)(function(){return window.addEventListener("message",yo),function(){window.removeEventListener("message",yo)}},[]);var Ia=function(hi){(Re==null?void 0:Re.file_type)==="txt"&&(Re.content=hi,he(Object(O.a)({},Re)),Zn(hi))};Object(g.useEffect)(function(){var ri;console.log(Qt==null||((ri=Qt.sideBar)===null||ri===void 0)?void 0:ri.selectPath,"sideBar"),new Promise(function(){var hi=Object(u.a)(P.a.mark(function Mi(Nr,Ar){var fi,wr,vi,pr,ta,Qi,ea;return P.a.wrap(function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(!((Qt==null||((fi=Qt.sideBar)===null||fi===void 0)?void 0:fi.selectPath)!==""&&Qt!==null&&Qt!==void 0&&(wr=Qt.sideBar)!==null&&wr!==void 0&&wr.selectPath)){ca.next=5;break}return ca.next=3,Object(Z.h)($t,{path:Qt==null||((vi=Qt.sideBar)===null||vi===void 0)?void 0:vi.selectPath});case 3:if(pr=ca.sent,pr!=null&&pr.content||(pr==null?void 0:pr.content)=="")try{(pr==null?void 0:pr.file_type)==="txt"?(pr.content=window.decodeURIComponent(escape(window.atob((ta=pr.content)===null||ta===void 0?void 0:ta.content))),he(Object(O.a)({},pr))):(pr.content=(Qi=pr.content)===null||Qi===void 0?void 0:Qi.content,he(Object(O.a)({},pr)))}catch(qa){Re.content&&(pr.content=window.atob((ea=pr.content)===null||ea===void 0?void 0:ea.content)),he(Object(O.a)({},pr)),h.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}else zt({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return ca.stop()}},Mi)}));return function(Mi,Nr){return hi.apply(this,arguments)}}())},[Qt==null||((Dt=Qt.sideBar)===null||Dt===void 0)?void 0:Dt.selectPath]);var Za=s.a.createElement(d.a,{className:M.a.menu,onClick:function(hi){var Mi;!(bn!=null&&(Mi=bn.detail)!==null&&Mi!==void 0&&Mi.secret_repository)&&hi.key==="2"&&Li("1"),jr(hi.key),hi.key==="1"?Pt(!0):Pt(!1)}},s.a.createElement(d.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),ao.filter(function(ri){var hi,Mi;return!(bn!=null&&(hi=bn.detail)!==null&&hi!==void 0&&hi.init_repository)||bn!=null&&(Mi=bn.detail)!==null&&Mi!==void 0&&Mi.is_jupyter_lab?ri.id!=="2":ri}).map(function(ri,hi){return s.a.createElement(d.a.Item,{className:"leaveClick",key:ri.id},ri.name)})),Ri=function(){var ri=Object(u.a)(P.a.mark(function hi(){var Mi,Nr,Ar,fi,wr,vi;return P.a.wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:return mo(!0),ta.next=3,Object(Z.I)(Zt==null||((Mi=Zt.myshixun)===null||Mi===void 0)?void 0:Mi.identifier,Object(O.a)(Object(O.a)({path:Qt==null||((Nr=Qt.sideBar)===null||Nr===void 0)?void 0:Nr.selectPath},Re),{},{evaluate:0,game_id:Zt==null||((Ar=Zt.game)===null||Ar===void 0)?void 0:Ar.id}));case 3:vi=ta.sent,(fi=document.getElementById("latexIframeRef"))===null||fi===void 0||((wr=fi.contentWindow)===null||wr===void 0)||wr.postMessage("compile","*"),vi!=null&&vi.content&&zt({type:"practiceSetting/setSideBarTabs",payload:Object(O.a)(Object(O.a)({},Qt.sideBar),{},{confirmLeave:!1})});case 6:case"end":return ta.stop()}},hi)}));return function(){return ri.apply(this,arguments)}}();return s.a.createElement("div",{className:M.a.warehouse},s.a.createElement("div",{className:M.a.content},Kr==="1"&&s.a.createElement(s.a.Fragment,null,s.a.createElement("aside",{className:M.a.left,id:"latex-drawer",style:{width:ge?"36%":"0%"}},s.a.createElement(o.a,{spinning:!!Lt.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(M.a.loading," ").concat(M.a.bottom0)},s.a.createElement(fe,{taskData:Zt,params:di,setTreeData:Yi,treeData:Dr,activeKey:or,isRepository:an})),s.a.createElement("span",{onClick:function(){return V(!1)},className:"".concat(M.a.close," iconfont icon-quxiao")})),s.a.createElement("aside",{className:M.a.right,ref:oi},(Qt==null||((Kt=Qt.sideBar)===null||Kt===void 0)?void 0:Kt.selectPath)!==""&&s.a.createElement(s.a.Fragment,null,s.a.createElement(o.a,{spinning:!!Lt.effects["shixunsDetail/getFileContent"],wrapperClassName:M.a.loading},s.a.createElement("div",{className:M.a.filePathWrp},s.a.createElement(v.a,{align:"middle",className:"w100"},s.a.createElement(b.a,null,s.a.createElement("span",{onClick:function(){return V(!0)},className:"iconfont icon-daimacangku2 c-white current"})),s.a.createElement(b.a,{flex:"40px"},s.a.createElement("div",{className:M.a.line,style:{marginLeft:20}})),s.a.createElement(b.a,{className:M.a.filePath},Jn.map(function(ri,hi){return s.a.createElement("span",{className:"c-blue"},ri)})))),s.a.createElement("div",{className:Lt.effects["shixunsDetail/getFileContent"]?"hide":"show"},s.a.createElement(et.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute"},filename:Re.filename,type:Re.file_type==="office"?"download":Re.file_type,data:Re.content,monacoEditor:{value:Re.content,language:Re.language,onChange:function(hi){return Ia(hi)},options:{fontSize:14,minimap:{enabled:!1}}}}))),(Re==null?void 0:Re.file_type)==="txt"&&s.a.createElement("div",{className:M.a.footer},(Zt==null?void 0:Zt.prev_game)&&s.a.createElement("a",{href:"/tasks/".concat(Zt==null?void 0:Zt.prev_game).concat(location.search),style:{marginRight:"auto"},onClick:function(hi){hi.preventDefault(),setTimeout(function(){return window.location.href="/tasks/".concat(Zt==null?void 0:Zt.prev_game).concat(location.search)},300)}},"\u4E0A\u4E00\u5173"),s.a.createElement(i.a,{type:"primary",size:"large",loading:ga,onClick:Ri},"\u5F00\u59CB\u7F16\u8BD1"),Hn&&s.a.createElement("a",{href:"/tasks/".concat(Zt==null?void 0:Zt.next_game).concat(location.search),style:{marginLeft:"auto"},onClick:function(hi){var Mi,Nr;if(hi.preventDefault(),Zt!=null&&(Mi=Zt.shixun)!==null&&Mi!==void 0&&Mi.task_pass||(Zt==null?void 0:Zt.game.status)===2||(Zt==null||((Nr=Zt.user)===null||Nr===void 0)?void 0:Nr.identity)<5){setTimeout(function(){return window.location.href="/tasks/".concat(Zt==null?void 0:Zt.next_game).concat(location.search)},300);return}l.a.warning({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u6211\u77E5\u9053\u4E86",content:s.a.createElement("p",null,"\u8BE5\u5B9E\u9A8C\u9879\u76EE\u8BBE\u7F6E\u4E86\u4E0D\u5141\u8BB8\u8DF3\u5173\u3002\u901A\u8FC7\u5F53\u524D\u5173\u5361\u540E\uFF0C\u624D\u80FD\u8FDB\u5165\u4E0B\u4E00\u5173\u3002")})}},"\u4E0B\u4E00\u5173"))),(Qt==null||((vt=Qt.sideBar)===null||vt===void 0)?void 0:vt.selectPath)==""&&(bn==null||((Ht=bn.detail)===null||Ht===void 0)?void 0:Ht.init_repository)&&s.a.createElement("div",{className:M.a.empty},s.a.createElement("img",{src:Fe.j,width:"258"}),s.a.createElement("br",null),s.a.createElement("span",{className:"c-grey-c"},!!(Dr!=null&&Dr.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(Dr!=null&&Dr.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),Kr==="2"&&s.a.createElement("div",{className:M.a.commit},s.a.createElement(Ke,{isRepository:an}))))},ut=Object(X.a)(function(Ue){var We=Ue.loading,ft=Ue.globalSetting,nt=Ue.practiceSetting,Dt=Ue.shixunsDetail;return{globalSetting:ft,loading:We,practiceSetting:nt,shixunsDetail:Dt}})(bt),ot=W.default=function(Ue){var We=Ue.taskId,ft=Ue.taskData,nt=Ue.onEditRepCode,Dt=Object(g.useRef)(),Kt=Object(g.useRef)(),vt=Object(g.useMemo)(function(){if(ft){var Ht,Ft,Lt,zt,Qt,bn=ft==null||((Ht=ft.challenge)===null||Ht===void 0||((Ft=Ht.path)===null||Ft===void 0||((Lt=Ft.replace("\uFF1B",";"))===null||Lt===void 0)))?void 0:Lt.split(";")[0];return"https://latexjs.educoder.net/index.html?id=".concat(ft==null||((zt=ft.shixun)===null||zt===void 0)?void 0:zt.identifier,"&path=").concat(bn,"&taskId=").concat(We,"&myshixunId=").concat(ft==null||((Qt=ft.myshixun)===null||Qt===void 0)?void 0:Qt.identifier,"&token=").concat(Object(p.G)("_educoder_session"))}},[ft]);return s.a.createElement(v.a,{style:{height:"100vh"},ref:Kt},s.a.createElement(b.a,{flex:"1"},(ft==null?void 0:ft.shixun)&&s.a.createElement(ut,{taskId:We,taskData:ft,onEditRepCode:nt})),s.a.createElement(b.a,{flex:"1",className:a.a.wrap},s.a.createElement("iframe",{ref:Dt,id:"latexIframeRef",style:{width:"100%",border:"none",height:"100%"},src:vt}),s.a.createElement("span",{className:a.a.full,onClick:function(){Object(_.a)()?Object(_.b)():Object(_.d)(Kt.current)}},s.a.createElement("span",{className:"iconfont icon-quanping mr5 font12"}),"\u5168\u5C4F / \u9000\u51FA\u5168\u5C4F")))}},"4qgm":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"500L":function(j,W,y){"use strict";y.d(W,"a",function(){return E});var I=y("+L6B"),v=y("2/Rp"),T=y("2qtc"),b=y("kLXV"),g=y("9og8"),s=y("k1fw"),_=y("miYZ"),p=y("tsqr"),e=y("oBTY"),a=y("tJVT"),n=y("DZo9"),l=y("8z0m"),r=y("WmNS"),i=y.n(r),t=y("q1tI"),o=y.n(t),c=y("m3rI"),d=y("wzkS"),f=y("y5JW"),h=y("LtfV"),u=l.a.Dragger;function E(x){var O=[];return x&&x.length>0&&(O=x.map(function(C){return{uid:C.id,id:C.id,name:C.title+f.c+C.filesize,url:C.url,filesize:C.filesize,status:"done",response:{id:C.id}}})),O}W.b=function(x){var O=x.value,C=x.onChange,w=x.action,S=x.className,D=x.maxSize,R=D===void 0?150:D,P=x.title,N=P===void 0?"\u4E0A\u4F20\u9644\u4EF6":P,M=x.showRemoveModal,z=M===void 0?!1:M,X=x.accept,k=X===void 0?"":X,F=x.additionalText,U=x.isDragger,L=x.number,B=L===void 0?1e3:L,Z=x.aloneClear,re=Z===void 0?!1:Z,me=Object(t.useState)(!1),Ee=Object(a.a)(me,2),De=Ee[0],te=Ee[1],Ce=Object(t.useState)(O||[]),we=Object(a.a)(Ce,2),ce=we[0],le=we[1];Object(t.useEffect)(function(){O&&(le(Object(e.a)(O)),B===(O==null?void 0:O.length)&&te(!0))},[O]);var oe=function(){setTimeout(function(){ce.pop(),le(Object(e.a)(ce))},500)},xe={multiple:!0,disabled:De,accept:k,withCredentials:!0,fileList:ce,beforeUpload:function(Ne,de){var $=Ne.size/1024/1024;return ce.concat(de).length>B?(ce.pop(),le(Object(e.a)(ce)),p.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(B,"\u4E2A\u6587\u4EF6")),re?Promise.reject():(oe(),!1)):!0},action:w||"".concat(c.a.API_SERVER,"/api/attachments.json"),onChange:function(Ne){var de,$,Q=Object(e.a)(Ne.fileList);if(Ne.file.status==="done"&&((de=Ne.file)===null||de===void 0||(($=de.response)===null||$===void 0)?void 0:$.status)===-1){var Y,ue;p.b.error((Y=Ne.file)===null||Y===void 0||((ue=Y.response)===null||ue===void 0)?void 0:ue.message);return}Q.length>=B?te(!0):te(!1),le(Object(e.a)(Q)),Q=Q.map(function(ae){var be;if(ae!=null&&(be=ae.response)!==null&&be!==void 0&&be.id){var Ie;ae.url="/api/attachments/".concat(ae==null||((Ie=ae.response)===null||Ie===void 0)?void 0:Ie.id)}return ae.name.indexOf(f.c)===-1&&(ae.name="".concat(ae.name).concat(f.c).concat(Object(f.a)(ae.size))),Object(s.a)({},ae)}),console.log("info:",Ne),C(Q)},onRemove:function(){var se=Object(g.a)(i.a.mark(function de($){var Q;return i.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(Q=function(){var ae=Object(g.a)(i.a.mark(function be(){var Ie,pe;return i.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(Ie=$.response?$.response.id:$.id,!Ie){ve.next=8;break}return ve.next=4,Object(d.d)($.response?$.response.id:$.uid);case 4:return pe=ve.sent,ve.abrupt("return",pe);case 8:return ve.abrupt("return",!0);case 9:case"end":return ve.stop()}},be)}));return function(){return ae.apply(this,arguments)}}(),!z){ue.next=5;break}return ue.abrupt("return",new Promise(function(ae,be){b.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:o.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var Ie=Object(g.a)(i.a.mark(function Le(){var ve;return i.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Q();case 2:ve=$e.sent,p.b.success("\u5220\u9664\u6210\u529F"),ae(!0);case 5:case"end":return $e.stop()}},Le)}));function pe(){return Ie.apply(this,arguments)}return pe}(),onCancel:function(){return ae(!1)}})}));case 5:return ue.next=7,Q();case 7:return ue.abrupt("return",ue.sent);case 8:case"end":return ue.stop()}},de)}));function Ne(de){return se.apply(this,arguments)}return Ne}()};function q(se){se.preventDefault(),se.stopPropagation()}return o.a.createElement("div",{className:"multi-upload ".concat(S||"")},U&&o.a.createElement(u,xe,o.a.createElement("p",{className:"ant-upload-drag-icon"},o.a.createElement(h.a,null)),o.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",o.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",R,"MB)"," "),F),!U&&o.a.createElement(l.a,xe,o.a.createElement(v.a,{style:{width:"108px",height:"32px",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:o.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:De},N),o.a.createElement("span",{onClick:q,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",R,"MB)"," ")))}},"5D2P":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vlFpNAwMDV3Z2dp7JUM+7EG0lE0l+dHS089y5c4dkkjqAVycmJq4ma+0yZv7YQaEIkUjyAh4EwTAR+a6GiGg5BUGwg4i2uyrlkEsi7xL3s8wz88syAm8x89M5iLmoxpIP4348bRYkolEyxowBkA25S1sLQJbyHhfhUCaWvMT9+fPnx5h5cQrMuugRceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5DcX":function(j,W,y){j.exports={flex_box_center:"flex_box_center___ITCrt",flex_space_between:"flex_space_between___miKTU",flex_box_vertical_center:"flex_box_vertical_center___21Sc2",flex_box_center_end:"flex_box_center_end___3G7O1",flex_box_column:"flex_box_column___2UQvZ",menu:"menu___3WFLo",warehouse:"warehouse___2PwKB",header:"header___Sod9H",title:"title___1Y3oM",content:"content___1E7ip",left:"left___2pmQt",close:"close___37Pej",right:"right___1JM70",loading:"loading___2h7Lc",empty:"empty___2PqJB",tabs:"tabs___zn34y",line:"line___2Ft7K",footer:"footer___cQjHk",commit:"commit___1TgxV",blueLight:"blueLight___a6l-z",filePathWrp:"filePathWrp___104JD",filePath:"filePath___21Vqm",bottom0:"bottom0___3wcE2"}},"5GGG":function(j,W,y){j.exports={flex_box_center:"flex_box_center___jZegZ",flex_space_between:"flex_space_between___LWg4q",flex_box_vertical_center:"flex_box_vertical_center___29tJ6",flex_box_center_end:"flex_box_center_end___21Gx8",flex_box_column:"flex_box_column___1Vfub",commitWrap:"commitWrap___1Pjn4",wrap:"wrap___2rrrf",colorGray:"colorGray___qLOU5",content:"content___26EBx",itemTime:"itemTime___sQDA2",imageUrl:"imageUrl___29qPZ",blueLight:"blueLight___WsUcs",divider:"divider___1Yxuo",empty:"empty___1tN2T"}},"5VLF":function(j,W,y){"use strict";var I,v;function T(b,g,s){var _=function(p,e){return b.js_beautify(p,e)};return _.js=b.js_beautify,_.css=g.css_beautify,_.html=s.html_beautify,_.js_beautify=b.js_beautify,_.css_beautify=g.css_beautify,_.html_beautify=s.html_beautify,_}!(I=[y("6UM0"),y("TXwP"),y("psGv")],v=function(b,g,s){return T(b,g,s)}.apply(W,I),v!==void 0&&(j.exports=v))},"5Y4S":function(j,W,y){"use strict";y.d(W,"a",function(){return T});var I=y("MNsG");const v=I.b.performance&&typeof I.b.performance.now=="function";class T{constructor(b){this._highResolution=v&&b,this._startTime=this._now(),this._stopTime=-1}static create(b=!0){return new T(b)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?I.b.performance.now():Date.now()}}},"5hvy":function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("MlIO"))})(this,function(I){return function(v){var T=I,b=T.lib,g=b.WordArray,s=b.Hasher,_=T.x64,p=_.Word,e=T.algo,a=[],n=[],l=[];(function(){for(var t=1,o=0,c=0;c<24;c++){a[t+5*o]=(c+1)*(c+2)/2%64;var d=o%5,f=(2*t+3*o)%5;t=d,o=f}for(var t=0;t<5;t++)for(var o=0;o<5;o++)n[t+5*o]=o+(2*t+3*o)%5*5;for(var h=1,u=0;u<24;u++){for(var E=0,x=0,O=0;O<7;O++){if(h&1){var C=(1<<O)-1;C<32?x^=1<<C:E^=1<<C-32}h&128?h=h<<1^113:h<<=1}l[u]=p.create(E,x)}})();var r=[];(function(){for(var t=0;t<25;t++)r[t]=p.create()})();var i=e.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],o=0;o<25;o++)t[o]=new p.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,o){for(var c=this._state,d=this.blockSize/2,f=0;f<d;f++){var h=t[o+2*f],u=t[o+2*f+1];h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360;var E=c[f];E.high^=u,E.low^=h}for(var x=0;x<24;x++){for(var O=0;O<5;O++){for(var C=0,w=0,S=0;S<5;S++){var E=c[O+5*S];C^=E.high,w^=E.low}var D=r[O];D.high=C,D.low=w}for(var O=0;O<5;O++)for(var R=r[(O+4)%5],P=r[(O+1)%5],N=P.high,M=P.low,C=R.high^(N<<1|M>>>31),w=R.low^(M<<1|N>>>31),S=0;S<5;S++){var E=c[O+5*S];E.high^=C,E.low^=w}for(var z=1;z<25;z++){var C,w,E=c[z],X=E.high,k=E.low,F=a[z];F<32?(C=X<<F|k>>>32-F,w=k<<F|X>>>32-F):(C=k<<F-32|X>>>64-F,w=X<<F-32|k>>>64-F);var U=r[n[z]];U.high=C,U.low=w}var L=r[0],B=c[0];L.high=B.high,L.low=B.low;for(var O=0;O<5;O++)for(var S=0;S<5;S++){var z=O+5*S,E=c[z],Z=r[z],re=r[(O+1)%5+5*S],me=r[(O+2)%5+5*S];E.high=Z.high^~re.high&me.high,E.low=Z.low^~re.low&me.low}var E=c[0],Ee=l[x];E.high^=Ee.high,E.low^=Ee.low}},_doFinalize:function(){var t=this._data,o=t.words,c=this._nDataBytes*8,d=t.sigBytes*8,f=this.blockSize*32;o[d>>>5]|=1<<24-d%32,o[(v.ceil((d+1)/f)*f>>>5)-1]|=128,t.sigBytes=o.length*4,this._process();for(var h=this._state,u=this.cfg.outputLength/8,E=u/8,x=[],O=0;O<E;O++){var C=h[O],w=C.high,S=C.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,x.push(S),x.push(w)}return new g.init(x,u)},clone:function(){for(var t=s.clone.call(this),o=t._state=this._state.slice(0),c=0;c<25;c++)o[c]=o[c].clone();return t}});T.SHA3=s._createHelper(i),T.HmacSHA3=s._createHmacHelper(i)}(Math),I.SHA3})},"5nXd":function(j,W,y){var I=y("MFOe"),v=I.slice,T=I.pluck,b=I.each,g=I.bind,s=I.create,_=I.isList,p=I.isFunction,e=I.isObject;j.exports={createStore:l};var a={version:"2.0.12",enabled:!1,get:function(r,i){var t=this.storage.read(this._namespacePrefix+r);return this._deserialize(t,i)},set:function(r,i){return i===void 0?this.remove(r):(this.storage.write(this._namespacePrefix+r,this._serialize(i)),i)},remove:function(r){this.storage.remove(this._namespacePrefix+r)},each:function(r){var i=this;this.storage.each(function(t,o){r.call(i,i._deserialize(t),(o||"").replace(i._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(r){return this._namespacePrefix=="__storejs_"+r+"_"},createStore:function(){return l.apply(this,arguments)},addPlugin:function(r){this._addPlugin(r)},namespace:function(r){return l(this.storage,this.plugins,r)}};function n(){var r=typeof console=="undefined"?null:console;if(!r)return;var i=r.warn?r.warn:r.log;i.apply(r,arguments)}function l(r,i,t){t||(t=""),r&&!_(r)&&(r=[r]),i&&!_(i)&&(i=[i]);var o=t?"__storejs_"+t+"_":"",c=t?new RegExp("^"+o):null,d=/^[a-zA-Z0-9_\-]*$/;if(!d.test(t))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var f={_namespacePrefix:o,_namespaceRegexp:c,_testStorage:function(u){try{var E="__storejs__test__";u.write(E,E);var x=u.read(E)===E;return u.remove(E),x}catch(O){return!1}},_assignPluginFnProp:function(u,E){var x=this[E];this[E]=function(){var C=v(arguments,0),w=this;function S(){return x?(b(arguments,function(R,P){C[P]=R}),x.apply(w,C)):void 0}var D=[S].concat(C);return u.apply(w,D)}},_serialize:function(u){return JSON.stringify(u)},_deserialize:function(u,E){if(!u)return E;var x="";try{x=JSON.parse(u)}catch(O){x=u}return x!==void 0?x:E},_addStorage:function(u){if(this.enabled)return;this._testStorage(u)&&(this.storage=u,this.enabled=!0)},_addPlugin:function(u){var E=this;if(_(u)){b(u,function(C){E._addPlugin(C)});return}var x=T(this.plugins,function(C){return u===C});if(x)return;if(this.plugins.push(u),!p(u))throw new Error("Plugins must be function values that return objects");var O=u.call(this);if(!e(O))throw new Error("Plugins must return an object of function properties");b(O,function(C,w){if(!p(C))throw new Error("Bad plugin property: "+w+" from plugin "+u.name+". Plugins should only return functions.");E._assignPluginFnProp(C,w)})},addStorage:function(u){n("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(u)}},h=s(f,a,{plugins:[]});return h.raw={},b(h,function(u,E){p(u)&&(h.raw[E]=g(h,u))}),b(r,function(u){h._addStorage(u)}),b(i,function(u){h._addPlugin(u)}),h}},"6+eU":function(j,W,y){"use strict";y.d(W,"a",function(){return x});var I=y("wx14"),v=y("rePB"),T=y("VTBJ"),b=y("1OyB"),g=y("vuIU"),s=y("Ji7U"),_=y("LK+K"),p=y("q1tI"),e=y.n(p),a=y("TSYQ"),n=y.n(a),l=function(C){var w,S="".concat(C.rootPrefixCls,"-item"),D=n()(S,"".concat(S,"-").concat(C.page),(w={},Object(v.a)(w,"".concat(S,"-active"),C.active),Object(v.a)(w,C.className,!!C.className),Object(v.a)(w,"".concat(S,"-disabled"),!C.page),w)),R=function(){C.onClick(C.page)},P=function(M){C.onKeyPress(M,C.onClick,C.page)};return e.a.createElement("li",{title:C.showTitle?C.page:null,className:D,onClick:R,onKeyPress:P,tabIndex:"0"},C.itemRender(C.page,"page",e.a.createElement("a",{rel:"nofollow"},C.page)))},r=l,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},t=function(O){Object(s.a)(w,O);var C=Object(_.a)(w);function w(){var S;Object(b.a)(this,w);for(var D=arguments.length,R=new Array(D),P=0;P<D;P++)R[P]=arguments[P];return S=C.call.apply(C,[this].concat(R)),S.state={goInputText:""},S.buildOptionText=function(N){return"".concat(N," ").concat(S.props.locale.items_per_page)},S.changeSize=function(N){S.props.changeSize(Number(N))},S.handleChange=function(N){S.setState({goInputText:N.target.value})},S.handleBlur=function(N){var M=S.props,z=M.goButton,X=M.quickGo,k=M.rootPrefixCls,F=S.state.goInputText;if(z||F==="")return;if(N.relatedTarget&&(N.relatedTarget.className.indexOf("".concat(k,"-prev"))>=0||N.relatedTarget.className.indexOf("".concat(k,"-next"))>=0))return;S.setState({goInputText:""}),X(S.getValidValue())},S.go=function(N){var M=S.state.goInputText;if(M==="")return;(N.keyCode===i.ENTER||N.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(g.a)(w,[{key:"getValidValue",value:function(){var D=this.state,R=D.goInputText,P=D.current;return!R||isNaN(R)?P:Number(R)}},{key:"getPageSizeOptions",value:function(){var D=this.props,R=D.pageSize,P=D.pageSizeOptions;return P.some(function(N){return N.toString()===R.toString()})?P:P.concat([R.toString()]).sort(function(N,M){var z=isNaN(Number(N))?0:Number(N),X=isNaN(Number(M))?0:Number(M);return z-X})}},{key:"render",value:function(){var D=this,R=this.props,P=R.pageSize,N=R.locale,M=R.rootPrefixCls,z=R.changeSize,X=R.quickGo,k=R.goButton,F=R.selectComponentClass,U=R.buildOptionText,L=R.selectPrefixCls,B=R.disabled,Z=this.state.goInputText,re="".concat(M,"-options"),me=F,Ee=null,De=null,te=null;if(!z&&!X)return null;var Ce=this.getPageSizeOptions();if(z&&me){var we=Ce.map(function(ce,le){return e.a.createElement(me.Option,{key:le,value:ce.toString()},(U||D.buildOptionText)(ce))});Ee=e.a.createElement(me,{disabled:B,prefixCls:L,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(P||Ce[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},we)}return X&&(k&&(te=typeof k=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:B,className:"".concat(re,"-quick-jumper-button")},N.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},k)),De=e.a.createElement("div",{className:"".concat(re,"-quick-jumper")},N.jump_to,e.a.createElement("input",{disabled:B,type:"text",value:Z,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,te)),e.a.createElement("li",{className:"".concat(re)},Ee,De)}}]),w}(e.a.Component);t.defaultProps={pageSizeOptions:["10","20","50","100"]};var o=t,c=y("N2Kk");function d(){}function f(O){return typeof O=="number"&&isFinite(O)&&Math.floor(O)===O}function h(O,C,w){return w}function u(O,C,w){var S=typeof O=="undefined"?C.pageSize:O;return Math.floor((w.total-1)/S)+1}var E=function(O){Object(s.a)(w,O);var C=Object(_.a)(w);function w(S){var D;Object(b.a)(this,w),D=C.call(this,S),D.getJumpPrevPage=function(){return Math.max(1,D.state.current-(D.props.showLessItems?3:5))},D.getJumpNextPage=function(){return Math.min(u(void 0,D.state,D.props),D.state.current+(D.props.showLessItems?3:5))},D.getItemIcon=function(z,X){var k=D.props.prefixCls,F=z||e.a.createElement("button",{type:"button","aria-label":X,className:"".concat(k,"-item-link")});return typeof z=="function"&&(F=e.a.createElement(z,Object(T.a)({},D.props))),F},D.savePaginationNode=function(z){D.paginationNode=z},D.isValid=function(z){return f(z)&&z!==D.state.current},D.shouldDisplayQuickJumper=function(){var z=D.props,X=z.showQuickJumper,k=z.pageSize,F=z.total;return F<=k?!1:X},D.handleKeyDown=function(z){(z.keyCode===i.ARROW_UP||z.keyCode===i.ARROW_DOWN)&&z.preventDefault()},D.handleKeyUp=function(z){var X=D.getValidValue(z),k=D.state.currentInputValue;X!==k&&D.setState({currentInputValue:X}),z.keyCode===i.ENTER?D.handleChange(X):z.keyCode===i.ARROW_UP?D.handleChange(X-1):z.keyCode===i.ARROW_DOWN&&D.handleChange(X+1)},D.changePageSize=function(z){var X=D.state.current,k=u(z,D.state,D.props);X=X>k?k:X,k===0&&(X=D.state.current),typeof z=="number"&&("pageSize"in D.props||D.setState({pageSize:z}),"current"in D.props||D.setState({current:X,currentInputValue:X})),D.props.onShowSizeChange(X,z),"onChange"in D.props&&D.props.onChange&&D.props.onChange(X,z)},D.handleChange=function(z){var X=D.props.disabled,k=z;if(D.isValid(k)&&!X){var F=u(void 0,D.state,D.props);k>F?k=F:k<1&&(k=1),"current"in D.props||D.setState({current:k,currentInputValue:k});var U=D.state.pageSize;return D.props.onChange(k,U),k}return D.state.current},D.prev=function(){D.hasPrev()&&D.handleChange(D.state.current-1)},D.next=function(){D.hasNext()&&D.handleChange(D.state.current+1)},D.jumpPrev=function(){D.handleChange(D.getJumpPrevPage())},D.jumpNext=function(){D.handleChange(D.getJumpNextPage())},D.hasPrev=function(){return D.state.current>1},D.hasNext=function(){return D.state.current<u(void 0,D.state,D.props)},D.runIfEnter=function(z,X){if(z.key==="Enter"||z.charCode===13){for(var k=arguments.length,F=new Array(k>2?k-2:0),U=2;U<k;U++)F[U-2]=arguments[U];X.apply(void 0,F)}},D.runIfEnterPrev=function(z){D.runIfEnter(z,D.prev)},D.runIfEnterNext=function(z){D.runIfEnter(z,D.next)},D.runIfEnterJumpPrev=function(z){D.runIfEnter(z,D.jumpPrev)},D.runIfEnterJumpNext=function(z){D.runIfEnter(z,D.jumpNext)},D.handleGoTO=function(z){(z.keyCode===i.ENTER||z.type==="click")&&D.handleChange(D.state.currentInputValue)};var R=S.onChange!==d,P="current"in S;P&&!R&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var N=S.defaultCurrent;"current"in S&&(N=S.current);var M=S.defaultPageSize;return"pageSize"in S&&(M=S.pageSize),N=Math.min(N,u(M,void 0,S)),D.state={current:N,currentInputValue:N,pageSize:M},D}return Object(g.a)(w,[{key:"componentDidUpdate",value:function(D,R){var P=this.props.prefixCls;if(R.current!==this.state.current&&this.paginationNode){var N=this.paginationNode.querySelector(".".concat(P,"-item-").concat(R.current));N&&document.activeElement===N&&N.blur()}}},{key:"getValidValue",value:function(D){var R=D.target.value,P=u(void 0,this.state,this.props),N=this.state.currentInputValue,M;return R===""?M=R:isNaN(Number(R))?M=N:R>=P?M=P:M=Number(R),M}},{key:"getShowSizeChanger",value:function(){var D=this.props,R=D.showSizeChanger,P=D.total,N=D.totalBoundaryShowSizeChanger;return typeof R!="undefined"?R:P>N}},{key:"renderPrev",value:function(D){var R=this.props,P=R.prevIcon,N=R.itemRender,M=N(D,"prev",this.getItemIcon(P,"prev page")),z=!this.hasPrev();return Object(p.isValidElement)(M)?Object(p.cloneElement)(M,{disabled:z}):M}},{key:"renderNext",value:function(D){var R=this.props,P=R.nextIcon,N=R.itemRender,M=N(D,"next",this.getItemIcon(P,"next page")),z=!this.hasNext();return Object(p.isValidElement)(M)?Object(p.cloneElement)(M,{disabled:z}):M}},{key:"render",value:function(){var D=this,R=this.props,P=R.prefixCls,N=R.className,M=R.style,z=R.disabled,X=R.hideOnSinglePage,k=R.total,F=R.locale,U=R.showQuickJumper,L=R.showLessItems,B=R.showTitle,Z=R.showTotal,re=R.simple,me=R.itemRender,Ee=R.showPrevNextJumpers,De=R.jumpPrevIcon,te=R.jumpNextIcon,Ce=R.selectComponentClass,we=R.selectPrefixCls,ce=R.pageSizeOptions,le=this.state,oe=le.current,xe=le.pageSize,q=le.currentInputValue;if(X===!0&&k<=xe)return null;var se=u(void 0,this.state,this.props),Ne=[],de=null,$=null,Q=null,Y=null,ue=null,ae=U&&U.goButton,be=L?1:2,Ie=oe-1>0?oe-1:0,pe=oe+1<se?oe+1:se,Le=Object.keys(this.props).reduce(function(_e,Ae){return(Ae.substr(0,5)==="data-"||Ae.substr(0,5)==="aria-"||Ae==="role")&&(_e[Ae]=D.props[Ae]),_e},{});if(re)return ae&&(typeof ae=="boolean"?ue=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},F.jump_to_confirm):ue=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ae),ue=e.a.createElement("li",{title:B?"".concat(F.jump_to).concat(oe,"/").concat(se):null,className:"".concat(P,"-simple-pager")},ue)),e.a.createElement("ul",Object(I.a)({className:n()(P,"".concat(P,"-simple"),Object(v.a)({},"".concat(P,"-disabled"),z),N),style:M,ref:this.savePaginationNode},Le),e.a.createElement("li",{title:B?F.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:n()("".concat(P,"-prev"),Object(v.a)({},"".concat(P,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Ie)),e.a.createElement("li",{title:B?"".concat(oe,"/").concat(se):null,className:"".concat(P,"-simple-pager")},e.a.createElement("input",{type:"text",value:q,disabled:z,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(P,"-slash")},"/"),se),e.a.createElement("li",{title:B?F.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:n()("".concat(P,"-next"),Object(v.a)({},"".concat(P,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(pe)),ue);if(se<=3+be*2){var ve={locale:F,rootPrefixCls:P,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:B,itemRender:me};se||Ne.push(e.a.createElement(r,Object(I.a)({},ve,{key:"noPager",page:se,className:"".concat(P,"-disabled")})));for(var Xe=1;Xe<=se;Xe+=1){var $e=oe===Xe;Ne.push(e.a.createElement(r,Object(I.a)({},ve,{key:Xe,page:Xe,active:$e})))}}else{var Ge=L?F.prev_3:F.prev_5,Me=L?F.next_3:F.next_5;Ee&&(de=e.a.createElement("li",{title:B?Ge:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:n()("".concat(P,"-jump-prev"),Object(v.a)({},"".concat(P,"-jump-prev-custom-icon"),!!De))},me(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(De,"prev page"))),$=e.a.createElement("li",{title:B?Me:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:n()("".concat(P,"-jump-next"),Object(v.a)({},"".concat(P,"-jump-next-custom-icon"),!!te))},me(this.getJumpNextPage(),"jump-next",this.getItemIcon(te,"next page")))),Y=e.a.createElement(r,{locale:F,last:!0,rootPrefixCls:P,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:se,page:se,active:!1,showTitle:B,itemRender:me}),Q=e.a.createElement(r,{locale:F,rootPrefixCls:P,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:B,itemRender:me});var gt=Math.max(1,oe-be),Te=Math.min(oe+be,se);oe-1<=be&&(Te=1+be*2),se-oe<=be&&(gt=se-be*2);for(var Ye=gt;Ye<=Te;Ye+=1){var Ze=oe===Ye;Ne.push(e.a.createElement(r,{locale:F,rootPrefixCls:P,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ye,page:Ye,active:Ze,showTitle:B,itemRender:me}))}oe-1>=be*2&&oe!==1+2&&(Ne[0]=Object(p.cloneElement)(Ne[0],{className:"".concat(P,"-item-after-jump-prev")}),Ne.unshift(de)),se-oe>=be*2&&oe!==se-2&&(Ne[Ne.length-1]=Object(p.cloneElement)(Ne[Ne.length-1],{className:"".concat(P,"-item-before-jump-next")}),Ne.push($)),gt!==1&&Ne.unshift(Q),Te!==se&&Ne.push(Y)}var Ve=null;Z&&(Ve=e.a.createElement("li",{className:"".concat(P,"-total-text")},Z(k,[k===0?0:(oe-1)*xe+1,oe*xe>k?k:oe*xe])));var Fe=!this.hasPrev()||!se,Be=!this.hasNext()||!se;return e.a.createElement("ul",Object(I.a)({className:n()(P,N,Object(v.a)({},"".concat(P,"-disabled"),z)),style:M,unselectable:"unselectable",ref:this.savePaginationNode},Le),Ve,e.a.createElement("li",{title:B?F.prev_page:null,onClick:this.prev,tabIndex:Fe?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(P,"-prev"),Object(v.a)({},"".concat(P,"-disabled"),Fe)),"aria-disabled":Fe},this.renderPrev(Ie)),Ne,e.a.createElement("li",{title:B?F.next_page:null,onClick:this.next,tabIndex:Be?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(P,"-next"),Object(v.a)({},"".concat(P,"-disabled"),Be)),"aria-disabled":Be},this.renderNext(pe)),e.a.createElement(o,{disabled:z,locale:F,rootPrefixCls:P,selectComponentClass:Ce,selectPrefixCls:we,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:oe,pageSize:xe,pageSizeOptions:ce,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ae}))}}],[{key:"getDerivedStateFromProps",value:function(D,R){var P={};if("current"in D&&(P.current=D.current,D.current!==R.current&&(P.currentInputValue=P.current)),"pageSize"in D&&D.pageSize!==R.pageSize){var N=R.current,M=u(D.pageSize,R,D);N=N>M?M:N,"current"in D||(P.current=N,P.currentInputValue=N),P.pageSize=D.pageSize}return P}}]),w}(e.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:d,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:d,locale:c.a,style:{},itemRender:h,totalBoundaryShowSizeChanger:50};var x=E},"6/vW":function(j,W,y){"use strict";y.d(W,"b",function(){return _});var I=y("tJVT"),v=y("q1tI"),T=y.n(v),b=y("9VGf"),g=y("dhSg");function s(p){return p.toString().padStart(2,"0")}function _(p){var e=Math.floor(p/60),a=p%60,n=Math.floor(e/60);return"".concat(s(n),":").concat(s(e-n*60),":").concat(s(a))}W.a=function(p){var e=p.defaultTime,a=p.status,n=p.onUpdateCostTime,l=p.lastedGetTaskInfoTime,r=p.retentionTime,i=r===void 0?"":r,t=p.title,o=t===void 0?"":t,c=Object(v.useState)(e||0),d=Object(I.a)(c,2),f=d[0],h=d[1],u=Object(v.useRef)();return Object(v.useEffect)(function(){l&&(h(e),u.current=e)},[e,l]),Object(v.useEffect)(function(){if(l){var E=g.a.subscribe("update-cost-time",function(){a!==2&&n(u.current)});return E}},[l]),Object(b.a)(function(){i&&localStorage.setItem(i,String(f+1)),h(f+1),u.current=u.current+1},a===2?null:1e3),T.a.createElement("span",null,o?"".concat(o,"\uFF1A"):null,_(f))}},"6BzB":function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.shrinkBuf=I,W.arraySet=v,W.flattenChunks=T,W.Buf32=W.Buf16=W.Buf8=void 0;function I(_,p){return _.length===p?_:_.subarray?_.subarray(0,p):(_.length=p,_)}function v(_,p,e,a,n){if(p.subarray&&_.subarray){_.set(p.subarray(e,e+a),n);return}for(var l=0;l<a;l++)_[n+l]=p[e+l]}function T(_){var p,e,a,n,l,r;for(a=0,p=0,e=_.length;p<e;p++)a+=_[p].length;for(r=new Uint8Array(a),n=0,p=0,e=_.length;p<e;p++)l=_[p],r.set(l,n),n+=l.length;return r}var b=Uint8Array;W.Buf8=b;var g=Uint16Array;W.Buf16=g;var s=Int32Array;W.Buf32=s},"6Qwc":function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"};W.default=I},"6RRn":function(j,W,y){"use strict";var I=y("wCXF"),v=y("n6Qo");y.d(W,"b",function(){return v.a});var T=y("IBYe"),b=y("6eGT"),g=y("hW8S");y.d(W,"a",function(){return g.a}),W.c=I.b},"6UM0":function(j,W,y){var I,v;(function(){var T;(function(){"use strict";var g=[function(e,a,n){var l=n(1).Beautifier,r=n(5).Options;function i(t,o){var c=new l(t,o);return c.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new r}},function(e,a,n){var l=n(2).Output,r=n(3).Token,i=n(4),t=n(5).Options,o=n(7).Tokenizer,c=n(7).line_starters,d=n(7).positionable_operators,f=n(7).TOKEN;function h(L,B){return B.indexOf(L)!==-1}function u(L){return L.replace(/^\s+/g,"")}function E(L){for(var B={},Z=0;Z<L.length;Z++)B[L[Z].replace(/-/g,"_")]=L[Z];return B}function x(L,B){return L&&L.type===f.RESERVED&&L.text===B}function O(L,B){return L&&L.type===f.RESERVED&&h(L.text,B)}var C=["case","return","do","if","throw","else","await","break","continue","async"],w=["before-newline","after-newline","preserve-newline"],S=E(w),D=[S.before_newline,S.preserve_newline],R={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function P(L,B){if(B.multiline_frame||B.mode===R.ForInitializer||B.mode===R.Conditional)return;L.remove_indent(B.start_line_index)}function N(L){L=L.replace(i.allLineBreaks,`
`);for(var B=[],Z=L.indexOf(`
`);Z!==-1;)B.push(L.substring(0,Z)),L=L.substring(Z+1),Z=L.indexOf(`
`);return L.length&&B.push(L),B}function M(L){return L===R.ArrayLiteral}function z(L){return h(L,[R.Expression,R.ForInitializer,R.Conditional])}function X(L,B){for(var Z=0;Z<L.length;Z++){var re=L[Z].trim();if(re.charAt(0)!==B)return!1}return!0}function k(L,B){for(var Z=0,re=L.length,me;Z<re;Z++)if(me=L[Z],me&&me.indexOf(B)!==0)return!1;return!0}function F(L,B){B=B||{},this._source_text=L||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new t(B)}F.prototype.create_flags=function(L,B){var Z=0;L&&(Z=L.indentation_level,!this._output.just_added_newline()&&L.line_indent_level>Z&&(Z=L.line_indent_level));var re={mode:B,parent:L,last_token:L?L.last_token:new r(f.START_BLOCK,""),last_word:L?L.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:Z,alignment:0,line_indent_level:L?L.line_indent_level:Z,start_line_index:this._output.get_line_number(),ternary_depth:0};return re},F.prototype._reset=function(L){var B=L.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new l(this._options,B),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(R.BlockStatement);var Z=new o(L,this._options);return this._tokens=Z.tokenize(),L},F.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L,B=this._reset(this._source_text),Z=this._options.eol;this._options.eol==="auto"&&(Z=`
`,B&&i.lineBreak.test(B||"")&&(Z=B.match(i.lineBreak)[0]));for(var re=this._tokens.next();re;)this.handle_token(re),this._last_last_text=this._flags.last_token.text,this._flags.last_token=re,re=this._tokens.next();return L=this._output.get_code(Z),L},F.prototype.handle_token=function(L,B){L.type===f.START_EXPR?this.handle_start_expr(L):L.type===f.END_EXPR?this.handle_end_expr(L):L.type===f.START_BLOCK?this.handle_start_block(L):L.type===f.END_BLOCK?this.handle_end_block(L):L.type===f.WORD?this.handle_word(L):L.type===f.RESERVED?this.handle_word(L):L.type===f.SEMICOLON?this.handle_semicolon(L):L.type===f.STRING?this.handle_string(L):L.type===f.EQUALS?this.handle_equals(L):L.type===f.OPERATOR?this.handle_operator(L):L.type===f.COMMA?this.handle_comma(L):L.type===f.BLOCK_COMMENT?this.handle_block_comment(L,B):L.type===f.COMMENT?this.handle_comment(L,B):L.type===f.DOT?this.handle_dot(L):L.type===f.EOF?this.handle_eof(L):L.type===f.UNKNOWN?this.handle_unknown(L,B):this.handle_unknown(L,B)},F.prototype.handle_whitespace_and_comments=function(L,B){var Z=L.newlines,re=this._options.keep_array_indentation&&M(this._flags.mode);if(L.comments_before)for(var me=L.comments_before.next();me;)this.handle_whitespace_and_comments(me,B),this.handle_token(me,B),me=L.comments_before.next();if(re)for(var Ee=0;Ee<Z;Ee+=1)this.print_newline(Ee>0,B);else if(this._options.max_preserve_newlines&&Z>this._options.max_preserve_newlines&&(Z=this._options.max_preserve_newlines),this._options.preserve_newlines&&Z>1){this.print_newline(!1,B);for(var De=1;De<Z;De+=1)this.print_newline(!0,B)}};var U=["async","break","continue","return","throw","yield"];F.prototype.allow_wrap_or_preserved_newline=function(L,B){if(B=B===void 0?!1:B,this._output.just_added_newline())return;var Z=this._options.preserve_newlines&&L.newlines||B,re=h(this._flags.last_token.text,d)||h(L.text,d);if(re){var me=h(this._flags.last_token.text,d)&&h(this._options.operator_position,D)||h(L.text,d);Z=Z&&me}if(Z)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(O(this._flags.last_token,U))return;this._output.set_wrap_point()}},F.prototype.print_newline=function(L,B){if(!B&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==f.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var Z=this._tokens.peek();this._flags.mode===R.Statement&&!(this._flags.if_block&&x(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(L)&&(this._flags.multiline_frame=!0)},F.prototype.print_token_line_indentation=function(L){this._output.just_added_newline()&&(this._options.keep_array_indentation&&L.newlines&&(L.text==="["||M(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(L.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},F.prototype.print_token=function(L){if(this._output.raw){this._output.add_raw_token(L);return}if(this._options.comma_first&&L.previous&&L.previous.type===f.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var B=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(B),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(L),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(L),this._output.non_breaking_space=!0,this._output.add_token(L.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},F.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},F.prototype.set_mode=function(L){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,L),this._flags=this.create_flags(this._previous_flags,L),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===R.Statement&&P(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},F.prototype.start_of_object_property=function(){return this._flags.parent.mode===R.ObjectLiteral&&this._flags.mode===R.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"]))},F.prototype.start_of_statement=function(L){var B=!1;return B=B||O(this._flags.last_token,["var","let","const"])&&L.type===f.WORD,B=B||x(this._flags.last_token,"do"),B=B||!(this._flags.parent.mode===R.ObjectLiteral&&this._flags.mode===R.Statement)&&O(this._flags.last_token,U)&&!L.newlines,B=B||x(this._flags.last_token,"else")&&!(x(L,"if")&&!L.comments_before),B=B||this._flags.last_token.type===f.END_EXPR&&(this._previous_flags.mode===R.ForInitializer||this._previous_flags.mode===R.Conditional),B=B||this._flags.last_token.type===f.WORD&&this._flags.mode===R.BlockStatement&&!this._flags.in_case&&!(L.text==="--"||L.text==="++")&&this._last_last_text!=="function"&&L.type!==f.WORD&&L.type!==f.RESERVED,B=B||this._flags.mode===R.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"])),B?(this.set_mode(R.Statement),this.indent(),this.handle_whitespace_and_comments(L,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L,O(L,["do","for","if","while"])),!0):!1},F.prototype.handle_start_expr=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L);var B=R.Expression;if(L.text==="["){if(this._flags.last_token.type===f.WORD||this._flags.last_token.text===")"){O(this._flags.last_token,c)&&(this._output.space_before_token=!0),this.print_token(L),this.set_mode(B),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}B=R.ArrayLiteral,M(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),h(this._flags.last_token.type,[f.START_EXPR,f.END_EXPR,f.WORD,f.OPERATOR,f.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===f.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,B=R.ForInitializer):h(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,B=R.Conditional):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&L.whitespace_before===""?this._output.space_before_token=!1:(h(this._flags.last_token.text,c)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===f.EQUALS||this._flags.last_token.type===f.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L);else if(this._flags.last_token.type===f.WORD){this._output.space_before_token=!1;var Z=this._tokens.peek(-3);if(this._options.space_after_named_function&&Z){var re=this._tokens.peek(-4);O(Z,["async","function"])||Z.text==="*"&&O(re,["async","function"])?this._output.space_before_token=!0:this._flags.mode===R.ObjectLiteral?(Z.text==="{"||Z.text===","||Z.text==="*"&&(re.text==="{"||re.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(L);(this._flags.last_token.type===f.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(h(this._last_last_text,["function","yield"])||this._flags.mode===R.ObjectLiteral&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===f.START_BLOCK?this.print_newline():(this._flags.last_token.type===f.END_EXPR||this._flags.last_token.type===f.START_EXPR||this._flags.last_token.type===f.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===f.COMMA)&&this.allow_wrap_or_preserved_newline(L,L.newlines),this.print_token(L),this.set_mode(B),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},F.prototype.handle_end_expr=function(L){for(;this._flags.mode===R.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(L,L.text==="]"&&M(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===f.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(L),this.restore_mode(),P(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===R.Conditional&&(this._previous_flags.mode=R.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},F.prototype.handle_start_block=function(L){this.handle_whitespace_and_comments(L);var B=this._tokens.peek(),Z=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===f.END_EXPR?(this.set_mode(R.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(R.BlockStatement):Z&&(h(Z.text,[":",","])&&h(B.type,[f.STRING,f.WORD,f.RESERVED])||h(B.text,["get","set","..."])&&h(Z.type,[f.WORD,f.RESERVED]))?h(this._last_last_text,["class","interface"])&&!h(Z.text,[":",","])?this.set_mode(R.BlockStatement):this.set_mode(R.ObjectLiteral):this._flags.last_token.type===f.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(R.BlockStatement):h(this._flags.last_token.type,[f.EQUALS,f.START_EXPR,f.COMMA,f.OPERATOR])||O(this._flags.last_token,["return","throw","import","default"])?this.set_mode(R.ObjectLiteral):this.set_mode(R.BlockStatement),this._flags.last_token&&(O(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var re=!B.comments_before&&B.text==="}",me=re&&this._flags.last_word==="function"&&this._flags.last_token.type===f.END_EXPR;if(this._options.brace_preserve_inline){var Ee=0,De=null;this._flags.inline_frame=!0;do if(Ee+=1,De=this._tokens.peek(Ee-1),De.newlines){this._flags.inline_frame=!1;break}while(De.type!==f.EOF&&!(De.type===f.END_BLOCK&&De.opened===L))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&L.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==f.OPERATOR&&(me||this._flags.last_token.type===f.EQUALS||O(this._flags.last_token,C)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(M(this._previous_flags.mode)&&(this._flags.last_token.type===f.START_EXPR||this._flags.last_token.type===f.COMMA)&&((this._flags.last_token.type===f.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(L),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==f.OPERATOR&&this._flags.last_token.type!==f.START_EXPR&&(this._flags.last_token.type===f.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(L),this.indent(),!re&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},F.prototype.handle_end_block=function(L){for(this.handle_whitespace_and_comments(L);this._flags.mode===R.Statement;)this.restore_mode();var B=this._flags.last_token.type===f.START_BLOCK;this._flags.inline_frame&&!B?this._output.space_before_token=!0:this._options.brace_style==="expand"?B||this.print_newline():B||(M(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(L)},F.prototype.handle_word=function(L){if(L.type===f.RESERVED){if(h(L.text,["set","get"])&&this._flags.mode!==R.ObjectLiteral)L.type=f.WORD;else if(L.text==="import"&&h(this._tokens.peek().text,["(","."]))L.type=f.WORD;else if(h(L.text,["as","from"])&&!this._flags.import_block)L.type=f.WORD;else if(this._flags.mode===R.ObjectLiteral){var B=this._tokens.peek();B.text===":"&&(L.type=f.WORD)}}if(this.start_of_statement(L)?O(this._flags.last_token,["var","let","const"])&&L.type===f.WORD&&(this._flags.declaration_statement=!0):L.newlines&&!z(this._flags.mode)&&(this._flags.last_token.type!==f.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==f.EQUALS&&(this._options.preserve_newlines||!O(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(L),this.print_newline()):this.handle_whitespace_and_comments(L),this._flags.do_block&&!this._flags.do_while)if(x(L,"while")){this._output.space_before_token=!0,this.print_token(L),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&x(L,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===R.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&O(L,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(L),this._flags.in_case=!0;return}if((this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.START_EXPR||this._flags.last_token.type===f.EQUALS||this._flags.last_token.type===f.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L)),x(L,"function")){(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(h(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===f.OPERATOR))&&(!this._output.just_added_blankline()&&!L.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD?O(this._flags.last_token,["get","set","new","export"])||O(this._flags.last_token,U)?this._output.space_before_token=!0:x(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===f.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(z(this._flags.mode)||M(this._flags.mode))||this.print_newline(),this.print_token(L),this._flags.last_word=L.text;return}var Z="NONE";if(this._flags.last_token.type===f.END_BLOCK?this._previous_flags.inline_frame?Z="SPACE":O(L,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&L.newlines?Z="NEWLINE":(Z="SPACE",this._output.space_before_token=!0):Z="NEWLINE":this._flags.last_token.type===f.SEMICOLON&&this._flags.mode===R.BlockStatement?Z="NEWLINE":this._flags.last_token.type===f.SEMICOLON&&z(this._flags.mode)?Z="SPACE":this._flags.last_token.type===f.STRING?Z="NEWLINE":this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD||this._flags.last_token.text==="*"&&(h(this._last_last_text,["function","yield"])||this._flags.mode===R.ObjectLiteral&&h(this._last_last_text,["{",","]))?Z="SPACE":this._flags.last_token.type===f.START_BLOCK?this._flags.inline_frame?Z="SPACE":Z="NEWLINE":this._flags.last_token.type===f.END_EXPR&&(this._output.space_before_token=!0,Z="NEWLINE"),O(L,c)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Z="SPACE":Z="NEWLINE"),O(L,["else","catch","finally"]))if((!(this._flags.last_token.type===f.END_BLOCK&&this._previous_flags.mode===R.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&L.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var re=this._output.current_line;re.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Z==="NEWLINE"?O(this._flags.last_token,C)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&O(L,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==f.END_EXPR?(this._flags.last_token.type!==f.START_EXPR||!O(L,["var","let","const"]))&&this._flags.last_token.text!==":"&&(x(L,"if")&&x(L.previous,"else")?this._output.space_before_token=!0:this.print_newline()):O(L,c)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&M(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Z==="SPACE"&&(this._output.space_before_token=!0);L.previous&&(L.previous.type===f.WORD||L.previous.type===f.RESERVED)&&(this._output.space_before_token=!0),this.print_token(L),this._flags.last_word=L.text,L.type===f.RESERVED&&(L.text==="do"?this._flags.do_block=!0:L.text==="if"?this._flags.if_block=!0:L.text==="import"?this._flags.import_block=!0:this._flags.import_block&&x(L,"from")&&(this._flags.import_block=!1))},F.prototype.handle_semicolon=function(L){this.start_of_statement(L)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(L);for(var B=this._tokens.peek();this._flags.mode===R.Statement&&!(this._flags.if_block&&x(B,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(L)},F.prototype.handle_string=function(L){L.text.startsWith("`")&&L.newlines===0&&L.whitespace_before===""&&(L.previous.text===")"||this._flags.last_token.type===f.WORD)||(this.start_of_statement(L)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(L),this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.START_EXPR||this._flags.last_token.type===f.EQUALS||this._flags.last_token.type===f.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L):L.text.startsWith("`")&&this._flags.last_token.type===f.END_EXPR&&(L.previous.text==="]"||L.previous.text===")")&&L.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(L)},F.prototype.handle_equals=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(L),this._output.space_before_token=!0},F.prototype.handle_comma=function(L){this.handle_whitespace_and_comments(L,!0),this.print_token(L),this._output.space_before_token=!0,this._flags.declaration_statement?(z(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(L)):this._flags.mode===R.ObjectLiteral||this._flags.mode===R.Statement&&this._flags.parent.mode===R.ObjectLiteral?(this._flags.mode===R.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(L)},F.prototype.handle_operator=function(L){var B=L.text==="*"&&(O(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[f.START_BLOCK,f.COMMA,f.END_BLOCK,f.SEMICOLON])),Z=h(L.text,["-","+"])&&(h(this._flags.last_token.type,[f.START_BLOCK,f.START_EXPR,f.EQUALS,f.OPERATOR])||h(this._flags.last_token.text,c)||this._flags.last_token.text===",");if(!this.start_of_statement(L)){var re=!B;this.handle_whitespace_and_comments(L,re)}if(L.text==="*"&&this._flags.last_token.type===f.DOT){this.print_token(L);return}if(L.text==="::"){this.print_token(L);return}if(this._flags.last_token.type===f.OPERATOR&&h(this._options.operator_position,D)&&this.allow_wrap_or_preserved_newline(L),L.text===":"&&this._flags.in_case){this.print_token(L),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==f.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var me=!0,Ee=!0,De=!1;if(L.text===":"?this._flags.ternary_depth===0?me=!1:(this._flags.ternary_depth-=1,De=!0):L.text==="?"&&(this._flags.ternary_depth+=1),!Z&&!B&&this._options.preserve_newlines&&h(L.text,d)){var te=L.text===":",Ce=te&&De,we=te&&!De;switch(this._options.operator_position){case S.before_newline:this._output.space_before_token=!we,this.print_token(L),(!te||Ce)&&this.allow_wrap_or_preserved_newline(L),this._output.space_before_token=!0;return;case S.after_newline:this._output.space_before_token=!0,!te||Ce?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(L):this._output.space_before_token=!1,this.print_token(L),this._output.space_before_token=!0;return;case S.preserve_newline:we||this.allow_wrap_or_preserved_newline(L),me=!(this._output.just_added_newline()||we),this._output.space_before_token=me,this.print_token(L),this._output.space_before_token=!0;return}}if(B){this.allow_wrap_or_preserved_newline(L),me=!1;var ce=this._tokens.peek();Ee=ce&&h(ce.type,[f.WORD,f.RESERVED])}else if(L.text==="...")this.allow_wrap_or_preserved_newline(L),me=this._flags.last_token.type===f.START_BLOCK,Ee=!1;else if(h(L.text,["--","++","!","~"])||Z){if((this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.START_EXPR)&&this.allow_wrap_or_preserved_newline(L),me=!1,Ee=!1,L.newlines&&(L.text==="--"||L.text==="++"||L.text==="~")){var le=O(this._flags.last_token,C)&&L.newlines;le&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(le,!0)}this._flags.last_token.text===";"&&z(this._flags.mode)&&(me=!0),this._flags.last_token.type===f.RESERVED?me=!0:this._flags.last_token.type===f.END_EXPR?me=!(this._flags.last_token.text==="]"&&(L.text==="--"||L.text==="++")):this._flags.last_token.type===f.OPERATOR&&(me=h(L.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(L.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(Ee=!0)),(this._flags.mode===R.BlockStatement&&!this._flags.inline_frame||this._flags.mode===R.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||me,this.print_token(L),this._output.space_before_token=Ee},F.prototype.handle_block_comment=function(L,B){if(this._output.raw){this._output.add_raw_token(L),L.directives&&L.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(L.directives){this.print_newline(!1,B),this.print_token(L),L.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(L.text)&&!L.newlines){this._output.space_before_token=!0,this.print_token(L),this._output.space_before_token=!0;return}else this.print_block_commment(L,B)},F.prototype.print_block_commment=function(L,B){var Z=N(L.text),re,me=!1,Ee=!1,De=L.whitespace_before,te=De.length;if(this.print_newline(!1,B),this.print_token_line_indentation(L),this._output.add_token(Z[0]),this.print_newline(!1,B),Z.length>1){for(Z=Z.slice(1),me=X(Z,"*"),Ee=k(Z,De),me&&(this._flags.alignment=1),re=0;re<Z.length;re++)me?(this.print_token_line_indentation(L),this._output.add_token(u(Z[re]))):Ee&&Z[re]?(this.print_token_line_indentation(L),this._output.add_token(Z[re].substring(te))):(this._output.current_line.set_indent(-1),this._output.add_token(Z[re])),this.print_newline(!1,B);this._flags.alignment=0}},F.prototype.handle_comment=function(L,B){L.newlines?this.print_newline(!1,B):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(L),this.print_newline(!1,B)},F.prototype.handle_dot=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),O(this._flags.last_token,C)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(L,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(L)},F.prototype.handle_unknown=function(L,B){this.print_token(L),L.text[L.text.length-1]===`
`&&this.print_newline(!1,B)},F.prototype.handle_eof=function(L){for(;this._flags.mode===R.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L)},e.exports.Beautifier=F},function(e){function a(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var r=new a(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},a.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},a.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},a.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
`);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},a.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function n(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}n.prototype.get_indent_size=function(r,i){var t=this.__base_string_length;return i=i||0,r<0&&(t=0),t+=r*this.__indent_size,t+=i,t},n.prototype.get_indent_string=function(r,i){var t=this.__base_string;return i=i||0,r<0&&(r=0,t=""),i+=r*this.__indent_size,this.__ensure_cache(i),t+=this.__cache[i],t},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,i=0,t="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,t=new Array(i+1).join(this.__indent_string)),r&&(t+=new Array(r+1).join(" ")),this.__cache.push(t)};function l(r,i){this.__indent_cache=new n(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},l.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var t=this.__lines.join(`
`);return r!==`
`&&(t=t.replace(/[\n]/g,r)),t},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(r,i){for(var t=this.__lines.length-2;t>=0;){var o=this.__lines[t];if(o.is_empty())break;if(o.item(0).indexOf(r)!==0&&o.item(-1)!==i){this.__lines.splice(t+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}t--}},e.exports.Output=l},function(e){function a(n,l,r,i){this.type=n,this.text=l,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=a},function(e,a){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",l="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\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-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\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\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\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\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",t="(?:\\\\u[0-9a-fA-F]{4}|["+n+r+"])",o="(?:\\\\u[0-9a-fA-F]{4}|["+l+r+i+"])*";a.identifier=new RegExp(t+o,"g"),a.identifierStart=new RegExp(t),a.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+l+r+i+"])+");var c=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;a.newline=/[\n\r\u2028\u2029]/,a.lineBreak=new RegExp(`\r
|`+a.newline.source),a.allLineBreaks=new RegExp(a.lineBreak.source,"g")},function(e,a,n){var l=n(6).Options,r=["before-newline","after-newline","preserve-newline"];function i(t){l.call(this,t,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<c.length;d++)c[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=c[d];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",r),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}i.prototype=new l,e.exports.Options=i},function(e){function a(r,i){this.raw_options=n(r,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}a.prototype._get_array=function(r,i){var t=this.raw_options[r],o=i||[];return typeof t=="object"?t!==null&&typeof t.concat=="function"&&(o=t.concat()):typeof t=="string"&&(o=t.split(/[^a-zA-Z0-9_\/\-]+/)),o},a.prototype._get_boolean=function(r,i){var t=this.raw_options[r],o=t===void 0?!!i:!!t;return o},a.prototype._get_characters=function(r,i){var t=this.raw_options[r],o=i||"";return typeof t=="string"&&(o=t.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),o},a.prototype._get_number=function(r,i){var t=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var o=parseInt(t,10);return isNaN(o)&&(o=i),o},a.prototype._get_selection=function(r,i,t){var o=this._get_selection_list(r,i,t);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return o[0]},a.prototype._get_selection_list=function(r,i,t){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(t=t||[i[0]],!this._is_valid_selection(t,i))throw new Error("Invalid Default Value!");var o=this._get_array(r,t);if(!this._is_valid_selection(o,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return o},a.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(t){return i.indexOf(t)===-1})};function n(r,i){var t={};r=l(r);var o;for(o in r)o!==i&&(t[o]=r[o]);if(i&&r[i])for(o in r[i])t[o]=r[i][o];return t}function l(r){var i={},t;for(t in r){var o=t.replace(/-/g,"_");i[o]=r[t]}return i}e.exports.Options=a,e.exports.normalizeOpts=l,e.exports.mergeOpts=n},function(e,a,n){var l=n(8).InputScanner,r=n(9).Tokenizer,i=n(9).TOKEN,t=n(13).Directives,o=n(4),c=n(12).Pattern,d=n(14).TemplatablePattern;function f(X,k){return k.indexOf(X)!==-1}var h={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},u=new t(/\/\*/,/\*\//),E=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,x=/[0-9]/,O=/[^\d\.]/,C=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),w=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";w=w.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),w="\\?\\.(?!\\d) "+w,w=w.replace(/ /g,"|");var S=new RegExp(w),D="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),R=D.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),P=new RegExp("^(?:"+R.join("|")+")$"),N,M=function(X,k){r.call(this,X,k),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var F=new c(this._input),U=new d(this._input).read_options(this._options);this.__patterns={template:U,identifier:U.starting_with(o.identifier).matching(o.identifierMatch),number:F.matching(E),punct:F.matching(S),comment:F.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:F.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:F.matching(/<!--/),html_comment_end:F.matching(/-->/),include:F.starting_with(/#include/).until_after(o.lineBreak),shebang:F.starting_with(/#!/).until_after(o.lineBreak),xml:F.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:U.until(/['\\\n\r\u2028\u2029]/),double_quote:U.until(/["\\\n\r\u2028\u2029]/),template_text:U.until(/[`\\$]/),template_expression:U.until(/[`}\\]/)}};M.prototype=new r,M.prototype._is_comment=function(X){return X.type===h.COMMENT||X.type===h.BLOCK_COMMENT||X.type===h.UNKNOWN},M.prototype._is_opening=function(X){return X.type===h.START_BLOCK||X.type===h.START_EXPR},M.prototype._is_closing=function(X,k){return(X.type===h.END_BLOCK||X.type===h.END_EXPR)&&k&&(X.text==="]"&&k.text==="["||X.text===")"&&k.text==="("||X.text==="}"&&k.text==="{")},M.prototype._reset=function(){N=!1},M.prototype._get_next_token=function(X,k){var F=null;this._readWhitespace();var U=this._input.peek();return U===null?this._create_token(h.EOF,""):(F=F||this._read_non_javascript(U),F=F||this._read_string(U),F=F||this._read_word(X),F=F||this._read_singles(U),F=F||this._read_comment(U),F=F||this._read_regexp(U,X),F=F||this._read_xml(U,X),F=F||this._read_punctuation(),F=F||this._create_token(h.UNKNOWN,this._input.next()),F)},M.prototype._read_word=function(X){var k;if(k=this.__patterns.identifier.read(),k!=="")return k=k.replace(o.allLineBreaks,`
`),!(X.type===h.DOT||X.type===h.RESERVED&&(X.text==="set"||X.text==="get"))&&P.test(k)?(k==="in"||k==="of")&&(X.type===h.WORD||X.type===h.STRING)?this._create_token(h.OPERATOR,k):this._create_token(h.RESERVED,k):this._create_token(h.WORD,k);if(k=this.__patterns.number.read(),k!=="")return this._create_token(h.WORD,k)},M.prototype._read_singles=function(X){var k=null;return X==="("||X==="["?k=this._create_token(h.START_EXPR,X):X===")"||X==="]"?k=this._create_token(h.END_EXPR,X):X==="{"?k=this._create_token(h.START_BLOCK,X):X==="}"?k=this._create_token(h.END_BLOCK,X):X===";"?k=this._create_token(h.SEMICOLON,X):X==="."&&O.test(this._input.peek(1))?k=this._create_token(h.DOT,X):X===","&&(k=this._create_token(h.COMMA,X)),k&&this._input.next(),k},M.prototype._read_punctuation=function(){var X=this.__patterns.punct.read();if(X!=="")return X==="="?this._create_token(h.EQUALS,X):X==="?."?this._create_token(h.DOT,X):this._create_token(h.OPERATOR,X)},M.prototype._read_non_javascript=function(X){var k="";if(X==="#"){if(this._is_first_token()&&(k=this.__patterns.shebang.read(),k))return this._create_token(h.UNKNOWN,k.trim()+`
`);if(k=this.__patterns.include.read(),k)return this._create_token(h.UNKNOWN,k.trim()+`
`);X=this._input.next();var F="#";if(this._input.hasNext()&&this._input.testChar(x)){do X=this._input.next(),F+=X;while(this._input.hasNext()&&X!=="#"&&X!=="=");return X==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(F+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(F+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,F)}this._input.back()}else if(X==="<"&&this._is_first_token()){if(k=this.__patterns.html_comment_start.read(),k){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)k+=this._input.next();return N=!0,this._create_token(h.COMMENT,k)}}else if(N&&X==="-"&&(k=this.__patterns.html_comment_end.read(),k))return N=!1,this._create_token(h.COMMENT,k);return null},M.prototype._read_comment=function(X){var k=null;if(X==="/"){var F="";if(this._input.peek(1)==="*"){F=this.__patterns.block_comment.read();var U=u.get_directives(F);U&&U.ignore==="start"&&(F+=u.readIgnored(this._input)),F=F.replace(o.allLineBreaks,`
`),k=this._create_token(h.BLOCK_COMMENT,F),k.directives=U}else this._input.peek(1)==="/"&&(F=this.__patterns.comment.read(),k=this._create_token(h.COMMENT,F))}return k},M.prototype._read_string=function(X){if(X==="`"||X==="'"||X==='"'){var k=this._input.next();return this.has_char_escapes=!1,X==="`"?k+=this._read_string_recursive("`",!0,"${"):k+=this._read_string_recursive(X),this.has_char_escapes&&this._options.unescape_strings&&(k=z(k)),this._input.peek()===X&&(k+=this._input.next()),k=k.replace(o.allLineBreaks,`
`),this._create_token(h.STRING,k)}return null},M.prototype._allow_regexp_or_xml=function(X){return X.type===h.RESERVED&&f(X.text,["return","case","throw","else","do","typeof","yield"])||X.type===h.END_EXPR&&X.text===")"&&X.opened.previous.type===h.RESERVED&&f(X.opened.previous.text,["if","while","for"])||f(X.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},M.prototype._read_regexp=function(X,k){if(X==="/"&&this._allow_regexp_or_xml(k)){for(var F=this._input.next(),U=!1,L=!1;this._input.hasNext()&&(U||L||this._input.peek()!==X)&&!this._input.testChar(o.newline);)F+=this._input.peek(),U?U=!1:(U=this._input.peek()==="\\",this._input.peek()==="["?L=!0:this._input.peek()==="]"&&(L=!1)),this._input.next();return this._input.peek()===X&&(F+=this._input.next(),F+=this._input.read(o.identifier)),this._create_token(h.STRING,F)}return null},M.prototype._read_xml=function(X,k){if(this._options.e4x&&X==="<"&&this._allow_regexp_or_xml(k)){var F="",U=this.__patterns.xml.read_match();if(U){for(var L=U[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),B=L.indexOf("{")===0,Z=0;U;){var re=!!U[1],me=U[2],Ee=!!U[U.length-1]||me.slice(0,8)==="![CDATA[";if(!Ee&&(me===L||B&&me.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(re?--Z:++Z),F+=U[0],Z<=0)break;U=this.__patterns.xml.read_match()}return U||(F+=this._input.match(/[\s\S]*/g)[0]),F=F.replace(o.allLineBreaks,`
`),this._create_token(h.STRING,F)}}return null};function z(X){for(var k="",F=0,U=new l(X),L=null;U.hasNext();)if(L=U.match(/([\s]|[^\\]|\\\\)+/g),L&&(k+=L[0]),U.peek()==="\\"){if(U.next(),U.peek()==="x")L=U.match(/x([0-9A-Fa-f]{2})/g);else if(U.peek()==="u")L=U.match(/u([0-9A-Fa-f]{4})/g);else{k+="\\",U.hasNext()&&(k+=U.next());continue}if(!L)return X;if(F=parseInt(L[1],16),F>126&&F<=255&&L[0].indexOf("x")===0)return X;if(F>=0&&F<32){k+="\\"+L[0];continue}else F===34||F===39||F===92?k+="\\"+String.fromCharCode(F):k+=String.fromCharCode(F)}return k}M.prototype._read_string_recursive=function(X,k,F){var U,L;X==="'"?L=this.__patterns.single_quote:X==='"'?L=this.__patterns.double_quote:X==="`"?L=this.__patterns.template_text:X==="}"&&(L=this.__patterns.template_expression);for(var B=L.read(),Z="";this._input.hasNext();){if(Z=this._input.next(),Z===X||!k&&o.newline.test(Z)){this._input.back();break}else Z==="\\"&&this._input.hasNext()?(U=this._input.peek(),U==="x"||U==="u"?this.has_char_escapes=!0:U==="\r"&&this._input.peek(1)===`
`&&this._input.next(),Z+=this._input.next()):F&&(F==="${"&&Z==="$"&&this._input.peek()==="{"&&(Z+=this._input.next()),F===Z&&(X==="`"?Z+=this._read_string_recursive("}",k,"`"):Z+=this._read_string_recursive("`",k,"${"),this._input.hasNext()&&(Z+=this._input.next())));Z+=L.read(),B+=Z}return B},e.exports.Tokenizer=M,e.exports.TOKEN=h,e.exports.positionable_operators=C.slice(),e.exports.line_starters=D.slice()},function(e){var a=RegExp.prototype.hasOwnProperty("sticky");function n(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},n.prototype.peek=function(l){var r=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(r=this.__input.charAt(l)),r},n.prototype.__match=function(l,r){l.lastIndex=r;var i=l.exec(this.__input);return i&&!(a&&l.sticky)&&(i.index!==r&&(i=null)),i},n.prototype.test=function(l,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(l,r):!1},n.prototype.testChar=function(l,r){var i=this.peek(r);return l.lastIndex=0,i!==null&&l.test(i)},n.prototype.match=function(l){var r=this.__match(l,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(l,r,i){var t="",o;return l&&(o=this.match(l),o&&(t+=o[0])),r&&(o||!l)&&(t+=this.readUntil(r,i)),t},n.prototype.readUntil=function(l,r){var i="",t=this.__position;l.lastIndex=this.__position;var o=l.exec(this.__input);return o?(t=o.index,r&&(t+=o[0].length)):t=this.__input_length,i=this.__input.substring(this.__position,t),this.__position=t,i},n.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},n.prototype.get_regexp=function(l,r){var i=null,t="g";return r&&a&&(t="y"),typeof l=="string"&&l!==""?i=new RegExp(l,t):l&&(i=new RegExp(l.source,t)),i},n.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(l){var r=this.__position,i=this.readUntilAfter(l);return this.__position=r,i},n.prototype.lookBack=function(l){var r=this.__position-1;return r>=l.length&&this.__input.substring(r-l.length,r).toLowerCase()===l},e.exports.InputScanner=n},function(e,a,n){var l=n(8).InputScanner,r=n(3).Token,i=n(10).TokenStream,t=n(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(d,f){this._input=new l(d),this._options=f||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new t(this._input)};c.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var d,f=new r(o.START,""),h=null,u=[],E=new i;f.type!==o.EOF;){for(d=this._get_next_token(f,h);this._is_comment(d);)E.add(d),d=this._get_next_token(f,h);E.isEmpty()||(d.comments_before=E,E=new i),d.parent=h,this._is_opening(d)?(u.push(h),h=d):h&&this._is_closing(d,h)&&(d.opened=h,h.closed=d,h=u.pop(),d.parent=h),d.previous=f,f.next=d,this.__tokens.add(d),f=d}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(d,f){this._readWhitespace();var h=this._input.read(/.+/g);return h?this._create_token(o.RAW,h):this._create_token(o.EOF,"")},c.prototype._is_comment=function(d){return!1},c.prototype._is_opening=function(d){return!1},c.prototype._is_closing=function(d,f){return!1},c.prototype._create_token=function(d,f){var h=new r(d,f,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return h},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=c,e.exports.TOKEN=o},function(e){function a(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}a.prototype.restart=function(){this.__position=0},a.prototype.isEmpty=function(){return this.__tokens_length===0},a.prototype.hasNext=function(){return this.__position<this.__tokens_length},a.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},a.prototype.peek=function(n){var l=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(l=this.__tokens[n]),l},a.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},e.exports.TokenStream=a},function(e,a,n){var l=n(12).Pattern;function r(i,t){l.call(this,i,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new l,r.prototype.__set_whitespace_patterns=function(i,t){i+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var t=this.__split(this._newline_regexp,i);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return i},r.prototype.matching=function(i,t){var o=this._create();return o.__set_whitespace_patterns(i,t),o._update(),o},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(i,t){i.lastIndex=0;for(var o=0,c=[],d=i.exec(t);d;)c.push(t.substring(o,d.index)),o=d.index+d[0].length,d=i.exec(t);return o<t.length?c.push(t.substring(o,t.length)):c.push(""),c},e.exports.WhitespacePattern=r},function(e){function a(n,l){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}a.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(n){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(n),l._update(),l},a.prototype.until=function(n){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(n),l._update(),l},a.prototype.starting_with=function(n){var l=this._create();return l._starting_pattern=this._input.get_regexp(n,!0),l._update(),l},a.prototype.matching=function(n){var l=this._create();return l._match_pattern=this._input.get_regexp(n,!0),l._update(),l},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},e.exports.Pattern=a},function(e){function a(n,l){n=typeof n=="string"?n:n.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+l,"g")}a.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)l[r[1]]=r[2],r=this.__directive_pattern.exec(n);return l},a.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=a},function(e,a,n){var l=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(t,o){l.call(this,t,o),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var c=new l(t);this.__patterns={handlebars_comment:c.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:c.starting_with(/{{{/).until_after(/}}}/),handlebars:c.starting_with(/{{/).until_after(/}}/),php:c.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:c.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:c.starting_with(/{%/).until_after(/%}/),django_value:c.starting_with(/{{/).until_after(/}}/),django_comment:c.starting_with(/{#/).until_after(/#}/),smarty:c.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:c.starting_with(/{\*/).until_after(/\*}/),smarty_literal:c.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new l,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var o=this._create();return o._disabled[t]=!0,o._update(),o},i.prototype.read_options=function(t){var o=this._create();for(var c in r)o._disabled[c]=t.templating.indexOf(c)===-1;return o._update(),o},i.prototype.exclude=function(t){var o=this._create();return o._excluded[t]=!0,o._update(),o},i.prototype.read=function(){var t="";this._match_pattern?t=this._input.read(this._starting_pattern):t=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),t+=o,o=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},i.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},i.prototype._read_template=function(){var t="",o=this._input.peek();if(o==="<"){var c=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&c==="?"&&(t=t||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&c==="%"&&(t=t||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=t||this.__patterns.smarty_comment.read(),t=t||this.__patterns.smarty_literal.read(),t=t||this.__patterns.smarty.read()));return t},e.exports.TemplatablePattern=i}],s={};function _(e){var a=s[e];if(a!==void 0)return a.exports;var n=s[e]={exports:{}};return g[e](n,n.exports,_),n.exports}var p=_(0);T=p})();var b=T;!(I=[],v=function(){return{js_beautify:b}}.apply(W,I),v!==void 0&&(j.exports=v))})()},"6eGT":function(j,W,y){"use strict";function I(v){return null}W.a=I},"746U":function(j,W,y){"use strict";y.d(W,"f",function(){return I}),y.d(W,"l",function(){return v}),y.d(W,"k",function(){return T}),y.d(W,"j",function(){return b}),y.d(W,"g",function(){return g}),y.d(W,"m",function(){return s}),y.d(W,"h",function(){return _}),y.d(W,"n",function(){return p}),y.d(W,"c",function(){return e}),y.d(W,"a",function(){return a}),y.d(W,"i",function(){return n}),y.d(W,"o",function(){return l}),y.d(W,"e",function(){return t}),y.d(W,"d",function(){return o}),y.d(W,"p",function(){return c}),y.d(W,"b",function(){return d});function I(f){return Array.isArray(f)}function v(f){return typeof f=="string"}function T(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)&&!(f instanceof RegExp)&&!(f instanceof Date)}function b(f){return typeof f=="number"&&!isNaN(f)}function g(f){return f===!0||f===!1}function s(f){return typeof f=="undefined"}function _(f){return!p(f)}function p(f){return s(f)||f===null}function e(f,h){if(!f)throw new Error(h?`Unexpected type, expected '${h}'`:"Unexpected type")}function a(f){if(p(f))throw new Error("Assertion Failed: argument is undefined or null");return f}function n(f){return typeof f=="function"}function l(f,h){const u=Math.min(f.length,h.length);for(let E=0;E<u;E++)r(f[E],h[E])}function r(f,h){if(v(h)){if(typeof f!==h)throw new Error(`argument does not match constraint: typeof ${h}`)}else if(n(h)){try{if(f instanceof h)return}catch(u){}if(!p(f)&&f.constructor===h)return;if(h.length===1&&h.call(void 0,f)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function i(f){let h=[],u=Object.getPrototypeOf(f);for(;Object.prototype!==u;)h=h.concat(Object.getOwnPropertyNames(u)),u=Object.getPrototypeOf(u);return h}function t(f){const h=[];for(const u of i(f))typeof f[u]=="function"&&h.push(u);return h}function o(f,h){const u=x=>function(){const O=Array.prototype.slice.call(arguments,0);return h(x,O)};let E={};for(const x of f)E[x]=u(x);return E}function c(f){return f===null?void 0:f}function d(f,h="Unreachable"){throw new Error(h)}},"7Cbv":function(j,W,y){"use strict";var I=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),v=new Uint8Array(16);function T(){if(!I)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(v)}var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function g(r){return typeof r=="string"&&b.test(r)}for(var s=g,_=[],p=0;p<256;++p)_.push((p+256).toString(16).substr(1));function e(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(_[r[i+0]]+_[r[i+1]]+_[r[i+2]]+_[r[i+3]]+"-"+_[r[i+4]]+_[r[i+5]]+"-"+_[r[i+6]]+_[r[i+7]]+"-"+_[r[i+8]]+_[r[i+9]]+"-"+_[r[i+10]]+_[r[i+11]]+_[r[i+12]]+_[r[i+13]]+_[r[i+14]]+_[r[i+15]]).toLowerCase();if(!s(t))throw TypeError("Stringified UUID is invalid");return t}var a=e;function n(r,i,t){r=r||{};var o=r.random||(r.rng||T)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,i){t=t||0;for(var c=0;c<16;++c)i[t+c]=o[c];return i}return a(o)}var l=W.a=n},"7ZXX":function(j,W,y){j.exports=y.p+"static/err.6e7c5817.png"},"7ahc":function(j,W,y){"use strict";y.d(W,"a",function(){return u});var I=y("k1fw"),v=y("0Owb"),T=y("+L6B"),b=y("2/Rp"),g=y("y8nQ"),s=y("Vl3Y"),_=y("tJVT"),p=y("OaEy"),e=y("2fM7"),a=y("q1tI"),n=y.n(a),l=y("VrN/"),r=y.n(l),i=y("p77/"),t=y.n(i),o=y("c5Ni"),c=y.n(o),d=e.a.Option,f={labelCol:{span:4},wrapperCol:{span:20}},h={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};W.b=function(E){var x=E.callback,O=E.onCancel,C=Object(a.useState)("python"),w=Object(_.a)(C,2),S=w[0],D=w[1];function R(N){D(h[N][1])}function P(N){x(N)}return n.a.createElement(s.a,Object(v.a)({},f,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:P}),n.a.createElement(s.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},n.a.createElement(e.a,{onChange:R},Object.keys(h).map(function(N){return n.a.createElement(d,{key:N,value:N},h[N][0])}))),n.a.createElement(s.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},n.a.createElement(u,{mode:S})),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(b.a,{type:"ghost",onClick:O},"\u53D6\u6D88")))};function u(E){var x=E.value,O=E.onChange,C=E.mode,w=E.options,S=w===void 0?{}:w,D=Object(a.useRef)(),R=Object(a.useState)(),P=Object(_.a)(R,2),N=P[0],M=P[1];return Object(a.useEffect)(function(){if(N){function z(X){var k=X.getValue();O&&O(k)}return N.on("change",z),function(){N.off("change",z)}}},[N,O]),Object(a.useEffect)(function(){N&&N.setOption("mode",C)},[N,C]),Object(a.useEffect)(function(){N&&((x!==N.getValue()||x==="")&&setTimeout(function(){N.setValue(x||" ")},300))},[N,x]),Object(a.useEffect)(function(){if(D.current&&!N){var z=r.a.fromTextArea(D.current,Object(I.a)({mode:C,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},S));M(z)}},[D.current,N]),n.a.createElement("div",{className:"my-codemirror-container"},n.a.createElement("textarea",{ref:D}))}},"7ixt":function(j,W,y){"use strict";y.d(W,"a",function(){return T});var I={adjustX:1,adjustY:1},v=[0,0],T={left:{points:["cr","cl"],overflow:I,offset:[-4,0],targetOffset:v},right:{points:["cl","cr"],overflow:I,offset:[4,0],targetOffset:v},top:{points:["bc","tc"],overflow:I,offset:[0,-4],targetOffset:v},bottom:{points:["tc","bc"],overflow:I,offset:[0,4],targetOffset:v},topLeft:{points:["bl","tl"],overflow:I,offset:[0,-4],targetOffset:v},leftTop:{points:["tr","tl"],overflow:I,offset:[-4,0],targetOffset:v},topRight:{points:["br","tr"],overflow:I,offset:[0,-4],targetOffset:v},rightTop:{points:["tl","tr"],overflow:I,offset:[4,0],targetOffset:v},bottomRight:{points:["tr","br"],overflow:I,offset:[0,4],targetOffset:v},rightBottom:{points:["bl","br"],overflow:I,offset:[4,0],targetOffset:v},bottomLeft:{points:["tl","bl"],overflow:I,offset:[0,4],targetOffset:v},leftBottom:{points:["br","bl"],overflow:I,offset:[-4,0],targetOffset:v}},b=T},"7v3h":function(j,W,y){j.exports=y.p+"static/empty2.dd73f390.png"},"8+yF":function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},v={lookup:function(b){if(b>=32&&b<=255)return b;var g=I[b];return g!==void 0?g:16777216|b}};W.default=v},"8/bI":function(j,W,y){j.exports=y.p+"static/empty.8918e228.png"},"815F":function(j,W,y){"use strict";y.d(W,"e",function(){return _}),y.d(W,"c",function(){return e}),y.d(W,"d",function(){return a}),y.d(W,"a",function(){return l}),y.d(W,"f",function(){return r}),y.d(W,"b",function(){return i});var I=y("KQm4"),v=y("VTBJ"),T=y("Ff2n"),b=y("Zm9Q"),g=y("Kwbf"),s=y("OZM5");function _(t,o){return t!=null?t:o}function p(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function c(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(h){var u=h.key,E=h.children;Object(g.a)(u!=null,"Tree node must have a certain key: [".concat(f).concat(u,"]"));var x=String(u);Object(g.a)(!o.has(x)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(x)),o.set(x,!0),c(E,"".concat(f).concat(x," > "))})}c(t)}function e(t){function o(c){var d=Object(b.a)(c);return d.map(function(f){if(!Object(s.i)(f))return Object(g.a)(!f,"Tree/TreeNode can only accept TreeNode as children."),null;var h=f.key,u=f.props,E=u.children,x=Object(T.a)(u,["children"]),O=Object(v.a)({key:h},x),C=o(E);return C.length&&(O.children=C),O}).filter(function(f){return f})}return o(t)}function a(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=new Set(o===!0?[]:o),d=[];function f(h){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(E,x){var O=Object(s.h)(u?u.pos:"0",x),C=_(E.key,O),w=Object(v.a)(Object(v.a)({},E),{},{parent:u,pos:O,children:null,data:E,isStart:[].concat(Object(I.a)(u?u.isStart:[]),[x===0]),isEnd:[].concat(Object(I.a)(u?u.isEnd:[]),[x===h.length-1])});return d.push(w),o===!0||c.has(C)?w.children=f(E.children||[],w):w.children=[],w})}return f(t),d}function n(t,o,c){var d;c?typeof c=="string"?d=function(u){return u[c]}:typeof c=="function"&&(d=function(u){return c(u)}):d=function(u,E){return _(u.key,E)};function f(h,u,E){var x=h?h.children:t,O=h?Object(s.h)(E.pos,u):"0";if(h){var C=d(h,O),w={node:h,index:u,pos:O,key:C,parentPos:E.node?E.pos:null,level:E.level+1};o(w)}x&&x.forEach(function(S,D){f(S,D,{node:h,pos:O,level:E?E.level+1:-1})})}f(null)}function l(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=o.initWrapper,d=o.processEntity,f=o.onProcessFinished,h=arguments.length>2?arguments[2]:void 0,u={},E={},x={posEntities:u,keyEntities:E};return c&&(x=c(x)||x),n(t,function(O){var C=O.node,w=O.index,S=O.pos,D=O.key,R=O.parentPos,P=O.level,N={node:C,index:w,key:D,pos:S,level:P},M=_(D,S);u[S]=N,E[M]=N,N.parent=u[R],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),d&&d(N,x)},h),f&&f(x),x}function r(t,o){var c=o.expandedKeys,d=o.selectedKeys,f=o.loadedKeys,h=o.loadingKeys,u=o.checkedKeys,E=o.halfCheckedKeys,x=o.dragOverNodeKey,O=o.dropPosition,C=o.keyEntities,w=C[t],S={eventKey:t,expanded:c.indexOf(t)!==-1,selected:d.indexOf(t)!==-1,loaded:f.indexOf(t)!==-1,loading:h.indexOf(t)!==-1,checked:u.indexOf(t)!==-1,halfChecked:E.indexOf(t)!==-1,pos:String(w?w.pos:""),dragOver:x===t&&O===0,dragOverGapTop:x===t&&O===-1,dragOverGapBottom:x===t&&O===1};return S}function i(t){var o=t.data,c=t.expanded,d=t.selected,f=t.checked,h=t.loaded,u=t.loading,E=t.halfChecked,x=t.dragOver,O=t.dragOverGapTop,C=t.dragOverGapBottom,w=t.pos,S=t.active,D=Object(v.a)(Object(v.a)({},o),{},{expanded:c,selected:d,checked:f,loaded:h,loading:u,halfChecked:E,dragOver:x,dragOverGapTop:O,dragOverGapBottom:C,pos:w,active:S});return"props"in D||Object.defineProperty(D,"props",{get:function(){return Object(g.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),D}},"88g3":function(j,W,y){j.exports={tree:"tree___noxec"}},"8Abk":function(j,W,y){},"8CQX":function(j,W,y){"use strict";function I(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(o){return typeof o}:I=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},I(i)}Object.defineProperty(W,"__esModule",{value:!0}),W.getKeycode=n,W.getKey=l,W.getKeysym=r;var v=a(y("mHUz")),T=a(y("8+yF")),b=a(y("6Qwc")),g=a(y("gIYZ")),s=a(y("mTgk")),_=e(y("GdRQ"));function p(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return p=function(){return i},i}function e(i){if(i&&i.__esModule)return i;if(i===null||I(i)!=="object"&&typeof i!="function")return{default:i};var t=p();if(t&&t.has(i))return t.get(i);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in i)if(Object.prototype.hasOwnProperty.call(i,d)){var f=c?Object.getOwnPropertyDescriptor(i,d):null;f&&(f.get||f.set)?Object.defineProperty(o,d,f):o[d]=i[d]}return o.default=i,t&&t.set(i,o),o}function a(i){return i&&i.__esModule?i:{default:i}}function n(i){if(i.code){switch(i.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return i.code}if(i.type!=="keypress"&&i.keyCode in b.default){var t=b.default[i.keyCode];if(_.isMac()&&t==="ContextMenu"&&(t="MetaRight"),i.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(i.location===3)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function l(i){if(i.key!==void 0){switch(i.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return i.char}switch(i.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(i.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(i.key==="\0"&&i.code==="NumpadDecimal")return"Delete";if(!_.isIE()&&!_.isEdge())return i.key;if(i.key.length!==1&&i.key!=="Unidentified")return i.key}var t=n(i);return t in g.default?g.default[t]:i.charCode?String.fromCharCode(i.charCode):"Unidentified"}function r(i){var t=l(i);if(t==="Unidentified")return null;if(t in s.default){var o=i.location;if(t==="Meta"&&o===0&&(o=2),t==="Clear"&&o===3){var c=n(i);c==="NumLock"&&(o=0)}if((o===void 0||o>3)&&(o=0),t==="Meta"){var d=n(i);if(d==="AltLeft")return v.default.XK_Meta_L;if(d==="AltRight")return v.default.XK_Meta_R}if(t==="Clear"){var f=n(i);if(f==="NumLock")return v.default.XK_Num_Lock}return s.default[t][o]}if(t.length!==1)return null;var h=t.charCodeAt();return h?T.default.lookup(h):null}},"8EBN":function(j,W,y){(function(I){I(y("VrN/"))})(function(I){"use strict";I.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var v=0;v<I.modeInfo.length;v++){var T=I.modeInfo[v];T.mimes&&(T.mime=T.mimes[0])}I.findModeByMIME=function(b){b=b.toLowerCase();for(var g=0;g<I.modeInfo.length;g++){var s=I.modeInfo[g];if(s.mime==b)return s;if(s.mimes){for(var _=0;_<s.mimes.length;_++)if(s.mimes[_]==b)return s}}if(/\+xml$/.test(b))return I.findModeByMIME("application/xml");if(/\+json$/.test(b))return I.findModeByMIME("application/json")},I.findModeByExtension=function(b){b=b.toLowerCase();for(var g=0;g<I.modeInfo.length;g++){var s=I.modeInfo[g];if(s.ext){for(var _=0;_<s.ext.length;_++)if(s.ext[_]==b)return s}}},I.findModeByFileName=function(b){for(var g=0;g<I.modeInfo.length;g++){var s=I.modeInfo[g];if(s.file&&s.file.test(b))return s}var _=b.lastIndexOf("."),p=_>-1&&b.substring(_+1,b.length);if(p)return I.findModeByExtension(p)},I.findModeByName=function(b){b=b.toLowerCase();for(var g=0;g<I.modeInfo.length;g++){var s=I.modeInfo[g];if(s.name.toLowerCase()==b)return s;if(s.alias){for(var _=0;_<s.alias.length;_++)if(s.alias[_].toLowerCase()==b)return s}}}})},"8Enf":function(j,W,y){},"8HAY":function(j,W,y){"use strict";y.d(W,"a",function(){return g}),y.d(W,"b",function(){return s}),y.d(W,"d",function(){return _}),y.d(W,"e",function(){return p}),y.d(W,"c",function(){return e});var I=y("MI8n"),v=y("pmY6"),T=y("3/fG"),b=function(a,n,l,r){function i(t){return t instanceof l?t:new l(function(o){o(t)})}return new(l||(l=Promise))(function(t,o){function c(h){try{f(r.next(h))}catch(u){o(u)}}function d(h){try{f(r.throw(h))}catch(u){o(u)}}function f(h){h.done?t(h.value):i(h.value).then(c,d)}f((r=r.apply(a,n||[])).next())})};class g extends v.a{constructor(a,n="",l="",r=!0,i){super();this._onDidChange=this._register(new I.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=a,this._label=n,this._cssClass=l,this._enabled=r,this._actionCallback=i}get id(){return this._id}get label(){return this._label}set label(a){this._setLabel(a)}_setLabel(a){this._label!==a&&(this._label=a,this._onDidChange.fire({label:a}))}get tooltip(){return this._tooltip||""}set tooltip(a){this._setTooltip(a)}_setTooltip(a){this._tooltip!==a&&(this._tooltip=a,this._onDidChange.fire({tooltip:a}))}get class(){return this._cssClass}set class(a){this._setClass(a)}_setClass(a){this._cssClass!==a&&(this._cssClass=a,this._onDidChange.fire({class:a}))}get enabled(){return this._enabled}set enabled(a){this._setEnabled(a)}_setEnabled(a){this._enabled!==a&&(this._enabled=a,this._onDidChange.fire({enabled:a}))}get checked(){return this._checked}set checked(a){this._setChecked(a)}_setChecked(a){this._checked!==a&&(this._checked=a,this._onDidChange.fire({checked:a}))}run(a,n){return b(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(a))})}}class s extends v.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new I.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new I.b),this.onDidRun=this._onDidRun.event}run(a,n){return b(this,void 0,void 0,function*(){if(!a.enabled)return;this._onBeforeRun.fire({action:a});let l;try{yield this.runAction(a,n)}catch(r){l=r}this._onDidRun.fire({action:a,error:l})})}runAction(a,n){return b(this,void 0,void 0,function*(){yield a.run(n)})}}class _ extends g{constructor(a){super(_.ID,a,a?"separator text":"separator");this.checked=!1,this.enabled=!1}}_.ID="vs.actions.separator";class p{constructor(a,n,l,r){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=a,this.label=n,this.class=r,this._actions=l}get actions(){return this._actions}dispose(){}run(){return b(this,void 0,void 0,function*(){})}}class e extends g{constructor(){super(e.ID,T.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8K/p":function(j,W,y){"use strict";function I(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(r){return typeof r}:I=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},I(n)}Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var v=s(y("Lo0S")),T=b(y("ItS6"));function b(n){return n&&n.__esModule?n:{default:n}}function g(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return g=function(){return n},n}function s(n){if(n&&n.__esModule)return n;if(n===null||I(n)!=="object"&&typeof n!="function")return{default:n};var l=g();if(l&&l.has(n))return l.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var o=i?Object.getOwnPropertyDescriptor(n,t):null;o&&(o.get||o.set)?Object.defineProperty(r,t,o):r[t]=n[t]}return r.default=n,l&&l.set(n,r),r}function _(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function p(n,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function e(n,l,r){return l&&p(n.prototype,l),r&&p(n,r),n}var a=function(){function n(){_(this,n),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var l=0;l<4;l++)this._zlibs[l]=new T.default}return e(n,[{key:"decodeRect",value:function(r,i,t,o,c,d,f){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var h=0;h<4;h++)this._ctl>>h&1&&(this._zlibs[h].reset(),v.Info("Reset zlib stream "+h));this._ctl=this._ctl>>4}var u;if(this._ctl===8)u=this._fillRect(r,i,t,o,c,d,f);else if(this._ctl===9)u=this._jpegRect(r,i,t,o,c,d,f);else if(this._ctl===10)u=this._pngRect(r,i,t,o,c,d,f);else if((this._ctl&128)==0)u=this._basicRect(this._ctl,r,i,t,o,c,d,f);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return u&&(this._ctl=null),u}},{key:"_fillRect",value:function(r,i,t,o,c,d,f){if(c.rQwait("TIGHT",3))return!1;var h=c.rQi,u=c.rQ;return d.fillRect(r,i,t,o,[u[h+2],u[h+1],u[h]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(r,i,t,o,c,d,f){var h=this._readData(c);return h===null?!1:(d.imageRect(r,i,t,o,"image/jpeg",h),!0)}},{key:"_pngRect",value:function(r,i,t,o,c,d,f){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(r,i,t,o,c,d,f,h){if(this._filter===null)if(r&4){if(d.rQwait("TIGHT",1))return!1;this._filter=d.rQshift8()}else this._filter=0;var u=r&3,E;switch(this._filter){case 0:E=this._copyFilter(u,i,t,o,c,d,f,h);break;case 1:E=this._paletteFilter(u,i,t,o,c,d,f,h);break;case 2:E=this._gradientFilter(u,i,t,o,c,d,f,h);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return E&&(this._filter=null),E}},{key:"_copyFilter",value:function(r,i,t,o,c,d,f,h){var u=o*c*3,E;if(u<12){if(d.rQwait("TIGHT",u))return!1;E=d.rQshiftBytes(u)}else{if(E=this._readData(d),E===null)return!1;this._zlibs[r].setInput(E),E=this._zlibs[r].inflate(u),this._zlibs[r].setInput(null)}return f.blitRgbImage(i,t,o,c,E,0,!1),!0}},{key:"_paletteFilter",value:function(r,i,t,o,c,d,f,h){if(this._numColors===0){if(d.rQwait("TIGHT palette",1))return!1;var u=d.rQpeek8()+1,E=u*3;if(d.rQwait("TIGHT palette",1+E))return!1;this._numColors=u,d.rQskipBytes(1),d.rQshiftTo(this._palette,E)}var x=this._numColors<=2?1:8,O=Math.floor((o*x+7)/8),C=O*c,w;if(C<12){if(d.rQwait("TIGHT",C))return!1;w=d.rQshiftBytes(C)}else{if(w=this._readData(d),w===null)return!1;this._zlibs[r].setInput(w),w=this._zlibs[r].inflate(C),this._zlibs[r].setInput(null)}return this._numColors==2?this._monoRect(i,t,o,c,w,this._palette,f):this._paletteRect(i,t,o,c,w,this._palette,f),this._numColors=0,!0}},{key:"_monoRect",value:function(r,i,t,o,c,d,f){for(var h=this._getScratchBuffer(t*o*4),u=Math.floor((t+7)/8),E=Math.floor(t/8),x=0;x<o;x++){var O=void 0,C=void 0,w=void 0;for(w=0;w<E;w++)for(var S=7;S>=0;S--)O=(x*t+w*8+7-S)*4,C=(c[x*u+w]>>S&1)*3,h[O]=d[C],h[O+1]=d[C+1],h[O+2]=d[C+2],h[O+3]=255;for(var D=7;D>=8-t%8;D--)O=(x*t+w*8+7-D)*4,C=(c[x*u+w]>>D&1)*3,h[O]=d[C],h[O+1]=d[C+1],h[O+2]=d[C+2],h[O+3]=255}f.blitRgbxImage(r,i,t,o,h,0,!1)}},{key:"_paletteRect",value:function(r,i,t,o,c,d,f){for(var h=this._getScratchBuffer(t*o*4),u=t*o*4,E=0,x=0;E<u;E+=4,x++){var O=c[x]*3;h[E]=d[O],h[E+1]=d[O+1],h[E+2]=d[O+2],h[E+3]=255}f.blitRgbxImage(r,i,t,o,h,0,!1)}},{key:"_gradientFilter",value:function(r,i,t,o,c,d,f,h){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(r){if(this._len===0){if(r.rQwait("TIGHT",3))return null;var i;i=r.rQshift8(),this._len=i&127,i&128&&(i=r.rQshift8(),this._len|=(i&127)<<7,i&128&&(i=r.rQshift8(),this._len|=i<<14))}if(r.rQwait("TIGHT",this._len))return null;var t=r.rQshiftBytes(this._len);return this._len=0,t}},{key:"_getScratchBuffer",value:function(r){return(!this._scratchBuffer||this._scratchBuffer.length<r)&&(this._scratchBuffer=new Uint8Array(r)),this._scratchBuffer}}]),n}();W.default=a},"8hTe":function(j,W,y){j.exports={button:"button___1wy9m"}},"8j3D":function(j,W,y){"use strict";var I=y("2qtc"),v=y("kLXV"),T=y("5NDa"),b=y("5rEg"),g=y("miYZ"),s=y("tsqr"),_=y("k1fw"),p=y("9og8"),e=y("y8nQ"),a=y("Vl3Y"),n=y("tJVT"),l=y("WmNS"),r=y.n(l),i=y("q1tI"),t=y.n(i),o=y("Ty5D"),c=y("9kvl"),d=y("KVXO"),f=y.n(d),h=function(E){var x=E.shixunsDetail,O=E.globalSetting,C=E.loading,w=E.dispatch,S=E.title,D=E.pathList,R=D===void 0?[]:D,P=E.showInputPath,N=P===void 0?!1:P,M=E.isMergeSelectFile,z=M===void 0?!1:M,X=E.onFinish,k=X===void 0?function(){}:X,F=a.a.useForm(),U=Object(n.a)(F,1),L=U[0],B=Object(o.i)(),Z=Object(o.h)(),re=Object(i.useRef)(),me=Object(i.useState)(""),Ee=Object(n.a)(me,2),De=Ee[0],te=Ee[1],Ce=Object(i.useState)(""),we=Object(n.a)(Ce,2),ce=we[0],le=we[1],oe=Object(i.useState)([]),xe=Object(n.a)(oe,2),q=xe[0],se=xe[1],Ne=Object(i.useState)([]),de=Object(n.a)(Ne,2),$=de[0],Q=de[1];Object(i.useEffect)(function(){var pe,Le;re.current=((pe=Z.pathname)===null||pe===void 0||((Le=pe.split("/"))===null||Le===void 0)?void 0:Le[3])==="repository"},[]),Object(i.useEffect)(function(){if(x.actionTabs.key!=="Repository-SelectFilePath")return;var pe=R.join("/"),Le=[];R.map(function(ve,Xe){Xe===0?Le.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(ve),path:pe}):Le.push({val:"/".concat(ve),path:pe})}),se(Le),te(pe),le(pe),Y(pe)},[x.actionTabs.key]);var Y=function(){var pe=Object(p.a)(r.a.mark(function Le(ve){var Xe;return r.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,w({type:re.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:B.id,path:ve}});case 2:Xe=Ge.sent,Xe&&Q(Xe.trees||[]);case 4:case"end":return Ge.stop()}},Le)}));return function(ve){return pe.apply(this,arguments)}}(),ue=function(Le){var ve=De;Le.type==="tree"&&(q.length?q.push({val:"/".concat(Le.name),path:Le.name}):q.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Le.name),path:Le.name}),se(q),ve=De?"".concat(De,"/").concat(Le.name):Le.name,te(ve)),Y(ve)},ae=function(Le,ve){var Xe=q.filter(function(Ge,Me){return Me<=ve});se(Xe);var $e=Xe.filter(function(Ge,Me){return Me!==0}).map(function(Ge){return Ge.val}).join("").substr(1);te($e),Y($e)},be=function(){var pe=Object(p.a)(r.a.mark(function Le(){var ve,Xe,$e;return r.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(ve=L==null?void 0:L.getFieldsValue(),Xe=De?"".concat(De).concat(ve!=null&&ve.name?"/".concat(ve==null?void 0:ve.name):""):ve==null?void 0:ve.name,!z){Me.next=6;break}return k(Xe),Ie(),Me.abrupt("return");case 6:if(!N){Me.next=16;break}return Me.next=9,L.validateFields();case 9:return Me.next=11,w({type:"shixunsDetail/uploadGitFolder",payload:Object(_.a)(Object(_.a)({},{id:B.id,path:Xe}),re.current?{}:{secret_repository:!0})});case 11:$e=Me.sent,k(ce),$e.status===0&&s.b.info("\u65B0\u5EFA\u6210\u529F"),Me.next=18;break;case 16:k(Xe),s.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Ie();case 19:case"end":return Me.stop()}},Le)}));return function(){return pe.apply(this,arguments)}}(),Ie=function(){w({type:"shixunsDetail/setActionTabs",payload:{}}),L.resetFields()};return t.a.createElement(v.a,{centered:!0,title:S||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:x.actionTabs.key==="Repository-SelectFilePath",onOk:be,onCancel:Ie},t.a.createElement("div",{className:f.a.wrap},t.a.createElement("div",{className:f.a.content},t.a.createElement("div",{className:f.a.mainPathWrap},!!(q!=null&&q.length)&&q.map(function(pe,Le){return t.a.createElement("a",{key:Le,onClick:function(){return ae(pe,Le)}},pe.val)})),!!($!=null&&$.length)&&$.map(function(pe,Le){return pe.type==="tree"&&t.a.createElement("a",{key:Le,onClick:function(){return ue(pe)}},t.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(f.a.colorBlue)}),pe.name)})),t.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),t.a.createElement("div",{className:"mt5 mb5"},De),N&&t.a.createElement(a.a,{form:L,scrollToFirstError:!0,className:"mt20"},t.a.createElement(a.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},t.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};W.a=Object(c.a)(function(u){var E=u.shixunsDetail,x=u.loading,O=u.globalSetting;return{shixunsDetail:E,globalSetting:O,loading:x.models.index}})(h)},"8mKB":function(j,W,y){"use strict";var I=y("rePB"),v=y("1OyB"),T=y("vuIU"),b=y("Ji7U"),g=y("md7G"),s=y("foSv"),_=y("q1tI"),p=y.n(_),e=y("m+aA"),a=y("TSYQ"),n=y.n(a),l=y("4IlW");function r(S){var D=S.pageXOffset,R="scrollLeft";if(typeof D!="number"){var P=S.document;D=P.documentElement[R],typeof D!="number"&&(D=P.body[R])}return D}function i(S){var D,R,P=S.ownerDocument,N=P.body,M=P&&P.documentElement,z=S.getBoundingClientRect();return D=z.left,R=z.top,D-=M.clientLeft||N.clientLeft||0,R-=M.clientTop||N.clientTop||0,{left:D,top:R}}function t(S){var D=i(S),R=S.ownerDocument,P=R.defaultView||R.parentWindow;return D.left+=r(P),D.left}function o(S){var D=c();return function(){var P=Object(s.a)(S),N;if(D){var M=Object(s.a)(this).constructor;N=Reflect.construct(P,arguments,M)}else N=P.apply(this,arguments);return Object(g.a)(this,N)}}function c(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}var d=function(S){Object(b.a)(R,S);var D=o(R);function R(){var P;return Object(v.a)(this,R),P=D.apply(this,arguments),P.onHover=function(N){var M=P.props,z=M.onHover,X=M.index;z(N,X)},P.onClick=function(N){var M=P.props,z=M.onClick,X=M.index;z(N,X)},P.onKeyDown=function(N){var M=P.props,z=M.onClick,X=M.index;N.keyCode===13&&z(N,X)},P}return Object(T.a)(R,[{key:"getClassName",value:function(){var N=this.props,M=N.prefixCls,z=N.index,X=N.value,k=N.allowHalf,F=N.focused,U=z+1,L=M;return X===0&&z===0&&F?L+=" ".concat(M,"-focused"):k&&X+.5>=U&&X<U?(L+=" ".concat(M,"-half ").concat(M,"-active"),F&&(L+=" ".concat(M,"-focused"))):(L+=U<=X?" ".concat(M,"-full"):" ".concat(M,"-zero"),U===X&&F&&(L+=" ".concat(M,"-focused"))),L}},{key:"render",value:function(){var N=this.onHover,M=this.onClick,z=this.onKeyDown,X=this.props,k=X.disabled,F=X.prefixCls,U=X.character,L=X.characterRender,B=X.index,Z=X.count,re=X.value,me=typeof U=="function"?U(this.props):U,Ee=p.a.createElement("li",{className:this.getClassName()},p.a.createElement("div",{onClick:k?null:M,onKeyDown:k?null:z,onMouseMove:k?null:N,role:"radio","aria-checked":re>B?"true":"false","aria-posinset":B+1,"aria-setsize":Z,tabIndex:k?-1:0},p.a.createElement("div",{className:"".concat(F,"-first")},me),p.a.createElement("div",{className:"".concat(F,"-second")},me)));return L&&(Ee=L(Ee,this.props)),Ee}}]),R}(p.a.Component);function f(S,D){var R=Object.keys(S);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(S);D&&(P=P.filter(function(N){return Object.getOwnPropertyDescriptor(S,N).enumerable})),R.push.apply(R,P)}return R}function h(S){for(var D=1;D<arguments.length;D++){var R=arguments[D]!=null?arguments[D]:{};D%2?f(Object(R),!0).forEach(function(P){Object(I.a)(S,P,R[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(R)):f(Object(R)).forEach(function(P){Object.defineProperty(S,P,Object.getOwnPropertyDescriptor(R,P))})}return S}function u(S){var D=E();return function(){var P=Object(s.a)(S),N;if(D){var M=Object(s.a)(this).constructor;N=Reflect.construct(P,arguments,M)}else N=P.apply(this,arguments);return Object(g.a)(this,N)}}function E(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}function x(){}var O=function(S){Object(b.a)(R,S);var D=u(R);function R(P){var N;Object(v.a)(this,R),N=D.call(this,P),N.onHover=function(z,X){var k=N.props.onHoverChange,F=N.getStarValue(X,z.pageX),U=N.state.cleanedValue;F!==U&&N.setState({hoverValue:F,cleanedValue:null}),k(F)},N.onMouseLeave=function(){var z=N.props.onHoverChange;N.setState({hoverValue:void 0,cleanedValue:null}),z(void 0)},N.onClick=function(z,X){var k=N.props.allowClear,F=N.state.value,U=N.getStarValue(X,z.pageX),L=!1;k&&(L=U===F),N.onMouseLeave(),N.changeValue(L?0:U),N.setState({cleanedValue:L?U:null})},N.onFocus=function(){var z=N.props.onFocus;N.setState({focused:!0}),z&&z()},N.onBlur=function(){var z=N.props.onBlur;N.setState({focused:!1}),z&&z()},N.onKeyDown=function(z){var X=z.keyCode,k=N.props,F=k.count,U=k.allowHalf,L=k.onKeyDown,B=k.direction,Z=B==="rtl",re=N.state.value;X===l.a.RIGHT&&re<F&&!Z?(U?re+=.5:re+=1,N.changeValue(re),z.preventDefault()):X===l.a.LEFT&&re>0&&!Z||X===l.a.RIGHT&&re>0&&Z?(U?re-=.5:re-=1,N.changeValue(re),z.preventDefault()):X===l.a.LEFT&&re<F&&Z&&(U?re+=.5:re+=1,N.changeValue(re),z.preventDefault()),L&&L(z)},N.saveRef=function(z){return function(X){N.stars[z]=X}},N.saveRate=function(z){N.rate=z};var M=P.value;return M===void 0&&(M=P.defaultValue),N.stars={},N.state={value:M,focused:!1,cleanedValue:null},N}return Object(T.a)(R,[{key:"componentDidMount",value:function(){var N=this.props,M=N.autoFocus,z=N.disabled;M&&!z&&this.focus()}},{key:"getStarDOM",value:function(N){return Object(e.a)(this.stars[N])}},{key:"getStarValue",value:function(N,M){var z=this.props,X=z.allowHalf,k=z.direction,F=k==="rtl",U=N+1;if(X){var L=this.getStarDOM(N),B=t(L),Z=L.clientWidth;(F&&M-B>Z/2||!F&&M-B<Z/2)&&(U-=.5)}return U}},{key:"focus",value:function(){var N=this.props.disabled;N||this.rate.focus()}},{key:"blur",value:function(){var N=this.props.disabled;N||this.rate.blur()}},{key:"changeValue",value:function(N){var M=this.props.onChange;"value"in this.props||this.setState({value:N}),M(N)}},{key:"render",value:function(){for(var N=this.props,M=N.count,z=N.allowHalf,X=N.style,k=N.prefixCls,F=N.disabled,U=N.className,L=N.character,B=N.characterRender,Z=N.tabIndex,re=N.direction,me=this.state,Ee=me.value,De=me.hoverValue,te=me.focused,Ce=[],we=F?"".concat(k,"-disabled"):"",ce=0;ce<M;ce+=1)Ce.push(p.a.createElement(d,{ref:this.saveRef(ce),index:ce,count:M,disabled:F,prefixCls:"".concat(k,"-star"),allowHalf:z,value:De===void 0?Ee:De,onClick:this.onClick,onHover:this.onHover,key:ce,character:L,characterRender:B,focused:te}));var le=n()(k,we,U,Object(I.a)({},"".concat(k,"-rtl"),re==="rtl"));return p.a.createElement("ul",{className:le,style:X,onMouseLeave:F?null:this.onMouseLeave,tabIndex:F?-1:Z,onFocus:F?null:this.onFocus,onBlur:F?null:this.onBlur,onKeyDown:F?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Ce)}}],[{key:"getDerivedStateFromProps",value:function(N,M){return"value"in N&&N.value!==void 0?h(h({},M),{},{value:N.value}):M}}]),R}(p.a.Component);O.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:x,character:"\u2605",onHoverChange:x,tabIndex:0,direction:"ltr"};var C=O,w=W.a=C},"9Bee":function(j,W,y){"use strict";var I=y("DYRE"),v=y("zeV3"),T=y("+L6B"),b=y("2/Rp"),g=y("k1fw"),s=y("9og8"),_=y("tJVT"),p=y("WmNS"),e=y.n(p),a=y("q1tI"),n=y.n(a),l=y("vg9a"),r=y("DlQD"),i=y.n(r),t=y("rUJ1");function o(ge,V){var J=ge.match(/^(\s+)(?:```)/);if(J===null)return V;var ie=J[1];return V.split(`
`).map(function(Re){var he=Re.match(/^\s+/);if(he===null)return Re;var it=Object(_.a)(he,1),Ut=it[0];return Ut.length>=ie.length?Re.slice(ie.length):Re}).join(`
`)}var c=[],d=["<ul>"],f=new i.a.Renderer,h=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function u(){c.length=0,d=["<ul>"]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function x(ge,V,J,ie){if(V>=ge.length||ge[V].level<=J)return V;var Re=ge[V];ie.push("<li><a href='#"+Re.anchor+"'>"+Re.text+"</a>"),V++;var he=[];return V=x(ge,V,Re.level,he),he.length>0&&(ie.push("<ul>"),he.forEach(function(it){ie.push(it)}),ie.push("</ul>")),ie.push("</li>"),V=x(ge,V,J,ie),V}function O(){return x(c,0,0,d),d.push("</ul>"),d.join("")}var C={heading:function(V){var J=h.exec(V);if(J)return{type:"heading",raw:J[0],depth:J[1].length,text:J[2]}},fences:function(V){var J=this.rules.block.fences.exec(V);if(J){var ie=J[0],Re=o(ie,J[3]||""),he=J[2]?J[2].trim():J[2];if(["latex","katex","math"].indexOf(he)>=0){var it=D(),Ut=Re;Re=it,R[it]={type:"block",expression:Ut}}return{type:"code",raw:ie,lang:he,text:Re}}}},w=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,D=function(){return"__special_katext_id_".concat(S++,"__")},R={};function P(){return R}function N(){S=0,R={}}function M(ge){return ge=ge.replace(w,function(V,J){var ie=D();return R[ie]={type:"inline",expression:J},ie}),ge}var z=f.listitem;f.listitem=function(ge){return z(M(ge))};var X=f.paragraph;f.paragraph=function(ge){return X(M(ge))};var k=f.tablecell;f.tablecell=function(ge,V){return k(M(ge),V)},f.code=function(ge,V,J){var ie=(V||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"<p class='editormd-tex'>".concat(ge,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(V,'">').concat(J?ge:Object(t.escape)(ge,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(J?ge:Object(t.escape)(ge,!0))+"</code></pre>"},f.heading=function(ge,V,J){var ie=this.options.headerPrefix+J.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return c.push({anchor:ie,level:V,text:ge}),"<h"+V+' id="'+ie+'">'+ge+"</h"+V+">"},i.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),i.a.use({tokenizer:C,renderer:f});var F=i.a,U=y("SJMd"),L=y("ulZh"),B=y.n(L),Z=y("m3rI"),re=y("Oy/b"),me=y("p5ED"),Ee=y("ErOA");/*! *****************************************************************************
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 De=function(ge,V){return(De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ie){J.__proto__=ie}||function(J,ie){for(var Re in ie)Object.prototype.hasOwnProperty.call(ie,Re)&&(J[Re]=ie[Re])})(ge,V)};function te(ge,V){function J(){this.constructor=ge}De(ge,V),ge.prototype=V===null?Object.create(V):(J.prototype=V.prototype,new J)}function Ce(ge,V,J,ie){return new(J||(J=Promise))(function(Re,he){function it(an){try{Jt(ie.next(an))}catch(Pt){he(Pt)}}function Ut(an){try{Jt(ie.throw(an))}catch(Pt){he(Pt)}}function Jt(an){var Pt;an.done?Re(an.value):(Pt=an.value,Pt instanceof J?Pt:new J(function(cn){cn(Pt)})).then(it,Ut)}Jt((ie=ie.apply(ge,V||[])).next())})}function we(ge,V){var J,ie,Re,he,it={label:0,sent:function(){if(1&Re[0])throw Re[1];return Re[1]},trys:[],ops:[]};return he={next:Ut(0),throw:Ut(1),return:Ut(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Ut(Jt){return function(an){return function(Pt){if(J)throw new TypeError("Generator is already executing.");for(;it;)try{if(J=1,ie&&(Re=2&Pt[0]?ie.return:Pt[0]?ie.throw||((Re=ie.return)&&Re.call(ie),0):ie.next)&&!(Re=Re.call(ie,Pt[1])).done)return Re;switch(ie=0,Re&&(Pt=[2&Pt[0],Re.value]),Pt[0]){case 0:case 1:Re=Pt;break;case 4:return it.label++,{value:Pt[1],done:!1};case 5:it.label++,ie=Pt[1],Pt=[0];continue;case 7:Pt=it.ops.pop(),it.trys.pop();continue;default:if(!(Re=it.trys,(Re=Re.length>0&&Re[Re.length-1])||Pt[0]!==6&&Pt[0]!==2)){it=0;continue}if(Pt[0]===3&&(!Re||Pt[1]>Re[0]&&Pt[1]<Re[3])){it.label=Pt[1];break}if(Pt[0]===6&&it.label<Re[1]){it.label=Re[1],Re=Pt;break}if(Re&&it.label<Re[2]){it.label=Re[2],it.ops.push(Pt);break}Re[2]&&it.ops.pop(),it.trys.pop();continue}Pt=V.call(ge,it)}catch(cn){Pt=[6,cn],ie=0}finally{J=Re=0}if(5&Pt[0])throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}([Jt,an])}}}function ce(){for(var ge=0,V=0,J=arguments.length;V<J;V++)ge+=arguments[V].length;var ie=Array(ge),Re=0;for(V=0;V<J;V++)for(var he=arguments[V],it=0,Ut=he.length;it<Ut;it++,Re++)ie[Re]=he[it];return ie}var le=function(){function ge(){}return ge.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ge.setAttributes=function(V,J){for(var ie=0,Re=J;ie<Re.length;ie++){var he=Re[ie],it=he[0],Ut=he[1];V.setAttribute(it,Ut)}},ge.createRect=function(V,J,ie){var Re=document.createElementNS("http://www.w3.org/2000/svg","rect");return Re.setAttribute("width",V.toString()),Re.setAttribute("height",J.toString()),ie&&ge.setAttributes(Re,ie),Re},ge.createLine=function(V,J,ie,Re,he){var it=document.createElementNS("http://www.w3.org/2000/svg","line");return it.setAttribute("x1",V.toString()),it.setAttribute("y1",J.toString()),it.setAttribute("x2",ie.toString()),it.setAttribute("y2",Re.toString()),he&&ge.setAttributes(it,he),it},ge.createPolygon=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",V),J&&ge.setAttributes(ie,J),ie},ge.createCircle=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(V/2).toString()),ie.setAttribute("cy",(V/2).toString()),ie.setAttribute("r",V.toString()),J&&ge.setAttributes(ie,J),ie},ge.createEllipse=function(V,J,ie){var Re=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Re.setAttribute("cx",(V/2).toString()),Re.setAttribute("cy",(J/2).toString()),Re.setAttribute("rx",(V/2).toString()),Re.setAttribute("ry",(J/2).toString()),ie&&ge.setAttributes(Re,ie),Re},ge.createGroup=function(V){var J=document.createElementNS("http://www.w3.org/2000/svg","g");return V&&ge.setAttributes(J,V),J},ge.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ge.createMarker=function(V,J,ie,Re,he,it,Ut){var Jt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ge.setAttributes(Jt,[["id",V],["orient",J],["markerWidth",ie.toString()],["markerHeight",Re.toString()],["refX",he.toString()],["refY",it.toString()]]),Jt.appendChild(Ut),Jt},ge.createText=function(V){var J=document.createElementNS("http://www.w3.org/2000/svg","text");return J.setAttribute("x","0"),J.setAttribute("y","0"),V&&ge.setAttributes(J,V),J},ge.createTSpan=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=V,J&&ge.setAttributes(ie,J),ie},ge.createImage=function(V){var J=document.createElementNS("http://www.w3.org/2000/svg","image");return V&&ge.setAttributes(J,V),J},ge.createPoint=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=V,ie.y=J,ie},ge.createPath=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",V),J&&ge.setAttributes(ie,J),ie},ge}(),oe=function(){function ge(){}return ge.addKey=function(V){ge.key=V},Object.defineProperty(ge,"isLicensed",{get:function(){return!!ge.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ge.key)},enumerable:!1,configurable:!0}),ge}(),xe=function(){function ge(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ge.prototype.rasterize=function(V,J,ie){var Re=this;return new Promise(function(he){var it=ie!==void 0?ie:document.createElement("canvas");V===null&&(Re.markersOnly=!0,Re.naturalSize=!1);var Ut=document.createElementNS("http://www.w3.org/2000/svg","svg");Ut.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ut.setAttribute("width",J.width.baseVal.valueAsString),Ut.setAttribute("height",J.height.baseVal.valueAsString),Ut.setAttribute("viewBox","0 0 "+J.viewBox.baseVal.width.toString()+" "+J.viewBox.baseVal.height.toString()),Ut.innerHTML=J.innerHTML,Re.naturalSize===!0?(Ut.width.baseVal.value=V.naturalWidth,Ut.height.baseVal.value=V.naturalHeight):Re.width!==void 0&&Re.height!==void 0&&(Ut.width.baseVal.value=Re.width,Ut.height.baseVal.value=Re.height),it.width=Ut.width.baseVal.value,it.height=Ut.height.baseVal.value;var Jt=Ut.outerHTML,an=it.getContext("2d");Re.markersOnly!==!0&&an.drawImage(V,0,0,it.width,it.height);var Pt=window.URL,cn=new Image(it.width,it.height);cn.setAttribute("crossOrigin","anonymous");var Rn=new Blob([Jt],{type:"image/svg+xml"}),Jn=Pt.createObjectURL(Rn);cn.onload=function(){an.drawImage(cn,0,0),Pt.revokeObjectURL(Jn);var ir=it.toDataURL(Re.imageType,Re.imageQuality);he(ir)},cn.src=Jn})},ge}(),q=function(){},se=function(){function ge(V){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+V+"_"}return Object.defineProperty(ge.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ge.prototype.addClass=function(V){return this.styleSheet===void 0&&this.addStyleSheet(),V.name=""+this.classNamePrefix+V.localName,this.classes.push(V),this.styleSheet.sheet.insertRule("."+V.name+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length),V},ge.prototype.addRule=function(V){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(V),this.styleSheet.sheet.insertRule(V.selector+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length)},ge.prototype.addStyleSheet=function(){var V;this.styleSheet=document.createElement("style"),((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).appendChild(this.styleSheet),this.addRule(new Ne("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ne("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ne("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new de("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new de("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ge.prototype.removeStyleSheet=function(){var V;this.styleSheet&&(((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ge}(),Ne=function(ge,V){this.selector=ge,this.style=V},de=function(ge,V){this.localName=ge,this.style=V},$=function(){function ge(V,J,ie,Re,he){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=V,this.displayMode=J,this.markerItems=ie,this.uiStyleSettings=Re,this.styles=he,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ge.prototype.show=function(V){var J=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=V,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ie=document.createElement("div");ie.className=this.toolbarBlockStyleClass.name,ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(ie),this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(he){var it=document.createElement("div");it.className=""+J.toolbarButtonStyleClass.name,it.setAttribute("data-type-name",he.typeName),it.innerHTML=he.icon,it.addEventListener("click",function(){J.markerToolbarButtonClicked(it,he)}),J.buttons.push(it),J.markerButtons.push(it)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Re=document.createElement("div");Re.className=this.toolbarBlockStyleClass.name,Re.style.whiteSpace="nowrap",Re.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Re),this.addActionButton(Re,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Re,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ge.prototype.addButtonClickListener=function(V){this.buttonClickListeners.push(V)},ge.prototype.removeButtonClickListener=function(V){this.buttonClickListeners.indexOf(V)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(V),1)},ge.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ge.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var V=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var J=0;J<this.markerButtons.length;J++)J<V||J===V&&this.markerButtons.length-1===V?this.markerButtonBlock.appendChild(this.markerButtons[J]):(J===V&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[J]))}},ge.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ge.prototype.resetButtonStyles=function(){var V=this;this.buttons.forEach(function(J){J.className=J.className.replace(V.uiStyleSettings.toolbarButtonStyleColorsClassName?V.uiStyleSettings.toolbarButtonStyleColorsClassName:V.toolbarButtonStyleColorsClass.name,"").trim(),J.className=J.className.replace(V.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?V.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:V.toolbarActiveButtonStyleColorsClass.name,"").trim(),J.className+=" "+(V.uiStyleSettings.toolbarButtonStyleColorsClassName?V.uiStyleSettings.toolbarButtonStyleColorsClassName:V.toolbarButtonStyleColorsClass.name)})},ge.prototype.addActionButton=function(V,J,ie){var Re=this,he=document.createElement("div");switch(he.className=""+this.toolbarButtonStyleClass.name,he.innerHTML=J,he.setAttribute("data-action",ie),he.addEventListener("click",function(){Re.actionToolbarButtonClicked(he,ie)}),ie){case"select":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":he.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":he.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":he.style.fill=this.uiStyleSettings.closeButtonColor}V.appendChild(he),this.buttons.push(he)},ge.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new de("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new de("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new de("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new de("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new de("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var V=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new de("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
padding: `+V+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new de("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ne("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ne("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ge.prototype.markerToolbarButtonClicked=function(V,J){this.setActiveButton(V),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",J)}),this.markerButtonOverflowBlock.style.display="none"},ge.prototype.actionToolbarButtonClicked=function(V,J){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",J)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ge.prototype.setActiveButton=function(V){this.resetButtonStyles(),V.className=V.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),V.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ge.prototype.setActiveMarkerButton=function(V){var J=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===V});J&&this.setActiveButton(J)},ge.prototype.setCurrentMarker=function(V){var J=this;this.currentMarker=V,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){J.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ge}(),Q=function(){function ge(V,J,ie,Re){this.panels=[],this.panelButtons=[],this.markerjsContainer=V,this.displayMode=J,this.uiStyleSettings=ie,this.styles=Re,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ge.prototype.addStyles=function(){var V;this.toolboxStyleClass=this.styles.addClass(new de("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new de("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var J=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new de("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new de("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new de("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new de("toolbox-panel-row_colors",`
background-color: `+((V=this.uiStyleSettings.toolboxBackgroundColor)!==null&&V!==void 0?V:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new de("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*J)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*J)+`px;
padding: `+J+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new de("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Ne("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ne("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ge.prototype.show=function(V){var J;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=V,this.uiContainer.className=this.toolboxStyleClass.name+" "+((J=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&J!==void 0?J:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ge.prototype.setPanelButtons=function(V){var J,ie,Re=this;this.panels=V,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((J=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&J!==void 0?J:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(he){var it;he.uiStyleSettings=Re.uiStyleSettings;var Ut=document.createElement("div");Ut.className=Re.toolboxButtonStyleClass.name+" "+((it=Re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&it!==void 0?it:Re.toolboxButtonStyleColorsClass.name),Ut.innerHTML=he.icon,Ut.title=he.title,Ut.addEventListener("click",function(){Re.panelButtonClick(he)}),Re.panelButtons.push(Ut),Re.buttonRow.appendChild(Ut)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ge.prototype.panelButtonClick=function(V){var J=this,ie=-1;if(V!==this.activePanel){ie=this.panels.indexOf(V),this.panelRow.innerHTML="";var Re=V.getUi();Re.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Re),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=V}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){J.displayMode==="inline"?J.panelRow.style.display="none":J.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(he,it){var Ut,Jt;he.className=J.toolboxButtonStyleClass.name+" "+(it===ie?""+((Ut=J.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ut!==void 0?Ut:J.toolboxActiveButtonStyleColorsClass.name):""+((Jt=J.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Jt!==void 0?Jt:J.toolboxButtonStyleColorsClass.name))})},ge}(),Y=function(ge,V){this.title=ge,this.icon=V},ue=function(ge){function V(J,ie,Re,he){var it=ge.call(this,J,he||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return it.colors=[],it.addTransparent=!1,it.colorBoxes=[],it.colors=ie,it.currentColor=Re,it.setCurrentColor=it.setCurrentColor.bind(it),it.getColorBox=it.getColorBox.bind(it),it}return te(V,ge),V.prototype.getUi=function(){var J=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(Re){var he=J.getColorBox(Re);ie.appendChild(he),J.colorBoxes.push(he)}),ie},V.prototype.getColorBox=function(J){var ie=this,Re=this.uiStyleSettings.toolbarHeight/4,he=this.uiStyleSettings.toolbarHeight-Re,it=document.createElement("div");it.style.display="inline-block",it.style.boxSizing="content-box",it.style.width=he-2+"px",it.style.height=he-2+"px",it.style.padding="1px",it.style.marginRight="2px",it.style.marginBottom="2px",it.style.borderWidth="2px",it.style.borderStyle="solid",it.style.borderRadius=(he+2)/2+"px",it.style.borderColor=J===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",it.addEventListener("click",function(){ie.setCurrentColor(J,it)});var Ut=document.createElement("div");return Ut.style.display="inline-block",Ut.style.width=he-2+"px",Ut.style.height=he-2+"px",Ut.style.backgroundColor=J,Ut.style.borderRadius=he/2+"px",J==="transparent"&&(Ut.style.fill=this.uiStyleSettings.toolboxAccentColor,Ut.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),it.appendChild(Ut),it},V.prototype.setCurrentColor=function(J,ie){var Re=this;this.currentColor=J,this.colorBoxes.forEach(function(he){he.style.borderColor=he===ie?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(J)},V}(Y),ae=function(){function ge(V,J,ie){this._state="new",this._isSelected=!1,this._container=V,this._overlayContainer=J,this.globalSettings=ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ge.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ge.prototype.ownsTarget=function(V){return!1},Object.defineProperty(ge.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ge.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ge.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ge.prototype.pointerDown=function(V,J){},ge.prototype.dblClick=function(V,J){},ge.prototype.manipulate=function(V){},ge.prototype.pointerUp=function(V){this.stateChanged()},ge.prototype.dispose=function(){},ge.prototype.addMarkerVisualToContainer=function(V){this.container.childNodes.length>0?this.container.insertBefore(V,this.container.childNodes[0]):this.container.appendChild(V)},ge.prototype.getState=function(){return{typeName:ge.typeName,state:this.state,notes:this.notes}},ge.prototype.restoreState=function(V){this._state=V.state,this.notes=V.notes},ge.prototype.scale=function(V,J){},ge.prototype.colorChanged=function(V){this.onColorChanged&&this.onColorChanged(V),this.stateChanged()},ge.prototype.fillColorChanged=function(V){this.onFillColorChanged&&this.onFillColorChanged(V),this.stateChanged()},ge.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var V=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),V.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(V)&&this.onStateChanged(this)}},ge.typeName="MarkerBase",ge}(),be=function(){function ge(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ge.prototype.findGripByVisual=function(V){return this.topLeft.ownsTarget(V)?this.topLeft:this.topCenter.ownsTarget(V)?this.topCenter:this.topRight.ownsTarget(V)?this.topRight:this.centerLeft.ownsTarget(V)?this.centerLeft:this.centerRight.ownsTarget(V)?this.centerRight:this.bottomLeft.ownsTarget(V)?this.bottomLeft:this.bottomCenter.ownsTarget(V)?this.bottomCenter:this.bottomRight.ownsTarget(V)?this.bottomRight:void 0},ge}(),Ie=function(){function ge(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ge.prototype.ownsTarget=function(V){return V===this.visual||V===this.visual.childNodes[0]||V===this.visual.childNodes[1]},ge}(),pe=function(){function ge(){}return ge.toITransformMatrix=function(V){return{a:V.a,b:V.b,c:V.c,d:V.d,e:V.e,f:V.f}},ge.toSVGMatrix=function(V,J){return V.a=J.a,V.b=J.b,V.c=J.c,V.d=J.d,V.e=J.e,V.f=J.f,V},ge}(),Le=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.left=0,he.top=0,he.width=0,he.height=0,he.defaultSize={x:50,y:20},he.offsetX=0,he.offsetY=0,he.rotationAngle=0,he.CB_DISTANCE=10,he._suppressMarkerCreateEvent=!1,he.container.transform.baseVal.appendItem(le.createTransform()),he.setupControlBox(),he}return te(V,ge),Object.defineProperty(V.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"visual",{get:function(){return this._visual},set:function(J){this._visual=J;var ie=le.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(J){return!!ge.prototype.ownsTarget.call(this,J)||!!(this.controlGrips.findGripByVisual(J)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(J))},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.state==="new"&&(this.left=J.x,this.top=J.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Re=this.unrotatePoint(J);if(this.manipulationStartX=Re.x,this.manipulationStartY=Re.y,this.offsetX=Re.x-this.left,this.offsetY=Re.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){this.activeGrip=this.rotatorGrip;var he=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=he.x-this.width/2,this.top=he.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var it=this.container.transform.baseVal.getItem(0);it.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(it,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},V.prototype.pointerUp=function(J){var ie=this.state;ge.prototype.pointerUp.call(this,J),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(J),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},V.prototype.moveVisual=function(J){this.visual.style.transform="translate("+J.x+"px, "+J.y+"px)"},V.prototype.manipulate=function(J){var ie=this.unrotatePoint(J);this.state==="creating"?this.resize(J):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(J)},V.prototype.resize=function(J){var ie=this.manipulationStartLeft,Re=this.manipulationStartWidth,he=this.manipulationStartTop,it=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+J.x-this.manipulationStartX,Re=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Re=this.manipulationStartWidth+J.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:he=this.manipulationStartTop+J.y-this.manipulationStartY,it=this.manipulationStartHeight+this.manipulationStartTop-he;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:it=this.manipulationStartHeight+J.y-this.manipulationStartY}Re>=0?(this.left=ie,this.width=Re):(this.left=ie+Re,this.width=-Re),it>=0?(this.top=he,this.height=it):(this.top=he+it,this.height=-it),this.setSize()},V.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},V.prototype.rotate=function(J){if(Math.abs(J.x-this.centerX)>.1){var ie=Math.sign(J.x-this.centerX);this.rotationAngle=180*Math.atan((J.y-this.centerY)/(J.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},V.prototype.applyRotation=function(){var J=this.container.transform.baseVal.getItem(0);J.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(J,0)},V.prototype.rotatePoint=function(J){if(this.rotationAngle===0)return J;var ie=this.container.getCTM(),Re=le.createPoint(J.x,J.y);return{x:(Re=Re.matrixTransform(ie)).x,y:Re.y}},V.prototype.unrotatePoint=function(J){if(this.rotationAngle===0)return J;var ie=this.container.getCTM();ie=ie.inverse();var Re=le.createPoint(J.x,J.y);return{x:(Re=Re.matrixTransform(ie)).x,y:Re.y}},V.prototype.select=function(){ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},V.prototype.deselect=function(){ge.prototype.deselect.call(this),this.controlBox.style.display="none"},V.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var J=le.createTransform();J.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(J),this.container.appendChild(this.controlBox),this.controlRect=le.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=le.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new be,this.addControlGrips(),this.controlBox.style.display="none"},V.prototype.adjustControlBox=function(){var J=this.controlBox.transform.baseVal.getItem(0);J.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(J,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},V.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},V.prototype.createGrip=function(){var J=new Ie;return J.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(J.visual),J},V.prototype.positionGrips=function(){var J=this.controlGrips.topLeft.GRIP_SIZE,ie=-J/2,Re=ie,he=(this.width+this.CB_DISTANCE)/2-J/2,it=(this.height+this.CB_DISTANCE)/2-J/2,Ut=this.height+this.CB_DISTANCE-J/2,Jt=this.width+this.CB_DISTANCE-J/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,Re),this.positionGrip(this.controlGrips.topCenter.visual,he,Re),this.positionGrip(this.controlGrips.topRight.visual,Jt,Re),this.positionGrip(this.controlGrips.centerLeft.visual,ie,it),this.positionGrip(this.controlGrips.centerRight.visual,Jt,it),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Ut),this.positionGrip(this.controlGrips.bottomCenter.visual,he,Ut),this.positionGrip(this.controlGrips.bottomRight.visual,Jt,Ut),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,he,Re-3*this.CB_DISTANCE)},V.prototype.positionGrip=function(J,ie,Re){var he=J.transform.baseVal.getItem(0);he.setTranslate(ie,Re),J.transform.baseVal.replaceItem(he,0)},V.prototype.hideControlBox=function(){this.controlBox.style.display="none"},V.prototype.showControlBox=function(){this.controlBox.style.display=""},V.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:pe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:pe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ge.prototype.getState.call(this))},V.prototype.restoreState=function(J){ge.prototype.restoreState.call(this,J);var ie=J;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},V.prototype.scale=function(J,ie){ge.prototype.scale.call(this,J,ie);var Re=this.rotatePoint({x:this.left,y:this.top}),he=this.unrotatePoint({x:Re.x*J,y:Re.y*ie});this.left=he.x,this.top=he.y,this.width=this.width*J,this.height=this.height*ie,this.adjustControlBox()},V}(ae),ve=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.createVisual=he.createVisual.bind(he),he}return te(V,ge),V.prototype.ownsTarget=function(J){return!(!ge.prototype.ownsTarget.call(this,J)&&J!==this.visual)},V.prototype.createVisual=function(){this.visual=le.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(J),this._state="creating")},V.prototype.manipulate=function(J){ge.prototype.manipulate.call(this,J)},V.prototype.resize=function(J){ge.prototype.resize.call(this,J),this.setSize()},V.prototype.setSize=function(){ge.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},V.prototype.pointerUp=function(J){ge.prototype.pointerUp.call(this,J),this.setSize()},V.prototype.setStrokeColor=function(J){this.strokeColor=J,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(J),this.stateChanged()},V.prototype.setFillColor=function(J){this.fillColor=J,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},V.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},V.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},V.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ge.prototype.getState.call(this))},V.prototype.restoreState=function(J){var ie=J;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ge.prototype.restoreState.call(this,J),this.setSize()},V.prototype.scale=function(J,ie){ge.prototype.scale.call(this,J,ie),this.setSize()},V.title="Rectangle marker",V}(Le),Xe=function(ge){function V(J,ie,Re,he){var it=ge.call(this,J,he||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return it.widths=[],it.widthBoxes=[],it.widths=ie,it.currentWidth=Re,it.setCurrentWidth=it.setCurrentWidth.bind(it),it}return te(V,ge),V.prototype.getUi=function(){var J=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(Re){var he=document.createElement("div");he.style.display="flex",he.style.flexGrow="2",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Re===J.currentWidth?J.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){J.setCurrentWidth(Re,he)}),ie.appendChild(he);var it=document.createElement("div");it.innerText=Re.toString(),it.style.marginRight="5px",he.appendChild(it);var Ut=document.createElement("div");Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.display="flex",Ut.style.alignItems="center";var Jt=document.createElement("hr");Jt.style.minWidth="20px",Jt.style.border="0px",Jt.style.borderTop=Re+"px solid "+J.uiStyleSettings.toolboxColor,Jt.style.flexGrow="2",Ut.appendChild(Jt),he.appendChild(Ut),J.widthBoxes.push(he)}),ie},V.prototype.setCurrentWidth=function(J,ie){var Re=this;this.currentWidth=J,this.widthBoxes.forEach(function(he){he.style.borderColor=he===ie?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},V}(Y),$e=function(ge){function V(J,ie,Re,he){var it=ge.call(this,J,he||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return it.styles=[],it.styleBoxes=[],it.styles=ie,it.currentStyle=Re,it.setCurrentStyle=it.setCurrentStyle.bind(it),it}return te(V,ge),V.prototype.getUi=function(){var J=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(Re){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/J.styles.length-5+"%",he.style.borderColor=Re===J.currentStyle?J.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){J.setCurrentStyle(Re,he)}),ie.appendChild(he);var it=document.createElement("div");it.style.minHeight="20px",it.style.flexGrow="2",it.style.overflow="hidden";var Ut=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+J.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Re!==""?'stroke-dasharray="'+Re+'"':"")+` />
</svg>`;it.innerHTML=Ut,he.appendChild(it),J.styleBoxes.push(he)}),ie},V.prototype.setCurrentStyle=function(J,ie){var Re=this;this.currentStyle=J,this.styleBoxes.forEach(function(he){he.style.borderColor=he===ie?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},V}(Y),Ge=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.strokeColor=Re.defaultColor,he.strokeWidth=Re.defaultStrokeWidth,he.strokeDasharray=Re.defaultStrokeDasharray,he.strokePanel=new ue("Line color",Re.defaultColorSet,Re.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Xe("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new $e("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return te(V,ge),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=ge.prototype.getState.call(this);return J.typeName=V.typeName,J},V.typeName="FrameMarker",V.title="Frame marker",V.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',V}(ve),Me=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},gt=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.x1=0,he.y1=0,he.x2=0,he.y2=0,he.defaultLength=50,he.manipulationStartX=0,he.manipulationStartY=0,he.manipulationStartX1=0,he.manipulationStartY1=0,he.manipulationStartX2=0,he.manipulationStartY2=0,he.setupControlBox(),he}return te(V,ge),V.prototype.ownsTarget=function(J){return!!ge.prototype.ownsTarget.call(this,J)||!(!this.grip1.ownsTarget(J)&&!this.grip2.ownsTarget(J))},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.manipulationStartX=J.x,this.manipulationStartY=J.y,this.state==="new"&&(this.x1=J.x,this.y1=J.y,this.x2=J.x,this.y2=J.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},V.prototype.pointerUp=function(J){var ie=this.state;ge.prototype.pointerUp.call(this,J),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(J),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},V.prototype.adjustVisual=function(){},V.prototype.manipulate=function(J){this.state==="creating"?this.resize(J):this.state==="move"?(this.x1=this.manipulationStartX1+J.x-this.manipulationStartX,this.y1=this.manipulationStartY1+J.y-this.manipulationStartY,this.x2=this.manipulationStartX2+J.x-this.manipulationStartX,this.y2=this.manipulationStartY2+J.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(J)},V.prototype.resize=function(J){switch(this.activeGrip){case this.grip1:this.x1=J.x,this.y1=J.y;break;case this.grip2:case void 0:this.x2=J.x,this.y2=J.y}this.adjustVisual(),this.adjustControlBox()},V.prototype.select=function(){ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},V.prototype.deselect=function(){ge.prototype.deselect.call(this),this.controlBox.style.display="none"},V.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},V.prototype.adjustControlBox=function(){this.positionGrips()},V.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},V.prototype.createGrip=function(){var J=new Ie;return J.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(J.visual),J},V.prototype.positionGrips=function(){var J=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-J/2,this.y1-J/2),this.positionGrip(this.grip2.visual,this.x2-J/2,this.y2-J/2)},V.prototype.positionGrip=function(J,ie,Re){var he=J.transform.baseVal.getItem(0);he.setTranslate(ie,Re),J.transform.baseVal.replaceItem(he,0)},V.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ge.prototype.getState.call(this))},V.prototype.restoreState=function(J){ge.prototype.restoreState.call(this,J);var ie=J;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},V.prototype.scale=function(J,ie){ge.prototype.scale.call(this,J,ie),this.x1=this.x1*J,this.y1=this.y1*ie,this.x2=this.x2*J,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},V}(ae),Te=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.strokeColor=Re.defaultColor,he.strokeWidth=Re.defaultStrokeWidth,he.strokeDasharray=Re.defaultStrokeDasharray,he.strokePanel=new ue("Line color",Re.defaultColorSet,Re.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Xe("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new $e("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return te(V,ge),V.prototype.ownsTarget=function(J){return!(!ge.prototype.ownsTarget.call(this,J)&&J!==this.visual&&J!==this.selectorLine&&J!==this.visibleLine)},V.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},V.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},V.prototype.setStrokeColor=function(J){this.strokeColor=J,this.adjustVisual(),this.colorChanged(J)},V.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.adjustVisual()},V.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.adjustVisual(),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ge.prototype.getState.call(this));return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){ge.prototype.restoreState.call(this,J);var ie=J;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},V.typeName="LineMarker",V.title="Line marker",V.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',V}(gt),Ye=function(ge){function V(J,ie,Re,he){var it=ge.call(this,J,he||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return it.fonts=[],it.fontBoxes=[],it.fonts=ie,it.currentFont=Re,it.setCurrentFont=it.setCurrentFont.bind(it),it}return te(V,ge),V.prototype.getUi=function(){var J=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(Re){var he=document.createElement("div");he.style.display="inline-block",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/J.fonts.length-5+"%",he.style.borderColor=Re===J.currentFont?J.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){J.setCurrentFont(Re,he)}),ie.appendChild(he);var it=document.createElement("div");it.style.display="flex",it.style.minHeight="20px",it.style.flexGrow="2",it.style.fontFamily=Re,it.style.overflow="hidden";var Ut=document.createElement("div");Ut.style.whiteSpace="nowrap",Ut.style.overflow="hidden",Ut.style.textOverflow="ellipsis",Ut.innerHTML="The quick brown fox jumps over the lazy dog",it.appendChild(Ut),he.appendChild(it),J.fontBoxes.push(he)}),ie},V.prototype.setCurrentFont=function(J,ie){var Re=this;this.currentFont=J,this.fontBoxes.forEach(function(he){he.style.borderColor=he===ie?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},V}(Y),Ze=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.color="transparent",he.padding=5,he.DEFAULT_TEXT="your text here",he.text=he.DEFAULT_TEXT,he.isMoved=!1,he.color=Re.defaultColor,he.fontFamily=Re.defaultFontFamily,he.defaultSize={x:100,y:30},he.setColor=he.setColor.bind(he),he.setFont=he.setFont.bind(he),he.renderText=he.renderText.bind(he),he.sizeText=he.sizeText.bind(he),he.textEditDivClicked=he.textEditDivClicked.bind(he),he.showTextEditor=he.showTextEditor.bind(he),he.setSize=he.setSize.bind(he),he.positionTextEditor=he.positionTextEditor.bind(he),he.colorPanel=new ue("Color",Re.defaultColorSet,Re.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.fontFamilyPanel=new Ye("Font",Re.defaultFontFamilies,Re.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he}return te(V,ge),V.prototype.ownsTarget=function(J){if(ge.prototype.ownsTarget.call(this,J)||J===this.visual||J===this.textElement||J===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(Re){Re===J&&(ie=!0)}),ie},V.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.isMoved=!1,this.pointerDownPoint=J,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(J),this._state="creating")},V.prototype.renderText=function(){var J=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ie){J.textElement.appendChild(le.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},V.prototype.getTextScale=function(){var J=this.textElement.getBBox(),ie=1;if(J.width>0&&J.height>0){var Re=(1*this.width-this.width*this.padding*2/100)/J.width,he=(1*this.height-this.height*this.padding*2/100)/J.height;ie=Math.min(Re,he)}return ie},V.prototype.getTextPosition=function(J){var ie=this.textElement.getBBox(),Re=0,he=0;return ie.width>0&&ie.height>0&&(Re=(this.width-ie.width*J)/2,he=this.height/2-ie.height*J/2),{x:Re,y:he}},V.prototype.sizeText=function(){var J=this.textElement.getBBox(),ie=this.getTextScale(),Re=this.getTextPosition(ie);Re.y-=J.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Re.x+"px, "+Re.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Re.x,Re.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},V.prototype.manipulate=function(J){ge.prototype.manipulate.call(this,J),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(J.x-this.pointerDownPoint.x)>5||Math.abs(J.y-this.pointerDownPoint.y)>5)},V.prototype.resize=function(J){ge.prototype.resize.call(this,J),this.isMoved=!0,this.setSize(),this.sizeText()},V.prototype.setSize=function(){ge.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},V.prototype.pointerUp=function(J){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ge.prototype.pointerUp.call(this,J),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},V.prototype.showTextEditor=function(){var J=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(J.textEditor.style.fontSize);J.textEditor.clientWidth>=Number.parseInt(J.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,J.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var Re=ie.clipboardData.getData("text"),he=window.getSelection();if(!he.rangeCount)return!1;he.deleteFromDocument(),he.getRangeAt(0).insertNode(document.createTextNode(Re)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){J.textEditDivClicked(J.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},V.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var J=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Re=this.textElement.getBBox(),he={x:Re.width*J,y:Re.height*J};ie.x-=he.x/2,ie.y-=he.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*J,12)+"px",this.textElement.style.display="none"}},V.prototype.textEditDivClicked=function(J){this.text=J.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},V.prototype.select=function(){ge.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},V.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ge.prototype.deselect.call(this)},V.prototype.dblClick=function(J,ie){ge.prototype.dblClick.call(this,J,ie),this.showTextEditor()},V.prototype.setColor=function(J){this.textElement&&le.setAttributes(this.textElement,[["fill",J]]),this.color=J,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(J)},V.prototype.setFont=function(J){this.textElement&&le.setAttributes(this.textElement,[["font-family",J]]),this.fontFamily=J,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},V.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},V.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ge.prototype.getState.call(this));return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){var ie=J;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ge.prototype.restoreState.call(this,J),this.setSize()},V.prototype.scale=function(J,ie){ge.prototype.scale.call(this,J,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},V.typeName="TextMarker",V.title="Text marker",V.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',V}(Le),Ve=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.color="transparent",he.lineWidth=3,he.drawing=!1,he.pixelRatio=1,he.color=Re.defaultColor,he.lineWidth=Re.defaultStrokeWidth,he.pixelRatio=Re.freehandPixelRatio,he.setColor=he.setColor.bind(he),he.addCanvas=he.addCanvas.bind(he),he.finishCreation=he.finishCreation.bind(he),he.setLineWidth=he.setLineWidth.bind(he),he.colorPanel=new ue("Color",Re.defaultColorSet,Re.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.lineWidthPanel=new Xe("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),he.lineWidthPanel.onWidthChanged=he.setLineWidth,he}return te(V,ge),V.prototype.ownsTarget=function(J){return!(!ge.prototype.ownsTarget.call(this,J)&&J!==this.visual&&J!==this.drawingImage)},V.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var J=le.createTransform();this.visual.transform.baseVal.appendItem(J),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(J,ie){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(J.x,J.y),this.drawing=!0):ge.prototype.pointerDown.call(this,J,ie)},V.prototype.manipulate=function(J){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(J.x,J.y),this.canvasContext.stroke()):ge.prototype.manipulate.call(this,J)},V.prototype.resize=function(J){ge.prototype.resize.call(this,J),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},V.prototype.pointerUp=function(J){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ge.prototype.pointerUp.call(this,J)},V.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},V.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ge.prototype.select.call(this)},V.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ge.prototype.deselect.call(this)},V.prototype.finishCreation=function(){for(var J=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Re=ie[0],he=ie[1],it=ie[2],Ut=ie[3],Jt=!1,an=0;an<this.canvasElement.height;an++)for(var Pt=0;Pt<this.canvasElement.width;Pt++)J.data[an*this.canvasElement.width*4+4*Pt+3]>0&&(Jt=!0,an<he&&(he=an),Pt<Re&&(Re=Pt),an>Ut&&(Ut=an),Pt>it&&(it=Pt));if(Jt){this.left=Re/this.pixelRatio,this.top=he/this.pixelRatio,this.width=(it-Re)/this.pixelRatio,this.height=(Ut-he)/this.pixelRatio;var cn=document.createElement("canvas");cn.width=it-Re,cn.height=Ut-he,cn.getContext("2d").putImageData(this.canvasContext.getImageData(Re,he,it-Re,Ut-he),0,0),this.drawingImgUrl=cn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},V.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},V.prototype.setColor=function(J){this.color=J,this.colorChanged(J)},V.prototype.setLineWidth=function(J){this.lineWidth=J},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=Object.assign({drawingImgUrl:this.drawingImgUrl},ge.prototype.getState.call(this));return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){this.createVisual(),ge.prototype.restoreState.call(this,J),this.drawingImgUrl=J.drawingImgUrl,this.setDrawingImage()},V.prototype.scale=function(J,ie){ge.prototype.scale.call(this,J,ie),this.setDrawingImage()},V.typeName="FreehandMarker",V.title="Freehand marker",V.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',V}(Le),Fe=function(ge){function V(J,ie,Re){var he=ge.call(this,J,Re||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return he.typeBoxes=[],he.currentType=ie,he.setCurrentType=he.setCurrentType.bind(he),he}return te(V,ge),V.prototype.getUi=function(){var J=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var Re=function(Ut){var Jt="both";switch(Ut){case 0:Jt="both";break;case 1:Jt="start";break;case 2:Jt="end";break;case 3:Jt="none"}var an=document.createElement("div");if(an.style.display="flex",an.style.flexGrow="2",an.style.alignItems="center",an.style.justifyContent="space-between",an.style.padding="5px",an.style.borderWidth="2px",an.style.borderStyle="solid",an.style.borderColor=Jt===he.currentType?he.uiStyleSettings.toolboxAccentColor:"transparent",an.addEventListener("click",function(){J.setCurrentType(Jt,an)}),ie.appendChild(an),Jt==="both"||Jt==="start"){var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Pt.style.marginLeft="5px",an.appendChild(Pt)}var cn=document.createElement("div");cn.style.display="flex",cn.style.alignItems="center",cn.style.minHeight="20px",cn.style.flexGrow="2";var Rn=document.createElement("hr");if(Rn.style.minWidth="20px",Rn.style.border="0px",Rn.style.borderTop="3px solid "+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee"),Rn.style.flexGrow="2",cn.appendChild(Rn),an.appendChild(cn),Jt==="both"||Jt==="end"){var Jn=document.createElement("div");Jn.style.display="flex",Jn.style.alignItems="center",Jn.style.minHeight="20px",Jn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Jn.style.marginRight="5px",an.appendChild(Jn)}he.typeBoxes.push(an)},he=this,it=0;it<4;it++)Re(it);return ie},V.prototype.setCurrentType=function(J,ie){var Re=this;this.currentType=J,this.typeBoxes.forEach(function(he){he.style.borderColor=he===ie?Re.uiStyleSettings!==void 0?Re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},V}(Y),Be=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.arrowType="end",he.arrowBaseHeight=10,he.arrowBaseWidth=10,he.getArrowPoints=he.getArrowPoints.bind(he),he.setArrowType=he.setArrowType.bind(he),he.arrowTypePanel=new Fe("Arrow type","end"),he.arrowTypePanel.onArrowTypeChanged=he.setArrowType,he}return te(V,ge),V.prototype.ownsTarget=function(J){return!(!ge.prototype.ownsTarget.call(this,J)&&J!==this.arrow1&&J!==this.arrow2)},V.prototype.getArrowPoints=function(J,ie){var Re=this.arrowBaseWidth+2*this.strokeWidth,he=this.arrowBaseHeight+2*this.strokeWidth;return J-Re/2+","+(ie+he/2)+" "+J+","+(ie-he/2)+" "+(J+Re/2)+","+(ie+he/2)},V.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.state==="creating"&&this.createTips()},V.prototype.adjustVisual=function(){if(ge.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var J=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(J,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var Re=this.arrow2.transform.baseVal.getItem(0);Re.setRotate(J+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Re,0)}},V.prototype.setArrowType=function(J){this.arrowType=J,this.adjustVisual(),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=Object.assign({arrowType:this.arrowType},ge.prototype.getState.call(this));return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){ge.prototype.restoreState.call(this,J);var ie=J;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},V.typeName="ArrowMarker",V.title="Arrow marker",V.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',V}(Te),_e=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.fillColor=Re.defaultFillColor,he.strokeWidth=0,he.fillPanel=new ue("Color",Re.defaultColorSet,Re.defaultFillColor),he.fillPanel.onColorChanged=he.setFillColor,he}return te(V,ge),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=ge.prototype.getState.call(this);return J.typeName=V.typeName,J},V.typeName="CoverMarker",V.title="Cover marker",V.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',V}(ve),Ae=function(ge){function V(J,ie,Re,he){var it=ge.call(this,J,he||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return it.opacities=[],it.opacityBoxes=[],it.opacities=ie,it.currentOpacity=Re,it.setCurrentOpacity=it.setCurrentOpacity.bind(it),it}return te(V,ge),V.prototype.getUi=function(){var J=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(Re){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="center",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Re===J.currentOpacity?J.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){J.setCurrentOpacity(Re,he)}),ie.appendChild(he);var it=document.createElement("div");it.innerText=100*Re+"%",he.appendChild(it),J.opacityBoxes.push(he)}),ie},V.prototype.setCurrentOpacity=function(J,ie){var Re=this;this.currentOpacity=J,this.opacityBoxes.forEach(function(he){he.style.borderColor=he===ie?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},V}(Y),fe=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.setOpacity=he.setOpacity.bind(he),he.fillColor=Re.defaultHighlightColor,he.strokeWidth=0,he.opacity=Re.defaultHighlightOpacity,he.fillPanel=new ue("Color",Re.defaultColorSet,he.fillColor),he.fillPanel.onColorChanged=he.setFillColor,he.opacityPanel=new Ae("Opacity",Re.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return te(V,ge),V.prototype.setOpacity=function(J){this.opacity=J,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=ge.prototype.getState.call(this);return J.typeName=V.typeName,J},V.typeName="HighlightMarker",V.title="Highlight marker",V.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',V}(_e),ke='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Je=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.bgColor="transparent",he.tipPosition={x:0,y:0},he.tipBase1Position={x:0,y:0},he.tipBase2Position={x:0,y:0},he.tipMoving=!1,he.color=Re.defaultStrokeColor,he.bgColor=Re.defaultFillColor,he.fontFamily=Re.defaultFontFamily,he.defaultSize={x:100,y:30},he.setBgColor=he.setBgColor.bind(he),he.getTipPoints=he.getTipPoints.bind(he),he.positionTip=he.positionTip.bind(he),he.setTipPoints=he.setTipPoints.bind(he),he.colorPanel=new ue("Text color",Re.defaultColorSet,he.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),he.colorPanel.onColorChanged=he.setColor,he.bgColorPanel=new ue("Fill color",Re.defaultColorSet,he.bgColor,ke),he.bgColorPanel.onColorChanged=he.setBgColor,he.fontFamilyPanel=new Ye("Font",Re.defaultFontFamilies,Re.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he.tipGrip=new Ie,he.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),he.controlBox.appendChild(he.tipGrip.visual),he}return te(V,ge),V.prototype.ownsTarget=function(J){return ge.prototype.ownsTarget.call(this,J)||this.tipGrip.ownsTarget(J)||this.tip===J},V.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},V.prototype.pointerDown=function(J,ie){this.state==="new"&&ge.prototype.pointerDown.call(this,J,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ge.prototype.pointerDown.call(this,J,ie)},V.prototype.pointerUp=function(J){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ge.prototype.pointerUp.call(this,J);else{var ie=this.state==="creating";ge.prototype.pointerUp.call(this,J),this.setTipPoints(ie),this.positionTip()}},V.prototype.manipulate=function(J){if(this.tipMoving){var ie=this.unrotatePoint(J);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ge.prototype.manipulate.call(this,J)},V.prototype.setBgColor=function(J){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",J]]),le.setAttributes(this.tip,[["fill",J]])),this.bgColor=J,this.fillColorChanged(J)},V.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},V.prototype.setTipPoints=function(J){J===void 0&&(J=!1);var ie=Math.min(this.height/2,15),Re=this.height/5;J&&(this.tipPosition={x:ie+Re/2,y:this.height+20});var he=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Re=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:0},this.tipBase2Position={x:ie+Re,y:0}):(this.tipBase1Position={x:0,y:ie},this.tipBase2Position={x:0,y:ie+Re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Re=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-Re,y:0},this.tipBase2Position={x:this.width-ie,y:0}):(this.tipBase1Position={x:this.width,y:ie},this.tipBase2Position={x:this.width,y:ie+Re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?he<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Re=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-Re,y:this.height},this.tipBase2Position={x:this.width-ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ie-Re},this.tipBase2Position={x:this.width,y:this.height-ie}):he<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Re=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:this.height},this.tipBase2Position={x:ie+Re,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ie},this.tipBase2Position={x:0,y:this.height-ie-Re})},V.prototype.resize=function(J){ge.prototype.resize.call(this,J),this.positionTip()},V.prototype.positionTip=function(){le.setAttributes(this.tip,[["points",this.getTipPoints()]]);var J=this.tipGrip.visual.transform.baseVal.getItem(0);J.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(J,0)},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),V.prototype.select=function(){this.positionTip(),ge.prototype.select.call(this)},V.prototype.getState=function(){var J=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ge.prototype.getState.call(this));return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){var ie=J;this.bgColor=ie.bgColor,this.tipPosition=ie.tipPosition,ge.prototype.restoreState.call(this,J),this.createTip(),this.setTipPoints()},V.prototype.scale=function(J,ie){ge.prototype.scale.call(this,J,ie),this.tipPosition={x:this.tipPosition.x*J,y:this.tipPosition.y*ie},this.positionTip()},V.typeName="CalloutMarker",V.title="Callout marker",V.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',V}(Ze),ne=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.strokeColor=Re.defaultColor,he.strokeWidth=Re.defaultStrokeWidth,he.strokeDasharray=Re.defaultStrokeDasharray,he.fillColor=Re.defaultFillColor,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.setOpacity=he.setOpacity.bind(he),he.createVisual=he.createVisual.bind(he),he.strokePanel=new ue("Line color",ce(Re.defaultColorSet,["transparent"]),Re.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.fillPanel=new ue("Fill color",ce(Re.defaultColorSet,["transparent"]),he.fillColor,ke),he.fillPanel.onColorChanged=he.setFillColor,he.strokeWidthPanel=new Xe("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new $e("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he.opacityPanel=new Ae("Opacity",Re.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return te(V,ge),V.prototype.ownsTarget=function(J){return!(!ge.prototype.ownsTarget.call(this,J)&&J!==this.visual)},V.prototype.createVisual=function(){this.visual=le.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(J),this._state="creating")},V.prototype.manipulate=function(J){ge.prototype.manipulate.call(this,J)},V.prototype.resize=function(J){ge.prototype.resize.call(this,J),this.setSize()},V.prototype.setSize=function(){ge.prototype.setSize.call(this),le.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},V.prototype.pointerUp=function(J){ge.prototype.pointerUp.call(this,J),this.setSize()},V.prototype.setStrokeColor=function(J){this.strokeColor=J,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(J),this.stateChanged()},V.prototype.setFillColor=function(J){this.fillColor=J,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(J),this.stateChanged()},V.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},V.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},V.prototype.setOpacity=function(J){this.opacity=J,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ge.prototype.getState.call(this));return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){var ie=J;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ge.prototype.restoreState.call(this,J),this.setSize()},V.prototype.scale=function(J,ie){ge.prototype.scale.call(this,J,ie),this.setSize()},V.typeName="EllipseMarker",V.title="Ellipse marker",V.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',V}(Le),Qe=function(ge){function V(J,ie,Re){return ge.call(this,J,ie,Re)||this}return te(V,ge),Object.defineProperty(V.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(J){return!(!ge.prototype.ownsTarget.call(this,J)&&J!==this.tip1&&J!==this.tip2)},V.prototype.createTips=function(){this.tip1=le.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.tip1),this.tip2=le.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.tip2)},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.state==="creating"&&this.createTips()},V.prototype.adjustVisual=function(){if(ge.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(le.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var J=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(J,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var Re=this.tip2.transform.baseVal.getItem(0);Re.setRotate(J+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Re,0)}},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=ge.prototype.getState.call(this);return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){ge.prototype.restoreState.call(this,J),this.createTips(),this.adjustVisual()},V.typeName="MeasurementMarker",V.title="Measurement marker",V.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',V}(Te),dt=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.strokePanel.colors=Re.defaultColorSet,he.fillColor="transparent",he}return te(V,ge),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=ge.prototype.getState.call(this);return J.typeName=V.typeName,J},V.typeName="EllipseFrameMarker",V.title="Ellipse frame marker",V.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',V}(ne),Ke=function(){function ge(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ge.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ge.prototype.addUndoStep=function(V){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(V)||(this.undoStack.push(V),JSON.stringify(this.lastRedoStep)!==JSON.stringify(V)&&this.redoStack.splice(0,this.redoStack.length))},ge.prototype.replaceLastUndoStep=function(V){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=V)},ge.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ge.prototype.undo=function(){if(this.undoStack.length>1){var V=this.undoStack.pop();return V!==void 0&&this.redoStack.push(V),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ge.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ge}(),et=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie,Re)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.curveX=0,he.curveY=0,he.manipulationStartCurveX=0,he.manipulationStartCurveY=0,he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.positionGrips=he.positionGrips.bind(he),he.addControlGrips=he.addControlGrips.bind(he),he.adjustVisual=he.adjustVisual.bind(he),he.setupControlBox=he.setupControlBox.bind(he),he.resize=he.resize.bind(he),he.strokeColor=Re.defaultColor,he.strokeWidth=Re.defaultStrokeWidth,he.strokeDasharray=Re.defaultStrokeDasharray,he.strokePanel=new ue("Line color",Re.defaultColorSet,Re.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Xe("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new $e("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return te(V,ge),V.prototype.ownsTarget=function(J){return!(!ge.prototype.ownsTarget.call(this,J)&&J!==this.visual&&J!==this.selectorCurve&&J!==this.visibleCurve&&!this.curveGrip.ownsTarget(J))},V.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},V.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(J,ie){ge.prototype.pointerDown.call(this,J,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=J.x,this.curveY=J.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},V.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},V.prototype.setupControlBox=function(){ge.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},V.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ge.prototype.addControlGrips.call(this)},V.prototype.positionGrips=function(){ge.prototype.positionGrips.call(this);var J=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-J/2,this.curveY-J/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},V.prototype.manipulate=function(J){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+J.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+J.y-this.manipulationStartY),ge.prototype.manipulate.call(this,J)},V.prototype.resize=function(J){this.activeGrip===this.curveGrip&&(this.curveX=J.x,this.curveY=J.y),ge.prototype.resize.call(this,J),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},V.prototype.setStrokeColor=function(J){this.strokeColor=J,this.adjustVisual(),this.colorChanged(J)},V.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.adjustVisual()},V.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.adjustVisual()},V.prototype.scale=function(J,ie){this.curveX=this.curveX*J,this.curveY=this.curveY*ie,ge.prototype.scale.call(this,J,ie)},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var J=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ge.prototype.getState.call(this));return J.typeName=V.typeName,J},V.prototype.restoreState=function(J){ge.prototype.restoreState.call(this,J);var ie=J;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},V.typeName="CurveMarker",V.title="Curve marker",V.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',V}(gt),rt=function(){function ge(V,J){J===void 0&&(J=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=V,this.cancelable=J}return Object.defineProperty(ge.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ge.prototype.preventDefault=function(){this._defaultPrevented=!0},ge}(),bt=function(ge){function V(J,ie,Re){var he=ge.call(this,J,!1)||this;return he.dataUrl=ie,he.state=Re,he}return te(V,ge),V}(rt),ut=function(ge){function V(J,ie,Re){Re===void 0&&(Re=!1);var he=ge.call(this,J,Re)||this;return he.marker=ie,he}return te(V,ge),V}(rt),ot=function(){function ge(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ge.prototype.addEventListener=function(V,J){this[V].push(J)},ge.prototype.removeEventListener=function(V,J){var ie=this[V].indexOf(J);ie>-1&&this[V].splice(ie,1)},ge}(),Ue=function(){function ge(V){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Me,this._isOpen=!1,this.undoRedoManager=new Ke,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ge.instanceCounter++,this.styles=new se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=V,this.targetRoot=document.body,this.width=V.clientWidth,this.height=V.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ge.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ge,Ve,Be,Ze,dt,ne,fe,Je,Qe,_e,Te,et]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ge,Ve,Be,Ze,ne,fe,Je]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ge,Ve,Be,Ze,fe]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(V){var J=this;this._availableMarkerTypes.splice(0),V.forEach(function(ie){if(typeof ie=="string"){var Re=J.ALL_MARKER_TYPES.find(function(he){return he.typeName===ie});Re!==void 0&&J._availableMarkerTypes.push(Re)}else J._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(V){this._zoomLevel=V,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ge.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ge.prototype.show=function(){var V=this;this.styles.styleSheetRoot===void 0&&q.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=q.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(J){return J(new rt(V))})},ge.prototype.render=function(){return Ce(this,void 0,void 0,function(){var V;return we(this,function(J){switch(J.label){case 0:return this.setCurrentMarker(),(V=new xe).naturalSize=this.renderAtNaturalSize,V.imageType=this.renderImageType,V.imageQuality=this.renderImageQuality,V.markersOnly=this.renderMarkersOnly,V.width=this.renderWidth,V.height=this.renderHeight,[4,V.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return J.sent(),[4,V.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,J.sent()]}})})},ge.prototype.close=function(V){var J=this;if(V===void 0&&(V=!1),this.isOpen){var ie=!1;V||this.eventListeners.beforeclose.forEach(function(Re){var he=new rt(J,!0);Re(he),he.defaultPrevented&&(ie=!0)}),ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Re){return Re(new rt(J))}),this.detachEvents(),this._isOpen=!1)}},ge.prototype.addMarkersToToolbar=function(){for(var V,J=[],ie=0;ie<arguments.length;ie++)J[ie]=arguments[ie];(V=this._availableMarkerTypes).push.apply(V,J)},ge.prototype.addRenderEventListener=function(V){this.addEventListener("render",function(J){V(J.dataUrl,J.state)})},ge.prototype.removeRenderEventListener=function(V){},ge.prototype.addCloseEventListener=function(V){this.addEventListener("close",function(){V()})},ge.prototype.removeCloseEventListener=function(V){},ge.prototype.setupResizeObserver=function(){var V=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){V.resize(V.target.clientWidth,V.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return V.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ge.prototype.onPopupTargetResize=function(){var V=1*this.target.clientWidth/this.target.clientHeight,J=this.editorCanvas.clientWidth/V>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*V:this.editorCanvas.clientWidth,ie=J<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/V;this.resize(J,ie)},ge.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ge.prototype.resize=function(V,J){this._isResizing=!0;var ie=V/this.imageWidth,Re=J/this.imageHeight;this.imageWidth=Math.round(V),this.imageHeight=Math.round(J),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ie,Re),this._isResizing=!1},ge.prototype.scaleMarkers=function(V,J){var ie,Re=this;this._currentMarker&&this._currentMarker instanceof Ze?this._currentMarker.scale(V,J):(ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(he){he!==Re._currentMarker&&he.scale(V,J)}),ie!==void 0&&this.setCurrentMarker(ie)},ge.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ge.prototype.setTopLeft=function(){var V=this.editingTarget.getBoundingClientRect(),J=this.editorCanvas.getBoundingClientRect();this.left=V.left-J.left,this.top=V.top-J.top},ge.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ge.prototype.addDefs=function(){for(var V,J=[],ie=0;ie<arguments.length;ie++)J[ie]=arguments[ie];this.defs=le.createDefs(),this.addDefsToImage(),(V=this.defs).append.apply(V,J)},ge.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ge.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ge.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ge.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ge.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ge.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ge.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ge.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var V=document.createElement("a");V.href="https://markerjs.com/",V.target="_blank",V.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',V.title="Powered by marker.js",V.style.display="grid",V.style.alignItems="center",V.style.justifyItems="center",V.style.padding="3px",V.style.width="20px",V.style.height="20px",this.logoUI.appendChild(V),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ge.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ge.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ge.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ge.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var V=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=V+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new $(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Q(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ge.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ge.prototype.removeMarker=function(V){this.markerImage.removeChild(V.container),this.markers.indexOf(V)>-1&&this.markers.splice(this.markers.indexOf(V),1),V.dispose()},ge.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ge.prototype.toolbarButtonClicked=function(V,J){if(V==="marker"&&J!==void 0)this.createNewMarker(J);else if(V==="action")switch(J){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ge.prototype.deleteSelectedMarker=function(){var V=this;if(this._currentMarker!==void 0){var J=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Re){var he=new ut(V,V._currentMarker,!0);Re(he),he.defaultPrevented&&(J=!0)}),!J){var ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Re){return Re(new ut(V,ie))})}}},ge.prototype.clear=function(){var V=this,J=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(it){var Ut=new ut(V,void 0,!0);it(Ut),Ut.defaultPrevented&&(J=!0)}),!J)){this.setCurrentMarker();for(var ie=function(it){var Ut=Re.markers[it];Re.setCurrentMarker(Re.markers[it]),Re._currentMarker.dispose(),Re.markerImage.removeChild(Re._currentMarker.container),Re.markers.splice(Re.markers.indexOf(Re._currentMarker),1),Re.eventListeners.markerdelete.forEach(function(Jt){return Jt(new ut(V,Ut))})},Re=this,he=this.markers.length-1;he>=0;he--)ie(he);this.addUndoStep()}},Object.defineProperty(ge.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ge.prototype.showNotesEditor=function(){var V;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(V=this._currentMarker.notes)!==null&&V!==void 0?V:"",this.overlayContainer.appendChild(this.notesArea))},ge.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ge.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ge.prototype.addUndoStep=function(){var V=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var J=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===J.width&&ie.height===J.height){var Re=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(J),Re<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(he){return he(new rt(V))})}else this.undoRedoManager.replaceLastUndoStep(J),this.eventListeners.statechange.forEach(function(he){return he(new rt(V))})}},ge.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ge.prototype.undoStep=function(){var V=this,J=this.undoRedoManager.undo();J!==void 0&&(this.restoreState(J),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new rt(V))}))},ge.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ge.prototype.redoStep=function(){var V=this,J=this.undoRedoManager.redo();J!==void 0&&(this.restoreState(J),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new rt(V))}))},ge.prototype.stepZoom=function(){var V=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=V<this.zoomSteps.length-1?this.zoomSteps[V+1]:this.zoomSteps[0]},ge.prototype.panTo=function(V){this.contentDiv.scrollBy({left:this.prevPanPoint.x-V.x,top:this.prevPanPoint.y-V.y}),this.prevPanPoint=V},ge.prototype.startRenderAndClose=function(){return Ce(this,void 0,void 0,function(){var V,J,ie=this;return we(this,function(Re){switch(Re.label){case 0:return[4,this.render()];case 1:return V=Re.sent(),J=this.getState(),this.eventListeners.render.forEach(function(he){return he(new bt(ie,V,J))}),this.close(!0),[2]}})})},ge.prototype.getState=function(V){V===!0&&this.setCurrentMarker();var J={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ie){return J.markers.push(ie.getState())}),J},ge.prototype.restoreState=function(V){var J=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);V.markers.forEach(function(ie){var Re=J._availableMarkerTypes.find(function(it){return it.typeName===ie.typeName});if(Re!==void 0){var he=J.addNewMarker(Re);he.restoreState(ie),J.markers.push(he)}}),V.width&&V.height&&(V.width!==this.imageWidth||V.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/V.width,this.imageHeight/V.height),this.eventListeners.restorestate.forEach(function(ie){return ie(new rt(J))})},ge.prototype.addNewMarker=function(V){var J=le.createGroup();return this.markerImage.appendChild(J),new V(J,this.overlayContainer,this.settings)},ge.prototype.createNewMarker=function(V){var J,ie=this;(J=typeof V=="string"?this._availableMarkerTypes.find(function(Re){return Re.typeName===V}):V)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(J),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(J.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Re){return Re(new ut(ie,ie._currentMarker))}))},ge.prototype.markerCreated=function(V){var J=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(V),this.setCurrentMarker(V),V instanceof Ve&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ve):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ie){return ie(new ut(J,J._currentMarker))})},ge.prototype.colorChanged=function(V){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=V,this.settings.defaultStrokeColor=V)},ge.prototype.fillColorChanged=function(V){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=V)},ge.prototype.markerStateChanged=function(V){var J=this;this.eventListeners.markerchange.forEach(function(ie){return ie(new ut(J,V))})},ge.prototype.setCurrentMarker=function(V){var J=this;this._currentMarker!==V&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ie){return ie(new ut(J,J._currentMarker))})),this._currentMarker=V,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ie){return ie(new ut(J,J._currentMarker))}))},ge.prototype.onPointerDown=function(V){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||V.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var J=this.markers.find(function(ie){return ie.ownsTarget(V.target)});J!==void 0?(this.setCurrentMarker(J),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(V.clientX,V.clientY),V.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:V.clientX,y:V.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(V.clientX,V.clientY))},ge.prototype.onDblClick=function(V){if(this._isFocused||this.focus(),this.mode==="select"){var J=this.markers.find(function(ie){return ie.ownsTarget(V.target)});J!==void 0&&J!==this._currentMarker&&this.setCurrentMarker(J),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(V.clientX,V.clientY),V.target):this.setCurrentMarker()}},ge.prototype.onPointerMove=function(V){this.touchPoints!==1&&V.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||V.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(V.clientX,V.clientY)):this.zoomLevel>1&&this.panTo({x:V.clientX,y:V.clientY}))},ge.prototype.onPointerUp=function(V){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(V.clientX,V.clientY)),this.isDragging=!1,this.addUndoStep()},ge.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ge.prototype.onKeyUp=function(V){this._currentMarker===void 0||this.notesArea!==void 0||V.key!=="Delete"&&V.key!=="Backspace"||this.deleteSelectedMarker()},ge.prototype.clientToLocalCoordinates=function(V,J){var ie=this.markerImage.getBoundingClientRect();return{x:(V-ie.left)/this.zoomLevel,y:(J-ie.top)/this.zoomLevel}},ge.prototype.onWindowResize=function(){this.positionUI()},ge.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var V=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=V+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ge.prototype.addLicenseKey=function(V){oe.addKey(V)},ge.prototype.addEventListener=function(V,J){this.eventListeners.addEventListener(V,J)},ge.prototype.removeEventListener=function(V,J){this.eventListeners.removeEventListener(V,J)},ge.prototype.renderState=function(V){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(V),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ge.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ge.prototype.focus=function(){var V=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(J){return J(new rt(V))}))},ge.prototype.blur=function(){var V=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(J){return J(new rt(V))}))},ge.instanceCounter=0,ge}();/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
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 We=function(ge,V){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ie){J.__proto__=ie}||function(J,ie){for(var Re in ie)Object.prototype.hasOwnProperty.call(ie,Re)&&(J[Re]=ie[Re])})(ge,V)};function ft(ge,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function J(){this.constructor=ge}We(ge,V),ge.prototype=V===null?Object.create(V):(J.prototype=V.prototype,new J)}function nt(ge,V,J,ie){return new(J||(J=Promise))(function(Re,he){function it(an){try{Jt(ie.next(an))}catch(Pt){he(Pt)}}function Ut(an){try{Jt(ie.throw(an))}catch(Pt){he(Pt)}}function Jt(an){var Pt;an.done?Re(an.value):(Pt=an.value,Pt instanceof J?Pt:new J(function(cn){cn(Pt)})).then(it,Ut)}Jt((ie=ie.apply(ge,V||[])).next())})}function Dt(ge,V){var J,ie,Re,he,it={label:0,sent:function(){if(1&Re[0])throw Re[1];return Re[1]},trys:[],ops:[]};return he={next:Ut(0),throw:Ut(1),return:Ut(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Ut(Jt){return function(an){return function(Pt){if(J)throw new TypeError("Generator is already executing.");for(;it;)try{if(J=1,ie&&(Re=2&Pt[0]?ie.return:Pt[0]?ie.throw||((Re=ie.return)&&Re.call(ie),0):ie.next)&&!(Re=Re.call(ie,Pt[1])).done)return Re;switch(ie=0,Re&&(Pt=[2&Pt[0],Re.value]),Pt[0]){case 0:case 1:Re=Pt;break;case 4:return it.label++,{value:Pt[1],done:!1};case 5:it.label++,ie=Pt[1],Pt=[0];continue;case 7:Pt=it.ops.pop(),it.trys.pop();continue;default:if(!(Re=it.trys,(Re=Re.length>0&&Re[Re.length-1])||Pt[0]!==6&&Pt[0]!==2)){it=0;continue}if(Pt[0]===3&&(!Re||Pt[1]>Re[0]&&Pt[1]<Re[3])){it.label=Pt[1];break}if(Pt[0]===6&&it.label<Re[1]){it.label=Re[1],Re=Pt;break}if(Re&&it.label<Re[2]){it.label=Re[2],it.ops.push(Pt);break}Re[2]&&it.ops.pop(),it.trys.pop();continue}Pt=V.call(ge,it)}catch(cn){Pt=[6,cn],ie=0}finally{J=Re=0}if(5&Pt[0])throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}([Jt,an])}}}var Kt=function(){function ge(){}return ge.addKey=function(V){ge.key=V},Object.defineProperty(ge,"isLicensed",{get:function(){return!!ge.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ge.key)},enumerable:!1,configurable:!0}),ge}(),vt=function(){function ge(){}return ge.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ge.setAttributes=function(V,J){for(var ie=0,Re=J;ie<Re.length;ie++){var he=Re[ie],it=he[0],Ut=he[1];V.setAttribute(it,Ut)}},ge.createRect=function(V,J,ie){var Re=document.createElementNS("http://www.w3.org/2000/svg","rect");return Re.setAttribute("width",V.toString()),Re.setAttribute("height",J.toString()),ie&&ge.setAttributes(Re,ie),Re},ge.createLine=function(V,J,ie,Re,he){var it=document.createElementNS("http://www.w3.org/2000/svg","line");return it.setAttribute("x1",V.toString()),it.setAttribute("y1",J.toString()),it.setAttribute("x2",ie.toString()),it.setAttribute("y2",Re.toString()),he&&ge.setAttributes(it,he),it},ge.createPolygon=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",V),J&&ge.setAttributes(ie,J),ie},ge.createCircle=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(V/2).toString()),ie.setAttribute("cy",(V/2).toString()),ie.setAttribute("r",V.toString()),J&&ge.setAttributes(ie,J),ie},ge.createEllipse=function(V,J,ie){var Re=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Re.setAttribute("cx",(V/2).toString()),Re.setAttribute("cy",(J/2).toString()),Re.setAttribute("rx",(V/2).toString()),Re.setAttribute("ry",(J/2).toString()),ie&&ge.setAttributes(Re,ie),Re},ge.createGroup=function(V){var J=document.createElementNS("http://www.w3.org/2000/svg","g");return V&&ge.setAttributes(J,V),J},ge.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ge.createMarker=function(V,J,ie,Re,he,it,Ut){var Jt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ge.setAttributes(Jt,[["id",V],["orient",J],["markerWidth",ie.toString()],["markerHeight",Re.toString()],["refX",he.toString()],["refY",it.toString()]]),Jt.appendChild(Ut),Jt},ge.createText=function(V){var J=document.createElementNS("http://www.w3.org/2000/svg","text");return J.setAttribute("x","0"),J.setAttribute("y","0"),V&&ge.setAttributes(J,V),J},ge.createTSpan=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=V,J&&ge.setAttributes(ie,J),ie},ge.createImage=function(V){var J=document.createElementNS("http://www.w3.org/2000/svg","image");return V&&ge.setAttributes(J,V),J},ge.createPoint=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=V,ie.y=J,ie},ge.createPath=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",V),J&&ge.setAttributes(ie,J),ie},ge.createElement=function(V,J){var ie=document.createElementNS("http://www.w3.org/2000/svg",V);return J&&ge.setAttributes(ie,J),ie},ge.getHollowRectanglePath=function(V,J,ie,Re,he,it,Ut,Jt){return"M"+V+","+J+"V"+(J+Re)+"H"+(V+ie)+"V"+J+"H"+he+"V"+it+"H"+(he+Ut)+"V"+(it+Jt)+"H"+he+"V"+J+"Z"},ge}(),Ht=function(){function ge(V){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+V+"_"}return Object.defineProperty(ge.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),ge.prototype.addClass=function(V){return this.styleSheet===void 0&&this.addStyleSheet(),V.name=""+this.classNamePrefix+V.localName,this.classes.push(V),this.styleSheet.sheet.insertRule("."+V.name+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length),V},ge.prototype.addRule=function(V){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(V),this.styleSheet.sheet.insertRule(V.selector+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length)},ge.prototype.addStyleSheet=function(){var V;this.styleSheet=document.createElement("style"),((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).appendChild(this.styleSheet),this.addRule(new Ft("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ft("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ft("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Lt("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Lt("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ge.prototype.removeStyleSheet=function(){var V;this.styleSheet&&(((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ge}(),Ft=function(ge,V){this.selector=ge,this.style=V},Lt=function(ge,V){this.localName=ge,this.style=V},zt=function(){function ge(){this.blocks=[],this.display=""}return ge.prototype.addButtonBlock=function(V){V.className=this.blockClassName,V.buttonClassName=this.buttonClassName,V.buttonColorsClassName=this.buttonColorsClassName,V.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(V)},ge.prototype.addElementBlock=function(V){V.className===void 0&&(V.className=this.blockClassName),this.blocks.push(V)},ge.prototype.getUI=function(){var V=document.createElement("div");return V.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,V.style.display=this.display,this.blocks.forEach(function(J){return V.appendChild(J.getUI())}),V},ge}(),Qt=function(){function ge(){}return ge.prototype.getUI=function(){var V=document.createElement("div");if(V.className=this.className,this.minWidth!==void 0&&(V.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":V.style.justifyContent="flex-start";break;case"center":V.style.justifyContent="center";break;case"end":V.style.justifyContent="flex-end"}return V.style.whiteSpace="nowrap",V},ge}(),bn=function(ge){function V(){var J=ge!==null&&ge.apply(this,arguments)||this;return J.buttons=[],J}return ft(V,ge),V.prototype.addButton=function(J){J.className=this.buttonClassName,J.colorsClassName=this.buttonColorsClassName,J.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(J)},V.prototype.getUI=function(){var J=ge.prototype.getUI.call(this);return this.buttons.forEach(function(ie){return J.appendChild(ie.getUI())}),J},V}(Qt),Zt=function(){function ge(V,J){this._isActive=!1,this._isHidden=!1,this._icon=V,this.title=J,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(ge.prototype,"icon",{get:function(){return this._icon},set:function(V){this._icon=V,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isActive",{get:function(){return this._isActive},set:function(V){this._isActive=V,this.adjustClassName()},enumerable:!1,configurable:!0}),ge.prototype.getUI=function(){var V=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return V.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},ge.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},ge.prototype.hide=function(){this._isHidden=!0},ge}(),$t=function(ge){function V(){var J=ge!==null&&ge.apply(this,arguments)||this;return J.elements=[],J}return ft(V,ge),V.prototype.addElement=function(J){this.elements.push(J)},V.prototype.getUI=function(){var J=ge.prototype.getUI.call(this);return this.elements.forEach(function(ie){return J.appendChild(ie)}),J},V}(Qt),Zn=function(){function ge(V,J){this.horizontal=V,this.vertical=J}return Object.defineProperty(ge.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),ge.prototype.getVerticalLength=function(V){return V/this.ratio},ge.prototype.getHorizontalLength=function(V){return V*this.ratio},ge}(),Fn=function(){function ge(){}return ge.getIcon=function(V,J){if(V>0&&J>0){var ie=new Zn(V,J),Re=ie.ratio>=1?20:ie.getHorizontalLength(20),he=ie.ratio<1?20:ie.getVerticalLength(20),it=document.createElementNS("http://www.w3.org/2000/svg","svg");it.setAttribute("xmlns","http://www.w3.org/2000/svg"),it.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(it);var Ut=vt.createDefs();it.appendChild(Ut);var Jt=vt.createElement("clipPath",[["id","text-bg-clip"]]);Ut.appendChild(Jt);var an=vt.createPath(vt.getHollowRectanglePath((24-Re)/2,(24-he)/2,Re,he,(24-Re)/2+2,(24-he)/2+2,Re-4,he-4));it.appendChild(an);var Pt=vt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Pt.appendChild(vt.createTSpan(V+":"+J)),it.appendChild(Pt);var cn=Pt.getBBox();vt.setAttributes(Pt,[["x",((24-cn.width)/2).toString()],["y",((24-cn.height)/2-cn.y).toString()]]);var Rn=vt.createPath(vt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(cn.width))/2,(24-Math.ceil(cn.height))/2,Math.ceil(cn.width),Math.ceil(cn.height)));return Jt.appendChild(Rn),vt.setAttributes(an,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(it),it.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},ge}(),Hn=function(ge){function V(J,ie,Re){var he=ge.call(this,J,ie)||this;return he.isDropdownOpen=!1,he.onClick=he.dropdownButtonClicked,he.dropdownButtons=Re,he}return ft(V,ge),V.prototype.setupDropdown=function(){var J=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ie){ie.className=J.className,ie.colorsClassName=J.colorsClassName,J.dropdownBlock.appendChild(ie.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},V.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},V.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},V.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},V.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},V.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},V}(Zt),Yn=function(){function ge(V,J){this.GRIP_SIZE=10,this.color=V,this.fillColor=J,this.visual=vt.createGroup(),this.visual.appendChild(vt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(vt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ge.prototype.ownsTarget=function(V){return V===this.visual||V===this.visual.childNodes[0]||V===this.visual.childNodes[1]},ge.prototype.setCenter=function(V,J){this.visual.childNodes.forEach(function(ie){return vt.setAttributes(ie,[["cx",V.toString()],["cy",J.toString()]])})},ge}(),jn=function(){function ge(V,J,ie,Re){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=V,this.canvasHeight=J,this.margin=ie,this.container=Re,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(ge.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(V){this._aspectRatio=V,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.gridContainer&&vt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(V){this._zoomFactor=V,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ge.prototype.open=function(){var V=this;this.cropShadeElement=vt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=vt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var J=0;J<this.numberOfGridLines;J++)this.horizontalGridLines.push(vt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(vt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(ie){return V.gridContainer.appendChild(ie)}),this.verticalGridLines.forEach(function(ie){return V.gridContainer.appendChild(ie)}),this.cropRectElement=vt.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},ge.prototype.setCropRectangle=function(V){this.cropRect=V;var J=Object.assign({},this.cropRect);this.zoomFactor!==1&&(J.width=this.cropRect.width*this.zoomFactor,J.height=this.cropRect.height*this.zoomFactor,J.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-J.width/2,J.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-J.height/2),vt.setAttributes(this.cropRectElement,[["x",J.x.toString()],["y",J.y.toString()],["width",J.width.toString()],["height",J.height.toString()]]);var ie=J.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(he,it){var Ut=J.y+ie*(it+1);vt.setAttributes(he,[["x1",""+J.x],["y1",""+Ut],["x2",""+(J.x+J.width)],["y2",""+Ut]])});var Re=J.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(he,it){var Ut=J.x+Re*(it+1);vt.setAttributes(he,[["x1",""+Ut],["y1",""+J.y],["x2",""+Ut],["y2",""+(J.y+J.height)]])}),vt.setAttributes(this.cropShadeElement,[["d",vt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,J.x,J.y,J.width,J.height)]]),this.topLeftGrip.setCenter(J.x,J.y),this.topRightGrip.setCenter(J.x+J.width,J.y),this.bottomLeftGrip.setCenter(J.x,J.y+J.height),this.bottomRightGrip.setCenter(J.x+J.width,J.y+J.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ge.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},ge.prototype.clientToLocalCoordinates=function(V,J){var ie=this.container.getBoundingClientRect();return{x:V-ie.left+this.margin,y:J-ie.top+this.margin}},ge.prototype.onPointerDown=function(V){this.container.setPointerCapture(V.pointerId),this.previousPoint=this.clientToLocalCoordinates(V.clientX,V.clientY),this.cropRectElement===V.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(V.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(V.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(V.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(V.target)&&(this.activeGrip=this.bottomRightGrip)},ge.prototype.onPointerMove=function(V){if(this.isMoving)this.move(this.clientToLocalCoordinates(V.clientX,V.clientY));else if(this.activeGrip){var J=this.clientToLocalCoordinates(V.clientX,V.clientY);this.resize(J)}V.preventDefault()},ge.prototype.onPointerUp=function(V){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(V.pointerId)},ge.prototype.move=function(V){var J=V.x-this.previousPoint.x,ie=V.y-this.previousPoint.y;this.zoomFactor!==1&&(J=-J/this.zoomFactor,ie=-ie/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+J),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ie),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=V},ge.prototype.resize=function(V){var J=Object.assign({},this.cropRect),ie=V.x-this.previousPoint.x,Re=V.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:J.x+ie<this.margin&&(ie=this.margin-J.x),J.x+=ie,J.width=this.cropRect.x+this.cropRect.width-J.x;break;case this.bottomRightGrip:case this.topRightGrip:J.width+ie>this.canvasWidth*this.zoomFactor&&(ie=this.canvasWidth*this.zoomFactor-J.width),J.width+=ie}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(J.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ie),J.height=this.aspectRatio.getVerticalLength(J.width)):(J.y+=Re,J.height=this.cropRect.y+this.cropRect.height-J.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?J.height=this.aspectRatio.getVerticalLength(J.width):J.height+=Re}J.width<10&&(J.x=this.cropRect.x,J.width=10),J.height<10&&(J.y=this.cropRect.y,J.height=10),this.previousPoint=V,J.x>=this.margin&&J.y>=this.margin&&J.x-this.margin+J.width<=this.canvasWidth&&J.y-this.margin+J.height<=this.canvasHeight&&(this.cropRect=J,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ge.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var V=this.cropRect.x+this.cropRect.width/2,J=this.cropRect.y+this.cropRect.height/2,ie=this.aspectRatio.getHorizontalLength(this.cropRect.height),Re=this.aspectRatio.getVerticalLength(this.cropRect.width);ie/this.canvasWidth<Re/this.canvasHeight?this.cropRect.width=ie:this.cropRect.height=Re,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=V-this.cropRect.width/2,this.cropRect.y=J-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},ge.prototype.getRescaledRect=function(V,J,ie,Re,he,it){var Ut=ie/V,Jt=Re/J;return{x:(he.x-it)*Ut+it,y:(he.y-it)*Jt+it,width:he.width*Ut,height:he.height*Jt}},ge.prototype.scaleCanvas=function(V,J){var ie=this.getRescaledRect(this.canvasWidth,this.canvasHeight,V,J,this.cropRect,this.margin);this.canvasWidth=V,this.canvasHeight=J,this.onCropChange&&this.onCropChange(ie),this.setCropRectangle(ie)},ge}(),or=function(){function ge(V){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=V,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(ge.prototype,"angle",{get:function(){return this._angle},set:function(V){this._angle=V,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ge.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},ge.prototype.onPointerDown=function(V){this.controlContainer.setPointerCapture(V.pointerId),this.isDragging=!0,this.previousPoint={x:V.clientX,y:V.clientY}},ge.prototype.onPointerMove=function(V){this.isDragging&&(this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.previousPoint.x=V.clientX)},ge.prototype.onPointerUp=function(V){this.isDragging&&this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(V.pointerId)},ge.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var V=this.angleLabelText.getBBox();vt.setAttributes(this.angleLabelElement,[["x",((this.width-V.width)/2).toString()],["y",(this.height/2).toString()]])}},ge.prototype.positionScaleShape=function(){if(this.scaleShape){var V=this.scaleShape.transform.baseVal.getItem(0);V.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(V,0)}},ge.prototype.getVisual=function(){var V=document.createElementNS("http://www.w3.org/2000/svg","svg");V.setAttribute("xmlns","http://www.w3.org/2000/svg"),V.setAttribute("width",this.width+"px"),V.setAttribute("height",this.height+"px"),V.setAttribute("viewBox","0 0 "+this.width+" "+this.height),V.style.flexShrink="0",document.body.appendChild(V);for(var J="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ie=1;ie<=this.width/5+10;ie++){var Re=ie%5==0?this.height/3:this.height/6;J+="h4v"+-Re+"h1v"+Re}J+="v1H0Z",this.scaleShape=vt.createPath(J);var he=vt.createTransform();this.scaleShape.transform.baseVal.appendItem(he),V.appendChild(this.scaleShape),this.angleLabelElement=vt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=vt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var it=vt.createTSpan("");return it.innerHTML="&deg;",this.angleLabelElement.appendChild(it),V.appendChild(this.angleLabelElement),document.body.removeChild(V),V},ge}(),jr=function(){function ge(){this.naturalSize=!1,this.imageType="image/png"}return ge.prototype.rasterize=function(V,J,ie,Re,he,it,Ut){var Jt=this;return new Promise(function(an){var Pt=document.createElement("canvas");Pt.width=V.width.baseVal.value-2*Re,Pt.height=V.height.baseVal.value-2*Re;var cn=1,Rn=1;Jt.naturalSize===!0?(cn=J.naturalWidth/(V.width.baseVal.value-2*Re)/it,Rn=J.naturalHeight/(V.height.baseVal.value-2*Re)/Ut,Pt.width=J.naturalWidth/it,Pt.height=J.naturalHeight/Ut):Jt.width!==void 0&&Jt.height!==void 0&&(cn=Jt.width/ie.width,Rn=Jt.height/ie.height,Pt.width*=cn,Pt.height*=Rn);var Jn=Pt.getContext("2d");Jn.translate(Pt.width/2,Pt.height/2),Jn.rotate(he*Math.PI/180),Jn.scale(it,Ut),Jn.translate(-Pt.width/2,-Pt.height/2),Jn.drawImage(J,0,0,Pt.width,Pt.height);var ir=document.createElement("canvas");ir.width=ie.width*cn,ir.height=ie.height*Rn,ir.getContext("2d").putImageData(Jn.getImageData((ie.x-Re)*cn,(ie.y-Re)*Rn,ie.width*cn,ie.height*Rn),0,0),an(ir.toDataURL(Jt.imageType,Jt.imageQuality))})},ge}(),qt=function(){function ge(V){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=ge.instanceCounter++,this.styles=new Ht(this.instanceNo),this.target=V,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(ge.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(V){this._zoomToCropEnabled=V,V?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"gridLines",{get:function(){return this._gridLines},set:function(V){this._gridLines=V,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(V){this._rotationAngle=V,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"aspectRatio",{get:function(){var V;return(V=this._aspectRatio)!==null&&V!==void 0?V:this.aspectRatios[0]},set:function(V){this._aspectRatio=V},enumerable:!1,configurable:!0}),ge.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},ge.prototype.show=function(){this.showUI(),this.open()},ge.prototype.close=function(V){V===void 0&&(V=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),V||this.closeEventListeners.forEach(function(J){return J()}),this._isOpen=!1)},ge.prototype.addRenderEventListener=function(V){this.renderEventListeners.push(V)},ge.prototype.removeRenderEventListener=function(V){this.renderEventListeners.indexOf(V)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(V),1)},ge.prototype.addCloseEventListener=function(V){this.closeEventListeners.push(V)},ge.prototype.removeCloseEventListener=function(V){this.closeEventListeners.indexOf(V)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(V),1)},ge.prototype.setupResizeObserver=function(){var V=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){V.resize(V.target.clientWidth,V.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},ge.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var V=1*this.target.clientWidth/this.target.clientHeight,J=this.contentDiv.clientWidth/V>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*V:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ie=J+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/V;this.resize(J,ie)}},ge.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ge.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",vt.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},ge.prototype.resize=function(V,J){this.imageWidth=Math.round(V),this.imageHeight=Math.round(J),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},ge.prototype.setEditingTarget=function(){var V=document.createElement("canvas");V.width=this.target.naturalWidth,V.height=this.target.naturalHeight,V.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var J=V.toDataURL();vt.setAttributes(this.editingTarget,[["href",J]]),this.setEditingTargetSize()},ge.prototype.setTopLeft=function(){var V=this.target.getBoundingClientRect(),J=this.editorCanvas.getBoundingClientRect();this.left=V.left-J.left-this.CANVAS_MARGIN,this.top=V.top-J.top-this.CANVAS_MARGIN},ge.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=vt.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=vt.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=vt.createGroup(),this.editingTargetRotationScaleContainer=vt.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var V=vt.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(V);var J=vt.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(J),this.editingTargetContainer=vt.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},ge.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},ge.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=vt.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new jn(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},ge.prototype.zoomToCrop=function(){if(this.cropRect){var V=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,J=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=V+"px "+J+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-V+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-J+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},ge.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},ge.prototype.cropRectChanged=function(V){this.cropRect=V,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},ge.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},ge.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ge.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ge.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var V=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,J=this.target.offsetTop>V+this.CANVAS_MARGIN?this.target.offsetTop-(V+this.CANVAS_MARGIN):0;this.coverDiv.style.top=J+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},ge.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ge.prototype.addTopToolbar=function(){var V=this;this.topToolbar=new zt,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var J=new bn;J.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(J);var ie=[];this.aspectRatios.forEach(function(Rn){var Jn=new Zt(Fn.getIcon(Rn.horizontal,Rn.vertical),Rn.horizontal===0&&Rn.vertical===0?"FREE":Rn.horizontal+":"+Rn.vertical);Jn.onClick=function(){return V.ratioButtonClicked(Rn)},ie.push(Jn)}),this.aspectRatioButton=new Hn(Fn.getIcon(0,0),"Aspect ratio",ie),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,J.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Re=new Zt('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");Re.isActive=this.isGridVisible,Re.onClick=function(){V.isGridVisible=!V.isGridVisible,Re.isActive=V.isGridVisible},J.addButton(Re);var he=new Zt('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(he.isActive=this.zoomToCropEnabled,he.onClick=function(){V.zoomToCropEnabled=!V.zoomToCropEnabled,he.isActive=V.zoomToCropEnabled},J.addButton(he),!Kt.isLicensed){var it=new $t;this.topToolbar.addElementBlock(it);var Ut=document.createElement("div");Ut.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Jt=document.createElement("a");Jt.style.color="currentColor",Jt.href="https://markerjs.com/products/cropro",Jt.target="_blank",Jt.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Ut.appendChild(Jt),it.addElement(Ut)}var an=new bn;an.minWidth=3*this.toolbarHeight+"px",an.contentAlign="end",this.topToolbar.addButtonBlock(an);var Pt=new Zt('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Pt.onClick=this.startRenderAndClose,an.addButton(Pt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Pt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var cn=new Zt('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");cn.onClick=this.close,an.addButton(cn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(cn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ge.prototype.addBottomToolbar=function(){var V=this;this.bottomToolbar=new zt,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var J=new bn;J.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(J);var ie=new Zt('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");ie.onClick=this.rotateLeftButtonClicked,J.addButton(ie);var Re=new Zt('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");Re.onClick=this.rotateRightButtonClicked,J.addButton(Re);var he=new $t;he.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(he),this.straightener=new or("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(an){V.rotateBy(an),V.straightener.angle=V.rotationAngle},he.addElement(this.straightener.getUI());var it=new bn;it.minWidth=2*this.toolbarHeight+"px",it.contentAlign="end",this.bottomToolbar.addButtonBlock(it);var Ut=new Zt('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Ut.onClick=this.flipHorizontallyButtonClicked,it.addButton(Ut);var Jt=new Zt('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");Jt.onClick=this.flipVerticallyButtonClicked,it.addButton(Jt)},ge.prototype.ratioButtonClicked=function(V){this.aspectRatio=V,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ge.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Fn.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ge.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Zn(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ge.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ge.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ge.prototype.restoreState=function(V){if(V){var J=this.cropLayer.getRescaledRect(V.width,V.height,this.imageWidth,this.imageHeight,V.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(J),this.cropRectChanged(J),this.flippedHorizontally=V.flippedHorizontally,this.flippedVertically=V.flippedVertically,this.applyFlip(),this.rotationAngle=V.rotationAngle,this.applyRotation()}},ge.prototype.clientToLocalCoordinates=function(V,J){var ie=this.cropImage.getBoundingClientRect();return{x:V-ie.left,y:J-ie.top}},ge.prototype.onWindowResize=function(){this.positionUI()},ge.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var V=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=V+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},ge.prototype.rotateLeftButtonClicked=function(){var V=this.rotationAngle-90;this.rotationAngle%90!=0&&(V+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(V)},ge.prototype.rotateRightButtonClicked=function(){var V=this.rotationAngle+90;this.rotationAngle%90!=0&&(V-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(V)},ge.prototype.rotateTo=function(V){V=(V=V>180?V-360:V)<=-180?V+360:V,this.rotationAngle=V,this.applyRotation()},ge.prototype.rotateBy=function(V){this.rotateTo((this.rotationAngle+V)%360)},ge.prototype.applyRotation=function(){var V=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var J=this.editingTargetRotationContainer.transform.baseVal.getItem(0);J.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(J,0);var ie=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ie.width,this.imageHeight/ie.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=V},ge.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ge.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ge.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ge.prototype.startRenderAndClose=function(){return nt(this,void 0,void 0,function(){var V,J;return Dt(this,function(ie){switch(ie.label){case 0:return[4,this.render()];case 1:return V=ie.sent(),J=this.getState(),this.renderEventListeners.forEach(function(Re){return Re(V,J)}),this.close(!0),[2]}})})},ge.prototype.render=function(){return nt(this,void 0,void 0,function(){var V;return Dt(this,function(J){switch(J.label){case 0:return(V=new jr).naturalSize=this.renderAtNaturalSize,V.imageType=this.renderImageType,V.imageQuality=this.renderImageQuality,V.width=this.renderWidth,V.height=this.renderHeight,this.unzoomFromCrop(),vt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,V.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return J.sent(),[4,V.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,J.sent()]}})})},ge.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Lt("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Lt("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Lt("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var V=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Lt("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*V)+`px;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Lt("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Lt("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Ft("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ft("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new Lt("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new Lt("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Lt("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new Lt("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Lt("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},ge.instanceCounter=0,ge}(),wn=y("8hTe"),Kr=y.n(wn),Li=/<pre[^>]*>/g;function Mr(ge){var V=document.createElement("div");return V.innerHTML=ge,V.childNodes.length===0?"":V.childNodes[0].nodeValue}var Qn=W.a=function(ge){var V=ge.value,J=V===void 0?"":V,ie=ge.edit,Re=ie===void 0?!1:ie,he=ge.className,it=ge.showTextOnly,Ut=ge.showLines,Jt=ge.replaces,an=ge.zoomImg,Pt=ge.hasMask,cn=ge.style,Rn=cn===void 0?{}:cn,Jn=ge.stylesPrev,ir=Jn===void 0?{}:Jn,tr=String(J),fr=Object(a.useRef)(),Dr=Object(a.useRef)(),Yi=Object(a.useState)(""),oi=Object(_.a)(Yi,2),di=oi[0],_a=oi[1],Si=Object(a.useState)("office"),ga=Object(_.a)(Si,2),mo=ga[0],ao=ga[1],yo=function(){var Ar=new qt(Dr.current);Ar.displayMode="popup",Ar.addRenderEventListener(function(){var fi=Object(s.a)(e.a.mark(function wr(vi){var pr;return e.a.wrap(function(Qi){for(;;)switch(Qi.prev=Qi.next){case 0:return fr.current.style.display="none",Qi.next=3,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:vi}});case 3:pr=Qi.sent,pr!=null&&pr.id&&Jt(Dr.current.getAttribute("src").replace(Z.a.API_SERVER,""),"/api/attachments/".concat(pr==null?void 0:pr.id,"?type=").concat(pr.content_type));case 5:case"end":return Qi.stop()}},wr)}));return function(wr){return fi.apply(this,arguments)}}()),Ar.show()},Ia=function(){var Ar=new Ue(Dr.current);Ar.settings.displayMode="popup",Ar.addEventListener("render",function(){var fi=Object(s.a)(e.a.mark(function wr(vi){var pr;return e.a.wrap(function(Qi){for(;;)switch(Qi.prev=Qi.next){case 0:if(fr.current.style.display="none",!Dr.current){Qi.next=6;break}return Qi.next=4,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:vi.dataUrl}});case 4:pr=Qi.sent,pr!=null&&pr.id&&Jt(Dr.current.getAttribute("src").replace(Z.a.API_SERVER,""),"/api/attachments/".concat(pr==null?void 0:pr.id,"?type=").concat(pr.content_type));case 6:case"end":return Qi.stop()}},wr)}));return function(wr){return fi.apply(this,arguments)}}()),Ar.show(),window.markerArea=Ar},Za=Object(a.useMemo)(function(){fr.current&&(fr.current.style.zIndex=-1);try{var Nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ar=/\"\/api\/attachments\/|\"\/attachments\/download\//g,fi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;tr=tr.replace(Nr,"("+Z.a.API_SERVER+"/api/attachments/").replace(Ar,'"'+Z.a.API_SERVER+"/api/attachments/").replace(fi,'"'+Z.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(ta){}var wr=F(tr),vi=P();if(tr.match(/\[TOC\]/)&&(wr=wr.replace("<p>[TOC]</p>",O()),u()),wr=wr.replace(/(__special_katext_id_\d+__)/g,function(ta,Qi){var ea=vi[Qi],Eo=ea.type,ca=ea.expression;return Object(re.renderToString)(Mr(ca)||"",{displayMode:Eo==="block",throwOnError:!1,output:"html"})}),wr=wr.replace(/▁/g,"\u2581\u2581\u2581"),N(),it){var pr=document.createElement("div");return pr.innerHTML=wr,pr.innerText}return setTimeout(function(){return hi()},500),wr},[tr]),Ri=Object(a.useRef)();E.WebkitLineClamp=Ut,Ut&&(Rn=Object(g.a)(Object(g.a)({},Rn),E));function ri(Nr){var Ar=Nr.target;if(Ar.tagName.toUpperCase()==="IMG"){if(an){var fi=Ar.getAttribute("src");_a(fi),ao("image")}}else if(Ar.tagName.toUpperCase()==="A"){var wr=Ar.getAttribute("href");if(wr.indexOf("office")>-1)Nr.preventDefault(),_a(wr),ao("office");else if(wr.indexOf("application/pdf")>-1)Nr.preventDefault(),_a(wr),ao("pdf");else if(wr.indexOf("text/html")>-1)Nr.preventDefault(),_a(wr),ao("html");else if(wr.startsWith("#")){Nr.preventDefault();var vi=document.getElementById(wr.replace("#",""));vi&&vi.scrollIntoView(!0)}}}var hi=function(){var Ar,fi=(Ar=Ri.current)===null||Ar===void 0?void 0:Ar.querySelectorAll("video");fi==null||fi.forEach(function(wr){if(wr.oncontextmenu=function(){return!1},wr.src.indexOf(".m3u8")>-1&&!wr.canPlayType("application/vnd.apple.mpegurl")){if(B.a.isSupported()){var vi=new B.a;vi.loadSource(wr.src),vi.attachMedia(wr)}}})};Object(a.useEffect)(function(){if(Ri.current&&Za&&(Za.match(Li)&&window.PR.prettyPrint()),Ri.current)return Ri.current.addEventListener("click",ri),function(){Ri.current.removeEventListener("click",ri),N(),u()}},[Za,Ri.current,ri]);var Mi=function(Ar){if(!Re)return;Ar.target.nodeName==="IMG"?(fr.current.style.zIndex=1,fr.current.style.display="flex",fr.current.style.width=Ar.target.clientWidth+"px",fr.current.style.height=Ar.target.clientHeight+"px",fr.current.style.top=Ar.target.offsetTop+"px",fr.current.style.left=Ar.target.offsetLeft+"px",Dr.current.src=Ar.target.getAttribute("src")):fr.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:Ri,style:Object(g.a)({},Rn),className:"".concat(he||""," markdown-body ").concat(Kr.a.mdBody),onMouseOver:Mi,dangerouslySetInnerHTML:{__html:Za}}),n.a.createElement("div",{ref:fr,className:Kr.a.button},n.a.createElement(v.a,null,n.a.createElement(b.a,{onClick:function(){return yo()}},"\u88C1\u526A"),n.a.createElement(b.a,{onClick:function(){return Ia()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:Dr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),n.a.createElement(me.a,{close:!0,data:di,type:di!=null&&di.length?mo:"",style:Object(g.a)({},ir),onClose:function(){return _a("")}}))}},"9OqN":function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.mode.CTR=function(){var v=I.lib.BlockCipherMode.extend(),T=v.Encryptor=v.extend({processBlock:function(b,g){var s=this._cipher,_=s.blockSize,p=this._iv,e=this._counter;p&&(e=this._counter=p.slice(0),this._iv=void 0);var a=e.slice(0);s.encryptBlock(a,0),e[_-1]=e[_-1]+1|0;for(var n=0;n<_;n++)b[g+n]^=a[n]}});return v.Decryptor=T,v}(),I.mode.CTR})},"9VGf":function(j,W,y){"use strict";y.d(W,"a",function(){return T});var I=y("q1tI"),v=y.n(I);function T(b,g){var s=Object(I.useRef)();Object(I.useEffect)(function(){s.current=b}),Object(I.useEffect)(function(){function _(){s.current()}if(g!==null){var p=setInterval(_,g);return function(){return clearInterval(p)}}},[g])}},"9odi":function(j,W,y){j.exports={"action-container":"action-container___UsSFw","eval-btn-group":"eval-btn-group___3FHdc","eval-desc":"eval-desc___2RSnM","btn-run":"btn-run___3Xli0","btn-run-self":"btn-run-self___2DnEi","ghost-link":"ghost-link___21xwP",link:"link___2BUFk"}},"A/g1":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},AKST:function(j,W,y){},ALsQ:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.mode.CFB=function(){var v=I.lib.BlockCipherMode.extend();v.Encryptor=v.extend({processBlock:function(b,g){var s=this._cipher,_=s.blockSize;T.call(this,b,g,_,s),this._prevBlock=b.slice(g,g+_)}}),v.Decryptor=v.extend({processBlock:function(b,g){var s=this._cipher,_=s.blockSize,p=b.slice(g,g+_);T.call(this,b,g,_,s),this._prevBlock=p}});function T(b,g,s,_){var p,e=this._iv;e?(p=e.slice(0),this._iv=void 0):p=this._prevBlock,_.encryptBlock(p,0);for(var a=0;a<s;a++)b[g+a]^=p[a]}return v}(),I.mode.CFB})},AMnG:function(j,W,y){"use strict";var I=y("miYZ"),v=y("tsqr"),T=y("tJVT"),b=y("q1tI"),g=y.n(b),s=y("nWbc"),_=y.n(s),p=y("Ot1p");W.a=function(e){var a=e.id,n=e.activeDiscussIndex,l=e.onReplyDiscuss,r=Object(b.useState)(""),i=Object(T.a)(r,2),t=i[0],o=i[1];function c(f){o(f)}function d(){if(!t){v.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}l(a,t),o("")}return g.a.createElement("div",{key:a,className:"discuss-item-editor",style:{display:n===a?"block":"none",width:"100%"}},g.a.createElement(p.a,{miniToolbar:!0,startInit:n===a,defaultValue:t,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:c}),g.a.createElement("a",{onClick:d,className:"btn-send"},"\u53D1\u9001"))}},ARon:function(j,W,y){},BU3w:function(j,W,y){"use strict";y.d(W,"a",function(){return s});var I=y("MNnm"),v="rc-util-key";function T(_){if(_.attachTo)return _.attachTo;var p=document.querySelector("head");return p||document.body}function b(_){var p,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(I.a)())return null;var a=document.createElement("style");if((p=e.csp)===null||p===void 0?void 0:p.nonce){var n;a.nonce=(n=e.csp)===null||n===void 0?void 0:n.nonce}a.innerHTML=_;var l=T(e),r=l.firstChild;return e.prepend&&l.prepend?l.prepend(a):e.prepend&&r?l.insertBefore(a,r):l.appendChild(a),a}var g=new Map;function s(_,p){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=T(e);if(!g.has(a)){var n=b("",e),l=n.parentNode;g.set(a,l),l.removeChild(n)}var r=Array.from(g.get(a).children).find(function(d){return d.tagName==="STYLE"&&d[v]===p});if(r){var i,t;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&r.nonce!==((t=e.csp)===null||t===void 0?void 0:t.nonce)){var o;r.nonce=(o=e.csp)===null||o===void 0?void 0:o.nonce}return r.innerHTML!==_&&(r.innerHTML=_),r}var c=b(_,e);return c[v]=p,c}},Bd2K:function(j,W,y){(function(I){I(y("VrN/"),y("osHv"))})(function(I){I.defineOption("autoCloseTags",!1,function(e,a,n){if(n!=I.Init&&n&&e.removeKeyMap("autoCloseTags"),!a)return;var l={name:"autoCloseTags"};(typeof a!="object"||a.whenClosing!==!1)&&(l["'/'"]=function(r){return s(r)}),(typeof a!="object"||a.whenOpening!==!1)&&(l["'>'"]=function(r){return b(r)}),e.addKeyMap(l)});var v=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function b(e){if(e.getOption("disableInput"))return I.Pass;for(var a=e.listSelections(),n=[],l=e.getOption("autoCloseTags"),r=0;r<a.length;r++){if(!a[r].empty())return I.Pass;var i=a[r].head,t=e.getTokenAt(i),o=I.innerMode(e.getMode(),t.state),c=o.state,d=o.mode.xmlCurrentTag&&o.mode.xmlCurrentTag(c),f=d&&d.name;if(!f)return I.Pass;var h=o.mode.configuration=="html",u=typeof l=="object"&&l.dontCloseTags||h&&v,E=typeof l=="object"&&l.indentTags||h&&T;t.end>i.ch&&(f=f.slice(0,f.length-t.end+i.ch));var x=f.toLowerCase();if(!f||t.type=="string"&&(t.end!=i.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&d.close||t.string.indexOf("/")==i.ch-t.start-1||u&&_(u,x)>-1||p(e,o.mode.xmlCurrentContext&&o.mode.xmlCurrentContext(c)||[],f,i,!0))return I.Pass;var O=typeof l=="object"&&l.emptyTags;if(O&&_(O,f)>-1){n[r]={text:"/>",newPos:I.Pos(i.line,i.ch+2)};continue}var C=E&&_(E,x)>-1;n[r]={indent:C,text:">"+(C?`
`:"")+"</"+f+">",newPos:C?I.Pos(i.line+1,0):I.Pos(i.line,i.ch+1)}}for(var w=typeof l=="object"&&l.dontIndentOnAutoClose,r=a.length-1;r>=0;r--){var S=n[r];e.replaceRange(S.text,a[r].head,a[r].anchor,"+insert");var D=e.listSelections().slice(0);D[r]={head:S.newPos,anchor:S.newPos},e.setSelections(D),!w&&S.indent&&(e.indentLine(S.newPos.line,null,!0),e.indentLine(S.newPos.line+1,null,!0))}}function g(e,a){for(var n=e.listSelections(),l=[],r=a?"/":"</",i=e.getOption("autoCloseTags"),t=typeof i=="object"&&i.dontIndentOnSlash,o=0;o<n.length;o++){if(!n[o].empty())return I.Pass;var c=n[o].head,d=e.getTokenAt(c),f=I.innerMode(e.getMode(),d.state),h=f.state;if(a&&(d.type=="string"||d.string.charAt(0)!="<"||d.start!=c.ch-1))return I.Pass;var u,E=f.mode.name!="xml"&&e.getMode().name=="htmlmixed";if(E&&f.mode.name=="javascript")u=r+"script";else if(E&&f.mode.name=="css")u=r+"style";else{var x=f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(h);if(!x||x.length&&p(e,x,x[x.length-1],c))return I.Pass;u=r+x[x.length-1]}e.getLine(c.line).charAt(d.end)!=">"&&(u+=">"),l[o]=u}if(e.replaceSelections(l),n=e.listSelections(),!t)for(var o=0;o<n.length;o++)(o==n.length-1||n[o].head.line<n[o+1].head.line)&&e.indentLine(n[o].head.line)}function s(e){return e.getOption("disableInput")?I.Pass:g(e,!0)}I.commands.closeTag=function(e){return g(e)};function _(e,a){if(e.indexOf)return e.indexOf(a);for(var n=0,l=e.length;n<l;++n)if(e[n]==a)return n;return-1}function p(e,a,n,l,r){if(!I.scanForClosingTag)return!1;var i=Math.min(e.lastLine()+1,l.line+500),t=I.scanForClosingTag(e,l,null,i);if(!t||t.tag!=n)return!1;for(var o=r?1:0,c=a.length-1;c>=0&&a[c]==n;c--)++o;l=t.to;for(var c=1;c<o;c++){var d=I.scanForClosingTag(e,l,null,i);if(!d||d.tag!=n)return!1;l=d.to}return!0}})},BdwD:function(j,W,y){"use strict";var I=y("+L6B"),v=y("2/Rp"),T=y("0Owb"),b=y("k1fw"),g=y("q1tI"),s=y.n(g),_=y("FOrL"),p=y.n(_),e=function(n){var l=n.buttonProps,r=l===void 0?{}:l,i=n.styles,t=i===void 0?{}:i,o=n.customText,c=n.ButtonText,d=n.ButtonClick,f=n.Buttonclass,h=n.ButtonTwo;return s.a.createElement("section",{className:"tc animated fadeIn",style:Object(b.a)(Object(b.a)({},{color:"#999",margin:"200px auto"}),t)},s.a.createElement("img",{src:p.a}),s.a.createElement("p",{className:"mt20 font14"},o||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),c&&s.a.createElement(v.a,Object(T.a)({className:f,onClick:d},r),c),h&&h)};W.a=e},BjJ7:function(j,W,y){"use strict";y.d(W,"d",function(){return v}),y.d(W,"c",function(){return T}),y.d(W,"e",function(){return b}),y.d(W,"b",function(){return g}),y.d(W,"a",function(){return _});var I=y("m3rI");function v(p){var e=!0;if(p.length>0){for(var a=0;a<p.length;a++)if(p[a].compile_success==0||!p[a].compile_success){e=!1;break}}else e=!1;return e}function T(p){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=[],n=0;n<p.length;n++){var l=p[n],r=e?"".concat(e,"/").concat(l.name):"".concat(l.name);a.push({title:l.name,isLeaf:!(l.type==="tree"),key:r})}return a}function b(p,e,a){for(var n=0;n<p.length;n++){var l=p[n];if(l.key===e){l.children=a;break}l.children&&b(l.children,e,a)}return p}function g(p,e,a){var n;return function(){var l=this,r=arguments,i=function(){n=null,a||p.apply(l,r)},t=a&&!n;clearTimeout(n),n=setTimeout(i,e),t&&p.apply(l,r)}}var s=!0,_=I.a.API_SERVER},"C+DQ":function(j,W,y){},"C/vA":function(j,W,y){"use strict";y.d(W,"a",function(){return I});function I(v){const T=this;let b=!1,g;return function(){return b||(b=!0,g=v.apply(T,arguments)),g}}},"Cg/j":function(j,W,y){"use strict";y.d(W,"b",function(){return I}),y.d(W,"a",function(){return v}),y.d(W,"c",function(){return b}),y.d(W,"d",function(){return g});var I;(function(s){s.serviceIds=new Map,s.DI_TARGET="$di$target",s.DI_DEPENDENCIES="$di$dependencies";function _(p){return p[s.DI_DEPENDENCIES]||[]}s.getServiceDependencies=_})(I||(I={}));const v=b("instantiationService");function T(s,_,p,e){_[I.DI_TARGET]===_?_[I.DI_DEPENDENCIES].push({id:s,index:p,optional:e}):(_[I.DI_DEPENDENCIES]=[{id:s,index:p,optional:e}],_[I.DI_TARGET]=_)}function b(s){if(I.serviceIds.has(s))return I.serviceIds.get(s);const _=function(p,e,a){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");T(_,p,a,!1)};return _.toString=()=>s,I.serviceIds.set(s,_),_}function g(s){return function(_,p,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");T(s,_,e,!0)}}},CrYA:function(j,W,y){var I=y("MFOe"),v=I.Global;j.exports={name:"sessionStorage",read:b,write:g,each:s,remove:_,clearAll:p};function T(){return v.sessionStorage}function b(e){return T().getItem(e)}function g(e,a){return T().setItem(e,a)}function s(e){for(var a=T().length-1;a>=0;a--){var n=T().key(a);e(b(n),n)}}function _(e){return T().removeItem(e)}function p(){return T().clear()}},DVFL:function(j,W,y){},DlQD:function(j,W,y){(function(I,v){j.exports=v()})(this,function(){"use strict";function I(Ve,Fe){for(var Be=0;Be<Fe.length;Be++){var _e=Fe[Be];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(Ve,_e.key,_e)}}function v(Ve,Fe,Be){return Fe&&I(Ve.prototype,Fe),Be&&I(Ve,Be),Ve}function T(Ve,Fe){if(!Ve)return;if(typeof Ve=="string")return b(Ve,Fe);var Be=Object.prototype.toString.call(Ve).slice(8,-1);if(Be==="Object"&&Ve.constructor&&(Be=Ve.constructor.name),Be==="Map"||Be==="Set")return Array.from(Ve);if(Be==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Be))return b(Ve,Fe)}function b(Ve,Fe){(Fe==null||Fe>Ve.length)&&(Fe=Ve.length);for(var Be=0,_e=new Array(Fe);Be<Fe;Be++)_e[Be]=Ve[Be];return _e}function g(Ve,Fe){var Be;if(typeof Symbol=="undefined"||Ve[Symbol.iterator]==null){if(Array.isArray(Ve)||(Be=T(Ve))||Fe&&Ve&&typeof Ve.length=="number"){Be&&(Ve=Be);var _e=0;return function(){return _e>=Ve.length?{done:!0}:{done:!1,value:Ve[_e++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Be=Ve[Symbol.iterator](),Be.next.bind(Be)}function s(Ve,Fe){return Fe={exports:{}},Ve(Fe,Fe.exports),Fe.exports}var _=s(function(Ve){function Fe(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Be(_e){Ve.exports.defaults=_e}Ve.exports={defaults:Fe(),getDefaults:Fe,changeDefaults:Be}}),p=_.defaults,e=_.getDefaults,a=_.changeDefaults,n=/[&<>"']/,l=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},o=function(Fe){return t[Fe]};function c(Ve,Fe){if(Fe){if(n.test(Ve))return Ve.replace(l,o)}else if(r.test(Ve))return Ve.replace(i,o);return Ve}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function f(Ve){return Ve.replace(d,function(Fe,Be){return Be=Be.toLowerCase(),Be==="colon"?":":Be.charAt(0)==="#"?Be.charAt(1)==="x"?String.fromCharCode(parseInt(Be.substring(2),16)):String.fromCharCode(+Be.substring(1)):""})}var h=/(^|[^\[])\^/g;function u(Ve,Fe){Ve=Ve.source||Ve,Fe=Fe||"";var Be={replace:function(Ae,fe){return fe=fe.source||fe,fe=fe.replace(h,"$1"),Ve=Ve.replace(Ae,fe),Be},getRegex:function(){return new RegExp(Ve,Fe)}};return Be}var E=/[^\w:]/g,x=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function O(Ve,Fe,Be){if(Ve){var _e;try{_e=decodeURIComponent(f(Be)).replace(E,"").toLowerCase()}catch(Ae){return null}if(_e.indexOf("javascript:")===0||_e.indexOf("vbscript:")===0||_e.indexOf("data:")===0)return null}Fe&&!x.test(Be)&&(Be=R(Fe,Be));try{Be=encodeURI(Be).replace(/%25/g,"%")}catch(Ae){return null}return Be}var C={},w=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,D=/^([^:]+:\/*[^/]*)[\s\S]*$/;function R(Ve,Fe){C[" "+Ve]||(w.test(Ve)?C[" "+Ve]=Ve+"/":C[" "+Ve]=z(Ve,"/",!0)),Ve=C[" "+Ve];var Be=Ve.indexOf(":")===-1;return Fe.substring(0,2)==="//"?Be?Fe:Ve.replace(S,"$1")+Fe:Fe.charAt(0)==="/"?Be?Fe:Ve.replace(D,"$1")+Fe:Ve+Fe}var P={exec:function(){}};function N(Ve){for(var Fe=1,Be,_e;Fe<arguments.length;Fe++){Be=arguments[Fe];for(_e in Be)Object.prototype.hasOwnProperty.call(Be,_e)&&(Ve[_e]=Be[_e])}return Ve}function M(Ve,Fe){var Be=Ve.replace(/\|/g,function(fe,ke,Je){for(var ne=!1,Qe=ke;--Qe>=0&&Je[Qe]==="\\";)ne=!ne;return ne?"|":" |"}),_e=Be.split(/ \|/),Ae=0;if(_e.length>Fe)_e.splice(Fe);else for(;_e.length<Fe;)_e.push("");for(;Ae<_e.length;Ae++)_e[Ae]=_e[Ae].trim().replace(/\\\|/g,"|");return _e}function z(Ve,Fe,Be){var _e=Ve.length;if(_e===0)return"";for(var Ae=0;Ae<_e;){var fe=Ve.charAt(_e-Ae-1);if(fe===Fe&&!Be)Ae++;else if(fe!==Fe&&Be)Ae++;else break}return Ve.substr(0,_e-Ae)}function X(Ve,Fe){if(Ve.indexOf(Fe[1])===-1)return-1;for(var Be=Ve.length,_e=0,Ae=0;Ae<Be;Ae++)if(Ve[Ae]==="\\")Ae++;else if(Ve[Ae]===Fe[0])_e++;else if(Ve[Ae]===Fe[1]&&(_e--,_e<0))return Ae;return-1}function k(Ve){Ve&&Ve.sanitize&&!Ve.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var F={escape:c,unescape:f,edit:u,cleanUrl:O,resolveUrl:R,noopTest:P,merge:N,splitCells:M,rtrim:z,findClosingBracket:X,checkSanitizeDeprecation:k},U=_.defaults,L=F.rtrim,B=F.splitCells,Z=F.escape,re=F.findClosingBracket;function me(Ve,Fe,Be){var _e=Fe.href,Ae=Fe.title?Z(Fe.title):null,fe=Ve[1].replace(/\\([\[\]])/g,"$1");return Ve[0].charAt(0)!=="!"?{type:"link",raw:Be,href:_e,title:Ae,text:fe}:{type:"image",raw:Be,href:_e,title:Ae,text:Z(fe)}}function Ee(Ve,Fe){var Be=Ve.match(/^(\s+)(?:```)/);if(Be===null)return Fe;var _e=Be[1];return Fe.split(`
`).map(function(Ae){var fe=Ae.match(/^\s+/);if(fe===null)return Ae;var ke=fe[0];return ke.length>=_e.length?Ae.slice(_e.length):Ae}).join(`
`)}var De=function(){function Ve(Be){this.options=Be||U}var Fe=Ve.prototype;return Fe.space=function(_e){var Ae=this.rules.block.newline.exec(_e);if(Ae)return Ae[0].length>1?{type:"space",raw:Ae[0]}:{raw:`
`}},Fe.code=function(_e,Ae){var fe=this.rules.block.code.exec(_e);if(fe){var ke=Ae[Ae.length-1];if(ke&&ke.type==="paragraph")return{raw:fe[0],text:fe[0].trimRight()};var Je=fe[0].replace(/^ {4}/gm,"");return{type:"code",raw:fe[0],codeBlockStyle:"indented",text:this.options.pedantic?Je:L(Je,`
`)}}},Fe.fences=function(_e){var Ae=this.rules.block.fences.exec(_e);if(Ae){var fe=Ae[0],ke=Ee(fe,Ae[3]||"");return{type:"code",raw:fe,lang:Ae[2]?Ae[2].trim():Ae[2],text:ke}}},Fe.heading=function(_e){var Ae=this.rules.block.heading.exec(_e);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},Fe.nptable=function(_e){var Ae=this.rules.block.nptable.exec(_e);if(Ae){var fe={type:"table",header:B(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[],raw:Ae[0]};if(fe.header.length===fe.align.length){var ke=fe.align.length,Je;for(Je=0;Je<ke;Je++)/^ *-+: *$/.test(fe.align[Je])?fe.align[Je]="right":/^ *:-+: *$/.test(fe.align[Je])?fe.align[Je]="center":/^ *:-+ *$/.test(fe.align[Je])?fe.align[Je]="left":fe.align[Je]=null;for(ke=fe.cells.length,Je=0;Je<ke;Je++)fe.cells[Je]=B(fe.cells[Je],fe.header.length);return fe}}},Fe.hr=function(_e){var Ae=this.rules.block.hr.exec(_e);if(Ae)return{type:"hr",raw:Ae[0]}},Fe.blockquote=function(_e){var Ae=this.rules.block.blockquote.exec(_e);if(Ae){var fe=Ae[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ae[0],text:fe}}},Fe.list=function(_e){var Ae=this.rules.block.list.exec(_e);if(Ae){for(var fe=Ae[0],ke=Ae[2],Je=ke.length>1,ne=ke[ke.length-1]===")",Qe={type:"list",raw:fe,ordered:Je,start:Je?+ke.slice(0,-1):"",loose:!1,items:[]},dt=Ae[0].match(this.rules.block.item),Ke=!1,et,rt,bt,ut,ot,Ue,We,ft=dt.length,nt=0;nt<ft;nt++)et=dt[nt],fe=et,rt=et.length,et=et.replace(/^ *([*+-]|\d+[.)]) */,""),~et.indexOf(`
`)&&(rt-=et.length,et=this.options.pedantic?et.replace(/^ {1,4}/gm,""):et.replace(new RegExp("^ {1,"+rt+"}","gm"),"")),nt!==ft-1&&(bt=this.rules.block.bullet.exec(dt[nt+1])[0],(Je?bt.length===1||!ne&&bt[bt.length-1]===")":bt.length>1||this.options.smartLists&&bt!==ke)&&(ut=dt.slice(nt+1).join(`
`),Qe.raw=Qe.raw.substring(0,Qe.raw.length-ut.length),nt=ft-1)),ot=Ke||/\n\n(?!\s*$)/.test(et),nt!==ft-1&&(Ke=et.charAt(et.length-1)===`
`,ot||(ot=Ke)),ot&&(Qe.loose=!0),Ue=/^\[[ xX]\] /.test(et),We=void 0,Ue&&(We=et[1]!==" ",et=et.replace(/^\[[ xX]\] +/,"")),Qe.items.push({type:"list_item",raw:fe,task:Ue,checked:We,loose:ot,text:et});return Qe}},Fe.html=function(_e){var Ae=this.rules.block.html.exec(_e);if(Ae)return{type:this.options.sanitize?"paragraph":"html",raw:Ae[0],pre:!this.options.sanitizer&&(Ae[1]==="pre"||Ae[1]==="script"||Ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ae[0]):Z(Ae[0]):Ae[0]}},Fe.def=function(_e){var Ae=this.rules.block.def.exec(_e);if(Ae){Ae[3]&&(Ae[3]=Ae[3].substring(1,Ae[3].length-1));var fe=Ae[1].toLowerCase().replace(/\s+/g," ");return{tag:fe,raw:Ae[0],href:Ae[2],title:Ae[3]}}},Fe.table=function(_e){var Ae=this.rules.block.table.exec(_e);if(Ae){var fe={type:"table",header:B(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[]};if(fe.header.length===fe.align.length){fe.raw=Ae[0];var ke=fe.align.length,Je;for(Je=0;Je<ke;Je++)/^ *-+: *$/.test(fe.align[Je])?fe.align[Je]="right":/^ *:-+: *$/.test(fe.align[Je])?fe.align[Je]="center":/^ *:-+ *$/.test(fe.align[Je])?fe.align[Je]="left":fe.align[Je]=null;for(ke=fe.cells.length,Je=0;Je<ke;Je++)fe.cells[Je]=B(fe.cells[Je].replace(/^ *\| *| *\| *$/g,""),fe.header.length);return fe}}},Fe.lheading=function(_e){var Ae=this.rules.block.lheading.exec(_e);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[2].charAt(0)==="="?1:2,text:Ae[1]}},Fe.paragraph=function(_e){var Ae=this.rules.block.paragraph.exec(_e);if(Ae)return{type:"paragraph",raw:Ae[0],text:Ae[1].charAt(Ae[1].length-1)===`
`?Ae[1].slice(0,-1):Ae[1]}},Fe.text=function(_e,Ae){var fe=this.rules.block.text.exec(_e);if(fe){var ke=Ae[Ae.length-1];return ke&&ke.type==="text"?{raw:fe[0],text:fe[0]}:{type:"text",raw:fe[0],text:fe[0]}}},Fe.escape=function(_e){var Ae=this.rules.inline.escape.exec(_e);if(Ae)return{type:"escape",raw:Ae[0],text:Z(Ae[1])}},Fe.tag=function(_e,Ae,fe){var ke=this.rules.inline.tag.exec(_e);if(ke)return!Ae&&/^<a /i.test(ke[0])?Ae=!0:Ae&&/^<\/a>/i.test(ke[0])&&(Ae=!1),!fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(ke[0])?fe=!0:fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ke[0])&&(fe=!1),{type:this.options.sanitize?"text":"html",raw:ke[0],inLink:Ae,inRawBlock:fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ke[0]):Z(ke[0]):ke[0]}},Fe.link=function(_e){var Ae=this.rules.inline.link.exec(_e);if(Ae){var fe=re(Ae[2],"()");if(fe>-1){var ke=Ae[0].indexOf("!")===0?5:4,Je=ke+Ae[1].length+fe;Ae[2]=Ae[2].substring(0,fe),Ae[0]=Ae[0].substring(0,Je).trim(),Ae[3]=""}var ne=Ae[2],Qe="";if(this.options.pedantic){var dt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ne);dt?(ne=dt[1],Qe=dt[3]):Qe=""}else Qe=Ae[3]?Ae[3].slice(1,-1):"";ne=ne.trim().replace(/^<([\s\S]*)>$/,"$1");var Ke=me(Ae,{href:ne&&ne.replace(this.rules.inline._escapes,"$1"),title:Qe&&Qe.replace(this.rules.inline._escapes,"$1")},Ae[0]);return Ke}},Fe.reflink=function(_e,Ae){var fe;if((fe=this.rules.inline.reflink.exec(_e))||(fe=this.rules.inline.nolink.exec(_e))){var ke=(fe[2]||fe[1]).replace(/\s+/g," ");if(ke=Ae[ke.toLowerCase()],!ke||!ke.href){var Je=fe[0].charAt(0);return{type:"text",raw:Je,text:Je}}var ne=me(fe,ke,fe[0]);return ne}},Fe.strong=function(_e,Ae,fe){fe===void 0&&(fe="");var ke=this.rules.inline.strong.start.exec(_e);if(ke&&(!ke[1]||ke[1]&&(fe===""||this.rules.inline.punctuation.exec(fe)))){Ae=Ae.slice(-1*_e.length);var Je=ke[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Je.lastIndex=0;for(var ne;(ke=Je.exec(Ae))!=null;)if(ne=this.rules.inline.strong.middle.exec(Ae.slice(0,ke.index+3)),ne)return{type:"strong",raw:_e.slice(0,ne[0].length),text:_e.slice(2,ne[0].length-2)}}},Fe.em=function(_e,Ae,fe){fe===void 0&&(fe="");var ke=this.rules.inline.em.start.exec(_e);if(ke&&(!ke[1]||ke[1]&&(fe===""||this.rules.inline.punctuation.exec(fe)))){Ae=Ae.slice(-1*_e.length);var Je=ke[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Je.lastIndex=0;for(var ne;(ke=Je.exec(Ae))!=null;)if(ne=this.rules.inline.em.middle.exec(Ae.slice(0,ke.index+2)),ne)return{type:"em",raw:_e.slice(0,ne[0].length),text:_e.slice(1,ne[0].length-1)}}},Fe.codespan=function(_e){var Ae=this.rules.inline.code.exec(_e);if(Ae){var fe=Ae[2].replace(/\n/g," "),ke=/[^ ]/.test(fe),Je=fe.startsWith(" ")&&fe.endsWith(" ");return ke&&Je&&(fe=fe.substring(1,fe.length-1)),fe=Z(fe,!0),{type:"codespan",raw:Ae[0],text:fe}}},Fe.br=function(_e){var Ae=this.rules.inline.br.exec(_e);if(Ae)return{type:"br",raw:Ae[0]}},Fe.del=function(_e){var Ae=this.rules.inline.del.exec(_e);if(Ae)return{type:"del",raw:Ae[0],text:Ae[1]}},Fe.autolink=function(_e,Ae){var fe=this.rules.inline.autolink.exec(_e);if(fe){var ke,Je;return fe[2]==="@"?(ke=Z(this.options.mangle?Ae(fe[1]):fe[1]),Je="mailto:"+ke):(ke=Z(fe[1]),Je=ke),{type:"link",raw:fe[0],text:ke,href:Je,tokens:[{type:"text",raw:ke,text:ke}]}}},Fe.url=function(_e,Ae){var fe;if(fe=this.rules.inline.url.exec(_e)){var ke,Je;if(fe[2]==="@")ke=Z(this.options.mangle?Ae(fe[0]):fe[0]),Je="mailto:"+ke;else{var ne;do ne=fe[0],fe[0]=this.rules.inline._backpedal.exec(fe[0])[0];while(ne!==fe[0]);ke=Z(fe[0]),fe[1]==="www."?Je="http://"+ke:Je=ke}return{type:"link",raw:fe[0],text:ke,href:Je,tokens:[{type:"text",raw:ke,text:ke}]}}},Fe.inlineText=function(_e,Ae,fe){var ke=this.rules.inline.text.exec(_e);if(ke){var Je;return Ae?Je=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ke[0]):Z(ke[0]):ke[0]:Je=Z(this.options.smartypants?fe(ke[0]):ke[0]),{type:"text",raw:ke[0],text:Je}}},Ve}(),te=F.noopTest,Ce=F.edit,we=F.merge,ce={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:te,table:te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ce._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ce.def=Ce(ce.def).replace("label",ce._label).replace("title",ce._title).getRegex(),ce.bullet=/(?:[*+-]|\d{1,9}[.)])/,ce.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ce.item=Ce(ce.item,"gm").replace(/bull/g,ce.bullet).getRegex(),ce.list=Ce(ce.list).replace(/bull/g,ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ce.def.source+")").getRegex(),ce._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ce._comment=/<!--(?!-?>)[\s\S]*?-->/,ce.html=Ce(ce.html,"i").replace("comment",ce._comment).replace("tag",ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ce.paragraph=Ce(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ce._tag).getRegex(),ce.blockquote=Ce(ce.blockquote).replace("paragraph",ce.paragraph).getRegex(),ce.normal=we({},ce),ce.gfm=we({},ce.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ce.gfm.nptable=Ce(ce.gfm.nptable).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ce._tag).getRegex(),ce.gfm.table=Ce(ce.gfm.table).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ce._tag).getRegex(),ce.pedantic=we({},ce.normal,{html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ce._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:te,paragraph:Ce(ce.normal._paragraph).replace("hr",ce.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:te,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:te,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};le._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",le.punctuation=Ce(le.punctuation).replace(/punctuation/g,le._punctuation).getRegex(),le._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",le._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",le.em.start=Ce(le.em.start).replace(/punctuation/g,le._punctuation).getRegex(),le.em.middle=Ce(le.em.middle).replace(/punctuation/g,le._punctuation).replace(/overlapSkip/g,le._overlapSkip).getRegex(),le.em.endAst=Ce(le.em.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.em.endUnd=Ce(le.em.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.start=Ce(le.strong.start).replace(/punctuation/g,le._punctuation).getRegex(),le.strong.middle=Ce(le.strong.middle).replace(/punctuation/g,le._punctuation).replace(/blockSkip/g,le._blockSkip).getRegex(),le.strong.endAst=Ce(le.strong.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.endUnd=Ce(le.strong.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.blockSkip=Ce(le._blockSkip,"g").getRegex(),le.overlapSkip=Ce(le._overlapSkip,"g").getRegex(),le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,le._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,le.autolink=Ce(le.autolink).replace("scheme",le._scheme).replace("email",le._email).getRegex(),le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,le.tag=Ce(le.tag).replace("comment",ce._comment).replace("attribute",le._attribute).getRegex(),le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,le._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,le.link=Ce(le.link).replace("label",le._label).replace("href",le._href).replace("title",le._title).getRegex(),le.reflink=Ce(le.reflink).replace("label",le._label).getRegex(),le.reflinkSearch=Ce(le.reflinkSearch,"g").replace("reflink",le.reflink).replace("nolink",le.nolink).getRegex(),le.normal=we({},le),le.pedantic=we({},le.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",le._label).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",le._label).getRegex()}),le.gfm=we({},le.normal,{escape:Ce(le.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),le.gfm.url=Ce(le.gfm.url,"i").replace("email",le.gfm._extended_email).getRegex(),le.breaks=we({},le.gfm,{br:Ce(le.br).replace("{2,}","*").getRegex(),text:Ce(le.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var oe={block:ce,inline:le},xe=_.defaults,q=oe.block,se=oe.inline;function Ne(Ve){return Ve.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function de(Ve){var Fe="",Be,_e,Ae=Ve.length;for(Be=0;Be<Ae;Be++)_e=Ve.charCodeAt(Be),Math.random()>.5&&(_e="x"+_e.toString(16)),Fe+="&#"+_e+";";return Fe}var $=function(){function Ve(Be){this.tokens=[],this.tokens.links=Object.create(null),this.options=Be||xe,this.options.tokenizer=this.options.tokenizer||new De,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var _e={block:q.normal,inline:se.normal};this.options.pedantic?(_e.block=q.pedantic,_e.inline=se.pedantic):this.options.gfm&&(_e.block=q.gfm,this.options.breaks?_e.inline=se.breaks:_e.inline=se.gfm),this.tokenizer.rules=_e}Ve.lex=function(_e,Ae){var fe=new Ve(Ae);return fe.lex(_e)};var Fe=Ve.prototype;return Fe.lex=function(_e){return _e=_e.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(_e,this.tokens,!0),this.inline(this.tokens),this.tokens},Fe.blockTokens=function(_e,Ae,fe){Ae===void 0&&(Ae=[]),fe===void 0&&(fe=!0),_e=_e.replace(/^ +$/gm,"");for(var ke,Je,ne,Qe;_e;){if(ke=this.tokenizer.space(_e)){_e=_e.substring(ke.raw.length),ke.type&&Ae.push(ke);continue}if(ke=this.tokenizer.code(_e,Ae)){_e=_e.substring(ke.raw.length),ke.type?Ae.push(ke):(Qe=Ae[Ae.length-1],Qe.raw+=`
`+ke.raw,Qe.text+=`
`+ke.text);continue}if(ke=this.tokenizer.fences(_e)){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(ke=this.tokenizer.heading(_e)){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(ke=this.tokenizer.nptable(_e)){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(ke=this.tokenizer.hr(_e)){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(ke=this.tokenizer.blockquote(_e)){_e=_e.substring(ke.raw.length),ke.tokens=this.blockTokens(ke.text,[],fe),Ae.push(ke);continue}if(ke=this.tokenizer.list(_e)){for(_e=_e.substring(ke.raw.length),ne=ke.items.length,Je=0;Je<ne;Je++)ke.items[Je].tokens=this.blockTokens(ke.items[Je].text,[],!1);Ae.push(ke);continue}if(ke=this.tokenizer.html(_e)){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(fe&&(ke=this.tokenizer.def(_e))){_e=_e.substring(ke.raw.length),this.tokens.links[ke.tag]||(this.tokens.links[ke.tag]={href:ke.href,title:ke.title});continue}if(ke=this.tokenizer.table(_e)){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(ke=this.tokenizer.lheading(_e)){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(fe&&(ke=this.tokenizer.paragraph(_e))){_e=_e.substring(ke.raw.length),Ae.push(ke);continue}if(ke=this.tokenizer.text(_e,Ae)){_e=_e.substring(ke.raw.length),ke.type?Ae.push(ke):(Qe=Ae[Ae.length-1],Qe.raw+=`
`+ke.raw,Qe.text+=`
`+ke.text);continue}if(_e){var dt="Infinite loop on byte: "+_e.charCodeAt(0);if(this.options.silent){console.error(dt);break}else throw new Error(dt)}}return Ae},Fe.inline=function(_e){var Ae,fe,ke,Je,ne,Qe,dt=_e.length;for(Ae=0;Ae<dt;Ae++){Qe=_e[Ae];switch(Qe.type){case"paragraph":case"text":case"heading":{Qe.tokens=[],this.inlineTokens(Qe.text,Qe.tokens);break}case"table":{for(Qe.tokens={header:[],cells:[]},Je=Qe.header.length,fe=0;fe<Je;fe++)Qe.tokens.header[fe]=[],this.inlineTokens(Qe.header[fe],Qe.tokens.header[fe]);for(Je=Qe.cells.length,fe=0;fe<Je;fe++)for(ne=Qe.cells[fe],Qe.tokens.cells[fe]=[],ke=0;ke<ne.length;ke++)Qe.tokens.cells[fe][ke]=[],this.inlineTokens(ne[ke],Qe.tokens.cells[fe][ke]);break}case"blockquote":{this.inline(Qe.tokens);break}case"list":{for(Je=Qe.items.length,fe=0;fe<Je;fe++)this.inline(Qe.items[fe].tokens);break}}}return _e},Fe.inlineTokens=function(_e,Ae,fe,ke,Je){Ae===void 0&&(Ae=[]),fe===void 0&&(fe=!1),ke===void 0&&(ke=!1),Je===void 0&&(Je="");var ne,Qe=_e,dt;if(this.tokens.links){var Ke=Object.keys(this.tokens.links);if(Ke.length>0)for(;(dt=this.tokenizer.rules.inline.reflinkSearch.exec(Qe))!=null;)Ke.includes(dt[0].slice(dt[0].lastIndexOf("[")+1,-1))&&(Qe=Qe.slice(0,dt.index)+"["+"a".repeat(dt[0].length-2)+"]"+Qe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(dt=this.tokenizer.rules.inline.blockSkip.exec(Qe))!=null;)Qe=Qe.slice(0,dt.index)+"["+"a".repeat(dt[0].length-2)+"]"+Qe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;_e;){if(ne=this.tokenizer.escape(_e)){_e=_e.substring(ne.raw.length),Ae.push(ne);continue}if(ne=this.tokenizer.tag(_e,fe,ke)){_e=_e.substring(ne.raw.length),fe=ne.inLink,ke=ne.inRawBlock,Ae.push(ne);continue}if(ne=this.tokenizer.link(_e)){_e=_e.substring(ne.raw.length),ne.type==="link"&&(ne.tokens=this.inlineTokens(ne.text,[],!0,ke)),Ae.push(ne);continue}if(ne=this.tokenizer.reflink(_e,this.tokens.links)){_e=_e.substring(ne.raw.length),ne.type==="link"&&(ne.tokens=this.inlineTokens(ne.text,[],!0,ke)),Ae.push(ne);continue}if(ne=this.tokenizer.strong(_e,Qe,Je)){_e=_e.substring(ne.raw.length),ne.tokens=this.inlineTokens(ne.text,[],fe,ke),Ae.push(ne);continue}if(ne=this.tokenizer.em(_e,Qe,Je)){_e=_e.substring(ne.raw.length),ne.tokens=this.inlineTokens(ne.text,[],fe,ke),Ae.push(ne);continue}if(ne=this.tokenizer.codespan(_e)){_e=_e.substring(ne.raw.length),Ae.push(ne);continue}if(ne=this.tokenizer.br(_e)){_e=_e.substring(ne.raw.length),Ae.push(ne);continue}if(ne=this.tokenizer.del(_e)){_e=_e.substring(ne.raw.length),ne.tokens=this.inlineTokens(ne.text,[],fe,ke),Ae.push(ne);continue}if(ne=this.tokenizer.autolink(_e,de)){_e=_e.substring(ne.raw.length),Ae.push(ne);continue}if(!fe&&(ne=this.tokenizer.url(_e,de))){_e=_e.substring(ne.raw.length),Ae.push(ne);continue}if(ne=this.tokenizer.inlineText(_e,ke,Ne)){_e=_e.substring(ne.raw.length),Je=ne.raw.slice(-1),Ae.push(ne);continue}if(_e){var et="Infinite loop on byte: "+_e.charCodeAt(0);if(this.options.silent){console.error(et);break}else throw new Error(et)}}return Ae},v(Ve,null,[{key:"rules",get:function(){return{block:q,inline:se}}}]),Ve}(),Q=_.defaults,Y=F.cleanUrl,ue=F.escape,ae=function(){function Ve(Be){this.options=Be||Q}var Fe=Ve.prototype;return Fe.code=function(_e,Ae,fe){var ke=(Ae||"").match(/\S*/)[0];if(this.options.highlight){var Je=this.options.highlight(_e,ke);Je!=null&&Je!==_e&&(fe=!0,_e=Je)}return ke?'<pre><code class="'+this.options.langPrefix+ue(ke,!0)+'">'+(fe?_e:ue(_e,!0))+`</code></pre>
`:"<pre><code>"+(fe?_e:ue(_e,!0))+`</code></pre>
`},Fe.blockquote=function(_e){return`<blockquote>
`+_e+`</blockquote>
`},Fe.html=function(_e){return _e},Fe.heading=function(_e,Ae,fe,ke){return this.options.headerIds?"<h"+Ae+' id="'+this.options.headerPrefix+ke.slug(fe)+'">'+_e+"</h"+Ae+`>
`:"<h"+Ae+">"+_e+"</h"+Ae+`>
`},Fe.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Fe.list=function(_e,Ae,fe){var ke=Ae?"ol":"ul",Je=Ae&&fe!==1?' start="'+fe+'"':"";return"<"+ke+Je+`>
`+_e+"</"+ke+`>
`},Fe.listitem=function(_e){return"<li>"+_e+`</li>
`},Fe.checkbox=function(_e){return"<input "+(_e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Fe.paragraph=function(_e){return"<p>"+_e+`</p>
`},Fe.table=function(_e,Ae){return Ae&&(Ae="<tbody>"+Ae+"</tbody>"),`<table>
<thead>
`+_e+`</thead>
`+Ae+`</table>
`},Fe.tablerow=function(_e){return`<tr>
`+_e+`</tr>
`},Fe.tablecell=function(_e,Ae){var fe=Ae.header?"th":"td",ke=Ae.align?"<"+fe+' align="'+Ae.align+'">':"<"+fe+">";return ke+_e+"</"+fe+`>
`},Fe.strong=function(_e){return"<strong>"+_e+"</strong>"},Fe.em=function(_e){return"<em>"+_e+"</em>"},Fe.codespan=function(_e){return"<code>"+_e+"</code>"},Fe.br=function(){return this.options.xhtml?"<br/>":"<br>"},Fe.del=function(_e){return"<del>"+_e+"</del>"},Fe.link=function(_e,Ae,fe){if(_e=Y(this.options.sanitize,this.options.baseUrl,_e),_e===null)return fe;var ke='<a href="'+ue(_e)+'"';return Ae&&(ke+=' title="'+Ae+'"'),ke+=">"+fe+"</a>",ke},Fe.image=function(_e,Ae,fe){if(_e=Y(this.options.sanitize,this.options.baseUrl,_e),_e===null)return fe;var ke='<img src="'+_e+'" alt="'+fe+'"';return Ae&&(ke+=' title="'+Ae+'"'),ke+=this.options.xhtml?"/>":">",ke},Fe.text=function(_e){return _e},Ve}(),be=function(){function Ve(){}var Fe=Ve.prototype;return Fe.strong=function(_e){return _e},Fe.em=function(_e){return _e},Fe.codespan=function(_e){return _e},Fe.del=function(_e){return _e},Fe.html=function(_e){return _e},Fe.text=function(_e){return _e},Fe.link=function(_e,Ae,fe){return""+fe},Fe.image=function(_e,Ae,fe){return""+fe},Fe.br=function(){return""},Ve}(),Ie=function(){function Ve(){this.seen={}}var Fe=Ve.prototype;return Fe.slug=function(_e){var Ae=_e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ae)){var fe=Ae;do this.seen[fe]++,Ae=fe+"-"+this.seen[fe];while(this.seen.hasOwnProperty(Ae))}return this.seen[Ae]=0,Ae},Ve}(),pe=_.defaults,Le=F.unescape,ve=function(){function Ve(Be){this.options=Be||pe,this.options.renderer=this.options.renderer||new ae,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new be,this.slugger=new Ie}Ve.parse=function(_e,Ae){var fe=new Ve(Ae);return fe.parse(_e)};var Fe=Ve.prototype;return Fe.parse=function(_e,Ae){Ae===void 0&&(Ae=!0);var fe="",ke,Je,ne,Qe,dt,Ke,et,rt,bt,ut,ot,Ue,We,ft,nt,Dt,Kt,vt,Ht=_e.length;for(ke=0;ke<Ht;ke++){ut=_e[ke];switch(ut.type){case"space":continue;case"hr":{fe+=this.renderer.hr();continue}case"heading":{fe+=this.renderer.heading(this.parseInline(ut.tokens),ut.depth,Le(this.parseInline(ut.tokens,this.textRenderer)),this.slugger);continue}case"code":{fe+=this.renderer.code(ut.text,ut.lang,ut.escaped);continue}case"table":{for(rt="",et="",Qe=ut.header.length,Je=0;Je<Qe;Je++)et+=this.renderer.tablecell(this.parseInline(ut.tokens.header[Je]),{header:!0,align:ut.align[Je]});for(rt+=this.renderer.tablerow(et),bt="",Qe=ut.cells.length,Je=0;Je<Qe;Je++){for(Ke=ut.tokens.cells[Je],et="",dt=Ke.length,ne=0;ne<dt;ne++)et+=this.renderer.tablecell(this.parseInline(Ke[ne]),{header:!1,align:ut.align[ne]});bt+=this.renderer.tablerow(et)}fe+=this.renderer.table(rt,bt);continue}case"blockquote":{bt=this.parse(ut.tokens),fe+=this.renderer.blockquote(bt);continue}case"list":{for(ot=ut.ordered,Ue=ut.start,We=ut.loose,Qe=ut.items.length,bt="",Je=0;Je<Qe;Je++)nt=ut.items[Je],Dt=nt.checked,Kt=nt.task,ft="",nt.task&&(vt=this.renderer.checkbox(Dt),We?nt.tokens.length>0&&nt.tokens[0].type==="text"?(nt.tokens[0].text=vt+" "+nt.tokens[0].text,nt.tokens[0].tokens&&nt.tokens[0].tokens.length>0&&nt.tokens[0].tokens[0].type==="text"&&(nt.tokens[0].tokens[0].text=vt+" "+nt.tokens[0].tokens[0].text)):nt.tokens.unshift({type:"text",text:vt}):ft+=vt),ft+=this.parse(nt.tokens,We),bt+=this.renderer.listitem(ft,Kt,Dt);fe+=this.renderer.list(bt,ot,Ue);continue}case"html":{fe+=this.renderer.html(ut.text);continue}case"paragraph":{fe+=this.renderer.paragraph(this.parseInline(ut.tokens));continue}case"text":{for(bt=ut.tokens?this.parseInline(ut.tokens):ut.text;ke+1<Ht&&_e[ke+1].type==="text";)ut=_e[++ke],bt+=`
`+(ut.tokens?this.parseInline(ut.tokens):ut.text);fe+=Ae?this.renderer.paragraph(bt):bt;continue}default:{var Ft='Token with "'+ut.type+'" type was not found.';if(this.options.silent){console.error(Ft);return}else throw new Error(Ft)}}}return fe},Fe.parseInline=function(_e,Ae){Ae=Ae||this.renderer;var fe="",ke,Je,ne=_e.length;for(ke=0;ke<ne;ke++){Je=_e[ke];switch(Je.type){case"escape":{fe+=Ae.text(Je.text);break}case"html":{fe+=Ae.html(Je.text);break}case"link":{fe+=Ae.link(Je.href,Je.title,this.parseInline(Je.tokens,Ae));break}case"image":{fe+=Ae.image(Je.href,Je.title,Je.text);break}case"strong":{fe+=Ae.strong(this.parseInline(Je.tokens,Ae));break}case"em":{fe+=Ae.em(this.parseInline(Je.tokens,Ae));break}case"codespan":{fe+=Ae.codespan(Je.text);break}case"br":{fe+=Ae.br();break}case"del":{fe+=Ae.del(this.parseInline(Je.tokens,Ae));break}case"text":{fe+=Ae.text(Je.text);break}default:{var Qe='Token with "'+Je.type+'" type was not found.';if(this.options.silent){console.error(Qe);return}else throw new Error(Qe)}}}return fe},Ve}(),Xe=F.merge,$e=F.checkSanitizeDeprecation,Ge=F.escape,Me=_.getDefaults,gt=_.changeDefaults,Te=_.defaults;function Ye(Ve,Fe,Be){if(typeof Ve=="undefined"||Ve===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ve!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ve)+", string expected");if(typeof Fe=="function"&&(Be=Fe,Fe=null),Fe=Xe({},Ye.defaults,Fe||{}),$e(Fe),Be){var _e=Fe.highlight,Ae;try{Ae=$.lex(Ve,Fe)}catch(ne){return Be(ne)}var fe=function(Qe){var dt;if(!Qe)try{dt=ve.parse(Ae,Fe)}catch(Ke){Qe=Ke}return Fe.highlight=_e,Qe?Be(Qe):Be(null,dt)};if(!_e||_e.length<3)return fe();if(delete Fe.highlight,!Ae.length)return fe();var ke=0;Ye.walkTokens(Ae,function(ne){ne.type==="code"&&(ke++,setTimeout(function(){_e(ne.text,ne.lang,function(Qe,dt){if(Qe)return fe(Qe);dt!=null&&dt!==ne.text&&(ne.text=dt,ne.escaped=!0),ke--,ke===0&&fe()})},0))}),ke===0&&fe();return}try{var Je=$.lex(Ve,Fe);return Fe.walkTokens&&Ye.walkTokens(Je,Fe.walkTokens),ve.parse(Je,Fe)}catch(ne){if(ne.message+=`
Please report this to https://github.com/markedjs/marked.`,Fe.silent)return"<p>An error occurred:</p><pre>"+Ge(ne.message+"",!0)+"</pre>";throw ne}}Ye.options=Ye.setOptions=function(Ve){return Xe(Ye.defaults,Ve),gt(Ye.defaults),Ye},Ye.getDefaults=Me,Ye.defaults=Te,Ye.use=function(Ve){var Fe=Xe({},Ve);if(Ve.renderer&&function(){var _e=Ye.defaults.renderer||new ae,Ae=function(Je){var ne=_e[Je];_e[Je]=function(){for(var Qe=arguments.length,dt=new Array(Qe),Ke=0;Ke<Qe;Ke++)dt[Ke]=arguments[Ke];var et=Ve.renderer[Je].apply(_e,dt);return et===!1&&(et=ne.apply(_e,dt)),et}};for(var fe in Ve.renderer)Ae(fe);Fe.renderer=_e}(),Ve.tokenizer&&function(){var _e=Ye.defaults.tokenizer||new De,Ae=function(Je){var ne=_e[Je];_e[Je]=function(){for(var Qe=arguments.length,dt=new Array(Qe),Ke=0;Ke<Qe;Ke++)dt[Ke]=arguments[Ke];var et=Ve.tokenizer[Je].apply(_e,dt);return et===!1&&(et=ne.apply(_e,dt)),et}};for(var fe in Ve.tokenizer)Ae(fe);Fe.tokenizer=_e}(),Ve.walkTokens){var Be=Ye.defaults.walkTokens;Fe.walkTokens=function(_e){Ve.walkTokens(_e),Be&&Be(_e)}}Ye.setOptions(Fe)},Ye.walkTokens=function(Ve,Fe){for(var Be=g(Ve),_e;!(_e=Be()).done;){var Ae=_e.value;Fe(Ae);switch(Ae.type){case"table":{for(var fe=g(Ae.tokens.header),ke;!(ke=fe()).done;){var Je=ke.value;Ye.walkTokens(Je,Fe)}for(var ne=g(Ae.tokens.cells),Qe;!(Qe=ne()).done;)for(var dt=Qe.value,Ke=g(dt),et;!(et=Ke()).done;){var rt=et.value;Ye.walkTokens(rt,Fe)}break}case"list":{Ye.walkTokens(Ae.items,Fe);break}default:Ae.tokens&&Ye.walkTokens(Ae.tokens,Fe)}}},Ye.Parser=ve,Ye.parser=ve.parse,Ye.Renderer=ae,Ye.TextRenderer=be,Ye.Lexer=$,Ye.lexer=$.lex,Ye.Tokenizer=De,Ye.Slugger=Ie,Ye.parse=Ye;var Ze=Ye;return Ze})},"DlR+":function(j,W,y){var I=y("MFOe"),v=I.Global,T=I.trim;j.exports={name:"cookieStorage",read:g,write:_,each:s,remove:p,clearAll:e};var b=v.document;function g(n){if(!n||!a(n))return null;var l="(?:^|.*;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(b.cookie.replace(new RegExp(l),"$1"))}function s(n){for(var l=b.cookie.split(/; ?/g),r=l.length-1;r>=0;r--){if(!T(l[r]))continue;var i=l[r].split("="),t=unescape(i[0]),o=unescape(i[1]);n(o,t)}}function _(n,l){if(!n)return;b.cookie=escape(n)+"="+escape(l)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function p(n){if(!n||!a(n))return;b.cookie=escape(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function e(){s(function(n,l){p(l)})}function a(n){return new RegExp("(?:^|;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(b.cookie)}},Dqnf:function(j,W,y){"use strict";var I=y("k1fw"),v=y("9og8"),T=y("rAM+"),b=y("tJVT"),g=y("WmNS"),s=y.n(g),_=y("q1tI"),p=y.n(_),e=y("J66h"),a=y.n(e),n=y("/POA"),l=y.n(n),r=y("q7KB"),i=y.n(r),t=y("ER/M"),o=y.n(t),c=y("dhSg"),d=y("bdgK"),f=y("IZBM"),h=y("Ty5D"),u=3e4;W.a=function(E){var x=E.itemData,O=x===void 0?{}:x,C=E.game,w=E.myshixun,S=Object(h.i)(),D=Object(_.useState)(null),R=Object(b.a)(D,2),P=R[0],N=R[1],M=Object(_.useState)({}),z=Object(b.a)(M,2),X=z[0],k=z[1],F=X.link_url,U=X.password,L=X.port,B=Object(_.useRef)(),Z=Object(_.useRef)(),re=Object(_.useRef)(!1),me=O.shixun_environment_id,Ee=O.position,De=O.tab_type,te=O.index_tab;Object(_.useEffect)(function(){ce()},[]);function Ce(oe,xe,q){var se=q._core._renderService.dimensions.actualCellWidth||9.5,Ne=q._core._renderService.dimensions.actualCellHeight||18,de=Math.floor(xe/Ne),$=Math.floor(oe/se);return[$,de]}function we(oe,xe){var q=new d.default(function(se){var Ne=Object(T.a)(se),de;try{for(Ne.s();!(de=Ne.n()).done;){var $=de.value;if($.target.offsetHeight>0||$.target.offsetWidth>0){var Q=Ce($.target.offsetWidth,$.target.offsetHeight,oe),Y=Object(b.a)(Q,2),ue=Y[0],ae=Y[1];console.log("cols, rows",ue,ae),c.a.publish("ssh-xterm-resize-".concat(te),{columns:ue,rows:ae,width:$.target.offsetWidth,height:$.target.offsetHeight}),oe.resize(ue,ae);var be=e.Base64.decode("IA=="),Ie=e.Base64.decode("CBtbSw==");oe.write(be),oe.write(Ie)}}}catch(pe){Ne.e(pe)}finally{Ne.f()}});return q.observe(xe),q}function ce(){return le.apply(this,arguments)}function le(){return le=Object(v.a)(s.a.mark(function oe(){var xe,q,se,Ne,de;return s.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(f.F)(w==null?void 0:w.identifier,{shixun_environment_id:me,tab_type:De,game_id:C.id});case 2:if(se=Q.sent,!(se!=null&&(xe=se.data)!==null&&xe!==void 0&&(q=xe.data_list)!==null&&q!==void 0&&q.length)){Q.next=6;break}return c.a.publish("pod-restrict-data",{identifier:se==null||((Ne=se.data)===null||Ne===void 0)?void 0:Ne.identifier,data_list:se==null||((de=se.data)===null||de===void 0)?void 0:de.data_list}),Q.abrupt("return");case 6:if(!((se==null?void 0:se.status)===-3)){Q.next=8;break}return Q.abrupt("return",new Promise(function(){var Y=Object(v.a)(s.a.mark(function ue(ae,be){return s.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:Modal.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var Le=Object(v.a)(s.a.mark(function Xe(){return s.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,closeWindowsVnc(S.taskId,se==null?void 0:se.message);case 2:return init(),Ge.abrupt("return");case 4:case"end":return Ge.stop()}},Xe)}));function ve(){return Le.apply(this,arguments)}return ve}()});case 1:case"end":return pe.stop()}},ue)}));return function(ue,ae){return Y.apply(this,arguments)}}()));case 8:(se==null?void 0:se.status)===0&&(c.a.publish("update-windows-time",se==null?void 0:se.data),c.a.publish("send-tabs-result-data",Object(I.a)(Object(I.a)({},se==null?void 0:se.data),{},{index_tab:te})),k(se.data),setTimeout(function(){return c.a.publish("create-socket-".concat(te))},300));case 9:case"end":return Q.stop()}},oe)})),le.apply(this,arguments)}return Object(_.useEffect)(function(){if(B.current&&F){var oe=new n.Terminal({fontSize:16,rendererType:"dom"});oe.open(B.current),oe.onData(function(q){Z.current&&(Z.current.readyState===1&&Z.current.send(JSON.stringify({tp:"client",data:q})))}),oe.write("Connecting..."),N(oe);var xe=we(oe,B.current);return function(){oe.dispose(),B.current&&(xe==null||xe.unobserve(B.current))}}},[F,B.current]),Object(_.useEffect)(function(){if(P&&F){function oe(){var se=new WebSocket(F);Z.current=se,se.onopen=function(){var de=P.element.parentElement;if(de){var $=de.offsetWidth,Q=de.offsetHeight;console.log("init",{tp:"init",data:Object(I.a)(Object(I.a)({},X),{},{secret:U,width:$,height:Q,rows:P.rows,columns:P.cols})}),se.send(JSON.stringify({tp:"init",data:Object(I.a)(Object(I.a)({},X),{},{secret:U,width:$,height:Q,rows:P.rows,columns:P.cols})}))}P.focus()},se.onerror=function(de){console.log("------in socket error----",de,se,F)},se.onmessage=function(de){re.current||(P.write("\r"),setTimeout(function(){},1e3)),re.current=!0,console.log("event:",de);var $=e.Base64.decode(de.data.toString()),Q=P._core._renderService.dimensions.actualCellWidth||9.5;console.log("data:",$,Q,P),P.write($)};var Ne=setInterval(function(){if(Z.current){var de;(de=Z.current)===null||de===void 0||de.send(JSON.stringify({tp:"h"}))}},u);se.onclose=function(de){Ne&&clearInterval(Ne),console.log(Ne,"tid",te),P.write(`\r
connection closed`)}}var xe=c.a.subscribe("create-socket-".concat(te),function(){oe()}),q=c.a.subscribe("ssh-xterm-resize-".concat(te),function(se){Z.current&&Z.current.readyState===1&&Z.current.send(JSON.stringify({tp:"resize",data:Object(I.a)({},se)}))});return function(){xe(),q(),Z.current&&(Z.current.close(),re.current=!1)}}},[P,F,L]),p.a.createElement("div",{ref:B,className:o.a["xterm-panel"]},F?null:p.a.createElement("p",{style:{color:"#fff"}},"\u6B63\u5728\u8FDE\u63A5\u547D\u4EE4\u884C\u670D\u52A1..."))}},E4JC:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.StreamCipher,g=v.algo,s=[],_=[],p=[],e=g.Rabbit=b.extend({_doReset:function(){for(var n=this._key.words,l=this.cfg.iv,r=0;r<4;r++)n[r]=(n[r]<<8|n[r]>>>24)&16711935|(n[r]<<24|n[r]>>>8)&4278255360;var i=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],t=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var r=0;r<4;r++)a.call(this);for(var r=0;r<8;r++)t[r]^=i[r+4&7];if(l){var o=l.words,c=o[0],d=o[1],f=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,h=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,u=f>>>16|h&4294901760,E=h<<16|f&65535;t[0]^=f,t[1]^=u,t[2]^=h,t[3]^=E,t[4]^=f,t[5]^=u,t[6]^=h,t[7]^=E;for(var r=0;r<4;r++)a.call(this)}},_doProcessBlock:function(n,l){var r=this._X;a.call(this),s[0]=r[0]^r[5]>>>16^r[3]<<16,s[1]=r[2]^r[7]>>>16^r[5]<<16,s[2]=r[4]^r[1]>>>16^r[7]<<16,s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)s[i]=(s[i]<<8|s[i]>>>24)&16711935|(s[i]<<24|s[i]>>>8)&4278255360,n[l+i]^=s[i]},blockSize:128/32,ivSize:64/32});function a(){for(var n=this._X,l=this._C,r=0;r<8;r++)_[r]=l[r];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<_[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<_[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<_[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<_[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<_[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<_[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<_[6]>>>0?1:0)|0,this._b=l[7]>>>0<_[7]>>>0?1:0;for(var r=0;r<8;r++){var i=n[r]+l[r],t=i&65535,o=i>>>16,c=((t*t>>>17)+t*o>>>15)+o*o,d=((i&4294901760)*i|0)+((i&65535)*i|0);p[r]=c^d}n[0]=p[0]+(p[7]<<16|p[7]>>>16)+(p[6]<<16|p[6]>>>16)|0,n[1]=p[1]+(p[0]<<8|p[0]>>>24)+p[7]|0,n[2]=p[2]+(p[1]<<16|p[1]>>>16)+(p[0]<<16|p[0]>>>16)|0,n[3]=p[3]+(p[2]<<8|p[2]>>>24)+p[1]|0,n[4]=p[4]+(p[3]<<16|p[3]>>>16)+(p[2]<<16|p[2]>>>16)|0,n[5]=p[5]+(p[4]<<8|p[4]>>>24)+p[3]|0,n[6]=p[6]+(p[5]<<16|p[5]>>>16)+(p[4]<<16|p[4]>>>16)|0,n[7]=p[7]+(p[6]<<8|p[6]>>>24)+p[5]|0}v.Rabbit=b._createHelper(e)}(),I.Rabbit})},E7E6:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(j,W){j.exports=function(){var y=document.getSelection();if(!y.rangeCount)return function(){};for(var I=document.activeElement,v=[],T=0;T<y.rangeCount;T++)v.push(y.getRangeAt(T));switch(I.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":I.blur();break;default:I=null;break}return y.removeAllRanges(),function(){y.type==="Caret"&&y.removeAllRanges(),y.rangeCount||v.forEach(function(b){y.addRange(b)}),I&&I.focus()}}},ELLl:function(j,W,y){(function(I){I(y("VrN/"))})(function(I){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=I.Pos;I.defineOption("autoCloseBrackets",!1,function(t,o,c){c&&c!=I.Init&&(t.removeKeyMap(g),t.state.closeBrackets=null),o&&(s(b(o,"pairs")),t.state.closeBrackets=o,t.addKeyMap(g))});function b(t,o){return o=="pairs"&&typeof t=="string"?t:typeof t=="object"&&t[o]!=null?t[o]:v[o]}var g={Backspace:e,Enter:a};function s(t){for(var o=0;o<t.length;o++){var c=t.charAt(o),d="'"+c+"'";g[d]||(g[d]=_(c))}}s(v.pairs+"`");function _(t){return function(o){return l(o,t)}}function p(t){var o=t.state.closeBrackets;if(!o||o.override)return o;var c=t.getModeAt(t.getCursor());return c.closeBrackets||o}function e(t){var o=p(t);if(!o||t.getOption("disableInput"))return I.Pass;for(var c=b(o,"pairs"),d=t.listSelections(),f=0;f<d.length;f++){if(!d[f].empty())return I.Pass;var h=r(t,d[f].head);if(!h||c.indexOf(h)%2!=0)return I.Pass}for(var f=d.length-1;f>=0;f--){var u=d[f].head;t.replaceRange("",T(u.line,u.ch-1),T(u.line,u.ch+1),"+delete")}}function a(t){var o=p(t),c=o&&b(o,"explode");if(!c||t.getOption("disableInput"))return I.Pass;for(var d=t.listSelections(),f=0;f<d.length;f++){if(!d[f].empty())return I.Pass;var h=r(t,d[f].head);if(!h||c.indexOf(h)%2!=0)return I.Pass}t.operation(function(){var u=t.lineSeparator()||`
`;t.replaceSelection(u+u,null),t.execCommand("goCharLeft"),d=t.listSelections();for(var E=0;E<d.length;E++){var x=d[E].head.line;t.indentLine(x,null,!0),t.indentLine(x+1,null,!0)}})}function n(t){var o=I.cmpPos(t.anchor,t.head)>0;return{anchor:new T(t.anchor.line,t.anchor.ch+(o?-1:1)),head:new T(t.head.line,t.head.ch+(o?1:-1))}}function l(t,o){var c=p(t);if(!c||t.getOption("disableInput"))return I.Pass;var d=b(c,"pairs"),f=d.indexOf(o);if(f==-1)return I.Pass;for(var h=b(c,"closeBefore"),u=b(c,"triples"),E=d.charAt(f+1)==o,x=t.listSelections(),O=f%2==0,C,w=0;w<x.length;w++){var S=x[w],D=S.head,R,P=t.getRange(D,T(D.line,D.ch+1));if(O&&!S.empty())R="surround";else if((E||!O)&&P==o)E&&i(t,D)?R="both":u.indexOf(o)>=0&&t.getRange(D,T(D.line,D.ch+3))==o+o+o?R="skipThree":R="skip";else if(E&&D.ch>1&&u.indexOf(o)>=0&&t.getRange(T(D.line,D.ch-2),D)==o+o){if(D.ch>2&&/\bstring/.test(t.getTokenTypeAt(T(D.line,D.ch-2))))return I.Pass;R="addFour"}else if(E){var N=D.ch==0?" ":t.getRange(T(D.line,D.ch-1),D);if(!I.isWordChar(P)&&N!=o&&!I.isWordChar(N))R="both";else return I.Pass}else if(O&&(P.length===0||/\s/.test(P)||h.indexOf(P)>-1))R="both";else return I.Pass;if(!C)C=R;else if(C!=R)return I.Pass}var M=f%2?d.charAt(f-1):o,z=f%2?o:d.charAt(f+1);t.operation(function(){if(C=="skip")t.execCommand("goCharRight");else if(C=="skipThree")for(var X=0;X<3;X++)t.execCommand("goCharRight");else if(C=="surround"){for(var k=t.getSelections(),X=0;X<k.length;X++)k[X]=M+k[X]+z;t.replaceSelections(k,"around"),k=t.listSelections().slice();for(var X=0;X<k.length;X++)k[X]=n(k[X]);t.setSelections(k)}else C=="both"?(t.replaceSelection(M+z,null),t.triggerElectric(M+z),t.execCommand("goCharLeft")):C=="addFour"&&(t.replaceSelection(M+M+M+M,"before"),t.execCommand("goCharRight"))})}function r(t,o){var c=t.getRange(T(o.line,o.ch-1),T(o.line,o.ch+1));return c.length==2?c:null}function i(t,o){var c=t.getTokenAt(T(o.line,o.ch+1));return/\bstring/.test(c.type)&&c.start==o.ch&&(o.ch==0||!/\bstring/.test(t.getTokenTypeAt(o)))}})},ELcG:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(v){var T=I,b=T.lib,g=b.WordArray,s=b.Hasher,_=T.algo,p=g.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),e=g.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),a=g.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),n=g.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=g.create([0,1518500249,1859775393,2400959708,2840853838]),r=g.create([1352829926,1548603684,1836072691,2053994217,0]),i=_.RIPEMD160=s.extend({_doReset:function(){this._hash=g.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,E){for(var x=0;x<16;x++){var O=E+x,C=u[O];u[O]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var w=this._hash.words,S=l.words,D=r.words,R=p.words,P=e.words,N=a.words,M=n.words,z,X,k,F,U,L,B,Z,re,me;L=z=w[0],B=X=w[1],Z=k=w[2],re=F=w[3],me=U=w[4];for(var Ee,x=0;x<80;x+=1)Ee=z+u[E+R[x]]|0,x<16?Ee+=t(X,k,F)+S[0]:x<32?Ee+=o(X,k,F)+S[1]:x<48?Ee+=c(X,k,F)+S[2]:x<64?Ee+=d(X,k,F)+S[3]:Ee+=f(X,k,F)+S[4],Ee=Ee|0,Ee=h(Ee,N[x]),Ee=Ee+U|0,z=U,U=F,F=h(k,10),k=X,X=Ee,Ee=L+u[E+P[x]]|0,x<16?Ee+=f(B,Z,re)+D[0]:x<32?Ee+=d(B,Z,re)+D[1]:x<48?Ee+=c(B,Z,re)+D[2]:x<64?Ee+=o(B,Z,re)+D[3]:Ee+=t(B,Z,re)+D[4],Ee=Ee|0,Ee=h(Ee,M[x]),Ee=Ee+me|0,L=me,me=re,re=h(Z,10),Z=B,B=Ee;Ee=w[1]+k+re|0,w[1]=w[2]+F+me|0,w[2]=w[3]+U+L|0,w[3]=w[4]+z+B|0,w[4]=w[0]+X+Z|0,w[0]=Ee},_doFinalize:function(){var u=this._data,E=u.words,x=this._nDataBytes*8,O=u.sigBytes*8;E[O>>>5]|=128<<24-O%32,E[(O+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,u.sigBytes=(E.length+1)*4,this._process();for(var C=this._hash,w=C.words,S=0;S<5;S++){var D=w[S];w[S]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return C},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});function t(u,E,x){return u^E^x}function o(u,E,x){return u&E|~u&x}function c(u,E,x){return(u|~E)^x}function d(u,E,x){return u&x|E&~x}function f(u,E,x){return u^(E|~x)}function h(u,E){return u<<E|u>>>32-E}T.RIPEMD160=s._createHelper(i),T.HmacRIPEMD160=s._createHmacHelper(i)}(Math),I.RIPEMD160})},"ER/M":function(j,W,y){j.exports={"xterm-panel":"xterm-panel___2r2xx"}},ETIr:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.WordArray,g=v.enc,s=g.Base64={stringify:function(p){var e=p.words,a=p.sigBytes,n=this._map;p.clamp();for(var l=[],r=0;r<a;r+=3)for(var i=e[r>>>2]>>>24-r%4*8&255,t=e[r+1>>>2]>>>24-(r+1)%4*8&255,o=e[r+2>>>2]>>>24-(r+2)%4*8&255,c=i<<16|t<<8|o,d=0;d<4&&r+d*.75<a;d++)l.push(n.charAt(c>>>6*(3-d)&63));var f=n.charAt(64);if(f)for(;l.length%4;)l.push(f);return l.join("")},parse:function(p){var e=p.length,a=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var l=0;l<a.length;l++)n[a.charCodeAt(l)]=l}var r=a.charAt(64);if(r){var i=p.indexOf(r);i!==-1&&(e=i)}return _(p,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(p,e,a){for(var n=[],l=0,r=0;r<e;r++)if(r%4){var i=a[p.charCodeAt(r-1)]<<r%4*2,t=a[p.charCodeAt(r)]>>>6-r%4*2,o=i|t;n[l>>>2]|=o<<24-l%4*8,l++}return b.create(n,l)}}(),I.enc.Base64})},"F+F2":function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(){if(typeof ArrayBuffer!="function")return;var v=I,T=v.lib,b=T.WordArray,g=b.init,s=b.init=function(_){if(_ instanceof ArrayBuffer&&(_=new Uint8Array(_)),(_ instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&_ instanceof Uint8ClampedArray||_ instanceof Int16Array||_ instanceof Uint16Array||_ instanceof Int32Array||_ instanceof Uint32Array||_ instanceof Float32Array||_ instanceof Float64Array)&&(_=new Uint8Array(_.buffer,_.byteOffset,_.byteLength)),_ instanceof Uint8Array){for(var p=_.byteLength,e=[],a=0;a<p;a++)e[a>>>2]|=_[a]<<24-a%4*8;g.call(this,e,p)}else g.apply(this,arguments)};s.prototype=b}(),I.lib.WordArray})},FOrL:function(j,W,y){j.exports=y.p+"static/nodata.a6b3f948.png"},FPkq:function(j,W,y){j.exports=y.p+"static/qrCode.dd0fe9b2.png"},FWmy:function(j,W,y){"use strict";y.d(W,"a",function(){return I});function I(v,T){if(!v)throw new Error(T?`Assertion failed (${T})`:"Assertion Failed")}},FfZY:function(j,W,y){j.exports={wrap:"wrap___2UNvJ",modal:"modal___i6_bN",title:"title___ae-La",path:"path___3AJgW",colorBlue:"colorBlue___afQvH",width240:"width240___9YsKN",filePath:"filePath___2-i4S"}},Fhpe:function(j,W,y){j.exports={flex_box_center:"flex_box_center___1W7Bl",flex_space_between:"flex_space_between___3S4Sp",flex_box_vertical_center:"flex_box_vertical_center___5mGEA",flex_box_center_end:"flex_box_center_end___1blqp",flex_box_column:"flex_box_column___4i1E0",CustomCss:"CustomCss___3thFA",CustomTipsModalCss:"CustomTipsModalCss___2aNwC",dropdownmenus:"dropdownmenus___19dGk",popupClassNames:"popupClassNames___3LOFQ",selectdown:"selectdown___1_utH"}},Fv0C:function(j,W,y){"use strict";function I(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(o){return typeof o}:I=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},I(i)}Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var v=e(y("Lo0S")),T=y("vewr"),b=e(y("8CQX")),g=_(y("mHUz")),s=e(y("GdRQ"));function _(i){return i&&i.__esModule?i:{default:i}}function p(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return p=function(){return i},i}function e(i){if(i&&i.__esModule)return i;if(i===null||I(i)!=="object"&&typeof i!="function")return{default:i};var t=p();if(t&&t.has(i))return t.get(i);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in i)if(Object.prototype.hasOwnProperty.call(i,d)){var f=c?Object.getOwnPropertyDescriptor(i,d):null;f&&(f.get||f.set)?Object.defineProperty(o,d,f):o[d]=i[d]}return o.default=i,t&&t.set(i,o),o}function a(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function n(i,t){for(var o=0;o<t.length;o++){var c=t[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}function l(i,t,o){return t&&n(i.prototype,t),o&&n(i,o),i}var r=function(){function i(t){a(this,i),this._target=t||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return l(i,[{key:"_sendKeyEvent",value:function(o,c,d){if(d)this._keyDownList[c]=o;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}v.Debug("onkeyevent "+(d?"down":"up")+", keysym: "+o,", code: "+c),this.onkeyevent(o,c,d)}},{key:"_getKeyCode",value:function(o){var c=b.getKeycode(o);if(c!=="Unidentified")return c;if(o.keyCode&&o.type!=="keypress"&&o.keyCode!==229)return"Platform"+o.keyCode;if(o.keyIdentifier){if(o.keyIdentifier.substr(0,2)!=="U+")return o.keyIdentifier;var d=parseInt(o.keyIdentifier.substr(2),16),f=String.fromCharCode(d).toUpperCase();return"Platform"+f.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(o){var c=this._getKeyCode(o),d=b.getKeysym(o);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&o.timeStamp-this._altGrCtrlTime<50?d=g.default.XK_ISO_Level3_Shift:this._sendKeyEvent(g.default.XK_Control_L,"ControlLeft",!0)),c==="Unidentified"){d&&(this._sendKeyEvent(d,c,!0),this._sendKeyEvent(d,c,!1)),(0,T.stopEvent)(o);return}if(s.isMac()||s.isIOS())switch(d){case g.default.XK_Super_L:d=g.default.XK_Alt_L;break;case g.default.XK_Super_R:d=g.default.XK_Super_L;break;case g.default.XK_Alt_L:d=g.default.XK_Mode_switch;break;case g.default.XK_Alt_R:d=g.default.XK_ISO_Level3_Shift;break}if(c in this._keyDownList&&(d=this._keyDownList[c]),(s.isMac()||s.isIOS())&&c==="CapsLock"){this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!1),(0,T.stopEvent)(o);return}if(!d&&(!o.key||s.isIE()||s.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,o);return}if(this._pendingKey=null,(0,T.stopEvent)(o),c==="ControlLeft"&&s.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=o.timeStamp;return}this._sendKeyEvent(d,c,!0)}},{key:"_handleKeyPress",value:function(o){if((0,T.stopEvent)(o),this._pendingKey===null)return;var c=this._getKeyCode(o),d=b.getKeysym(o);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!d){v.Info("keypress with no keysym:",o);return}this._sendKeyEvent(d,c,!0)}},{key:"_handleKeyPressTimeout",value:function(o){if(this._pendingKey===null)return;var c,d=this._pendingKey;if(this._pendingKey=null,o.keyCode>=48&&o.keyCode<=57)c=o.keyCode;else if(o.keyCode>=65&&o.keyCode<=90){var f=String.fromCharCode(o.keyCode);o.shiftKey?f=f.toUpperCase():f=f.toLowerCase(),c=f.charCodeAt()}else c=0;this._sendKeyEvent(c,d,!0)}},{key:"_handleKeyUp",value:function(o){(0,T.stopEvent)(o);var c=this._getKeyCode(o);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(g.default.XK_Control_L,"ControlLeft",!0)),(s.isMac()||s.isIOS())&&c==="CapsLock"){this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[c],c,!1),s.isWindows()&&(c==="ShiftLeft"||c==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(g.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){v.Debug(">> Keyboard.allKeysUp");for(var o in this._keyDownList)this._sendKeyEvent(this._keyDownList[o],o,!1);v.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(o){if(o.skipCheckAlt)return;if(o.altKey)return;var c=this._target,d=this._keyDownList;["AltLeft","AltRight"].forEach(function(f){if(!(f in d))return;var h=new KeyboardEvent("keyup",{key:d[f],code:f});h.skipCheckAlt=!0,c.dispatchEvent(h)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),s.isWindows()&&s.isFirefox()){var o=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,o,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(s.isWindows()&&s.isFirefox()){var o=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,o)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),i}();W.default=r},GABl:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GQ8N:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.toUnsigned32bit=I,W.toSigned32bit=v;function I(T){return T>>>0}function v(T){return T|0}},GRuw:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("lPiR"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.WordArray,g=v.algo,s=g.SHA256,_=g.SHA224=s.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var p=s._doFinalize.call(this);return p.sigBytes-=4,p}});v.SHA224=s._createHelper(_),v.HmacSHA224=s._createHmacHelper(_)}(),I.SHA224})},GdRQ:function(j,W,y){"use strict";function I(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(w){return typeof w}:I=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},I(O)}Object.defineProperty(W,"__esModule",{value:!0}),W.isMac=c,W.isWindows=d,W.isIOS=f,W.isSafari=h,W.isIE=u,W.isEdge=E,W.isFirefox=x,W.hasScrollbarGutter=W.supportsImageMetadata=W.supportsCursorURIs=W.dragThreshold=W.isTouchDevice=void 0;var v=b(y("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var O=new WeakMap;return T=function(){return O},O}function b(O){if(O&&O.__esModule)return O;if(O===null||I(O)!=="object"&&typeof O!="function")return{default:O};var C=T();if(C&&C.has(O))return C.get(O);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in O)if(Object.prototype.hasOwnProperty.call(O,D)){var R=S?Object.getOwnPropertyDescriptor(O,D):null;R&&(R.get||R.set)?Object.defineProperty(w,D,R):w[D]=O[D]}return w.default=O,C&&C.set(O,w),w}var g="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;W.isTouchDevice=g,window.addEventListener("touchstart",function O(){W.isTouchDevice=g=!0,window.removeEventListener("touchstart",O,!1)},!1);var s=10*(window.devicePixelRatio||1);W.dragThreshold=s;var _=!1;try{var p=document.createElement("canvas");p.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',p.style.cursor.indexOf("url")===0?(v.Info("Data URI scheme cursor supported"),_=!0):v.Warn("Data URI scheme cursor not supported")}catch(O){v.Error("Data URI scheme cursor test exception: "+O)}var e=_;W.supportsCursorURIs=e;var a=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),a=!0}catch(O){}var n=a;W.supportsImageMetadata=n;var l=!0;try{var r=document.createElement("div");r.style.visibility="hidden",r.style.overflow="scroll",document.body.appendChild(r);var i=document.createElement("div");r.appendChild(i);var t=r.offsetWidth-i.offsetWidth;r.parentNode.removeChild(r),l=t!=0}catch(O){v.Error("Scrollbar test exception: "+O)}var o=l;W.hasScrollbarGutter=o;function c(){return navigator&&!!/mac/i.exec(navigator.platform)}function d(){return navigator&&!!/win/i.exec(navigator.platform)}function f(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function h(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function u(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function E(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function x(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GfqC:function(j,W,y){"use strict";var I=y("q1tI"),v=y.n(I),T=y("TSYQ"),b=y.n(T);function g(F,U){var L="cannot "+F.method+" "+F.action+" "+U.status+"'",B=new Error(L);return B.status=U.status,B.method=F.method,B.url=F.action,B}function s(F){var U=F.responseText||F.response;if(!U)return U;try{return JSON.parse(U)}catch(L){return U}}function _(F){var U=new XMLHttpRequest;F.onProgress&&U.upload&&(U.upload.onprogress=function(re){re.total>0&&(re.percent=re.loaded/re.total*100),F.onProgress(re)});var L=new FormData;F.data&&Object.keys(F.data).forEach(function(Z){var re=F.data[Z];if(Array.isArray(re)){re.forEach(function(me){L.append(Z+"[]",me)});return}L.append(Z,F.data[Z])}),F.file instanceof Blob?L.append(F.filename,F.file,F.file.name):L.append(F.filename,F.file),U.onerror=function(re){F.onError(re)},U.onload=function(){return U.status<200||U.status>=300?F.onError(g(F,U),s(U)):F.onSuccess(s(U),U)},U.open(F.method,F.action,!0),F.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var B=F.headers||{};return B["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(B).forEach(function(Z){B[Z]!==null&&U.setRequestHeader(Z,B[Z])}),U.send(L),{abort:function(){U.abort()}}}var p=+new Date,e=0;function a(){return"rc-upload-"+p+"-"+ ++e}function n(F,U){return F.indexOf(U,F.length-U.length)!==-1}var l=function(F,U){if(F&&U){var L=Array.isArray(U)?U:U.split(","),B=F.name||"",Z=F.type||"",re=Z.replace(/\/.*$/,"");return L.some(function(me){var Ee=me.trim();return Ee.charAt(0)==="."?n(B.toLowerCase(),Ee.toLowerCase()):/\/\*$/.test(Ee)?re===Ee.replace(/\/.*$/,""):Z===Ee})}return!0};function r(F,U){var L=F.createReader(),B=[];function Z(){L.readEntries(function(re){var me=Array.prototype.slice.apply(re);B=B.concat(me);var Ee=!me.length;Ee?U(B):Z()})}Z()}var i=function(U,L,B){var Z=function re(me,Ee){Ee=Ee||"",me.isFile?me.file(function(De){B(De)&&(me.fullPath&&!De.webkitRelativePath&&(Object.defineProperties(De,{webkitRelativePath:{writable:!0}}),De.webkitRelativePath=me.fullPath.replace(/^\//,""),Object.defineProperties(De,{webkitRelativePath:{writable:!1}})),L([De]))}):me.isDirectory&&r(me,function(De){De.forEach(function(te){re(te,""+Ee+me.name+"/")})})};U.forEach(function(re){Z(re.webkitGetAsEntry())})},t=i,o=Object.assign||function(F){for(var U=1;U<arguments.length;U++){var L=arguments[U];for(var B in L)Object.prototype.hasOwnProperty.call(L,B)&&(F[B]=L[B])}return F},c=function(){function F(U,L){var B=[],Z=!0,re=!1,me=void 0;try{for(var Ee=U[Symbol.iterator](),De;!(Z=(De=Ee.next()).done)&&!(B.push(De.value),L&&B.length===L);Z=!0);}catch(te){re=!0,me=te}finally{try{!Z&&Ee.return&&Ee.return()}finally{if(re)throw me}}return B}return function(U,L){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return F(U,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function F(U,L){for(var B=0;B<L.length;B++){var Z=L[B];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(U,Z.key,Z)}}return function(U,L,B){return L&&F(U.prototype,L),B&&F(U,B),U}}();function f(F,U,L){return U in F?Object.defineProperty(F,U,{value:L,enumerable:!0,configurable:!0,writable:!0}):F[U]=L,F}function h(F,U){var L={};for(var B in F){if(U.indexOf(B)>=0)continue;if(!Object.prototype.hasOwnProperty.call(F,B))continue;L[B]=F[B]}return L}function u(F,U){if(!(F instanceof U))throw new TypeError("Cannot call a class as a function")}function E(F,U){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:F}function x(F,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);F.prototype=Object.create(U&&U.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(F,U):F.__proto__=U)}var O=function(U){return Object.keys(U).reduce(function(L,B){return(B.substr(0,5)==="data-"||B.substr(0,5)==="aria-"||B==="role")&&(L[B]=U[B]),L},{})},C=function(F){x(U,F);function U(){var L,B,Z,re;u(this,U);for(var me=arguments.length,Ee=Array(me),De=0;De<me;De++)Ee[De]=arguments[De];return re=(B=(Z=E(this,(L=U.__proto__||Object.getPrototypeOf(U)).call.apply(L,[this].concat(Ee))),Z),Z.state={uid:a()},Z.reqs={},Z.onChange=function(te){var Ce=te.target.files;Z.uploadFiles(Ce),Z.reset()},Z.onClick=function(te){var Ce=Z.fileInput;if(!Ce)return;var we=Z.props,ce=we.children,le=we.onClick;ce&&ce.type==="button"&&(Ce.parentNode.focus(),Ce.parentNode.querySelector("button").blur()),Ce.click(),le&&le(te)},Z.onKeyDown=function(te){te.key==="Enter"&&Z.onClick()},Z.onFileDrop=function(te){var Ce=Z.props.multiple;if(te.preventDefault(),te.type==="dragover")return;if(Z.props.directory)t(Array.prototype.slice.call(te.dataTransfer.items),Z.uploadFiles,function(ce){return l(ce,Z.props.accept)});else{var we=Array.prototype.slice.call(te.dataTransfer.files).filter(function(ce){return l(ce,Z.props.accept)});Ce===!1&&(we=we.slice(0,1)),Z.uploadFiles(we)}},Z.uploadFiles=function(te){var Ce=Array.prototype.slice.call(te);Ce.map(function(we){return we.uid=a(),we}).forEach(function(we){Z.upload(we,Ce)})},Z.saveFileInput=function(te){Z.fileInput=te},B),E(Z,re)}return d(U,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(B,Z){var re=this,me=this.props;if(!me.beforeUpload)return setTimeout(function(){return re.post(B)},0);var Ee=me.beforeUpload(B,Z);Ee&&Ee.then?Ee.then(function(De){var te=Object.prototype.toString.call(De);return te==="[object File]"||te==="[object Blob]"?re.post(De):re.post(B)}).catch(function(De){console.log(De)}):Ee!==!1&&setTimeout(function(){return re.post(B)},0);return}},{key:"post",value:function(B){var Z=this;if(!this._isMounted)return;var re=this.props,me=re.onStart,Ee=re.onProgress,De=re.transformFile,te=De===void 0?function(Ce){return Ce}:De;new Promise(function(Ce){var we=re.action;return typeof we=="function"&&(we=we(B)),Ce(we)}).then(function(Ce){var we=B.uid,ce=re.customRequest||_,le=Promise.resolve(te(B)).then(function(oe){var xe=re.data;return typeof xe=="function"&&(xe=xe(oe)),Promise.all([oe,xe])}).catch(function(oe){console.error(oe)});le.then(function(oe){var xe=c(oe,2),q=xe[0],se=xe[1],Ne={action:Ce,filename:re.name,data:se,file:q,headers:re.headers,withCredentials:re.withCredentials,method:re.method||"post",onProgress:Ee?function(de){Ee(de,B)}:null,onSuccess:function($,Q){delete Z.reqs[we],re.onSuccess($,B,Q)},onError:function($,Q){delete Z.reqs[we],re.onError($,Q,B)}};me(B),Z.reqs[we]=ce(Ne)})})}},{key:"reset",value:function(){this.setState({uid:a()})}},{key:"abort",value:function(B){var Z=this.reqs;if(B){var re=B;B&&B.uid&&(re=B.uid),Z[re]&&Z[re].abort&&Z[re].abort(),delete Z[re]}else Object.keys(Z).forEach(function(me){Z[me]&&Z[me].abort&&Z[me].abort(),delete Z[me]})}},{key:"render",value:function(){var B,Z=this.props,re=Z.component,me=Z.prefixCls,Ee=Z.className,De=Z.disabled,te=Z.id,Ce=Z.style,we=Z.multiple,ce=Z.accept,le=Z.children,oe=Z.directory,xe=Z.openFileDialogOnClick,q=Z.onMouseEnter,se=Z.onMouseLeave,Ne=h(Z,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),de=b()((B={},f(B,me,!0),f(B,me+"-disabled",De),f(B,Ee,Ee),B)),$=De?{}:{onClick:xe?this.onClick:function(){},onKeyDown:xe?this.onKeyDown:function(){},onMouseEnter:q,onMouseLeave:se,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.a.createElement(re,o({},$,{className:de,role:"button",style:Ce}),v.a.createElement("input",o({},O(Ne),{id:te,type:"file",ref:this.saveFileInput,onClick:function(Y){return Y.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ce,directory:oe?"directory":null,webkitdirectory:oe?"webkitdirectory":null,multiple:we,onChange:this.onChange})),le)}}]),U}(I.Component),w=C,S=Object.assign||function(F){for(var U=1;U<arguments.length;U++){var L=arguments[U];for(var B in L)Object.prototype.hasOwnProperty.call(L,B)&&(F[B]=L[B])}return F},D=function(){function F(U,L){for(var B=0;B<L.length;B++){var Z=L[B];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(U,Z.key,Z)}}return function(U,L,B){return L&&F(U.prototype,L),B&&F(U,B),U}}();function R(F,U){if(!(F instanceof U))throw new TypeError("Cannot call a class as a function")}function P(F,U){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:F}function N(F,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);F.prototype=Object.create(U&&U.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(F,U):F.__proto__=U)}function M(){}var z=function(F){N(U,F);function U(){var L,B,Z,re;R(this,U);for(var me=arguments.length,Ee=Array(me),De=0;De<me;De++)Ee[De]=arguments[De];return re=(B=(Z=P(this,(L=U.__proto__||Object.getPrototypeOf(U)).call.apply(L,[this].concat(Ee))),Z),Z.saveUploader=function(te){Z.uploader=te},B),P(Z,re)}return D(U,[{key:"abort",value:function(B){this.uploader.abort(B)}},{key:"render",value:function(){return v.a.createElement(w,S({},this.props,{ref:this.saveUploader}))}}]),U}(I.Component);z.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:M,onError:M,onSuccess:M,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var X=z,k=W.a=X},Gytx:function(j,W){j.exports=function(I,v,T,b){var g=T?T.call(b,I,v):void 0;if(g!==void 0)return!!g;if(I===v)return!0;if(typeof I!="object"||!I||typeof v!="object"||!v)return!1;var s=Object.keys(I),_=Object.keys(v);if(s.length!==_.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(v),e=0;e<s.length;e++){var a=s[e];if(!p(a))return!1;var n=I[a],l=v[a];if(g=T?T.call(b,n,l,a):void 0,g===!1||g===void 0&&n!==l)return!1}return!0}},H65k:function(j,W,y){},HmJG:function(j,W,y){},HpTS:function(j,W,y){j.exports=y.p+"static/small_program.f74069ec.png"},I8Z2:function(j,W,y){"use strict";y.d(W,"a",function(){return b}),y.d(W,"b",function(){return r}),y.d(W,"c",function(){return t});var I=y("q1tI"),v=function(){var o=function(c,d){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var u in h)h.hasOwnProperty(u)&&(f[u]=h[u])},o(c,d)};return function(c,d){o(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}(),T=I.createContext(null),b=function(o){v(c,o);function c(){return o!==null&&o.apply(this,arguments)||this}return c.prototype.render=function(){return I.createElement(T.Provider,{value:this.props.store},this.props.children)},c}(I.Component),g=y("Gytx"),s=y.n(g),_=y("2mql"),p=y.n(_),e=function(){var o=function(c,d){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var u in h)h.hasOwnProperty(u)&&(f[u]=h[u])},o(c,d)};return function(c,d){o(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}(),a=function(){return a=Object.assign||function(o){for(var c,d=1,f=arguments.length;d<f;d++){c=arguments[d];for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(o[h]=c[h])}return o},a.apply(this,arguments)};function n(o){return o.displayName||o.name||"Component"}var l=function(){return{}};function r(o,c){c===void 0&&(c={});var d=!!o,f=o||l;return function(u){var E=function(O){e(C,O);function C(w,S){var D=O.call(this,w,S)||this;return D.unsubscribe=null,D.handleChange=function(){if(!D.unsubscribe)return;var R=f(D.store.getState(),D.props);D.setState({subscribed:R})},D.store=D.context,D.state={subscribed:f(D.store.getState(),w),store:D.store,props:w},D}return C.getDerivedStateFromProps=function(w,S){return o&&o.length===2&&w!==S.props?{subscribed:f(S.store.getState(),w),props:w}:{props:w}},C.prototype.componentDidMount=function(){this.trySubscribe()},C.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},C.prototype.shouldComponentUpdate=function(w,S){return!s()(this.props,w)||!s()(this.state.subscribed,S.subscribed)},C.prototype.trySubscribe=function(){d&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},C.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},C.prototype.render=function(){var w=a(a(a({},this.props),this.state.subscribed),{store:this.store});return I.createElement(u,a({},w,{ref:this.props.miniStoreForwardedRef}))},C.displayName="Connect("+n(u)+")",C.contextType=T,C}(I.Component);if(c.forwardRef){var x=I.forwardRef(function(O,C){return I.createElement(E,a({},O,{miniStoreForwardedRef:C}))});return p()(x,u)}return p()(E,u)}}var i=function(){return i=Object.assign||function(o){for(var c,d=1,f=arguments.length;d<f;d++){c=arguments[d];for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(o[h]=c[h])}return o},i.apply(this,arguments)};function t(o){var c=o,d=[];function f(E){c=i(i({},c),E);for(var x=0;x<d.length;x++)d[x]()}function h(){return c}function u(E){return d.push(E),function(){var O=d.indexOf(E);d.splice(O,1)}}return{setState:f,getState:h,subscribe:u}}},IBYe:function(j,W,y){"use strict";function I(v){return null}W.a=I},IWh4:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjczMUZFNjhCMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjczMUZFNjhDMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzMxRkU2ODkwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzMxRkU2OEEwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7zBaLcAAACAElEQVR42uzdzyvDcRzH8ffsZiVc/IjbkOTuShN/gXIgYi5y2AlpFBL/AAdLiXBgBwfUxplmyU2tRK4sTey0+H6+RbKD7Gtfb/V817t963t59Nnn9f58+7aap6LO/yq6KmN13OoJq1MehcD3erS6rUT0VrnVC5qBpgLagWXagQIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAABUCD6Lbkr5L2W2uv9bS3LR4vd6iAb/9BaaBfa7K+oa8+0exEwmOheT5+UXnV9zd2SEHeztSU12ldw+2tjRLbH/X/lQbktqaansluwLtelPs85XKZmRFggN9eseMSbVJ9+Js2HHCizoHRwb7ZWN12V5VtYPaacJdOUmcJNy1o67QhLt6FheScNcfFkyqmxr9eoGHsWMZD8/qBCYvLmV4NCS5XE4f8PrmVnoHRySbzeoLyf1DWnr6huxPdWPGrJhZObOC6ga12Wtmz5m9p/Kom5yZt1Or8mFhbWNLIuubOh+3fjrrXAUWMutcAxY661wBOpl1RQc6nXVFBf7GrHMEPEskP65PE+d5901anc46R68+/rp4/QYQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAP8dMKMdGNcMNH9eMaUR+GR11Oo2q6/eBBgA/5+hicfO9/sAAAAASUVORK5CYII="},IZBM:function(j,W,y){"use strict";y.d(W,"l",function(){return e}),y.d(W,"m",function(){return a}),y.d(W,"i",function(){return n}),y.d(W,"D",function(){return l}),y.d(W,"h",function(){return r}),y.d(W,"I",function(){return i}),y.d(W,"C",function(){return t}),y.d(W,"A",function(){return o}),y.d(W,"B",function(){return c}),y.d(W,"d",function(){return d}),y.d(W,"q",function(){return f}),y.d(W,"g",function(){return h}),y.d(W,"s",function(){return u}),y.d(W,"j",function(){return E}),y.d(W,"w",function(){return O}),y.d(W,"k",function(){return C}),y.d(W,"F",function(){return w}),y.d(W,"z",function(){return D}),y.d(W,"y",function(){return R}),y.d(W,"H",function(){return P}),y.d(W,"n",function(){return N}),y.d(W,"o",function(){return M}),y.d(W,"p",function(){return z}),y.d(W,"t",function(){return X}),y.d(W,"E",function(){return k}),y.d(W,"b",function(){return F}),y.d(W,"r",function(){return U}),y.d(W,"c",function(){return L}),y.d(W,"e",function(){return B}),y.d(W,"x",function(){return Z}),y.d(W,"u",function(){return re}),y.d(W,"G",function(){return me}),y.d(W,"a",function(){return Ee}),y.d(W,"f",function(){return te}),y.d(W,"v",function(){return we});var I=y("9og8"),v=y("k1fw"),T=y("WmNS"),b=y.n(T),g=y("ErOA"),s=y("1vsH"),_=Object(s.J)(),p={};_!=null&&_.homework_common_id&&(p.homework_common_id=_==null?void 0:_.homework_common_id),_!=null&&_.exercisesId&&(p.exercise_id=_==null?void 0:_.exercisesId);function e(xe){return Object(g.c)("tasks/".concat(xe,".json"),p)}function a(xe){return Object(g.c)("myshixuns/".concat(xe,"/challenges.json"))}function n(xe,q){return Object(g.c)("myshixuns/".concat(xe,"/subject_challenges.json"),q)}function l(xe,q,se){return Object(g.c)("tasks/".concat(xe,"/star.json"),{shixun_id:q,star:se})}function r(xe,q){return Object(g.c)("tasks/".concat(xe,"/rep_content.json"),Object(v.a)(Object(v.a)({},q),p))}function i(xe,q){return Object(g.f)("myshixuns/".concat(xe,"/update_file.json"),q)}function t(xe,q){return Object(g.c)("tasks/".concat(xe,"/reset_original_code.json"),Object(v.a)(Object(v.a)({},q),p))}function o(xe,q){return Object(g.f)("myshixuns/".concat(xe,"/reset_repository.json"),q)}function c(xe,q){return Object(g.c)("tasks/".concat(xe,"/reset_passed_code.json"),Object(v.a)(Object(v.a)({},q),p))}function d(xe,q){return Object(g.f)("tasks/".concat(xe,"/game_build.json"),Object(v.a)(Object(v.a)({},q),p))}function f(xe,q){return Object(g.c)("tasks/".concat(xe,"/game_status.json"),Object(v.a)(Object(v.a)({},q),p))}function h(xe,q){return Object(g.f)("tasks/".concat(xe,"/choose_build.json"),Object(v.a)(Object(v.a)({},q),p))}function u(xe){return Object(g.c)("myshixuns/".concat(xe,"/get_remaining_time.json"))}function E(xe){return Object(g.c)("tasks/".concat(xe,"/picture_display.json"),p)}function x(xe,q){return Object(g.c)("courses/".concat(xe,"/inform_detail.json"),q)}function O(xe){return Object(g.f)("tasks/".concat(xe,"/plus_or_cancel_praise.json"))}function C(xe){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object(g.f)("myshixuns/".concat(xe,"/repository.json"),q)}function w(xe,q){return Object(g.c)("myshixuns/".concat(xe,"/start.json"),q||{})}function S(xe){return Object(g.c)("myshixuns/".concat(xe,"/reset_pod.json"))}function D(xe,q){return Object(g.c)("myshixuns/".concat(xe,"/reset_pod.json"),q)}function R(xe,q){return Object(g.a)("/api/tasks/".concat(xe,"/reboot_esc.json"),{method:"post",body:q})}function P(xe){return Object(g.c)("tasks/".concat(xe,"/check_test_sets.json"))}function N(xe){return Object(g.c)("tasks/".concat(xe,"/get_answer_info.json"))}function M(xe){return Object(g.c)("tasks/".concat(xe,"/get_choose_answer.json"))}function z(xe){return Object(g.c)("tasks/".concat(xe,"/unlock_choose_answer.json"))}function X(xe,q){return Object(g.c)("tasks/".concat(xe,"/unlock_answer.json"),{answer_id:q})}function k(xe,q,se){return Object(g.f)("tasks/".concat(xe,"/set_games_status.json"),{result:q,data:se})}function F(xe,q){return Object(g.c)("myshixuns/".concat(xe,"/active_pod.json"),q)}function U(xe,q){return Object(g.c)("tasks/".concat(xe,"/rank_list.json"),q)}function L(xe,q){return Object(g.f)("tasks/".concat(xe,"/close_windows_vnc.json"),{tpi_id:q})}function B(xe,q){return Object(g.c)("tasks/".concat(xe,"/commit_files.json"),q)}function Z(xe,q){return Object(g.c)("tasks/".concat(xe,"/pull_files.json"),q)}function re(xe,q){return Object(g.f)("tasks/".concat(xe,"/log_output"),q)}function me(xe,q){return Object(g.c)("tasks/".concat(xe,"/stop_log_output.json"),q)}function Ee(xe){return De.apply(this,arguments)}function De(){return De=Object(I.a)(b.a.mark(function xe(q){return b.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",Object(g.a)("/api/myshixuns/".concat(q.id,"/add_file.json"),{method:"post",body:q}));case 1:case"end":return Ne.stop()}},xe)})),De.apply(this,arguments)}function te(xe){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(I.a)(b.a.mark(function xe(q){return b.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",Object(g.a)("/api/myshixuns/".concat(q.id,"/delete_git_file.json"),{method:"Delete",body:q}));case 1:case"end":return Ne.stop()}},xe)})),Ce.apply(this,arguments)}function we(xe){return ce.apply(this,arguments)}function ce(){return ce=Object(I.a)(b.a.mark(function xe(q){return b.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",Object(g.a)("/api/myshixuns/".concat(q.id,"/mv_file.json"),{method:"post",body:q}));case 1:case"end":return Ne.stop()}},xe)})),ce.apply(this,arguments)}function le(xe){return oe.apply(this,arguments)}function oe(){return oe=Object(I.a)(b.a.mark(function xe(q){return b.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",Object(g.a)("/api/tasks/".concat(q.id,"/rep_content.json"),{method:"get",params:q}));case 1:case"end":return Ne.stop()}},xe)})),oe.apply(this,arguments)}},Ib8C:function(j,W,y){(function(I){(function(v,T){j.exports=W=T()})(this,function(){var v=v||function(T,b){var g;if(typeof window!="undefined"&&window.crypto&&(g=window.crypto),typeof self!="undefined"&&self.crypto&&(g=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(g=globalThis.crypto),!g&&typeof window!="undefined"&&window.msCrypto&&(g=window.msCrypto),!g&&typeof I!="undefined"&&I.crypto&&(g=I.crypto),!g&&!0)try{g=y(4)}catch(f){}var s=function(){if(g){if(typeof g.getRandomValues=="function")try{return g.getRandomValues(new Uint32Array(1))[0]}catch(f){}if(typeof g.randomBytes=="function")try{return g.randomBytes(4).readInt32LE()}catch(f){}}throw new Error("Native crypto module could not be used to get secure random number.")},_=Object.create||function(){function f(){}return function(h){var u;return f.prototype=h,u=new f,f.prototype=null,u}}(),p={},e=p.lib={},a=e.Base=function(){return{extend:function(f){var h=_(this);return f&&h.mixIn(f),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var f=this.extend();return f.init.apply(f,arguments),f},init:function(){},mixIn:function(f){for(var h in f)f.hasOwnProperty(h)&&(this[h]=f[h]);f.hasOwnProperty("toString")&&(this.toString=f.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),n=e.WordArray=a.extend({init:function(f,h){f=this.words=f||[],h!=b?this.sigBytes=h:this.sigBytes=f.length*4},toString:function(f){return(f||r).stringify(this)},concat:function(f){var h=this.words,u=f.words,E=this.sigBytes,x=f.sigBytes;if(this.clamp(),E%4)for(var O=0;O<x;O++){var C=u[O>>>2]>>>24-O%4*8&255;h[E+O>>>2]|=C<<24-(E+O)%4*8}else for(var w=0;w<x;w+=4)h[E+w>>>2]=u[w>>>2];return this.sigBytes+=x,this},clamp:function(){var f=this.words,h=this.sigBytes;f[h>>>2]&=4294967295<<32-h%4*8,f.length=T.ceil(h/4)},clone:function(){var f=a.clone.call(this);return f.words=this.words.slice(0),f},random:function(f){for(var h=[],u=0;u<f;u+=4)h.push(s());return new n.init(h,f)}}),l=p.enc={},r=l.Hex={stringify:function(f){for(var h=f.words,u=f.sigBytes,E=[],x=0;x<u;x++){var O=h[x>>>2]>>>24-x%4*8&255;E.push((O>>>4).toString(16)),E.push((O&15).toString(16))}return E.join("")},parse:function(f){for(var h=f.length,u=[],E=0;E<h;E+=2)u[E>>>3]|=parseInt(f.substr(E,2),16)<<24-E%8*4;return new n.init(u,h/2)}},i=l.Latin1={stringify:function(f){for(var h=f.words,u=f.sigBytes,E=[],x=0;x<u;x++){var O=h[x>>>2]>>>24-x%4*8&255;E.push(String.fromCharCode(O))}return E.join("")},parse:function(f){for(var h=f.length,u=[],E=0;E<h;E++)u[E>>>2]|=(f.charCodeAt(E)&255)<<24-E%4*8;return new n.init(u,h)}},t=l.Utf8={stringify:function(f){try{return decodeURIComponent(escape(i.stringify(f)))}catch(h){throw new Error("Malformed UTF-8 data")}},parse:function(f){return i.parse(unescape(encodeURIComponent(f)))}},o=e.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new n.init,this._nDataBytes=0},_append:function(f){typeof f=="string"&&(f=t.parse(f)),this._data.concat(f),this._nDataBytes+=f.sigBytes},_process:function(f){var h,u=this._data,E=u.words,x=u.sigBytes,O=this.blockSize,C=O*4,w=x/C;f?w=T.ceil(w):w=T.max((w|0)-this._minBufferSize,0);var S=w*O,D=T.min(S*4,x);if(S){for(var R=0;R<S;R+=O)this._doProcessBlock(E,R);h=E.splice(0,S),u.sigBytes-=D}return new n.init(h,D)},clone:function(){var f=a.clone.call(this);return f._data=this._data.clone(),f},_minBufferSize:0}),c=e.Hasher=o.extend({cfg:a.extend(),init:function(f){this.cfg=this.cfg.extend(f),this.reset()},reset:function(){o.reset.call(this),this._doReset()},update:function(f){return this._append(f),this._process(),this},finalize:function(f){f&&this._append(f);var h=this._doFinalize();return h},blockSize:512/32,_createHelper:function(f){return function(h,u){return new f.init(u).finalize(h)}},_createHmacHelper:function(f){return function(h,u){return new d.HMAC.init(f,u).finalize(h)}}}),d=p.algo={};return p}(Math);return v})}).call(this,y("IyRk"))},ItS6:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I=y("eP3c"),v=T(y("1q3G"));function T(p){return p&&p.__esModule?p:{default:p}}function b(p,e){if(!(p instanceof e))throw new TypeError("Cannot call a class as a function")}function g(p,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(p,n.key,n)}}function s(p,e,a){return e&&g(p.prototype,e),a&&g(p,a),p}var _=function(){function p(){b(this,p),this.strm=new v.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,I.inflateInit)(this.strm,this.windowBits)}return s(p,[{key:"setInput",value:function(a){a?(this.strm.input=a,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(a){a>this.chunkSize&&(this.chunkSize=a,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=a;var n=(0,I.inflate)(this.strm,0);if(n<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=a)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,I.inflateReset)(this.strm)}}]),p}();W.default=_},IxHN:function(j,W,y){"use strict";var I=y("q1tI"),v=y.n(I),T=y("07cG"),b=y.n(T);W.a=function(g){var s=g.message,_=g.className,p=g.children,e=g.style,a=e===void 0?{}:e;return v.a.createElement("div",{className:"".concat(b.a.idsRingWrapper," ").concat(_)},v.a.createElement("div",{className:b.a.ldsRing},v.a.createElement("div",null),v.a.createElement("div",null),v.a.createElement("div",null),v.a.createElement("div",null)),s?v.a.createElement("p",{style:a},s):null,p)}},J32x:function(j,W,y){j.exports={"unity3d-panel":"unity3d-panel___xOc45"}},J66h:function(j,W,y){(function(I){var v,T;(function(b,g){j.exports=g(b)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof I!="undefined"?I:this,function(b){"use strict";b=b||{};var g=b.Base64,s="2.6.4",_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=function(M){for(var z={},X=0,k=M.length;X<k;X++)z[M.charAt(X)]=X;return z}(_),e=String.fromCharCode,a=function(M){if(M.length<2){var z=M.charCodeAt(0);return z<128?M:z<2048?e(192|z>>>6)+e(128|z&63):e(224|z>>>12&15)+e(128|z>>>6&63)+e(128|z&63)}else{var z=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return e(240|z>>>18&7)+e(128|z>>>12&63)+e(128|z>>>6&63)+e(128|z&63)}},n=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(M){return M.replace(n,a)},r=function(M){var z=[0,2,1][M.length%3],X=M.charCodeAt(0)<<16|(M.length>1?M.charCodeAt(1):0)<<8|(M.length>2?M.charCodeAt(2):0),k=[_.charAt(X>>>18),_.charAt(X>>>12&63),z>=2?"=":_.charAt(X>>>6&63),z>=1?"=":_.charAt(X&63)];return k.join("")},i=b.btoa&&typeof b.btoa=="function"?function(M){return b.btoa(M)}:function(M){if(M.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return M.replace(/[\s\S]{1,3}/g,r)},t=function(M){return i(l(String(M)))},o=function(M){return M.replace(/[+\/]/g,function(z){return z=="+"?"-":"_"}).replace(/=/g,"")},c=function(M,z){return z?o(t(M)):t(M)},d=function(M){return c(M,!0)},f;b.Uint8Array&&(f=function(M,z){for(var X="",k=0,F=M.length;k<F;k+=3){var U=M[k],L=M[k+1],B=M[k+2],Z=U<<16|L<<8|B;X+=_.charAt(Z>>>18)+_.charAt(Z>>>12&63)+(typeof L!="undefined"?_.charAt(Z>>>6&63):"=")+(typeof B!="undefined"?_.charAt(Z&63):"=")}return z?o(X):X});var h=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,u=function(M){switch(M.length){case 4:var z=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),X=z-65536;return e((X>>>10)+55296)+e((X&1023)+56320);case 3:return e((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return e((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},E=function(M){return M.replace(h,u)},x=function(M){var z=M.length,X=z%4,k=(z>0?p[M.charAt(0)]<<18:0)|(z>1?p[M.charAt(1)]<<12:0)|(z>2?p[M.charAt(2)]<<6:0)|(z>3?p[M.charAt(3)]:0),F=[e(k>>>16),e(k>>>8&255),e(k&255)];return F.length-=[0,0,2,1][X],F.join("")},O=b.atob&&typeof b.atob=="function"?function(M){return b.atob(M)}:function(M){return M.replace(/\S{1,4}/g,x)},C=function(M){return O(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(M){return E(O(M))},S=function(M){return String(M).replace(/[-_]/g,function(z){return z=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},D=function(M){return w(S(M))},R;b.Uint8Array&&(R=function(M){return Uint8Array.from(C(S(M)),function(z){return z.charCodeAt(0)})});var P=function(){var M=b.Base64;return b.Base64=g,M};if(b.Base64={VERSION:s,atob:C,btoa:i,fromBase64:D,toBase64:c,utob:l,encode:c,encodeURI:d,btou:E,decode:D,noConflict:P,fromUint8Array:f,toUint8Array:R},typeof Object.defineProperty=="function"){var N=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};b.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",N(function(){return D(this)})),Object.defineProperty(String.prototype,"toBase64",N(function(M){return c(this,M)})),Object.defineProperty(String.prototype,"toBase64URI",N(function(){return c(this,!0)}))}}return b.Meteor&&(Base64=b.Base64),j.exports?j.exports.Base64=b.Base64:!(v=[],T=function(){return b.Base64}.apply(W,v),T!==void 0&&(j.exports=T)),{Base64:b.Base64}})}).call(this,y("IyRk"))},JSwD:function(j,W,y){"use strict";function I(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(d){return typeof d}:I=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},I(o)}Object.defineProperty(W,"__esModule",{value:!0}),W.default=t;var v=b(y("6BzB"));function T(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return T=function(){return o},o}function b(o){if(o&&o.__esModule)return o;if(o===null||I(o)!=="object"&&typeof o!="function")return{default:o};var c=T();if(c&&c.has(o))return c.get(o);var d={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in o)if(Object.prototype.hasOwnProperty.call(o,h)){var u=f?Object.getOwnPropertyDescriptor(o,h):null;u&&(u.get||u.set)?Object.defineProperty(d,h,u):d[h]=o[h]}return d.default=o,c&&c.set(o,d),d}var g=15,s=852,_=592,p=0,e=1,a=2,n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],r=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],i=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function t(o,c,d,f,h,u,E,x){var O=x.bits,C=0,w=0,S=0,D=0,R=0,P=0,N=0,M=0,z=0,X=0,k,F,U,L,B,Z=null,re=0,me,Ee=new v.Buf16(g+1),De=new v.Buf16(g+1),te=null,Ce=0,we,ce,le;for(C=0;C<=g;C++)Ee[C]=0;for(w=0;w<f;w++)Ee[c[d+w]]++;for(R=O,D=g;D>=1&&!(Ee[D]!==0);D--);if(R>D&&(R=D),D===0)return h[u++]=1<<24|64<<16|0,h[u++]=1<<24|64<<16|0,x.bits=1,0;for(S=1;S<D&&!(Ee[S]!==0);S++);for(R<S&&(R=S),M=1,C=1;C<=g;C++)if(M<<=1,M-=Ee[C],M<0)return-1;if(M>0&&(o===p||D!==1))return-1;for(De[1]=0,C=1;C<g;C++)De[C+1]=De[C]+Ee[C];for(w=0;w<f;w++)c[d+w]!==0&&(E[De[c[d+w]]++]=w);if(o===p?(Z=te=E,me=19):o===e?(Z=n,re-=257,te=l,Ce-=257,me=256):(Z=r,te=i,me=-1),X=0,w=0,C=S,B=u,P=R,N=0,U=-1,z=1<<R,L=z-1,o===e&&z>s||o===a&&z>_)return 1;for(;;){we=C-N,E[w]<me?(ce=0,le=E[w]):E[w]>me?(ce=te[Ce+E[w]],le=Z[re+E[w]]):(ce=32+64,le=0),k=1<<C-N,F=1<<P,S=F;do F-=k,h[B+(X>>N)+F]=we<<24|ce<<16|le|0;while(F!==0);for(k=1<<C-1;X&k;)k>>=1;if(k!==0?(X&=k-1,X+=k):X=0,w++,--Ee[C]===0){if(C===D)break;C=c[d+E[w]]}if(C>R&&(X&L)!==U){for(N===0&&(N=R),B+=S,P=C-N,M=1<<P;P+N<D&&!(M-=Ee[P+N],M<=0);)P++,M<<=1;if(z+=1<<P,o===e&&z>s||o===a&&z>_)return 1;U=X&L,h[U]=R<<24|P<<16|B-u|0}}return X!==0&&(h[B+X]=C-N<<24|64<<16|0),x.bits=R,0}},JWDV:function(j,W,y){j.exports=y.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(j,W,y){"use strict";y.d(W,"a",function(){return I});var I;(function(v){function T(h){return h&&typeof h=="object"&&typeof h[Symbol.iterator]=="function"}v.is=T;const b=Object.freeze([]);function g(){return b}v.empty=g;function*s(h){yield h}v.single=s;function _(h){return h||b}v.from=_;function p(h){return!h||h[Symbol.iterator]().next().done===!0}v.isEmpty=p;function e(h){return h[Symbol.iterator]().next().value}v.first=e;function a(h,u){for(const E of h)if(u(E))return!0;return!1}v.some=a;function n(h,u){for(const E of h)if(u(E))return E;return}v.find=n;function*l(h,u){for(const E of h)u(E)&&(yield E)}v.filter=l;function*r(h,u){let E=0;for(const x of h)yield u(x,E++)}v.map=r;function*i(...h){for(const u of h)for(const E of u)yield E}v.concat=i;function*t(h){for(const u of h)for(const E of u)yield E}v.concatNested=t;function o(h,u,E){let x=E;for(const O of h)x=u(x,O);return x}v.reduce=o;function*c(h,u,E=h.length){for(u<0&&(u+=h.length),E<0?E+=h.length:E>h.length&&(E=h.length);u<E;u++)yield h[u]}v.slice=c;function d(h,u=Number.POSITIVE_INFINITY){const E=[];if(u===0)return[E,h];const x=h[Symbol.iterator]();for(let O=0;O<u;O++){const C=x.next();if(C.done)return[E,v.empty()];E.push(C.value)}return[E,{[Symbol.iterator](){return x}}]}v.consume=d;function f(h,u,E=(x,O)=>x===O){const x=h[Symbol.iterator](),O=u[Symbol.iterator]();for(;;){const C=x.next(),w=O.next();if(C.done!==w.done)return!1;if(C.done)return!0;if(!E(C.value,w.value))return!1}}v.equals=f})(I||(I={}))},JeFH:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jjat:function(j,W,y){j.exports={mirrorModal:"mirrorModal___2JGEp",right:"right___2X__w",title:"title___1Pw0Y",content:"content___36ehT",des:"des___MmGhb",modal:"modal___3Sfpd"}},Jq4h:function(j,W,y){j.exports=y.p+"static/qrcode.2267e4d5.png"},K3mO:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("3y9D"),y("WYAk"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.Base,g=T.WordArray,s=v.algo,_=s.MD5,p=s.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:_,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,a){for(var n,l=this.cfg,r=l.hasher.create(),i=g.create(),t=i.words,o=l.keySize,c=l.iterations;t.length<o;){n&&r.update(n),n=r.update(e).finalize(a),r.reset();for(var d=1;d<c;d++)n=r.finalize(n),r.reset();i.concat(n)}return i.sigBytes=o*4,i}});v.EvpKDF=function(e,a,n){return p.create(n).compute(e,a)}}(),I.EvpKDF})},KJ0q:function(j,W,y){},KVXO:function(j,W,y){j.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KmYQ:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.pad.ZeroPadding={pad:function(v,T){var b=T*4;v.clamp(),v.sigBytes+=b-(v.sigBytes%b||b)},unpad:function(v){for(var T=v.words,b=v.sigBytes-1,b=v.sigBytes-1;b>=0;b--)if(T[b>>>2]>>>24-b%4*8&255){v.sigBytes=b+1;break}}},I.pad.ZeroPadding})},LCi9:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;function I(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function v(h,u){for(var E=0;E<u.length;E++){var x=u[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(h,x.key,x)}}function T(h,u,E){return u&&v(h.prototype,u),E&&v(h,E),h}var b=0,g=1,s=2,_=4,p=8,e=16,a=32,n=64,l=127,r=50,i=90,t=250,o=1e3,c=1e3,d=50,f=function(){function h(){I(this,h),this._target=null,this._state=l,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return T(h,[{key:"attach",value:function(E){this.detach(),this._target=E,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}},{key:"detach",value:function(){if(!this._target)return;this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null}},{key:"_eventHandler",value:function(E){var x;E.stopPropagation(),E.preventDefault();switch(E.type){case"touchstart":x=this._touchStart;break;case"touchmove":x=this._touchMove;break;case"touchend":case"touchcancel":x=this._touchEnd;break}for(var O=0;O<E.changedTouches.length;O++){var C=E.changedTouches[O];x.call(this,C.identifier,C.clientX,C.clientY)}}},{key:"_touchStart",value:function(E,x,O){if(this._hasDetectedGesture()||this._state===b){this._ignored.push(E);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>t){this._state=b,this._ignored.push(E);return}if(this._waitingRelease){this._state=b,this._ignored.push(E);return}this._tracked.push({id:E,started:Date.now(),active:!0,firstX:x,firstY:O,lastX:x,lastY:O,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(g|p|e),this._stopLongpressTimeout();break;case 3:this._state&=~(s|a|n);break;default:this._state=b}}},{key:"_touchMove",value:function(E,x,O){var C=this._tracked.find(function(N){return N.id===E});if(C===void 0)return;C.lastX=x,C.lastY=O;var w=x-C.firstX,S=O-C.firstY;if((C.firstX!==C.lastX||C.firstY!==C.lastY)&&(C.angle=Math.atan2(S,w)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(w,S)<r)return;if(this._state&=~(g|s|_|e),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~p),this._tracked.length!==2&&(this._state&=~(a|n)),this._tracked.length===2){var D=this._tracked.find(function(N){return N.id!==E}),R=Math.hypot(D.firstX-D.lastX,D.firstY-D.lastY);if(R>r){var P=Math.abs(C.angle-D.angle);P=Math.abs((P+180)%360-180),P>i?this._state&=~a:this._state&=~n,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(E,x,O){if(this._ignored.indexOf(E)!==-1){this._ignored.splice(this._ignored.indexOf(E),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=l,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=b),!this._hasDetectedGesture()&&(this._state&=~(p|a|n),this._state&=~e,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(s|_);break;case 2:this._state&=~(g|_);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=b),this._tracked.some(function(S){return Date.now()-S.started>o})&&(this._state=b);var C=this._tracked.find(function(S){return S.id===E});if(C.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==b)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var w=0;w<this._tracked.length;w++)this._tracked[w].active&&this._ignored.push(this._tracked[w].id);this._tracked=[],this._state=b,this._ignored.indexOf(E)!==-1&&this._ignored.splice(this._ignored.indexOf(E),1),this._ignored.length===0&&(this._state=l,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===b||this._state&this._state-1?!1:!(this._state&(g|s|_)&&this._tracked.some(function(E){return E.active}))}},{key:"_startLongpressTimeout",value:function(){var E=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return E._longpressTimeout()},c)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=e,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var E=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return E._twoTouchTimeout()},d)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var E=this._getAverageMovement(),x=Math.abs(E.x),O=Math.abs(E.y),C=this._getAverageDistance(),w=Math.abs(Math.hypot(C.first.x,C.first.y)-Math.hypot(C.last.x,C.last.y));O<w&&x<w?this._state=n:this._state=a,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(E){var x={type:this._stateToGesture(this._state)},O=this._getPosition(),C=O.last;E==="gesturestart"&&(C=O.first);switch(this._state){case a:case n:C=O.first;break}if(x.clientX=C.x,x.clientY=C.y,this._state===n){var w=this._getAverageDistance();E==="gesturestart"?(x.magnitudeX=w.first.x,x.magnitudeY=w.first.y):(x.magnitudeX=w.last.x,x.magnitudeY=w.last.y)}else if(this._state===a)if(E==="gesturestart")x.magnitudeX=0,x.magnitudeY=0;else{var S=this._getAverageMovement();x.magnitudeX=S.x,x.magnitudeY=S.y}var D=new CustomEvent(E,{detail:x});this._target.dispatchEvent(D)}},{key:"_stateToGesture",value:function(E){switch(E){case g:return"onetap";case s:return"twotap";case _:return"threetap";case p:return"drag";case e:return"longpress";case a:return"twodrag";case n:return"pinch"}throw new Error("Unknown gesture state: "+E)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var E=this._tracked.length,x=0,O=0,C=0,w=0,S=0;S<this._tracked.length;S++)x+=this._tracked[S].firstX,O+=this._tracked[S].firstY,C+=this._tracked[S].lastX,w+=this._tracked[S].lastY;return{first:{x:x/E,y:O/E},last:{x:C/E,y:w/E}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var E,x;E=x=0;for(var O=this._tracked.length,C=0;C<this._tracked.length;C++)E+=this._tracked[C].lastX-this._tracked[C].firstX,x+=this._tracked[C].lastY-this._tracked[C].firstY;return{x:E/O,y:x/O}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var E=this._tracked[0],x=this._tracked[this._tracked.length-1],O=Math.abs(x.firstX-E.firstX),C=Math.abs(x.firstY-E.firstY),w=Math.abs(x.lastX-E.lastX),S=Math.abs(x.lastY-E.lastY);return{first:{x:O,y:C},last:{x:w,y:S}}}}]),h}();W.default=f},LYID:function(j,W,y){j.exports=y.p+"static/failer.5e83e9b8.svg"},LdHM:function(j,W,y){"use strict";y.d(W,"b",function(){return h}),y.d(W,"a",function(){return E});var I=y("1OyB"),v=y("vuIU"),T=y("Ji7U"),b=y("LK+K"),g=y("q1tI"),s=y("rePB"),_=y("Ff2n"),p=y("ODXe"),e=y("4IlW"),a=y("bX4T"),n=y("YrtM"),l=y("TSYQ"),r=y.n(l),i=y("+nKL"),t=y("8OUc"),o=function(B,Z){var re=B.prefixCls,me=B.id,Ee=B.flattenOptions,De=B.childrenAsData,te=B.values,Ce=B.searchValue,we=B.multiple,ce=B.defaultActiveFirstOption,le=B.height,oe=B.itemHeight,xe=B.notFoundContent,q=B.open,se=B.menuItemSelectedIcon,Ne=B.virtual,de=B.onSelect,$=B.onToggleOpen,Q=B.onActiveValue,Y=B.onScroll,ue=B.onMouseEnter,ae="".concat(re,"-item"),be=Object(n.a)(function(){return Ee},[q,Ee],function(Ze,Ve){return Ve[0]&&Ze[1]!==Ve[1]}),Ie=g.useRef(null),pe=function(Ve){Ve.preventDefault()},Le=function(Ve){Ie.current&&Ie.current.scrollTo({index:Ve})},ve=function(Ve){for(var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Be=be.length,_e=0;_e<Be;_e+=1){var Ae=(Ve+_e*Fe+Be)%Be,fe=be[Ae],ke=fe.group,Je=fe.data;if(!ke&&!Je.disabled)return Ae}return-1},Xe=g.useState(function(){return ve(0)}),$e=Object(p.a)(Xe,2),Ge=$e[0],Me=$e[1],gt=function(Ve){Me(Ve);var Fe=be[Ve];if(!Fe){Q(null,-1);return}Q(Fe.data.value,Ve)};g.useEffect(function(){gt(ce!==!1?ve(0):-1)},[be.length,Ce]),g.useEffect(function(){var Ze=setTimeout(function(){if(!we&&q&&te.size===1){var Ve=Array.from(te)[0],Fe=be.findIndex(function(Be){var _e=Be.data;return _e.value===Ve});gt(Fe),Le(Fe)}});return function(){return clearTimeout(Ze)}},[q]);var Te=function(Ve){Ve!==void 0&&de(Ve,{selected:!te.has(Ve)}),we||$(!1)};if(g.useImperativeHandle(Z,function(){return{onKeyDown:function(Ve){var Fe=Ve.which;switch(Fe){case e.a.UP:case e.a.DOWN:{var Be=0;if(Fe===e.a.UP?Be=-1:Fe===e.a.DOWN&&(Be=1),Be!==0){var _e=ve(Ge+Be,Be);Le(_e),gt(_e)}break}case e.a.ENTER:{var Ae=be[Ge];Ae&&!Ae.data.disabled?Te(Ae.data.value):Te(void 0),q&&Ve.preventDefault();break}case e.a.ESC:$(!1)}},onKeyUp:function(){},scrollTo:function(Ve){Le(Ve)}}}),be.length===0)return g.createElement("div",{role:"listbox",id:"".concat(me,"_list"),className:"".concat(ae,"-empty"),onMouseDown:pe},xe);function Ye(Ze){var Ve=be[Ze];if(!Ve)return null;var Fe=Ve.data||{},Be=Fe.value,_e=Fe.label,Ae=Fe.children,fe=Object(a.a)(Fe,!0),ke=De?Ae:_e;return Ve?g.createElement("div",Object.assign({"aria-label":typeof ke=="string"?ke:null},fe,{key:Ze,role:"option",id:"".concat(me,"_list_").concat(Ze),"aria-selected":te.has(Be)}),Be):null}return g.createElement(g.Fragment,null,g.createElement("div",{role:"listbox",id:"".concat(me,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ye(Ge-1),Ye(Ge),Ye(Ge+1)),g.createElement(i.a,{itemKey:"key",ref:Ie,data:be,height:le,itemHeight:oe,fullHeight:!1,onMouseDown:pe,onScroll:Y,virtual:Ne,onMouseEnter:ue},function(Ze,Ve){var Fe,Be=Ze.group,_e=Ze.groupOption,Ae=Ze.data,fe=Ae.label,ke=Ae.key;if(Be)return g.createElement("div",{className:r()(ae,"".concat(ae,"-group"))},fe!==void 0?fe:ke);var Je=Ae.disabled,ne=Ae.value,Qe=Ae.title,dt=Ae.children,Ke=Ae.style,et=Ae.className,rt=Object(_.a)(Ae,["disabled","value","title","children","style","className"]),bt=te.has(ne),ut="".concat(ae,"-option"),ot=r()(ae,ut,et,(Fe={},Object(s.a)(Fe,"".concat(ut,"-grouped"),_e),Object(s.a)(Fe,"".concat(ut,"-active"),Ge===Ve&&!Je),Object(s.a)(Fe,"".concat(ut,"-disabled"),Je),Object(s.a)(Fe,"".concat(ut,"-selected"),bt),Fe)),Ue=De?dt:fe,We=!se||typeof se=="function"||bt;return g.createElement("div",Object.assign({},rt,{"aria-selected":bt,className:ot,title:Qe,onMouseMove:function(){if(Ge===Ve||Je)return;gt(Ve)},onClick:function(){Je||Te(ne)},style:Ke}),g.createElement("div",{className:"".concat(ut,"-content")},Ue||ne),g.isValidElement(se)||bt,We&&g.createElement(t.a,{className:"".concat(ae,"-option-state"),customizeIcon:se,customizeIconProps:{isSelected:bt}},bt?"\u2713":null))}))},c=g.forwardRef(o);c.displayName="OptionList";var d=c,f=function(){return null};f.isSelectOption=!0;var h=f,u=function(){return null};u.isSelectOptGroup=!0;var E=u,x=y("VTBJ"),O=y("Zm9Q");function C(L){var B=L.key,Z=L.props,re=Z.children,me=Z.value,Ee=Object(_.a)(Z,["children","value"]);return Object(x.a)({key:B,value:me!==void 0?me:B,children:re},Ee)}function w(L){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(O.a)(L).map(function(Z,re){if(!g.isValidElement(Z)||!Z.type)return null;var me=Z.type.isSelectOptGroup,Ee=Z.key,De=Z.props,te=De.children,Ce=Object(_.a)(De,["children"]);return B||!me?C(Z):Object(x.a)(Object(x.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?re:Ee,"__"),label:Ee},Ce),{},{options:w(te)})}).filter(function(Z){return Z})}var S=y("2Qr1"),D=y("qNPg"),R=y("U8pU"),P=y("Kwbf"),N=y("WKfj");function M(L){var B=L.mode,Z=L.options,re=L.children,me=L.backfill,Ee=L.allowClear,De=L.placeholder,te=L.getInputElement,Ce=L.showSearch,we=L.onSearch,ce=L.defaultOpen,le=L.autoFocus,oe=L.labelInValue,xe=L.value,q=L.inputValue,se=L.optionLabelProp,Ne=B==="multiple"||B==="tags",de=Ce!==void 0?Ce:Ne||B==="combobox",$=Z||w(re);if(Object(P.a)(B!=="tags"||$.every(function(ae){return!ae.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),B==="tags"||B==="combobox"){var Q=$.some(function(ae){return ae.options?ae.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in ae?ae.value:ae.key)=="number"});Object(P.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(P.a)(B!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(P.a)(B==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(P.a)(B==="combobox"||!te,"`getInputElement` only work with `combobox` mode."),Object(P.b)(B!=="combobox"||!te||!Ee||!De,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),we&&!de&&B!=="combobox"&&B!=="tags"&&Object(P.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(P.b)(!ce||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),xe!=null){var Y=Object(N.d)(xe);Object(P.a)(!oe||Y.every(function(ae){return Object(R.a)(ae)==="object"&&("key"in ae||"value"in ae)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(P.a)(!Ne||Array.isArray(xe),"`value` should be array when `mode` is `multiple` or `tags`")}if(re){var ue=null;Object(O.a)(re).some(function(ae){if(!g.isValidElement(ae)||!ae.type)return!1;var be=ae.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Ie=Object(O.a)(ae.props.children).every(function(pe){return!g.isValidElement(pe)||!ae.type||pe.type.isSelectOption?!0:(ue=pe.type,!1)});return!Ie}return ue=be,!0}),ue&&Object(P.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ue.displayName||ue.name||ue,"`.")),Object(P.a)(q===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var z=M,X=Object(D.a)({prefixCls:"rc-select",components:{optionList:d},convertChildrenToData:w,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:z,fillOptionsWithMissingValue:S.a}),k=function(L){Object(T.a)(Z,L);var B=Object(b.a)(Z);function Z(){var re;return Object(I.a)(this,Z),re=B.apply(this,arguments),re.selectRef=g.createRef(),re.focus=function(){re.selectRef.current.focus()},re.blur=function(){re.selectRef.current.blur()},re}return Object(v.a)(Z,[{key:"render",value:function(){return g.createElement(X,Object.assign({ref:this.selectRef},this.props))}}]),Z}(g.Component);k.Option=h,k.OptGroup=E;var F=k,U=W.c=F},Lmeb:function(j,W,y){},Lo0S:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.initLogging=s,W.getLogging=_,W.Error=W.Warn=W.Info=W.Debug=void 0;var I="warn",v=function(){};W.Debug=v;var T=function(){};W.Info=T;var b=function(){};W.Warn=b;var g=function(){};W.Error=g;function s(p){if(typeof p=="undefined"?p=I:I=p,W.Debug=v=W.Info=T=W.Warn=b=W.Error=g=function(){},typeof window.console!="undefined")switch(p){case"debug":W.Debug=v=console.debug.bind(window.console);case"info":W.Info=T=console.info.bind(window.console);case"warn":W.Warn=b=console.warn.bind(window.console);case"error":W.Error=g=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+p+"'")}}function _(){return I}s()},M8RZ:function(j,W,y){"use strict";y.d(W,"a",function(){return e});var I=y("fWQN"),v=y("mtLc"),T=y("yKVA"),b=y("879j"),g=y("q1tI"),s=y.n(g),_=y("i8i4"),p=y.n(_),e=function(a){Object(T.a)(l,a);var n=Object(b.a)(l);function l(r){var i;Object(I.a)(this,l),i=n.call(this,r);var t=window.document;return i.node=t.createElement("div"),t.body.appendChild(i.node),i}return Object(v.a)(l,[{key:"render",value:function(){var i=this.props.children;return Object(_.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),l}(s.a.Component)},MAU4:function(j,W,y){j.exports=y.p+"static/disappoint1.7e763f4d.svg"},MFOe:function(j,W,y){(function(I){var v=s(),T=_(),b=p(),g=typeof window!="undefined"?window:I;j.exports={assign:v,create:T,trim:b,bind:e,slice:a,each:n,map:l,pluck:r,isList:i,isFunction:t,isObject:o,Global:g};function s(){return Object.assign?Object.assign:function(d,f,h,u){for(var E=1;E<arguments.length;E++)n(Object(arguments[E]),function(x,O){d[O]=x});return d}}function _(){if(Object.create)return function(f,h,u,E){var x=a(arguments,1);return v.apply(this,[Object.create(f)].concat(x))};{function c(){}return function(f,h,u,E){var x=a(arguments,1);return c.prototype=f,v.apply(this,[new c].concat(x))}}}function p(){return String.prototype.trim?function(d){return String.prototype.trim.call(d)}:function(d){return d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function e(c,d){return function(){return d.apply(c,Array.prototype.slice.call(arguments,0))}}function a(c,d){return Array.prototype.slice.call(c,d||0)}function n(c,d){r(c,function(f,h){return d(f,h),!1})}function l(c,d){var f=i(c)?[]:{};return r(c,function(h,u){return f[u]=d(h,u),!1}),f}function r(c,d){if(i(c)){for(var f=0;f<c.length;f++)if(d(c[f],f))return c[f]}else for(var h in c)if(c.hasOwnProperty(h)&&d(c[h],h))return c[h]}function i(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function t(c){return c&&{}.toString.call(c)==="[object Function]"}function o(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,y("IyRk"))},MI8n:function(j,W,y){"use strict";y.d(W,"c",function(){return g}),y.d(W,"b",function(){return e}),y.d(W,"e",function(){return a}),y.d(W,"a",function(){return n}),y.d(W,"d",function(){return l}),y.d(W,"f",function(){return r});var I=y("/cxE"),v=y("pmY6"),T=y("24hK"),b=y("5Y4S"),g;(function(i){i.None=()=>v.a.None;function t(M){return(z,X=null,k)=>{let F=!1,U;return U=M(L=>F?void 0:(U?U.dispose():F=!0,z.call(X,L)),null,k),F&&U.dispose(),U}}i.once=t;function o(M,z){return E((X,k=null,F)=>M(U=>X.call(k,z(U)),null,F))}i.map=o;function c(M,z){return E((X,k=null,F)=>M(U=>{z(U),X.call(k,U)},null,F))}i.forEach=c;function d(M,z){return E((X,k=null,F)=>M(U=>z(U)&&X.call(k,U),null,F))}i.filter=d;function f(M){return M}i.signal=f;function h(...M){return(z,X=null,k)=>Object(v.e)(...M.map(F=>F(U=>z.call(X,U),null,k)))}i.any=h;function u(M,z,X){let k=X;return o(M,F=>(k=z(k,F),k))}i.reduce=u;function E(M){let z;const X=new e({onFirstListenerAdd(){z=M(X.fire,X)},onLastListenerRemove(){z.dispose()}});return X.event}function x(M,z,X=100,k=!1,F){let U,L,B,Z=0;const re=new e({leakWarningThreshold:F,onFirstListenerAdd(){U=M(me=>{Z++,L=z(L,me),k&&!B&&(re.fire(L),L=void 0),clearTimeout(B),B=setTimeout(()=>{const Ee=L;L=void 0,B=void 0,(!k||Z>1)&&re.fire(Ee),Z=0},X)})},onLastListenerRemove(){U.dispose()}});return re.event}i.debounce=x;function O(M,z=(X,k)=>X===k){let X=!0,k;return d(M,F=>{const U=X||!z(F,k);return X=!1,k=F,U})}i.latch=O;function C(M,z){return[i.filter(M,z),i.filter(M,X=>!z(X))]}i.split=C;function w(M,z=!1,X=[]){let k=X.slice(),F=M(B=>{k?k.push(B):L.fire(B)});const U=()=>{k&&k.forEach(B=>L.fire(B)),k=null},L=new e({onFirstListenerAdd(){F||(F=M(B=>L.fire(B)))},onFirstListenerDidAdd(){k&&(z?setTimeout(U):U())},onLastListenerRemove(){F&&F.dispose(),F=null}});return L.event}i.buffer=w;class S{constructor(M){this.event=M}map(M){return new S(o(this.event,M))}forEach(M){return new S(c(this.event,M))}filter(M){return new S(d(this.event,M))}reduce(M,z){return new S(u(this.event,M,z))}latch(){return new S(O(this.event))}debounce(M,z=100,X=!1,k){return new S(x(this.event,M,z,X,k))}on(M,z,X){return this.event(M,z,X)}once(M,z,X){return t(this.event)(M,z,X)}}function D(M){return new S(M)}i.chain=D;function R(M,z,X=k=>k){const k=(...B)=>L.fire(X(...B)),F=()=>M.on(z,k),U=()=>M.removeListener(z,k),L=new e({onFirstListenerAdd:F,onLastListenerRemove:U});return L.event}i.fromNodeEventEmitter=R;function P(M,z,X=k=>k){const k=(...B)=>L.fire(X(...B)),F=()=>M.addEventListener(z,k),U=()=>M.removeEventListener(z,k),L=new e({onFirstListenerAdd:F,onLastListenerRemove:U});return L.event}i.fromDOMEventEmitter=P;function N(M){return new Promise(z=>t(M)(z))}i.toPromise=N})(g||(g={}));class s{constructor(i){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${i}_${s._idPool++}`}start(i){this._stopWatch=new b.a(!0),this._listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this._elapsedOverall+=i,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${i.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}s._idPool=0;let _=-1;class p{constructor(i,t=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i){let t=_;if(typeof this.customThreshold=="number"&&(t=this.customThreshold),t<=0||i<t)return;this._stacks||(this._stacks=new Map);const o=new Error().stack.split(`
`).slice(3).join(`
`),c=this._stacks.get(o)||0;if(this._stacks.set(o,c+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=t*.5;let d,f=0;for(const[h,u]of this._stacks)(!d||f<u)&&(d=h,f=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${f}):`),console.warn(d)}return()=>{const d=this._stacks.get(o)||0;this._stacks.set(o,d-1)}}}class e{constructor(i){var t;this._disposed=!1,this._options=i,this._leakageMon=_>0?new p(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((t=this._options)===null||t===void 0?void 0:t._profName)?new s(this._options._profName):void 0}get event(){return this._event||(this._event=(i,t,o)=>{var c;this._listeners||(this._listeners=new T.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const f=this._listeners.push(t?[i,t]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,t);const h=(c=this._leakageMon)===null||c===void 0?void 0:c.check(this._listeners.size),u=Object(v.i)(()=>{if(h&&h(),!this._disposed&&(f(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return o instanceof v.b?o.add(u):Array.isArray(o)&&o.push(u),u}),this._event}fire(i){var t,o;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.a);for(let c of this._listeners)this._deliveryQueue.push([c,i]);for((t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[c,d]=this._deliveryQueue.shift();try{typeof c=="function"?c.call(void 0,d):c[0].call(c[1],d)}catch(f){Object(I.f)(f)}}(o=this._perfMon)===null||o===void 0||o.stop()}}dispose(){var i,t,o,c,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(t=this._deliveryQueue)===null||t===void 0||t.clear(),(c=(o=this._options)===null||o===void 0?void 0:o.onLastListenerRemove)===null||c===void 0||c.call(o),(d=this._leakageMon)===null||d===void 0||d.dispose())}}class a extends e{constructor(i){super(i);this._isPaused=0,this._eventQueue=new T.a,this._mergeFn=i==null?void 0:i.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}class n extends a{constructor(i){var t;super(i);this._delay=(t=i.delay)!==null&&t!==void 0?t:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class l{constructor(){this.buffers=[]}wrapEvent(i){return(t,o,c)=>i(d=>{const f=this.buffers[this.buffers.length-1];f?f.push(()=>t.call(o,d)):t.call(o,d)},void 0,c)}bufferEvents(i){const t=[];this.buffers.push(t);const o=i();return this.buffers.pop(),t.forEach(c=>c()),o}}class r{constructor(){this.listening=!1,this.inputEvent=g.None,this.inputEventListener=v.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(j,W,y){"use strict";(function(I,v){y.d(W,"b",function(){return o}),y.d(W,"i",function(){return h}),y.d(W,"f",function(){return u}),y.d(W,"d",function(){return E}),y.d(W,"g",function(){return x}),y.d(W,"h",function(){return O}),y.d(W,"c",function(){return C}),y.d(W,"k",function(){return w}),y.d(W,"j",function(){return S}),y.d(W,"a",function(){return D}),y.d(W,"e",function(){return N});var T;const b="en";let g=!1,s=!1,_=!1,p=!1,e=!1,a=!1,n=!1,l,r=b,i,t;const o=typeof self=="object"?self:typeof I=="object"?I:{};let c;typeof o.vscode!="undefined"&&typeof o.vscode.process!="undefined"?c=o.vscode.process:typeof v!="undefined"&&(c=v);const d=typeof((T=c==null?void 0:c.versions)===null||T===void 0?void 0:T.electron)=="string"&&c.type==="renderer";if(typeof navigator=="object"&&!d)t=navigator.userAgent,g=t.indexOf("Windows")>=0,s=t.indexOf("Macintosh")>=0,n=(t.indexOf("Macintosh")>=0||t.indexOf("iPad")>=0||t.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,_=t.indexOf("Linux")>=0,a=!0,l=navigator.language,r=l;else if(typeof c=="object"){g=c.platform==="win32",s=c.platform==="darwin",_=c.platform==="linux",p=_&&!!c.env.SNAP&&!!c.env.SNAP_REVISION,l=b,r=b;const M=c.env.VSCODE_NLS_CONFIG;if(M)try{const z=JSON.parse(M),X=z.availableLanguages["*"];l=z.locale,r=X||b,i=z._translationsConfigFile}catch(z){}e=!0}else console.error("Unable to resolve platform.");let f=0;s?f=1:g?f=3:_&&(f=2);const h=g,u=s,E=_,x=e,O=a,C=n,w=t,S=function(){if(o.setImmediate)return o.setImmediate.bind(o);if(typeof o.postMessage=="function"&&!o.importScripts){let X=[];o.addEventListener("message",F=>{if(F.data&&F.data.vscodeSetImmediateId)for(let U=0,L=X.length;U<L;U++){const B=X[U];if(B.id===F.data.vscodeSetImmediateId){X.splice(U,1),B.callback();return}}});let k=0;return F=>{const U=++k;X.push({id:U,callback:F}),o.postMessage({vscodeSetImmediateId:U},"*")}}if(typeof(c==null?void 0:c.nextTick)=="function")return c.nextTick.bind(c);const z=Promise.resolve();return X=>z.then(X)}(),D=s||n?2:g?1:3;let R=!0,P=!1;function N(){if(!P){P=!0;const M=new Uint8Array(2);M[0]=1,M[1]=2;const z=new Uint16Array(M.buffer);R=z[0]===(2<<8)+1}return R}}).call(this,y("IyRk"),y("Q2Ig"))},MZdM:function(j,W,y){"use strict";function I(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(t){return typeof t}:I=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(r)}Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var v=p(y("Lo0S")),T=s(y("N/zr")),b=y("GdRQ"),g=y("GQ8N");function s(r){return r&&r.__esModule?r:{default:r}}function _(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return _=function(){return r},r}function p(r){if(r&&r.__esModule)return r;if(r===null||I(r)!=="object"&&typeof r!="function")return{default:r};var i=_();if(i&&i.has(r))return i.get(r);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)){var d=o?Object.getOwnPropertyDescriptor(r,c):null;d&&(d.get||d.set)?Object.defineProperty(t,c,d):t[c]=r[c]}return t.default=r,i&&i.set(r,t),t}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function a(r,i){for(var t=0;t<i.length;t++){var o=i[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function n(r,i,t){return i&&a(r.prototype,i),t&&a(r,t),r}var l=function(){function r(i){if(e(this,r),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,v.Debug(">> Display.constructor"),this._target=i,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},v.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),v.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return n(r,[{key:"viewportChangePos",value:function(t,o){var c=this._viewportLoc;t=Math.floor(t),o=Math.floor(o),this._clipViewport||(t=-c.w,o=-c.h);var d=c.x+c.w-1,f=c.y+c.h-1;if(t<0&&c.x+t<0&&(t=-c.x),d+t>=this._fbWidth&&(t-=d+t-this._fbWidth+1),c.y+o<0&&(o=-c.y),f+o>=this._fbHeight&&(o-=f+o-this._fbHeight+1),t===0&&o===0)return;v.Debug("viewportChange deltaX: "+t+", deltaY: "+o),c.x+=t,c.y+=o,this._damage(c.x,c.y,c.w,c.h),this.flip()}},{key:"viewportChangeSize",value:function(t,o){(!this._clipViewport||typeof t=="undefined"||typeof o=="undefined")&&(v.Debug("Setting viewport to full display region"),t=this._fbWidth,o=this._fbHeight),t=Math.floor(t),o=Math.floor(o),t>this._fbWidth&&(t=this._fbWidth),o>this._fbHeight&&(o=this._fbHeight);var c=this._viewportLoc;if(c.w!==t||c.h!==o){c.w=t,c.h=o;var d=this._target;d.width=t,d.height=o,this.viewportChangePos(0,0),this._damage(c.x,c.y,c.w,c.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,g.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,g.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,o){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=o;var c=this._backbuffer;if(c.width!==t||c.height!==o){var d=null;c.width>0&&c.height>0&&(d=this._drawCtx.getImageData(0,0,c.width,c.height)),c.width!==t&&(c.width=t),c.height!==o&&(c.height=o),d&&this._drawCtx.putImageData(d,0,0)}var f=this._viewportLoc;this.viewportChangeSize(f.w,f.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,o,c,d){t<this._damageBounds.left&&(this._damageBounds.left=t),o<this._damageBounds.top&&(this._damageBounds.top=o),t+c>this._damageBounds.right&&(this._damageBounds.right=t+c),o+d>this._damageBounds.bottom&&(this._damageBounds.bottom=o+d)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var o=this._damageBounds.left,c=this._damageBounds.top,d=this._damageBounds.right-o,f=this._damageBounds.bottom-c,h=o-this._viewportLoc.x,u=c-this._viewportLoc.y;h<0&&(d+=h,o-=h,h=0),u<0&&(f+=u,c-=u,u=0),h+d>this._viewportLoc.w&&(d=this._viewportLoc.w-h),u+f>this._viewportLoc.h&&(f=this._viewportLoc.h-u),d>0&&f>0&&this._targetCtx.drawImage(this._backbuffer,o,c,d,f,h,u,d,f),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(t,o,c,d,f,h){this._renderQ.length!==0&&!h?this._renderQPush({type:"fill",x:t,y:o,width:c,height:d,color:f}):(this._setFillColor(f),this._drawCtx.fillRect(t,o,c,d),this._damage(t,o,c,d))}},{key:"copyImage",value:function(t,o,c,d,f,h,u){this._renderQ.length!==0&&!u?this._renderQPush({type:"copy",oldX:t,oldY:o,x:c,y:d,width:f,height:h}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,o,f,h,c,d,f,h),this._damage(c,d,f,h))}},{key:"imageRect",value:function(t,o,c,d,f,h){if(c===0||d===0)return;var u=new Image;u.src="data: "+f+";base64,"+T.default.encode(h),this._renderQPush({type:"img",img:u,x:t,y:o,width:c,height:d})}},{key:"startTile",value:function(t,o,c,d,f){this._tileX=t,this._tileY=o,c===16&&d===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,d);for(var h=f[2],u=f[1],E=f[0],x=this._tile.data,O=0;O<c*d*4;O+=4)x[O]=h,x[O+1]=u,x[O+2]=E,x[O+3]=255}},{key:"subTile",value:function(t,o,c,d,f){for(var h=f[2],u=f[1],E=f[0],x=t+c,O=o+d,C=this._tile.data,w=this._tile.width,S=o;S<O;S++)for(var D=t;D<x;D++){var R=(D+S*w)*4;C[R]=h,C[R+1]=u,C[R+2]=E,C[R+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(t,o,c,d,f,h,u){if(this._renderQ.length!==0&&!u){var E=new Uint8Array(c*d*4);E.set(new Uint8Array(f.buffer,0,E.length)),this._renderQPush({type:"blit",data:E,x:t,y:o,width:c,height:d})}else this._bgrxImageData(t,o,c,d,f,h)}},{key:"blitRgbImage",value:function(t,o,c,d,f,h,u){if(this._renderQ.length!==0&&!u){var E=new Uint8Array(c*d*3);E.set(new Uint8Array(f.buffer,0,E.length)),this._renderQPush({type:"blitRgb",data:E,x:t,y:o,width:c,height:d})}else this._rgbImageData(t,o,c,d,f,h)}},{key:"blitRgbxImage",value:function(t,o,c,d,f,h,u){if(this._renderQ.length!==0&&!u){var E=new Uint8Array(c*d*4);E.set(new Uint8Array(f.buffer,0,E.length)),this._renderQPush({type:"blitRgbx",data:E,x:t,y:o,width:c,height:d})}else this._rgbxImageData(t,o,c,d,f,h)}},{key:"drawImage",value:function(t,o,c){this._drawCtx.drawImage(t,o,c),this._damage(o,c,t.width,t.height)}},{key:"autoscale",value:function(t,o){var c;if(t===0||o===0)c=0;else{var d=this._viewportLoc,f=t/o,h=d.w/d.h;h>=f?c=t/d.w:c=o/d.h}this._rescale(c)}},{key:"_rescale",value:function(t){this._scale=t;var o=this._viewportLoc,c=t*o.w+"px",d=t*o.h+"px";(this._target.style.width!==c||this._target.style.height!==d)&&(this._target.style.width=c,this._target.style.height=d)}},{key:"_setFillColor",value:function(t){var o="rgb("+t[2]+","+t[1]+","+t[0]+")";o!==this._prevDrawStyle&&(this._drawCtx.fillStyle=o,this._prevDrawStyle=o)}},{key:"_rgbImageData",value:function(t,o,c,d,f,h){for(var u=this._drawCtx.createImageData(c,d),E=u.data,x=0,O=h;x<c*d*4;x+=4,O+=3)E[x]=f[O],E[x+1]=f[O+1],E[x+2]=f[O+2],E[x+3]=255;this._drawCtx.putImageData(u,t,o),this._damage(t,o,u.width,u.height)}},{key:"_bgrxImageData",value:function(t,o,c,d,f,h){for(var u=this._drawCtx.createImageData(c,d),E=u.data,x=0,O=h;x<c*d*4;x+=4,O+=4)E[x]=f[O+2],E[x+1]=f[O+1],E[x+2]=f[O],E[x+3]=255;this._drawCtx.putImageData(u,t,o),this._damage(t,o,u.width,u.height)}},{key:"_rgbxImageData",value:function(t,o,c,d,f,h){var u;b.supportsImageMetadata?u=new ImageData(new Uint8ClampedArray(f.buffer,f.byteOffset,c*d*4),c,d):(u=this._drawCtx.createImageData(c,d),u.data.set(new Uint8ClampedArray(f.buffer,f.byteOffset,c*d*4))),this._drawCtx.putImageData(u,t,o),this._damage(t,o,u.width,u.height)}},{key:"_renderQPush",value:function(t){this._renderQ.push(t),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var t=!0;t&&this._renderQ.length>0;){var o=this._renderQ[0];switch(o.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(o.oldX,o.oldY,o.x,o.y,o.width,o.height,!0);break;case"fill":this.fillRect(o.x,o.y,o.width,o.height,o.color,!0);break;case"blit":this.blitImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"blitRgb":this.blitRgbImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"img":if(o.img.complete&&o.img.width!==0&&o.img.height!==0){if(o.img.width!==o.width||o.img.height!==o.height){v.Error("Decoded image has incorrect dimensions. Got "+o.img.width+"x"+o.img.height+". Expected "+o.width+"x"+o.height+".");return}this.drawImage(o.img,o.x,o.y)}else o.img._noVNCDisplay=this,o.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(t){this._rescale(t)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(t){this._clipViewport=t;var o=this._viewportLoc;this.viewportChangeSize(o.w,o.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),r}();W.default=l},MlIO:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(v){var T=I,b=T.lib,g=b.Base,s=b.WordArray,_=T.x64={},p=_.Word=g.extend({init:function(a,n){this.high=a,this.low=n}}),e=_.WordArray=g.extend({init:function(a,n){a=this.words=a||[],n!=v?this.sigBytes=n:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,n=a.length,l=[],r=0;r<n;r++){var i=a[r];l.push(i.high),l.push(i.low)}return s.create(l,this.sigBytes)},clone:function(){for(var a=g.clone.call(this),n=a.words=this.words.slice(0),l=n.length,r=0;r<l;r++)n[r]=n[r].clone();return a}})}(),I})},Mmt2:function(j,W,y){"use strict";function I(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(r){return typeof r}:I=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},I(n)}Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var v=b(y("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return T=function(){return n},n}function b(n){if(n&&n.__esModule)return n;if(n===null||I(n)!=="object"&&typeof n!="function")return{default:n};var l=T();if(l&&l.has(n))return l.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var o=i?Object.getOwnPropertyDescriptor(n,t):null;o&&(o.get||o.set)?Object.defineProperty(r,t,o):r[t]=n[t]}return r.default=n,l&&l.set(n,r),r}function g(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function s(n,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function _(n,l,r){return l&&s(n.prototype,l),r&&s(n,r),n}var p=!1,e=40*1024*1024,a=function(){function n(){g(this,n),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return _(n,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(r){this._rQi+=r}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(r){for(var i=0,t=r-1;t>=0;t--)i+=this._rQ[this._rQi++]<<t*8;return i}},{key:"rQshiftStr",value:function(r){typeof r=="undefined"&&(r=this.rQlen);for(var i="",t=0;t<r;t+=4096){var o=this.rQshiftBytes(Math.min(4096,r-t));i+=String.fromCharCode.apply(null,o)}return i}},{key:"rQshiftBytes",value:function(r){return typeof r=="undefined"&&(r=this.rQlen),this._rQi+=r,new Uint8Array(this._rQ.buffer,this._rQi-r,r)}},{key:"rQshiftTo",value:function(r,i){i===void 0&&(i=this.rQlen),r.set(new Uint8Array(this._rQ.buffer,this._rQi,i)),this._rQi+=i}},{key:"rQslice",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+r,i-r)}},{key:"rQwait",value:function(r,i,t){if(this.rQlen<i){if(t){if(this._rQi<t)throw new Error("rQwait cannot backup "+t+" bytes");this._rQi-=t}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(r){this._sQ.set(r,this._sQlen),this._sQlen+=r.length,this.flush()}},{key:"sendString",value:function(r){this.send(r.split("").map(function(i){return i.charCodeAt(0)}))}},{key:"off",value:function(r){this._eventHandlers[r]=function(){}}},{key:"on",value:function(r,i){this._eventHandlers[r]=i}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(r,i){var t=this;this.init(),this._websocket=new WebSocket(r,i),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){v.Debug(">> WebSock.onopen"),t._websocket.protocol&&v.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),v.Debug("<< WebSock.onopen")},this._websocket.onclose=function(o){v.Debug(">> WebSock.onclose"),t._eventHandlers.close(o),v.Debug("<< WebSock.onclose")},this._websocket.onerror=function(o){v.Debug(">> WebSock.onerror: "+o),t._eventHandlers.error(o),v.Debug("<< WebSock.onerror: "+o)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(v.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(r){var i=(this._rQlen-this._rQi+r)*8,t=this._rQbufferSize<i;if(t&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,i)),this._rQbufferSize>e&&(this._rQbufferSize=e,this._rQbufferSize-this.rQlen<r))throw new Error("Receive Queue buffer exceeded "+e+" bytes, and the new message could not fit");if(t){var o=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(o,this._rQi,this._rQlen-this._rQi))}else p?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(r){var i=new Uint8Array(r);i.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(i.length),this._rQ.set(i,this._rQlen),this._rQlen+=i.length}},{key:"_recvMessage",value:function(r){this._DecodeMessage(r.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):v.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(r){this._rQi=r}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),n}();W.default=a},"N/zr":function(j,W,y){"use strict";function I(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(p){return typeof p}:I=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},I(s)}Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var v=b(y("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return T=function(){return s},s}function b(s){if(s&&s.__esModule)return s;if(s===null||I(s)!=="object"&&typeof s!="function")return{default:s};var _=T();if(_&&_.has(s))return _.get(s);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a)){var n=e?Object.getOwnPropertyDescriptor(s,a):null;n&&(n.get||n.set)?Object.defineProperty(p,a,n):p[a]=s[a]}return p.default=s,_&&_.set(s,p),p}var g={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(_){"use strict";for(var p="",e=_.length,a=e%3,n=0;n<e-2;n+=3)p+=this.toBase64Table[_[n]>>2],p+=this.toBase64Table[((_[n]&3)<<4)+(_[n+1]>>4)],p+=this.toBase64Table[((_[n+1]&15)<<2)+(_[n+2]>>6)],p+=this.toBase64Table[_[n+2]&63];var l=e-a;return a===2?(p+=this.toBase64Table[_[l]>>2],p+=this.toBase64Table[((_[l]&3)<<4)+(_[l+1]>>4)],p+=this.toBase64Table[(_[l+1]&15)<<2],p+=this.toBase64Table[64]):a===1&&(p+=this.toBase64Table[_[l]>>2],p+=this.toBase64Table[(_[l]&3)<<4],p+=this.toBase64Table[64],p+=this.toBase64Table[64]),p},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(_){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=_.indexOf("=")-p;e<0&&(e=_.length-p);for(var a=(e>>2)*3+Math.floor(e%4/1.5),n=new Array(a),l=0,r=0,i=0,t=p;t<_.length;t++){var o=this.toBinaryTable[_.charCodeAt(t)&127],c=_.charAt(t)===this.base64Pad;if(o===-1){v.Error("Illegal character code "+_.charCodeAt(t)+" at position "+t);continue}r=r<<6|o,l+=6,l>=8&&(l-=8,c||(n[i++]=r>>l&255),r&=(1<<l)-1)}if(l){var d=new Error("Corrupted base64 string");throw d.name="Base64-Error",d}return n}};W.default=g},N0LK:function(j,W,y){"use strict";y.d(W,"C",function(){return I}),y.d(W,"v",function(){return T}),y.d(W,"s",function(){return b}),y.d(W,"t",function(){return g}),y.d(W,"U",function(){return s}),y.d(W,"J",function(){return _}),y.d(W,"O",function(){return p}),y.d(W,"p",function(){return e}),y.d(W,"T",function(){return a}),y.d(W,"q",function(){return n}),y.d(W,"N",function(){return l}),y.d(W,"M",function(){return r}),y.d(W,"Q",function(){return i}),y.d(W,"u",function(){return t}),y.d(W,"x",function(){return o}),y.d(W,"I",function(){return c}),y.d(W,"f",function(){return d}),y.d(W,"h",function(){return f}),y.d(W,"g",function(){return h}),y.d(W,"i",function(){return u}),y.d(W,"G",function(){return E}),y.d(W,"H",function(){return x}),y.d(W,"r",function(){return O}),y.d(W,"R",function(){return C}),y.d(W,"d",function(){return w}),y.d(W,"e",function(){return S}),y.d(W,"E",function(){return D}),y.d(W,"F",function(){return R}),y.d(W,"j",function(){return P}),y.d(W,"z",function(){return N}),y.d(W,"K",function(){return z}),y.d(W,"L",function(){return X}),y.d(W,"m",function(){return F}),y.d(W,"k",function(){return L}),y.d(W,"A",function(){return Z}),y.d(W,"a",function(){return re}),y.d(W,"n",function(){return me}),y.d(W,"l",function(){return Ee}),y.d(W,"D",function(){return De}),y.d(W,"B",function(){return te}),y.d(W,"b",function(){return Ce}),y.d(W,"S",function(){return we}),y.d(W,"o",function(){return ce}),y.d(W,"P",function(){return le}),y.d(W,"w",function(){return oe}),y.d(W,"c",function(){return xe}),y.d(W,"y",function(){return Ne});function I(Y){return!Y||typeof Y!="string"?!0:Y.trim().length===0}const v=/{(\d+)}/g;function T(Y,...ue){return ue.length===0?Y:Y.replace(v,function(ae,be){const Ie=parseInt(be,10);return isNaN(Ie)||Ie<0||Ie>=ue.length?ae:ue[Ie]})}function b(Y){return Y.replace(/[<>&]/g,function(ue){switch(ue){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ue}})}function g(Y){return Y.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function s(Y,ue=" "){const ae=_(Y,ue);return p(ae,ue)}function _(Y,ue){if(!Y||!ue)return Y;const ae=ue.length;if(ae===0||Y.length===0)return Y;let be=0;for(;Y.indexOf(ue,be)===be;)be=be+ae;return Y.substring(be)}function p(Y,ue){if(!Y||!ue)return Y;const ae=ue.length,be=Y.length;if(ae===0||be===0)return Y;let Ie=be,pe=-1;for(;!(pe=Y.lastIndexOf(ue,Ie-1),pe===-1||pe+ae!==Ie);){if(pe===0)return"";Ie=pe}return Y.substring(0,Ie)}function e(Y){return Y.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function a(Y){return Y.replace(/\*/g,"")}function n(Y,ue,ae={}){if(!Y)throw new Error("Cannot create regex from empty string");ue||(Y=g(Y)),ae.wholeWord&&(/\B/.test(Y.charAt(0))||(Y="\\b"+Y),/\B/.test(Y.charAt(Y.length-1))||(Y=Y+"\\b"));let be="";return ae.global&&(be+="g"),ae.matchCase||(be+="i"),ae.multiline&&(be+="m"),ae.unicode&&(be+="u"),new RegExp(Y,be)}function l(Y){if(Y.source==="^"||Y.source==="^$"||Y.source==="$"||Y.source==="^\\s*$")return!1;const ue=Y.exec("");return!!(ue&&Y.lastIndex===0)}function r(Y){return(Y.global?"g":"")+(Y.ignoreCase?"i":"")+(Y.multiline?"m":"")+(Y.unicode?"u":"")}function i(Y){return Y.split(/\r\n|\r|\n/)}function t(Y){for(let ue=0,ae=Y.length;ue<ae;ue++){const be=Y.charCodeAt(ue);if(be!==32&&be!==9)return ue}return-1}function o(Y,ue=0,ae=Y.length){for(let be=ue;be<ae;be++){const Ie=Y.charCodeAt(be);if(Ie!==32&&Ie!==9)return Y.substring(ue,be)}return Y.substring(ue,ae)}function c(Y,ue=Y.length-1){for(let ae=ue;ae>=0;ae--){const be=Y.charCodeAt(ae);if(be!==32&&be!==9)return ae}return-1}function d(Y,ue){return Y<ue?-1:Y>ue?1:0}function f(Y,ue,ae=0,be=Y.length,Ie=0,pe=ue.length){for(;ae<be&&Ie<pe;ae++,Ie++){let Xe=Y.charCodeAt(ae),$e=ue.charCodeAt(Ie);if(Xe<$e)return-1;if(Xe>$e)return 1}const Le=be-ae,ve=pe-Ie;return Le<ve?-1:Le>ve?1:0}function h(Y,ue){return u(Y,ue,0,Y.length,0,ue.length)}function u(Y,ue,ae=0,be=Y.length,Ie=0,pe=ue.length){for(;ae<be&&Ie<pe;ae++,Ie++){let Xe=Y.charCodeAt(ae),$e=ue.charCodeAt(Ie);if(Xe===$e)continue;if(Xe>=128||$e>=128)return f(Y.toLowerCase(),ue.toLowerCase(),ae,be,Ie,pe);E(Xe)&&(Xe-=32),E($e)&&($e-=32);const Ge=Xe-$e;if(Ge===0)continue;return Ge}const Le=be-ae,ve=pe-Ie;return Le<ve?-1:Le>ve?1:0}function E(Y){return Y>=97&&Y<=122}function x(Y){return Y>=65&&Y<=90}function O(Y,ue){return Y.length===ue.length&&u(Y,ue)===0}function C(Y,ue){const ae=ue.length;return ue.length>Y.length?!1:u(Y,ue,0,ae)===0}function w(Y,ue){let ae,be=Math.min(Y.length,ue.length);for(ae=0;ae<be;ae++)if(Y.charCodeAt(ae)!==ue.charCodeAt(ae))return ae;return be}function S(Y,ue){let ae,be=Math.min(Y.length,ue.length);const Ie=Y.length-1,pe=ue.length-1;for(ae=0;ae<be;ae++)if(Y.charCodeAt(Ie-ae)!==ue.charCodeAt(pe-ae))return ae;return be}function D(Y){return 55296<=Y&&Y<=56319}function R(Y){return 56320<=Y&&Y<=57343}function P(Y,ue){return(Y-55296<<10)+(ue-56320)+65536}function N(Y,ue,ae){const be=Y.charCodeAt(ae);if(D(be)&&ae+1<ue){const Ie=Y.charCodeAt(ae+1);if(R(Ie))return P(be,Ie)}return be}function M(Y,ue){const ae=Y.charCodeAt(ue-1);if(R(ae)&&ue>1){const be=Y.charCodeAt(ue-2);if(D(be))return P(be,ae)}return ae}function z(Y,ue){const ae=q.getInstance(),be=ue,Ie=Y.length,pe=N(Y,Ie,ue);ue+=pe>=65536?2:1;let Le=ae.getGraphemeBreakType(pe);for(;ue<Ie;){const ve=N(Y,Ie,ue),Xe=ae.getGraphemeBreakType(ve);if(xe(Le,Xe))break;ue+=ve>=65536?2:1,Le=Xe}return ue-be}function X(Y,ue){const ae=q.getInstance(),be=ue,Ie=M(Y,ue);ue-=Ie>=65536?2:1;let pe=ae.getGraphemeBreakType(Ie);for(;ue>0;){const Le=M(Y,ue),ve=ae.getGraphemeBreakType(Le);if(xe(ve,pe))break;ue-=Le>=65536?2:1,pe=ve}return be-ue}const k=/(?:[\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-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function F(Y){return k.test(Y)}const U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function L(Y){return U.test(Y)}const B=/^[\t\n\r\x20-\x7E]*$/;function Z(Y){return B.test(Y)}const re=/[\u2028\u2029]/;function me(Y){return re.test(Y)}function Ee(Y){for(let ue=0,ae=Y.length;ue<ae;ue++)if(De(Y.charCodeAt(ue)))return!0;return!1}function De(Y){return Y=+Y,Y>=11904&&Y<=55215||Y>=63744&&Y<=64255||Y>=65281&&Y<=65374}function te(Y){return Y>=127462&&Y<=127487||Y===8986||Y===8987||Y===9200||Y===9203||Y>=9728&&Y<=10175||Y===11088||Y===11093||Y>=127744&&Y<=128591||Y>=128640&&Y<=128764||Y>=128992&&Y<=129003||Y>=129280&&Y<=129535||Y>=129648&&Y<=129750}const Ce=String.fromCharCode(65279);function we(Y){return!!(Y&&Y.length>0&&Y.charCodeAt(0)===65279)}function ce(Y,ue=!1){return Y?(ue&&(Y=Y.replace(/\\./g,"")),Y.toLowerCase()!==Y):!1}function le(Y){const ue=90-65+1;return Y=Y%(2*ue),Y<ue?String.fromCharCode(97+Y):String.fromCharCode(65+Y-ue)}function oe(Y){const ue=q.getInstance();return ue.getGraphemeBreakType(Y)}function xe(Y,ue){return Y===0?ue!==5&&ue!==7:Y===2&&ue===3?!1:Y===4||Y===2||Y===3||(ue===4||ue===2||ue===3)?!0:Y===8&&(ue===8||ue===9||ue===11||ue===12)||((Y===11||Y===9)&&(ue===9||ue===10)||((Y===12||Y===10)&&ue===10||(ue===5||ue===13||(ue===7||(Y===1||Y===13&&ue===14)))))?!1:!(Y===6&&ue===6)}class q{constructor(){this._data=se()}static getInstance(){return q._INSTANCE||(q._INSTANCE=new q),q._INSTANCE}getGraphemeBreakType(Y){if(Y<32)return Y===10?3:Y===13?2:4;if(Y<127)return 0;const ue=this._data,ae=ue.length/3;let be=1;for(;be<=ae;)if(Y<ue[3*be])be=2*be;else if(Y>ue[3*be+1])be=2*be+1;else return ue[3*be+2];return 0}}q._INSTANCE=null;function se(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,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,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,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,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,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,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,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,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,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,2259,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,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,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,6848,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,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,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,9776,9783,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,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,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,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,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Ne(Y,ue){if(Y===0)return 0;const ae=de(Y,ue);if(ae!==void 0)return ae;const be=M(ue,Y);return Y-=$(be),Y}function de(Y,ue){let ae=M(ue,Y);for(Y-=$(ae);Q(ae)||ae===65039||ae===8419;){if(Y===0)return;ae=M(ue,Y),Y-=$(ae)}if(!te(ae))return;if(Y>=0){const be=M(ue,Y);be===8205&&(Y-=$(be))}return Y}function $(Y){return Y>=65536?2:1}function Q(Y){return 127995<=Y&&Y<=127999}},NBmB:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.encodingName=v,W.encodings=void 0;var I={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};W.encodings=I;function v(T){switch(T){case I.encodingRaw:return"Raw";case I.encodingCopyRect:return"CopyRect";case I.encodingRRE:return"RRE";case I.encodingHextile:return"Hextile";case I.encodingTight:return"Tight";case I.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+T+"]"}}},NFKh:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("MlIO"),y("F+F2"),y("qM6L"),y("ETIr"),y("wbyO"),y("cv67"),y("3y9D"),y("lPiR"),y("GRuw"),y("1uat"),y("uGsb"),y("5hvy"),y("ELcG"),y("WYAk"),y("e7zE"),y("K3mO"),y("OLod"),y("ALsQ"),y("9OqN"),y("qu8F"),y("S6kV"),y("gb/T"),y("qBft"),y("oRuE"),y("jO9C"),y("KmYQ"),y("uGxW"),y("bQjk"),y("wZgz"),y("pA7S"),y("w7YG"),y("E4JC"),y("PVpz"))})(this,function(I){return I})},NLgs:function(j,W,y){"use strict";y.d(W,"e",function(){return c}),y.d(W,"f",function(){return d}),y.d(W,"d",function(){return h}),y.d(W,"c",function(){return u}),y.d(W,"a",function(){return E}),y.d(W,"b",function(){return x});var I=y("miYZ"),v=y("tsqr"),T=y("9og8"),b=y("2qtc"),g=y("kLXV"),s=y("WmNS"),_=y.n(s),p=y("q1tI"),e=y.n(p),a=y("9kvl"),n=y("xKgJ"),l=y("1vsH"),r=y("RCxd"),i=y("yTi+"),t=y.n(i),o=y("m3rI"),c=function(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(d(C)&&f(w))},d=function(C){return Object(n.p)()?!0:(C({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},f=function(){var C,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S=Object(a.c)()._store.getState(),D=S.user;return(C=D.userInfo)!==null&&C!==void 0&&C.profile_completed?!0:(g.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:w?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){a.d.push("/account/profile/edit")}}),!1)},h=function(){var C,w=Object(a.c)()._store.getState(),S=w.user;return(C=S.userInfo)!==null&&C!==void 0&&C.professional_certification?!0:(g.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(l.T)("/account/certification")}}),!1)},u=function(){var C;if(Object(n.a)())return!0;var w=Object(a.c)()._store.getState(),S=w.user,D=w.globalSetting;return g.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:o.a.IMG_SERVER+(D==null||((C=D.setting)===null||C===void 0)?void 0:C.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},E=function(C,w){var S;if(C)return!0;var D=Object(a.c)()._store.getState(),R=D.user,P=D.globalSetting;return g.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,w||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),e.a.createElement("div",{style:{marginLeft:"110px"}},e.a.createElement("img",{src:o.a.IMG_SERVER+(P==null||((S=P.setting)===null||S===void 0)?void 0:S.authority_qrcode_url),width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.T)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},x=function(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",S=Object(a.c)()._store.getState(),D=S.shixunsDetail.detail;return(D==null?void 0:D.public)===2||(D==null?void 0:D.public)===1||(D==null?void 0:D.shixun_status)===3?(g.a.info({centered:!0,icon:e.a.createElement(r.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},e.a.createElement("span",null,"\u8BE5\u5B9E\u9A8C\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(D==null?void 0:D.public)===2?"\u5DF2\u516C\u5F00":(D==null?void 0:D.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",w,"\u3002"),e.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),e.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:t.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(D==null?void 0:D.shixun_status)===2?(g.a.confirm({centered:!0,icon:e.a.createElement(r.a,null),title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("span",null,"\u8BE5\u5B9E\u9A8C\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",w,"\u3002"),e.a.createElement("br",null),e.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){g.a.confirm({width:440,centered:!0,icon:e.a.createElement(r.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var P=Object(T.a)(_.a.mark(function M(){var z;return _.a.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,C({type:"shixunsDetail/cancelRelease",payload:{id:D==null?void 0:D.identifier}});case 2:z=k.sent,z.status!==401&&(v.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),C({type:"shixunsDetail/getShixunsDetail",payload:{id:D==null?void 0:D.identifier}}),C({type:"practiceSetting/getCommonData",payload:{id:D==null?void 0:D.identifier}}));case 4:case"end":return k.stop()}},M)}));function N(){return P.apply(this,arguments)}return N}()})}}),!0):!1}},"Ne/g":function(j,W,y){j.exports={scrollbar:"scrollbar___2R3LL",scrollbarContent:"scrollbarContent___wRHYd",scrollbarTrack:"scrollbarTrack___3imJz",scrollbarThumb:"scrollbarThumb___3RMAH",item:"item___2FLGU",icon:"icon___20hLx",dot:"dot___1psvx",active:"active___16sjd",pathActive:"pathActive___1wHf2",paths:"paths___2s41j"}},Nmxd:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(j,W,y){"use strict";y.d(W,"a",function(){return s});var I=y("Kwbf");function v(_,p){var e=new Set;return _.forEach(function(a){p.has(a)||e.add(a)}),e}function T(_){var p=_||{},e=p.disabled,a=p.disableCheckbox,n=p.checkable;return!!(e||a)||n===!1}function b(_,p,e,a){for(var n=new Set(_),l=new Set,r=0;r<=e;r+=1){var i=p.get(r)||new Set;i.forEach(function(d){var f=d.key,h=d.node,u=d.children,E=u===void 0?[]:u;n.has(f)&&!a(h)&&E.filter(function(x){return!a(x.node)}).forEach(function(x){n.add(x.key)})})}for(var t=new Set,o=e;o>=0;o-=1){var c=p.get(o)||new Set;c.forEach(function(d){var f=d.parent,h=d.node;if(a(h)||!d.parent||t.has(d.parent.key))return;if(a(d.parent.node)){t.add(f.key);return}var u=!0,E=!1;(f.children||[]).filter(function(x){return!a(x.node)}).forEach(function(x){var O=x.key,C=n.has(O);u&&!C&&(u=!1),!E&&(C||l.has(O))&&(E=!0)}),u&&n.add(f.key),E&&l.add(f.key),t.add(f.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(v(l,n))}}function g(_,p,e,a,n){for(var l=new Set(_),r=new Set(p),i=0;i<=a;i+=1){var t=e.get(i)||new Set;t.forEach(function(f){var h=f.key,u=f.node,E=f.children,x=E===void 0?[]:E;!l.has(h)&&!r.has(h)&&!n(u)&&x.filter(function(O){return!n(O.node)}).forEach(function(O){l.delete(O.key)})})}r=new Set;for(var o=new Set,c=a;c>=0;c-=1){var d=e.get(c)||new Set;d.forEach(function(f){var h=f.parent,u=f.node;if(n(u)||!f.parent||o.has(f.parent.key))return;if(n(f.parent.node)){o.add(h.key);return}var E=!0,x=!1;(h.children||[]).filter(function(O){return!n(O.node)}).forEach(function(O){var C=O.key,w=l.has(C);E&&!w&&(E=!1),!x&&(w||r.has(C))&&(x=!0)}),E||l.delete(h.key),x&&r.add(h.key),o.add(h.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(v(r,l))}}function s(_,p,e,a){var n=[],l;a?l=a:l=T;var r=new Set(_.filter(function(c){var d=!!e[c];return d||n.push(c),d})),i=new Map,t=0;Object.keys(e).forEach(function(c){var d=e[c],f=d.level,h=i.get(f);h||(h=new Set,i.set(f,h)),h.add(d),t=Math.max(t,f)}),Object(I.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var o;return p===!0?o=b(r,i,t,l):o=g(r,p.halfCheckedKeys,i,t,l),o}},OLES:function(j,W,y){"use strict";var I=y("U8pU"),v=y("VTBJ"),T=y("Ff2n"),b=y("q1tI"),g=y("uciX"),s=y("7ixt"),_=function(r){var i=r.overlay,t=r.prefixCls,o=r.id,c=r.overlayInnerStyle;return b.createElement("div",{className:"".concat(t,"-inner"),id:o,role:"tooltip",style:c},typeof i=="function"?i():i)},p=_,e=function(r,i){var t=r.overlayClassName,o=r.trigger,c=o===void 0?["hover"]:o,d=r.mouseEnterDelay,f=d===void 0?0:d,h=r.mouseLeaveDelay,u=h===void 0?.1:h,E=r.overlayStyle,x=r.prefixCls,O=x===void 0?"rc-tooltip":x,C=r.children,w=r.onVisibleChange,S=r.afterVisibleChange,D=r.transitionName,R=r.animation,P=r.placement,N=P===void 0?"right":P,M=r.align,z=M===void 0?{}:M,X=r.destroyTooltipOnHide,k=X===void 0?!1:X,F=r.defaultVisible,U=r.getTooltipContainer,L=r.overlayInnerStyle,B=Object(T.a)(r,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Z=Object(b.useRef)(null);Object(b.useImperativeHandle)(i,function(){return Z.current});var re=Object(v.a)({},B);"visible"in r&&(re.popupVisible=r.visible);var me=function(){var we=r.arrowContent,ce=we===void 0?null:we,le=r.overlay,oe=r.id;return[b.createElement("div",{className:"".concat(O,"-arrow"),key:"arrow"},ce),b.createElement(p,{key:"content",prefixCls:O,id:oe,overlay:le,overlayInnerStyle:L})]},Ee=!1,De=!1;if(typeof k=="boolean")Ee=k;else if(k&&Object(I.a)(k)==="object"){var te=k.keepParent;Ee=te===!0,De=te===!1}return b.createElement(g.a,Object.assign({popupClassName:t,prefixCls:O,popup:me,action:c,builtinPlacements:s.a,popupPlacement:N,ref:Z,popupAlign:z,getPopupContainer:U,onPopupVisibleChange:w,afterPopupVisibleChange:S,popupTransitionName:D,popupAnimation:R,defaultPopupVisible:F,destroyPopupOnHide:Ee,autoDestroy:De,mouseLeaveDelay:u,popupStyle:E,mouseEnterDelay:f},re),C)},a=Object(b.forwardRef)(e),n=W.a=a},OLod:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("K3mO"))})(this,function(I){I.lib.Cipher||function(v){var T=I,b=T.lib,g=b.Base,s=b.WordArray,_=b.BufferedBlockAlgorithm,p=T.enc,e=p.Utf8,a=p.Base64,n=T.algo,l=n.EvpKDF,r=b.Cipher=_.extend({cfg:g.extend(),createEncryptor:function(D,R){return this.create(this._ENC_XFORM_MODE,D,R)},createDecryptor:function(D,R){return this.create(this._DEC_XFORM_MODE,D,R)},init:function(D,R,P){this.cfg=this.cfg.extend(P),this._xformMode=D,this._key=R,this.reset()},reset:function(){_.reset.call(this),this._doReset()},process:function(D){return this._append(D),this._process()},finalize:function(D){D&&this._append(D);var R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function D(R){return typeof R=="string"?S:O}return function(R){return{encrypt:function(P,N,M){return D(N).encrypt(R,P,N,M)},decrypt:function(P,N,M){return D(N).decrypt(R,P,N,M)}}}}()}),i=b.StreamCipher=r.extend({_doFinalize:function(){var D=this._process(!0);return D},blockSize:1}),t=T.mode={},o=b.BlockCipherMode=g.extend({createEncryptor:function(D,R){return this.Encryptor.create(D,R)},createDecryptor:function(D,R){return this.Decryptor.create(D,R)},init:function(D,R){this._cipher=D,this._iv=R}}),c=t.CBC=function(){var D=o.extend();D.Encryptor=D.extend({processBlock:function(P,N){var M=this._cipher,z=M.blockSize;R.call(this,P,N,z),M.encryptBlock(P,N),this._prevBlock=P.slice(N,N+z)}}),D.Decryptor=D.extend({processBlock:function(P,N){var M=this._cipher,z=M.blockSize,X=P.slice(N,N+z);M.decryptBlock(P,N),R.call(this,P,N,z),this._prevBlock=X}});function R(P,N,M){var z,X=this._iv;X?(z=X,this._iv=v):z=this._prevBlock;for(var k=0;k<M;k++)P[N+k]^=z[k]}return D}(),d=T.pad={},f=d.Pkcs7={pad:function(D,R){for(var P=R*4,N=P-D.sigBytes%P,M=N<<24|N<<16|N<<8|N,z=[],X=0;X<N;X+=4)z.push(M);var k=s.create(z,N);D.concat(k)},unpad:function(D){var R=D.words[D.sigBytes-1>>>2]&255;D.sigBytes-=R}},h=b.BlockCipher=r.extend({cfg:r.cfg.extend({mode:c,padding:f}),reset:function(){var D;r.reset.call(this);var R=this.cfg,P=R.iv,N=R.mode;this._xformMode==this._ENC_XFORM_MODE?D=N.createEncryptor:(D=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==D?this._mode.init(this,P&&P.words):(this._mode=D.call(N,this,P&&P.words),this._mode.__creator=D)},_doProcessBlock:function(D,R){this._mode.processBlock(D,R)},_doFinalize:function(){var D,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),D=this._process(!0)):(D=this._process(!0),R.unpad(D)),D},blockSize:128/32}),u=b.CipherParams=g.extend({init:function(D){this.mixIn(D)},toString:function(D){return(D||this.formatter).stringify(this)}}),E=T.format={},x=E.OpenSSL={stringify:function(D){var R,P=D.ciphertext,N=D.salt;return N?R=s.create([1398893684,1701076831]).concat(N).concat(P):R=P,R.toString(a)},parse:function(D){var R,P=a.parse(D),N=P.words;return N[0]==1398893684&&N[1]==1701076831&&(R=s.create(N.slice(2,4)),N.splice(0,4),P.sigBytes-=16),u.create({ciphertext:P,salt:R})}},O=b.SerializableCipher=g.extend({cfg:g.extend({format:x}),encrypt:function(D,R,P,N){N=this.cfg.extend(N);var M=D.createEncryptor(P,N),z=M.finalize(R),X=M.cfg;return u.create({ciphertext:z,key:P,iv:X.iv,algorithm:D,mode:X.mode,padding:X.padding,blockSize:D.blockSize,formatter:N.format})},decrypt:function(D,R,P,N){N=this.cfg.extend(N),R=this._parse(R,N.format);var M=D.createDecryptor(P,N).finalize(R.ciphertext);return M},_parse:function(D,R){return typeof D=="string"?R.parse(D,this):D}}),C=T.kdf={},w=C.OpenSSL={execute:function(D,R,P,N){N||(N=s.random(64/8));var M=l.create({keySize:R+P}).compute(D,N),z=s.create(M.words.slice(R),P*4);return M.sigBytes=R*4,u.create({key:M,iv:z,salt:N})}},S=b.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:w}),encrypt:function(D,R,P,N){N=this.cfg.extend(N);var M=N.kdf.execute(P,D.keySize,D.ivSize);N.iv=M.iv;var z=O.encrypt.call(this,D,R,M.key,N);return z.mixIn(M),z},decrypt:function(D,R,P,N){N=this.cfg.extend(N),R=this._parse(R,N.format);var M=N.kdf.execute(P,D.keySize,D.ivSize,R.salt);N.iv=M.iv;var z=O.decrypt.call(this,D,R,M.key,N);return z}})}()})},OZM5:function(j,W,y){"use strict";y.d(W,"b",function(){return a}),y.d(W,"a",function(){return n}),y.d(W,"k",function(){return l}),y.d(W,"h",function(){return r}),y.d(W,"i",function(){return i}),y.d(W,"g",function(){return t}),y.d(W,"c",function(){return o}),y.d(W,"d",function(){return c}),y.d(W,"j",function(){return h}),y.d(W,"e",function(){return u}),y.d(W,"f",function(){return E});var I=y("KQm4"),v=y("U8pU"),T=y("Ff2n"),b=y("q1tI"),g=y.n(b),s=y("Kwbf"),_=y("WaYH"),p=.25,e=2;function a(x,O){var C=x.slice(),w=C.indexOf(O);return w>=0&&C.splice(w,1),C}function n(x,O){var C=x.slice();return C.indexOf(O)===-1&&C.push(O),C}function l(x){return x.split("-")}function r(x,O){return"".concat(x,"-").concat(O)}function i(x){return x&&x.type&&x.type.isTreeNode}function t(x,O){var C=[x],w=O[x];function S(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];D.forEach(function(R){var P=R.key,N=R.children;C.push(P),S(N)})}return S(w.children),C}function o(x,O){var C=x.clientY,w=O.selectHandle.getBoundingClientRect(),S=w.top,D=w.bottom,R=w.height,P=Math.max(R*p,e);return C<=S+P?-1:C>=D-P?1:0}function c(x,O){if(!x)return;var C=O.multiple;return C?x.slice():x.length?[x[0]]:x}var d=function(O){return O};function f(x,O){if(!x)return[];var C=O||{},w=C.processProps,S=w===void 0?d:w,D=Array.isArray(x)?x:[x];return D.map(function(R){var P=R.children,N=Object(T.a)(R,["children"]),M=f(P,O);return g.a.createElement(_.a,Object.assign({},S(N)),M)})}function h(x){if(!x)return null;var O;if(Array.isArray(x))O={checkedKeys:x,halfCheckedKeys:void 0};else if(Object(v.a)(x)==="object")O={checkedKeys:x.checked||void 0,halfCheckedKeys:x.halfChecked||void 0};else return Object(s.a)(!1,"`checkedKeys` is not an array or an object"),null;return O}function u(x,O){var C=new Set;function w(S){if(C.has(S))return;var D=O[S];if(!D)return;C.add(S);var R=D.parent,P=D.node;if(P.disabled)return;R&&w(R.key)}return(x||[]).forEach(function(S){w(S)}),Object(I.a)(C)}function E(x){var O={};return Object.keys(x).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(O[C]=x[C])}),O}},Ohmc:function(j,W,y){j.exports=y.p+"static/certificate.fc32dc1b.jpg"},OoWo:function(j,W,y){},Ot1p:function(j,W,y){"use strict";var I=y("2qtc"),v=y("kLXV"),T=y("rAM+"),b=y("miYZ"),g=y("tsqr"),s=y("9og8"),_=y("tJVT"),p=y("jrin"),e=y("WmNS"),a=y.n(e),n=y("q1tI"),l=y.n(n),r=y("VrN/"),i=y.n(r),t=y("bdgK"),o=y("p77/"),c=y("Bd2K"),d=y("ELLl"),f=y("19Vz"),h=y("lZu9"),u=y("+NIl"),E=y("kSUc"),x=y("9Bee"),O=function(Je){var ne=Je.value,Qe=ne===void 0?"":ne,dt=Je.className,Ke=Je.showTextOnly,et=Je.showLines,rt=Je.style,bt=rt===void 0?{}:rt,ut=Object(n.useMemo)(function(){return""},[Qe]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},C=y("0Owb"),w=y("dejd"),S=y("C+DQ"),D=y("1vsH"),R=y("m3rI"),P=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function N(Je){var ne=Je.onActionCallback,Qe=Je.title,dt=Je.icon,Ke=Je.actionName,et=Je.className,rt=et===void 0?"":et,bt=Je.children;function ut(){ne(Ke)}return l.a.createElement("a",{title:Qe,className:rt,onClick:ut},l.a.createElement("i",{className:"md-iconfont ".concat(dt)}),bt)}var M=function(Je){var ne=Je.watch,Qe=Je.showNullButton,dt=Je.onActionCallback,Ke=Je.fullScreen,et=Je.insertTemp,rt=Je.hidetoolBar,bt=Je.uuid,ut=Je.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(D.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(D.G)("_educoder_session"),"&key=").concat(bt,"&api=").concat(encodeURIComponent(R.a.PROXY_SERVER)));var ot=[].concat(P,[{title:"".concat(ne?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ne?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!rt&&ot.map(function(Ue,We){return l.a.createElement("li",{key:We},Ue.actionName?l.a.createElement(N,Object(C.a)({},Ue,{onActionCallback:dt})):l.a.createElement("span",{className:"v-line"}))}),Qe?l.a.createElement("li",null,l.a.createElement(N,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,et&&l.a.createElement("li",null,l.a.createElement(N,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(et),onActionCallback:dt},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(N,{icon:"".concat(Ke?"icon-shrink":"icon-enlarge"),title:Ke?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},z=y("M8RZ"),X=y("+L6B"),k=y("2/Rp"),F=y("y8nQ"),U=y("Vl3Y"),L=y("5NDa"),B=y("5rEg"),Z={labelCol:{span:4},wrapperCol:{span:20}},re=function(Je){var ne=Je.callback,Qe=Je.onCancel;function dt(Ke){ne(Ke)}return l.a.createElement(U.a,Object(C.a)({},Z,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:dt}),l.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(B.a,null)),l.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(B.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(k.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(k.a,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},me=y("7ahc"),Ee=y("HmJG"),De=y("BjJ7"),te=U.a.useForm,Ce={width:280,marginRight:10},we={labelCol:{span:5},wrapperCol:{span:19}},ce=function(Je){var ne=Je.callback,Qe=Je.onCancel,dt=te(),Ke=Object(_.a)(dt,1),et=Ke[0];function rt(ot){ne(ot)}function bt(ot,Ue){if(ot.status===-1){g.b.error(ot.message);return}et.setFieldsValue({src:"/api/attachments/".concat(ot.id),type:Ue.type})}function ut(ot){var Ue=ot.target.files[0];oe(Ue,bt)}return l.a.createElement(U.a,Object(C.a)({form:et},we,{className:"upload-image-panel",onFinish:rt}),l.a.createElement(U.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(B.a,{style:Ce})),l.a.createElement(le,{onFileChange:ut}))),l.a.createElement(U.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},l.a.createElement(B.a,{style:{width:264}})),l.a.createElement(U.a.Item,{style:{textAlign:"right"}},l.a.createElement(k.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(k.a,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))};function le(Je){var ne=Je.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:ne}))}function oe(Je,ne){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");var Qe=new FormData;Qe.append("editormd-image-file",Je),Qe.append("file_param_name","editormd-image-file"),Qe.append("byxhr","true");var dt=new window.XMLHttpRequest;dt.withCredentials=!0,dt.addEventListener("load",function(Ke){ne(JSON.parse(Ke.target.responseText),Je)},!1),dt.addEventListener("error",function(Ke){console.error(Ke)},!1),dt.open("POST","".concat(De.a,"/api/attachments.json")),dt.send(Qe)}var xe=y("giR+"),q=y("fyUT"),se=y("7Kak"),Ne=y("9yH6"),de=Ne.a.Group,$={margin:"0 8px"},Q=function(Je){var ne=Je.callback,Qe=Je.onCancel;function dt(Ke){ne(Ke)}return l.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:dt},l.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},l.a.createElement("span",{style:$},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:$},"\u884C\u6570"),l.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(q.a,null)),l.a.createElement("span",{style:$},"\u5217\u6570"),l.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(q.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},l.a.createElement("span",{style:$},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(U.a.Item,{name:"align"},l.a.createElement(de,null,l.a.createElement(Ne.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Ne.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Ne.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Ne.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(k.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(k.a,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},Y=y("ErOA"),ue=y("7Cbv"),ae="link",be="upload-image",Ie="code-block",pe="add-table",Le="------------",ve={default:Le,left:":".concat(Le),center:":".concat(Le,":"),right:"".concat(Le,":")},Xe=y("9VGf"),$e,Ge;function Me(){}var gt=0,Te=1e4,Ye="\u2581",Ze=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ve(Je){return/^\d+$/.test(Je)?"".concat(Je,"px"):Je}var Fe=navigator.platform.toUpperCase().indexOf("MAC")>=0,Be=Fe?"Cmd":"Ctrl",_e=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ae=($e={},Object(p.a)($e,Be+"-B","bold"),Object(p.a)($e,Be+"-I","italic"),$e),fe=(Ge={},Object(p.a)(Ge,ae,"\u6DFB\u52A0\u94FE\u63A5"),Object(p.a)(Ge,Ie,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(p.a)(Ge,be,"\u6DFB\u52A0\u6587\u4EF6"),Object(p.a)(Ge,pe,"\u6DFB\u52A0\u8868\u683C"),Ge),ke=W.a=function(Je){var ne=Je.defaultValue,Qe=ne===void 0?"":ne,dt=Je.onChange,Ke=Je.width,et=Ke===void 0?"100%":Ke,rt=Je.height,bt=rt===void 0?400:rt,ut=Je.miniToolbar,ot=ut===void 0?!1:ut,Ue=Je.isFocus,We=Ue===void 0?!1:Ue,ft=Je.watch,nt=Je.insertTemp,Dt=Je.mode,Kt=Dt===void 0?"markdown":Dt,vt=Je.id,Ht=vt===void 0?"markdown-editor-id":vt,Ft=Je.showResizeBar,Lt=Ft===void 0?!1:Ft,zt=Je.noStorage,Qt=zt===void 0?!1:zt,bn=Je.showNullButton,Zt=bn===void 0?!1:bn,$t=Je.hidetoolBar,Zn=$t===void 0?!1:$t,Fn=Je.fullScreen,Hn=Fn===void 0?!1:Fn,Yn=Je.onBlur,jn=Je.onCMBeforeChange,or=Je.onFullScreen,jr=Je.className,qt=jr===void 0?"":jr,wn=Je.disablePaste,Kr=wn===void 0?!1:wn,Li=Je.placeholder,Mr=Li===void 0?"":Li,Qn=Je.values,ge=Qn===void 0?"":Qn,V=Object(n.useState)(null),J=Object(_.a)(V,2),ie=J[0],Re=J[1],he=Object(n.useState)(Qe),it=Object(_.a)(he,2),Ut=it[0],Jt=it[1],an=Object(n.useState)(ft),Pt=Object(_.a)(an,2),cn=Pt[0],Rn=Pt[1],Jn=Object(n.useState)(Hn),ir=Object(_.a)(Jn,2),tr=ir[0],fr=ir[1],Dr=Object(n.useState)(""),Yi=Object(_.a)(Dr,2),oi=Yi[0],di=Yi[1],_a=Object(n.useState)(0),Si=Object(_.a)(_a,2),ga=Si[0],mo=Si[1],ao=Object(n.useState)(bt),yo=Object(_.a)(ao,2),Ia=yo[0],Za=yo[1],Ri=Object(n.useState)(!1),ri=Object(_.a)(Ri,2),hi=ri[0],Mi=ri[1],Nr=Object(n.useRef)(Object(ue.a)()),Ar=Object(n.useRef)(!1),fi=Object(n.useRef)(),wr=Object(n.useRef)(),vi=Object(n.useRef)(),pr=Object(n.useRef)(),ta=Object(n.useRef)(),Qi=function(){var ar=Object(s.a)(a.a.mark(function yr(){var nr,Fr;return a.a.wrap(function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:return Ci.next=2,Object(Y.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Nr.current}});case 2:Fr=Ci.sent,Fr!=null&&(nr=Fr.attachments)!==null&&nr!==void 0&&nr.length&&(console.log("cm:",ie,wr),Fr.attachments.map(function(Or){Or.content_type.indexOf("image")>-1?ie.replaceSelection("![,](/api/attachments/".concat(Or.id,"?type=").concat(Or.content_type,")")):Or.content_type.indexOf("video")>-1?ie.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):Or.content_type.indexOf("pdf")>-1?ie.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Or.id,"?type=").concat(Or.content_type,'&disposition=inline" target="_blank">').concat(Or.name,"</a>")):ie.replaceSelection("[".concat(Or.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(Or.id,"?type=").concat(Or.content_type,")"))}));case 4:case"end":return Ci.stop()}},yr)}));return function(){return ar.apply(this,arguments)}}();Object(n.useEffect)(function(){Jt(ge),ie==null||ie.setValue(ge)},[ge]),Object(n.useEffect)(function(){or==null||or(tr)},[tr]),Object(n.useEffect)(function(){if(wr.current){var ar=i.a.fromTextArea(wr.current,{mode:Kt,lineNumbers:!ot,lineWrapping:!0,value:Qe,autoCloseTags:!0,autoCloseBrackets:!0});We&&ar.focus();function yr(nr,Fr){if(Kr){Fr.preventDefault();return}var si=Fr.clipboardData;if(si){var Ci=si.types.toString(),Or=si.items;if(Ci==="Files"||si.types.indexOf("Files")>-1){if(Fr.preventDefault(),Kt=="stex")return;try{var na,Ea=Or[1];((na=Or[0])===null||na===void 0?void 0:na.kind)==="file"&&(Ea=Or[0]);var Wr=Ea.getAsFile(),$a=Wr.name.split(".").pop();oe(Wr,function(_i){if(_i.id){var da,xa,Wa;(Wr==null||((da=Wr.type)===null||da===void 0)?void 0:da.indexOf("image"))>-1?ar.replaceSelection("![,](/api/attachments/".concat(_i.id,"?type=").concat(_i.content_type,")")):(Wr==null||((xa=Wr.type)===null||xa===void 0)?void 0:xa.indexOf("video"))>-1?ar.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,'"></video>')):(Wr==null||((Wa=Wr.type)===null||Wa===void 0)?void 0:Wa.indexOf("pdf"))>-1?ar.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,"?type=").concat(Wr.type,'&disposition=inline" target="_blank">').concat(Wr.name,"</a>")):_e.includes($a)?ar.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,'?type=office&disposition=inline" target="_blank">').concat(Wr.name,"</a>")):ar.replaceSelection("[".concat(Wr.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,"?type=").concat(_i.content_type,")"))}else(_i==null?void 0:_i.status)===401&&(document.location.href="/user/login")})}catch(_i){g.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return ar.on("paste",yr),ar.on("dragleave",function(nr,Fr){vi.current.classList.remove("mouse-hover-md")}),ar.on("dragover",function(nr,Fr){vi.current.classList.add("mouse-hover-md")}),ar.on("drop",function(nr,Fr){vi.current.classList.add("mouse-hover-md");var si;if(si=Fr.dataTransfer.files,si.length>0){Fr.preventDefault(),Fr.stopPropagation();for(var Ci=function(Ea){var Wr=si[Ea],$a=Wr.name.split(".").pop();oe(Wr,function(_i){if(_i.id){var da,xa,Wa;(Wr==null||((da=Wr.type)===null||da===void 0)?void 0:da.indexOf("image"))>-1?ar.replaceSelection("![,](/api/attachments/".concat(_i.id,"?type=").concat(_i.content_type,")")):(Wr==null||((xa=Wr.type)===null||xa===void 0)?void 0:xa.indexOf("video"))>-1?ar.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,'"></video>')):(Wr==null||((Wa=Wr.type)===null||Wa===void 0)?void 0:Wa.indexOf("pdf"))>-1?ar.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,"?type=").concat(Wr.type,'&disposition=inline" target="_blank">').concat(Wr.name,"</a>")):_e.includes($a)?ar.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,'?type=office&disposition=inline" target="_blank">').concat(Wr.name,"</a>")):ar.replaceSelection("[".concat(Wr.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(_i.id,"?type=").concat(_i.content_type,")"))}else(_i==null?void 0:_i.status)===401&&(document.location.href="/user/login")})},Or=0;Or<si.length;Or++)Ci(Or)}}),Re(ar),function(){ar.off("paste",yr)}}},[]);var ea=Object(n.useCallback)(function(){if(vi.current)try{}catch(ar){console.log(ar,"---- to set md editor body height")}},[Ia,vi,tr]);Object(n.useEffect)(function(){function ar(){var nr=new t.default(function(Fr){var si=Object(T.a)(Fr),Ci;try{for(si.s();!(Ci=si.n()).done;){var Or=Ci.value;(Or.target.offsetHeight>0||Or.target.offsetWidth>0)&&(ea(),ie.setSize("100%","100%"),ie.refresh())}}catch(na){si.e(na)}finally{si.f()}});return nr.observe(wr.current.parentElement),nr}if(ie){var yr=ar();return function(){yr.unobserve(wr.current.parentElement)}}},[ie,ea]),Object(n.useEffect)(function(){if(ie){for(var ar=[],yr=function(){var Or=Fr[nr];si=Object(_.a)(Or,2);var na=si[0],Ea=si[1],Wr=Object(p.a)({},na,function(){Eo(Ea)});ar.push(Wr),ie.addKeyMap(Wr)},nr=0,Fr=Object.entries(Ae);nr<Fr.length;nr++){var si;yr()}return fi.current=setInterval(function(){Ar.current&&Qi()},4e3),function(){clearInterval(fi.current);var Ci=Object(T.a)(ar),Or;try{for(Ci.s();!(Or=Ci.n()).done;){var na=Or.value;ie.removeKeyMap(na)}}catch(Ea){Ci.e(Ea)}finally{Ci.f()}}}},[ie]),Object(n.useEffect)(function(){Hn!==tr&&fr(Hn)},[Hn]),Object(Xe.a)(function(){if(!Qt&&ga>0){var ar=new Date().getTime(),yr=window.sessionStorage.getItem(Ht);ar>=ga+Te&&(!yr||yr!==Ut)&&(window.sessionStorage.setItem(Ht,Ut),Mi(!0))}},Te),Object(n.useEffect)(function(){Rn(ft)},[ie,ft]),Object(n.useEffect)(function(){ie&&(We&&ie.focus())},[ie,We]),Object(n.useEffect)(function(){if(cn&&ie){var ar=ie.getScrollerElement();function yr(nr){var Fr=nr.target;if(ta.current){var si=Fr.scrollTop/Fr.scrollHeight;ta.current.scrollTop=ta.current.scrollHeight*si}}return ar.addEventListener("scroll",yr),function(){ar.removeEventListener("scroll",yr)}}},[ie,cn]),Object(n.useEffect)(function(){if(ie&&jn){function ar(yr,nr){jn(yr,nr)}return ie.on("beforeChange",ar),function(){ie.off("beforeChange",ar)}}},[ie,jn]),Object(n.useEffect)(function(){if(ie&&Yn){function ar(){Yn(ie.getValue())}return ie.on("blur",ar),function(){ie.off("blur",ar)}}},[ie,Yn]),Object(n.useEffect)(function(){if(ie){function ar(yr){var nr=yr.getValue();Jt(nr),mo(new Date().getTime()),yr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),dt&&dt(nr)}return ie.on("change",ar),function(){ie.off("change",ar)}}},[ie,dt]),Object(n.useEffect)(function(){ie&&(Qe==null?(ie.setValue(""),Jt("")):Qe!==ie.getValue()&&(ie.setValue(Qe),Jt(Qe),ie.setCursor(ie.lineCount(),0)))},[ie,Qe]);var Eo=Object(n.useCallback)(function(ar){var yr=ie.getCursor(),nr=ie.getSelection(),Fr=nr.split(`
`);switch(ar){case"bold":return ie.replaceSelection("**"+nr+"**"),nr===""&&ie.setCursor(yr.line,yr.ch+2),ie.focus();case"italic":return ie.replaceSelection("*"+nr+"*"),nr===""&&ie.setCursor(yr.line,yr.ch+1),ie.focus();case"code":return ie.replaceSelection("`"+nr+"`"),nr===""&&ie.setCursor(yr.line,yr.ch+1),ie.focus();case"inline-latex":return ie.replaceSelection("`$$"+nr+"$$`"),nr===""&&ie.setCursor(yr.line,yr.ch+3),ie.focus();case"latex":return ie.replaceSelection("```latex\n"+nr+"\n```"),ie.setCursor(yr.line+1,nr.length+1),ie.focus();case"line-break":return ie.replaceSelection(`<br/>
`),ie.focus();case"list-ul":return nr===""?ie.replaceSelection("- "+nr):ie.replaceSelection(Fr.map(function(si){return si===""?"":"- ".concat(si)}).join(`
`)),ie.focus();case"list-ol":return nr===""?ie.replaceSelection("1. "+nr):ie.replaceSelection(Fr.map(function(si,Ci){return si===""?"":"".concat(Ci+1,". ").concat(si)}).join(`
`)),ie.focus();case"add-null-ch":return nr===""&&ie.setCursor(yr.line,yr.ch+1),ie.replaceSelection(Ye),ie.focus();case"inster-template-1":return nr===""&&ie.setCursor(yr.line,yr.ch),ie.replaceSelection(Ze),ie.focus();case"eraser":return ie.setValue(""),ie.focus();case"trigger-watch":return Rn(!cn),ie.focus();case"trigger-full-screen":return fr(!tr),ie.focus();case ae:di(ae);return;case Ie:di(Ie);return;case be:di(be);return;case pe:di(pe);return;default:throw new Error}},[ie,cn,tr]),ca=Object(n.useCallback)(function(ar){di("");switch(oi){case ae:var yr=ar.title,nr=ar.link;return ie.replaceSelection("[".concat(yr,"](").concat(nr,")")),ie.focus();case Ie:var Fr=ar.language,si=ar.content;return ie.replaceSelection(["```"+Fr,si,"```"].join(`
`)),ie.focus();case be:var Ci=ar.src,Or=ar.alt;return Or?ie.replaceSelection("![ ".concat(Or," ]( ").concat(Ci,' "').concat(Or,'" )')):ie.replaceSelection("![,](".concat(Ci,")")),ie.focus();case pe:for(var na=ar.row,Ea=ar.col,Wr=ar.align,$a=`
`,_i=0;_i<na;_i++){for(var da=[],xa=[],Wa=0;Wa<Ea;Wa++)_i===1&&xa.push(ve[Wr]),da.push(" ");_i===1&&($a+="| ".concat(xa.join(" | "),` |
`)),$a+="| ".concat(da.join(Ea===1?"":" | "),` |
`)}return ie.replaceSelection($a+`
`),ie.focus();default:throw new Error}},[ie,oi]),qa=Object(n.useMemo)(function(){switch(oi){case ae:return l.a.createElement(re,{callback:ca,onCancel:ja});case Ie:return l.a.createElement(me.b,{callback:ca,onCancel:ja});case be:return l.a.createElement(ce,{callback:ca,onCancel:ja});case pe:return l.a.createElement(Q,{callback:ca,onCancel:ja});default:return null}},[oi]);function ja(){di("")}Object(n.useEffect)(function(){if(pr.current){var ar=pr.current,yr=!1,nr=0;function Fr(Or){yr=!0,nr=Or.pageY}function si(){yr=!1}function Ci(Or){if(yr){var na=Or.pageY-nr;na<0&&(na=0),na>300&&(na=300);var Ea=bt+na+"px";Za(Ea)}}return ar.addEventListener("mousedown",Fr),document.addEventListener("mousemove",Ci),document.addEventListener("mouseup",si),function(){ar.removeEventListener("mousedown",Fr),document.removeEventListener("mousemove",Ci),document.removeEventListener("mouseup",si)}}},[ie,pr]),Object(n.useEffect)(function(){Za(bt)},[bt]);var Ba=Ve(et),Ka=Ve(Ia),Ha={width:Ba,height:Ka},Mo=Object(n.useMemo)(function(){if(ga){var ar=new Date(ga),yr=ar.getHours(),nr=ar.getMinutes(),Fr=ar.getSeconds();return yr=yr<10?"0"+yr:yr,nr=nr<10?"0"+nr:nr,Fr=Fr<10?"0"+Fr:Fr,"".concat(yr,":").concat(nr,":").concat(Fr)}return 0},[ga]);function Oo(){window.sessionStorage.removeItem(Ht),Mi(!1),mo(0)}function Ra(){Mi(!1),mo(0),ie.setValue(window.sessionStorage.getItem(Ht))}function Vo(ar,yr){var nr=ie.getValue();nr=nr.replace(ar,yr),Jt(nr),ie==null||ie.setValue(nr)}return l.a.createElement(n.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:vi},l.a.createElement("div",{className:"markdown-editor-container ".concat(qt," ").concat(cn?"on-preview":""," ").concat(ot?"mini":""," ").concat(tr?"full-screen":""),style:Ha},l.a.createElement(M,{insertTemp:nt,watch:cn,fullScreen:tr,showNullButton:Zt,onActionCallback:Eo,hidetoolBar:Zn,uuid:Nr.current,setOpenPhones:function(){Ar.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:wr,placeholder:Mr})),cn?l.a.createElement("div",{ref:ta,className:"preview-container"},Kt==="stex"&&l.a.createElement(O,{value:Ut}),Kt!=="stex"&&l.a.createElement(x.a,{edit:!0,value:Ut,replaces:Vo})):null))),Lt?l.a.createElement("a",{ref:pr,className:"editor-resize"}):null,l.a.createElement(z.a,null,fe[oi]?l.a.createElement(v.a,{centered:!0,title:fe[oi],visible:!0,onCancel:ja,footer:null,className:"markdown-popup-form"},qa):null))}},P2ho:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};W.default=I},P5Jw:function(j,W,y){"use strict";var I=y("rHrb"),v=I.CopyToClipboard;v.CopyToClipboard=v,j.exports=v},PD8m:function(j,W){j.exports={name:"memoryStorage",read:I,write:v,each:T,remove:b,clearAll:g};var y={};function I(s){return y[s]}function v(s,_){y[s]=_}function T(s){for(var _ in y)y.hasOwnProperty(_)&&s(y[_],_)}function b(s){delete y[s]}function g(s){y={}}},PVpz:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.StreamCipher,g=v.algo,s=[],_=[],p=[],e=g.RabbitLegacy=b.extend({_doReset:function(){var n=this._key.words,l=this.cfg.iv,r=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],i=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var t=0;t<4;t++)a.call(this);for(var t=0;t<8;t++)i[t]^=r[t+4&7];if(l){var o=l.words,c=o[0],d=o[1],f=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,h=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,u=f>>>16|h&4294901760,E=h<<16|f&65535;i[0]^=f,i[1]^=u,i[2]^=h,i[3]^=E,i[4]^=f,i[5]^=u,i[6]^=h,i[7]^=E;for(var t=0;t<4;t++)a.call(this)}},_doProcessBlock:function(n,l){var r=this._X;a.call(this),s[0]=r[0]^r[5]>>>16^r[3]<<16,s[1]=r[2]^r[7]>>>16^r[5]<<16,s[2]=r[4]^r[1]>>>16^r[7]<<16,s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)s[i]=(s[i]<<8|s[i]>>>24)&16711935|(s[i]<<24|s[i]>>>8)&4278255360,n[l+i]^=s[i]},blockSize:128/32,ivSize:64/32});function a(){for(var n=this._X,l=this._C,r=0;r<8;r++)_[r]=l[r];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<_[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<_[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<_[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<_[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<_[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<_[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<_[6]>>>0?1:0)|0,this._b=l[7]>>>0<_[7]>>>0?1:0;for(var r=0;r<8;r++){var i=n[r]+l[r],t=i&65535,o=i>>>16,c=((t*t>>>17)+t*o>>>15)+o*o,d=((i&4294901760)*i|0)+((i&65535)*i|0);p[r]=c^d}n[0]=p[0]+(p[7]<<16|p[7]>>>16)+(p[6]<<16|p[6]>>>16)|0,n[1]=p[1]+(p[0]<<8|p[0]>>>24)+p[7]|0,n[2]=p[2]+(p[1]<<16|p[1]>>>16)+(p[0]<<16|p[0]>>>16)|0,n[3]=p[3]+(p[2]<<8|p[2]>>>24)+p[1]|0,n[4]=p[4]+(p[3]<<16|p[3]>>>16)+(p[2]<<16|p[2]>>>16)|0,n[5]=p[5]+(p[4]<<8|p[4]>>>24)+p[3]|0,n[6]=p[6]+(p[5]<<16|p[5]>>>16)+(p[4]<<16|p[4]>>>16)|0,n[7]=p[7]+(p[6]<<8|p[6]>>>24)+p[5]|0}v.RabbitLegacy=b._createHelper(e)}(),I.RabbitLegacy})},Plam:function(j,W,y){"use strict";var I=y("giR+"),v=y("fyUT"),T=y("2qtc"),b=y("kLXV"),g=y("DjyN"),s=y("NUBc"),_=y("+L6B"),p=y("2/Rp"),e=y("9og8"),a=y("tJVT"),n=y("k1fw"),l=y("WmNS"),r=y.n(l),i=y("q1tI"),t=y.n(i),o=y("8Abk"),c=y("IxHN"),d=y("M8RZ"),f=y("BdwD"),h=y("cWXX"),u=y("/ezw"),E=y("14J3"),x=y("BMrR"),O=y("jCWc"),C=y("kPKH"),w=y("Q9mQ"),S=y("diRs"),D=y("y8nQ"),R=y("Vl3Y"),P=y("9kvl"),N=y("dhSg"),M=y("mCJh"),z=y("lzim"),X=function(be){var Ie=be.pathsList,pe=be.dispatch,Le=R.a.useForm(),ve=Object(a.a)(Le,1),Xe=ve[0],$e=Object(i.useState)(),Ge=Object(a.a)($e,2),Me=Ge[0],gt=Ge[1],Te=Object(i.useState)(!0),Ye=Object(a.a)(Te,2),Ze=Ye[0],Ve=Ye[1],Fe=Object(i.useState)(!1),Be=Object(a.a)(Fe,2),_e=Be[0],Ae=Be[1],fe=Object(i.useState)({}),ke=Object(a.a)(fe,2),Je=ke[0],ne=ke[1],Qe=Object(i.useState)({keyword:Je,robot:!0,page:1}),dt=Object(a.a)(Qe,2),Ke=dt[0],et=dt[1];Object(i.useEffect)(function(){N.a.subscribe("ai-replay-show",function(ot){ne(ot),Ae(!0)})},[]),Object(i.useEffect)(function(){Je!=null&&Je.id&&rt()},[Je]);var rt=function(){var ot=Object(e.a)(r.a.mark(function Ue(We){var ft;return r.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Ve(!0),Dt.next=3,Object(M.a)(Object(n.a)(Object(n.a)({},Ke),{},{keyword:Je==null?void 0:Je.content,id:Je==null?void 0:Je.id}));case 3:ft=Dt.sent,Ve(!1),ft!=null&&ft.data&&(Ke.page++,et(Object(n.a)({},Ke)),gt(ft==null?void 0:ft.data));case 6:case"end":return Dt.stop()}},Ue)}));return function(We){return ot.apply(this,arguments)}}(),bt=function(){var ot=Object(e.a)(r.a.mark(function Ue(){return r.a.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:rt();case 1:case"end":return ft.stop()}},Ue)}));return function(){return ot.apply(this,arguments)}}(),ut=t.a.createElement("div",null,t.a.createElement("img",{src:z.s,width:150}));return t.a.createElement(t.a.Fragment,null,t.a.createElement(b.a,{title:"\u5176\u4ED6\u56DE\u7B54",mask:!0,visible:_e,okText:"\u6362\u4E00\u6362",cancelText:"",onOk:bt,width:800,height:500,footer:t.a.createElement(x.a,{align:"middle",justify:"center"},t.a.createElement(C.a,{className:"tc"},t.a.createElement(p.a,{type:"primary",onClick:rt},"\u6362\u4E00\u6362"),t.a.createElement(S.a,{content:ut,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A"},t.a.createElement(p.a,{type:"dashed"},"\u4EBA\u5DE5\u670D\u52A1")))),onCancel:function(){Ae(!1)}},t.a.createElement("aside",{style:{minHeight:300}},t.a.createElement(x.a,null,t.a.createElement(u.a,{loading:Ze},Me==null?void 0:Me.map(function(ot){return t.a.createElement(C.a,{style:{background:"#e9f3f1",padding:"8px 20px",marginBottom:10,borderRadius:20},span:24},ot.text)}),!(Me!=null&&Me.length)&&t.a.createElement("div",{style:{width:"100%",textAlign:"center"}},t.a.createElement("br",null),t.a.createElement("img",{src:z.s,width:150}),t.a.createElement("br",null),t.a.createElement("br",null),"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A"))))))},k=Object(P.a)(function(ae){var be=ae.pathsList;return{pathsList:be}})(X),F=y("fXAG"),U=y("5Dmo"),L=y("3S7+"),B=y("m3rI"),Z=y("9Bee"),re=y("Ypxr"),me=y("AMnG"),Ee=y("kaH+"),De=y("xKgJ"),te=y("dPi7"),Ce=y.n(te),we=y("SzL9"),ce=y.n(we),le=y("MAU4"),oe=y.n(le),xe=y("n0Id"),q=y.n(xe),se=y("Ty5D");function Ne(ae){var be=ae.data,Ie=ae.index,pe=ae.adminOrOperator,Le=ae.parentDiscussIndex,ve=ae.shixunIdentifier,Xe=ae.user,$e=ae.onSetRewardData,Ge=ae.onSetActionType,Me=ae.onHandleSubmitDiscusses,gt=ae.onTopOrDownDiscuss,Te=ae.handleChildrenPlus,Ye=ae.anserAuthor,Ze=ae.onPlus,Ve=ae.onHandleRepaly,Fe=ae.userInfomation,Be=be.author,_e=be.can_delete,Ae=be.content,fe=be.hidden,ke=be.id,Je=be.reward,ne=be.time,Qe=be.reply_status,dt=be.user_praise,Ke=be.praise_count,et=Object(i.useState)(!1),rt=Object(a.a)(et,2),bt=rt[0],ut=rt[1],ot=Object(i.useState)(!1),Ue=Object(a.a)(ot,2),We=Ue[0],ft=Ue[1],nt=Object(i.useState)(!1),Dt=Object(a.a)(nt,2),Kt=Dt[0],vt=Dt[1],Ht=Object(i.useState)(!1),Ft=Object(a.a)(Ht,2),Lt=Ft[0],zt=Ft[1],Qt=function(){if(!bt)return;Me(ke,{reply_status:2})},bn=function(){if(!We)return;Me(ke,{reply_status:3})},Zt=function(){Me(ke,{reply_status:1})},$t=function(){Me(ke,{reply_status:4})},Zn=function(){switch(Qe){case 0:return t.a.createElement(t.a.Fragment,null,t.a.createElement("div",{onClick:Zt,className:"whether-satisfied ".concat(Kt?"cursorPoint blue-text-color":""),onMouseEnter:function(){vt(!0)},onMouseLeave:function(){vt(!1)}},t.a.createElement("img",{src:Kt?ce.a:Ce.a,className:"whether-img SVGColor"}),"\u6EE1\u610F"),t.a.createElement(S.a,{placement:"bottomLeft",content:t.a.createElement("div",{className:"content"},t.a.createElement("div",{className:"content-disappoint"},"\u62B1\u6B49\u8BA9\u4F60\u5931\u671B\u4E86\uFF0C\u8BF7\u7EE7\u7EED\u5C1D\u8BD5:"),t.a.createElement("div",{className:"radius-box marg15 height30-line black6c-optcity ".concat(bt?"blue-background cursorPoint blue-background-write":"gray-background"),onMouseEnter:function(){ut(!0)},onMouseLeave:function(){ut(!1)},onClick:Qt},"\u8BF7",Be==null?void 0:Be.name.trim(),"\u8001\u5E08\u518D\u5C1D\u8BD5\u56DE\u7B54\u4E00\u6B21\u3002"),t.a.createElement("div",{className:"radius-box marg15 height30-line black6c-optcity ".concat(We?"blue-background cursorPoint blue-background-write":"gray-background"),onMouseEnter:function(){ft(!0)},onMouseLeave:function(){ft(!1)},onClick:bn},"\u53EF\u80FD\u542F\u7528\u4E86\u673A\u5668\u4EBA\uFF0C\u8BF7\u5176\u4ED6\u8001\u5E08\u56DE\u7B54\u3002")),trigger:"click"},t.a.createElement("div",{className:"whether-satisfied ".concat(Lt?"cursorPoint blue-text-color":""),onMouseEnter:function(){zt(!0)},onMouseLeave:function(){zt(!1)}},t.a.createElement("img",{src:Lt?q.a:oe.a,className:"whether-img SVGColor"}),"\u4E0D\u6EE1\u610F")));case 1:return t.a.createElement("div",{className:"radius-box cursorPoint height30 ".concat(Ie>0?"gray-background":"blue-background"),onClick:$t},"\u6211\u5F88\u6EE1\u610F");case 2:return t.a.createElement("div",{className:"radius-box height30 ".concat(Ie>0?"gray-background":"blue-background")},"\u4E0D\u6EE1\u610F \u7B49\u5F85\u8001\u5E08\u518D\u6B21\u56DE\u7B54");case 3:return t.a.createElement("div",{className:"radius-box height30 ".concat(Ie>0?"gray-background":"blue-background")},"\u4E0D\u6EE1\u610F \u7B49\u5F85\u5176\u4ED6\u8001\u5E08\u518D\u6B21\u56DE\u7B54");case 4:return t.a.createElement("div",{className:"radius-box height30 ".concat(Ie>0?"gray-background":"blue-background")},"\u6211\u5F88\u6EE1\u610F");default:return t.a.createElement(t.a.Fragment,null)}};function Fn(){$e({id:ke,index:Ie,user_id:Be.user_id,parentDiscussIndex:Le})}function Hn(){Ge({id:ke,index:Ie,params:{hidden:fe?"0":"1",container_identifier:ve},type:"hidden-discuss",parentDiscussIndex:Le,message:fe?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function Yn(){Ge({id:ke,index:Ie,type:"delete-discuss",parentDiscussIndex:Le,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}var jn=function(){Ve(ke,!dt,Le,Ie)},or=pe||_e||Be.user_id===Xe.user_id||Be.login===Xe.login,jr=Object(se.h)().pathname.split("/")[1]==="tasks";return t.a.createElement(t.a.Fragment,null,t.a.createElement("div",{className:"second-level-discuss"},t.a.createElement("div",{className:"discuss-info-body"},t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(Be.login),target:"_blank"},Be.name),t.a.createElement("span",{className:"grey"},ne),Je?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Je)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,Je)):null)),t.a.createElement(Z.a,{className:"discuss-content ".concat(Ie>0?"content-gray":""),value:Ae})),jr&&t.a.createElement("div",{className:"btn-group-succes"},t.a.createElement("div",{className:"btn-group-gratify"},Zn()),t.a.createElement("div",{className:"btn-group-other"},t.a.createElement("div",{className:"discuss-info-body"},t.a.createElement("div",{className:"btn-group"},Xe.identity===1?t.a.createElement("a",{onClick:Fn,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,pe?t.a.createElement("a",{onClick:Hn,title:fe?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:fe?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,or?t.a.createElement("a",{onClick:Yn,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})):null,t.a.createElement("a",{onClick:jn,className:dt?"c-orange":""},t.a.createElement("i",{className:dt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),t.a.createElement("span",null,Ke||"")))))))}var de=function(ae){var be=ae.data,Ie=ae.index,pe=ae.shixunIdentifier,Le=ae.adminOrOperator,ve=ae.identity,Xe=ae.onTopOrDownDiscuss,$e=ae.onPlusDiscuss,Ge=ae.onDisableDiscuss,Me=ae.onSetActionType,gt=ae.onSetRewardData,Te=ae.user,Ye=ae.activeDiscussIndex,Ze=ae.onReplyDiscuss,Ve=ae.onSetActiveDiscussIndex,Fe=ae.allowDisableDiscuss,Be=ae.onHandleSubmitDiscusses,_e=ae.onHandleRepaly,Ae=ae.userInfomation,fe=be.content,ke=be.children,Je=be.game_url,ne=be.hidden,Qe=be.id,dt=be.position,Ke=be.praise_count,et=be.reward,rt=be.sticky,bt=be.time,ut=be.user_praise,ot=be.game_passed,Ue=be.ai_reply_text,We=be.ai_reply_flag,ft=be.author,nt=be.disable_discuss_status,Dt=be.reply_status,Kt=Object(i.useState)(!1),vt=Object(a.a)(Kt,2),Ht=vt[0],Ft=vt[1];Object(i.useEffect)(function(){Ht&&setTimeout(function(){return Ft(!1)},800)},[Ht]);function Lt(){var Hn;if(!((Hn=Object(De.x)())!==null&&Hn!==void 0&&Hn.authentication)){b.a.confirm({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u9700\u8981\u901A\u8FC7\u5B9E\u540D\u9A8C\u8BC1\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u8BC4\u8BBA\u64CD\u4F5C",okText:"\u524D\u5F80\u5B9E\u540D\u9A8C\u8BC1",cancelText:"\u53D6\u6D88",onOk:function(){window.open("/account/certification")}});return}console.log(Qe,"idi---------------------------"),Ve(Qe)}function zt(){Xe(Qe,!rt,Ie)}function Qt(){$e(Qe,!ut,Ie)}function bn(){gt({id:Qe,index:Ie,user_id:ft.user_id})}function Zt(){Me({id:Qe,index:Ie,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function $t(){Me({id:Qe,index:Ie,params:{hidden:ne?"0":"1",container_identifier:pe},type:"hidden-discuss",message:ne?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function Zn(){Ge(Qe,nt===0?2:0,Ie)}var Fn=function(Yn){var jn=Yn.target,or=jn.nodeName,jr=jn.src;or==="IMG"&&(N.a.publish("preview-image",jr),console.log("src:",jr))};return t.a.createElement("div",{className:"discuss-item-container",key:Qe},t.a.createElement("a",{href:"/users/".concat(ft.login),target:"_blank"},t.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(B.a.IMG_SERVER,"/images/").concat(ft.image_url),width:"50"})),t.a.createElement("section",null,t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(ft.login),target:"_blank"},ft.name),t.a.createElement("span",{className:"grey"},bt),dt?t.a.createElement("span",{className:"c-green"}," [\u7B2C",dt,"\u5173] "):null,Je?t.a.createElement("a",{href:Je,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,Fe&&t.a.createElement(t.a.Fragment,null,nt===0&&t.a.createElement(L.a,{title:"\u7981\u6B62\u8BE5\u7528\u6237\u5728\u6B64\u9879\u76EE\u7684\u8BC4\u8BBA\u529F\u80FD"},t.a.createElement("span",{onClick:Zn,className:"c-red current"},"\u7981\u6B62\u8BC4\u8BBA\u529F\u80FD")),nt===2&&t.a.createElement(L.a,{title:"\u6062\u590D\u8BE5\u7528\u6237\u5728\u6B64\u5B9E\u8DF5\u9879\u76EE\u7684\u8BC4\u8BBA\u529F\u80FD"},t.a.createElement("span",{onClick:Zn,className:"c-light-primary current"},"\u6062\u590D\u8BC4\u8BBA\u529F\u80FD")),nt===1&&t.a.createElement(L.a,{title:"\u8BE5\u7528\u6237\u5DF2\u88AB\u7CFB\u7EDF\u7BA1\u7406\u5458\u7981\u8A00"},t.a.createElement("span",{className:"c-red"},"\u88AB\u7BA1\u7406\u5458\u7981\u6B62\u8BC4\u8BBA"))),rt?t.a.createElement("span",{className:"top"},"\u7F6E\u9876"):null,et?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(et)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,et)):null,ve<=5?t.a.createElement("span",{style:{flex:"1",textAlign:"right",color:ot===1?"#29bd8b":""}},ot===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173"):null),t.a.createElement("div",{onClick:Fn},t.a.createElement(Z.a,{className:"discuss-content",value:fe})),We&&t.a.createElement("div",{style:{padding:10,borderRadius:4,background:"#f4f4f4"}},t.a.createElement("br",null),t.a.createElement("div",{style:{padding:"6px 0"}},Ue),t.a.createElement(p.a,{style:{background:"#d1e5f9",borderRadius:25,border:"none",display:"inline-flex",justifyItems:"center",alignItems:"center"},onClick:function(){return Ft(!0)},className:"mr10 mr5 relative c-blue"},t.a.createElement("span",{className:Ht?"plus-one-animate":"hide",style:{position:"absolute"}}," ","+1"),t.a.createElement("span",{className:"c-blue icon-duiwoyouyong mr5"}),t.a.createElement("span",{className:"c-blue"},"\u5BF9\u6211\u6709\u7528")),t.a.createElement("span",{className:"c-orange current",onClick:function(){N.a.publish("ai-replay-show",{content:fe,id:Qe})}},"\u5176\u4ED6\u56DE\u7B54")),ke&&ke.length>0?t.a.createElement("div",{className:"reply-discuss-containerActive",onClick:Fn},ke.map(function(Hn,Yn){return t.a.createElement(Ne,{key:Hn.id,data:Hn,index:Yn,userInfomation:Ae,onTopOrDownDiscuss:Xe,shixunIdentifier:pe,onHandleSubmitDiscusses:Be,adminOrOperator:Le,user:Te,onSetRewardData:gt,onSetActionType:Me,parentDiscussIndex:Ie,anserAuthor:ft,onHandleRepaly:_e})})):null,t.a.createElement("div",{className:"btn-group"},t.a.createElement("div",{className:"btn-group-other"},Te.identity===1?t.a.createElement("a",{onClick:bn,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Le?t.a.createElement("a",{onClick:$t,title:ne?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:ne?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,ve<=5?t.a.createElement("a",{onClick:zt,className:rt?"btn-top":"btn-down",title:rt?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"},t.a.createElement("i",{className:"iconfont icon-zhiding1 "})):null,Le&&(!ke||ke.length==0)?t.a.createElement("a",{onClick:Zt,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})):null,t.a.createElement("a",{onClick:Lt,title:"\u56DE\u590D"},t.a.createElement("i",{className:"iconfont icon-huifu1"})),t.a.createElement("a",{onClick:Qt,className:ut?"c-orange":""},t.a.createElement("i",{className:ut?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),t.a.createElement("span",null,Ke||"")))),t.a.createElement(me.a,{id:Qe,activeDiscussIndex:Ye,onReplyDiscuss:Ze})))},$=y("1vsH"),Q={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Y(ae,be){switch(be.type){case F.L:return Object(n.a)(Object(n.a)({},ae),{},{loading:!0});case F.Q:return Object(n.a)(Object(n.a)({},ae),{},{showRewardDialog:!0});case F.b:return Object(n.a)(Object(n.a)({},ae),{},{showRewardDialog:!1});case F.l:return Object(n.a)(Object(n.a)({},ae),be.payload);case F.T:return Object(n.a)(Object(n.a)({},ae),be.payload);case F.x:return Object(n.a)(Object(n.a)({},ae),be.payload);case F.c:return Object(n.a)(Object(n.a)({},ae),be.payload);case F.z:return Object(n.a)(Object(n.a)({},ae),be.payload);case F.G:return Object(n.a)(Object(n.a)({},ae),be.payload);case F.a:return Object(n.a)(Object(n.a)({},ae),be.payload);default:throw new Error}}var ue=W.a=function(ae){var be=ae.shixunIdentifier,Ie=ae.identity,pe=ae.activeIndex,Le=ae.user,ve=ae.allowDisableDiscuss,Xe=ae.userInfo,$e=ae.isShixunDetail,Ge=$e===void 0?!1:$e,Me=ae.taskData,gt=ae.chatgpt,Te=ae.to_user_id,Ye=ae.challengeId,Ze=Object(i.useReducer)(Y,Q),Ve=Object(a.a)(Ze,2),Fe=Ve[0],Be=Ve[1],_e=Object(i.useState)(!0),Ae=Object(a.a)(_e,2),fe=Ae[0],ke=Ae[1],Je=Object(i.useState)(null),ne=Object(a.a)(Je,2),Qe=ne[0],dt=ne[1],Ke=Fe.page,et=Fe.loading,rt=Fe.data,bt=Fe.actionType,ut=Fe.showRewardDialog,ot=Fe.activeDiscussIndex,Ue=Object(i.useRef)(),We=Object(i.useRef)(),ft=Object(i.useRef)();function nt(he,it){return Dt.apply(this,arguments)}function Dt(){return Dt=Object(e.a)(r.a.mark(function he(it,Ut){var Jt;return r.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(!et){Pt.next=2;break}return Pt.abrupt("return");case 2:return Pt.prev=2,Be({type:F.L}),Pt.next=6,Object(M.e)(be,it);case 6:Jt=Pt.sent,console.log("activeDiscussIndex",ot),Be({type:F.l,payload:{activeDiscussIndex:Ut?ot:null,page:it,data:Jt,loading:!1}}),Pt.next=14;break;case 11:Pt.prev=11,Pt.t0=Pt.catch(2),console.log(Pt.t0);case 14:case"end":return Pt.stop()}},he,null,[[2,11]])})),Dt.apply(this,arguments)}Object(i.useEffect)(function(){if(pe===3&&gt)console.log("\u5F00\u542F\u5B9A\u65F6\u5668"),clearInterval(ft.current),ft.current=setInterval(function(){nt(Ke,!0)},5e3);else return console.log("\u6E05\u9664\u5B9A\u65F6\u5668"),function(){clearInterval(ft.current)};return function(){clearInterval(ft.current)}},[gt,pe,ot]),Object(i.useEffect)(function(){return fe||(clearInterval(Qe),dt(setInterval(function(){nt(Ke,!0)},5e3))),function(){clearInterval(Qe)}},[fe,Ke,ot]);function Kt(he){nt(he)}function vt(he,it,Ut){return Ht.apply(this,arguments)}function Ht(){return Ht=Object(e.a)(r.a.mark(function he(it,Ut,Jt){var an;return r.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.prev=0,cn.next=3,Object(M.g)(it,Ut);case 3:an=cn.sent,J[Jt].user_praise=Ut,J[Jt].praise_count=an.praise_count,Be({type:F.x,payload:{data:Object(n.a)(Object(n.a)({},rt),{},{comments:J})}}),cn.next=12;break;case 9:cn.prev=9,cn.t0=cn.catch(0),console.log(cn.t0);case 12:case"end":return cn.stop()}},he,null,[[0,9]])})),Ht.apply(this,arguments)}function Ft(he,it,Ut,Jt){return Lt.apply(this,arguments)}function Lt(){return Lt=Object(e.a)(r.a.mark(function he(it,Ut,Jt,an){var Pt;return r.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:return Rn.prev=0,Rn.next=3,Object(M.g)(it,Ut);case 3:Pt=Rn.sent,J[Jt].children[an].user_praise=Ut,J[Jt].children[an].praise_count=Pt.praise_count,Be({type:F.x,payload:{data:Object(n.a)(Object(n.a)({},rt),{},{comments:J})}}),Rn.next=12;break;case 9:Rn.prev=9,Rn.t0=Rn.catch(0),console.log(Rn.t0);case 12:case"end":return Rn.stop()}},he,null,[[0,9]])})),Lt.apply(this,arguments)}function zt(he,it,Ut){return Qt.apply(this,arguments)}function Qt(){return Qt=Object(e.a)(r.a.mark(function he(it,Ut,Jt){var an,Pt,cn;return r.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.prev=0,Jn.next=3,Object(M.d)(it,Ut);case 3:if(an=Jn.sent,!(an.status!==0)){Jn.next=6;break}return Jn.abrupt("return");case 6:Pt=J[Jt].author.user_id,cn=J.map(function(ir){return ir.author.user_id===Pt?Object(n.a)(Object(n.a)({},ir),{},{disable_discuss_status:Ut}):ir}),Be({type:F.c,payload:{data:Object(n.a)(Object(n.a)({},rt),{},{comments:cn})}}),Jn.next=14;break;case 11:Jn.prev=11,Jn.t0=Jn.catch(0),console.log(Jn.t0);case 14:case"end":return Jn.stop()}},he,null,[[0,11]])})),Qt.apply(this,arguments)}function bn(he,it,Ut){return Zt.apply(this,arguments)}function Zt(){return Zt=Object(e.a)(r.a.mark(function he(it,Ut,Jt){return r.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.prev=0,Pt.next=3,Object(M.k)(it,Ut);case 3:J[Jt].sticky=Ut,Be({type:F.T,payload:{data:Object(n.a)(Object(n.a)({},rt),{},{comments:J})}}),nt(Fe.page),Pt.next=11;break;case 8:Pt.prev=8,Pt.t0=Pt.catch(0),console.log(Pt.t0);case 11:case"end":return Pt.stop()}},he,null,[[0,8]])})),Zt.apply(this,arguments)}function $t(){Be({type:F.z,payload:{actionType:null}})}function Zn(){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(e.a)(r.a.mark(function he(){var it,Ut,Jt,an,Pt,cn,Rn,Jn;return r.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:if(it=bt.id,Ut=bt.params,Jt=bt.type,an=bt.index,Pt=bt.parentDiscussIndex,!(Jt==="hidden-discuss")){tr.next=6;break}return tr.next=4,Object(M.f)(it,Ut);case 4:Pt?J[Pt].children[an].hidden=Ut.hidden==1:J[an].hidden=Ut.hidden==1,Be({type:F.z,payload:{actionType:null,data:Object(n.a)(Object(n.a)({},rt),{},{comments:J})}});case 6:if(!(Jt==="delete-discuss")){tr.next=31;break}return tr.next=9,Object(M.c)(it);case 9:if(!(Pt||Pt===0)){tr.next=22;break}cn=J[Pt].children,Rn=cn.length-1;case 12:if(!(Rn>=0)){tr.next=19;break}if(!(cn[Rn].id===it)){tr.next=16;break}return cn.splice(Rn,1),tr.abrupt("break",19);case 16:Rn--,tr.next=12;break;case 19:J[Pt].children=cn,tr.next=30;break;case 22:Jn=J.length-1;case 23:if(!(Jn>=0)){tr.next=30;break}if(!(J[Jn].id===it)){tr.next=27;break}return J.splice(Jn,1),tr.abrupt("break",30);case 27:Jn--,tr.next=23;break;case 30:Be({type:F.z,payload:{actionType:null,data:Object(n.a)(Object(n.a)({},rt),{},{comments:J})}});case 31:case"end":return tr.stop()}},he)})),Fn.apply(this,arguments)}function Hn(he){Be({type:F.z,payload:{actionType:he}})}function Yn(){Be({type:F.b})}function jn(){return or.apply(this,arguments)}function or(){return or=Object(e.a)(r.a.mark(function he(){var it,Ut,Jt,an,Pt,cn,Rn;return r.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return it=Ue.current,Ut=it.id,Jt=it.index,an=it.score,Pt=it.user_id,cn=it.parentDiscussIndex,ir.next=3,Object(M.i)(Ut,{container_type:"Discusses",score:an,user_id:Pt});case 3:Rn=ir.sent,cn?J[cn].children[Jt].reward=Rn.code:J[Jt].reward=Rn.code,Be({type:F.G,payload:{showRewardDialog:!1,data:Object(n.a)(Object(n.a)({},rt),{},{comments:J})}}),Ue.current=null;case 7:case"end":return ir.stop()}},he)})),or.apply(this,arguments)}function jr(he){Ue.current=he,Be({type:F.Q})}function qt(he){Ue.current.score=he}function wn(he,it){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(e.a)(r.a.mark(function he(it,Ut){var Jt;return r.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.prev=0,Pt.next=3,Object(M.h)(it,Ut);case 3:if(Jt=Pt.sent,!(Jt.status===-3)){Pt.next=8;break}return b.a.info({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u4F60\u7684\u8D26\u53F7\u56E0\u4E3A\u53D1\u5E03\u4E86\u4E0D\u5F53\u5185\u5BB9\uFF0C\u73B0\u5DF2\u5C06\u8BC4\u8BBA\u529F\u80FD\u5C4F\u853D\u3002",okText:"\u786E\u5B9A"}),Qn(null),Pt.abrupt("return");case 8:nt(Ke),Pt.next=14;break;case 11:Pt.prev=11,Pt.t0=Pt.catch(0),console.log(Pt.t0);case 14:case"end":return Pt.stop()}},he,null,[[0,11]])})),Kr.apply(this,arguments)}function Li(he,it){return Mr.apply(this,arguments)}function Mr(){return Mr=Object(e.a)(r.a.mark(function he(it,Ut){var Jt,an;return r.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.prev=0,cn.next=3,Object(M.j)(it,Ut);case 3:if(Jt=cn.sent,an=Jt.status,!(an!==1)){cn.next=7;break}return cn.abrupt("return");case 7:nt(Ke),cn.next=13;break;case 10:cn.prev=10,cn.t0=cn.catch(0),console.log(cn.t0);case 13:case"end":return cn.stop()}},he,null,[[0,10]])})),Mr.apply(this,arguments)}function Qn(he){ot===he?Be({type:F.a,payload:{activeDiscussIndex:null}}):Be({type:F.a,payload:{activeDiscussIndex:he}})}if(Object(i.useEffect)(function(){function he(){return it.apply(this,arguments)}function it(){return it=Object(e.a)(r.a.mark(function Ut(){return r.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(!(pe===3&&!rt&&be)){an.next=3;break}return an.next=3,nt(Ke);case 3:case"end":return an.stop()}},Ut)})),it.apply(this,arguments)}he()},[be,pe,Ke,Be]),Object(i.useEffect)(function(){var he=N.a.subscribe("create-discuss",function(){nt(Ke)});return he},[be]),!rt)return t.a.createElement(c.a,null);var ge=function(){ke(!fe),fe?dt(setInterval(function(){nt(Ke,!0)},5e3)):clearInterval(Qe)},V=rt.disscuss_count,J=rt.comments,ie=rt.all,Re=rt.can_hidden;return console.log(Te,"to_user_id"),t.a.createElement(i.Fragment,null,t.a.createElement("div",{className:"discuss-container",ref:We},gt&&t.a.createElement(p.a,{type:"primary",style:{float:"right",marginBottom:10},onClick:function(){Object($.T)("/chatgpt?id=".concat(Te,"&position=").concat(Ye))}},"\u8FDB\u5165\u5386\u53F2\u95EE\u7B54"),(Me==null?void 0:Me.myshixun_manager)&&!gt&&t.a.createElement(p.a,{style:{float:"right",marginBottom:10},type:"primary",onClick:ge},fe?"\u5F00\u542F\u5B9E\u65F6\u5237\u65B0":"\u505C\u6B62\u5B9E\u65F6\u5237\u65B0"),V===0?t.a.createElement(f.a,{styles:{clear:"both"}}):null,J.map(function(he,it){return t.a.createElement(de,{user:Le,key:he.id,userInfomation:Xe,data:he,index:it,identity:Ie,onPaginationChange:Kt,shixunIdentifier:be,onSetActionType:Hn,onTopOrDownDiscuss:bn,adminOrOperator:Re,onPlusDiscuss:vt,onDisableDiscuss:zt,onSetRewardData:jr,activeDiscussIndex:ot,onHandleSubmitDiscusses:Li,onSetActiveDiscussIndex:Qn,onReplyDiscuss:wn,allowDisableDiscuss:ve,onHandleRepaly:Ft})}),V>10?t.a.createElement("div",{className:"pagination-container"},t.a.createElement(s.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Kt,current:Ke,total:V})):null,t.a.createElement(k,null)),t.a.createElement(d.a,null,t.a.createElement(b.a,{centered:!0,title:"\u63D0\u793A",visible:!!bt,onOk:Zn,onCancel:$t},t.a.createElement("p",null,bt?bt.message:"")),t.a.createElement(b.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:ut,onCancel:Yn,onOk:jn},t.a.createElement(v.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:qt,style:{width:"228px"}}))))}},"Q+I+":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAA8CAMAAADygAyiAAAAeFBMVEUAAACvv7+nt8elusWmusKnt8OmucKmucGlt8KmuMKlt8GmuMKmuMGluMKmt8KluMKmuMKmt8KluMGmuMKmuMGlt8KluMGmuMGmuMK+y9PQ2d/W3uPb4ubg5unk6ezo7O/r7/Hu8vTx9Pb09/j3+fr6+/z9/f7///9IiVUSAAAAGHRSTlMAECAwP0BQX2BwgI+Qn6Cwv8DP0N/g7/D8rFP8AAACAElEQVRYw+3X2XaCMBAG4CzFYtSgIiRYu7rk/d+wCJwUy8wk0V72v9KjfCdMhoQwNkm22loy64Vk4ci1jciKh5ystlHZBQYlI51Wose0s9HRlJPbhAgCKlKgJQGlOHYzufx5se4y40lQzWb9dYvnfqJ8gVUG/L15Ozrnzl+v05+YGjeD+JlwCNqf3JDTHodsLZi2FNScnc+lwaG2GWoSenejfBLQbjxRANQN6NzsL53U4JANQN31H9Yeuw8vD0LvfwhdHoReBujgwjUqyREN6e/sRMzaZvycolA/MPdGQMV45UChU7ghc8ZNEHqFBzSGTLteqhDU9FN2Jh5aq9qnn/tyKwlCHw6a+xuo7BZwYTwLOXv4QWuv9pAZVl1ZUdARrvR1xgeo8lsT1wNUoZU+WBTS441JanOFCqzSX+Di30JGT3ZKmQk2RyoN3Ji1GRMZtt9KpKcPUPHIndaAPT3kePNTQUIKHBAI5SQkoqEq8FqjY6E8AInIbbYKvmmpOCgLv/ttHn0T8Tdnwk7JWczrqPkbJyyZSCcklZJFhxMV15ylBOsCM2OJERpiFGfpEctfC2Y5v4fprbm3yvxu5bbPFWP/0KS9n67xh8lV91UkMxly4NrKxOHgJ5C0LiDOW2nFqlNOV+y+g1saVOFQkQRpHJonQRxdI8vEPuIavLsSnbNvHF76qBcgeTgAAAAASUVORK5CYII="},QV2g:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=I;function I(){for(var b,g=[],s=0;s<256;s++){b=s;for(var _=0;_<8;_++)b=b&1?3988292384^b>>>1:b>>>1;g[s]=b}return g}var v=I();function T(b,g,s,_){var p=v,e=_+s;b^=-1;for(var a=_;a<e;a++)b=b>>>8^p[(b^g[a])&255];return b^-1}},RELg:function(j,W,y){var I=y("MFOe"),v=I.Global;j.exports={name:"oldIE-userDataStorage",write:_,read:p,each:e,remove:a,clearAll:n};var T="storejs",b=v.document,g=i(),s=(v.navigator?v.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function _(t,o){if(s)return;var c=r(t);g(function(d){d.setAttribute(c,o),d.save(T)})}function p(t){if(s)return;var o=r(t),c=null;return g(function(d){c=d.getAttribute(o)}),c}function e(t){g(function(o){for(var c=o.XMLDocument.documentElement.attributes,d=c.length-1;d>=0;d--){var f=c[d];t(o.getAttribute(f.name),f.name)}})}function a(t){var o=r(t);g(function(c){c.removeAttribute(o),c.save(T)})}function n(){g(function(t){var o=t.XMLDocument.documentElement.attributes;t.load(T);for(var c=o.length-1;c>=0;c--)t.removeAttribute(o[c].name);t.save(T)})}var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function r(t){return t.replace(/^\d/,"___$&").replace(l,"___")}function i(){if(!b||!b.documentElement||!b.documentElement.addBehavior)return null;var t="script",o,c,d;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+t+">document.w=window</"+t+'><iframe src="/favicon.ico"></iframe>'),c.close(),o=c.w.frames[0].document,d=o.createElement("div")}catch(f){d=b.createElement("div"),o=b.body}return function(f){var h=[].slice.call(arguments,0);h.unshift(d),o.appendChild(d),d.addBehavior("#default#userData"),d.load(T),f.apply(this,h),o.removeChild(d);return}}},RMFE:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RTVd:function(j,W,y){j.exports={"code-area-container":"code-area-container___37oB0","only-view":"only-view___1om7F",frame:"frame___2B67h"}},"Rz+K":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAAXNSR0IArs4c6QAAAZdJREFUWEfF2D1Lw1AUxvH/8xHcBHFSaUfrojiKi19FHFwUFQQriLoIxcVVv4O4CCJOOriK7oKTCiLaQY9cCaW2yc1LzU2WDLnn5EdC8pxEDLCZ2SRwDIwCTUmttHZmVgNOALc/kLTtapRWmHTczKaAc2AoWvMNjEh68tTUgQtguGtNXdJ9IUgMwvX1QswsDuHqikESEK7hlqRm3NXwIFqSlnPfGg9iT9J6TsQRsCjJckHKRGSGlI3IBAmBSIWEQnghIRGJkNCIWEgViD5IVYg/kCoRHUjViG7IJvAbx11bG5iVdJvw6l4CDnuOueCbk3SZN9U76Wtmu8BaT4MXYN6DWQX2e2regQVJV3kwf8aAKjF980hVmNjBqApM4oQWGuMdFUNiUmfWUJhUiHsEQ2AyQUJgMkPKxuSClInJDfFgHoFxSZ8J2RQXB8/AmKTXQhAPpibpISljzCwOMyPpujAkwuwAG9GJb6K0/vKFnZmtREHpzn0HNCS1B4JEmOnob8CppI8siWtmDWACOJP0lvo5kaXpf635AX6GXzDZRnW0AAAAAElFTkSuQmCC"},"S+dL":function(j,W){j.exports="data:image/gif;base64,R0lGODlh6QDIAPf/APrMTf789vrMUPvdi/zfkfi4CvvYef713fnKSfzosP7wyvrSZfjAKPzmqf3wzP767fnHPv7xzf3wzvjFOfe2BP767vi8F/i8GPvagfnGO/jDMv3uxv3svfrNUvzkov724fvWcfzinPvbhPi5DfrTZv734vi6EPzglfnKSP3tw/nJR/3qtv3nrPrRYPjAJf/++/702PvVbvrUbfrUafrQX/rOVvnLTfrWcvi+H/i7Fv7y0P3y0/3wyv3uxPzjoPzglvi/I/vejvvZfPe5D/rTaPrPWvrOVPrKSf3vyPzlpPnNU/nKRvnENfe6E/Ly8v3sv+Xl5frZf9ra2vnIQOjo6Pv7+9jY2PX19d7e3tTU1Ovr6/n5+dzc3O7u7uLi4tDQ0M7Oztvb2/j4+N3d3ezs7NHR0f7+/tXV1fHx8fDw8NLS0uHh4d/f3/jAJvb29vT09M/Pz+/v7/f39+rq6uPj49bW1vr6+uDg4NfX1+Tk5PPz89PT0+np6efn59nZ2e3t7frPWfzmqvnFN/39/fz8/P756/723/vdif3ru/745/zhmObm5vrUav3ps/zim/zdiv757Pzlpvzruvzhmfe3Bve3B/zimvvhmvnCK/jAJ//56v/9+f7z1f702vvciPvXdfnBJ/jFN/jDL/735PvZe/e7Ffzjn/e3CPznq/3twf3ruvi+IPnFNvvdjPzps/3psvrOWP702/rQXfvYevnOWfvUav3quPrWdP302//56/i9G/zejP712/778/nIQv3orfnOV/i3BvnGOv/+/frKR/////3nqv3uw/vYd/3y1frUa/713v3ruPvZevrXd/e2BvnEM//+/P7z1v///f3rufnDMPnHQPe2A/i/JPrIQvnMUP3z2PnLSv/88/e8Gv746P7uxfvUa/vgk/vglPzgk/rNVPvaffnBKf3xz/756vi6D/rSYvrVcPe4C/jENvi7E/789PrPWPnIQfzchv3tv/3svvzquf3qufi9Hfi9Hve4DPnCLvjCL/e1AM3Nzf///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDJDNDJCNzNGQjY2MTFFREE3MTFEMUFDMEEzQzRDM0MiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDJDNDJCNzRGQjY2MTFFREE3MTFEMUFDMEEzQzRDM0MiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMkM0MkI3MUZCNjYxMUVEQTcxMUQxQUMwQTNDNEMzQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMkM0MkI3MkZCNjYxMUVEQTcxMUQxQUMwQTNDNEMzQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUXAP8ALAAAAADpAMgAAAj/AP8JHEiwoMGDCBMqXMiwocOHBbf0sZLlSxY6XSBq3Mixo8ePIEOK3LjFCxh/KFP6G3NlpMuXMGPKnKmRjxqVOP19SUOzp8+fQIMSjGMlp9EveoTG3PJGThWlUKNuvMLGqFV/WdxI/ZjGyheVeLRsHUtWICEocK5evVNWI5SreHi2nfuTzBm1eJ3QXWiHC15/c/YKfukkzF+8XAYfdIPnsD8yiiNzFOPF8V87kgWi2WPZn5zMoBdSudlZLWTJZEr7k2ImtOuhRVWrHSO5j2zAr127wXIbb5bIdHrTzi25CpSTvdWCGTyId+8vxCNruZv875a9YqRU96c3Ol0nfrf//+3e9g3p6lS8ty0p3jF5snHa+8OifqwZKmXkH36/dY7+3/VF1UVs+o1X1iIFLhegUFQVaBl/UK3hYBkLAnUWcg7ut5UdfmQIYIU0aZFFhp1BCJQb+WVoBYgzFUZiaSb6hMaL/rDF4kuU0QgjVKnRmNGNIhUzmo47CkWFjmA8BSRIAxKpWowyVaVjYkt6dIVzThbp0yAE0ihXlRoZh2GWJf4kxldEUgkmRNOReRuUI71B5pdrMoSGYW6+2VMXZP5Y50JiSJhnb3CChGCWp/2Z0H0pDqqnTFgSGZiiCRHlaHWFdtRYlpmueeWl23UKkR1j6ngdpQZVkUepoMomqkNXkP+pBqoHtdlqqC716KQftBbk4q3ivbrQW1mu0etAgQIrn7AJjUFmesea0UejyuIKEnVOxnHsP01WuyxIZMIhxrGfeqsfswV1SeOHqKpqroPoDpRHllIcK+K78HaURpZsKHVFF1RAIfDABBds8MEIH4wnvgXG+0+kL/bBoKAMV+wqR3o46edPVKRl8cdaQiTli2poFdTIIKesYZg64jGIUMSqLHNeG8n5oppAZTzzzleh+8eLXkDlLM9E44RuzAVKrFR8RTeNErrh6QfGH1F16HTT6EK8XRZvRLXv1VhvFJx8fhAi1ZFgF40u2uLRt5XWaavsc3t5kLVp3Duj64R4fJT/xRneeXM04nMbb+Ux4DLHy7ZqeHTdFuKBbyTHbVwo+TjkiXc0dGfG7oV55hxtQe1fiwz2udwezXgYGIl6fjrIDgu0uFV7oBHZ67CDpLNVWJisGO4fxz7QFlGntIdYmQFvsfAEXaHFGmPwocfLoClfMfMLWs8w9gFqjy/39Xn/LvjqiW8u+d6Z7y360alfLfvEua8s/LnJDyz9r9l/K/6u6d8q/6HxH6gAWD0BOoqAyTPgoBAoGQUucFsFcWCeGHg7CZKJgr+zIKcgSBANbpCDAvGgkzBoOhHqiIBXcIIKV8jCFrrwhTCMYUsSYsITyqQKWuACmkD1BS5owXIDqSGN/+DXhcF563gRFCKJ2Ie0d/UriErMEPqaiC86QDGKDXMJ00B2GizmayRWA9keruPFLIpEVykLWhnPNZKFpawMVVjjt0ISq535R47BEsnsUgY3PD5JJNrZmRH9SKiQmIGQ6sPeFhBpPuzVkZHaw57NIGk97ImBkpEMCSEwWUmRjC5lO+Ske0RSmZ0FUpSjDAmfdjYvVKYSJIP4W+Jc+UqQtFJl9aLlyuh4OC7+Q5cGGsnYQGYjYNJsJFuoA8jOcCpjqgV9clBmxeCQlBA60yrsk0PxvGUFbV3xmkaTCRSkqaw6QKE1HQRnTviHBihwQQrwjKc850nPetrznmOggu0Oov/OdYLQmv1MCQkFE1CVDNR1BeXOP3+ZUIX+s6EOBSFED0qXiS7Uog9tKEXnglGJavSiH81oQjd6uZGC1KQiLShJy9JRDrYUgi/dVkw/Yoc3YKZ/IQXJG+hATjVAwXcVRKlHqkAxnJSBag3MKUeiiRcoJFWokiOnWthAPYIqVSOn/IsUxmVVqEKEing5QzUrelWHXFI1X0DqXELZT8X1BlptUZc64xVG2VixLShr60bssJ3hkOVQKt2I6qqDh8+MRQtlZcgeb6MGOkFlsAFFVynbgzypbE6vGuljb5wqlb0FFqsOslFU8nrNrGUoDFKZ5Fw3MtkCMTMqYAUmuu6YoS//HPQOmIXIWV/UN6jgFpzxkmuB7qoUJ1xWl27VkdugYgc0zCFh0I2udKHgxtfFawu9JBGvIHgv3DmsqC/aw02P5S7rdkQOnyTRWMmlWbDFLrYZat2xuoU44YGXRnXjoLTS6zTmLZZEONtWsvCGva85qQ4L/ZV7RTK5LMFxobbq70jMcB4iOQ6EqmLVzNBXVx2pFYTlIhr7Wqsjzi7UUjyDHx/ItNx/MipyMIFsyxaKrPsubyZuCBeNB3In1M2kCrLUEWp3LJAIX88n1X3RpIgsphv7ZJg62ieR/xHi8QEFsUTKAhCJTN/1BcXANJIvkYVU4fsxKE1TNkiO3qeULWCL/0RbTvM/FPw/qJjhuAVaspwJ0t0BSgW+26nXng1yIT9LZcUZEvSgDdKgA45llQVS9KIN0uUPbsUJ2Q30pBeFHzet9B9ukKqmN50Q9lh6LFXAc28kTeqDgGeEdCFxb1rcaoQYOUOnmgtgk1O4Wh+kyRlS0F6w/BxfO2Q3HlJMGtjaGdEamyEolo9fBXMFUVvGsc8WTZmTI2a6bCHJf1lRtnUr69uMVzFm+K1lPjxuh9BZNgGODKBxMuR2b8QuhXQNovFiBa7aeyNnyfRfnB2aIqqlcv/+SKMdk5XoVMELmT5DH9CZ8I9EWy1IqU8V5uAFLozBC1qgeMVDYhOMY3vkaRAuiYZZgvJWS4QiFsHIoAMCACH5BAUbAP8ALAAAAADpAMgAAAj/AP8JHEiwoMGDCBMqXMiwocOHBUuIEAZkRJsbgSBq3Mixo8ePIEOK3LhMGaV+KFP2E4BupMuXMGPKnKlx1wWVOPuZaESzp8+fQIMS/DUhp9EhKYTGPLABBiSlUKNudFDEqNV+LnZI/ehKmAmV0CZtHUtWYAVSp65ebVFWI6mr0Fy1nQs0xDm1eBHRXZjIBt5+J/YKfskBwV+8NgYf1OHucL8QiiNzPMDI8d9RkgUyw2G5n7TMoBcOuNlZraPMPkr387UptGuCLISpxttBsqfZgF+7jkALN942kUH4rq1b8oNZlXzjpTC4FyDlI4pHdgRK+eEPe3HJs97vifS9HI5w/z/sfW4PfONbfW97oNZ4x+XLonrfD9D6scMGWKBPvu04/sDdFxUqgvAHX1nmGMicgEI58JyBB461AISlMAjUA808A6Fl8UGVCAQbBmghTZdksmFnHQqlQw4nhjLiTIigcGJpKQLFzIz9rPMiTAfMgCONUKWGYyQ7jjTNI/v9iKJSh/xIgSZFhhRIKEqqViNNNCgJQJQfOQBLlbNdGVMvBSrJE5cbQWLASWBa+RMu6lS5JZoaWVJdm2H61EObZ9LZkCQq4OmbmCM10GZGfjIUCxGCKkdoSBi0CVmiCkVzSJKN4vboR1+CSQ6lChlTZqaDylRNm9SAipACwJDK3aYbJf+SHJiGqGpQIQZQ4OqrLynQpje2GjRJG7uOB+tDQlYJQbAEqUJMse8d25ABbS7ArEC8kAAtfdIu1EGbA1z7gicsbhttSAy0mcC1DbBiLn/dItRmOzAwq0AN7xoYr0GyVSmiqrk4o2u+8Hr0CZjZMKuICwRDuO9AroBJg1IORNJKFBhnrPHGHHfscceBNuxwR98qKYJQEmgr8sqacpRKlYgCNY8+LNfs5kYt/GhBS0HJYvPPS2oEyY8aBCAUtUAn/dfDSOCYmFApKC21Wg97MGMtUCkx9dY5PYw0hCcrxQLXZKf0MDcQVuJBVCCWTfbD5RgIBBJRveJ22Q/HwB8EFUj/1eTdXD/8CH32bfUg4FM/nMR7n5DFBOJbP/zEeASUtQrkiXNErG9NoNJWAZhL/fA/f89WzQZzhS46R9Lgxs03dKmu9Oj/aKOatXvJnjTthpTrGAaD6Q407f+s4BgFkwom/M/E/zPAXzisENnyNjf/zzFqGaHV9NSzbP0/H6CNEw6WgNa99yM5MAkJAgSRSjehnb/y9wLKLzL999nfMP7r6U8w/9/xX74AKB0BvouAxTGguRCoGwVui4GvcSC0IOgaCRaLgvGzoKswaD4NkoqDmfHgB69VEBFmCoSSMWGjUMg9FbaJhYpxIZ5gGDwZgomGyrNhlXCYOx0qiYex8+GP/zjogCcY8YhITKISl8jEJvJMXkLEEQMLcQluDKFYJuDGJQphkChKMSYNAALB8qGIEnrxRASMAsviQZAzovElaqzZLQbixg3xb2w/M4VA6jiykbTNZquoFR/1NRJTKI0R/xhkwURimKSVQhOK5JZIeDC1E0TyXCEZnNQOd0lHiWQKU9tcJz0JkheM0oDfG8UpBfg9dKzSf98Dxyv1971OzNJ+36vALeVHv1JMbQS7BFJIKiM1UAaTQyIxlNQOdswIgQQel5tdM50JEmYCbQqJnObS0heMpOlRm9scyS2AxpZsgvMq/CsBJmyWiVqZ85xGASAn1rmyUyRlj/C0CgE5If8+ggliXXTMZzxlEgVRvEsUUWhNGwXaNZrYIgoAmIJEJ0rRilr0ohjNqAAGYA8oMlQlQEzdR0FKwoWOFCUhbctJzVbSgK40pWVZKUpbis+X0vSdI4UpWWTanZvyVKdj+alPZQrUrQiVpkdtaVJLulQSNvVaT2VWVIM1VVtVlSOJQEIiIkhUkRzjBvTshy6ioIMO2vQjhVBZTiywthR21SOcMKhaDODWs3JknoeRhdFqaNeNGPMwvugEX09KuzhaJhP0yGFfHwKD2YygrXNpwls1UjrVeIIuo8opRzKgnBjMpSqLbUgJuEMcsghhsg+RxHjcsQ2yhAC1DmnFe3TRp6j/IAK2DdEbfcq4Fa0RdiP44o8QtsKB0DLkr/QpZ1R8plmNBNdAS5BK05oLEd1C6BzYgcosqPsQS55oCKqIyoQY+rBY/Egc4iUvRzK7IXZE5QklO+fonvejGkilBJIQx8f2y9/+RiFk3RudIUD3I2GUdGEB7gijlISDrV4rYAPTHe1g8BUlXSMVJb2X8IhnWCWdpqTtkl3z1KqkxpV0XL5DnPU0WaWnlTRbmPue3cDEj5s6S8UisSWY3tE3mg7rbvjbBGmqRDea4irCkXuJNdoE2Zay6m0wcQ+YhnvTf4gqyTAhQJvsW2VLYWp4MrlHm6pRZYEsanYzSUabClBmgQAK/8wzeQBnqoSCNgvETtXziXiq9AM7/0NNbLrfT4RTJVv4+R9emh9QFFElF3Dx0FPaX1Bm/KPk+flIX56gUHz1ozkdWiA9OqBSPnCnGUHp0wOJ0QOhsgkB4CgwqCZIiS4oFWTMCJuxJgiGNDRCqQThRLjONUEc1GupRGJDwRY2QQi0QrLUo5v8SbayB5KfTA+xLMnYR7SnjZD2vLAtD4gvd6TNbYKEZ4d0Ccd7uFxuhFDnR9mdS6S4E7N2H+Q4s4LQgvZiCeuYwN4M4U2IFPMKYOJGuQBXSGwMVFrBKIAfuAFowhkyGvp8WDEfALBlBDHxh1DmPZiRzCZy1pkkdBwihWexjoszY2vHIODkG7GLb/Timl//hRWChblGzpKW0iA8NJHAhlq4kQ6dd4QqncmKdBIhAwKrpA0ieIHRP0KUwyDlPpo4ASMAIAAZKGKvUweJTdSyk7DHuiSBVglLzC5siVDEIhhBdUAAADs="},S6kV:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.mode.OFB=function(){var v=I.lib.BlockCipherMode.extend(),T=v.Encryptor=v.extend({processBlock:function(b,g){var s=this._cipher,_=s.blockSize,p=this._iv,e=this._keystream;p&&(e=this._keystream=p.slice(0),this._iv=void 0),s.encryptBlock(e,0);for(var a=0;a<_;a++)b[g+a]^=e[a]}});return v.Decryptor=T,v}(),I.mode.OFB})},"SA+Z":function(j,W,y){var I=y("wTVA"),v=y("EbDI"),T=y("ZhPi"),b=y("wkBT");function g(s){return I(s)||v(s)||T(s)||b()}j.exports=g,j.exports.__esModule=!0,j.exports.default=j.exports},SJMd:function(j,W){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var y,I,v,T=!1,b,g;window.PR_SHOULD_USE_CONTINUATION=!0;var s,_;(function(){var p=window,e=["break,continue,do,else,for,if,return,while"],a=[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],n=[a,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],l=[n,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],r=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],i=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],t="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",o=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],c="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",d=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],f=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],h=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],u=[l,i,r,o,c,d,f,h],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,x="str",O="kwd",C="com",w="typ",S="lit",D="pun",R="pln",P="tag",N="dec",M="src",z="atn",X="atv",k="nocode",F="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(de){for(var $=0,Q=!1,Y=!1,ue=0,ae=de.length;ue<ae;++ue){var be=de[ue];if(be.ignoreCase)Y=!0;else if(/[a-z]/i.test(be.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Q=!0,Y=!1;break}}var Ie={b:8,t:9,n:10,v:11,f:12,r:13};function pe(Ge){var Me=Ge.charCodeAt(0);if(Me!==92)return Me;var gt=Ge.charAt(1);return Me=Ie[gt],Me||("0"<=gt&&gt<="7"?parseInt(Ge.substring(1),8):gt==="u"||gt==="x"?parseInt(Ge.substring(2),16):Ge.charCodeAt(1))}function Le(Ge){if(Ge<32)return(Ge<16?"\\x0":"\\x")+Ge.toString(16);var Me=String.fromCharCode(Ge);return Me==="\\"||Me==="-"||Me==="]"||Me==="^"?"\\"+Me:Me}function ve(Ge){var Me=Ge.substring(1,Ge.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),gt=[],Te=Me[0]==="^",Ye=["["];Te&&Ye.push("^");for(var Ze=Te?1:0,Ve=Me.length;Ze<Ve;++Ze){var Fe=Me[Ze];if(/\\[bdsw]/i.test(Fe))Ye.push(Fe);else{var Be=pe(Fe),_e;Ze+2<Ve&&Me[Ze+1]==="-"?(_e=pe(Me[Ze+2]),Ze+=2):_e=Be,gt.push([Be,_e]),_e<65||Be>122||(_e<65||Be>90||gt.push([Math.max(65,Be)|32,Math.min(_e,90)|32]),_e<97||Be>122||gt.push([Math.max(97,Be)&~32,Math.min(_e,122)&~32]))}}gt.sort(function(Je,ne){return Je[0]-ne[0]||ne[1]-Je[1]});for(var Ae=[],fe=[],Ze=0;Ze<gt.length;++Ze){var ke=gt[Ze];ke[0]<=fe[1]+1?fe[1]=Math.max(fe[1],ke[1]):Ae.push(fe=ke)}for(var Ze=0;Ze<Ae.length;++Ze){var ke=Ae[Ze];Ye.push(Le(ke[0])),ke[1]>ke[0]&&(ke[1]+1>ke[0]&&Ye.push("-"),Ye.push(Le(ke[1])))}return Ye.push("]"),Ye.join("")}function Xe(Ge){for(var Me=Ge.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),gt=Me.length,Te=[],Ye=0,Ze=0;Ye<gt;++Ye){var Ve=Me[Ye];if(Ve==="(")++Ze;else if(Ve.charAt(0)==="\\"){var Fe=+Ve.substring(1);Fe&&(Fe<=Ze?Te[Fe]=-1:Me[Ye]=Le(Fe))}}for(var Ye=1;Ye<Te.length;++Ye)Te[Ye]===-1&&(Te[Ye]=++$);for(var Ye=0,Ze=0;Ye<gt;++Ye){var Ve=Me[Ye];if(Ve==="(")++Ze,Te[Ze]||(Me[Ye]="(?:");else if(Ve.charAt(0)==="\\"){var Fe=+Ve.substring(1);Fe&&Fe<=Ze&&(Me[Ye]="\\"+Te[Fe])}}for(var Ye=0;Ye<gt;++Ye)Me[Ye]==="^"&&Me[Ye+1]!=="^"&&(Me[Ye]="");if(Ge.ignoreCase&&Q)for(var Ye=0;Ye<gt;++Ye){var Ve=Me[Ye],Be=Ve.charAt(0);Ve.length>=2&&Be==="["?Me[Ye]=ve(Ve):Be!=="\\"&&(Me[Ye]=Ve.replace(/[a-zA-Z]/g,function(fe){var ke=fe.charCodeAt(0);return"["+String.fromCharCode(ke&~32,ke|32)+"]"}))}return Me.join("")}for(var $e=[],ue=0,ae=de.length;ue<ae;++ue){var be=de[ue];if(be.global||be.multiline)throw new Error(""+be);$e.push("(?:"+Xe(be)+")")}return new RegExp($e.join("|"),Y?"gi":"g")}function L(de,$){var Q=/(?:^|\s)nocode(?:\s|$)/,Y=[],ue=0,ae=[],be=0;function Ie(pe){var Le=pe.nodeType;if(Le==1){if(Q.test(pe.className))return;for(var ve=pe.firstChild;ve;ve=ve.nextSibling)Ie(ve);var Xe=pe.nodeName.toLowerCase();(Xe==="br"||Xe==="li")&&(Y[be]=`
`,ae[be<<1]=ue++,ae[be++<<1|1]=pe)}else if(Le==3||Le==4){var $e=pe.nodeValue;$e.length&&($?$e=$e.replace(/\r\n?/g,`
`):$e=$e.replace(/[ \t\r\n]+/g," "),Y[be]=$e,ae[be<<1]=ue,ue+=$e.length,ae[be++<<1|1]=pe)}}return Ie(de),{sourceCode:Y.join("").replace(/\n$/,""),spans:ae}}function B(de,$,Q,Y,ue){if(!Q)return;var ae={sourceNode:de,pre:1,langExtension:null,numberLines:null,sourceCode:Q,spans:null,basePos:$,decorations:null};Y(ae),ue.push.apply(ue,ae.decorations)}var Z=/\S/;function re(de){for(var $=void 0,Q=de.firstChild;Q;Q=Q.nextSibling){var Y=Q.nodeType;$=Y===1?$?de:Q:Y===3&&Z.test(Q.nodeValue)?de:$}return $===de?void 0:$}function me(de,$){var Q={},Y;(function(){for(var be=de.concat($),Ie=[],pe={},Le=0,ve=be.length;Le<ve;++Le){var Xe=be[Le],$e=Xe[3];if($e)for(var Ge=$e.length;--Ge>=0;)Q[$e.charAt(Ge)]=Xe;var Me=Xe[1],gt=""+Me;pe.hasOwnProperty(gt)||(Ie.push(Me),pe[gt]=null)}Ie.push(/[\0-\uffff]/),Y=U(Ie)})();var ue=$.length,ae=function(be){for(var Ie=be.sourceCode,pe=be.basePos,Le=be.sourceNode,ve=[pe,R],Xe=0,$e=Ie.match(Y)||[],Ge={},Me=0,gt=$e.length;Me<gt;++Me){var Te=$e[Me],Ye=Ge[Te],Ze=void 0,Ve;if(typeof Ye=="string")Ve=!1;else{var Fe=Q[Te.charAt(0)];if(Fe)Ze=Te.match(Fe[1]),Ye=Fe[0];else{for(var Be=0;Be<ue;++Be)if(Fe=$[Be],Ze=Te.match(Fe[1]),Ze){Ye=Fe[0];break}Ze||(Ye=R)}Ve=Ye.length>=5&&Ye.substring(0,5)==="lang-",Ve&&!(Ze&&typeof Ze[1]=="string")&&(Ve=!1,Ye=M),Ve||(Ge[Te]=Ye)}var _e=Xe;if(Xe+=Te.length,!Ve)ve.push(pe+_e,Ye);else{var Ae=Ze[1],fe=Te.indexOf(Ae),ke=fe+Ae.length;Ze[2]&&(ke=Te.length-Ze[2].length,fe=ke-Ae.length);var Je=Ye.substring(5);B(Le,pe+_e,Te.substring(0,fe),ae,ve),B(Le,pe+_e+fe,Ae,le(Je,Ae),ve),B(Le,pe+_e+ke,Te.substring(ke),ae,ve)}}be.decorations=ve};return ae}function Ee(de){var $=[],Q=[];de.tripleQuotedStrings?$.push([x,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):de.multiLineStrings?$.push([x,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):$.push([x,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),de.verbatimStrings&&Q.push([x,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Y=de.hashComments;Y&&(de.cStyleComments?(Y>1?$.push([C,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):$.push([C,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([x,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):$.push([C,/^#[^\r\n]*/,null,"#"])),de.cStyleComments&&(Q.push([C,/^\/\/[^\r\n]*/,null]),Q.push([C,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ue=de.regexLiterals;if(ue){var ae=ue>1?"":`
\r`,be=ae?".":"[\\S\\s]",Ie="/(?=[^/*"+ae+"])(?:[^/\\x5B\\x5C"+ae+"]|\\x5C"+be+"|\\x5B(?:[^\\x5C\\x5D"+ae+"]|\\x5C"+be+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+F+"("+Ie+")")])}var pe=de.types;pe&&Q.push([w,pe]);var Le=(""+de.keywords).replace(/^ | $/g,"");Le.length&&Q.push([O,new RegExp("^(?:"+Le.replace(/[\s,]+/g,"|")+")\\b"),null]),$.push([R,/^\s+/,null,` \r
\xA0`]);var ve="^.[^\\s\\w.$@'\"`/\\\\]*";return de.regexLiterals&&(ve+="(?!s*/)"),Q.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[w,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[R,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[R,/^\\[\s\S]?/,null],[D,new RegExp(ve),null]),me($,Q)}var De=Ee({keywords:u,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function te(de,$,Q){for(var Y=/(?:^|\s)nocode(?:\s|$)/,ue=/\r\n?|\n/,ae=de.ownerDocument,be=ae.createElement("li");de.firstChild;)be.appendChild(de.firstChild);var Ie=[be];function pe(Me){var gt=Me.nodeType;if(gt==1&&!Y.test(Me.className))if(Me.nodeName==="br")Le(Me),Me.parentNode&&Me.parentNode.removeChild(Me);else for(var Te=Me.firstChild;Te;Te=Te.nextSibling)pe(Te);else if((gt==3||gt==4)&&Q){var Ye=Me.nodeValue,Ze=Ye.match(ue);if(Ze){var Ve=Ye.substring(0,Ze.index);Me.nodeValue=Ve;var Fe=Ye.substring(Ze.index+Ze[0].length);if(Fe){var Be=Me.parentNode;Be.insertBefore(ae.createTextNode(Fe),Me.nextSibling)}Le(Me),Ve||Me.parentNode.removeChild(Me)}}}function Le(Me){for(;!Me.nextSibling;)if(Me=Me.parentNode,!Me)return;function gt(Ze,Ve){var Fe=Ve?Ze.cloneNode(!1):Ze,Be=Ze.parentNode;if(Be){var _e=gt(Be,1),Ae=Ze.nextSibling;_e.appendChild(Fe);for(var fe=Ae;fe;fe=Ae)Ae=fe.nextSibling,_e.appendChild(fe)}return Fe}for(var Te=gt(Me.nextSibling,0),Ye;(Ye=Te.parentNode)&&Ye.nodeType===1;)Te=Ye;Ie.push(Te)}for(var ve=0;ve<Ie.length;++ve)pe(Ie[ve]);$===($|0)&&Ie[0].setAttribute("value",$);var Xe=ae.createElement("ol");Xe.className="linenums";for(var $e=Math.max(0,$-1|0)||0,ve=0,Ge=Ie.length;ve<Ge;++ve)be=Ie[ve],be.className="L"+(ve+$e)%10,be.firstChild||be.appendChild(ae.createTextNode("\xA0")),Xe.appendChild(be);de.appendChild(Xe)}function Ce(de){var $=/\bMSIE\s(\d+)/.exec(navigator.userAgent);$=$&&+$[1]<=8;var Q=/\n/g,Y=de.sourceCode,ue=Y.length,ae=0,be=de.spans,Ie=be.length,pe=0,Le=de.decorations,ve=Le.length,Xe=0;Le[ve]=ue;var $e,Ge;for(Ge=$e=0;Ge<ve;)Le[Ge]!==Le[Ge+2]?(Le[$e++]=Le[Ge++],Le[$e++]=Le[Ge++]):Ge+=2;for(ve=$e,Ge=$e=0;Ge<ve;){for(var Me=Le[Ge],gt=Le[Ge+1],Te=Ge+2;Te+2<=ve&&Le[Te+1]===gt;)Te+=2;Le[$e++]=Me,Le[$e++]=gt,Ge=Te}ve=Le.length=$e;var Ye=de.sourceNode,Ze="";Ye&&(Ze=Ye.style.display,Ye.style.display="none");try{for(var Ve=null;pe<Ie;){var Fe=be[pe],Be=be[pe+2]||ue,_e=Le[Xe+2]||ue,Te=Math.min(Be,_e),Ae=be[pe+1],fe;if(Ae.nodeType!==1&&(fe=Y.substring(ae,Te))){$&&(fe=fe.replace(Q,"\r")),Ae.nodeValue=fe;var ke=Ae.ownerDocument,Je=ke.createElement("span");Je.className=Le[Xe+1];var ne=Ae.parentNode;ne.replaceChild(Je,Ae),Je.appendChild(Ae),ae<Be&&(be[pe+1]=Ae=ke.createTextNode(Y.substring(Te,Be)),ne.insertBefore(Ae,Je.nextSibling))}ae=Te,ae>=Be&&(pe+=2),ae>=_e&&(Xe+=2)}}finally{Ye&&(Ye.style.display=Ze)}}var we={};function ce(de,$){for(var Q=$.length;--Q>=0;){var Y=$[Q];we.hasOwnProperty(Y)?p.console&&console.warn("cannot override language handler %s",Y):we[Y]=de}}function le(de,$){return de&&we.hasOwnProperty(de)||(de=/^\s*</.test($)?"default-markup":"default-code"),we[de]}ce(De,["default-code"]),ce(me([],[[R,/^[^<?]+/],[N,/^<!\w[^>]*(?:>|$)/],[C,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[D,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ce(me([[R,/^[\s]+/,null,` \r
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[P,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[z,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[D,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ce(me([],[[X,/^[\s\S]+/]]),["uq.val"]),ce(Ee({keywords:l,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ce(Ee({keywords:"null,true,false"}),["json"]),ce(Ee({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ce(Ee({keywords:r,cStyleComments:!0}),["java"]),ce(Ee({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ce(Ee({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ce(Ee({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ce(Ee({keywords:f,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ce(Ee({keywords:o,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ce(Ee({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ce(me([],[[x,/^[\s\S]+/]]),["regex"]);function oe(de){var $=de.langExtension;try{var Q=L(de.sourceNode,de.pre),Y=Q.sourceCode;de.sourceCode=Y,de.spans=Q.spans,de.basePos=0,le($,Y)(de),Ce(de)}catch(ue){p.console&&console.log(ue&&ue.stack||ue)}}function xe(de,$,Q){var Y=Q||!1,ue=$||null,ae=document.createElement("div");ae.innerHTML="<pre>"+de+"</pre>",ae=ae.firstChild,Y&&te(ae,Y,!0);var be={langExtension:ue,numberLines:Y,sourceNode:ae,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return oe(be),ae.innerHTML}function q(de,$){var Q=$||document.body,Y=Q.ownerDocument||document;function ue(Fe){return Q.getElementsByTagName(Fe)}for(var ae=[ue("pre"),ue("code"),ue("xmp")],be=[],Ie=0;Ie<ae.length;++Ie)for(var pe=0,Le=ae[Ie].length;pe<Le;++pe)be.push(ae[Ie][pe]);ae=null;var ve=Date;ve.now||(ve={now:function(){return+new Date}});var Xe=0,$e=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ge=/\bprettyprint\b/,Me=/\bprettyprinted\b/,gt=/pre|xmp/i,Te=/^code$/i,Ye=/^(?:pre|code|xmp)$/i,Ze={};function Ve(){for(var Fe=p.PR_SHOULD_USE_CONTINUATION?ve.now()+250:Infinity;Xe<be.length&&ve.now()<Fe;Xe++){for(var Be=be[Xe],_e=Ze,Ae=Be;Ae=Ae.previousSibling;){var fe=Ae.nodeType,ke=(fe===7||fe===8)&&Ae.nodeValue;if(ke?!/^\??prettify\b/.test(ke):fe!==3||/\S/.test(Ae.nodeValue))break;if(ke){_e={},ke.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ft,nt,Dt){_e[nt]=Dt});break}}var Je=Be.className;if((_e!==Ze||Ge.test(Je))&&!Me.test(Je)){for(var ne=!1,Qe=Be.parentNode;Qe;Qe=Qe.parentNode){var dt=Qe.tagName;if(Ye.test(dt)&&Qe.className&&Ge.test(Qe.className)){ne=!0;break}}if(!ne){Be.className+=" prettyprinted";var Ke=_e.lang;if(!Ke){Ke=Je.match($e);var et;!Ke&&(et=re(Be))&&Te.test(et.tagName)&&(Ke=et.className.match($e)),Ke&&(Ke=Ke[1])}var rt;if(gt.test(Be.tagName))rt=1;else{var bt=Be.currentStyle,ut=Y.defaultView,ot=bt?bt.whiteSpace:ut&&ut.getComputedStyle?ut.getComputedStyle(Be,null).getPropertyValue("white-space"):0;rt=ot&&ot.substring(0,3)==="pre"}var Ue=_e.linenums;(Ue=Ue==="true"||+Ue)||(Ue=Je.match(/\blinenums\b(?::(\d+))?/),Ue=Ue?Ue[1]&&Ue[1].length?+Ue[1]:!0:!1),Ue&&te(Be,Ue,rt);var We={langExtension:Ke,sourceNode:Be,numberLines:Ue,pre:rt,sourceCode:null,basePos:null,spans:null,decorations:null};oe(We)}}}Xe<be.length?p.setTimeout(Ve,250):typeof de=="function"&&de()}Ve()}var se=p.PR={createSimpleLexer:me,registerLangHandler:ce,sourceDecorator:Ee,PR_ATTRIB_NAME:z,PR_ATTRIB_VALUE:X,PR_COMMENT:C,PR_DECLARATION:N,PR_KEYWORD:O,PR_LITERAL:S,PR_NOCODE:k,PR_PLAIN:R,PR_PUNCTUATION:D,PR_SOURCE:M,PR_STRING:x,PR_TAG:P,PR_TYPE:w,prettyPrintOne:T?p.prettyPrintOne=xe:s=xe,prettyPrint:_=T?p.prettyPrint=q:_=q},Ne=p.define;typeof Ne=="function"&&Ne.amd&&Ne("google-code-prettify",[],function(){return se})})()},SMhR:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},SZEN:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.clientToElement=I;function I(v,T,b){var g=b.getBoundingClientRect(),s={x:0,y:0};return v<g.left?s.x=0:v>=g.right?s.x=g.width-1:s.x=v-g.left,T<g.top?s.y=0:T>=g.bottom?s.y=g.height-1:s.y=T-g.top,s}},Sa5k:function(j,W,y){j.exports=y.p+"static/nothing.4d201a0a.png"},SgaC:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;function I(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function v(g,s){for(var _=0;_<s.length;_++){var p=s[_];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(g,p.key,p)}}function T(g,s,_){return s&&v(g.prototype,s),_&&v(g,_),g}var b=function(){function g(){I(this,g),this._subrects=0}return T(g,[{key:"decodeRect",value:function(_,p,e,a,n,l,r){if(this._subrects===0){if(n.rQwait("RRE",4+4))return!1;this._subrects=n.rQshift32();var i=n.rQshiftBytes(4);l.fillRect(_,p,e,a,i)}for(;this._subrects>0;){if(n.rQwait("RRE",4+8))return!1;var t=n.rQshiftBytes(4),o=n.rQshift16(),c=n.rQshift16(),d=n.rQshift16(),f=n.rQshift16();l.fillRect(_+o,p+c,d,f,t),this._subrects--}return!0}}]),g}();W.default=b},SzL9:function(j,W,y){j.exports=y.p+"static/appoint2.ec9f16d8.svg"},T8No:function(j,W,y){"use strict";y.d(W,"a",function(){return _}),y.d(W,"e",function(){return p}),y.d(W,"c",function(){return D}),y.d(W,"b",function(){return R}),y.d(W,"d",function(){return P}),y.d(W,"f",function(){return z});var I=y("MNsG"),v=y("N0LK"),T=y("Cg/j");let b=I.k||"";const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",I.f),g.set("isLinux",I.d),g.set("isWindows",I.i),g.set("isWeb",I.h),g.set("isMacNative",I.f&&!I.h),g.set("isEdge",b.indexOf("Edg/")>=0),g.set("isFirefox",b.indexOf("Firefox")>=0),g.set("isChrome",b.indexOf("Chrome")>=0),g.set("isSafari",b.indexOf("Safari")>=0);const s=Object.prototype.hasOwnProperty;class _{static has(k){return l.create(k)}static equals(k,F){return r.create(k,F)}static regex(k,F){return x.create(k,F)}static not(k){return c.create(k)}static and(...k){return w.create(k,null)}static or(...k){return S.create(k,null,!0)}static deserialize(k,F=!1){return k?this._deserializeOrExpression(k,F):void 0}static _deserializeOrExpression(k,F){let U=k.split("||");return S.create(U.map(L=>this._deserializeAndExpression(L,F)),null,!0)}static _deserializeAndExpression(k,F){let U=k.split("&&");return w.create(U.map(L=>this._deserializeOne(L,F)),null)}static _deserializeOne(k,F){if(k=k.trim(),k.indexOf("!=")>=0){let U=k.split("!=");return o.create(U[0].trim(),this._deserializeValue(U[1],F))}if(k.indexOf("==")>=0){let U=k.split("==");return r.create(U[0].trim(),this._deserializeValue(U[1],F))}if(k.indexOf("=~")>=0){let U=k.split("=~");return x.create(U[0].trim(),this._deserializeRegexValue(U[1],F))}if(k.indexOf(" in ")>=0){let U=k.split(" in ");return i.create(U[0].trim(),U[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(k)){const U=k.split(">=");return h.create(U[0].trim(),U[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(k)){const U=k.split(">");return f.create(U[0].trim(),U[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(k)){const U=k.split("<=");return E.create(U[0].trim(),U[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(k)){const U=k.split("<");return u.create(U[0].trim(),U[1].trim())}return/^\!\s*/.test(k)?c.create(k.substr(1).trim()):l.create(k)}static _deserializeValue(k,F){if(k=k.trim(),k==="true")return!0;if(k==="false")return!1;let U=/^'([^']*)'$/.exec(k);return U?U[1].trim():k}static _deserializeRegexValue(k,F){if(Object(v.C)(k)){if(F)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let U=k.indexOf("/"),L=k.lastIndexOf("/");if(U===L||U<0){if(F)throw new Error(`bad regexp-value '${k}', missing /-enclosure`);return console.warn(`bad regexp-value '${k}', missing /-enclosure`),null}let B=k.slice(U+1,L),Z=k[L+1]==="i"?"i":"";try{return new RegExp(B,Z)}catch(re){if(F)throw new Error(`bad regexp-value '${k}', parse error: ${re}`);return console.warn(`bad regexp-value '${k}', parse error: ${re}`),null}}}function p(k,F){const U=k?k.substituteConstants():void 0,L=F?F.substituteConstants():void 0;return!U&&!L?!0:!U||!L?!1:U.equals(L)}function e(k,F){return k.cmp(F)}class a{constructor(){this.type=0}cmp(k){return this.type-k.type}equals(k){return k.type===this.type}substituteConstants(){return this}evaluate(k){return!1}serialize(){return"false"}keys(){return[]}negate(){return n.INSTANCE}}a.INSTANCE=new a;class n{constructor(){this.type=1}cmp(k){return this.type-k.type}equals(k){return k.type===this.type}substituteConstants(){return this}evaluate(k){return!0}serialize(){return"true"}keys(){return[]}negate(){return a.INSTANCE}}n.INSTANCE=new n;class l{constructor(k,F){this.key=k,this.negated=F,this.type=2}static create(k,F=null){const U=g.get(k);return typeof U=="boolean"?U?n.INSTANCE:a.INSTANCE:new l(k,F)}cmp(k){return k.type!==this.type?this.type-k.type:N(this.key,k.key)}equals(k){return k.type===this.type?this.key===k.key:!1}substituteConstants(){const k=g.get(this.key);return typeof k=="boolean"?k?n.INSTANCE:a.INSTANCE:this}evaluate(k){return!!k.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this)),this.negated}}class r{constructor(k,F,U){this.key=k,this.value=F,this.negated=U,this.type=4}static create(k,F,U=null){if(typeof F=="boolean")return F?l.create(k,U):c.create(k,U);const L=g.get(k);if(typeof L=="boolean"){const B=L?"true":"false";return F===B?n.INSTANCE:a.INSTANCE}return new r(k,F,U)}cmp(k){return k.type!==this.type?this.type-k.type:M(this.key,this.value,k.key,k.value)}equals(k){return k.type===this.type?this.key===k.key&&this.value===k.value:!1}substituteConstants(){const k=g.get(this.key);if(typeof k=="boolean"){const F=k?"true":"false";return this.value===F?n.INSTANCE:a.INSTANCE}return this}evaluate(k){return k.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this.value,this)),this.negated}}class i{constructor(k,F){this.key=k,this.valueKey=F,this.type=10,this.negated=null}static create(k,F){return new i(k,F)}cmp(k){return k.type!==this.type?this.type-k.type:M(this.key,this.valueKey,k.key,k.valueKey)}equals(k){return k.type===this.type?this.key===k.key&&this.valueKey===k.valueKey:!1}substituteConstants(){return this}evaluate(k){const F=k.getValue(this.valueKey),U=k.getValue(this.key);return Array.isArray(F)?F.indexOf(U)>=0:typeof U=="string"&&typeof F=="object"&&F!==null?s.call(F,U):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=t.create(this)),this.negated}}class t{constructor(k){this._actual=k,this.type=11}static create(k){return new t(k)}cmp(k){return k.type!==this.type?this.type-k.type:this._actual.cmp(k._actual)}equals(k){return k.type===this.type?this._actual.equals(k._actual):!1}substituteConstants(){return this}evaluate(k){return!this._actual.evaluate(k)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class o{constructor(k,F,U){this.key=k,this.value=F,this.negated=U,this.type=5}static create(k,F,U=null){if(typeof F=="boolean")return F?c.create(k,U):l.create(k,U);const L=g.get(k);if(typeof L=="boolean"){const B=L?"true":"false";return F===B?a.INSTANCE:n.INSTANCE}return new o(k,F,U)}cmp(k){return k.type!==this.type?this.type-k.type:M(this.key,this.value,k.key,k.value)}equals(k){return k.type===this.type?this.key===k.key&&this.value===k.value:!1}substituteConstants(){const k=g.get(this.key);if(typeof k=="boolean"){const F=k?"true":"false";return this.value===F?a.INSTANCE:n.INSTANCE}return this}evaluate(k){return k.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=r.create(this.key,this.value,this)),this.negated}}class c{constructor(k,F){this.key=k,this.negated=F,this.type=3}static create(k,F=null){const U=g.get(k);return typeof U=="boolean"?U?a.INSTANCE:n.INSTANCE:new c(k,F)}cmp(k){return k.type!==this.type?this.type-k.type:N(this.key,k.key)}equals(k){return k.type===this.type?this.key===k.key:!1}substituteConstants(){const k=g.get(this.key);return typeof k=="boolean"?k?a.INSTANCE:n.INSTANCE:this}evaluate(k){return!k.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this)),this.negated}}function d(k,F){if(typeof k=="string"){const U=parseFloat(k);isNaN(U)||(k=U)}return typeof k=="string"||typeof k=="number"?F(k):a.INSTANCE}class f{constructor(k,F,U){this.key=k,this.value=F,this.negated=U,this.type=12}static create(k,F,U=null){return d(F,L=>new f(k,L,U))}cmp(k){return k.type!==this.type?this.type-k.type:M(this.key,this.value,k.key,k.value)}equals(k){return k.type===this.type?this.key===k.key&&this.value===k.value:!1}substituteConstants(){return this}evaluate(k){return typeof this.value=="string"?!1:parseFloat(k.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class h{constructor(k,F,U){this.key=k,this.value=F,this.negated=U,this.type=13}static create(k,F,U=null){return d(F,L=>new h(k,L,U))}cmp(k){return k.type!==this.type?this.type-k.type:M(this.key,this.value,k.key,k.value)}equals(k){return k.type===this.type?this.key===k.key&&this.value===k.value:!1}substituteConstants(){return this}evaluate(k){return typeof this.value=="string"?!1:parseFloat(k.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class u{constructor(k,F,U){this.key=k,this.value=F,this.negated=U,this.type=14}static create(k,F,U=null){return d(F,L=>new u(k,L,U))}cmp(k){return k.type!==this.type?this.type-k.type:M(this.key,this.value,k.key,k.value)}equals(k){return k.type===this.type?this.key===k.key&&this.value===k.value:!1}substituteConstants(){return this}evaluate(k){return typeof this.value=="string"?!1:parseFloat(k.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this.value,this)),this.negated}}class E{constructor(k,F,U){this.key=k,this.value=F,this.negated=U,this.type=15}static create(k,F,U=null){return d(F,L=>new E(k,L,U))}cmp(k){return k.type!==this.type?this.type-k.type:M(this.key,this.value,k.key,k.value)}equals(k){return k.type===this.type?this.key===k.key&&this.value===k.value:!1}substituteConstants(){return this}evaluate(k){return typeof this.value=="string"?!1:parseFloat(k.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class x{constructor(k,F){this.key=k,this.regexp=F,this.type=7,this.negated=null}static create(k,F){return new x(k,F)}cmp(k){if(k.type!==this.type)return this.type-k.type;if(this.key<k.key)return-1;if(this.key>k.key)return 1;const F=this.regexp?this.regexp.source:"",U=k.regexp?k.regexp.source:"";return F<U?-1:F>U?1:0}equals(k){if(k.type===this.type){const F=this.regexp?this.regexp.source:"",U=k.regexp?k.regexp.source:"";return this.key===k.key&&F===U}return!1}substituteConstants(){return this}evaluate(k){let F=k.getValue(this.key);return this.regexp?this.regexp.test(F):!1}serialize(){const k=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${k}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this)),this.negated}}class O{constructor(k){this._actual=k,this.type=8}static create(k){return new O(k)}cmp(k){return k.type!==this.type?this.type-k.type:this._actual.cmp(k._actual)}equals(k){return k.type===this.type?this._actual.equals(k._actual):!1}substituteConstants(){return this}evaluate(k){return!this._actual.evaluate(k)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function C(k){let F=null;for(let U=0,L=k.length;U<L;U++){const B=k[U].substituteConstants();if(k[U]!==B&&F===null){F=[];for(let Z=0;Z<U;Z++)F[Z]=k[Z]}F!==null&&(F[U]=B)}return F===null?k:F}class w{constructor(k,F){this.expr=k,this.negated=F,this.type=6}static create(k,F){return w._normalizeArr(k,F)}cmp(k){if(k.type!==this.type)return this.type-k.type;if(this.expr.length<k.expr.length)return-1;if(this.expr.length>k.expr.length)return 1;for(let F=0,U=this.expr.length;F<U;F++){const L=e(this.expr[F],k.expr[F]);if(L!==0)return L}return 0}equals(k){if(k.type===this.type){if(this.expr.length!==k.expr.length)return!1;for(let F=0,U=this.expr.length;F<U;F++)if(!this.expr[F].equals(k.expr[F]))return!1;return!0}return!1}substituteConstants(){const k=C(this.expr);return k===this.expr?this:w.create(k,this.negated)}evaluate(k){for(let F=0,U=this.expr.length;F<U;F++)if(!this.expr[F].evaluate(k))return!1;return!0}static _normalizeArr(k,F){const U=[];let L=!1;for(const B of k){if(!B)continue;if(B.type===1){L=!0;continue}if(B.type===0)return a.INSTANCE;if(B.type===6){U.push(...B.expr);continue}U.push(B)}if(U.length===0&&L)return n.INSTANCE;if(U.length===0)return;if(U.length===1)return U[0];U.sort(e);for(let B=1;B<U.length;B++)U[B-1].equals(U[B])&&(U.splice(B,1),B--);if(U.length===1)return U[0];for(;U.length>1;){const B=U[U.length-1];if(B.type!==9)break;U.pop();const Z=U.pop(),re=U.length===0,me=S.create(B.expr.map(Ee=>w.create([Ee,Z],null)),null,re);me&&(U.push(me),U.sort(e))}return U.length===1?U[0]:new w(U,F)}serialize(){return this.expr.map(k=>k.serialize()).join(" && ")}keys(){const k=[];for(let F of this.expr)k.push(...F.keys());return k}negate(){if(!this.negated){const k=[];for(let F of this.expr)k.push(F.negate());this.negated=S.create(k,this,!0)}return this.negated}}class S{constructor(k,F){this.expr=k,this.negated=F,this.type=9}static create(k,F,U){return S._normalizeArr(k,F,U)}cmp(k){if(k.type!==this.type)return this.type-k.type;if(this.expr.length<k.expr.length)return-1;if(this.expr.length>k.expr.length)return 1;for(let F=0,U=this.expr.length;F<U;F++){const L=e(this.expr[F],k.expr[F]);if(L!==0)return L}return 0}equals(k){if(k.type===this.type){if(this.expr.length!==k.expr.length)return!1;for(let F=0,U=this.expr.length;F<U;F++)if(!this.expr[F].equals(k.expr[F]))return!1;return!0}return!1}substituteConstants(){const k=C(this.expr);return k===this.expr?this:S.create(k,this.negated,!1)}evaluate(k){for(let F=0,U=this.expr.length;F<U;F++)if(this.expr[F].evaluate(k))return!0;return!1}static _normalizeArr(k,F,U){let L=[],B=!1;if(k){for(let Z=0,re=k.length;Z<re;Z++){const me=k[Z];if(!me)continue;if(me.type===0){B=!0;continue}if(me.type===1)return n.INSTANCE;if(me.type===9){L=L.concat(me.expr);continue}L.push(me)}if(L.length===0&&B)return a.INSTANCE;L.sort(e)}if(L.length===0)return;if(L.length===1)return L[0];for(let Z=1;Z<L.length;Z++)L[Z-1].equals(L[Z])&&(L.splice(Z,1),Z--);if(L.length===1)return L[0];if(U){for(let Z=0;Z<L.length;Z++)for(let re=Z+1;re<L.length;re++)z(L[Z],L[re])&&(L.splice(re,1),re--);if(L.length===1)return L[0]}return new S(L,F)}serialize(){return this.expr.map(k=>k.serialize()).join(" || ")}keys(){const k=[];for(let F of this.expr)k.push(...F.keys());return k}negate(){if(!this.negated){let k=[];for(let F of this.expr)k.push(F.negate());for(;k.length>1;){const F=k.shift(),U=k.shift(),L=[];for(const Z of X(F))for(const re of X(U))L.push(w.create([Z,re],null));const B=k.length===0;k.unshift(S.create(L,null,B))}this.negated=k[0]}return this.negated}}class D extends l{constructor(k,F,U){super(k,null);this._defaultValue=F,typeof U=="object"?D._info.push(Object.assign(Object.assign({},U),{key:k})):U!==!0&&D._info.push({key:k,description:U,type:F!=null?typeof F:void 0})}static all(){return D._info.values()}bindTo(k){return k.createKey(this.key,this._defaultValue)}getValue(k){return k.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(k){return r.create(this.key,k)}}D._info=[];const R=Object(T.c)("contextKeyService"),P="setContext";function N(k,F){return k<F?-1:k>F?1:0}function M(k,F,U,L){return k<U?-1:k>U?1:F<L?-1:F>L?1:0}function z(k,F){if(F.type===6&&k.type!==9&&k.type!==6){for(const B of F.expr)if(k.equals(B))return!0}const U=k.negate(),L=X(U).concat(X(F));L.sort(e);for(let B=0;B<L.length;B++){const Z=L[B],re=Z.negate();for(let me=B+1;me<L.length;me++){const Ee=L[me];if(re.equals(Ee))return!0}}return!1}function X(k){return k.type===9?k.expr:[k]}},TGq3:function(j,W,y){j.exports=y.p+"static/lockclose.365036e8.svg"},TXba:function(j,W,y){j.exports={wrap:"wrap___3g908",content:"content___DKfAL",mainPathWrap:"mainPathWrap___1gVR9",colorBlue:"colorBlue___10YHC"}},TXwP:function(j,W,y){var I,v;(function(){var T;(function(){"use strict";var g=[,,function(e){function a(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var r=new a(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},a.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},a.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},a.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
`);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},a.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function n(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}n.prototype.get_indent_size=function(r,i){var t=this.__base_string_length;return i=i||0,r<0&&(t=0),t+=r*this.__indent_size,t+=i,t},n.prototype.get_indent_string=function(r,i){var t=this.__base_string;return i=i||0,r<0&&(r=0,t=""),i+=r*this.__indent_size,this.__ensure_cache(i),t+=this.__cache[i],t},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,i=0,t="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,t=new Array(i+1).join(this.__indent_string)),r&&(t+=new Array(r+1).join(" ")),this.__cache.push(t)};function l(r,i){this.__indent_cache=new n(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},l.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var t=this.__lines.join(`
`);return r!==`
`&&(t=t.replace(/[\n]/g,r)),t},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(r,i){for(var t=this.__lines.length-2;t>=0;){var o=this.__lines[t];if(o.is_empty())break;if(o.item(0).indexOf(r)!==0&&o.item(-1)!==i){this.__lines.splice(t+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}t--}},e.exports.Output=l},,,,function(e){function a(r,i){this.raw_options=n(r,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}a.prototype._get_array=function(r,i){var t=this.raw_options[r],o=i||[];return typeof t=="object"?t!==null&&typeof t.concat=="function"&&(o=t.concat()):typeof t=="string"&&(o=t.split(/[^a-zA-Z0-9_\/\-]+/)),o},a.prototype._get_boolean=function(r,i){var t=this.raw_options[r],o=t===void 0?!!i:!!t;return o},a.prototype._get_characters=function(r,i){var t=this.raw_options[r],o=i||"";return typeof t=="string"&&(o=t.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),o},a.prototype._get_number=function(r,i){var t=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var o=parseInt(t,10);return isNaN(o)&&(o=i),o},a.prototype._get_selection=function(r,i,t){var o=this._get_selection_list(r,i,t);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return o[0]},a.prototype._get_selection_list=function(r,i,t){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(t=t||[i[0]],!this._is_valid_selection(t,i))throw new Error("Invalid Default Value!");var o=this._get_array(r,t);if(!this._is_valid_selection(o,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return o},a.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(t){return i.indexOf(t)===-1})};function n(r,i){var t={};r=l(r);var o;for(o in r)o!==i&&(t[o]=r[o]);if(i&&r[i])for(o in r[i])t[o]=r[i][o];return t}function l(r){var i={},t;for(t in r){var o=t.replace(/-/g,"_");i[o]=r[t]}return i}e.exports.Options=a,e.exports.normalizeOpts=l,e.exports.mergeOpts=n},,function(e){var a=RegExp.prototype.hasOwnProperty("sticky");function n(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},n.prototype.peek=function(l){var r=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(r=this.__input.charAt(l)),r},n.prototype.__match=function(l,r){l.lastIndex=r;var i=l.exec(this.__input);return i&&!(a&&l.sticky)&&(i.index!==r&&(i=null)),i},n.prototype.test=function(l,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(l,r):!1},n.prototype.testChar=function(l,r){var i=this.peek(r);return l.lastIndex=0,i!==null&&l.test(i)},n.prototype.match=function(l){var r=this.__match(l,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(l,r,i){var t="",o;return l&&(o=this.match(l),o&&(t+=o[0])),r&&(o||!l)&&(t+=this.readUntil(r,i)),t},n.prototype.readUntil=function(l,r){var i="",t=this.__position;l.lastIndex=this.__position;var o=l.exec(this.__input);return o?(t=o.index,r&&(t+=o[0].length)):t=this.__input_length,i=this.__input.substring(this.__position,t),this.__position=t,i},n.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},n.prototype.get_regexp=function(l,r){var i=null,t="g";return r&&a&&(t="y"),typeof l=="string"&&l!==""?i=new RegExp(l,t):l&&(i=new RegExp(l.source,t)),i},n.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(l){var r=this.__position,i=this.readUntilAfter(l);return this.__position=r,i},n.prototype.lookBack=function(l){var r=this.__position-1;return r>=l.length&&this.__input.substring(r-l.length,r).toLowerCase()===l},e.exports.InputScanner=n},,,,,function(e){function a(n,l){n=typeof n=="string"?n:n.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+l,"g")}a.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)l[r[1]]=r[2],r=this.__directive_pattern.exec(n);return l},a.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=a},,function(e,a,n){var l=n(16).Beautifier,r=n(17).Options;function i(t,o){var c=new l(t,o);return c.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new r}},function(e,a,n){var l=n(17).Options,r=n(2).Output,i=n(8).InputScanner,t=n(13).Directives,o=new t(/\/\*/,/\*\//),c=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,f=/\s/,h=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,E=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function x(O,C){this._source_text=O||"",this._options=new l(C),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}x.prototype.eatString=function(O){var C="";for(this._ch=this._input.next();this._ch;){if(C+=this._ch,this._ch==="\\")C+=this._input.next();else if(O.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return C},x.prototype.eatWhitespace=function(O){for(var C=f.test(this._input.peek()),w=0;f.test(this._input.peek());)this._ch=this._input.next(),O&&this._ch===`
`&&((w===0||w<this._options.max_preserve_newlines)&&(w++,this._output.add_new_line(!0)));return C},x.prototype.foundNestedPseudoClass=function(){for(var O=0,C=1,w=this._input.peek(C);w;){if(w==="{")return!0;if(w==="(")O+=1;else if(w===")"){if(O===0)return!1;O-=1}else if(w===";"||w==="}")return!1;C++,w=this._input.peek(C)}return!1},x.prototype.print_string=function(O){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(O)},x.prototype.preserveSingleSpace=function(O){O&&(this._output.space_before_token=!0)},x.prototype.indent=function(){this._indentLevel++},x.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var O=this._source_text,C=this._options.eol;C==="auto"&&(C=`
`,O&&c.test(O||"")&&(C=O.match(c)[0])),O=O.replace(d,`
`);var w=O.match(/^[\t ]*/)[0];this._output=new r(this._options,w),this._input=new i(O),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var S=0,D=!1,R=!1,P=!1,N=!1,M=!1,z=!1,X=this._ch,k=!1,F,U,L;F=this._input.read(h),U=F!=="",L=X,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),X=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var B=this._input.read(u),Z=o.get_directives(B);Z&&Z.ignore==="start"&&(B+=o.readIgnored(this._input)),this.print_string(B),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(E)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(U),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var re=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);re.match(/[ :]$/)&&(re=this.eatString(": ").replace(/\s$/,""),this.print_string(re),this._output.space_before_token=!0),re=re.replace(/\s$/,""),re==="extend"?N=!0:re==="import"&&(M=!0),re in this.NESTED_AT_RULE?(this._nestedLevel+=1,re in this.CONDITIONAL_GROUP_RULE&&(P=!0)):!D&&S===0&&re.indexOf(":")!==-1&&(R=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(U),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")R&&(R=!1,this.outdent()),P?(P=!1,D=this._indentLevel>=this._nestedLevel):D=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&D&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(L==="("?this._output.space_before_token=!1:L!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),L==="{"&&this._output.trim(!0),M=!1,N=!1,R&&(this.outdent(),R=!1),this.print_string(this._ch),D=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var me=0;me<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;me++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[me])){k=!0;break}(D||P)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!N&&S===0?(this.print_string(":"),R||(R=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ee=L==='"'||L==="'";this.preserveSingleSpace(Ee||U),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")k=!1,S===0?(R&&(this.outdent(),R=!1),N=!1,M=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),S++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),S&&(S--,this.outdent()));else{var De=!1;this._input.lookBack("with")&&(De=!0),this.preserveSingleSpace(U||De),this.print_string(this._ch),R&&L==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),z=!0):(this.eatWhitespace(),S++,this.indent())}else if(this._ch===")")S&&(S--,this.outdent()),z&&this._input.peek()===";"&&this._options.selector_separator_newline&&(z=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!R||z)&&S===0&&!M&&!N?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!R&&S===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&f.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(U),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),f.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var te=L==='"'||L==="'";this.preserveSingleSpace(te||U),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&k&&this._output.add_new_line()}var Ce=this._output.get_code(C);return Ce},e.exports.Beautifier=x},function(e,a,n){var l=n(6).Options;function r(i){l.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var c=0;c<o.length;c++)o[c]!=="expand"?this.brace_style="collapse":this.brace_style=o[c]}r.prototype=new l,e.exports.Options=r}],s={};function _(e){var a=s[e];if(a!==void 0)return a.exports;var n=s[e]={exports:{}};return g[e](n,n.exports,_),n.exports}var p=_(15);T=p})();var b=T;!(I=[],v=function(){return{css_beautify:b}}.apply(W,I),v!==void 0&&(j.exports=v))})()},Tl6Z:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAABuCAYAAAAXkODOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjY4Qjc0NjM3NTI4RTExRThBQTE0QjdDODQ4MEFBMzdGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjY4Qjc0NjM4NTI4RTExRThBQTE0QjdDODQ4MEFBMzdGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NjhCNzQ2MzU1MjhFMTFFOEFBMTRCN0M4NDgwQUEzN0YiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NjhCNzQ2MzY1MjhFMTFFOEFBMTRCN0M4NDgwQUEzN0YiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6LemY3AAAa7klEQVR42uxdCXPaytY8ArEaYzt2cm/efe///6+v3ktu4ngBm13Ah1zdUTMeLYCEuYmnSuUFEKOZnj7rnAnW67X94q21ucLN1cbvc1z1zVXzXG5byRXJtcDP36YFvxhY4sk+21yNzTXcXL3N1Y+fs6LvWwF4M1zTzbV+B8vptxgUFynssA8Igj1AtgZgJriid7CcRmticuKJvd5cnYIgmIkIiUTELPHz1RhBZNUhzkIwF68sQMXAGW2uccq938FyBJB8gP6R1+aYsBl+j8A8nOi6XAHAp7rLygFThJ8EW4D+tADWVgp41gDNE/rxDpaKWzyhl9BD8gAyxuREAEUbVyB6BpXUZc6qr3nYpYGfa9yH+orhe2LgdFNE4gT61PQdLNXpI5cZlM9JH2Di2pisOl4ju1QhChpiadXwPSP0JwbNOV736Tbs7ztYyujf5rrBxPvaGAM+hzjoASBjrOC30BMI1BB9GAFEffQvEMU3xOsPANc7WA5oH1OAMscAT2EqdzEBTydkgQRglp70bSlM0xQxtcbzPL2DpTxGoah5wiR0sXqfT9y/0RB/zwCi8QKiVVsskn6cqsl9imBpgFEazv9jgDxiVfYgap5LBGdNlNm5/L4qEYghQGJ4lhBmf8PRZ+5LfLZfFiwdACVwRM4dBvEKq2+45wTWoIiqnySEnqOm8j2YoCWAWWGCRyWZ/5cQo08A0IXznpE89ztYPBbPlbPCHmUwwz0UwUB8IG2AY2FJfCgS30me+cw+lTlgZ7geRfSGzkK5PRWxdCpg+QDFT03hW/x+BUoe73C/FlZvV8zZiVUfuwnxHMMdQF3D88+xMK6csYjv891OwJn31mDxKbJjKHm0cu4KDnwAXeYcA/soK5LW0jzjs80SfB4hJr4tZv1iB5bpQgQ2MS7qSf57h3v9cmCJJ+iT47AaYpKvREcocp8+rjnuMXHecwUg3afoHB30ZVKSo4wM07PE+VaEGRoA2xDA+CTKbwSGWfxuYPEBhRN5bUnwLa9xQug1naWIpE+ySv923teGUs3X/69EUVVDH/sAzUMB/SMAYB5FqW/JGE1/N7B8siRKvIbYGWNQVgVWTxOgqkG3me+gD333ME8HtD/DJJWtH9QsiWsNwTR5A9/Fe9jXP2C1fQFzRb8DWK4tCQYuoJPsQvvnGPhHxxlXT9Ft4on6S5hjiBXuview6l3uDTx/HQukyHO3wSY38rnPYMjoVwaLei1joHyz7VhJHj1fYPB8Xs4rvGfiYY4bfN8QA/7WpigDo8MCelkPTDLA58biYvhhR4x/HRMsbVAp2xc86Acxk7M+ew0mGaRQNsXSBKLGVThPzYXehK4U4flXOQpzA0x0iTH4BFb9toeOpf6nDsTujyJa+zFaDatbrZ4lBuuuwMq6wsNMUt4zxf3SUipPMdYST9BXgPxzjqUTYVKXIkKnljgy7wtaaHROdmzbS14/JWZRhXYOeXsD0GTJ7Uv4H4qYjGeWeGP/abmvNO2/54zHB7ArUzI+ZyjtgQCjba9jbTMR2Z+sgOPvGGBRPWUN8dPD5I9yBrALYB0716MsJ90ujYp7FmACsPE9FgQXYYRxrYtoaTvssbLtZPKlY3REKSL+aGKoZdth+DtLkpxHOYzSKRkotYLKYCjOsO8Zoq/s9iQsnAaYNcawi/cvME5xn//tEcMR+j/G/dKYYYzF8aY6i2bcj4Ds6xyFtg+RUjajXOH75wDCOKW/N+jrCL9/PaJYU8CkufeXeJ+7VaUGMMwEIEX7PSmyKKoES1ucYRGo8xoK2jpDme1XAJSmOMQiUHkffZkJm/VtO5eEFsvfORZHYOV5fZ+E3f4GG6rl0gDoW+Ibmsh1SD8y2bcKneUCD3Bl2y72Bv4eZoisa1g9ZXtQ/8AqvZfJvQaDTfB3aIk3WJVDJlr9SFEeOxkm/SHOu0/iLAwcUTQT/WNe8uK+PQazBJbEakLHTGYa4feUz9axgqsIxXfAELfyd9uSJKe26AJtAIjZ9w/o/1+W7HXm/qClJXGaZgljp+Bz52Uh4KgqzWJpr3chVCqGao7NvsKKo3s+rd1g9e4LlL5tb1xfYkADSyLYdUviThP0tW2vM+3pr+ngs2s8Q8+Sfc1TWfVjAGzXFjqiRbeqrAQYkyNZgwt8b9tSgpVlgSW+z58e5w7d60EGEJj7sW/OacOSdEvdXRiJvvRNGKAjsnkqTi6OBbdxcOtpICsukIlc4D5d+d5lQfYgm83xcyF9vrW3S3SaoH+VgqXrAcoKYLm214E7ZaIiCmQeUCPcQ8VaCHDULYmlMBttJczSF1BNxUrqiNk/syRSTMD1BXBUOMcZ7NEUVlo41supbDSbYKweqgKLTob7xQ2stmWGMjy2wxJ6NDDImEdbLAUVby2x0FYOOKjgjQQ4ExFJl8KQNEtrwlQtAY06xcaWeKpD/G9hp7l1hX30smRZ1tAfHuWIWx0eU8DSgOj6cqBMvrRk/5DZ9lZVbi0NHStiLave95qa8jXxz5hjxjY9TrN9/Byn1P7AgnmuSgwNPWBZ4P5ZrPIcBMFBytsG7C/6xeY+D5vf6+iHpkFMNq9Fm9eoM1yIfvDyWsbtn3F/fq7t8ZKqnyPuR6UpA5v+NDffMZe/q9JbKgFLbAl8cP7HQNcwQ3TEHfpfST6JzZitb2TiHjYDGv+vIZPbxesDvBYzRBcgWgO4KwFVWywVX2Otl/hz46oBImZ9c/N3/HzDCvWWS5+j8VCwcEedW91ggAdL00XOgdzVnoNHXaFLH0o8YfL/S6y4uSOeXsSHvEaAxIDobX5qaY6sRr1lvPn84hgAER3rafOd+1qOTXEhzDJM6KXoYKWBxTew9IhOMkzIM8d6KTJ4qjg2xSk2wGpj/m4sWkZgiPh/fYAogph4xt/xfa4AkLxxWKpT7FDRmfGMfLZMgMT931Hctez1BrYpnKA+OTb1mdCHgqWWAiB6RNPM7PkuSu1mcLhVYyq+m4b4KqZgiBDM0RMvLMVOE68VrRrFiO1o8/nKTFv0tSWKONu3zfdOPUB6WTCbv7dez7EWP3nmiqVBRhmi6KFMsKxSvmidIWLOrdh+IBfpMWN8x6QvNr8/gSHigb4Ak1ChfRJl9xoDnZcNtnbYY1EhQLoYB5bdoP9nDlZ5KdOxeR/3WzfFnxT38a4gULg4axlqRNp4h+akox4KlqlHlmfVh6XM3GnvS8wMth1X6gIMpOlHsEcbuofPrKUfYS4yuW6JW32G7zlmGwCYcwERrUrGowgkfV8IRupY/h6rWo7ulaW8d0xqxhwKlqV4Q2lCn1l6UZpzO7yUREiTm2Invi+A4jNr55aUzdBQwHNVukcB8L8ox1RiNz+vbLu4D8XnlhjC+9qizxQJC8yz2LqACV0aWLSqAEVPlm+lvati61hATGC6ADgaKYPAWEtosjFe/RMliJJriMNhihXTEUtt6vl8/Cx9S/ZgP+DnZ0zUCmKo44grAmlc0M/C8dCxGlt+ovzUNaEPBUtDdIGZbYftfe3Hvt5aKLAs5OMqohpvaeIBqedU5SQLYYU9Qy9QJZWrfpAhkgdQnueyGHrisLwSIA1gpkcUVzGQCvpa1ligXYzLbAdGYhR6UgZYmh6lKK0jHdszmirihg9Pl/pCABtgQB+t4gbQciD/4/heZkWcdAB/DexxJmPJ+nNzMhLYqiu6GF0BRR1zqz3FP0XRpCxmUeWxlSEHlzkiSifD3QRFv809vqcmfX+qWjEFWJU9fInRmutS5J7/EdGitVkY3GxD1LXFKqG4qomPqMqN8oxCW9nMMs/x2gYZXkNlD3pR6X299ZixK6s4SIf+XOAZm6p44jmpn1FRjJX3j/js3KHypUdkxDpDJGKoL2L0L/m+J4/F1JLxrxIsWyZ0WU45WkVpictMuZw5/2uBWpU9Yrr88QZmrG8hNGXVjyE6+hi8r1h1cWDvDtYNPcMt+XzTJwI8okqT2wfiaPRZTFNZnMMKx2DLhD4ELAEGoSWrfJ1hBbGkOcHREvb4nhP9rVr/6EAZnrrmrfNebhe9QyR7AqcfI8F0ntEieoAndpXTh76wPPNkrgGUUETVSEBLa6rofqhDRNHBYGH5CDKLr9PUPUjnfyp7xOO0efBjg8M1bZUdpzkT+pJFJnGaOZ7lQiZWzwbo5FksYKMLS/J6NQPvpwiSVAk3ntW1asugTtC/4FBmUX2lIXK8Y9snh43sjYoBYzJc01Zl8ggTEuX4d3pgishxjqklNBEL5hre5LygH6s/PECsxP37n7gKznCvpuvRhY7UqhgsP03ossCyBvpaeOCpsscbiZamY5K6A/0Z4uY54z5dS/Y/TS05/CqybTd85BFrbRHB4wy2ir9jCPYgs/wBJlFH3IMAsS33bx5hSF9E0b5gCbHSlgIGmrZvwR5ppi3FxMRVKDefmUJxzFr5c3GKcYLcaHDT42klmMiyaX6XuG/1OMsPwJ1u7sUCzQ8EIp9v8/PctoOKkTBcVTsCmFi+E1i0Q6yC8GDllivfh0GuHIcWc3DHOUrzRAAwTnGccWsGxZHBaxs6Fo+a1Wrmfs5a+QDpgweg1P/OhSVfBRXRp1pFC7QOC62LZ7sPc97MEp1NgINi5fENQFHzmJscpAf1eGawz0pYZC6e5SIe13jVR7a9rWSuZi5BBfHFrP84QhzuYO3REfbRJ4I8XuBVSezRFlbmRr1nnes0sNB7+mS7Ff6t0mKZu5OKCfhawCzm6uR2VJ38XWQ+RctXJ2m66dFVVBR1d/CHEBRV5tlSUrC/TNXI3B6bBhbd+FRFGL8r5mWWxTIXj2kzz7IQkKnushKNvuWZ/O4OK3+GfobMvBMdYiXueBVFL95o8bwus0AA8fK1zAi5sId6yLmN966oGGNhu2MyB3chvtSV2wzMWYbOQWo/K8BGNUvKZqliSwviDw+LTDD5RVf+WESEmswzjwLtY8dVQZE3L5k9OrJQfsAQ2VnPZB2QojVZy2htx7FHxTErp3SeJy4gv+fQbb6m6QLxSpfvmYrYtQKTGEnc59YxmUOH1cI04Fa8EBUcdTBdyxmHvQySUFbXsffbzrDKWPI0KyhWVIkbARBNz+rU8hhTZ/LbO/R7QJZI8edEjuJbtStB2YPzyeSmG+idl8JseyvEvPnlEUESKgCgaE4tOXolbcUUVUDJXnOPLhDZ6+DbS4lQh3GydCKazVqsaOrqKhV7pLXIIM+MfvAs+LWM9cEmNkPsDas+IKWix5zJjNH/MXaj00HlWT1FxASdWh0FhFgqNGVVUZ65jJMySbqf+6d73460ZVUAUhf2IGv4zgIgOEKxyg4GyxoDG9px6oI05WHILmOwSxxLeUqh7nnBSaFntp9iFU0cgI0BsLxw/4iTdKwIOWJQHUsqP/1w9KSzDKcowUFL08oASwDHS+sIz18TsLgWyB2smY/qO4Hi2LTiJ5nRvL0S5TIv1THKM80P2DJaFBhk3HOwbzwngxSm1YW3zGDweYoT8yD9gbVpq25dx/HnWhoDKKjXSChS66moAk7zdpgz0KoD1Fy2OwJrhI5pzXTKxx3EWtPS6wlzgX3w6HQHiaG2Hac4cCfLFI6dVbJJ3QCYMwFBUfN2nOVMhIMsdD3EVYoX5BW7tfNf9I59TGrJU77PYPG1YxzMymCWlh3ntHImGDP+8SrhOAYI9sL0oNg1dzVBN+/NO2XkTFiO+TbPFbHHmTg+zwCQl/MFNv28P+D2eQd5BaJrda2EYGMoNz7LQaqLWuZisBTYY4EBZ1nweZYFAsCsLKn3VrZoGIglE5UMELrTOTYzS+rYBWKlHKojdjKkQQvfq9mMU8zx6FCwLPAFPUx61uQE4kRjq6NTM8sOHdw5ylYnwwKZCFji+M1fANvoUF8GPl/m7kQyFfWrZ0zKuSURXZbOWEJPWpcAlscMBn+W79fxPhgsc9jr9GaOcyi8mdHJonEmmsqvLBBJZSTAGpaUau/DuTYHlT/Y2zdm27NSVB1guGW5DtSP6WFD/0sViAP9LmGOnrl0DIpaWToLc2hHlp/f0cwxQYu2GQDgSzhmQtMzTVZYSj1REkPb7WDwQ5ijbkmy0xK+Ft2Y37RkpySrSb14WiUIykpTS7lvnNC9j2HRQx/Wnr3O3J3ZsO1jfg/WS3X7wdK2CwSntVUGUKY7rkbK12fHEdWDdXInooN1dYeyP6dq64VbS2m5jDEZF+jDz3owwh7nUg7kpQqVsAGZ5Rn9j8uZ/XcXDzD6xQO70twTM4dVaH2W4mfhSg+FPeYZnsy+45fhAdW7yOHINaHhdeVWiG8ZOseqClbBRDYA1JgdWL+WrMJDvR/x+kvBINRKMWGWpTALN6QvRTxc43sme/h2XgopZlSjqlsSBtAFPjp0fNxtER/wAK0MsCwAjHNLtqQ+7Wmx/IwSY7X8BErV8RaatvDLXAAIZMcadkoyQy9miIGwB+vUpbGHlntfilhlwtGD7V886CLDKAgFME2xQOM+35YNFrPtmitZIqSM3AyNEvMIllFVkVsnYvuykxIOPB7jy8pUL8nowh4dhz2GkpjVANh+lvsSnUVr8n45tPQY9J+sU+B6EHFNx3pdWwkJbqHDGJElMYVjuL65v2iakuleBkDcagy0XPiMVAinaqHEugHEYgD2eBZHWxua5QwAGDjMEgqzrLEAyshGvABQ1xnjGdn2kchhWQ7H0GfOYjVEZci5Au0OA13W/dL2Uz9ixfEEMCYn83iZDkQP389ofF2sGnpM+bma5NYG4g3WY2hCMFgZ3u+4PaXcqyHzF4qUCMuax9DjYe2J0+cYYCmj0Q/TlknrQLdqWRIoHYMFftbINSnNbttnD51hwpfCgFT+zy0pPqzH0FAJpp9lauXs6wmgT2adrnIJveTC+dyzlZR072OWdUET+i2bHs0yFdF5KxPzGc8wVPawpLTFzHlNTcumbR8107EkoLmQCeBrHxxmiZzxPXSyrkQ59rU++tTzzOmgzEHfEvGW5OTSEXUqZ+HovpyVWBWLDKdfAwNZF/ZwGaLmMS2nwhBkj5HDHqxixSNwmYTUEFOZUf1DwMLdiIMMVmni9X95rM2oKrBQFHVFFJ0CWPril3gs6M+ZgZrvhCEalgT4VsIedfHELvD/J0tC/Mosc4dZeuJ/4YYt13A4VMRmVSS/AlCuqmSVNLBMRBR17XhbVWviou46Hsp9duYx71RPq1/i/h0ByMrDOi2ZeDLLvaz0QCaqBwfi1DO2dTssqezGYTW3UbFe2OtzGsdW8n4wH1g4OBoUq6q4sFahvJRJKUOx5gGRTRnYpSikDSiDXy05eVTZY2zJyfUBQEHP8VwUyEmKzyk6UATQkXefofTG/fth2zsNXL9ZpWAhKjuiK5RlFbmHSi5lRVeRfMXKliwHMvc8/2d890iek+cqr8RCXNr2mdNNMODXCvrds+TklDRf1yXGrWGvawM/WQXJXGlgmThUdyhYWCqMTHVv+XkzZbTvBXw8DYwDdbMu6H9kyTbPIfr/J+7J0MhzQarvi/8lr/GI4O8ZzEQROfYotQsrlsBWGlio5bds94wuX8VKlqC4xb2L1PC/wUNXCag1+vRZdJs+xNSTMx73+J/GXwY54/DZEi/xssCii8eIh6FnBQov0G9Xqc06uqcUpdIyRBHpNm+TFwu/fDL/Sawc+GsBYpEDoT5b+rFzZbUI4oXBxO8ZIlF9HV9zmILxmLo8+0XG+7sAym2GvhHIImqLz4jtoUrrtQhYTPSXrBVBU+0+ZUJohnL/bZ7yx9X9Z4HvP7RNAJKvOyiGKxGx9ZSJbTo+j6zTUq7Rh6xkqGtxnF575qvSpPtazoqjfU8fRN9jopkoqLMcU5aDW3Tyh1j1N55VVAVgiugUerhFG2wapoztLfrPIOkqxeq5SDG/tV1Ysq/ZPZlsUaX4+Yn+nAAX83JvLMkUm+9pErJaAtvjDk6jBih6WpXy5mGFWgp4KC6WApq7HB3Ml0xWx7gSVFljei5m9CfbDsWswYiLtwZL3RJXeRmKJs86VFHDA62mOSubIsxktZbNsnTSUQFPy8b7l6NLrdCnovm0XYiRseUX1mlaEiS89jD7DztSwDevlIWeBFYW1Q9FXFGbn1pSPDhLR6CVEFSgx3Bz/CdL3PtBxri44/jR4+/wLb6PeNZ7MNI6h9mpdF95gDKwI2YGBBWcOL4rw9wBRKsM6ve1j+I0K2vr7aVjsTx7dAGXHU0YYpkh1s4tKbt+n/OcAQBFXefKo7M9H0NPKeJnqbpNsCLOIH8/QIcZQgEukrBzC4r+BPY7tGAzrReCNk2nqovexAMaHlMmn5n4VE6LiCqy1ARGg0/0jI8NlLdkFrYPzop5xkT0AZx1wUnm8backOWBoLkGAPLAV4fS/sUz4T15tkGKAswiSsyF0eKME/ze9jDKXgUE/+lgoaavZSH0JPMPGLio4CTXLNkxudgBcL57Ff2c5ipT12Hp1qFlb1lhQjez9Roioj7aa4fkzzq+b9FOASwc5BvbPvL3ESuXR8Ht4nBigtISk8eCwLOSVyQPGmdwdA1wFI0ZEZgXuPi5C4+y/6ZAOSWwkJLp4GK0+BkDdG7JYU/RHkBk8jarGtBXxGuZY/HxTEZeTPyuW3Iu4sR232zPlMw83XEXn9RvARY1LTV4OYMeQoVydoC5WLNkd2FDrkDM55Xzfj28aiEXt5PsM4AUVd2c901thwrYvxtYSMs3lhSgYR4rvZTtkn0/CgoFx1rAsyxxMTBgGeT4fB6s2kOnfgmwqFnfEJ/Go0zc+AT7y+NsvnmAHIIV80BycmxyCn6WIi0SYHAj1xDg+WLbB2Od41kGdqQCgims8V2+n15mlgkp0uaWURDgnVmygcyKSQ0xMRtYeYzjsMoj41j8/7jC1Uk/Sih6C4sEMF/3zIpXBj8Ja+efDBafLsOSHNzbRP9EIJYTj4o5syQIuospWxQsugvyEIbmnqDhyU/APwgsChoW1mvCUupZ4gFtil+FWymmtr3LktbMogD7cLvFyrYrKjGDsLbnc3AHwb7lSt7BsodvZiFKI5OtfY07CWZi3UQO41w6k08Tu1ZCXwmO6QEm9ztYSmxuRJjOtsijZEaWVNdc2GvnXGBJCIFH1zUwyS0rtnmMPqHJKVo3vztYTJTcmqOz+ML8ZTdWTuCpHctfaWB/RbD4wLO2JJ2hzDMKmKc8t+RcyV92QH8HsLjKMTeu86LJTZHjRpzVi0tRRdH1Ww3e/wswAKUTk3Afdk5AAAAAAElFTkSuQmCC"},UZu5:function(j,W,y){},UbZX:function(j,W,y){j.exports=y.p+"static/success.2e2721eb.svg"},VPUa:function(j,W,y){j.exports=y.p+"static/passall.2673ac21.png"},VSMT:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.decodeUTF8=I,W.encodeUTF8=v;function I(T){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(T))}catch(g){if(g instanceof URIError&&b)return T;throw g}}function v(T){return unescape(encodeURIComponent(T))}},Vbye:function(j,W,y){j.exports={"diff-panel-container":"diff-panel-container___APxdS",enter:"enter___2JYCH","line-break":"line-break___1Ly2e",empty:"empty___2h7RZ","diff-panel-container-2":"diff-panel-container-2___GRUnn",outputColorWhite:"outputColorWhite___3zp1c"}},Vhoy:function(j,W,y){"use strict";y.d(W,"d",function(){return b}),y.d(W,"e",function(){return g}),y.d(W,"c",function(){return s}),y.d(W,"b",function(){return _}),y.d(W,"a",function(){return p});var I=y("MI8n");class v{constructor(){this._icons=new Map,this._onDidRegister=new I.b}add(e){const a=this._icons.get(e.id);a?e.description?a.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const T=new v,b=T;function g(e,a){return new _(e,a)}function s(e){return e?e.replace(/\$\((.*?)\)/g,(a,n)=>` ${n} `).trim():""}class _{constructor(e,a,n){this.id=e,this.definition=a,this.description=n,T.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var p;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const a=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(i){if(i instanceof _)return["codicon","codicon-"+i.id];const t=a.exec(i.id);if(!t)return n(_.error);let[,o,c]=t;const d=["codicon","codicon-"+o];return c&&d.push("codicon-modifier-"+c.substr(1)),d}e.asClassNameArray=n;function l(i){return n(i).join(" ")}e.asClassName=l;function r(i){return"."+n(i).join(".")}e.asCSSSelector=r})(p||(p={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(_||(_={}))},VjRW:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk3RTBEMDM2MDE3ODExRUI4QzEzQUNFNDcxODM2QjJDIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjk3RTBEMDM3MDE3ODExRUI4QzEzQUNFNDcxODM2QjJDIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTdFMEQwMzQwMTc4MTFFQjhDMTNBQ0U0NzE4MzZCMkMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6OTdFMEQwMzUwMTc4MTFFQjhDMTNBQ0U0NzE4MzZCMkMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6ejzPSAAACsUlEQVR42ryYz08TQRTHp9vQQkFPlAAHDXjxR2LwoEbhpCXon1DPpf0PbP8UwOhV/QOM8QIXIIRwASNtYo0RIye9FIF4Yf2O+U7ysmnrzM5uX/JJu7sz730zOzvz3mTCMFSONgOWwAK4Aa6CS3x2Ar6BJtgEH8BXJ+9akAVZUAZb4CK0twv2KdPHf2PZiCmBpghyAt6CGrgPJkCeTPCefvaGbY016Su2oGGwKhx+AVUwZjmqim0r7Gtslb6dBBXBLh2cg+cg5yAkSo4+zulzlzGsBOmGLTEqcx5CosyJ0Wp1ExXtUAA77PARTCYoxjBJ3yFjFfoJesGGnzlBVUoUGSNkzK6CSmLO3ElRjHx9Zk6VooICcMiHjQGIMTTEkpCVgsp80AZDls5WPL88xVhtxi5LQZu8uezgLOQqPOUpqip8/RM0wyVer6qjjoK0/QAPPASNMrbWMBtgO3sCMuAdOFXuNg02wLKKZ6eMrTUsaUHzfLCu4lserIEVkIvR38Se14Ju8WJf+VuNozXl2O+Avzf1O/zJuTDu+O77meu8Gme/X4FIrjoqOXOdVyb2WKDStYxrh4Bpp7bLCQo5Bo840W3MxP6tBX3nxbWExGyDu/y1NRP7SAs65MXtBMSscWSOHfuZ2J8CVgfaHnsI+cNPvsb/rmZib+lPbpbLdsdj63jouXV0zNaRxOY67bm5VqKbq0/6kU8r/ciK2qs+wASt3itBkynsWcKVRr8U9owxF3sl+a9Ekl8cUJL/0rYMOkixDNq3LYMGUSi2XQpFg67J9kRZ1EiglK6LsmevV93Xz8lIl8OGiuPiWWCftu9hg2RRvEJzHPOa1cI9DvsQKfJelW3kcUxLfk0+guSB1bbjgVXIPs9sD6wyMY/0nvJI7zq4IvIZnfkdgRY37feuR3p/BRgAhrFnXQBvMBoAAAAASUVORK5CYII="},"VrN/":function(j,W,y){(function(I,v){j.exports=v()})(this,function(){"use strict";var I=navigator.userAgent,v=navigator.platform,T=/gecko\/\d/i.test(I),b=/MSIE \d/.test(I),g=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),s=/Edge\/(\d+)/.exec(I),_=b||g||s,p=_&&(b?document.documentMode||6:+(s||g)[1]),e=!s&&/WebKit\//.test(I),a=e&&/Qt\/\d+\.\d+/.test(I),n=!s&&/Chrome\//.test(I),l=/Opera\//.test(I),r=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),t=/PhantomJS/.test(I),o=!s&&/AppleWebKit/.test(I)&&/Mobile\/\w+/.test(I),c=/Android/.test(I),d=o||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),f=o||/Mac/.test(v),h=/\bCrOS\b/.test(I),u=/win/i.test(v),E=l&&I.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(l=!1,e=!0);var x=f&&(a||l&&(E==null||E<12.11)),O=T||_&&p>=9;function C(m){return new RegExp("(^|\\s)"+m+"(?:$|\\s)\\s*")}var w=function(m,A){var H=m.className,K=C(A).exec(H);if(K){var G=H.slice(K.index+K[0].length);m.className=H.slice(0,K.index)+(G?K[1]+G:"")}};function S(m){for(var A=m.childNodes.length;A>0;--A)m.removeChild(m.firstChild);return m}function D(m,A){return S(m).appendChild(A)}function R(m,A,H,K){var G=document.createElement(m);if(H&&(G.className=H),K&&(G.style.cssText=K),typeof A=="string")G.appendChild(document.createTextNode(A));else if(A)for(var ee=0;ee<A.length;++ee)G.appendChild(A[ee]);return G}function P(m,A,H,K){var G=R(m,A,H,K);return G.setAttribute("role","presentation"),G}var N;document.createRange?N=function(m,A,H,K){var G=document.createRange();return G.setEnd(K||m,H),G.setStart(m,A),G}:N=function(m,A,H){var K=document.body.createTextRange();try{K.moveToElementText(m.parentNode)}catch(G){return K}return K.collapse(!0),K.moveEnd("character",H),K.moveStart("character",A),K};function M(m,A){if(A.nodeType==3&&(A=A.parentNode),m.contains)return m.contains(A);do if(A.nodeType==11&&(A=A.host),A==m)return!0;while(A=A.parentNode)}function z(){var m;try{m=document.activeElement}catch(A){m=document.body||null}for(;m&&m.shadowRoot&&m.shadowRoot.activeElement;)m=m.shadowRoot.activeElement;return m}function X(m,A){var H=m.className;C(A).test(H)||(m.className+=(H?" ":"")+A)}function k(m,A){for(var H=m.split(" "),K=0;K<H.length;K++)H[K]&&!C(H[K]).test(A)&&(A+=" "+H[K]);return A}var F=function(m){m.select()};o?F=function(m){m.selectionStart=0,m.selectionEnd=m.value.length}:_&&(F=function(m){try{m.select()}catch(A){}});function U(m){var A=Array.prototype.slice.call(arguments,1);return function(){return m.apply(null,A)}}function L(m,A,H){A||(A={});for(var K in m)m.hasOwnProperty(K)&&(H!==!1||!A.hasOwnProperty(K))&&(A[K]=m[K]);return A}function B(m,A,H,K,G){A==null&&(A=m.search(/[^\s\u00a0]/),A==-1&&(A=m.length));for(var ee=K||0,ye=G||0;;){var Oe=m.indexOf(" ",ee);if(Oe<0||Oe>=A)return ye+(A-ee);ye+=Oe-ee,ye+=H-ye%H,ee=Oe+1}}var Z=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};Z.prototype.onTimeout=function(m){m.id=0,m.time<=+new Date?m.f():setTimeout(m.handler,m.time-+new Date)},Z.prototype.set=function(m,A){this.f=A;var H=+new Date+m;(!this.id||H<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,m),this.time=H)};function re(m,A){for(var H=0;H<m.length;++H)if(m[H]==A)return H;return-1}var me=50,Ee={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},te={origin:"*mouse"},Ce={origin:"+move"};function we(m,A,H){for(var K=0,G=0;;){var ee=m.indexOf(" ",K);ee==-1&&(ee=m.length);var ye=ee-K;if(ee==m.length||G+ye>=A)return K+Math.min(ye,A-G);if(G+=ee-K,G+=H-G%H,K=ee+1,G>=A)return K}}var ce=[""];function le(m){for(;ce.length<=m;)ce.push(oe(ce)+" ");return ce[m]}function oe(m){return m[m.length-1]}function xe(m,A){for(var H=[],K=0;K<m.length;K++)H[K]=A(m[K],K);return H}function q(m,A,H){for(var K=0,G=H(A);K<m.length&&H(m[K])<=G;)K++;m.splice(K,0,A)}function se(){}function Ne(m,A){var H;return Object.create?H=Object.create(m):(se.prototype=m,H=new se),A&&L(A,H),H}var de=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $(m){return/\w/.test(m)||m>"\x80"&&(m.toUpperCase()!=m.toLowerCase()||de.test(m))}function Q(m,A){return A?A.source.indexOf("\\w")>-1&&$(m)?!0:A.test(m):$(m)}function Y(m){for(var A in m)if(m.hasOwnProperty(A)&&m[A])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ae(m){return m.charCodeAt(0)>=768&&ue.test(m)}function be(m,A,H){for(;(H<0?A>0:A<m.length)&&ae(m.charAt(A));)A+=H;return A}function Ie(m,A,H){for(var K=A>H?-1:1;;){if(A==H)return A;var G=(A+H)/2,ee=K<0?Math.ceil(G):Math.floor(G);if(ee==A)return m(ee)?A:H;m(ee)?H=ee:A=ee+K}}function pe(m,A,H,K){if(!m)return K(A,H,"ltr",0);for(var G=!1,ee=0;ee<m.length;++ee){var ye=m[ee];(ye.from<H&&ye.to>A||A==H&&ye.to==A)&&(K(Math.max(ye.from,A),Math.min(ye.to,H),ye.level==1?"rtl":"ltr",ee),G=!0)}G||K(A,H,"ltr")}var Le=null;function ve(m,A,H){var K;Le=null;for(var G=0;G<m.length;++G){var ee=m[G];if(ee.from<A&&ee.to>A)return G;ee.to==A&&(ee.from!=ee.to&&H=="before"?K=G:Le=G),ee.from==A&&(ee.from!=ee.to&&H!="before"?K=G:Le=G)}return K!=null?K:Le}var Xe=function(){var m="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",A="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function H(He){return He<=247?m.charAt(He):1424<=He&&He<=1524?"R":1536<=He&&He<=1785?A.charAt(He-1536):1774<=He&&He<=2220?"r":8192<=He&&He<=8203?"w":He==8204?"b":"L"}var K=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ee=/[LRr]/,ye=/[Lb1n]/,Oe=/[1n]/;function Pe(He,ct,_t){this.level=He,this.from=ct,this.to=_t}return function(He,ct){var _t=ct=="ltr"?"L":"R";if(He.length==0||ct=="ltr"&&!K.test(He))return!1;for(var Wt=He.length,Mt=[],rn=0;rn<Wt;++rn)Mt.push(H(He.charCodeAt(rn)));for(var pn=0,On=_t;pn<Wt;++pn){var Gn=Mt[pn];Gn=="m"?Mt[pn]=On:On=Gn}for(var er=0,Vn=_t;er<Wt;++er){var sr=Mt[er];sr=="1"&&Vn=="r"?Mt[er]="n":ee.test(sr)&&(Vn=sr,sr=="r"&&(Mt[er]="R"))}for(var Rr=1,br=Mt[0];Rr<Wt-1;++Rr){var gi=Mt[Rr];gi=="+"&&br=="1"&&Mt[Rr+1]=="1"?Mt[Rr]="1":gi==","&&br==Mt[Rr+1]&&(br=="1"||br=="n")&&(Mt[Rr]=br),br=gi}for(var ua=0;ua<Wt;++ua){var fo=Mt[ua];if(fo==",")Mt[ua]="N";else if(fo=="%"){var Oa=void 0;for(Oa=ua+1;Oa<Wt&&Mt[Oa]=="%";++Oa);for(var Go=ua&&Mt[ua-1]=="!"||Oa<Wt&&Mt[Oa]=="1"?"1":"N",Fo=ua;Fo<Oa;++Fo)Mt[Fo]=Go;ua=Oa-1}}for(var Qa=0,jo=_t;Qa<Wt;++Qa){var bo=Mt[Qa];jo=="L"&&bo=="1"?Mt[Qa]="L":ee.test(bo)&&(jo=bo)}for(var io=0;io<Wt;++io)if(G.test(Mt[io])){var Ja=void 0;for(Ja=io+1;Ja<Wt&&G.test(Mt[Ja]);++Ja);for(var Da=(io?Mt[io-1]:_t)=="L",Bo=(Ja<Wt?Mt[Ja]:_t)=="L",xl=Da==Bo?Da?"L":"R":_t,Qs=io;Qs<Ja;++Qs)Mt[Qs]=xl;io=Ja-1}for(var Ao=[],ys,po=0;po<Wt;)if(ye.test(Mt[po])){var iu=po;for(++po;po<Wt&&ye.test(Mt[po]);++po);Ao.push(new Pe(0,iu,po))}else{var Ms=po,sl=Ao.length,ll=ct=="rtl"?1:0;for(++po;po<Wt&&Mt[po]!="L";++po);for(var Lo=Ms;Lo<po;)if(Oe.test(Mt[Lo])){Ms<Lo&&(Ao.splice(sl,0,new Pe(1,Ms,Lo)),sl+=ll);var wl=Lo;for(++Lo;Lo<po&&Oe.test(Mt[Lo]);++Lo);Ao.splice(sl,0,new Pe(2,wl,Lo)),sl+=ll,Ms=Lo}else++Lo;Ms<po&&Ao.splice(sl,0,new Pe(1,Ms,po))}return ct=="ltr"&&(Ao[0].level==1&&(ys=He.match(/^\s+/))&&(Ao[0].from=ys[0].length,Ao.unshift(new Pe(0,0,ys[0].length))),oe(Ao).level==1&&(ys=He.match(/\s+$/))&&(oe(Ao).to-=ys[0].length,Ao.push(new Pe(0,Wt-ys[0].length,Wt)))),ct=="rtl"?Ao.reverse():Ao}}();function $e(m,A){var H=m.order;return H==null&&(H=m.order=Xe(m.text,A)),H}var Ge=[],Me=function(m,A,H){if(m.addEventListener)m.addEventListener(A,H,!1);else if(m.attachEvent)m.attachEvent("on"+A,H);else{var K=m._handlers||(m._handlers={});K[A]=(K[A]||Ge).concat(H)}};function gt(m,A){return m._handlers&&m._handlers[A]||Ge}function Te(m,A,H){if(m.removeEventListener)m.removeEventListener(A,H,!1);else if(m.detachEvent)m.detachEvent("on"+A,H);else{var K=m._handlers,G=K&&K[A];if(G){var ee=re(G,H);ee>-1&&(K[A]=G.slice(0,ee).concat(G.slice(ee+1)))}}}function Ye(m,A){var H=gt(m,A);if(!H.length)return;for(var K=Array.prototype.slice.call(arguments,2),G=0;G<H.length;++G)H[G].apply(null,K)}function Ze(m,A,H){return typeof A=="string"&&(A={type:A,preventDefault:function(){this.defaultPrevented=!0}}),Ye(m,H||A.type,m,A),fe(A)||A.codemirrorIgnore}function Ve(m){var A=m._handlers&&m._handlers.cursorActivity;if(!A)return;for(var H=m.curOp.cursorActivityHandlers||(m.curOp.cursorActivityHandlers=[]),K=0;K<A.length;++K)re(H,A[K])==-1&&H.push(A[K])}function Fe(m,A){return gt(m,A).length>0}function Be(m){m.prototype.on=function(A,H){Me(this,A,H)},m.prototype.off=function(A,H){Te(this,A,H)}}function _e(m){m.preventDefault?m.preventDefault():m.returnValue=!1}function Ae(m){m.stopPropagation?m.stopPropagation():m.cancelBubble=!0}function fe(m){return m.defaultPrevented!=null?m.defaultPrevented:m.returnValue==!1}function ke(m){_e(m),Ae(m)}function Je(m){return m.target||m.srcElement}function ne(m){var A=m.which;return A==null&&(m.button&1?A=1:m.button&2?A=3:m.button&4&&(A=2)),f&&m.ctrlKey&&A==1&&(A=3),A}var Qe=function(){if(_&&p<9)return!1;var m=R("div");return"draggable"in m||"dragDrop"in m}(),dt;function Ke(m){if(dt==null){var A=R("span","\u200B");D(m,R("span",[A,document.createTextNode("x")])),m.firstChild.offsetHeight!=0&&(dt=A.offsetWidth<=1&&A.offsetHeight>2&&!(_&&p<8))}var H=dt?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return H.setAttribute("cm-text",""),H}var et;function rt(m){if(et!=null)return et;var A=D(m,document.createTextNode("A\u062EA")),H=N(A,0,1).getBoundingClientRect(),K=N(A,1,2).getBoundingClientRect();return S(m),!H||H.left==H.right?!1:et=K.right-H.right<3}var bt=`
b`.split(/\n/).length!=3?function(m){for(var A=0,H=[],K=m.length;A<=K;){var G=m.indexOf(`
`,A);G==-1&&(G=m.length);var ee=m.slice(A,m.charAt(G-1)=="\r"?G-1:G),ye=ee.indexOf("\r");ye!=-1?(H.push(ee.slice(0,ye)),A+=ye+1):(H.push(ee),A=G+1)}return H}:function(m){return m.split(/\r\n?|\n/)},ut=window.getSelection?function(m){try{return m.selectionStart!=m.selectionEnd}catch(A){return!1}}:function(m){var A;try{A=m.ownerDocument.selection.createRange()}catch(H){}return!A||A.parentElement()!=m?!1:A.compareEndPoints("StartToEnd",A)!=0},ot=function(){var m=R("div");return"oncopy"in m?!0:(m.setAttribute("oncopy","return;"),typeof m.oncopy=="function")}(),Ue=null;function We(m){if(Ue!=null)return Ue;var A=D(m,R("span","x")),H=A.getBoundingClientRect(),K=N(A,0,1).getBoundingClientRect();return Ue=Math.abs(H.left-K.left)>1}var ft={},nt={};function Dt(m,A){arguments.length>2&&(A.dependencies=Array.prototype.slice.call(arguments,2)),ft[m]=A}function Kt(m,A){nt[m]=A}function vt(m){if(typeof m=="string"&&nt.hasOwnProperty(m))m=nt[m];else if(m&&typeof m.name=="string"&&nt.hasOwnProperty(m.name)){var A=nt[m.name];typeof A=="string"&&(A={name:A}),m=Ne(A,m),m.name=A.name}else{if(typeof m=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(m))return vt("application/xml");if(typeof m=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(m))return vt("application/json")}return typeof m=="string"?{name:m}:m||{name:"null"}}function Ht(m,A){A=vt(A);var H=ft[A.name];if(!H)return Ht(m,"text/plain");var K=H(m,A);if(Ft.hasOwnProperty(A.name)){var G=Ft[A.name];for(var ee in G){if(!G.hasOwnProperty(ee))continue;K.hasOwnProperty(ee)&&(K["_"+ee]=K[ee]),K[ee]=G[ee]}}if(K.name=A.name,A.helperType&&(K.helperType=A.helperType),A.modeProps)for(var ye in A.modeProps)K[ye]=A.modeProps[ye];return K}var Ft={};function Lt(m,A){var H=Ft.hasOwnProperty(m)?Ft[m]:Ft[m]={};L(A,H)}function zt(m,A){if(A===!0)return A;if(m.copyState)return m.copyState(A);var H={};for(var K in A){var G=A[K];G instanceof Array&&(G=G.concat([])),H[K]=G}return H}function Qt(m,A){for(var H;m.innerMode&&!(H=m.innerMode(A),!H||H.mode==m);)A=H.state,m=H.mode;return H||{mode:m,state:A}}function bn(m,A,H){return m.startState?m.startState(A,H):!0}var Zt=function(m,A,H){this.pos=this.start=0,this.string=m,this.tabSize=A||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=H};Zt.prototype.eol=function(){return this.pos>=this.string.length},Zt.prototype.sol=function(){return this.pos==this.lineStart},Zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zt.prototype.eat=function(m){var A=this.string.charAt(this.pos),H;if(typeof m=="string"?H=A==m:H=A&&(m.test?m.test(A):m(A)),H)return++this.pos,A},Zt.prototype.eatWhile=function(m){for(var A=this.pos;this.eat(m););return this.pos>A},Zt.prototype.eatSpace=function(){for(var m=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>m},Zt.prototype.skipToEnd=function(){this.pos=this.string.length},Zt.prototype.skipTo=function(m){var A=this.string.indexOf(m,this.pos);if(A>-1)return this.pos=A,!0},Zt.prototype.backUp=function(m){this.pos-=m},Zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=B(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Zt.prototype.indentation=function(){return B(this.string,null,this.tabSize)-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Zt.prototype.match=function(m,A,H){if(typeof m=="string"){var K=function(ye){return H?ye.toLowerCase():ye},G=this.string.substr(this.pos,m.length);if(K(G)==K(m))return A!==!1&&(this.pos+=m.length),!0}else{var ee=this.string.slice(this.pos).match(m);return ee&&ee.index>0?null:(ee&&A!==!1&&(this.pos+=ee[0].length),ee)}},Zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zt.prototype.hideFirstChars=function(m,A){this.lineStart+=m;try{return A()}finally{this.lineStart-=m}},Zt.prototype.lookAhead=function(m){var A=this.lineOracle;return A&&A.lookAhead(m)},Zt.prototype.baseToken=function(){var m=this.lineOracle;return m&&m.baseToken(this.pos)};function $t(m,A){if(A-=m.first,A<0||A>=m.size)throw new Error("There is no line "+(A+m.first)+" in the document.");for(var H=m;!H.lines;)for(var K=0;;++K){var G=H.children[K],ee=G.chunkSize();if(A<ee){H=G;break}A-=ee}return H.lines[A]}function Zn(m,A,H){var K=[],G=A.line;return m.iter(A.line,H.line+1,function(ee){var ye=ee.text;G==H.line&&(ye=ye.slice(0,H.ch)),G==A.line&&(ye=ye.slice(A.ch)),K.push(ye),++G}),K}function Fn(m,A,H){var K=[];return m.iter(A,H,function(G){K.push(G.text)}),K}function Hn(m,A){var H=A-m.height;if(H)for(var K=m;K;K=K.parent)K.height+=H}function Yn(m){if(m.parent==null)return null;for(var A=m.parent,H=re(A.lines,m),K=A.parent;K;A=K,K=K.parent)for(var G=0;!(K.children[G]==A);++G)H+=K.children[G].chunkSize();return H+A.first}function jn(m,A){var H=m.first;e:do{for(var K=0;K<m.children.length;++K){var G=m.children[K],ee=G.height;if(A<ee){m=G;continue e}A-=ee,H+=G.chunkSize()}return H}while(!m.lines);for(var ye=0;ye<m.lines.length;++ye){var Oe=m.lines[ye],Pe=Oe.height;if(A<Pe)break;A-=Pe}return H+ye}function or(m,A){return A>=m.first&&A<m.first+m.size}function jr(m,A){return String(m.lineNumberFormatter(A+m.firstLineNumber))}function qt(m,A,H){if(H===void 0&&(H=null),!(this instanceof qt))return new qt(m,A,H);this.line=m,this.ch=A,this.sticky=H}function wn(m,A){return m.line-A.line||m.ch-A.ch}function Kr(m,A){return m.sticky==A.sticky&&wn(m,A)==0}function Li(m){return qt(m.line,m.ch)}function Mr(m,A){return wn(m,A)<0?A:m}function Qn(m,A){return wn(m,A)<0?m:A}function ge(m,A){return Math.max(m.first,Math.min(A,m.first+m.size-1))}function V(m,A){if(A.line<m.first)return qt(m.first,0);var H=m.first+m.size-1;return A.line>H?qt(H,$t(m,H).text.length):J(A,$t(m,A.line).text.length)}function J(m,A){var H=m.ch;return H==null||H>A?qt(m.line,A):H<0?qt(m.line,0):m}function ie(m,A){for(var H=[],K=0;K<A.length;K++)H[K]=V(m,A[K]);return H}var Re=function(m,A){this.state=m,this.lookAhead=A},he=function(m,A,H,K){this.state=A,this.doc=m,this.line=H,this.maxLookAhead=K||0,this.baseTokens=null,this.baseTokenPos=1};he.prototype.lookAhead=function(m){var A=this.doc.getLine(this.line+m);return A!=null&&m>this.maxLookAhead&&(this.maxLookAhead=m),A},he.prototype.baseToken=function(m){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=m;)this.baseTokenPos+=2;var A=this.baseTokens[this.baseTokenPos+1];return{type:A&&A.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-m}},he.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},he.fromSaved=function(m,A,H){return A instanceof Re?new he(m,zt(m.mode,A.state),H,A.lookAhead):new he(m,zt(m.mode,A),H)},he.prototype.save=function(m){var A=m!==!1?zt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Re(A,this.maxLookAhead):A};function it(m,A,H,K){var G=[m.state.modeGen],ee={};tr(m,A.text,m.doc.mode,H,function(He,ct){return G.push(He,ct)},ee,K);for(var ye=H.state,Oe=function(He){H.baseTokens=G;var ct=m.state.overlays[He],_t=1,Wt=0;H.state=!0,tr(m,A.text,ct.mode,H,function(Mt,rn){for(var pn=_t;Wt<Mt;){var On=G[_t];On>Mt&&G.splice(_t,1,Mt,G[_t+1],On),_t+=2,Wt=Math.min(Mt,On)}if(!rn)return;if(ct.opaque)G.splice(pn,_t-pn,Mt,"overlay "+rn),_t=pn+2;else for(;pn<_t;pn+=2){var Gn=G[pn+1];G[pn+1]=(Gn?Gn+" ":"")+"overlay "+rn}},ee),H.state=ye,H.baseTokens=null,H.baseTokenPos=1},Pe=0;Pe<m.state.overlays.length;++Pe)Oe(Pe);return{styles:G,classes:ee.bgClass||ee.textClass?ee:null}}function Ut(m,A,H){if(!A.styles||A.styles[0]!=m.state.modeGen){var K=Jt(m,Yn(A)),G=A.text.length>m.options.maxHighlightLength&&zt(m.doc.mode,K.state),ee=it(m,A,K);G&&(K.state=G),A.stateAfter=K.save(!G),A.styles=ee.styles,ee.classes?A.styleClasses=ee.classes:A.styleClasses&&(A.styleClasses=null),H===m.doc.highlightFrontier&&(m.doc.modeFrontier=Math.max(m.doc.modeFrontier,++m.doc.highlightFrontier))}return A.styles}function Jt(m,A,H){var K=m.doc,G=m.display;if(!K.mode.startState)return new he(K,!0,A);var ee=fr(m,A,H),ye=ee>K.first&&$t(K,ee-1).stateAfter,Oe=ye?he.fromSaved(K,ye,ee):new he(K,bn(K.mode),ee);return K.iter(ee,A,function(Pe){an(m,Pe.text,Oe);var He=Oe.line;Pe.stateAfter=He==A-1||He%5==0||He>=G.viewFrom&&He<G.viewTo?Oe.save():null,Oe.nextLine()}),H&&(K.modeFrontier=Oe.line),Oe}function an(m,A,H,K){var G=m.doc.mode,ee=new Zt(A,m.options.tabSize,H);for(ee.start=ee.pos=K||0,A==""&&Pt(G,H.state);!ee.eol();)cn(G,ee,H.state),ee.start=ee.pos}function Pt(m,A){if(m.blankLine)return m.blankLine(A);if(!m.innerMode)return;var H=Qt(m,A);if(H.mode.blankLine)return H.mode.blankLine(H.state)}function cn(m,A,H,K){for(var G=0;G<10;G++){K&&(K[0]=Qt(m,H).mode);var ee=m.token(A,H);if(A.pos>A.start)return ee}throw new Error("Mode "+m.name+" failed to advance stream.")}var Rn=function(m,A,H){this.start=m.start,this.end=m.pos,this.string=m.current(),this.type=A||null,this.state=H};function Jn(m,A,H,K){var G=m.doc,ee=G.mode,ye;A=V(G,A);var Oe=$t(G,A.line),Pe=Jt(m,A.line,H),He=new Zt(Oe.text,m.options.tabSize,Pe),ct;for(K&&(ct=[]);(K||He.pos<A.ch)&&!He.eol();)He.start=He.pos,ye=cn(ee,He,Pe.state),K&&ct.push(new Rn(He,ye,zt(G.mode,Pe.state)));return K?ct:new Rn(He,ye,Pe.state)}function ir(m,A){if(m)for(;;){var H=m.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!H)break;m=m.slice(0,H.index)+m.slice(H.index+H[0].length);var K=H[1]?"bgClass":"textClass";A[K]==null?A[K]=H[2]:new RegExp("(?:^|\\s)"+H[2]+"(?:$|\\s)").test(A[K])||(A[K]+=" "+H[2])}return m}function tr(m,A,H,K,G,ee,ye){var Oe=H.flattenSpans;Oe==null&&(Oe=m.options.flattenSpans);var Pe=0,He=null,ct=new Zt(A,m.options.tabSize,K),_t,Wt=m.options.addModeClass&&[null];for(A==""&&ir(Pt(H,K.state),ee);!ct.eol();){if(ct.pos>m.options.maxHighlightLength?(Oe=!1,ye&&an(m,A,K,ct.pos),ct.pos=A.length,_t=null):_t=ir(cn(H,ct,K.state,Wt),ee),Wt){var Mt=Wt[0].name;Mt&&(_t="m-"+(_t?Mt+" "+_t:Mt))}if(!Oe||He!=_t){for(;Pe<ct.start;)Pe=Math.min(ct.start,Pe+5e3),G(Pe,He);He=_t}ct.start=ct.pos}for(;Pe<ct.pos;){var rn=Math.min(ct.pos,Pe+5e3);G(rn,He),Pe=rn}}function fr(m,A,H){for(var K,G,ee=m.doc,ye=H?-1:A-(m.doc.mode.innerMode?1e3:100),Oe=A;Oe>ye;--Oe){if(Oe<=ee.first)return ee.first;var Pe=$t(ee,Oe-1),He=Pe.stateAfter;if(He&&(!H||Oe+(He instanceof Re?He.lookAhead:0)<=ee.modeFrontier))return Oe;var ct=B(Pe.text,null,m.options.tabSize);(G==null||K>ct)&&(G=Oe-1,K=ct)}return G}function Dr(m,A){if(m.modeFrontier=Math.min(m.modeFrontier,A),m.highlightFrontier<A-10)return;for(var H=m.first,K=A-1;K>H;K--){var G=$t(m,K).stateAfter;if(G&&(!(G instanceof Re)||K+G.lookAhead<A)){H=K+1;break}}m.highlightFrontier=Math.min(m.highlightFrontier,H)}var Yi=!1,oi=!1;function di(){Yi=!0}function _a(){oi=!0}function Si(m,A,H){this.marker=m,this.from=A,this.to=H}function ga(m,A){if(m)for(var H=0;H<m.length;++H){var K=m[H];if(K.marker==A)return K}}function mo(m,A){for(var H,K=0;K<m.length;++K)m[K]!=A&&(H||(H=[])).push(m[K]);return H}function ao(m,A){m.markedSpans=m.markedSpans?m.markedSpans.concat([A]):[A],A.marker.attachLine(m)}function yo(m,A,H){var K;if(m)for(var G=0;G<m.length;++G){var ee=m[G],ye=ee.marker,Oe=ee.from==null||(ye.inclusiveLeft?ee.from<=A:ee.from<A);if(Oe||ee.from==A&&ye.type=="bookmark"&&(!H||!ee.marker.insertLeft)){var Pe=ee.to==null||(ye.inclusiveRight?ee.to>=A:ee.to>A);(K||(K=[])).push(new Si(ye,ee.from,Pe?null:ee.to))}}return K}function Ia(m,A,H){var K;if(m)for(var G=0;G<m.length;++G){var ee=m[G],ye=ee.marker,Oe=ee.to==null||(ye.inclusiveRight?ee.to>=A:ee.to>A);if(Oe||ee.from==A&&ye.type=="bookmark"&&(!H||ee.marker.insertLeft)){var Pe=ee.from==null||(ye.inclusiveLeft?ee.from<=A:ee.from<A);(K||(K=[])).push(new Si(ye,Pe?null:ee.from-A,ee.to==null?null:ee.to-A))}}return K}function Za(m,A){if(A.full)return null;var H=or(m,A.from.line)&&$t(m,A.from.line).markedSpans,K=or(m,A.to.line)&&$t(m,A.to.line).markedSpans;if(!H&&!K)return null;var G=A.from.ch,ee=A.to.ch,ye=wn(A.from,A.to)==0,Oe=yo(H,G,ye),Pe=Ia(K,ee,ye),He=A.text.length==1,ct=oe(A.text).length+(He?G:0);if(Oe)for(var _t=0;_t<Oe.length;++_t){var Wt=Oe[_t];if(Wt.to==null){var Mt=ga(Pe,Wt.marker);Mt?He&&(Wt.to=Mt.to==null?null:Mt.to+ct):Wt.to=G}}if(Pe)for(var rn=0;rn<Pe.length;++rn){var pn=Pe[rn];if(pn.to!=null&&(pn.to+=ct),pn.from==null){var On=ga(Oe,pn.marker);On||(pn.from=ct,He&&(Oe||(Oe=[])).push(pn))}else pn.from+=ct,He&&(Oe||(Oe=[])).push(pn)}Oe&&(Oe=Ri(Oe)),Pe&&Pe!=Oe&&(Pe=Ri(Pe));var Gn=[Oe];if(!He){var er=A.text.length-2,Vn;if(er>0&&Oe)for(var sr=0;sr<Oe.length;++sr)Oe[sr].to==null&&(Vn||(Vn=[])).push(new Si(Oe[sr].marker,null,null));for(var Rr=0;Rr<er;++Rr)Gn.push(Vn);Gn.push(Pe)}return Gn}function Ri(m){for(var A=0;A<m.length;++A){var H=m[A];H.from!=null&&H.from==H.to&&H.marker.clearWhenEmpty!==!1&&m.splice(A--,1)}return m.length?m:null}function ri(m,A,H){var K=null;if(m.iter(A.line,H.line+1,function(Mt){if(Mt.markedSpans)for(var rn=0;rn<Mt.markedSpans.length;++rn){var pn=Mt.markedSpans[rn].marker;pn.readOnly&&(!K||re(K,pn)==-1)&&(K||(K=[])).push(pn)}}),!K)return null;for(var G=[{from:A,to:H}],ee=0;ee<K.length;++ee)for(var ye=K[ee],Oe=ye.find(0),Pe=0;Pe<G.length;++Pe){var He=G[Pe];if(wn(He.to,Oe.from)<0||wn(He.from,Oe.to)>0)continue;var ct=[Pe,1],_t=wn(He.from,Oe.from),Wt=wn(He.to,Oe.to);(_t<0||!ye.inclusiveLeft&&!_t)&&ct.push({from:He.from,to:Oe.from}),(Wt>0||!ye.inclusiveRight&&!Wt)&&ct.push({from:Oe.to,to:He.to}),G.splice.apply(G,ct),Pe+=ct.length-3}return G}function hi(m){var A=m.markedSpans;if(!A)return;for(var H=0;H<A.length;++H)A[H].marker.detachLine(m);m.markedSpans=null}function Mi(m,A){if(!A)return;for(var H=0;H<A.length;++H)A[H].marker.attachLine(m);m.markedSpans=A}function Nr(m){return m.inclusiveLeft?-1:0}function Ar(m){return m.inclusiveRight?1:0}function fi(m,A){var H=m.lines.length-A.lines.length;if(H!=0)return H;var K=m.find(),G=A.find(),ee=wn(K.from,G.from)||Nr(m)-Nr(A);if(ee)return-ee;var ye=wn(K.to,G.to)||Ar(m)-Ar(A);return ye||A.id-m.id}function wr(m,A){var H=oi&&m.markedSpans,K;if(H)for(var G=void 0,ee=0;ee<H.length;++ee)G=H[ee],G.marker.collapsed&&(A?G.from:G.to)==null&&(!K||fi(K,G.marker)<0)&&(K=G.marker);return K}function vi(m){return wr(m,!0)}function pr(m){return wr(m,!1)}function ta(m,A){var H=oi&&m.markedSpans,K;if(H)for(var G=0;G<H.length;++G){var ee=H[G];ee.marker.collapsed&&(ee.from==null||ee.from<A)&&(ee.to==null||ee.to>A)&&(!K||fi(K,ee.marker)<0)&&(K=ee.marker)}return K}function Qi(m,A,H,K,G){var ee=$t(m,A),ye=oi&&ee.markedSpans;if(ye)for(var Oe=0;Oe<ye.length;++Oe){var Pe=ye[Oe];if(!Pe.marker.collapsed)continue;var He=Pe.marker.find(0),ct=wn(He.from,H)||Nr(Pe.marker)-Nr(G),_t=wn(He.to,K)||Ar(Pe.marker)-Ar(G);if(ct>=0&&_t<=0||ct<=0&&_t>=0)continue;if(ct<=0&&(Pe.marker.inclusiveRight&&G.inclusiveLeft?wn(He.to,H)>=0:wn(He.to,H)>0)||ct>=0&&(Pe.marker.inclusiveRight&&G.inclusiveLeft?wn(He.from,K)<=0:wn(He.from,K)<0))return!0}}function ea(m){for(var A;A=vi(m);)m=A.find(-1,!0).line;return m}function Eo(m){for(var A;A=pr(m);)m=A.find(1,!0).line;return m}function ca(m){for(var A,H;A=pr(m);)m=A.find(1,!0).line,(H||(H=[])).push(m);return H}function qa(m,A){var H=$t(m,A),K=ea(H);return H==K?A:Yn(K)}function ja(m,A){if(A>m.lastLine())return A;var H=$t(m,A),K;if(!Ba(m,H))return A;for(;K=pr(H);)H=K.find(1,!0).line;return Yn(H)+1}function Ba(m,A){var H=oi&&A.markedSpans;if(H)for(var K=void 0,G=0;G<H.length;++G){if(K=H[G],!K.marker.collapsed)continue;if(K.from==null)return!0;if(K.marker.widgetNode)continue;if(K.from==0&&K.marker.inclusiveLeft&&Ka(m,A,K))return!0}}function Ka(m,A,H){if(H.to==null){var K=H.marker.find(1,!0);return Ka(m,K.line,ga(K.line.markedSpans,H.marker))}if(H.marker.inclusiveRight&&H.to==A.text.length)return!0;for(var G=void 0,ee=0;ee<A.markedSpans.length;++ee)if(G=A.markedSpans[ee],G.marker.collapsed&&!G.marker.widgetNode&&G.from==H.to&&(G.to==null||G.to!=H.from)&&(G.marker.inclusiveLeft||H.marker.inclusiveRight)&&Ka(m,A,G))return!0}function Ha(m){m=ea(m);for(var A=0,H=m.parent,K=0;K<H.lines.length;++K){var G=H.lines[K];if(G==m)break;A+=G.height}for(var ee=H.parent;ee;H=ee,ee=H.parent)for(var ye=0;ye<ee.children.length;++ye){var Oe=ee.children[ye];if(Oe==H)break;A+=Oe.height}return A}function Mo(m){if(m.height==0)return 0;for(var A=m.text.length,H,K=m;H=vi(K);){var G=H.find(0,!0);K=G.from.line,A+=G.from.ch-G.to.ch}for(K=m;H=pr(K);){var ee=H.find(0,!0);A-=K.text.length-ee.from.ch,K=ee.to.line,A+=K.text.length-ee.to.ch}return A}function Oo(m){var A=m.display,H=m.doc;A.maxLine=$t(H,H.first),A.maxLineLength=Mo(A.maxLine),A.maxLineChanged=!0,H.iter(function(K){var G=Mo(K);G>A.maxLineLength&&(A.maxLineLength=G,A.maxLine=K)})}var Ra=function(m,A,H){this.text=m,Mi(this,A),this.height=H?H(this):1};Ra.prototype.lineNo=function(){return Yn(this)},Be(Ra);function Vo(m,A,H,K){m.text=A,m.stateAfter&&(m.stateAfter=null),m.styles&&(m.styles=null),m.order!=null&&(m.order=null),hi(m),Mi(m,H);var G=K?K(m):1;G!=m.height&&Hn(m,G)}function ar(m){m.parent=null,hi(m)}var yr={},nr={};function Fr(m,A){if(!m||/^\s*$/.test(m))return null;var H=A.addModeClass?nr:yr;return H[m]||(H[m]=m.replace(/\S+/g,"cm-$&"))}function si(m,A){var H=P("span",null,null,e?"padding-right: .1px":null),K={pre:P("pre",[H],"CodeMirror-line"),content:H,col:0,pos:0,cm:m,trailingSpace:!1,splitSpaces:m.getOption("lineWrapping")};A.measure={};for(var G=0;G<=(A.rest?A.rest.length:0);G++){var ee=G?A.rest[G-1]:A.line,ye=void 0;K.pos=0,K.addToken=Or,rt(m.display.measure)&&(ye=$e(ee,m.doc.direction))&&(K.addToken=Ea(K.addToken,ye)),K.map=[];var Oe=A!=m.display.externalMeasured&&Yn(ee);$a(ee,K,Ut(m,ee,Oe)),ee.styleClasses&&(ee.styleClasses.bgClass&&(K.bgClass=k(ee.styleClasses.bgClass,K.bgClass||"")),ee.styleClasses.textClass&&(K.textClass=k(ee.styleClasses.textClass,K.textClass||""))),K.map.length==0&&K.map.push(0,0,K.content.appendChild(Ke(m.display.measure))),G==0?(A.measure.map=K.map,A.measure.cache={}):((A.measure.maps||(A.measure.maps=[])).push(K.map),(A.measure.caches||(A.measure.caches=[])).push({}))}if(e){var Pe=K.content.lastChild;(/\bcm-tab\b/.test(Pe.className)||Pe.querySelector&&Pe.querySelector(".cm-tab"))&&(K.content.className="cm-tab-wrap-hack")}return Ye(m,"renderLine",m,A.line,K.pre),K.pre.className&&(K.textClass=k(K.pre.className,K.textClass||"")),K}function Ci(m){var A=R("span","\u2022","cm-invalidchar");return A.title="\\u"+m.charCodeAt(0).toString(16),A.setAttribute("aria-label",A.title),A}function Or(m,A,H,K,G,ee,ye){if(!A)return;var Oe=m.splitSpaces?na(A,m.trailingSpace):A,Pe=m.cm.state.specialChars,He=!1,ct;if(!Pe.test(A))m.col+=A.length,ct=document.createTextNode(Oe),m.map.push(m.pos,m.pos+A.length,ct),_&&p<9&&(He=!0),m.pos+=A.length;else{ct=document.createDocumentFragment();for(var _t=0;;){Pe.lastIndex=_t;var Wt=Pe.exec(A),Mt=Wt?Wt.index-_t:A.length-_t;if(Mt){var rn=document.createTextNode(Oe.slice(_t,_t+Mt));_&&p<9?ct.appendChild(R("span",[rn])):ct.appendChild(rn),m.map.push(m.pos,m.pos+Mt,rn),m.col+=Mt,m.pos+=Mt}if(!Wt)break;_t+=Mt+1;var pn=void 0;if(Wt[0]==" "){var On=m.cm.options.tabSize,Gn=On-m.col%On;pn=ct.appendChild(R("span",le(Gn),"cm-tab")),pn.setAttribute("role","presentation"),pn.setAttribute("cm-text"," "),m.col+=Gn}else Wt[0]=="\r"||Wt[0]==`
`?(pn=ct.appendChild(R("span",Wt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),pn.setAttribute("cm-text",Wt[0]),m.col+=1):(pn=m.cm.options.specialCharPlaceholder(Wt[0]),pn.setAttribute("cm-text",Wt[0]),_&&p<9?ct.appendChild(R("span",[pn])):ct.appendChild(pn),m.col+=1);m.map.push(m.pos,m.pos+1,pn),m.pos++}}if(m.trailingSpace=Oe.charCodeAt(A.length-1)==32,H||K||G||He||ee||ye){var er=H||"";K&&(er+=K),G&&(er+=G);var Vn=R("span",[ct],er,ee);if(ye)for(var sr in ye)ye.hasOwnProperty(sr)&&sr!="style"&&sr!="class"&&Vn.setAttribute(sr,ye[sr]);return m.content.appendChild(Vn)}m.content.appendChild(ct)}function na(m,A){if(m.length>1&&!/ /.test(m))return m;for(var H=A,K="",G=0;G<m.length;G++){var ee=m.charAt(G);ee==" "&&H&&(G==m.length-1||m.charCodeAt(G+1)==32)&&(ee="\xA0"),K+=ee,H=ee==" "}return K}function Ea(m,A){return function(H,K,G,ee,ye,Oe,Pe){G=G?G+" cm-force-border":"cm-force-border";for(var He=H.pos,ct=He+K.length;;){for(var _t=void 0,Wt=0;Wt<A.length&&!(_t=A[Wt],_t.to>He&&_t.from<=He);Wt++);if(_t.to>=ct)return m(H,K,G,ee,ye,Oe,Pe);m(H,K.slice(0,_t.to-He),G,ee,null,Oe,Pe),ee=null,K=K.slice(_t.to-He),He=_t.to}}}function Wr(m,A,H,K){var G=!K&&H.widgetNode;G&&m.map.push(m.pos,m.pos+A,G),!K&&m.cm.display.input.needsContentAttribute&&(G||(G=m.content.appendChild(document.createElement("span"))),G.setAttribute("cm-marker",H.id)),G&&(m.cm.display.input.setUneditable(G),m.content.appendChild(G)),m.pos+=A,m.trailingSpace=!1}function $a(m,A,H){var K=m.markedSpans,G=m.text,ee=0;if(!K){for(var ye=1;ye<H.length;ye+=2)A.addToken(A,G.slice(ee,ee=H[ye]),Fr(H[ye+1],A.cm.options));return}for(var Oe=G.length,Pe=0,He=1,ct="",_t,Wt,Mt=0,rn,pn,On,Gn,er;;){if(Mt==Pe){rn=pn=On=Wt="",er=null,Gn=null,Mt=Infinity;for(var Vn=[],sr=void 0,Rr=0;Rr<K.length;++Rr){var br=K[Rr],gi=br.marker;if(gi.type=="bookmark"&&br.from==Pe&&gi.widgetNode)Vn.push(gi);else if(br.from<=Pe&&(br.to==null||br.to>Pe||gi.collapsed&&br.to==Pe&&br.from==Pe)){if(br.to!=null&&br.to!=Pe&&Mt>br.to&&(Mt=br.to,pn=""),gi.className&&(rn+=" "+gi.className),gi.css&&(Wt=(Wt?Wt+";":"")+gi.css),gi.startStyle&&br.from==Pe&&(On+=" "+gi.startStyle),gi.endStyle&&br.to==Mt&&(sr||(sr=[])).push(gi.endStyle,br.to),gi.title&&((er||(er={})).title=gi.title),gi.attributes)for(var ua in gi.attributes)(er||(er={}))[ua]=gi.attributes[ua];gi.collapsed&&(!Gn||fi(Gn.marker,gi)<0)&&(Gn=br)}else br.from>Pe&&Mt>br.from&&(Mt=br.from)}if(sr)for(var fo=0;fo<sr.length;fo+=2)sr[fo+1]==Mt&&(pn+=" "+sr[fo]);if(!Gn||Gn.from==Pe)for(var Oa=0;Oa<Vn.length;++Oa)Wr(A,0,Vn[Oa]);if(Gn&&(Gn.from||0)==Pe){if(Wr(A,(Gn.to==null?Oe+1:Gn.to)-Pe,Gn.marker,Gn.from==null),Gn.to==null)return;Gn.to==Pe&&(Gn=!1)}}if(Pe>=Oe)break;for(var Go=Math.min(Oe,Mt);;){if(ct){var Fo=Pe+ct.length;if(!Gn){var Qa=Fo>Go?ct.slice(0,Go-Pe):ct;A.addToken(A,Qa,_t?_t+rn:rn,On,Pe+Qa.length==Mt?pn:"",Wt,er)}if(Fo>=Go){ct=ct.slice(Go-Pe),Pe=Go;break}Pe=Fo,On=""}ct=G.slice(ee,ee=H[He++]),_t=Fr(H[He++],A.cm.options)}}}function _i(m,A,H){this.line=A,this.rest=ca(A),this.size=this.rest?Yn(oe(this.rest))-H+1:1,this.node=this.text=null,this.hidden=Ba(m,A)}function da(m,A,H){for(var K=[],G,ee=A;ee<H;ee=G){var ye=new _i(m.doc,$t(m.doc,ee),ee);G=ee+ye.size,K.push(ye)}return K}var xa=null;function Wa(m){xa?xa.ops.push(m):m.ownsGroup=xa={ops:[m],delayedCallbacks:[]}}function Yo(m){var A=m.delayedCallbacks,H=0;do{for(;H<A.length;H++)A[H].call(null);for(var K=0;K<m.ops.length;K++){var G=m.ops[K];if(G.cursorActivityHandlers)for(;G.cursorActivityCalled<G.cursorActivityHandlers.length;)G.cursorActivityHandlers[G.cursorActivityCalled++].call(null,G.cm)}}while(H<A.length)}function bi(m,A){var H=m.ownsGroup;if(!H)return;try{Yo(H)}finally{xa=null,A(H)}}var Nn=null;function sn(m,A){var H=gt(m,A);if(!H.length)return;var K=Array.prototype.slice.call(arguments,2),G;xa?G=xa.delayedCallbacks:Nn?G=Nn:(G=Nn=[],setTimeout(Bn,0));for(var ee=function(Oe){G.push(function(){return H[Oe].apply(null,K)})},ye=0;ye<H.length;++ye)ee(ye)}function Bn(){var m=Nn;Nn=null;for(var A=0;A<m.length;++A)m[A]()}function Dn(m,A,H,K){for(var G=0;G<A.changes.length;G++){var ee=A.changes[G];ee=="text"?yi(m,A):ee=="gutter"?Bi(m,A,H,K):ee=="class"?aa(m,A):ee=="widget"&&ba(m,A,K)}A.changes=null}function hr(m){return m.node==m.text&&(m.node=R("div",null,null,"position: relative"),m.text.parentNode&&m.text.parentNode.replaceChild(m.node,m.text),m.node.appendChild(m.text),_&&p<8&&(m.node.style.zIndex=2)),m.node}function Ir(m,A){var H=A.bgClass?A.bgClass+" "+(A.line.bgClass||""):A.line.bgClass;if(H&&(H+=" CodeMirror-linebackground"),A.background)H?A.background.className=H:(A.background.parentNode.removeChild(A.background),A.background=null);else if(H){var K=hr(A);A.background=K.insertBefore(R("div",null,H),K.firstChild),m.display.input.setUneditable(A.background)}}function Zr(m,A){var H=m.display.externalMeasured;return H&&H.line==A.line?(m.display.externalMeasured=null,A.measure=H.measure,H.built):si(m,A)}function yi(m,A){var H=A.text.className,K=Zr(m,A);A.text==A.node&&(A.node=K.pre),A.text.parentNode.replaceChild(K.pre,A.text),A.text=K.pre,K.bgClass!=A.bgClass||K.textClass!=A.textClass?(A.bgClass=K.bgClass,A.textClass=K.textClass,aa(m,A)):H&&(A.text.className=H)}function aa(m,A){Ir(m,A),A.line.wrapClass?hr(A).className=A.line.wrapClass:A.node!=A.text&&(A.node.className="");var H=A.textClass?A.textClass+" "+(A.line.textClass||""):A.line.textClass;A.text.className=H||""}function Bi(m,A,H,K){if(A.gutter&&(A.node.removeChild(A.gutter),A.gutter=null),A.gutterBackground&&(A.node.removeChild(A.gutterBackground),A.gutterBackground=null),A.line.gutterClass){var G=hr(A);A.gutterBackground=R("div",null,"CodeMirror-gutter-background "+A.line.gutterClass,"left: "+(m.options.fixedGutter?K.fixedPos:-K.gutterTotalWidth)+"px; width: "+K.gutterTotalWidth+"px"),m.display.input.setUneditable(A.gutterBackground),G.insertBefore(A.gutterBackground,A.text)}var ee=A.line.gutterMarkers;if(m.options.lineNumbers||ee){var ye=hr(A),Oe=A.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(m.options.fixedGutter?K.fixedPos:-K.gutterTotalWidth)+"px");if(m.display.input.setUneditable(Oe),ye.insertBefore(Oe,A.text),A.line.gutterClass&&(Oe.className+=" "+A.line.gutterClass),m.options.lineNumbers&&(!ee||!ee["CodeMirror-linenumbers"])&&(A.lineNumber=Oe.appendChild(R("div",jr(m.options,H),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+K.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+m.display.lineNumInnerWidth+"px"))),ee)for(var Pe=0;Pe<m.display.gutterSpecs.length;++Pe){var He=m.display.gutterSpecs[Pe].className,ct=ee.hasOwnProperty(He)&&ee[He];ct&&Oe.appendChild(R("div",[ct],"CodeMirror-gutter-elt","left: "+K.gutterLeft[He]+"px; width: "+K.gutterWidth[He]+"px"))}}}function ba(m,A,H){A.alignable&&(A.alignable=null);for(var K=C("CodeMirror-linewidget"),G=A.node.firstChild,ee=void 0;G;G=ee)ee=G.nextSibling,K.test(G.className)&&A.node.removeChild(G);Xa(m,A,H)}function Ro(m,A,H,K){var G=Zr(m,A);return A.text=A.node=G.pre,G.bgClass&&(A.bgClass=G.bgClass),G.textClass&&(A.textClass=G.textClass),aa(m,A),Bi(m,A,H,K),Xa(m,A,K),A.node}function Xa(m,A,H){if(Ps(m,A.line,A,H,!0),A.rest)for(var K=0;K<A.rest.length;K++)Ps(m,A.rest[K],A,H,!1)}function Ps(m,A,H,K,G){if(!A.widgets)return;for(var ee=hr(H),ye=0,Oe=A.widgets;ye<Oe.length;++ye){var Pe=Oe[ye],He=R("div",[Pe.node],"CodeMirror-linewidget"+(Pe.className?" "+Pe.className:""));Pe.handleMouseEvents||He.setAttribute("cm-ignore-events","true"),za(Pe,He,H,K),m.display.input.setUneditable(He),G&&Pe.above?ee.insertBefore(He,H.gutter||H.text):ee.appendChild(He),sn(Pe,"redraw")}}function za(m,A,H,K){if(m.noHScroll){(H.alignable||(H.alignable=[])).push(A);var G=K.wrapperWidth;A.style.left=K.fixedPos+"px",m.coverGutter||(G-=K.gutterTotalWidth,A.style.paddingLeft=K.gutterTotalWidth+"px"),A.style.width=G+"px"}m.coverGutter&&(A.style.zIndex=5,A.style.position="relative",m.noHScroll||(A.style.marginLeft=-K.gutterTotalWidth+"px"))}function ka(m){if(m.height!=null)return m.height;var A=m.doc.cm;if(!A)return 0;if(!M(document.body,m.node)){var H="position: relative;";m.coverGutter&&(H+="margin-left: -"+A.display.gutters.offsetWidth+"px;"),m.noHScroll&&(H+="width: "+A.display.wrapper.clientWidth+"px;"),D(A.display.measure,R("div",[m.node],null,H))}return m.height=m.node.parentNode.offsetHeight}function Po(m,A){for(var H=Je(A);H!=m.wrapper;H=H.parentNode)if(!H||H.nodeType==1&&H.getAttribute("cm-ignore-events")=="true"||H.parentNode==m.sizer&&H!=m.mover)return!0}function Es(m){return m.lineSpace.offsetTop}function st(m){return m.mover.offsetHeight-m.lineSpace.offsetHeight}function xt(m){if(m.cachedPaddingH)return m.cachedPaddingH;var A=D(m.measure,R("pre","x","CodeMirror-line-like")),H=window.getComputedStyle?window.getComputedStyle(A):A.currentStyle,K={left:parseInt(H.paddingLeft),right:parseInt(H.paddingRight)};return!isNaN(K.left)&&!isNaN(K.right)&&(m.cachedPaddingH=K),K}function At(m){return me-m.display.nativeBarWidth}function ht(m){return m.display.scroller.clientWidth-At(m)-m.display.barWidth}function je(m){return m.display.scroller.clientHeight-At(m)-m.display.barHeight}function tt(m,A,H){var K=m.options.lineWrapping,G=K&&ht(m);if(!A.measure.heights||K&&A.measure.width!=G){var ee=A.measure.heights=[];if(K){A.measure.width=G;for(var ye=A.text.firstChild.getClientRects(),Oe=0;Oe<ye.length-1;Oe++){var Pe=ye[Oe],He=ye[Oe+1];Math.abs(Pe.bottom-He.bottom)>2&&ee.push((Pe.bottom+He.top)/2-H.top)}}ee.push(H.bottom-H.top)}}function ze(m,A,H){if(m.line==A)return{map:m.measure.map,cache:m.measure.cache};for(var K=0;K<m.rest.length;K++)if(m.rest[K]==A)return{map:m.measure.maps[K],cache:m.measure.caches[K]};for(var G=0;G<m.rest.length;G++)if(Yn(m.rest[G])>H)return{map:m.measure.maps[G],cache:m.measure.caches[G],before:!0}}function lt(m,A){A=ea(A);var H=Yn(A),K=m.display.externalMeasured=new _i(m.doc,A,H);K.lineN=H;var G=K.built=si(m,K);return K.text=G.pre,D(m.display.lineMeasure,G.pre),K}function pt(m,A,H,K){return Nt(m,St(m,A),H,K)}function It(m,A){if(A>=m.display.viewFrom&&A<m.display.viewTo)return m.display.view[ra(m,A)];var H=m.display.externalMeasured;if(H&&A>=H.lineN&&A<H.lineN+H.size)return H}function St(m,A){var H=Yn(A),K=It(m,H);K&&!K.text?K=null:K&&K.changes&&(Dn(m,K,H,ha(m)),m.curOp.forceUpdate=!0),K||(K=lt(m,A));var G=ze(K,A,H);return{line:A,view:K,rect:null,map:G.map,cache:G.cache,before:G.before,hasHeights:!1}}function Nt(m,A,H,K,G){A.before&&(H=-1);var ee=H+(K||""),ye;return A.cache.hasOwnProperty(ee)?ye=A.cache[ee]:(A.rect||(A.rect=A.view.text.getBoundingClientRect()),A.hasHeights||(tt(m,A.view,A.rect),A.hasHeights=!0),ye=Un(m,A,H,K),ye.bogus||(A.cache[ee]=ye)),{left:ye.left,right:ye.right,top:G?ye.rtop:ye.top,bottom:G?ye.rbottom:ye.bottom}}var en={left:0,right:0,top:0,bottom:0};function yn(m,A,H){for(var K,G,ee,ye,Oe,Pe,He=0;He<m.length;He+=3)if(Oe=m[He],Pe=m[He+1],A<Oe?(G=0,ee=1,ye="left"):A<Pe?(G=A-Oe,ee=G+1):(He==m.length-3||A==Pe&&m[He+3]>A)&&(ee=Pe-Oe,G=ee-1,A>=Pe&&(ye="right")),G!=null){if(K=m[He+2],Oe==Pe&&H==(K.insertLeft?"left":"right")&&(ye=H),H=="left"&&G==0)for(;He&&m[He-2]==m[He-3]&&m[He-1].insertLeft;)K=m[(He-=3)+2],ye="left";if(H=="right"&&G==Pe-Oe)for(;He<m.length-3&&m[He+3]==m[He+4]&&!m[He+5].insertLeft;)K=m[(He+=3)+2],ye="right";break}return{node:K,start:G,end:ee,collapse:ye,coverStart:Oe,coverEnd:Pe}}function dn(m,A){var H=en;if(A=="left")for(var K=0;K<m.length&&!((H=m[K]).left!=H.right);K++);else for(var G=m.length-1;G>=0&&!((H=m[G]).left!=H.right);G--);return H}function Un(m,A,H,K){var G=yn(A.map,H,K),ee=G.node,ye=G.start,Oe=G.end,Pe=G.collapse,He;if(ee.nodeType==3){for(var ct=0;ct<4;ct++){for(;ye&&ae(A.line.text.charAt(G.coverStart+ye));)--ye;for(;G.coverStart+Oe<G.coverEnd&&ae(A.line.text.charAt(G.coverStart+Oe));)++Oe;if(_&&p<9&&ye==0&&Oe==G.coverEnd-G.coverStart?He=ee.parentNode.getBoundingClientRect():He=dn(N(ee,ye,Oe).getClientRects(),K),He.left||He.right||ye==0)break;Oe=ye,ye=ye-1,Pe="right"}_&&p<11&&(He=Sr(m.display.measure,He))}else{ye>0&&(Pe=K="right");var _t;m.options.lineWrapping&&(_t=ee.getClientRects()).length>1?He=_t[K=="right"?_t.length-1:0]:He=ee.getBoundingClientRect()}if(_&&p<9&&!ye&&(!He||!He.left&&!He.right)){var Wt=ee.parentNode.getClientRects()[0];Wt?He={left:Wt.left,right:Wt.left+La(m.display),top:Wt.top,bottom:Wt.bottom}:He=en}for(var Mt=He.top-A.rect.top,rn=He.bottom-A.rect.top,pn=(Mt+rn)/2,On=A.view.measure.heights,Gn=0;Gn<On.length-1&&!(pn<On[Gn]);Gn++);var er=Gn?On[Gn-1]:0,Vn=On[Gn],sr={left:(Pe=="right"?He.right:He.left)-A.rect.left,right:(Pe=="left"?He.left:He.right)-A.rect.left,top:er,bottom:Vn};return!He.left&&!He.right&&(sr.bogus=!0),m.options.singleCursorHeightPerLine||(sr.rtop=Mt,sr.rbottom=rn),sr}function Sr(m,A){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!We(m))return A;var H=screen.logicalXDPI/screen.deviceXDPI,K=screen.logicalYDPI/screen.deviceYDPI;return{left:A.left*H,right:A.right*H,top:A.top*K,bottom:A.bottom*K}}function Vr(m){if(m.measure&&(m.measure.cache={},m.measure.heights=null,m.rest))for(var A=0;A<m.rest.length;A++)m.measure.caches[A]={}}function Hr(m){m.display.externalMeasure=null,S(m.display.lineMeasure);for(var A=0;A<m.display.view.length;A++)Vr(m.display.view[A])}function Yr(m){Hr(m),m.display.cachedCharWidth=m.display.cachedTextHeight=m.display.cachedPaddingH=null,m.options.lineWrapping||(m.display.maxLineChanged=!0),m.display.lineNumChars=null}function qr(){return n&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function $r(){return n&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Xr(m){var A=0;if(m.widgets)for(var H=0;H<m.widgets.length;++H)m.widgets[H].above&&(A+=ka(m.widgets[H]));return A}function Ei(m,A,H,K,G){if(!G){var ee=Xr(A);H.top+=ee,H.bottom+=ee}if(K=="line")return H;K||(K="local");var ye=Ha(A);if(K=="local"?ye+=Es(m.display):ye-=m.display.viewOffset,K=="page"||K=="window"){var Oe=m.display.lineSpace.getBoundingClientRect();ye+=Oe.top+(K=="window"?0:$r());var Pe=Oe.left+(K=="window"?0:qr());H.left+=Pe,H.right+=Pe}return H.top+=ye,H.bottom+=ye,H}function li(m,A,H){if(H=="div")return A;var K=A.left,G=A.top;if(H=="page")K-=qr(),G-=$r();else if(H=="local"||!H){var ee=m.display.sizer.getBoundingClientRect();K+=ee.left,G+=ee.top}var ye=m.display.lineSpace.getBoundingClientRect();return{left:K-ye.left,top:G-ye.top}}function sa(m,A,H,K,G){return K||(K=$t(m.doc,A.line)),Ei(m,K,pt(m,K,A.ch,G),H)}function ci(m,A,H,K,G,ee){K=K||$t(m.doc,A.line),G||(G=St(m,K));function ye(rn,pn){var On=Nt(m,G,rn,pn?"right":"left",ee);return pn?On.left=On.right:On.right=On.left,Ei(m,K,On,H)}var Oe=$e(K,m.doc.direction),Pe=A.ch,He=A.sticky;if(Pe>=K.text.length?(Pe=K.text.length,He="before"):Pe<=0&&(Pe=0,He="after"),!Oe)return ye(He=="before"?Pe-1:Pe,He=="before");function ct(rn,pn,On){var Gn=Oe[pn],er=Gn.level==1;return ye(On?rn-1:rn,er!=On)}var _t=ve(Oe,Pe,He),Wt=Le,Mt=ct(Pe,_t,He=="before");return Wt!=null&&(Mt.other=ct(Pe,Wt,He!="before")),Mt}function Er(m,A){var H=0;A=V(m.doc,A),m.options.lineWrapping||(H=La(m.display)*A.ch);var K=$t(m.doc,A.line),G=Ha(K)+Es(m.display);return{left:H,right:H,top:G,bottom:G+K.height}}function gr(m,A,H,K,G){var ee=qt(m,A,H);return ee.xRel=G,K&&(ee.outside=K),ee}function pi(m,A,H){var K=m.doc;if(H+=m.display.viewOffset,H<0)return gr(K.first,0,null,-1,-1);var G=jn(K,H),ee=K.first+K.size-1;if(G>ee)return gr(K.first+K.size-1,$t(K,ee).text.length,null,1,1);A<0&&(A=0);for(var ye=$t(K,G);;){var Oe=Di(m,ye,G,A,H),Pe=ta(ye,Oe.ch+(Oe.xRel>0||Oe.outside>0?1:0));if(!Pe)return Oe;var He=Pe.find(1);if(He.line==G)return He;ye=$t(K,G=He.line)}}function Ti(m,A,H,K){K-=Xr(A);var G=A.text.length,ee=Ie(function(ye){return Nt(m,H,ye-1).bottom<=K},G,0);return G=Ie(function(ye){return Nt(m,H,ye).top>K},ee,G),{begin:ee,end:G}}function lr(m,A,H,K){H||(H=St(m,A));var G=Ei(m,A,Nt(m,H,K),"line").top;return Ti(m,A,H,G)}function Ai(m,A,H,K){return m.bottom<=H?!1:m.top>H?!0:(K?m.left:m.right)>A}function Di(m,A,H,K,G){G-=Ha(A);var ee=St(m,A),ye=Xr(A),Oe=0,Pe=A.text.length,He=!0,ct=$e(A,m.doc.direction);if(ct){var _t=(m.options.lineWrapping?Ji:Ii)(m,A,H,ee,ct,K,G);He=_t.level!=1,Oe=He?_t.from:_t.to-1,Pe=He?_t.to:_t.from-1}var Wt=null,Mt=null,rn=Ie(function(Rr){var br=Nt(m,ee,Rr);return br.top+=ye,br.bottom+=ye,Ai(br,K,G,!1)?(br.top<=G&&br.left<=K&&(Wt=Rr,Mt=br),!0):!1},Oe,Pe),pn,On,Gn=!1;if(Mt){var er=K-Mt.left<Mt.right-K,Vn=er==He;rn=Wt+(Vn?0:1),On=Vn?"after":"before",pn=er?Mt.left:Mt.right}else{!He&&(rn==Pe||rn==Oe)&&rn++,On=rn==0?"after":rn==A.text.length?"before":Nt(m,ee,rn-(He?1:0)).bottom+ye<=G==He?"after":"before";var sr=ci(m,qt(H,rn,On),"line",A,ee);pn=sr.left,Gn=G<sr.top?-1:G>=sr.bottom?1:0}return rn=be(A.text,rn,1),gr(H,rn,On,Gn,K-pn)}function Ii(m,A,H,K,G,ee,ye){var Oe=Ie(function(_t){var Wt=G[_t],Mt=Wt.level!=1;return Ai(ci(m,qt(H,Mt?Wt.to:Wt.from,Mt?"before":"after"),"line",A,K),ee,ye,!0)},0,G.length-1),Pe=G[Oe];if(Oe>0){var He=Pe.level!=1,ct=ci(m,qt(H,He?Pe.from:Pe.to,He?"after":"before"),"line",A,K);Ai(ct,ee,ye,!0)&&ct.top>ye&&(Pe=G[Oe-1])}return Pe}function Ji(m,A,H,K,G,ee,ye){var Oe=Ti(m,A,K,ye),Pe=Oe.begin,He=Oe.end;/\s/.test(A.text.charAt(He-1))&&He--;for(var ct=null,_t=null,Wt=0;Wt<G.length;Wt++){var Mt=G[Wt];if(Mt.from>=He||Mt.to<=Pe)continue;var rn=Mt.level!=1,pn=Nt(m,K,rn?Math.min(He,Mt.to)-1:Math.max(Pe,Mt.from)).right,On=pn<ee?ee-pn+1e9:pn-ee;(!ct||_t>On)&&(ct=Mt,_t=On)}return ct||(ct=G[G.length-1]),ct.from<Pe&&(ct={from:Pe,to:ct.to,level:ct.level}),ct.to>He&&(ct={from:ct.from,to:He,level:ct.level}),ct}var Wi;function wa(m){if(m.cachedTextHeight!=null)return m.cachedTextHeight;if(Wi==null){Wi=R("pre",null,"CodeMirror-line-like");for(var A=0;A<49;++A)Wi.appendChild(document.createTextNode("x")),Wi.appendChild(R("br"));Wi.appendChild(document.createTextNode("x"))}D(m.measure,Wi);var H=Wi.offsetHeight/50;return H>3&&(m.cachedTextHeight=H),S(m.measure),H||1}function La(m){if(m.cachedCharWidth!=null)return m.cachedCharWidth;var A=R("span","xxxxxxxxxx"),H=R("pre",[A],"CodeMirror-line-like");D(m.measure,H);var K=A.getBoundingClientRect(),G=(K.right-K.left)/10;return G>2&&(m.cachedCharWidth=G),G||10}function ha(m){for(var A=m.display,H={},K={},G=A.gutters.clientLeft,ee=A.gutters.firstChild,ye=0;ee;ee=ee.nextSibling,++ye){var Oe=m.display.gutterSpecs[ye].className;H[Oe]=ee.offsetLeft+ee.clientLeft+G,K[Oe]=ee.clientWidth}return{fixedPos:oo(A),gutterTotalWidth:A.gutters.offsetWidth,gutterLeft:H,gutterWidth:K,wrapperWidth:A.wrapper.clientWidth}}function oo(m){return m.scroller.getBoundingClientRect().left-m.sizer.getBoundingClientRect().left}function so(m){var A=wa(m.display),H=m.options.lineWrapping,K=H&&Math.max(5,m.display.scroller.clientWidth/La(m.display)-3);return function(G){if(Ba(m.doc,G))return 0;var ee=0;if(G.widgets)for(var ye=0;ye<G.widgets.length;ye++)G.widgets[ye].height&&(ee+=G.widgets[ye].height);return H?ee+(Math.ceil(G.text.length/K)||1)*A:ee+A}}function go(m){var A=m.doc,H=so(m);A.iter(function(K){var G=H(K);G!=K.height&&Hn(K,G)})}function Ma(m,A,H,K){var G=m.display;if(!H&&Je(A).getAttribute("cm-not-content")=="true")return null;var ee,ye,Oe=G.lineSpace.getBoundingClientRect();try{ee=A.clientX-Oe.left,ye=A.clientY-Oe.top}catch(_t){return null}var Pe=pi(m,ee,ye),He;if(K&&Pe.xRel>0&&(He=$t(m.doc,Pe.line).text).length==Pe.ch){var ct=B(He,He.length,m.options.tabSize)-He.length;Pe=qt(Pe.line,Math.max(0,Math.round((ee-xt(m.display).left)/La(m.display))-ct))}return Pe}function ra(m,A){if(A>=m.display.viewTo)return null;if(A-=m.display.viewFrom,A<0)return null;for(var H=m.display.view,K=0;K<H.length;K++)if(A-=H[K].size,A<0)return K}function Zi(m,A,H,K){A==null&&(A=m.doc.first),H==null&&(H=m.doc.first+m.doc.size),K||(K=0);var G=m.display;if(K&&H<G.viewTo&&(G.updateLineNumbers==null||G.updateLineNumbers>A)&&(G.updateLineNumbers=A),m.curOp.viewChanged=!0,A>=G.viewTo)oi&&qa(m.doc,A)<G.viewTo&&la(m);else if(H<=G.viewFrom)oi&&ja(m.doc,H+K)>G.viewFrom?la(m):(G.viewFrom+=K,G.viewTo+=K);else if(A<=G.viewFrom&&H>=G.viewTo)la(m);else if(A<=G.viewFrom){var ee=Ko(m,H,H+K,1);ee?(G.view=G.view.slice(ee.index),G.viewFrom=ee.lineN,G.viewTo+=K):la(m)}else if(H>=G.viewTo){var ye=Ko(m,A,A,-1);ye?(G.view=G.view.slice(0,ye.index),G.viewTo=ye.lineN):la(m)}else{var Oe=Ko(m,A,A,-1),Pe=Ko(m,H,H+K,1);Oe&&Pe?(G.view=G.view.slice(0,Oe.index).concat(da(m,Oe.lineN,Pe.lineN)).concat(G.view.slice(Pe.index)),G.viewTo+=K):la(m)}var He=G.externalMeasured;He&&(H<He.lineN?He.lineN+=K:A<He.lineN+He.size&&(G.externalMeasured=null))}function fa(m,A,H){m.curOp.viewChanged=!0;var K=m.display,G=m.display.externalMeasured;if(G&&A>=G.lineN&&A<G.lineN+G.size&&(K.externalMeasured=null),A<K.viewFrom||A>=K.viewTo)return;var ee=K.view[ra(m,A)];if(ee.node==null)return;var ye=ee.changes||(ee.changes=[]);re(ye,H)==-1&&ye.push(H)}function la(m){m.display.viewFrom=m.display.viewTo=m.doc.first,m.display.view=[],m.display.viewOffset=0}function Ko(m,A,H,K){var G=ra(m,A),ee,ye=m.display.view;if(!oi||H==m.doc.first+m.doc.size)return{index:G,lineN:H};for(var Oe=m.display.viewFrom,Pe=0;Pe<G;Pe++)Oe+=ye[Pe].size;if(Oe!=A){if(K>0){if(G==ye.length-1)return null;ee=Oe+ye[G].size-A,G++}else ee=Oe-A;A+=ee,H+=ee}for(;qa(m.doc,H)!=H;){if(G==(K<0?0:ye.length-1))return null;H+=K*ye[G-(K<0?1:0)].size,G+=K}return{index:G,lineN:H}}function es(m,A,H){var K=m.display,G=K.view;G.length==0||A>=K.viewTo||H<=K.viewFrom?(K.view=da(m,A,H),K.viewFrom=A):(K.viewFrom>A?K.view=da(m,A,K.viewFrom).concat(K.view):K.viewFrom<A&&(K.view=K.view.slice(ra(m,A))),K.viewFrom=A,K.viewTo<H?K.view=K.view.concat(da(m,K.viewTo,H)):K.viewTo>H&&(K.view=K.view.slice(0,ra(m,H)))),K.viewTo=H}function ts(m){for(var A=m.display.view,H=0,K=0;K<A.length;K++){var G=A[K];!G.hidden&&(!G.node||G.changes)&&++H}return H}function qi(m){m.display.input.showSelection(m.display.input.prepareSelection())}function Ho(m,A){A===void 0&&(A=!0);for(var H=m.doc,K={},G=K.cursors=document.createDocumentFragment(),ee=K.selection=document.createDocumentFragment(),ye=0;ye<H.sel.ranges.length;ye++){if(!A&&ye==H.sel.primIndex)continue;var Oe=H.sel.ranges[ye];if(Oe.from().line>=m.display.viewTo||Oe.to().line<m.display.viewFrom)continue;var Pe=Oe.empty();(Pe||m.options.showCursorWhenSelecting)&&ns(m,Oe.head,G),Pe||Ki(m,Oe,ee)}return K}function ns(m,A,H){var K=ci(m,A,"div",null,null,!m.options.singleCursorHeightPerLine),G=H.appendChild(R("div","\xA0","CodeMirror-cursor"));if(G.style.left=K.left+"px",G.style.top=K.top+"px",G.style.height=Math.max(0,K.bottom-K.top)*m.options.cursorHeight+"px",K.other){var ee=H.appendChild(R("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ee.style.display="",ee.style.left=K.other.left+"px",ee.style.top=K.other.top+"px",ee.style.height=(K.other.bottom-K.other.top)*.85+"px"}}function ia(m,A){return m.top-A.top||m.left-A.left}function Ki(m,A,H){var K=m.display,G=m.doc,ee=document.createDocumentFragment(),ye=xt(m.display),Oe=ye.left,Pe=Math.max(K.sizerWidth,ht(m)-K.sizer.offsetLeft)-ye.right,He=G.direction=="ltr";function ct(Vn,sr,Rr,br){sr<0&&(sr=0),sr=Math.round(sr),br=Math.round(br),ee.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+Vn+`px;
top: `+sr+"px; width: "+(Rr==null?Pe-Vn:Rr)+`px;
height: `+(br-sr)+"px"))}function _t(Vn,sr,Rr){var br=$t(G,Vn),gi=br.text.length,ua,fo;function Oa(Qa,jo){return sa(m,qt(Vn,Qa),"div",br,jo)}function Go(Qa,jo,bo){var io=lr(m,br,null,Qa),Ja=jo=="ltr"==(bo=="after")?"left":"right",Da=bo=="after"?io.begin:io.end-(/\s/.test(br.text.charAt(io.end-1))?2:1);return Oa(Da,Ja)[Ja]}var Fo=$e(br,G.direction);return pe(Fo,sr||0,Rr==null?gi:Rr,function(Qa,jo,bo,io){var Ja=bo=="ltr",Da=Oa(Qa,Ja?"left":"right"),Bo=Oa(jo-1,Ja?"right":"left"),xl=sr==null&&Qa==0,Qs=Rr==null&&jo==gi,Ao=io==0,ys=!Fo||io==Fo.length-1;if(Bo.top-Da.top<=3){var po=(He?xl:Qs)&&Ao,iu=(He?Qs:xl)&&ys,Ms=po?Oe:(Ja?Da:Bo).left,sl=iu?Pe:(Ja?Bo:Da).right;ct(Ms,Da.top,sl-Ms,Da.bottom)}else{var ll,Lo,wl,au;Ja?(ll=He&&xl&&Ao?Oe:Da.left,Lo=He?Pe:Go(Qa,bo,"before"),wl=He?Oe:Go(jo,bo,"after"),au=He&&Qs&&ys?Pe:Bo.right):(ll=He?Go(Qa,bo,"before"):Oe,Lo=!He&&xl&&Ao?Pe:Da.right,wl=!He&&Qs&&ys?Oe:Bo.left,au=He?Go(jo,bo,"after"):Pe),ct(ll,Da.top,Lo-ll,Da.bottom),Da.bottom<Bo.top&&ct(Oe,Da.bottom,null,Bo.top),ct(wl,Bo.top,au-wl,Bo.bottom)}(!ua||ia(Da,ua)<0)&&(ua=Da),ia(Bo,ua)<0&&(ua=Bo),(!fo||ia(Da,fo)<0)&&(fo=Da),ia(Bo,fo)<0&&(fo=Bo)}),{start:ua,end:fo}}var Wt=A.from(),Mt=A.to();if(Wt.line==Mt.line)_t(Wt.line,Wt.ch,Mt.ch);else{var rn=$t(G,Wt.line),pn=$t(G,Mt.line),On=ea(rn)==ea(pn),Gn=_t(Wt.line,Wt.ch,On?rn.text.length+1:null).end,er=_t(Mt.line,On?0:null,Mt.ch).start;On&&(Gn.top<er.top-2?(ct(Gn.right,Gn.top,null,Gn.bottom),ct(Oe,er.top,er.left,er.bottom)):ct(Gn.right,Gn.top,er.left-Gn.right,Gn.bottom)),Gn.bottom<er.top&&ct(Oe,Gn.bottom,null,er.top)}H.appendChild(ee)}function Pa(m){if(!m.state.focused)return;var A=m.display;clearInterval(A.blinker);var H=!0;A.cursorDiv.style.visibility="",m.options.cursorBlinkRate>0?A.blinker=setInterval(function(){m.hasFocus()||xs(m),A.cursorDiv.style.visibility=(H=!H)?"":"hidden"},m.options.cursorBlinkRate):m.options.cursorBlinkRate<0&&(A.cursorDiv.style.visibility="hidden")}function ul(m){m.state.focused||(m.display.input.focus(),rs(m))}function Js(m){m.state.delayingBlurEvent=!0,setTimeout(function(){m.state.delayingBlurEvent&&(m.state.delayingBlurEvent=!1,xs(m))},100)}function rs(m,A){if(m.state.delayingBlurEvent&&(m.state.delayingBlurEvent=!1),m.options.readOnly=="nocursor")return;m.state.focused||(Ye(m,"focus",m,A),m.state.focused=!0,X(m.display.wrapper,"CodeMirror-focused"),!m.curOp&&m.display.selForContextMenu!=m.doc.sel&&(m.display.input.reset(),e&&setTimeout(function(){return m.display.input.reset(!0)},20)),m.display.input.receivedFocus()),Pa(m)}function xs(m,A){if(m.state.delayingBlurEvent)return;m.state.focused&&(Ye(m,"blur",m,A),m.state.focused=!1,w(m.display.wrapper,"CodeMirror-focused")),clearInterval(m.display.blinker),setTimeout(function(){m.state.focused||(m.display.shift=!1)},150)}function Ns(m){for(var A=m.display,H=A.lineDiv.offsetTop,K=0;K<A.view.length;K++){var G=A.view[K],ee=m.options.lineWrapping,ye=void 0,Oe=0;if(G.hidden)continue;if(_&&p<8){var Pe=G.node.offsetTop+G.node.offsetHeight;ye=Pe-H,H=Pe}else{var He=G.node.getBoundingClientRect();ye=He.bottom-He.top,!ee&&G.text.firstChild&&(Oe=G.text.firstChild.getBoundingClientRect().right-He.left-1)}var ct=G.line.height-ye;if((ct>.005||ct<-.005)&&(Hn(G.line,ye),Us(G.line),G.rest))for(var _t=0;_t<G.rest.length;_t++)Us(G.rest[_t]);if(Oe>m.display.sizerWidth){var Wt=Math.ceil(Oe/La(m.display));Wt>m.display.maxLineLength&&(m.display.maxLineLength=Wt,m.display.maxLine=G.line,m.display.maxLineChanged=!0)}}}function Us(m){if(m.widgets)for(var A=0;A<m.widgets.length;++A){var H=m.widgets[A],K=H.node.parentNode;K&&(H.height=K.offsetHeight)}}function Fs(m,A,H){var K=H&&H.top!=null?Math.max(0,H.top):m.scroller.scrollTop;K=Math.floor(K-Es(m));var G=H&&H.bottom!=null?H.bottom:K+m.wrapper.clientHeight,ee=jn(A,K),ye=jn(A,G);if(H&&H.ensure){var Oe=H.ensure.from.line,Pe=H.ensure.to.line;Oe<ee?(ee=Oe,ye=jn(A,Ha($t(A,Oe))+m.wrapper.clientHeight)):Math.min(Pe,A.lastLine())>=ye&&(ee=jn(A,Ha($t(A,Pe))-m.wrapper.clientHeight),ye=Pe)}return{from:ee,to:Math.max(ye,ee+1)}}function Sl(m,A){if(Ze(m,"scrollCursorIntoView"))return;var H=m.display,K=H.sizer.getBoundingClientRect(),G=null;if(A.top+K.top<0?G=!0:A.bottom+K.top>(window.innerHeight||document.documentElement.clientHeight)&&(G=!1),G!=null&&!t){var ee=R("div","\u200B",null,`position: absolute;
top: `+(A.top-H.viewOffset-Es(m.display))+`px;
height: `+(A.bottom-A.top+At(m)+H.barHeight)+`px;
left: `+A.left+"px; width: "+Math.max(2,A.right-A.left)+"px;");m.display.lineSpace.appendChild(ee),ee.scrollIntoView(G),m.display.lineSpace.removeChild(ee)}}function Cl(m,A,H,K){K==null&&(K=0);var G;!m.options.lineWrapping&&A==H&&(A=A.ch?qt(A.line,A.sticky=="before"?A.ch-1:A.ch,"after"):A,H=A.sticky=="before"?qt(A.line,A.ch+1,"before"):A);for(var ee=0;ee<5;ee++){var ye=!1,Oe=ci(m,A),Pe=!H||H==A?Oe:ci(m,H);G={left:Math.min(Oe.left,Pe.left),top:Math.min(Oe.top,Pe.top)-K,right:Math.max(Oe.left,Pe.left),bottom:Math.max(Oe.bottom,Pe.bottom)+K};var He=Zs(m,G),ct=m.doc.scrollTop,_t=m.doc.scrollLeft;if(He.scrollTop!=null&&(ps(m,He.scrollTop),Math.abs(m.doc.scrollTop-ct)>1&&(ye=!0)),He.scrollLeft!=null&&(No(m,He.scrollLeft),Math.abs(m.doc.scrollLeft-_t)>1&&(ye=!0)),!ye)break}return G}function cl(m,A){var H=Zs(m,A);H.scrollTop!=null&&ps(m,H.scrollTop),H.scrollLeft!=null&&No(m,H.scrollLeft)}function Zs(m,A){var H=m.display,K=wa(m.display);A.top<0&&(A.top=0);var G=m.curOp&&m.curOp.scrollTop!=null?m.curOp.scrollTop:H.scroller.scrollTop,ee=je(m),ye={};A.bottom-A.top>ee&&(A.bottom=A.top+ee);var Oe=m.doc.height+st(H),Pe=A.top<K,He=A.bottom>Oe-K;if(A.top<G)ye.scrollTop=Pe?0:A.top;else if(A.bottom>G+ee){var ct=Math.min(A.top,(He?Oe:A.bottom)-ee);ct!=G&&(ye.scrollTop=ct)}var _t=m.options.fixedGutter?0:H.gutters.offsetWidth,Wt=m.curOp&&m.curOp.scrollLeft!=null?m.curOp.scrollLeft:H.scroller.scrollLeft-_t,Mt=ht(m)-H.gutters.offsetWidth,rn=A.right-A.left>Mt;return rn&&(A.right=A.left+Mt),A.left<10?ye.scrollLeft=0:A.left<Wt?ye.scrollLeft=Math.max(0,A.left+_t-(rn?0:10)):A.right>Mt+Wt-3&&(ye.scrollLeft=A.right+(rn?0:10)-Mt),ye}function js(m,A){if(A==null)return;ws(m),m.curOp.scrollTop=(m.curOp.scrollTop==null?m.doc.scrollTop:m.curOp.scrollTop)+A}function fs(m){ws(m);var A=m.getCursor();m.curOp.scrollToPos={from:A,to:A,margin:m.options.cursorScrollMargin}}function ss(m,A,H){(A!=null||H!=null)&&ws(m),A!=null&&(m.curOp.scrollLeft=A),H!=null&&(m.curOp.scrollTop=H)}function Tl(m,A){ws(m),m.curOp.scrollToPos=A}function ws(m){var A=m.curOp.scrollToPos;if(A){m.curOp.scrollToPos=null;var H=Er(m,A.from),K=Er(m,A.to);Ss(m,H,K,A.margin)}}function Ss(m,A,H,K){var G=Zs(m,{left:Math.min(A.left,H.left),top:Math.min(A.top,H.top)-K,right:Math.max(A.right,H.right),bottom:Math.max(A.bottom,H.bottom)+K});ss(m,G.scrollLeft,G.scrollTop)}function ps(m,A){if(Math.abs(m.doc.scrollTop-A)<2)return;T||As(m,{top:A}),ms(m,A,!0),T&&As(m),Ts(m,100)}function ms(m,A,H){if(A=Math.max(0,Math.min(m.display.scroller.scrollHeight-m.display.scroller.clientHeight,A)),m.display.scroller.scrollTop==A&&!H)return;m.doc.scrollTop=A,m.display.scrollbars.setScrollTop(A),m.display.scroller.scrollTop!=A&&(m.display.scroller.scrollTop=A)}function No(m,A,H,K){if(A=Math.max(0,Math.min(A,m.display.scroller.scrollWidth-m.display.scroller.clientWidth)),(H?A==m.doc.scrollLeft:Math.abs(m.doc.scrollLeft-A)<2)&&!K)return;m.doc.scrollLeft=A,Se(m),m.display.scroller.scrollLeft!=A&&(m.display.scroller.scrollLeft=A),m.display.scrollbars.setScrollLeft(A)}function Qo(m){var A=m.display,H=A.gutters.offsetWidth,K=Math.round(m.doc.height+st(m.display));return{clientHeight:A.scroller.clientHeight,viewHeight:A.wrapper.clientHeight,scrollWidth:A.scroller.scrollWidth,clientWidth:A.scroller.clientWidth,viewWidth:A.wrapper.clientWidth,barLeft:m.options.fixedGutter?H:0,docHeight:K,scrollHeight:K+At(m)+A.barHeight,nativeBarWidth:A.nativeBarWidth,gutterWidth:H}}var ls=function(m,A,H){this.cm=H;var K=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");K.tabIndex=G.tabIndex=-1,m(K),m(G),Me(K,"scroll",function(){K.clientHeight&&A(K.scrollTop,"vertical")}),Me(G,"scroll",function(){G.clientWidth&&A(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,_&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ls.prototype.update=function(m){var A=m.scrollWidth>m.clientWidth+1,H=m.scrollHeight>m.clientHeight+1,K=m.nativeBarWidth;if(H){this.vert.style.display="block",this.vert.style.bottom=A?K+"px":"0";var G=m.viewHeight-(A?K:0);this.vert.firstChild.style.height=Math.max(0,m.scrollHeight-m.clientHeight+G)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(A){this.horiz.style.display="block",this.horiz.style.right=H?K+"px":"0",this.horiz.style.left=m.barLeft+"px";var ee=m.viewWidth-m.barLeft-(H?K:0);this.horiz.firstChild.style.width=Math.max(0,m.scrollWidth-m.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&m.clientHeight>0&&(K==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:H?K:0,bottom:A?K:0}},ls.prototype.setScrollLeft=function(m){this.horiz.scrollLeft!=m&&(this.horiz.scrollLeft=m),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ls.prototype.setScrollTop=function(m){this.vert.scrollTop!=m&&(this.vert.scrollTop=m),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ls.prototype.zeroWidthHack=function(){var m=f&&!i?"12px":"18px";this.horiz.style.height=this.vert.style.width=m,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Z,this.disableVert=new Z},ls.prototype.enableZeroWidthBar=function(m,A,H){m.style.pointerEvents="auto";function K(){var G=m.getBoundingClientRect(),ee=H=="vert"?document.elementFromPoint(G.right-1,(G.top+G.bottom)/2):document.elementFromPoint((G.right+G.left)/2,G.bottom-1);ee!=m?m.style.pointerEvents="none":A.set(1e3,K)}A.set(1e3,K)},ls.prototype.clear=function(){var m=this.horiz.parentNode;m.removeChild(this.horiz),m.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};function gs(m,A){A||(A=Qo(m));var H=m.display.barWidth,K=m.display.barHeight;Bs(m,A);for(var G=0;G<4&&H!=m.display.barWidth||K!=m.display.barHeight;G++)H!=m.display.barWidth&&m.options.lineWrapping&&Ns(m),Bs(m,Qo(m)),H=m.display.barWidth,K=m.display.barHeight}function Bs(m,A){var H=m.display,K=H.scrollbars.update(A);H.sizer.style.paddingRight=(H.barWidth=K.right)+"px",H.sizer.style.paddingBottom=(H.barHeight=K.bottom)+"px",H.heightForcer.style.borderBottom=K.bottom+"px solid transparent",K.right&&K.bottom?(H.scrollbarFiller.style.display="block",H.scrollbarFiller.style.height=K.bottom+"px",H.scrollbarFiller.style.width=K.right+"px"):H.scrollbarFiller.style.display="",K.bottom&&m.options.coverGutterNextToScrollbar&&m.options.fixedGutter?(H.gutterFiller.style.display="block",H.gutterFiller.style.height=K.bottom+"px",H.gutterFiller.style.width=A.gutterWidth+"px"):H.gutterFiller.style.display=""}var $s={native:ls,null:Cs};function Ks(m){m.display.scrollbars&&(m.display.scrollbars.clear(),m.display.scrollbars.addClass&&w(m.display.wrapper,m.display.scrollbars.addClass)),m.display.scrollbars=new $s[m.options.scrollbarStyle](function(A){m.display.wrapper.insertBefore(A,m.display.scrollbarFiller),Me(A,"mousedown",function(){m.state.focused&&setTimeout(function(){return m.display.input.focus()},0)}),A.setAttribute("cm-not-content","true")},function(A,H){H=="horizontal"?No(m,A):ps(m,A)},m),m.display.scrollbars.addClass&&X(m.display.wrapper,m.display.scrollbars.addClass)}var el=0;function is(m){m.curOp={cm:m,viewChanged:!1,startHeight:m.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++el},Wa(m.curOp)}function us(m){var A=m.curOp;A&&bi(A,function(H){for(var K=0;K<H.ops.length;K++)H.ops[K].cm.curOp=null;Hs(H)})}function Hs(m){for(var A=m.ops,H=0;H<A.length;H++)tl(A[H]);for(var K=0;K<A.length;K++)Al(A[K]);for(var G=0;G<A.length;G++)Ol(A[G]);for(var ee=0;ee<A.length;ee++)nl(A[ee]);for(var ye=0;ye<A.length;ye++)Ws(A[ye])}function tl(m){var A=m.cm,H=A.display;dl(A),m.updateMaxLine&&Oo(A),m.mustUpdate=m.viewChanged||m.forceUpdate||m.scrollTop!=null||m.scrollToPos&&(m.scrollToPos.from.line<H.viewFrom||m.scrollToPos.to.line>=H.viewTo)||H.maxLineChanged&&A.options.lineWrapping,m.update=m.mustUpdate&&new xo(A,m.mustUpdate&&{top:m.scrollTop,ensure:m.scrollToPos},m.forceUpdate)}function Al(m){m.updatedDisplay=m.mustUpdate&&cs(m.cm,m.update)}function Ol(m){var A=m.cm,H=A.display;m.updatedDisplay&&Ns(A),m.barMeasure=Qo(A),H.maxLineChanged&&!A.options.lineWrapping&&(m.adjustWidthTo=pt(A,H.maxLine,H.maxLine.text.length).left+3,A.display.sizerWidth=m.adjustWidthTo,m.barMeasure.scrollWidth=Math.max(H.scroller.clientWidth,H.sizer.offsetLeft+m.adjustWidthTo+At(A)+A.display.barWidth),m.maxScrollLeft=Math.max(0,H.sizer.offsetLeft+m.adjustWidthTo-ht(A))),(m.updatedDisplay||m.selectionChanged)&&(m.preparedSelection=H.input.prepareSelection())}function nl(m){var A=m.cm;m.adjustWidthTo!=null&&(A.display.sizer.style.minWidth=m.adjustWidthTo+"px",m.maxScrollLeft<A.doc.scrollLeft&&No(A,Math.min(A.display.scroller.scrollLeft,m.maxScrollLeft),!0),A.display.maxLineChanged=!1);var H=m.focus&&m.focus==z();m.preparedSelection&&A.display.input.showSelection(m.preparedSelection,H),(m.updatedDisplay||m.startHeight!=A.doc.height)&&gs(A,m.barMeasure),m.updatedDisplay&&Ui(A,m.barMeasure),m.selectionChanged&&Pa(A),A.state.focused&&m.updateInput&&A.display.input.reset(m.typing),H&&ul(m.cm)}function Ws(m){var A=m.cm,H=A.display,K=A.doc;if(m.updatedDisplay&&Xs(A,m.update),H.wheelStartX!=null&&(m.scrollTop!=null||m.scrollLeft!=null||m.scrollToPos)&&(H.wheelStartX=H.wheelStartY=null),m.scrollTop!=null&&ms(A,m.scrollTop,m.forceScroll),m.scrollLeft!=null&&No(A,m.scrollLeft,!0,!0),m.scrollToPos){var G=Cl(A,V(K,m.scrollToPos.from),V(K,m.scrollToPos.to),m.scrollToPos.margin);Sl(A,G)}var ee=m.maybeHiddenMarkers,ye=m.maybeUnhiddenMarkers;if(ee)for(var Oe=0;Oe<ee.length;++Oe)ee[Oe].lines.length||Ye(ee[Oe],"hide");if(ye)for(var Pe=0;Pe<ye.length;++Pe)ye[Pe].lines.length&&Ye(ye[Pe],"unhide");H.wrapper.offsetHeight&&(K.scrollTop=A.display.scroller.scrollTop),m.changeObjs&&Ye(A,"changes",A,m.changeObjs),m.update&&m.update.finish()}function vo(m,A){if(m.curOp)return A();is(m);try{return A()}finally{us(m)}}function Sa(m,A){return function(){if(m.curOp)return A.apply(m,arguments);is(m);try{return A.apply(m,arguments)}finally{us(m)}}}function eo(m){return function(){if(this.curOp)return m.apply(this,arguments);is(this);try{return m.apply(this,arguments)}finally{us(this)}}}function Ca(m){return function(){var A=this.cm;if(!A||A.curOp)return m.apply(this,arguments);is(A);try{return m.apply(this,arguments)}finally{us(A)}}}function Ts(m,A){m.doc.highlightFrontier<m.display.viewTo&&m.state.highlight.set(A,U(Bl,m))}function Bl(m){var A=m.doc;if(A.highlightFrontier>=m.display.viewTo)return;var H=+new Date+m.options.workTime,K=Jt(m,A.highlightFrontier),G=[];A.iter(K.line,Math.min(A.first+A.size,m.display.viewTo+500),function(ee){if(K.line>=m.display.viewFrom){var ye=ee.styles,Oe=ee.text.length>m.options.maxHighlightLength?zt(A.mode,K.state):null,Pe=it(m,ee,K,!0);Oe&&(K.state=Oe),ee.styles=Pe.styles;var He=ee.styleClasses,ct=Pe.classes;ct?ee.styleClasses=ct:He&&(ee.styleClasses=null);for(var _t=!ye||ye.length!=ee.styles.length||He!=ct&&(!He||!ct||He.bgClass!=ct.bgClass||He.textClass!=ct.textClass),Wt=0;!_t&&Wt<ye.length;++Wt)_t=ye[Wt]!=ee.styles[Wt];_t&&G.push(K.line),ee.stateAfter=K.save(),K.nextLine()}else ee.text.length<=m.options.maxHighlightLength&&an(m,ee.text,K),ee.stateAfter=K.line%5==0?K.save():null,K.nextLine();if(+new Date>H)return Ts(m,m.options.workDelay),!0}),A.highlightFrontier=K.line,A.modeFrontier=Math.max(A.modeFrontier,K.line),G.length&&vo(m,function(){for(var ee=0;ee<G.length;ee++)fa(m,G[ee],"text")})}var xo=function(m,A,H){var K=m.display;this.viewport=A,this.visible=Fs(K,m.doc,A),this.editorIsHidden=!K.wrapper.offsetWidth,this.wrapperHeight=K.wrapper.clientHeight,this.wrapperWidth=K.wrapper.clientWidth,this.oldDisplayWidth=ht(m),this.force=H,this.dims=ha(m),this.events=[]};xo.prototype.signal=function(m,A){Fe(m,A)&&this.events.push(arguments)},xo.prototype.finish=function(){for(var m=0;m<this.events.length;m++)Ye.apply(null,this.events[m])};function dl(m){var A=m.display;!A.scrollbarsClipped&&A.scroller.offsetWidth&&(A.nativeBarWidth=A.scroller.offsetWidth-A.scroller.clientWidth,A.heightForcer.style.height=At(m)+"px",A.sizer.style.marginBottom=-A.nativeBarWidth+"px",A.sizer.style.borderRightWidth=At(m)+"px",A.scrollbarsClipped=!0)}function Rl(m){if(m.hasFocus())return null;var A=z();if(!A||!M(m.display.lineDiv,A))return null;var H={activeElt:A};if(window.getSelection){var K=window.getSelection();K.anchorNode&&K.extend&&M(m.display.lineDiv,K.anchorNode)&&(H.anchorNode=K.anchorNode,H.anchorOffset=K.anchorOffset,H.focusNode=K.focusNode,H.focusOffset=K.focusOffset)}return H}function hl(m){if(!m||!m.activeElt||m.activeElt==z())return;if(m.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(m.activeElt.nodeName)&&m.anchorNode&&M(document.body,m.anchorNode)&&M(document.body,m.focusNode)){var A=window.getSelection(),H=document.createRange();H.setEnd(m.anchorNode,m.anchorOffset),H.collapse(!1),A.removeAllRanges(),A.addRange(H),A.extend(m.focusNode,m.focusOffset)}}function cs(m,A){var H=m.display,K=m.doc;if(A.editorIsHidden)return la(m),!1;if(!A.force&&A.visible.from>=H.viewFrom&&A.visible.to<=H.viewTo&&(H.updateLineNumbers==null||H.updateLineNumbers>=H.viewTo)&&H.renderedView==H.view&&ts(m)==0)return!1;qe(m)&&(la(m),A.dims=ha(m));var G=K.first+K.size,ee=Math.max(A.visible.from-m.options.viewportMargin,K.first),ye=Math.min(G,A.visible.to+m.options.viewportMargin);H.viewFrom<ee&&ee-H.viewFrom<20&&(ee=Math.max(K.first,H.viewFrom)),H.viewTo>ye&&H.viewTo-ye<20&&(ye=Math.min(G,H.viewTo)),oi&&(ee=qa(m.doc,ee),ye=ja(m.doc,ye));var Oe=ee!=H.viewFrom||ye!=H.viewTo||H.lastWrapHeight!=A.wrapperHeight||H.lastWrapWidth!=A.wrapperWidth;es(m,ee,ye),H.viewOffset=Ha($t(m.doc,H.viewFrom)),m.display.mover.style.top=H.viewOffset+"px";var Pe=ts(m);if(!Oe&&Pe==0&&!A.force&&H.renderedView==H.view&&(H.updateLineNumbers==null||H.updateLineNumbers>=H.viewTo))return!1;var He=Rl(m);return Pe>4&&(H.lineDiv.style.display="none"),fl(m,H.updateLineNumbers,A.dims),Pe>4&&(H.lineDiv.style.display=""),H.renderedView=H.view,hl(He),S(H.cursorDiv),S(H.selectionDiv),H.gutters.style.height=H.sizer.style.minHeight=0,Oe&&(H.lastWrapHeight=A.wrapperHeight,H.lastWrapWidth=A.wrapperWidth,Ts(m,400)),H.updateLineNumbers=null,!0}function Xs(m,A){for(var H=A.viewport,K=!0;;K=!1){if(!K||!m.options.lineWrapping||A.oldDisplayWidth==ht(m)){if(H&&H.top!=null&&(H={top:Math.min(m.doc.height+st(m.display)-je(m),H.top)}),A.visible=Fs(m.display,m.doc,H),A.visible.from>=m.display.viewFrom&&A.visible.to<=m.display.viewTo)break}else K&&(A.visible=Fs(m.display,m.doc,H));if(!cs(m,A))break;Ns(m);var G=Qo(m);qi(m),gs(m,G),Ui(m,G),A.force=!1}A.signal(m,"update",m),(m.display.viewFrom!=m.display.reportedViewFrom||m.display.viewTo!=m.display.reportedViewTo)&&(A.signal(m,"viewportChange",m,m.display.viewFrom,m.display.viewTo),m.display.reportedViewFrom=m.display.viewFrom,m.display.reportedViewTo=m.display.viewTo)}function As(m,A){var H=new xo(m,A);if(cs(m,H)){Ns(m),Xs(m,H);var K=Qo(m);qi(m),gs(m,K),Ui(m,K),H.finish()}}function fl(m,A,H){var K=m.display,G=m.options.lineNumbers,ee=K.lineDiv,ye=ee.firstChild;function Oe(rn){var pn=rn.nextSibling;return e&&f&&m.display.currentWheelTarget==rn?rn.style.display="none":rn.parentNode.removeChild(rn),pn}for(var Pe=K.view,He=K.viewFrom,ct=0;ct<Pe.length;ct++){var _t=Pe[ct];if(!_t.hidden)if(!_t.node||_t.node.parentNode!=ee){var Wt=Ro(m,_t,He,H);ee.insertBefore(Wt,ye)}else{for(;ye!=_t.node;)ye=Oe(ye);var Mt=G&&A!=null&&A<=He&&_t.lineNumber;_t.changes&&(re(_t.changes,"gutter")>-1&&(Mt=!1),Dn(m,_t,He,H)),Mt&&(S(_t.lineNumber),_t.lineNumber.appendChild(document.createTextNode(jr(m.options,He)))),ye=_t.node.nextSibling}He+=_t.size}for(;ye;)ye=Oe(ye)}function rl(m){var A=m.gutters.offsetWidth;m.sizer.style.marginLeft=A+"px"}function Ui(m,A){m.display.sizer.style.minHeight=A.docHeight+"px",m.display.heightForcer.style.top=A.docHeight+"px",m.display.gutters.style.height=A.docHeight+m.display.barHeight+At(m)+"px"}function Se(m){var A=m.display,H=A.view;if(!A.alignWidgets&&(!A.gutters.firstChild||!m.options.fixedGutter))return;for(var K=oo(A)-A.scroller.scrollLeft+m.doc.scrollLeft,G=A.gutters.offsetWidth,ee=K+"px",ye=0;ye<H.length;ye++)if(!H[ye].hidden){m.options.fixedGutter&&(H[ye].gutter&&(H[ye].gutter.style.left=ee),H[ye].gutterBackground&&(H[ye].gutterBackground.style.left=ee));var Oe=H[ye].alignable;if(Oe)for(var Pe=0;Pe<Oe.length;Pe++)Oe[Pe].style.left=ee}m.options.fixedGutter&&(A.gutters.style.left=K+G+"px")}function qe(m){if(!m.options.lineNumbers)return!1;var A=m.doc,H=jr(m.options,A.first+A.size-1),K=m.display;if(H.length!=K.lineNumChars){var G=K.measure.appendChild(R("div",[R("div",H)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ee=G.firstChild.offsetWidth,ye=G.offsetWidth-ee;return K.lineGutter.style.width="",K.lineNumInnerWidth=Math.max(ee,K.lineGutter.offsetWidth-ye)+1,K.lineNumWidth=K.lineNumInnerWidth+ye,K.lineNumChars=K.lineNumInnerWidth?H.length:-1,K.lineGutter.style.width=K.lineNumWidth+"px",rl(m.display),!0}return!1}function at(m,A){for(var H=[],K=!1,G=0;G<m.length;G++){var ee=m[G],ye=null;if(typeof ee!="string"&&(ye=ee.style,ee=ee.className),ee=="CodeMirror-linenumbers")if(A)K=!0;else continue;H.push({className:ee,style:ye})}return A&&!K&&H.push({className:"CodeMirror-linenumbers",style:null}),H}function Ot(m){var A=m.gutters,H=m.gutterSpecs;S(A),m.lineGutter=null;for(var K=0;K<H.length;++K){var G=H[K],ee=G.className,ye=G.style,Oe=A.appendChild(R("div",null,"CodeMirror-gutter "+ee));ye&&(Oe.style.cssText=ye),ee=="CodeMirror-linenumbers"&&(m.lineGutter=Oe,Oe.style.width=(m.lineNumWidth||1)+"px")}A.style.display=H.length?"":"none",rl(m)}function Ct(m){Ot(m.display),Zi(m),Se(m)}function yt(m,A,H,K){var G=this;this.input=H,G.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),G.scrollbarFiller.setAttribute("cm-not-content","true"),G.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),G.gutterFiller.setAttribute("cm-not-content","true"),G.lineDiv=P("div",null,"CodeMirror-code"),G.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),G.cursorDiv=R("div",null,"CodeMirror-cursors"),G.measure=R("div",null,"CodeMirror-measure"),G.lineMeasure=R("div",null,"CodeMirror-measure"),G.lineSpace=P("div",[G.measure,G.lineMeasure,G.selectionDiv,G.cursorDiv,G.lineDiv],null,"position: relative; outline: none");var ee=P("div",[G.lineSpace],"CodeMirror-lines");G.mover=R("div",[ee],null,"position: relative"),G.sizer=R("div",[G.mover],"CodeMirror-sizer"),G.sizerWidth=null,G.heightForcer=R("div",null,null,"position: absolute; height: "+me+"px; width: 1px;"),G.gutters=R("div",null,"CodeMirror-gutters"),G.lineGutter=null,G.scroller=R("div",[G.sizer,G.heightForcer,G.gutters],"CodeMirror-scroll"),G.scroller.setAttribute("tabIndex","-1"),G.wrapper=R("div",[G.scrollbarFiller,G.gutterFiller,G.scroller],"CodeMirror"),_&&p<8&&(G.gutters.style.zIndex=-1,G.scroller.style.paddingRight=0),!e&&!(T&&d)&&(G.scroller.draggable=!0),m&&(m.appendChild?m.appendChild(G.wrapper):m(G.wrapper)),G.viewFrom=G.viewTo=A.first,G.reportedViewFrom=G.reportedViewTo=A.first,G.view=[],G.renderedView=null,G.externalMeasured=null,G.viewOffset=0,G.lastWrapHeight=G.lastWrapWidth=0,G.updateLineNumbers=null,G.nativeBarWidth=G.barHeight=G.barWidth=0,G.scrollbarsClipped=!1,G.lineNumWidth=G.lineNumInnerWidth=G.lineNumChars=null,G.alignWidgets=!1,G.cachedCharWidth=G.cachedTextHeight=G.cachedPaddingH=null,G.maxLine=null,G.maxLineLength=0,G.maxLineChanged=!1,G.wheelDX=G.wheelDY=G.wheelStartX=G.wheelStartY=null,G.shift=!1,G.selForContextMenu=null,G.activeTouch=null,G.gutterSpecs=at(K.gutters,K.lineNumbers),Ot(G),H.init(G)}var Tt=0,Et=null;_?Et=-.53:T?Et=15:n?Et=-.7:r&&(Et=-1/3);function mt(m){var A=m.wheelDeltaX,H=m.wheelDeltaY;return A==null&&m.detail&&m.axis==m.HORIZONTAL_AXIS&&(A=m.detail),H==null&&m.detail&&m.axis==m.VERTICAL_AXIS?H=m.detail:H==null&&(H=m.wheelDelta),{x:A,y:H}}function Rt(m){var A=mt(m);return A.x*=Et,A.y*=Et,A}function kt(m,A){var H=mt(A),K=H.x,G=H.y,ee=m.display,ye=ee.scroller,Oe=ye.scrollWidth>ye.clientWidth,Pe=ye.scrollHeight>ye.clientHeight;if(!(K&&Oe||G&&Pe))return;if(G&&f&&e){e:for(var He=A.target,ct=ee.view;He!=ye;He=He.parentNode)for(var _t=0;_t<ct.length;_t++)if(ct[_t].node==He){m.display.currentWheelTarget=He;break e}}if(K&&!T&&!l&&Et!=null){G&&Pe&&ps(m,Math.max(0,ye.scrollTop+G*Et)),No(m,Math.max(0,ye.scrollLeft+K*Et)),(!G||G&&Pe)&&_e(A),ee.wheelStartX=null;return}if(G&&Et!=null){var Wt=G*Et,Mt=m.doc.scrollTop,rn=Mt+ee.wrapper.clientHeight;Wt<0?Mt=Math.max(0,Mt+Wt-50):rn=Math.min(m.doc.height,rn+Wt+50),As(m,{top:Mt,bottom:rn})}Tt<20&&(ee.wheelStartX==null?(ee.wheelStartX=ye.scrollLeft,ee.wheelStartY=ye.scrollTop,ee.wheelDX=K,ee.wheelDY=G,setTimeout(function(){if(ee.wheelStartX==null)return;var pn=ye.scrollLeft-ee.wheelStartX,On=ye.scrollTop-ee.wheelStartY,Gn=On&&ee.wheelDY&&On/ee.wheelDY||pn&&ee.wheelDX&&pn/ee.wheelDX;if(ee.wheelStartX=ee.wheelStartY=null,!Gn)return;Et=(Et*Tt+Gn)/(Tt+1),++Tt},200)):(ee.wheelDX+=K,ee.wheelDY+=G))}var jt=function(m,A){this.ranges=m,this.primIndex=A};jt.prototype.primary=function(){return this.ranges[this.primIndex]},jt.prototype.equals=function(m){if(m==this)return!0;if(m.primIndex!=this.primIndex||m.ranges.length!=this.ranges.length)return!1;for(var A=0;A<this.ranges.length;A++){var H=this.ranges[A],K=m.ranges[A];if(!Kr(H.anchor,K.anchor)||!Kr(H.head,K.head))return!1}return!0},jt.prototype.deepCopy=function(){for(var m=[],A=0;A<this.ranges.length;A++)m[A]=new Gt(Li(this.ranges[A].anchor),Li(this.ranges[A].head));return new jt(m,this.primIndex)},jt.prototype.somethingSelected=function(){for(var m=0;m<this.ranges.length;m++)if(!this.ranges[m].empty())return!0;return!1},jt.prototype.contains=function(m,A){A||(A=m);for(var H=0;H<this.ranges.length;H++){var K=this.ranges[H];if(wn(A,K.from())>=0&&wn(m,K.to())<=0)return H}return-1};var Gt=function(m,A){this.anchor=m,this.head=A};Gt.prototype.from=function(){return Qn(this.anchor,this.head)},Gt.prototype.to=function(){return Mr(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bt(m,A,H){var K=m&&m.options.selectionsMayTouch,G=A[H];A.sort(function(Wt,Mt){return wn(Wt.from(),Mt.from())}),H=re(A,G);for(var ee=1;ee<A.length;ee++){var ye=A[ee],Oe=A[ee-1],Pe=wn(Oe.to(),ye.from());if(K&&!ye.empty()?Pe>0:Pe>=0){var He=Qn(Oe.from(),ye.from()),ct=Mr(Oe.to(),ye.to()),_t=Oe.empty()?ye.from()==ye.head:Oe.from()==Oe.head;ee<=H&&--H,A.splice(--ee,2,new Gt(_t?ct:He,_t?He:ct))}}return new jt(A,H)}function Xt(m,A){return new jt([new Gt(m,A||m)],0)}function tn(m){return m.text?qt(m.from.line+m.text.length-1,oe(m.text).length+(m.text.length==1?m.from.ch:0)):m.to}function Tn(m,A){if(wn(m,A.from)<0)return m;if(wn(m,A.to)<=0)return tn(A);var H=m.line+A.text.length-(A.to.line-A.from.line)-1,K=m.ch;return m.line==A.to.line&&(K+=tn(A).ch-A.to.ch),qt(H,K)}function Sn(m,A){for(var H=[],K=0;K<m.sel.ranges.length;K++){var G=m.sel.ranges[K];H.push(new Gt(Tn(G.anchor,A),Tn(G.head,A)))}return Bt(m.cm,H,m.sel.primIndex)}function Vt(m,A,H){return m.line==A.line?qt(H.line,m.ch-A.ch+H.ch):qt(H.line+(m.line-A.line),m.ch)}function In(m,A,H){for(var K=[],G=qt(m.first,0),ee=G,ye=0;ye<A.length;ye++){var Oe=A[ye],Pe=Vt(Oe.from,G,ee),He=Vt(tn(Oe),G,ee);if(G=Oe.to,ee=He,H=="around"){var ct=m.sel.ranges[ye],_t=wn(ct.head,ct.anchor)<0;K[ye]=new Gt(_t?He:Pe,_t?Pe:He)}else K[ye]=new Gt(Pe,Pe)}return new jt(K,m.sel.primIndex)}function Xn(m){m.doc.mode=Ht(m.options,m.doc.modeOption),zn(m)}function zn(m){m.doc.iter(function(A){A.stateAfter&&(A.stateAfter=null),A.styles&&(A.styles=null)}),m.doc.modeFrontier=m.doc.highlightFrontier=m.doc.first,Ts(m,100),m.state.modeGen++,m.curOp&&Zi(m)}function En(m,A){return A.from.ch==0&&A.to.ch==0&&oe(A.text)==""&&(!m.cm||m.cm.options.wholeLineUpdateBefore)}function Mn(m,A,H,K){function G(er){return H?H[er]:null}function ee(er,Vn,sr){Vo(er,Vn,sr,K),sn(er,"change",er,A)}function ye(er,Vn){for(var sr=[],Rr=er;Rr<Vn;++Rr)sr.push(new Ra(He[Rr],G(Rr),K));return sr}var Oe=A.from,Pe=A.to,He=A.text,ct=$t(m,Oe.line),_t=$t(m,Pe.line),Wt=oe(He),Mt=G(He.length-1),rn=Pe.line-Oe.line;if(A.full)m.insert(0,ye(0,He.length)),m.remove(He.length,m.size-He.length);else if(En(m,A)){var pn=ye(0,He.length-1);ee(_t,_t.text,Mt),rn&&m.remove(Oe.line,rn),pn.length&&m.insert(Oe.line,pn)}else if(ct==_t)if(He.length==1)ee(ct,ct.text.slice(0,Oe.ch)+Wt+ct.text.slice(Pe.ch),Mt);else{var On=ye(1,He.length-1);On.push(new Ra(Wt+ct.text.slice(Pe.ch),Mt,K)),ee(ct,ct.text.slice(0,Oe.ch)+He[0],G(0)),m.insert(Oe.line+1,On)}else if(He.length==1)ee(ct,ct.text.slice(0,Oe.ch)+He[0]+_t.text.slice(Pe.ch),G(0)),m.remove(Oe.line+1,rn);else{ee(ct,ct.text.slice(0,Oe.ch)+He[0],G(0)),ee(_t,Wt+_t.text.slice(Pe.ch),Mt);var Gn=ye(1,He.length-1);rn>1&&m.remove(Oe.line+1,rn-1),m.insert(Oe.line+1,Gn)}sn(m,"change",m,A)}function ln(m,A,H){function K(G,ee,ye){if(G.linked)for(var Oe=0;Oe<G.linked.length;++Oe){var Pe=G.linked[Oe];if(Pe.doc==ee)continue;var He=ye&&Pe.sharedHist;if(H&&!He)continue;A(Pe.doc,He),K(Pe.doc,G,He)}}K(m,null,!0)}function on(m,A){if(A.cm)throw new Error("This document is already in use.");m.doc=A,A.cm=m,go(m),Xn(m),Yt(m),m.options.lineWrapping||Oo(m),m.options.mode=A.modeOption,Zi(m)}function Yt(m){(m.doc.direction=="rtl"?X:w)(m.display.lineDiv,"CodeMirror-rtl")}function vn(m){vo(m,function(){Yt(m),Zi(m)})}function xn(m){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=m||1}function _n(m,A){var H={from:Li(A.from),to:tn(A),text:Zn(m,A.from,A.to)};return Ln(m,H,A.from.line,A.to.line+1),ln(m,function(K){return Ln(K,H,A.from.line,A.to.line+1)},!0),H}function Cn(m){for(;m.length;){var A=oe(m);if(A.ranges)m.pop();else break}}function un(m,A){if(A)return Cn(m.done),oe(m.done);if(m.done.length&&!oe(m.done).ranges)return oe(m.done);if(m.done.length>1&&!m.done[m.done.length-2].ranges)return m.done.pop(),oe(m.done)}function wt(m,A,H,K){var G=m.history;G.undone.length=0;var ee=+new Date,ye,Oe;if((G.lastOp==K||G.lastOrigin==A.origin&&A.origin&&(A.origin.charAt(0)=="+"&&G.lastModTime>ee-(m.cm?m.cm.options.historyEventDelay:500)||A.origin.charAt(0)=="*"))&&(ye=un(G,G.lastOp==K)))Oe=oe(ye.changes),wn(A.from,A.to)==0&&wn(A.from,Oe.to)==0?Oe.to=tn(A):ye.changes.push(_n(m,A));else{var Pe=oe(G.done);for((!Pe||!Pe.ranges)&&kn(m.sel,G.done),ye={changes:[_n(m,A)],generation:G.generation},G.done.push(ye);G.done.length>G.undoDepth;)G.done.shift(),G.done[0].ranges||G.done.shift()}G.done.push(H),G.generation=++G.maxGeneration,G.lastModTime=G.lastSelTime=ee,G.lastOp=G.lastSelOp=K,G.lastOrigin=G.lastSelOrigin=A.origin,Oe||Ye(m,"historyAdded")}function nn(m,A,H,K){var G=A.charAt(0);return G=="*"||G=="+"&&H.ranges.length==K.ranges.length&&H.somethingSelected()==K.somethingSelected()&&new Date-m.history.lastSelTime<=(m.cm?m.cm.options.historyEventDelay:500)}function qn(m,A,H,K){var G=m.history,ee=K&&K.origin;H==G.lastSelOp||ee&&G.lastSelOrigin==ee&&(G.lastModTime==G.lastSelTime&&G.lastOrigin==ee||nn(m,ee,oe(G.done),A))?G.done[G.done.length-1]=A:kn(A,G.done),G.lastSelTime=+new Date,G.lastSelOrigin=ee,G.lastSelOp=H,K&&K.clearRedo!==!1&&Cn(G.undone)}function kn(m,A){var H=oe(A);H&&H.ranges&&H.equals(m)||A.push(m)}function Ln(m,A,H,K){var G=A["spans_"+m.id],ee=0;m.iter(Math.max(m.first,H),Math.min(m.first+m.size,K),function(ye){ye.markedSpans&&((G||(G=A["spans_"+m.id]={}))[ee]=ye.markedSpans),++ee})}function gn(m){if(!m)return null;for(var A,H=0;H<m.length;++H)m[H].marker.explicitlyCleared?A||(A=m.slice(0,H)):A&&A.push(m[H]);return A?A.length?A:null:m}function Wn(m,A){var H=A["spans_"+m.id];if(!H)return null;for(var K=[],G=0;G<A.text.length;++G)K.push(gn(H[G]));return K}function An(m,A){var H=Wn(m,A),K=Za(m,A);if(!H)return K;if(!K)return H;for(var G=0;G<H.length;++G){var ee=H[G],ye=K[G];if(ee&&ye){e:for(var Oe=0;Oe<ye.length;++Oe){for(var Pe=ye[Oe],He=0;He<ee.length;++He)if(ee[He].marker==Pe.marker)continue e;ee.push(Pe)}}else ye&&(H[G]=ye)}return H}function ur(m,A,H){for(var K=[],G=0;G<m.length;++G){var ee=m[G];if(ee.ranges){K.push(H?jt.prototype.deepCopy.call(ee):ee);continue}var ye=ee.changes,Oe=[];K.push({changes:Oe});for(var Pe=0;Pe<ye.length;++Pe){var He=ye[Pe],ct=void 0;if(Oe.push({from:He.from,to:He.to,text:He.text}),A)for(var _t in He)(ct=_t.match(/^spans_(\d+)$/))&&(re(A,Number(ct[1]))>-1&&(oe(Oe)[_t]=He[_t],delete He[_t]))}}return K}function cr(m,A,H,K){if(K){var G=m.anchor;if(H){var ee=wn(A,G)<0;ee!=wn(H,G)<0?(G=A,A=H):ee!=wn(A,H)<0&&(A=H)}return new Gt(G,A)}else return new Gt(H||A,A)}function Oi(m,A,H,K,G){G==null&&(G=m.cm&&(m.cm.display.shift||m.extend)),Qr(m,new jt([cr(m.sel.primary(),A,H,G)],0),K)}function pa(m,A,H){for(var K=[],G=m.cm&&(m.cm.display.shift||m.extend),ee=0;ee<m.sel.ranges.length;ee++)K[ee]=cr(m.sel.ranges[ee],A[ee],null,G);var ye=Bt(m.cm,K,m.sel.primIndex);Qr(m,ye,H)}function Cr(m,A,H,K){var G=m.sel.ranges.slice(0);G[A]=H,Qr(m,Bt(m.cm,G,m.sel.primIndex),K)}function dr(m,A,H,K){Qr(m,Xt(A,H),K)}function ei(m,A,H){var K={ranges:A.ranges,update:function(G){this.ranges=[];for(var ee=0;ee<G.length;ee++)this.ranges[ee]=new Gt(V(m,G[ee].anchor),V(m,G[ee].head))},origin:H&&H.origin};return Ye(m,"beforeSelectionChange",m,K),m.cm&&Ye(m.cm,"beforeSelectionChange",m.cm,K),K.ranges!=A.ranges?Bt(m.cm,K.ranges,K.ranges.length-1):A}function vr(m,A,H){var K=m.history.done,G=oe(K);G&&G.ranges?(K[K.length-1]=A,kr(m,A,H)):Qr(m,A,H)}function Qr(m,A,H){kr(m,A,H),qn(m,m.sel,m.cm?m.cm.curOp.id:NaN,H)}function kr(m,A,H){(Fe(m,"beforeSelectionChange")||m.cm&&Fe(m.cm,"beforeSelectionChange"))&&(A=ei(m,A,H));var K=H&&H.bias||(wn(A.primary().head,m.sel.primary().head)<0?-1:1);ti(m,Jr(m,A,K,!0)),!(H&&H.scroll===!1)&&m.cm&&fs(m.cm)}function ti(m,A){if(A.equals(m.sel))return;m.sel=A,m.cm&&(m.cm.curOp.updateInput=1,m.cm.curOp.selectionChanged=!0,Ve(m.cm)),sn(m,"cursorActivity",m)}function Br(m){ti(m,Jr(m,m.sel,null,!1))}function Jr(m,A,H,K){for(var G,ee=0;ee<A.ranges.length;ee++){var ye=A.ranges[ee],Oe=A.ranges.length==m.sel.ranges.length&&m.sel.ranges[ee],Pe=rr(m,ye.anchor,Oe&&Oe.anchor,H,K),He=rr(m,ye.head,Oe&&Oe.head,H,K);(G||Pe!=ye.anchor||He!=ye.head)&&(G||(G=A.ranges.slice(0,ee)),G[ee]=new Gt(Pe,He))}return G?Bt(m.cm,G,A.primIndex):A}function Xi(m,A,H,K,G){var ee=$t(m,A.line);if(ee.markedSpans)for(var ye=0;ye<ee.markedSpans.length;++ye){var Oe=ee.markedSpans[ye],Pe=Oe.marker,He="selectLeft"in Pe?!Pe.selectLeft:Pe.inclusiveLeft,ct="selectRight"in Pe?!Pe.selectRight:Pe.inclusiveRight;if((Oe.from==null||(He?Oe.from<=A.ch:Oe.from<A.ch))&&(Oe.to==null||(ct?Oe.to>=A.ch:Oe.to>A.ch))){if(G&&(Ye(Pe,"beforeCursorEnter"),Pe.explicitlyCleared))if(ee.markedSpans){--ye;continue}else break;if(!Pe.atomic)continue;if(H){var _t=Pe.find(K<0?1:-1),Wt=void 0;if((K<0?ct:He)&&(_t=Ta(m,_t,-K,_t&&_t.line==A.line?ee:null)),_t&&_t.line==A.line&&(Wt=wn(_t,H))&&(K<0?Wt<0:Wt>0))return Xi(m,_t,A,K,G)}var Mt=Pe.find(K<0?-1:1);return(K<0?He:ct)&&(Mt=Ta(m,Mt,K,Mt.line==A.line?ee:null)),Mt?Xi(m,Mt,A,K,G):null}}return A}function rr(m,A,H,K,G){var ee=K||1,ye=Xi(m,A,H,ee,G)||!G&&Xi(m,A,H,ee,!0)||Xi(m,A,H,-ee,G)||!G&&Xi(m,A,H,-ee,!0);return ye||(m.cantEdit=!0,qt(m.first,0))}function Ta(m,A,H,K){return H<0&&A.ch==0?A.line>m.first?V(m,qt(A.line-1)):null:H>0&&A.ch==(K||$t(m,A.line)).text.length?A.line<m.first+m.size-1?qt(A.line+1,0):null:new qt(A.line,A.ch+H)}function Pi(m){m.setSelection(qt(m.firstLine(),0),qt(m.lastLine()),De)}function Fi(m,A,H){var K={canceled:!1,from:A.from,to:A.to,text:A.text,origin:A.origin,cancel:function(){return K.canceled=!0}};return H&&(K.update=function(G,ee,ye,Oe){G&&(K.from=V(m,G)),ee&&(K.to=V(m,ee)),ye&&(K.text=ye),Oe!==void 0&&(K.origin=Oe)}),Ye(m,"beforeChange",m,K),m.cm&&Ye(m.cm,"beforeChange",m.cm,K),K.canceled?(m.cm&&(m.cm.curOp.updateInput=2),null):{from:K.from,to:K.to,text:K.text,origin:K.origin}}function ni(m,A,H){if(m.cm){if(!m.cm.curOp)return Sa(m.cm,ni)(m,A,H);if(m.cm.state.suppressEdits)return}if((Fe(m,"beforeChange")||m.cm&&Fe(m.cm,"beforeChange"))&&(A=Fi(m,A,!0),!A))return;var K=Yi&&!H&&ri(m,A.from,A.to);if(K)for(var G=K.length-1;G>=0;--G)Ur(m,{from:K[G].from,to:K[G].to,text:G?[""]:A.text,origin:A.origin});else Ur(m,A)}function Ur(m,A){if(A.text.length==1&&A.text[0]==""&&wn(A.from,A.to)==0)return;var H=Sn(m,A);wt(m,A,H,m.cm?m.cm.curOp.id:NaN),Na(m,A,H,Za(m,A));var K=[];ln(m,function(G,ee){!ee&&re(K,G.history)==-1&&(So(G.history,A),K.push(G.history)),Na(G,A,null,Za(G,A))})}function xi(m,A,H){var K=m.cm&&m.cm.state.suppressEdits;if(K&&!H)return;for(var G=m.history,ee,ye=m.sel,Oe=A=="undo"?G.done:G.undone,Pe=A=="undo"?G.undone:G.done,He=0;He<Oe.length&&!(ee=Oe[He],H?ee.ranges&&!ee.equals(m.sel):!ee.ranges);He++);if(He==Oe.length)return;for(G.lastOrigin=G.lastSelOrigin=null;;)if(ee=Oe.pop(),ee.ranges){if(kn(ee,Pe),H&&!ee.equals(m.sel)){Qr(m,ee,{clearRedo:!1});return}ye=ee}else if(K){Oe.push(ee);return}else break;var ct=[];kn(ye,Pe),Pe.push({changes:ct,generation:G.generation}),G.generation=ee.generation||++G.maxGeneration;for(var _t=Fe(m,"beforeChange")||m.cm&&Fe(m.cm,"beforeChange"),Wt=function(pn){var On=ee.changes[pn];if(On.origin=A,_t&&!Fi(m,On,!1))return Oe.length=0,{};ct.push(_n(m,On));var Gn=pn?Sn(m,On):oe(Oe);Na(m,On,Gn,An(m,On)),!pn&&m.cm&&m.cm.scrollIntoView({from:On.from,to:tn(On)});var er=[];ln(m,function(Vn,sr){!sr&&re(er,Vn.history)==-1&&(So(Vn.history,On),er.push(Vn.history)),Na(Vn,On,null,An(Vn,On))})},Mt=ee.changes.length-1;Mt>=0;--Mt){var rn=Wt(Mt);if(rn)return rn.v}}function zi(m,A){if(A==0)return;if(m.first+=A,m.sel=new jt(xe(m.sel.ranges,function(G){return new Gt(qt(G.anchor.line+A,G.anchor.ch),qt(G.head.line+A,G.head.ch))}),m.sel.primIndex),m.cm){Zi(m.cm,m.first,m.first-A,A);for(var H=m.cm.display,K=H.viewFrom;K<H.viewTo;K++)fa(m.cm,K,"gutter")}}function Na(m,A,H,K){if(m.cm&&!m.cm.curOp)return Sa(m.cm,Na)(m,A,H,K);if(A.to.line<m.first){zi(m,A.text.length-1-(A.to.line-A.from.line));return}if(A.from.line>m.lastLine())return;if(A.from.line<m.first){var G=A.text.length-1-(m.first-A.from.line);zi(m,G),A={from:qt(m.first,0),to:qt(A.to.line+G,A.to.ch),text:[oe(A.text)],origin:A.origin}}var ee=m.lastLine();A.to.line>ee&&(A={from:A.from,to:qt(ee,$t(m,ee).text.length),text:[A.text[0]],origin:A.origin}),A.removed=Zn(m,A.from,A.to),H||(H=Sn(m,A)),m.cm?wo(m.cm,A,K):Mn(m,A,K),kr(m,H,De),m.cantEdit&&rr(m,qt(m.firstLine(),0))&&(m.cantEdit=!1)}function wo(m,A,H){var K=m.doc,G=m.display,ee=A.from,ye=A.to,Oe=!1,Pe=ee.line;m.options.lineWrapping||(Pe=Yn(ea($t(K,ee.line))),K.iter(Pe,ye.line+1,function(Mt){if(Mt==G.maxLine)return Oe=!0,!0})),K.sel.contains(A.from,A.to)>-1&&Ve(m),Mn(K,A,H,so(m)),m.options.lineWrapping||(K.iter(Pe,ee.line+A.text.length,function(Mt){var rn=Mo(Mt);rn>G.maxLineLength&&(G.maxLine=Mt,G.maxLineLength=rn,G.maxLineChanged=!0,Oe=!1)}),Oe&&(m.curOp.updateMaxLine=!0)),Dr(K,ee.line),Ts(m,400);var He=A.text.length-(ye.line-ee.line)-1;A.full?Zi(m):ee.line==ye.line&&A.text.length==1&&!En(m.doc,A)?fa(m,ee.line,"text"):Zi(m,ee.line,ye.line+1,He);var ct=Fe(m,"changes"),_t=Fe(m,"change");if(_t||ct){var Wt={from:ee,to:ye,text:A.text,removed:A.removed,origin:A.origin};_t&&sn(m,"change",m,Wt),ct&&(m.curOp.changeObjs||(m.curOp.changeObjs=[])).push(Wt)}m.display.selForContextMenu=null}function Ni(m,A,H,K,G){var ee;K||(K=H),wn(K,H)<0&&(ee=[K,H],H=ee[0],K=ee[1]),typeof A=="string"&&(A=m.splitLines(A)),ni(m,{from:H,to:K,text:A,origin:G})}function Ua(m,A,H,K){H<m.line?m.line+=K:A<m.line&&(m.line=A,m.ch=0)}function _o(m,A,H,K){for(var G=0;G<m.length;++G){var ee=m[G],ye=!0;if(ee.ranges){ee.copied||(ee=m[G]=ee.deepCopy(),ee.copied=!0);for(var Oe=0;Oe<ee.ranges.length;Oe++)Ua(ee.ranges[Oe].anchor,A,H,K),Ua(ee.ranges[Oe].head,A,H,K);continue}for(var Pe=0;Pe<ee.changes.length;++Pe){var He=ee.changes[Pe];if(H<He.from.line)He.from=qt(He.from.line+K,He.from.ch),He.to=qt(He.to.line+K,He.to.ch);else if(A<=He.to.line){ye=!1;break}}ye||(m.splice(0,G+1),G=0)}}function So(m,A){var H=A.from.line,K=A.to.line,G=A.text.length-(K-H)-1;_o(m.done,H,K,G),_o(m.undone,H,K,G)}function oa(m,A,H,K){var G=A,ee=A;return typeof A=="number"?ee=$t(m,ge(m,A)):G=Yn(A),G==null?null:(K(ee,G)&&m.cm&&fa(m.cm,G,H),ee)}function Fa(m){this.lines=m,this.parent=null;for(var A=0,H=0;H<m.length;++H)m[H].parent=this,A+=m[H].height;this.height=A}Fa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(m,A){for(var H=m,K=m+A;H<K;++H){var G=this.lines[H];this.height-=G.height,ar(G),sn(G,"delete")}this.lines.splice(m,A)},collapse:function(m){m.push.apply(m,this.lines)},insertInner:function(m,A,H){this.height+=H,this.lines=this.lines.slice(0,m).concat(A).concat(this.lines.slice(m));for(var K=0;K<A.length;++K)A[K].parent=this},iterN:function(m,A,H){for(var K=m+A;m<K;++m)if(H(this.lines[m]))return!0}};function Do(m){this.children=m;for(var A=0,H=0,K=0;K<m.length;++K){var G=m[K];A+=G.chunkSize(),H+=G.height,G.parent=this}this.size=A,this.height=H,this.parent=null}Do.prototype={chunkSize:function(){return this.size},removeInner:function(m,A){this.size-=A;for(var H=0;H<this.children.length;++H){var K=this.children[H],G=K.chunkSize();if(m<G){var ee=Math.min(A,G-m),ye=K.height;if(K.removeInner(m,ee),this.height-=ye-K.height,G==ee&&(this.children.splice(H--,1),K.parent=null),(A-=ee)==0)break;m=0}else m-=G}if(this.size-A<25&&(this.children.length>1||!(this.children[0]instanceof Fa))){var Oe=[];this.collapse(Oe),this.children=[new Fa(Oe)],this.children[0].parent=this}},collapse:function(m){for(var A=0;A<this.children.length;++A)this.children[A].collapse(m)},insertInner:function(m,A,H){this.size+=A.length,this.height+=H;for(var K=0;K<this.children.length;++K){var G=this.children[K],ee=G.chunkSize();if(m<=ee){if(G.insertInner(m,A,H),G.lines&&G.lines.length>50){for(var ye=G.lines.length%25+25,Oe=ye;Oe<G.lines.length;){var Pe=new Fa(G.lines.slice(Oe,Oe+=25));G.height-=Pe.height,this.children.splice(++K,0,Pe),Pe.parent=this}G.lines=G.lines.slice(0,ye),this.maybeSpill()}break}m-=ee}},maybeSpill:function(){if(this.children.length<=10)return;var m=this;do{var A=m.children.splice(m.children.length-5,5),H=new Do(A);if(m.parent){m.size-=H.size,m.height-=H.height;var G=re(m.parent.children,m);m.parent.children.splice(G+1,0,H)}else{var K=new Do(m.children);K.parent=m,m.children=[K,H],m=K}H.parent=m.parent}while(m.children.length>10);m.parent.maybeSpill()},iterN:function(m,A,H){for(var K=0;K<this.children.length;++K){var G=this.children[K],ee=G.chunkSize();if(m<ee){var ye=Math.min(A,ee-m);if(G.iterN(m,ye,H))return!0;if((A-=ye)==0)break;m=0}else m-=ee}}};var to=function(m,A,H){if(H)for(var K in H)H.hasOwnProperty(K)&&(this[K]=H[K]);this.doc=m,this.node=A};to.prototype.clear=function(){var m=this.doc.cm,A=this.line.widgets,H=this.line,K=Yn(H);if(K==null||!A)return;for(var G=0;G<A.length;++G)A[G]==this&&A.splice(G--,1);A.length||(H.widgets=null);var ee=ka(this);Hn(H,Math.max(0,H.height-ee)),m&&(vo(m,function(){Io(m,H,-ee),fa(m,K,"widget")}),sn(m,"lineWidgetCleared",m,this,K))},to.prototype.changed=function(){var m=this,A=this.height,H=this.doc.cm,K=this.line;this.height=null;var G=ka(this)-A;if(!G)return;Ba(this.doc,K)||Hn(K,K.height+G),H&&vo(H,function(){H.curOp.forceUpdate=!0,Io(H,K,G),sn(H,"lineWidgetChanged",H,m,Yn(K))})},Be(to);function Io(m,A,H){Ha(A)<(m.curOp&&m.curOp.scrollTop||m.doc.scrollTop)&&js(m,H)}function ds(m,A,H,K){var G=new to(m,H,K),ee=m.cm;return ee&&G.noHScroll&&(ee.display.alignWidgets=!0),oa(m,A,"widget",function(ye){var Oe=ye.widgets||(ye.widgets=[]);if(G.insertAt==null?Oe.push(G):Oe.splice(Math.min(Oe.length-1,Math.max(0,G.insertAt)),0,G),G.line=ye,ee&&!Ba(m,ye)){var Pe=Ha(ye)<m.scrollTop;Hn(ye,ye.height+ka(G)),Pe&&js(ee,G.height),ee.curOp.forceUpdate=!0}return!0}),ee&&sn(ee,"lineWidgetAdded",ee,G,typeof A=="number"?A:Yn(A)),G}var Os=0,ko=function(m,A){this.lines=[],this.type=A,this.doc=m,this.id=++Os};ko.prototype.clear=function(){if(this.explicitlyCleared)return;var m=this.doc.cm,A=m&&!m.curOp;if(A&&is(m),Fe(this,"clear")){var H=this.find();H&&sn(this,"clear",H.from,H.to)}for(var K=null,G=null,ee=0;ee<this.lines.length;++ee){var ye=this.lines[ee],Oe=ga(ye.markedSpans,this);m&&!this.collapsed?fa(m,Yn(ye),"text"):m&&(Oe.to!=null&&(G=Yn(ye)),Oe.from!=null&&(K=Yn(ye))),ye.markedSpans=mo(ye.markedSpans,Oe),Oe.from==null&&this.collapsed&&!Ba(this.doc,ye)&&m&&Hn(ye,wa(m.display))}if(m&&this.collapsed&&!m.options.lineWrapping)for(var Pe=0;Pe<this.lines.length;++Pe){var He=ea(this.lines[Pe]),ct=Mo(He);ct>m.display.maxLineLength&&(m.display.maxLine=He,m.display.maxLineLength=ct,m.display.maxLineChanged=!0)}K!=null&&m&&this.collapsed&&Zi(m,K,G+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,m&&Br(m.doc)),m&&sn(m,"markerCleared",m,this,K,G),A&&us(m),this.parent&&this.parent.clear()},ko.prototype.find=function(m,A){m==null&&this.type=="bookmark"&&(m=1);for(var H,K,G=0;G<this.lines.length;++G){var ee=this.lines[G],ye=ga(ee.markedSpans,this);if(ye.from!=null&&(H=qt(A?ee:Yn(ee),ye.from),m==-1))return H;if(ye.to!=null&&(K=qt(A?ee:Yn(ee),ye.to),m==1))return K}return H&&{from:H,to:K}},ko.prototype.changed=function(){var m=this,A=this.find(-1,!0),H=this,K=this.doc.cm;if(!A||!K)return;vo(K,function(){var G=A.line,ee=Yn(A.line),ye=It(K,ee);if(ye&&(Vr(ye),K.curOp.selectionChanged=K.curOp.forceUpdate=!0),K.curOp.updateMaxLine=!0,!Ba(H.doc,G)&&H.height!=null){var Oe=H.height;H.height=null;var Pe=ka(H)-Oe;Pe&&Hn(G,G.height+Pe)}sn(K,"markerChanged",K,m)})},ko.prototype.attachLine=function(m){if(!this.lines.length&&this.doc.cm){var A=this.doc.cm.curOp;(!A.maybeHiddenMarkers||re(A.maybeHiddenMarkers,this)==-1)&&(A.maybeUnhiddenMarkers||(A.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(m)},ko.prototype.detachLine=function(m){if(this.lines.splice(re(this.lines,m),1),!this.lines.length&&this.doc.cm){var A=this.doc.cm.curOp;(A.maybeHiddenMarkers||(A.maybeHiddenMarkers=[])).push(this)}},Be(ko);function Uo(m,A,H,K,G){if(K&&K.shared)return lo(m,A,H,K,G);if(m.cm&&!m.cm.curOp)return Sa(m.cm,Uo)(m,A,H,K,G);var ee=new ko(m,G),ye=wn(A,H);if(K&&L(K,ee,!1),ye>0||ye==0&&ee.clearWhenEmpty!==!1)return ee;if(ee.replacedWith&&(ee.collapsed=!0,ee.widgetNode=P("span",[ee.replacedWith],"CodeMirror-widget"),K.handleMouseEvents||ee.widgetNode.setAttribute("cm-ignore-events","true"),K.insertLeft&&(ee.widgetNode.insertLeft=!0)),ee.collapsed){if(Qi(m,A.line,A,H,ee)||A.line!=H.line&&Qi(m,H.line,A,H,ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");_a()}ee.addToHistory&&wt(m,{from:A,to:H,origin:"markText"},m.sel,NaN);var Oe=A.line,Pe=m.cm,He;if(m.iter(Oe,H.line+1,function(_t){Pe&&ee.collapsed&&!Pe.options.lineWrapping&&ea(_t)==Pe.display.maxLine&&(He=!0),ee.collapsed&&Oe!=A.line&&Hn(_t,0),ao(_t,new Si(ee,Oe==A.line?A.ch:null,Oe==H.line?H.ch:null)),++Oe}),ee.collapsed&&m.iter(A.line,H.line+1,function(_t){Ba(m,_t)&&Hn(_t,0)}),ee.clearOnEnter&&Me(ee,"beforeCursorEnter",function(){return ee.clear()}),ee.readOnly&&(di(),(m.history.done.length||m.history.undone.length)&&m.clearHistory()),ee.collapsed&&(ee.id=++Os,ee.atomic=!0),Pe){if(He&&(Pe.curOp.updateMaxLine=!0),ee.collapsed)Zi(Pe,A.line,H.line+1);else if(ee.className||ee.startStyle||ee.endStyle||ee.css||ee.attributes||ee.title)for(var ct=A.line;ct<=H.line;ct++)fa(Pe,ct,"text");ee.atomic&&Br(Pe.doc),sn(Pe,"markerAdded",Pe,ee)}return ee}var Co=function(m,A){this.markers=m,this.primary=A;for(var H=0;H<m.length;++H)m[H].parent=this};Co.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var m=0;m<this.markers.length;++m)this.markers[m].clear();sn(this,"clear")},Co.prototype.find=function(m,A){return this.primary.find(m,A)},Be(Co);function lo(m,A,H,K,G){K=L(K),K.shared=!1;var ee=[Uo(m,A,H,K,G)],ye=ee[0],Oe=K.widgetNode;return ln(m,function(Pe){Oe&&(K.widgetNode=Oe.cloneNode(!0)),ee.push(Uo(Pe,V(Pe,A),V(Pe,H),K,G));for(var He=0;He<Pe.linked.length;++He)if(Pe.linked[He].isParent)return;ye=oe(ee)}),new Co(ee,ye)}function Jo(m){return m.findMarks(qt(m.first,0),m.clipPos(qt(m.lastLine())),function(A){return A.parent})}function xr(m,A){for(var H=0;H<A.length;H++){var K=A[H],G=K.find(),ee=m.clipPos(G.from),ye=m.clipPos(G.to);if(wn(ee,ye)){var Oe=Uo(m,ee,ye,K.primary,K.primary.type);K.markers.push(Oe),Oe.parent=K}}}function ii(m){for(var A=function(K){var G=m[K],ee=[G.primary.doc];ln(G.primary.doc,function(Pe){return ee.push(Pe)});for(var ye=0;ye<G.markers.length;ye++){var Oe=G.markers[ye];re(ee,Oe.doc)==-1&&(Oe.parent=null,G.markers.splice(ye--,1))}},H=0;H<m.length;H++)A(H)}var Lr=0,_r=function(m,A,H,K,G){if(!(this instanceof _r))return new _r(m,A,H,K,G);H==null&&(H=0),Do.call(this,[new Fa([new Ra("",null)])]),this.first=H,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=H;var ee=qt(H,0);this.sel=Xt(ee),this.history=new xn(null),this.id=++Lr,this.modeOption=A,this.lineSep=K,this.direction=G=="rtl"?"rtl":"ltr",this.extend=!1,typeof m=="string"&&(m=this.splitLines(m)),Mn(this,{from:ee,to:ee,text:m}),Qr(this,Xt(ee),De)};_r.prototype=Ne(Do.prototype,{constructor:_r,iter:function(m,A,H){H?this.iterN(m-this.first,A-m,H):this.iterN(this.first,this.first+this.size,m)},insert:function(m,A){for(var H=0,K=0;K<A.length;++K)H+=A[K].height;this.insertInner(m-this.first,A,H)},remove:function(m,A){this.removeInner(m-this.first,A)},getValue:function(m){var A=Fn(this,this.first,this.first+this.size);return m===!1?A:A.join(m||this.lineSeparator())},setValue:Ca(function(m){var A=qt(this.first,0),H=this.first+this.size-1;ni(this,{from:A,to:qt(H,$t(this,H).text.length),text:this.splitLines(m),origin:"setValue",full:!0},!0),this.cm&&ss(this.cm,0,0),Qr(this,Xt(A),De)}),replaceRange:function(m,A,H,K){A=V(this,A),H=H?V(this,H):A,Ni(this,m,A,H,K)},getRange:function(m,A,H){var K=Zn(this,V(this,m),V(this,A));return H===!1?K:K.join(H||this.lineSeparator())},getLine:function(m){var A=this.getLineHandle(m);return A&&A.text},getLineHandle:function(m){if(or(this,m))return $t(this,m)},getLineNumber:function(m){return Yn(m)},getLineHandleVisualStart:function(m){return typeof m=="number"&&(m=$t(this,m)),ea(m)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(m){return V(this,m)},getCursor:function(m){var A=this.sel.primary(),H;return m==null||m=="head"?H=A.head:m=="anchor"?H=A.anchor:m=="end"||m=="to"||m===!1?H=A.to():H=A.from(),H},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ca(function(m,A,H){dr(this,V(this,typeof m=="number"?qt(m,A||0):m),null,H)}),setSelection:Ca(function(m,A,H){dr(this,V(this,m),V(this,A||m),H)}),extendSelection:Ca(function(m,A,H){Oi(this,V(this,m),A&&V(this,A),H)}),extendSelections:Ca(function(m,A){pa(this,ie(this,m),A)}),extendSelectionsBy:Ca(function(m,A){var H=xe(this.sel.ranges,m);pa(this,ie(this,H),A)}),setSelections:Ca(function(m,A,H){if(!m.length)return;for(var K=[],G=0;G<m.length;G++)K[G]=new Gt(V(this,m[G].anchor),V(this,m[G].head));A==null&&(A=Math.min(m.length-1,this.sel.primIndex)),Qr(this,Bt(this.cm,K,A),H)}),addSelection:Ca(function(m,A,H){var K=this.sel.ranges.slice(0);K.push(new Gt(V(this,m),V(this,A||m))),Qr(this,Bt(this.cm,K,K.length-1),H)}),getSelection:function(m){for(var A=this.sel.ranges,H,K=0;K<A.length;K++){var G=Zn(this,A[K].from(),A[K].to());H=H?H.concat(G):G}return m===!1?H:H.join(m||this.lineSeparator())},getSelections:function(m){for(var A=[],H=this.sel.ranges,K=0;K<H.length;K++){var G=Zn(this,H[K].from(),H[K].to());m!==!1&&(G=G.join(m||this.lineSeparator())),A[K]=G}return A},replaceSelection:function(m,A,H){for(var K=[],G=0;G<this.sel.ranges.length;G++)K[G]=m;this.replaceSelections(K,A,H||"+input")},replaceSelections:Ca(function(m,A,H){for(var K=[],G=this.sel,ee=0;ee<G.ranges.length;ee++){var ye=G.ranges[ee];K[ee]={from:ye.from(),to:ye.to(),text:this.splitLines(m[ee]),origin:H}}for(var Oe=A&&A!="end"&&In(this,K,A),Pe=K.length-1;Pe>=0;Pe--)ni(this,K[Pe]);Oe?vr(this,Oe):this.cm&&fs(this.cm)}),undo:Ca(function(){xi(this,"undo")}),redo:Ca(function(){xi(this,"redo")}),undoSelection:Ca(function(){xi(this,"undo",!0)}),redoSelection:Ca(function(){xi(this,"redo",!0)}),setExtending:function(m){this.extend=m},getExtending:function(){return this.extend},historySize:function(){for(var m=this.history,A=0,H=0,K=0;K<m.done.length;K++)m.done[K].ranges||++A;for(var G=0;G<m.undone.length;G++)m.undone[G].ranges||++H;return{undo:A,redo:H}},clearHistory:function(){var m=this;this.history=new xn(this.history.maxGeneration),ln(this,function(A){return A.history=m.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(m){return m&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(m){return this.history.generation==(m||this.cleanGeneration)},getHistory:function(){return{done:ur(this.history.done),undone:ur(this.history.undone)}},setHistory:function(m){var A=this.history=new xn(this.history.maxGeneration);A.done=ur(m.done.slice(0),null,!0),A.undone=ur(m.undone.slice(0),null,!0)},setGutterMarker:Ca(function(m,A,H){return oa(this,m,"gutter",function(K){var G=K.gutterMarkers||(K.gutterMarkers={});return G[A]=H,!H&&Y(G)&&(K.gutterMarkers=null),!0})}),clearGutter:Ca(function(m){var A=this;this.iter(function(H){H.gutterMarkers&&H.gutterMarkers[m]&&oa(A,H,"gutter",function(){return H.gutterMarkers[m]=null,Y(H.gutterMarkers)&&(H.gutterMarkers=null),!0})})}),lineInfo:function(m){var A;if(typeof m=="number"){if(!or(this,m))return null;if(A=m,m=$t(this,m),!m)return null}else if(A=Yn(m),A==null)return null;return{line:A,handle:m,text:m.text,gutterMarkers:m.gutterMarkers,textClass:m.textClass,bgClass:m.bgClass,wrapClass:m.wrapClass,widgets:m.widgets}},addLineClass:Ca(function(m,A,H){return oa(this,m,A=="gutter"?"gutter":"class",function(K){var G=A=="text"?"textClass":A=="background"?"bgClass":A=="gutter"?"gutterClass":"wrapClass";if(!K[G])K[G]=H;else{if(C(H).test(K[G]))return!1;K[G]+=" "+H}return!0})}),removeLineClass:Ca(function(m,A,H){return oa(this,m,A=="gutter"?"gutter":"class",function(K){var G=A=="text"?"textClass":A=="background"?"bgClass":A=="gutter"?"gutterClass":"wrapClass",ee=K[G];if(ee)if(H==null)K[G]=null;else{var ye=ee.match(C(H));if(!ye)return!1;var Oe=ye.index+ye[0].length;K[G]=ee.slice(0,ye.index)+(!ye.index||Oe==ee.length?"":" ")+ee.slice(Oe)||null}else return!1;return!0})}),addLineWidget:Ca(function(m,A,H){return ds(this,m,A,H)}),removeLineWidget:function(m){m.clear()},markText:function(m,A,H){return Uo(this,V(this,m),V(this,A),H,H&&H.type||"range")},setBookmark:function(m,A){var H={replacedWith:A&&(A.nodeType==null?A.widget:A),insertLeft:A&&A.insertLeft,clearWhenEmpty:!1,shared:A&&A.shared,handleMouseEvents:A&&A.handleMouseEvents};return m=V(this,m),Uo(this,m,m,H,"bookmark")},findMarksAt:function(m){m=V(this,m);var A=[],H=$t(this,m.line).markedSpans;if(H)for(var K=0;K<H.length;++K){var G=H[K];(G.from==null||G.from<=m.ch)&&(G.to==null||G.to>=m.ch)&&A.push(G.marker.parent||G.marker)}return A},findMarks:function(m,A,H){m=V(this,m),A=V(this,A);var K=[],G=m.line;return this.iter(m.line,A.line+1,function(ee){var ye=ee.markedSpans;if(ye)for(var Oe=0;Oe<ye.length;Oe++){var Pe=ye[Oe];!(Pe.to!=null&&G==m.line&&m.ch>=Pe.to||Pe.from==null&&G!=m.line||Pe.from!=null&&G==A.line&&Pe.from>=A.ch)&&(!H||H(Pe.marker))&&K.push(Pe.marker.parent||Pe.marker)}++G}),K},getAllMarks:function(){var m=[];return this.iter(function(A){var H=A.markedSpans;if(H)for(var K=0;K<H.length;++K)H[K].from!=null&&m.push(H[K].marker)}),m},posFromIndex:function(m){var A,H=this.first,K=this.lineSeparator().length;return this.iter(function(G){var ee=G.text.length+K;if(ee>m)return A=m,!0;m-=ee,++H}),V(this,qt(H,A))},indexFromPos:function(m){m=V(this,m);var A=m.ch;if(m.line<this.first||m.ch<0)return 0;var H=this.lineSeparator().length;return this.iter(this.first,m.line,function(K){A+=K.text.length+H}),A},copy:function(m){var A=new _r(Fn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return A.scrollTop=this.scrollTop,A.scrollLeft=this.scrollLeft,A.sel=this.sel,A.extend=!1,m&&(A.history.undoDepth=this.history.undoDepth,A.setHistory(this.getHistory())),A},linkedDoc:function(m){m||(m={});var A=this.first,H=this.first+this.size;m.from!=null&&m.from>A&&(A=m.from),m.to!=null&&m.to<H&&(H=m.to);var K=new _r(Fn(this,A,H),m.mode||this.modeOption,A,this.lineSep,this.direction);return m.sharedHist&&(K.history=this.history),(this.linked||(this.linked=[])).push({doc:K,sharedHist:m.sharedHist}),K.linked=[{doc:this,isParent:!0,sharedHist:m.sharedHist}],xr(K,Jo(this)),K},unlinkDoc:function(m){if(m instanceof fn&&(m=m.doc),this.linked)for(var A=0;A<this.linked.length;++A){var H=this.linked[A];if(H.doc!=m)continue;this.linked.splice(A,1),m.unlinkDoc(this),ii(Jo(this));break}if(m.history==this.history){var K=[m.id];ln(m,function(G){return K.push(G.id)},!0),m.history=new xn(null),m.history.done=ur(this.history.done,K),m.history.undone=ur(this.history.undone,K)}},iterLinkedDocs:function(m){ln(this,m)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(m){return this.lineSep?m.split(this.lineSep):bt(m)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ca(function(m){if(m!="rtl"&&(m="ltr"),m==this.direction)return;this.direction=m,this.iter(function(A){return A.order=null}),this.cm&&vn(this.cm)})}),_r.prototype.eachLine=_r.prototype.iter;var wi=0;function zr(m){var A=this;if(Wo(A),Ze(A,m)||Po(A.display,m))return;_e(m),_&&(wi=+new Date);var H=Ma(A,m,!0),K=m.dataTransfer.files;if(!H||A.isReadOnly())return;if(K&&K.length&&window.FileReader&&window.File)for(var G=K.length,ee=Array(G),ye=0,Oe=function(){++ye==G&&Sa(A,function(){H=V(A.doc,H);var Mt={from:H,to:H,text:A.doc.splitLines(ee.filter(function(rn){return rn!=null}).join(A.doc.lineSeparator())),origin:"paste"};ni(A.doc,Mt),vr(A.doc,Xt(V(A.doc,H),V(A.doc,tn(Mt))))})()},Pe=function(Mt,rn){if(A.options.allowDropFileTypes&&re(A.options.allowDropFileTypes,Mt.type)==-1){Oe();return}var pn=new FileReader;pn.onerror=function(){return Oe()},pn.onload=function(){var On=pn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(On)){Oe();return}ee[rn]=On,Oe()},pn.readAsText(Mt)},He=0;He<K.length;He++)Pe(K[He],He);else{if(A.state.draggingText&&A.doc.sel.contains(H)>-1){A.state.draggingText(m),setTimeout(function(){return A.display.input.focus()},20);return}try{var ct=m.dataTransfer.getData("Text");if(ct){var _t;if(A.state.draggingText&&!A.state.draggingText.copy&&(_t=A.listSelections()),kr(A.doc,Xt(H,H)),_t)for(var Wt=0;Wt<_t.length;++Wt)Ni(A.doc,"",_t[Wt].anchor,_t[Wt].head,"drag");A.replaceSelection(ct,"around","paste"),A.display.input.focus()}}catch(Mt){}}}function Zo(m,A){if(_&&(!m.state.draggingText||+new Date-wi<100)){ke(A);return}if(Ze(m,A)||Po(m.display,A))return;if(A.dataTransfer.setData("Text",m.getSelection()),A.dataTransfer.effectAllowed="copyMove",A.dataTransfer.setDragImage&&!r){var H=R("img",null,null,"position: fixed; left: 0; top: 0;");H.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l&&(H.width=H.height=1,m.display.wrapper.appendChild(H),H._top=H.offsetTop),A.dataTransfer.setDragImage(H,0,0),l&&H.parentNode.removeChild(H)}}function uo(m,A){var H=Ma(m,A);if(!H)return;var K=document.createDocumentFragment();ns(m,H,K),m.display.dragCursor||(m.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),m.display.lineSpace.insertBefore(m.display.dragCursor,m.display.cursorDiv)),D(m.display.dragCursor,K)}function Wo(m){m.display.dragCursor&&(m.display.lineSpace.removeChild(m.display.dragCursor),m.display.dragCursor=null)}function qo(m){if(!document.getElementsByClassName)return;for(var A=document.getElementsByClassName("CodeMirror"),H=[],K=0;K<A.length;K++){var G=A[K].CodeMirror;G&&H.push(G)}H.length&&H[0].operation(function(){for(var ee=0;ee<H.length;ee++)m(H[ee])})}var Gi=!1;function ki(){if(Gi)return;Vi(),Gi=!0}function Vi(){var m;Me(window,"resize",function(){m==null&&(m=setTimeout(function(){m=null,qo(no)},100))}),Me(window,"blur",function(){return qo(xs)})}function no(m){var A=m.display;A.cachedCharWidth=A.cachedTextHeight=A.cachedPaddingH=null,A.scrollbarsClipped=!1,m.setSize()}for(var ji={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ya=0;ya<10;ya++)ji[ya+48]=ji[ya+96]=String(ya);for(var va=65;va<=90;va++)ji[va]=String.fromCharCode(va);for(var Ga=1;Ga<=12;Ga++)ji[Ga+111]=ji[Ga+63235]="F"+Ga;var Va={};Va.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Va.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Va.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Va.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Va.default=f?Va.macDefault:Va.pcDefault;function $i(m){var A=m.split(/-(?!$)/);m=A[A.length-1];for(var H,K,G,ee,ye=0;ye<A.length-1;ye++){var Oe=A[ye];if(/^(cmd|meta|m)$/i.test(Oe))ee=!0;else if(/^a(lt)?$/i.test(Oe))H=!0;else if(/^(c|ctrl|control)$/i.test(Oe))K=!0;else if(/^s(hift)?$/i.test(Oe))G=!0;else throw new Error("Unrecognized modifier name: "+Oe)}return H&&(m="Alt-"+m),K&&(m="Ctrl-"+m),ee&&(m="Cmd-"+m),G&&(m="Shift-"+m),m}function Rs(m){var A={};for(var H in m)if(m.hasOwnProperty(H)){var K=m[H];if(/^(name|fallthrough|(de|at)tach)$/.test(H))continue;if(K=="..."){delete m[H];continue}for(var G=xe(H.split(" "),$i),ee=0;ee<G.length;ee++){var ye=void 0,Oe=void 0;ee==G.length-1?(Oe=G.join(" "),ye=K):(Oe=G.slice(0,ee+1).join(" "),ye="...");var Pe=A[Oe];if(!Pe)A[Oe]=ye;else if(Pe!=ye)throw new Error("Inconsistent bindings for "+Oe)}delete m[H]}for(var He in A)m[He]=A[He];return m}function Xo(m,A,H,K){A=_s(A);var G=A.call?A.call(m,K):A[m];if(G===!1)return"nothing";if(G==="...")return"multi";if(G!=null&&H(G))return"handled";if(A.fallthrough){if(Object.prototype.toString.call(A.fallthrough)!="[object Array]")return Xo(m,A.fallthrough,H,K);for(var ee=0;ee<A.fallthrough.length;ee++){var ye=Xo(m,A.fallthrough[ee],H,K);if(ye)return ye}}}function vs(m){var A=typeof m=="string"?m:ji[m.keyCode];return A=="Ctrl"||A=="Alt"||A=="Shift"||A=="Mod"}function il(m,A,H){var K=m;return A.altKey&&K!="Alt"&&(m="Alt-"+m),(x?A.metaKey:A.ctrlKey)&&K!="Ctrl"&&(m="Ctrl-"+m),(x?A.ctrlKey:A.metaKey)&&K!="Mod"&&(m="Cmd-"+m),!H&&A.shiftKey&&K!="Shift"&&(m="Shift-"+m),m}function ma(m,A){if(l&&m.keyCode==34&&m.char)return!1;var H=ji[m.keyCode];return H==null||m.altGraphKey?!1:(m.keyCode==3&&m.code&&(H=m.code),il(H,m,A))}function _s(m){return typeof m=="string"?Va[m]:m}function $o(m,A){for(var H=m.doc.sel.ranges,K=[],G=0;G<H.length;G++){for(var ee=A(H[G]);K.length&&wn(ee.from,oe(K).to)<=0;){var ye=K.pop();if(wn(ye.from,ee.from)<0){ee.from=ye.from;break}}K.push(ee)}vo(m,function(){for(var Oe=K.length-1;Oe>=0;Oe--)Ni(m.doc,"",K[Oe].from,K[Oe].to,"+delete");fs(m)})}function Ds(m,A,H){var K=be(m.text,A+H,H);return K<0||K>m.text.length?null:K}function al(m,A,H){var K=Ds(m,A.ch,H);return K==null?null:new qt(A.line,K,H<0?"after":"before")}function Is(m,A,H,K,G){if(m){A.doc.direction=="rtl"&&(G=-G);var ee=$e(H,A.doc.direction);if(ee){var ye=G<0?oe(ee):ee[0],Oe=G<0==(ye.level==1),Pe=Oe?"after":"before",He;if(ye.level>0||A.doc.direction=="rtl"){var ct=St(A,H);He=G<0?H.text.length-1:0;var _t=Nt(A,ct,He).top;He=Ie(function(Wt){return Nt(A,ct,Wt).top==_t},G<0==(ye.level==1)?ye.from:ye.to-1,He),Pe=="before"&&(He=Ds(H,He,1))}else He=G<0?ye.to:ye.from;return new qt(K,He,Pe)}}return new qt(K,G<0?H.text.length:0,G<0?"before":"after")}function Dl(m,A,H,K){var G=$e(A,m.doc.direction);if(!G)return al(A,H,K);H.ch>=A.text.length?(H.ch=A.text.length,H.sticky="before"):H.ch<=0&&(H.ch=0,H.sticky="after");var ee=ve(G,H.ch,H.sticky),ye=G[ee];if(m.doc.direction=="ltr"&&ye.level%2==0&&(K>0?ye.to>H.ch:ye.from<H.ch))return al(A,H,K);var Oe=function(Gn,er){return Ds(A,Gn instanceof qt?Gn.ch:Gn,er)},Pe,He=function(Gn){return m.options.lineWrapping?(Pe=Pe||St(m,A),lr(m,A,Pe,Gn)):{begin:0,end:A.text.length}},ct=He(H.sticky=="before"?Oe(H,-1):H.ch);if(m.doc.direction=="rtl"||ye.level==1){var _t=ye.level==1==K<0,Wt=Oe(H,_t?1:-1);if(Wt!=null&&(_t?Wt<=ye.to&&Wt<=ct.end:Wt>=ye.from&&Wt>=ct.begin)){var Mt=_t?"before":"after";return new qt(H.line,Wt,Mt)}}var rn=function(Gn,er,Vn){for(var sr=function(ua,fo){return fo?new qt(H.line,Oe(ua,1),"before"):new qt(H.line,ua,"after")};Gn>=0&&Gn<G.length;Gn+=er){var Rr=G[Gn],br=er>0==(Rr.level!=1),gi=br?Vn.begin:Oe(Vn.end,-1);if(Rr.from<=gi&&gi<Rr.to)return sr(gi,br);if(gi=br?Rr.from:Oe(Rr.to,-1),Vn.begin<=gi&&gi<Vn.end)return sr(gi,br)}},pn=rn(ee+K,K,ct);if(pn)return pn;var On=K>0?ct.end:Oe(ct.begin,-1);return On!=null&&!(K>0&&On==A.text.length)&&(pn=rn(K>0?0:G.length-1,K,He(On)),pn)?pn:null}var hs={selectAll:Pi,singleSelection:function(m){return m.setSelection(m.getCursor("anchor"),m.getCursor("head"),De)},killLine:function(m){return $o(m,function(A){if(A.empty()){var H=$t(m.doc,A.head.line).text.length;return A.head.ch==H&&A.head.line<m.lastLine()?{from:A.head,to:qt(A.head.line+1,0)}:{from:A.head,to:qt(A.head.line,H)}}else return{from:A.from(),to:A.to()}})},deleteLine:function(m){return $o(m,function(A){return{from:qt(A.from().line,0),to:V(m.doc,qt(A.to().line+1,0))}})},delLineLeft:function(m){return $o(m,function(A){return{from:qt(A.from().line,0),to:A.from()}})},delWrappedLineLeft:function(m){return $o(m,function(A){var H=m.charCoords(A.head,"div").top+5,K=m.coordsChar({left:0,top:H},"div");return{from:K,to:A.from()}})},delWrappedLineRight:function(m){return $o(m,function(A){var H=m.charCoords(A.head,"div").top+5,K=m.coordsChar({left:m.display.lineDiv.offsetWidth+100,top:H},"div");return{from:A.from(),to:K}})},undo:function(m){return m.undo()},redo:function(m){return m.redo()},undoSelection:function(m){return m.undoSelection()},redoSelection:function(m){return m.redoSelection()},goDocStart:function(m){return m.extendSelection(qt(m.firstLine(),0))},goDocEnd:function(m){return m.extendSelection(qt(m.lastLine()))},goLineStart:function(m){return m.extendSelectionsBy(function(A){return pl(m,A.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(m){return m.extendSelectionsBy(function(A){return zs(m,A.head)},{origin:"+move",bias:1})},goLineEnd:function(m){return m.extendSelectionsBy(function(A){return Il(m,A.head.line)},{origin:"+move",bias:-1})},goLineRight:function(m){return m.extendSelectionsBy(function(A){var H=m.cursorCoords(A.head,"div").top+5;return m.coordsChar({left:m.display.lineDiv.offsetWidth+100,top:H},"div")},Ce)},goLineLeft:function(m){return m.extendSelectionsBy(function(A){var H=m.cursorCoords(A.head,"div").top+5;return m.coordsChar({left:0,top:H},"div")},Ce)},goLineLeftSmart:function(m){return m.extendSelectionsBy(function(A){var H=m.cursorCoords(A.head,"div").top+5,K=m.coordsChar({left:0,top:H},"div");return K.ch<m.getLine(K.line).search(/\S/)?zs(m,A.head):K},Ce)},goLineUp:function(m){return m.moveV(-1,"line")},goLineDown:function(m){return m.moveV(1,"line")},goPageUp:function(m){return m.moveV(-1,"page")},goPageDown:function(m){return m.moveV(1,"page")},goCharLeft:function(m){return m.moveH(-1,"char")},goCharRight:function(m){return m.moveH(1,"char")},goColumnLeft:function(m){return m.moveH(-1,"column")},goColumnRight:function(m){return m.moveH(1,"column")},goWordLeft:function(m){return m.moveH(-1,"word")},goGroupRight:function(m){return m.moveH(1,"group")},goGroupLeft:function(m){return m.moveH(-1,"group")},goWordRight:function(m){return m.moveH(1,"word")},delCharBefore:function(m){return m.deleteH(-1,"codepoint")},delCharAfter:function(m){return m.deleteH(1,"char")},delWordBefore:function(m){return m.deleteH(-1,"word")},delWordAfter:function(m){return m.deleteH(1,"word")},delGroupBefore:function(m){return m.deleteH(-1,"group")},delGroupAfter:function(m){return m.deleteH(1,"group")},indentAuto:function(m){return m.indentSelection("smart")},indentMore:function(m){return m.indentSelection("add")},indentLess:function(m){return m.indentSelection("subtract")},insertTab:function(m){return m.replaceSelection(" ")},insertSoftTab:function(m){for(var A=[],H=m.listSelections(),K=m.options.tabSize,G=0;G<H.length;G++){var ee=H[G].from(),ye=B(m.getLine(ee.line),ee.ch,K);A.push(le(K-ye%K))}m.replaceSelections(A)},defaultTab:function(m){m.somethingSelected()?m.indentSelection("add"):m.execCommand("insertTab")},transposeChars:function(m){return vo(m,function(){for(var A=m.listSelections(),H=[],K=0;K<A.length;K++){if(!A[K].empty())continue;var G=A[K].head,ee=$t(m.doc,G.line).text;if(ee){if(G.ch==ee.length&&(G=new qt(G.line,G.ch-1)),G.ch>0)G=new qt(G.line,G.ch+1),m.replaceRange(ee.charAt(G.ch-1)+ee.charAt(G.ch-2),qt(G.line,G.ch-2),G,"+transpose");else if(G.line>m.doc.first){var ye=$t(m.doc,G.line-1).text;ye&&(G=new qt(G.line,1),m.replaceRange(ee.charAt(0)+m.doc.lineSeparator()+ye.charAt(ye.length-1),qt(G.line-1,ye.length-1),G,"+transpose"))}}H.push(new Gt(G,G))}m.setSelections(H)})},newlineAndIndent:function(m){return vo(m,function(){for(var A=m.listSelections(),H=A.length-1;H>=0;H--)m.replaceRange(m.doc.lineSeparator(),A[H].anchor,A[H].head,"+input");A=m.listSelections();for(var K=0;K<A.length;K++)m.indentLine(A[K].from().line,null,!0);fs(m)})},openLine:function(m){return m.replaceSelection(`
`,"start")},toggleOverwrite:function(m){return m.toggleOverwrite()}};function pl(m,A){var H=$t(m.doc,A),K=ea(H);return K!=H&&(A=Yn(K)),Is(!0,m,K,A,1)}function Il(m,A){var H=$t(m.doc,A),K=Eo(H);return K!=H&&(A=Yn(K)),Is(!0,m,H,A,-1)}function zs(m,A){var H=pl(m,A.line),K=$t(m.doc,H.line),G=$e(K,m.doc.direction);if(!G||G[0].level==0){var ee=Math.max(H.ch,K.text.search(/\S/)),ye=A.line==H.line&&A.ch<=ee&&A.ch;return qt(H.line,ye?0:ee,H.sticky)}return H}function ai(m,A,H){if(typeof A=="string"&&(A=hs[A],!A))return!1;m.display.input.ensurePolled();var K=m.display.shift,G=!1;try{m.isReadOnly()&&(m.state.suppressEdits=!0),H&&(m.display.shift=!1),G=A(m)!=Ee}finally{m.display.shift=K,m.state.suppressEdits=!1}return G}function co(m,A,H){for(var K=0;K<m.state.keyMaps.length;K++){var G=Xo(A,m.state.keyMaps[K],H,m);if(G)return G}return m.options.extraKeys&&Xo(A,m.options.extraKeys,H,m)||Xo(A,m.options.keyMap,H,m)}var Ya=new Z;function To(m,A,H,K){var G=m.state.keySeq;if(G){if(vs(A))return"handled";if(/\'$/.test(A)?m.state.keySeq=null:Ya.set(50,function(){m.state.keySeq==G&&(m.state.keySeq=null,m.display.input.reset())}),kl(m,G+" "+A,H,K))return!0}return kl(m,A,H,K)}function kl(m,A,H,K){var G=co(m,A,K);return G=="multi"&&(m.state.keySeq=A),G=="handled"&&sn(m,"keyHandled",m,A,H),(G=="handled"||G=="multi")&&(_e(H),Pa(m)),!!G}function zo(m,A){var H=ma(A,!0);return H?A.shiftKey&&!m.state.keySeq?To(m,"Shift-"+H,A,function(K){return ai(m,K,!0)})||To(m,H,A,function(K){if(typeof K=="string"?/^go[A-Z]/.test(K):K.motion)return ai(m,K)}):To(m,H,A,function(K){return ai(m,K)}):!1}function Kl(m,A,H){return To(m,"'"+H+"'",A,function(K){return ai(m,K,!0)})}var ol=null;function Ll(m){var A=this;if(m.target&&m.target!=A.display.input.getField())return;if(A.curOp.focus=z(),Ze(A,m))return;_&&p<11&&m.keyCode==27&&(m.returnValue=!1);var H=m.keyCode;A.display.shift=H==16||m.shiftKey;var K=zo(A,m);l&&(ol=K?H:null,!K&&H==88&&!ot&&(f?m.metaKey:m.ctrlKey)&&A.replaceSelection("",null,"cut")),T&&!f&&!K&&H==46&&m.shiftKey&&!m.ctrlKey&&document.execCommand&&document.execCommand("cut"),H==18&&!/\bCodeMirror-crosshair\b/.test(A.display.lineDiv.className)&&Zl(A)}function Zl(m){var A=m.display.lineDiv;X(A,"CodeMirror-crosshair");function H(K){(K.keyCode==18||!K.altKey)&&(w(A,"CodeMirror-crosshair"),Te(document,"keyup",H),Te(document,"mouseover",H))}Me(document,"keyup",H),Me(document,"mouseover",H)}function Hl(m){m.keyCode==16&&(this.doc.sel.shift=!1),Ze(this,m)}function Wl(m){var A=this;if(m.target&&m.target!=A.display.input.getField())return;if(Po(A.display,m)||Ze(A,m)||m.ctrlKey&&!m.altKey||f&&m.metaKey)return;var H=m.keyCode,K=m.charCode;if(l&&H==ol){ol=null,_e(m);return}if(l&&(!m.which||m.which<10)&&zo(A,m))return;var G=String.fromCharCode(K==null?H:K);if(G=="\b")return;if(Kl(A,m,G))return;A.display.input.onKeyPress(m)}var Xl=400,Ml=function(m,A,H){this.time=m,this.pos=A,this.button=H};Ml.prototype.compare=function(m,A,H){return this.time+Xl>m&&wn(A,this.pos)==0&&H==this.button};var ks,Gs;function Pl(m,A){var H=+new Date;return Gs&&Gs.compare(H,m,A)?(ks=Gs=null,"triple"):ks&&ks.compare(H,m,A)?(Gs=new Ml(H,m,A),ks=null,"double"):(ks=new Ml(H,m,A),Gs=null,"single")}function zl(m){var A=this,H=A.display;if(Ze(A,m)||H.activeTouch&&H.input.supportsTouch())return;if(H.input.ensurePolled(),H.shift=m.shiftKey,Po(H,m)){e||(H.scroller.draggable=!1,setTimeout(function(){return H.scroller.draggable=!0},100));return}if(gl(A,m))return;var K=Ma(A,m),G=ne(m),ee=K?Pl(K,G):"single";if(window.focus(),G==1&&A.state.selectingText&&A.state.selectingText(m),K&&ql(A,G,K,ee,m))return;G==1?K?eu(A,K,ee,m):Je(m)==H.scroller&&_e(m):G==2?(K&&Oi(A.doc,K),setTimeout(function(){return H.input.focus()},20)):G==3&&(O?A.display.input.onContextMenu(m):Js(A))}function ql(m,A,H,K,G){var ee="Click";return K=="double"?ee="Double"+ee:K=="triple"&&(ee="Triple"+ee),ee=(A==1?"Left":A==2?"Middle":"Right")+ee,To(m,il(ee,G),G,function(ye){if(typeof ye=="string"&&(ye=hs[ye]),!ye)return!1;var Oe=!1;try{m.isReadOnly()&&(m.state.suppressEdits=!0),Oe=ye(m,H)!=Ee}finally{m.state.suppressEdits=!1}return Oe})}function $l(m,A,H){var K=m.getOption("configureMouse"),G=K?K(m,A,H):{};if(G.unit==null){var ee=h?H.shiftKey&&H.metaKey:H.altKey;G.unit=ee?"rectangle":A=="single"?"char":A=="double"?"word":"line"}return(G.extend==null||m.doc.extend)&&(G.extend=m.doc.extend||H.shiftKey),G.addNew==null&&(G.addNew=f?H.metaKey:H.ctrlKey),G.moveOnDrag==null&&(G.moveOnDrag=!(f?H.altKey:H.ctrlKey)),G}function eu(m,A,H,K){_?setTimeout(U(ul,m),0):m.curOp.focus=z();var G=$l(m,H,K),ee=m.doc.sel,ye;m.options.dragDrop&&Qe&&!m.isReadOnly()&&H=="single"&&(ye=ee.contains(A))>-1&&(wn((ye=ee.ranges[ye]).from(),A)<0||A.xRel>0)&&(wn(ye.to(),A)>0||A.xRel<0)?Nl(m,K,A,G):Ul(m,K,A,G)}function Nl(m,A,H,K){var G=m.display,ee=!1,ye=Sa(m,function(He){e&&(G.scroller.draggable=!1),m.state.draggingText=!1,Te(G.wrapper.ownerDocument,"mouseup",ye),Te(G.wrapper.ownerDocument,"mousemove",Oe),Te(G.scroller,"dragstart",Pe),Te(G.scroller,"drop",ye),ee||(_e(He),K.addNew||Oi(m.doc,H,null,null,K.extend),e&&!r||_&&p==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),Oe=function(He){ee=ee||Math.abs(A.clientX-He.clientX)+Math.abs(A.clientY-He.clientY)>=10},Pe=function(){return ee=!0};e&&(G.scroller.draggable=!0),m.state.draggingText=ye,ye.copy=!K.moveOnDrag,G.scroller.dragDrop&&G.scroller.dragDrop(),Me(G.wrapper.ownerDocument,"mouseup",ye),Me(G.wrapper.ownerDocument,"mousemove",Oe),Me(G.scroller,"dragstart",Pe),Me(G.scroller,"drop",ye),Js(m),setTimeout(function(){return G.input.focus()},20)}function Gl(m,A,H){if(H=="char")return new Gt(A,A);if(H=="word")return m.findWordAt(A);if(H=="line")return new Gt(qt(A.line,0),V(m.doc,qt(A.line+1,0)));var K=H(m,A);return new Gt(K.from,K.to)}function Ul(m,A,H,K){var G=m.display,ee=m.doc;_e(A);var ye,Oe,Pe=ee.sel,He=Pe.ranges;if(K.addNew&&!K.extend?(Oe=ee.sel.contains(H),Oe>-1?ye=He[Oe]:ye=new Gt(H,H)):(ye=ee.sel.primary(),Oe=ee.sel.primIndex),K.unit=="rectangle")K.addNew||(ye=new Gt(H,H)),H=Ma(m,A,!0,!0),Oe=-1;else{var ct=Gl(m,H,K.unit);K.extend?ye=cr(ye,ct.anchor,ct.head,K.extend):ye=ct}K.addNew?Oe==-1?(Oe=He.length,Qr(ee,Bt(m,He.concat([ye]),Oe),{scroll:!1,origin:"*mouse"})):He.length>1&&He[Oe].empty()&&K.unit=="char"&&!K.extend?(Qr(ee,Bt(m,He.slice(0,Oe).concat(He.slice(Oe+1)),0),{scroll:!1,origin:"*mouse"}),Pe=ee.sel):Cr(ee,Oe,ye,te):(Oe=0,Qr(ee,new jt([ye],0),te),Pe=ee.sel);var _t=H;function Wt(Vn){if(wn(_t,Vn)==0)return;if(_t=Vn,K.unit=="rectangle"){for(var sr=[],Rr=m.options.tabSize,br=B($t(ee,H.line).text,H.ch,Rr),gi=B($t(ee,Vn.line).text,Vn.ch,Rr),ua=Math.min(br,gi),fo=Math.max(br,gi),Oa=Math.min(H.line,Vn.line),Go=Math.min(m.lastLine(),Math.max(H.line,Vn.line));Oa<=Go;Oa++){var Fo=$t(ee,Oa).text,Qa=we(Fo,ua,Rr);ua==fo?sr.push(new Gt(qt(Oa,Qa),qt(Oa,Qa))):Fo.length>Qa&&sr.push(new Gt(qt(Oa,Qa),qt(Oa,we(Fo,fo,Rr))))}sr.length||sr.push(new Gt(H,H)),Qr(ee,Bt(m,Pe.ranges.slice(0,Oe).concat(sr),Oe),{origin:"*mouse",scroll:!1}),m.scrollIntoView(Vn)}else{var jo=ye,bo=Gl(m,Vn,K.unit),io=jo.anchor,Ja;wn(bo.anchor,io)>0?(Ja=bo.head,io=Qn(jo.from(),bo.anchor)):(Ja=bo.anchor,io=Mr(jo.to(),bo.head));var Da=Pe.ranges.slice(0);Da[Oe]=tu(m,new Gt(V(ee,io),Ja)),Qr(ee,Bt(m,Da,Oe),te)}}var Mt=G.wrapper.getBoundingClientRect(),rn=0;function pn(Vn){var sr=++rn,Rr=Ma(m,Vn,!0,K.unit=="rectangle");if(!Rr)return;if(wn(Rr,_t)!=0){m.curOp.focus=z(),Wt(Rr);var br=Fs(G,ee);(Rr.line>=br.to||Rr.line<br.from)&&setTimeout(Sa(m,function(){rn==sr&&pn(Vn)}),150)}else{var gi=Vn.clientY<Mt.top?-20:Vn.clientY>Mt.bottom?20:0;gi&&setTimeout(Sa(m,function(){if(rn!=sr)return;G.scroller.scrollTop+=gi,pn(Vn)}),50)}}function On(Vn){m.state.selectingText=!1,rn=Infinity,Vn&&(_e(Vn),G.input.focus()),Te(G.wrapper.ownerDocument,"mousemove",Gn),Te(G.wrapper.ownerDocument,"mouseup",er),ee.history.lastSelOrigin=null}var Gn=Sa(m,function(Vn){Vn.buttons===0||!ne(Vn)?On(Vn):pn(Vn)}),er=Sa(m,On);m.state.selectingText=er,Me(G.wrapper.ownerDocument,"mousemove",Gn),Me(G.wrapper.ownerDocument,"mouseup",er)}function tu(m,A){var H=A.anchor,K=A.head,G=$t(m.doc,H.line);if(wn(H,K)==0&&H.sticky==K.sticky)return A;var ee=$e(G);if(!ee)return A;var ye=ve(ee,H.ch,H.sticky),Oe=ee[ye];if(Oe.from!=H.ch&&Oe.to!=H.ch)return A;var Pe=ye+(Oe.from==H.ch==(Oe.level!=1)?0:1);if(Pe==0||Pe==ee.length)return A;var He;if(K.line!=H.line)He=(K.line-H.line)*(m.doc.direction=="ltr"?1:-1)>0;else{var ct=ve(ee,K.ch,K.sticky),_t=ct-ye||(K.ch-H.ch)*(Oe.level==1?-1:1);ct==Pe-1||ct==Pe?He=_t<0:He=_t>0}var Wt=ee[Pe+(He?-1:0)],Mt=He==(Wt.level==1),rn=Mt?Wt.from:Wt.to,pn=Mt?"after":"before";return H.ch==rn&&H.sticky==pn?A:new Gt(new qt(H.line,rn,pn),K)}function ml(m,A,H,K){var G,ee;if(A.touches)G=A.touches[0].clientX,ee=A.touches[0].clientY;else try{G=A.clientX,ee=A.clientY}catch(Wt){return!1}if(G>=Math.floor(m.display.gutters.getBoundingClientRect().right))return!1;K&&_e(A);var ye=m.display,Oe=ye.lineDiv.getBoundingClientRect();if(ee>Oe.bottom||!Fe(m,H))return fe(A);ee-=Oe.top-ye.viewOffset;for(var Pe=0;Pe<m.display.gutterSpecs.length;++Pe){var He=ye.gutters.childNodes[Pe];if(He&&He.getBoundingClientRect().right>=G){var ct=jn(m.doc,ee),_t=m.display.gutterSpecs[Pe];return Ye(m,H,m,ct,_t.className,A),fe(A)}}}function gl(m,A){return ml(m,A,"gutterClick",!0)}function vl(m,A){if(Po(m.display,A)||nu(m,A))return;if(Ze(m,A,"contextmenu"))return;O||m.display.input.onContextMenu(A)}function nu(m,A){return Fe(m,"gutterContextMenu")?ml(m,A,"gutterContextMenu",!1):!1}function _l(m){m.display.wrapper.className=m.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+m.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yr(m)}var Vs={toString:function(){return"CodeMirror.Init"}},Vl={},bl={};function Yl(m){var A=m.optionHandlers;function H(K,G,ee,ye){m.defaults[K]=G,ee&&(A[K]=ye?function(Oe,Pe,He){He!=Vs&&ee(Oe,Pe,He)}:ee)}m.defineOption=H,m.Init=Vs,H("value","",function(K,G){return K.setValue(G)},!0),H("mode",null,function(K,G){K.doc.modeOption=G,Xn(K)},!0),H("indentUnit",2,Xn,!0),H("indentWithTabs",!1),H("smartIndent",!0),H("tabSize",4,function(K){zn(K),Yr(K),Zi(K)},!0),H("lineSeparator",null,function(K,G){if(K.doc.lineSep=G,!G)return;var ee=[],ye=K.doc.first;K.doc.iter(function(Pe){for(var He=0;;){var ct=Pe.text.indexOf(G,He);if(ct==-1)break;He=ct+G.length,ee.push(qt(ye,ct))}ye++});for(var Oe=ee.length-1;Oe>=0;Oe--)Ni(K.doc,G,ee[Oe],qt(ee[Oe].line,ee[Oe].ch+G.length))}),H("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(K,G,ee){K.state.specialChars=new RegExp(G.source+(G.test(" ")?"":"| "),"g"),ee!=Vs&&K.refresh()}),H("specialCharPlaceholder",Ci,function(K){return K.refresh()},!0),H("electricChars",!0),H("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),H("spellcheck",!1,function(K,G){return K.getInputField().spellcheck=G},!0),H("autocorrect",!1,function(K,G){return K.getInputField().autocorrect=G},!0),H("autocapitalize",!1,function(K,G){return K.getInputField().autocapitalize=G},!0),H("rtlMoveVisually",!u),H("wholeLineUpdateBefore",!0),H("theme","default",function(K){_l(K),Ct(K)},!0),H("keyMap","default",function(K,G,ee){var ye=_s(G),Oe=ee!=Vs&&_s(ee);Oe&&Oe.detach&&Oe.detach(K,ye),ye.attach&&ye.attach(K,Oe||null)}),H("extraKeys",null),H("configureMouse",null),H("lineWrapping",!1,hn,!0),H("gutters",[],function(K,G){K.display.gutterSpecs=at(G,K.options.lineNumbers),Ct(K)},!0),H("fixedGutter",!0,function(K,G){K.display.gutters.style.left=G?oo(K.display)+"px":"0",K.refresh()},!0),H("coverGutterNextToScrollbar",!1,function(K){return gs(K)},!0),H("scrollbarStyle","native",function(K){Ks(K),gs(K),K.display.scrollbars.setScrollTop(K.doc.scrollTop),K.display.scrollbars.setScrollLeft(K.doc.scrollLeft)},!0),H("lineNumbers",!1,function(K,G){K.display.gutterSpecs=at(K.options.gutters,G),Ct(K)},!0),H("firstLineNumber",1,Ct,!0),H("lineNumberFormatter",function(K){return K},Ct,!0),H("showCursorWhenSelecting",!1,qi,!0),H("resetSelectionOnContextMenu",!0),H("lineWiseCopyCut",!0),H("pasteLinesPerSelection",!0),H("selectionsMayTouch",!1),H("readOnly",!1,function(K,G){G=="nocursor"&&(xs(K),K.display.input.blur()),K.display.input.readOnlyChanged(G)}),H("screenReaderLabel",null,function(K,G){G=G===""?null:G,K.display.input.screenReaderLabelChanged(G)}),H("disableInput",!1,function(K,G){G||K.display.input.reset()},!0),H("dragDrop",!0,$n),H("allowDropFileTypes",null),H("cursorBlinkRate",530),H("cursorScrollMargin",0),H("cursorHeight",1,qi,!0),H("singleCursorHeightPerLine",!0,qi,!0),H("workTime",100),H("workDelay",100),H("flattenSpans",!0,zn,!0),H("addModeClass",!1,zn,!0),H("pollInterval",100),H("undoDepth",200,function(K,G){return K.doc.history.undoDepth=G}),H("historyEventDelay",1250),H("viewportMargin",10,function(K){return K.refresh()},!0),H("maxHighlightLength",1e4,zn,!0),H("moveInputWithCursor",!0,function(K,G){G||K.display.input.resetPosition()}),H("tabindex",null,function(K,G){return K.display.input.getField().tabIndex=G||""}),H("autofocus",null),H("direction","ltr",function(K,G){return K.doc.setDirection(G)},!0),H("phrases",null)}function $n(m,A,H){var K=H&&H!=Vs;if(!A!=!K){var G=m.display.dragFunctions,ee=A?Me:Te;ee(m.display.scroller,"dragstart",G.start),ee(m.display.scroller,"dragenter",G.enter),ee(m.display.scroller,"dragover",G.over),ee(m.display.scroller,"dragleave",G.leave),ee(m.display.scroller,"drop",G.drop)}}function hn(m){m.options.lineWrapping?(X(m.display.wrapper,"CodeMirror-wrap"),m.display.sizer.style.minWidth="",m.display.sizerWidth=null):(w(m.display.wrapper,"CodeMirror-wrap"),Oo(m)),go(m),Zi(m),Yr(m),setTimeout(function(){return gs(m)},100)}function fn(m,A){var H=this;if(!(this instanceof fn))return new fn(m,A);this.options=A=A?L(A):{},L(Vl,A,!1);var K=A.value;typeof K=="string"?K=new _r(K,A.mode,null,A.lineSeparator,A.direction):A.mode&&(K.modeOption=A.mode),this.doc=K;var G=new fn.inputStyles[A.inputStyle](this),ee=this.display=new yt(m,K,G,A);ee.wrapper.CodeMirror=this,_l(this),A.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ks(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Z,keySeq:null,specialChars:null},A.autofocus&&!d&&ee.input.focus(),_&&p<11&&setTimeout(function(){return H.display.input.reset(!0)},20),mn(this),ki(),is(this),this.curOp.forceUpdate=!0,on(this,K),A.autofocus&&!d||this.hasFocus()?setTimeout(function(){H.hasFocus()&&!H.state.focused&&rs(H)},20):xs(this);for(var ye in bl)bl.hasOwnProperty(ye)&&bl[ye](this,A[ye],Vs);qe(this),A.finishInit&&A.finishInit(this);for(var Oe=0;Oe<Kn.length;++Oe)Kn[Oe](this);us(this),e&&A.lineWrapping&&getComputedStyle(ee.lineDiv).textRendering=="optimizelegibility"&&(ee.lineDiv.style.textRendering="auto")}fn.defaults=Vl,fn.optionHandlers=bl;function mn(m){var A=m.display;Me(A.scroller,"mousedown",Sa(m,zl)),_&&p<11?Me(A.scroller,"dblclick",Sa(m,function(Pe){if(Ze(m,Pe))return;var He=Ma(m,Pe);if(!He||gl(m,Pe)||Po(m.display,Pe))return;_e(Pe);var ct=m.findWordAt(He);Oi(m.doc,ct.anchor,ct.head)})):Me(A.scroller,"dblclick",function(Pe){return Ze(m,Pe)||_e(Pe)}),Me(A.scroller,"contextmenu",function(Pe){return vl(m,Pe)}),Me(A.input.getField(),"contextmenu",function(Pe){A.scroller.contains(Pe.target)||vl(m,Pe)});var H,K={end:0};function G(){A.activeTouch&&(H=setTimeout(function(){return A.activeTouch=null},1e3),K=A.activeTouch,K.end=+new Date)}function ee(Pe){if(Pe.touches.length!=1)return!1;var He=Pe.touches[0];return He.radiusX<=1&&He.radiusY<=1}function ye(Pe,He){if(He.left==null)return!0;var ct=He.left-Pe.left,_t=He.top-Pe.top;return ct*ct+_t*_t>20*20}Me(A.scroller,"touchstart",function(Pe){if(!Ze(m,Pe)&&!ee(Pe)&&!gl(m,Pe)){A.input.ensurePolled(),clearTimeout(H);var He=+new Date;A.activeTouch={start:He,moved:!1,prev:He-K.end<=300?K:null},Pe.touches.length==1&&(A.activeTouch.left=Pe.touches[0].pageX,A.activeTouch.top=Pe.touches[0].pageY)}}),Me(A.scroller,"touchmove",function(){A.activeTouch&&(A.activeTouch.moved=!0)}),Me(A.scroller,"touchend",function(Pe){var He=A.activeTouch;if(He&&!Po(A,Pe)&&He.left!=null&&!He.moved&&new Date-He.start<300){var ct=m.coordsChar(A.activeTouch,"page"),_t;!He.prev||ye(He,He.prev)?_t=new Gt(ct,ct):!He.prev.prev||ye(He,He.prev.prev)?_t=m.findWordAt(ct):_t=new Gt(qt(ct.line,0),V(m.doc,qt(ct.line+1,0))),m.setSelection(_t.anchor,_t.head),m.focus(),_e(Pe)}G()}),Me(A.scroller,"touchcancel",G),Me(A.scroller,"scroll",function(){A.scroller.clientHeight&&(ps(m,A.scroller.scrollTop),No(m,A.scroller.scrollLeft,!0),Ye(m,"scroll",m))}),Me(A.scroller,"mousewheel",function(Pe){return kt(m,Pe)}),Me(A.scroller,"DOMMouseScroll",function(Pe){return kt(m,Pe)}),Me(A.wrapper,"scroll",function(){return A.wrapper.scrollTop=A.wrapper.scrollLeft=0}),A.dragFunctions={enter:function(Pe){Ze(m,Pe)||ke(Pe)},over:function(Pe){Ze(m,Pe)||(uo(m,Pe),ke(Pe))},start:function(Pe){return Zo(m,Pe)},drop:Sa(m,zr),leave:function(Pe){Ze(m,Pe)||Wo(m)}};var Oe=A.input.getField();Me(Oe,"keyup",function(Pe){return Hl.call(m,Pe)}),Me(Oe,"keydown",Sa(m,Ll)),Me(Oe,"keypress",Sa(m,Wl)),Me(Oe,"focus",function(Pe){return rs(m,Pe)}),Me(Oe,"blur",function(Pe){return xs(m,Pe)})}var Kn=[];fn.defineInitHook=function(m){return Kn.push(m)};function Pn(m,A,H,K){var G=m.doc,ee;H==null&&(H="add"),H=="smart"&&(G.mode.indent?ee=Jt(m,A).state:H="prev");var ye=m.options.tabSize,Oe=$t(G,A),Pe=B(Oe.text,null,ye);Oe.stateAfter&&(Oe.stateAfter=null);var He=Oe.text.match(/^\s*/)[0],ct;if(!K&&!/\S/.test(Oe.text))ct=0,H="not";else if(H=="smart"&&(ct=G.mode.indent(ee,Oe.text.slice(He.length),Oe.text),ct==Ee||ct>150)){if(!K)return;H="prev"}H=="prev"?A>G.first?ct=B($t(G,A-1).text,null,ye):ct=0:H=="add"?ct=Pe+m.options.indentUnit:H=="subtract"?ct=Pe-m.options.indentUnit:typeof H=="number"&&(ct=Pe+H),ct=Math.max(0,ct);var _t="",Wt=0;if(m.options.indentWithTabs)for(var Mt=Math.floor(ct/ye);Mt;--Mt)Wt+=ye,_t+=" ";if(Wt<ct&&(_t+=le(ct-Wt)),_t!=He)return Ni(G,_t,qt(A,0),qt(A,He.length),"+input"),Oe.stateAfter=null,!0;for(var rn=0;rn<G.sel.ranges.length;rn++){var pn=G.sel.ranges[rn];if(pn.head.line==A&&pn.head.ch<He.length){var On=qt(A,He.length);Cr(G,rn,new Gt(On,On));break}}}var Tr=null;function Pr(m){Tr=m}function mr(m,A,H,K,G){var ee=m.doc;m.display.shift=!1,K||(K=ee.sel);var ye=+new Date-200,Oe=G=="paste"||m.state.pasteIncoming>ye,Pe=bt(A),He=null;if(Oe&&K.ranges.length>1)if(Tr&&Tr.text.join(`
`)==A){if(K.ranges.length%Tr.text.length==0){He=[];for(var ct=0;ct<Tr.text.length;ct++)He.push(ee.splitLines(Tr.text[ct]))}}else Pe.length==K.ranges.length&&m.options.pasteLinesPerSelection&&(He=xe(Pe,function(Gn){return[Gn]}));for(var _t=m.curOp.updateInput,Wt=K.ranges.length-1;Wt>=0;Wt--){var Mt=K.ranges[Wt],rn=Mt.from(),pn=Mt.to();Mt.empty()&&(H&&H>0?rn=qt(rn.line,rn.ch-H):m.state.overwrite&&!Oe?pn=qt(pn.line,Math.min($t(ee,pn.line).text.length,pn.ch+oe(Pe).length)):Oe&&Tr&&Tr.lineWise&&Tr.text.join(`
`)==Pe.join(`
`)&&(rn=pn=qt(rn.line,0)));var On={from:rn,to:pn,text:He?He[Wt%He.length]:Pe,origin:G||(Oe?"paste":m.state.cutIncoming>ye?"cut":"+input")};ni(m.doc,On),sn(m,"inputRead",m,On)}A&&!Oe&&mi(m,A),fs(m),m.curOp.updateInput<2&&(m.curOp.updateInput=_t),m.curOp.typing=!0,m.state.pasteIncoming=m.state.cutIncoming=-1}function Gr(m,A){var H=m.clipboardData&&m.clipboardData.getData("Text");if(H)return m.preventDefault(),!A.isReadOnly()&&!A.options.disableInput&&vo(A,function(){return mr(A,H,0,null,"paste")}),!0}function mi(m,A){if(!m.options.electricChars||!m.options.smartIndent)return;for(var H=m.doc.sel,K=H.ranges.length-1;K>=0;K--){var G=H.ranges[K];if(G.head.ch>100||K&&H.ranges[K-1].head.line==G.head.line)continue;var ee=m.getModeAt(G.head),ye=!1;if(ee.electricChars){for(var Oe=0;Oe<ee.electricChars.length;Oe++)if(A.indexOf(ee.electricChars.charAt(Oe))>-1){ye=Pn(m,G.head.line,"smart");break}}else ee.electricInput&&(ee.electricInput.test($t(m.doc,G.head.line).text.slice(0,G.head.ch))&&(ye=Pn(m,G.head.line,"smart")));ye&&sn(m,"electricInput",m,G.head.line)}}function ho(m){for(var A=[],H=[],K=0;K<m.doc.sel.ranges.length;K++){var G=m.doc.sel.ranges[K].head.line,ee={anchor:qt(G,0),head:qt(G+1,0)};H.push(ee),A.push(m.getRange(ee.anchor,ee.head))}return{text:A,ranges:H}}function ro(m,A,H,K){m.setAttribute("autocorrect",H?"":"off"),m.setAttribute("autocapitalize",K?"":"off"),m.setAttribute("spellcheck",!!A)}function bs(){var m=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),A=R("div",[m],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return e?m.style.width="1000px":m.setAttribute("wrap","off"),o&&(m.style.border="1px solid black"),ro(m),A}function as(m){var A=m.optionHandlers,H=m.helpers={};m.prototype={constructor:m,focus:function(){window.focus(),this.display.input.focus()},setOption:function(K,G){var ee=this.options,ye=ee[K];if(ee[K]==G&&K!="mode")return;ee[K]=G,A.hasOwnProperty(K)&&Sa(this,A[K])(this,G,ye),Ye(this,"optionChange",this,K)},getOption:function(K){return this.options[K]},getDoc:function(){return this.doc},addKeyMap:function(K,G){this.state.keyMaps[G?"push":"unshift"](_s(K))},removeKeyMap:function(K){for(var G=this.state.keyMaps,ee=0;ee<G.length;++ee)if(G[ee]==K||G[ee].name==K)return G.splice(ee,1),!0},addOverlay:eo(function(K,G){var ee=K.token?K:m.getMode(this.options,K);if(ee.startState)throw new Error("Overlays may not be stateful.");q(this.state.overlays,{mode:ee,modeSpec:K,opaque:G&&G.opaque,priority:G&&G.priority||0},function(ye){return ye.priority}),this.state.modeGen++,Zi(this)}),removeOverlay:eo(function(K){for(var G=this.state.overlays,ee=0;ee<G.length;++ee){var ye=G[ee].modeSpec;if(ye==K||typeof K=="string"&&ye.name==K){G.splice(ee,1),this.state.modeGen++,Zi(this);return}}}),indentLine:eo(function(K,G,ee){typeof G!="string"&&typeof G!="number"&&(G==null?G=this.options.smartIndent?"smart":"prev":G=G?"add":"subtract"),or(this.doc,K)&&Pn(this,K,G,ee)}),indentSelection:eo(function(K){for(var G=this.doc.sel.ranges,ee=-1,ye=0;ye<G.length;ye++){var Oe=G[ye];if(Oe.empty())Oe.head.line>ee&&(Pn(this,Oe.head.line,K,!0),ee=Oe.head.line,ye==this.doc.sel.primIndex&&fs(this));else{var Pe=Oe.from(),He=Oe.to(),ct=Math.max(ee,Pe.line);ee=Math.min(this.lastLine(),He.line-(He.ch?0:1))+1;for(var _t=ct;_t<ee;++_t)Pn(this,_t,K);var Wt=this.doc.sel.ranges;Pe.ch==0&&G.length==Wt.length&&Wt[ye].from().ch>0&&Cr(this.doc,ye,new Gt(Pe,Wt[ye].to()),De)}}}),getTokenAt:function(K,G){return Jn(this,K,G)},getLineTokens:function(K,G){return Jn(this,qt(K),G,!0)},getTokenTypeAt:function(K){K=V(this.doc,K);var G=Ut(this,$t(this.doc,K.line)),ee=0,ye=(G.length-1)/2,Oe=K.ch,Pe;if(Oe==0)Pe=G[2];else for(;;){var He=ee+ye>>1;if((He?G[He*2-1]:0)>=Oe)ye=He;else if(G[He*2+1]<Oe)ee=He+1;else{Pe=G[He*2+2];break}}var ct=Pe?Pe.indexOf("overlay "):-1;return ct<0?Pe:ct==0?null:Pe.slice(0,ct-1)},getModeAt:function(K){var G=this.doc.mode;return G.innerMode?m.innerMode(G,this.getTokenAt(K).state).mode:G},getHelper:function(K,G){return this.getHelpers(K,G)[0]},getHelpers:function(K,G){var ee=[];if(!H.hasOwnProperty(G))return ee;var ye=H[G],Oe=this.getModeAt(K);if(typeof Oe[G]=="string")ye[Oe[G]]&&ee.push(ye[Oe[G]]);else if(Oe[G])for(var Pe=0;Pe<Oe[G].length;Pe++){var He=ye[Oe[G][Pe]];He&&ee.push(He)}else Oe.helperType&&ye[Oe.helperType]?ee.push(ye[Oe.helperType]):ye[Oe.name]&&ee.push(ye[Oe.name]);for(var ct=0;ct<ye._global.length;ct++){var _t=ye._global[ct];_t.pred(Oe,this)&&re(ee,_t.val)==-1&&ee.push(_t.val)}return ee},getStateAfter:function(K,G){var ee=this.doc;return K=ge(ee,K==null?ee.first+ee.size-1:K),Jt(this,K+1,G).state},cursorCoords:function(K,G){var ee,ye=this.doc.sel.primary();return K==null?ee=ye.head:typeof K=="object"?ee=V(this.doc,K):ee=K?ye.from():ye.to(),ci(this,ee,G||"page")},charCoords:function(K,G){return sa(this,V(this.doc,K),G||"page")},coordsChar:function(K,G){return K=li(this,K,G||"page"),pi(this,K.left,K.top)},lineAtHeight:function(K,G){return K=li(this,{top:K,left:0},G||"page").top,jn(this.doc,K+this.display.viewOffset)},heightAtLine:function(K,G,ee){var ye=!1,Oe;if(typeof K=="number"){var Pe=this.doc.first+this.doc.size-1;K<this.doc.first?K=this.doc.first:K>Pe&&(K=Pe,ye=!0),Oe=$t(this.doc,K)}else Oe=K;return Ei(this,Oe,{top:0,left:0},G||"page",ee||ye).top+(ye?this.doc.height-Ha(Oe):0)},defaultTextHeight:function(){return wa(this.display)},defaultCharWidth:function(){return La(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(K,G,ee,ye,Oe){var Pe=this.display;K=ci(this,V(this.doc,K));var He=K.bottom,ct=K.left;if(G.style.position="absolute",G.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(G),Pe.sizer.appendChild(G),ye=="over")He=K.top;else if(ye=="above"||ye=="near"){var _t=Math.max(Pe.wrapper.clientHeight,this.doc.height),Wt=Math.max(Pe.sizer.clientWidth,Pe.lineSpace.clientWidth);(ye=="above"||K.bottom+G.offsetHeight>_t)&&K.top>G.offsetHeight?He=K.top-G.offsetHeight:K.bottom+G.offsetHeight<=_t&&(He=K.bottom),ct+G.offsetWidth>Wt&&(ct=Wt-G.offsetWidth)}G.style.top=He+"px",G.style.left=G.style.right="",Oe=="right"?(ct=Pe.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(Oe=="left"?ct=0:Oe=="middle"&&(ct=(Pe.sizer.clientWidth-G.offsetWidth)/2),G.style.left=ct+"px"),ee&&cl(this,{left:ct,top:He,right:ct+G.offsetWidth,bottom:He+G.offsetHeight})},triggerOnKeyDown:eo(Ll),triggerOnKeyPress:eo(Wl),triggerOnKeyUp:Hl,triggerOnMouseDown:eo(zl),execCommand:function(K){if(hs.hasOwnProperty(K))return hs[K].call(null,this)},triggerElectric:eo(function(K){mi(this,K)}),findPosH:function(K,G,ee,ye){var Oe=1;G<0&&(Oe=-1,G=-G);for(var Pe=V(this.doc,K),He=0;He<G&&!(Pe=Aa(this.doc,Pe,Oe,ee,ye),Pe.hitSide);++He);return Pe},moveH:eo(function(K,G){var ee=this;this.extendSelectionsBy(function(ye){return ee.display.shift||ee.doc.extend||ye.empty()?Aa(ee.doc,ye.head,K,G,ee.options.rtlMoveVisually):K<0?ye.from():ye.to()},Ce)}),deleteH:eo(function(K,G){var ee=this.doc.sel,ye=this.doc;ee.somethingSelected()?ye.replaceSelection("",null,"+delete"):$o(this,function(Oe){var Pe=Aa(ye,Oe.head,K,G,!1);return K<0?{from:Pe,to:Oe.head}:{from:Oe.head,to:Pe}})}),findPosV:function(K,G,ee,ye){var Oe=1,Pe=ye;G<0&&(Oe=-1,G=-G);for(var He=V(this.doc,K),ct=0;ct<G;++ct){var _t=ci(this,He,"div");if(Pe==null?Pe=_t.left:_t.left=Pe,He=yl(this,_t,Oe,ee),He.hitSide)break}return He},moveV:eo(function(K,G){var ee=this,ye=this.doc,Oe=[],Pe=!this.display.shift&&!ye.extend&&ye.sel.somethingSelected();if(ye.extendSelectionsBy(function(ct){if(Pe)return K<0?ct.from():ct.to();var _t=ci(ee,ct.head,"div");ct.goalColumn!=null&&(_t.left=ct.goalColumn),Oe.push(_t.left);var Wt=yl(ee,_t,K,G);return G=="page"&&ct==ye.sel.primary()&&js(ee,sa(ee,Wt,"div").top-_t.top),Wt},Ce),Oe.length)for(var He=0;He<ye.sel.ranges.length;He++)ye.sel.ranges[He].goalColumn=Oe[He]}),findWordAt:function(K){var G=this.doc,ee=$t(G,K.line).text,ye=K.ch,Oe=K.ch;if(ee){var Pe=this.getHelper(K,"wordChars");(K.sticky=="before"||Oe==ee.length)&&ye?--ye:++Oe;for(var He=ee.charAt(ye),ct=Q(He,Pe)?function(_t){return Q(_t,Pe)}:/\s/.test(He)?function(_t){return/\s/.test(_t)}:function(_t){return!/\s/.test(_t)&&!Q(_t)};ye>0&&ct(ee.charAt(ye-1));)--ye;for(;Oe<ee.length&&ct(ee.charAt(Oe));)++Oe}return new Gt(qt(K.line,ye),qt(K.line,Oe))},toggleOverwrite:function(K){if(K!=null&&K==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):w(this.display.cursorDiv,"CodeMirror-overwrite"),Ye(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==z()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:eo(function(K,G){ss(this,K,G)}),getScrollInfo:function(){var K=this.display.scroller;return{left:K.scrollLeft,top:K.scrollTop,height:K.scrollHeight-At(this)-this.display.barHeight,width:K.scrollWidth-At(this)-this.display.barWidth,clientHeight:je(this),clientWidth:ht(this)}},scrollIntoView:eo(function(K,G){K==null?(K={from:this.doc.sel.primary().head,to:null},G==null&&(G=this.options.cursorScrollMargin)):typeof K=="number"?K={from:qt(K,0),to:null}:K.from==null&&(K={from:K,to:null}),K.to||(K.to=K.from),K.margin=G||0,K.from.line!=null?Tl(this,K):Ss(this,K.from,K.to,K.margin)}),setSize:eo(function(K,G){var ee=this,ye=function(Pe){return typeof Pe=="number"||/^\d+$/.test(String(Pe))?Pe+"px":Pe};K!=null&&(this.display.wrapper.style.width=ye(K)),G!=null&&(this.display.wrapper.style.height=ye(G)),this.options.lineWrapping&&Hr(this);var Oe=this.display.viewFrom;this.doc.iter(Oe,this.display.viewTo,function(Pe){if(Pe.widgets){for(var He=0;He<Pe.widgets.length;He++)if(Pe.widgets[He].noHScroll){fa(ee,Oe,"widget");break}}++Oe}),this.curOp.forceUpdate=!0,Ye(this,"refresh",this)}),operation:function(K){return vo(this,K)},startOperation:function(){return is(this)},endOperation:function(){return us(this)},refresh:eo(function(){var K=this.display.cachedTextHeight;Zi(this),this.curOp.forceUpdate=!0,Yr(this),ss(this,this.doc.scrollLeft,this.doc.scrollTop),rl(this.display),(K==null||Math.abs(K-wa(this.display))>.5||this.options.lineWrapping)&&go(this),Ye(this,"refresh",this)}),swapDoc:eo(function(K){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),on(this,K),Yr(this),this.display.input.reset(),ss(this,K.scrollLeft,K.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,G),G}),phrase:function(K){var G=this.options.phrases;return G&&Object.prototype.hasOwnProperty.call(G,K)?G[K]:K},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Be(m),m.registerHelper=function(K,G,ee){H.hasOwnProperty(K)||(H[K]=m[K]={_global:[]}),H[K][G]=ee},m.registerGlobalHelper=function(K,G,ee,ye){m.registerHelper(K,G,ye),H[K]._global.push({pred:ee,val:ye})}}function Aa(m,A,H,K,G){var ee=A,ye=H,Oe=$t(m,A.line),Pe=G&&m.direction=="rtl"?-H:H;function He(){var er=A.line+Pe;return er<m.first||er>=m.first+m.size?!1:(A=new qt(er,A.ch,A.sticky),Oe=$t(m,er))}function ct(er){var Vn;if(K=="codepoint"){var sr=Oe.text.charCodeAt(A.ch+(K>0?0:-1));isNaN(sr)?Vn=null:Vn=new qt(A.line,Math.max(0,Math.min(Oe.text.length,A.ch+H*(sr>=55296&&sr<56320?2:1))),-H)}else G?Vn=Dl(m.cm,Oe,A,H):Vn=al(Oe,A,H);if(Vn==null)if(!er&&He())A=Is(G,m.cm,Oe,A.line,Pe);else return!1;else A=Vn;return!0}if(K=="char"||K=="codepoint")ct();else if(K=="column")ct(!0);else if(K=="word"||K=="group")for(var _t=null,Wt=K=="group",Mt=m.cm&&m.cm.getHelper(A,"wordChars"),rn=!0;!(H<0&&!ct(!rn));rn=!1){var pn=Oe.text.charAt(A.ch)||`
`,On=Q(pn,Mt)?"w":Wt&&pn==`
`?"n":!Wt||/\s/.test(pn)?null:"p";if(Wt&&!rn&&!On&&(On="s"),_t&&_t!=On){H<0&&(H=1,ct(),A.sticky="after");break}if(On&&(_t=On),H>0&&!ct(!rn))break}var Gn=rr(m,A,ee,ye,!0);return Kr(ee,Gn)&&(Gn.hitSide=!0),Gn}function yl(m,A,H,K){var G=m.doc,ee=A.left,ye;if(K=="page"){var Oe=Math.min(m.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Pe=Math.max(Oe-.5*wa(m.display),3);ye=(H>0?A.bottom:A.top)+H*Pe}else K=="line"&&(ye=H>0?A.bottom+3:A.top-3);for(var He;!(He=pi(m,ee,ye),!He.outside);){if(H<0?ye<=0:ye>=G.height){He.hitSide=!0;break}ye+=H*5}return He}var Hi=function(m){this.cm=m,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Hi.prototype.init=function(m){var A=this,H=this,K=H.cm,G=H.div=m.lineDiv;ro(G,K.options.spellcheck,K.options.autocorrect,K.options.autocapitalize);function ee(Oe){for(var Pe=Oe.target;Pe;Pe=Pe.parentNode){if(Pe==G)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}Me(G,"paste",function(Oe){if(!ee(Oe)||Ze(K,Oe)||Gr(Oe,K))return;p<=11&&setTimeout(Sa(K,function(){return A.updateFromDOM()}),20)}),Me(G,"compositionstart",function(Oe){A.composing={data:Oe.data,done:!1}}),Me(G,"compositionupdate",function(Oe){A.composing||(A.composing={data:Oe.data,done:!1})}),Me(G,"compositionend",function(Oe){A.composing&&(Oe.data!=A.composing.data&&A.readFromDOMSoon(),A.composing.done=!0)}),Me(G,"touchstart",function(){return H.forceCompositionEnd()}),Me(G,"input",function(){A.composing||A.readFromDOMSoon()});function ye(Oe){if(!ee(Oe)||Ze(K,Oe))return;if(K.somethingSelected())Pr({lineWise:!1,text:K.getSelections()}),Oe.type=="cut"&&K.replaceSelection("",null,"cut");else if(K.options.lineWiseCopyCut){var Pe=ho(K);Pr({lineWise:!0,text:Pe.text}),Oe.type=="cut"&&K.operation(function(){K.setSelections(Pe.ranges,0,De),K.replaceSelection("",null,"cut")})}else return;if(Oe.clipboardData){Oe.clipboardData.clearData();var He=Tr.text.join(`
`);if(Oe.clipboardData.setData("Text",He),Oe.clipboardData.getData("Text")==He){Oe.preventDefault();return}}var ct=bs(),_t=ct.firstChild;K.display.lineSpace.insertBefore(ct,K.display.lineSpace.firstChild),_t.value=Tr.text.join(`
`);var Wt=document.activeElement;F(_t),setTimeout(function(){K.display.lineSpace.removeChild(ct),Wt.focus(),Wt==G&&H.showPrimarySelection()},50)}Me(G,"copy",ye),Me(G,"cut",ye)},Hi.prototype.screenReaderLabelChanged=function(m){m?this.div.setAttribute("aria-label",m):this.div.removeAttribute("aria-label")},Hi.prototype.prepareSelection=function(){var m=Ho(this.cm,!1);return m.focus=document.activeElement==this.div,m},Hi.prototype.showSelection=function(m,A){if(!m||!this.cm.display.view.length)return;(m.focus||A)&&this.showPrimarySelection(),this.showMultipleSelections(m)},Hi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Hi.prototype.showPrimarySelection=function(){var m=this.getSelection(),A=this.cm,H=A.doc.sel.primary(),K=H.from(),G=H.to();if(A.display.viewTo==A.display.viewFrom||K.line>=A.display.viewTo||G.line<A.display.viewFrom){m.removeAllRanges();return}var ee=Ls(A,m.anchorNode,m.anchorOffset),ye=Ls(A,m.focusNode,m.focusOffset);if(ee&&!ee.bad&&ye&&!ye.bad&&wn(Qn(ee,ye),K)==0&&wn(Mr(ee,ye),G)==0)return;var Oe=A.display.view,Pe=K.line>=A.display.viewFrom&&Fl(A,K)||{node:Oe[0].measure.map[2],offset:0},He=G.line<A.display.viewTo&&Fl(A,G);if(!He){var ct=Oe[Oe.length-1].measure,_t=ct.maps?ct.maps[ct.maps.length-1]:ct.map;He={node:_t[_t.length-1],offset:_t[_t.length-2]-_t[_t.length-3]}}if(!Pe||!He){m.removeAllRanges();return}var Wt=m.rangeCount&&m.getRangeAt(0),Mt;try{Mt=N(Pe.node,Pe.offset,He.offset,He.node)}catch(rn){}Mt&&(!T&&A.state.focused?(m.collapse(Pe.node,Pe.offset),Mt.collapsed||(m.removeAllRanges(),m.addRange(Mt))):(m.removeAllRanges(),m.addRange(Mt)),Wt&&m.anchorNode==null?m.addRange(Wt):T&&this.startGracePeriod()),this.rememberSelection()},Hi.prototype.startGracePeriod=function(){var m=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){m.gracePeriod=!1,m.selectionChanged()&&m.cm.operation(function(){return m.cm.curOp.selectionChanged=!0})},20)},Hi.prototype.showMultipleSelections=function(m){D(this.cm.display.cursorDiv,m.cursors),D(this.cm.display.selectionDiv,m.selection)},Hi.prototype.rememberSelection=function(){var m=this.getSelection();this.lastAnchorNode=m.anchorNode,this.lastAnchorOffset=m.anchorOffset,this.lastFocusNode=m.focusNode,this.lastFocusOffset=m.focusOffset},Hi.prototype.selectionInEditor=function(){var m=this.getSelection();if(!m.rangeCount)return!1;var A=m.getRangeAt(0).commonAncestorContainer;return M(this.div,A)},Hi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Hi.prototype.blur=function(){this.div.blur()},Hi.prototype.getField=function(){return this.div},Hi.prototype.supportsTouch=function(){return!0},Hi.prototype.receivedFocus=function(){var m=this;this.selectionInEditor()?this.pollSelection():vo(this.cm,function(){return m.cm.curOp.selectionChanged=!0});function A(){m.cm.state.focused&&(m.pollSelection(),m.polling.set(m.cm.options.pollInterval,A))}this.polling.set(this.cm.options.pollInterval,A)},Hi.prototype.selectionChanged=function(){var m=this.getSelection();return m.anchorNode!=this.lastAnchorNode||m.anchorOffset!=this.lastAnchorOffset||m.focusNode!=this.lastFocusNode||m.focusOffset!=this.lastFocusOffset},Hi.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var m=this.getSelection(),A=this.cm;if(c&&n&&this.cm.display.gutterSpecs.length&&Ql(m.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var H=Ls(A,m.anchorNode,m.anchorOffset),K=Ls(A,m.focusNode,m.focusOffset);H&&K&&vo(A,function(){Qr(A.doc,Xt(H,K),De),(H.bad||K.bad)&&(A.curOp.selectionChanged=!0)})},Hi.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var m=this.cm,A=m.display,H=m.doc.sel.primary(),K=H.from(),G=H.to();if(K.ch==0&&K.line>m.firstLine()&&(K=qt(K.line-1,$t(m.doc,K.line-1).length)),G.ch==$t(m.doc,G.line).text.length&&G.line<m.lastLine()&&(G=qt(G.line+1,0)),K.line<A.viewFrom||G.line>A.viewTo-1)return!1;var ee,ye,Oe;K.line==A.viewFrom||(ee=ra(m,K.line))==0?(ye=Yn(A.view[0].line),Oe=A.view[0].node):(ye=Yn(A.view[ee].line),Oe=A.view[ee-1].node.nextSibling);var Pe=ra(m,G.line),He,ct;if(Pe==A.view.length-1?(He=A.viewTo-1,ct=A.lineDiv.lastChild):(He=Yn(A.view[Pe+1].line)-1,ct=A.view[Pe+1].node.previousSibling),!Oe)return!1;for(var _t=m.doc.splitLines(jl(m,Oe,ct,ye,He)),Wt=Zn(m.doc,qt(ye,0),qt(He,$t(m.doc,He).text.length));_t.length>1&&Wt.length>1;)if(oe(_t)==oe(Wt))_t.pop(),Wt.pop(),He--;else if(_t[0]==Wt[0])_t.shift(),Wt.shift(),ye++;else break;for(var Mt=0,rn=0,pn=_t[0],On=Wt[0],Gn=Math.min(pn.length,On.length);Mt<Gn&&pn.charCodeAt(Mt)==On.charCodeAt(Mt);)++Mt;for(var er=oe(_t),Vn=oe(Wt),sr=Math.min(er.length-(_t.length==1?Mt:0),Vn.length-(Wt.length==1?Mt:0));rn<sr&&er.charCodeAt(er.length-rn-1)==Vn.charCodeAt(Vn.length-rn-1);)++rn;if(_t.length==1&&Wt.length==1&&ye==K.line)for(;Mt&&Mt>K.ch&&er.charCodeAt(er.length-rn-1)==Vn.charCodeAt(Vn.length-rn-1);)Mt--,rn++;_t[_t.length-1]=er.slice(0,er.length-rn).replace(/^\u200b+/,""),_t[0]=_t[0].slice(Mt).replace(/\u200b+$/,"");var Rr=qt(ye,Mt),br=qt(He,Wt.length?oe(Wt).length-rn:0);if(_t.length>1||_t[0]||wn(Rr,br))return Ni(m.doc,_t,Rr,br,"+input"),!0},Hi.prototype.ensurePolled=function(){this.forceCompositionEnd()},Hi.prototype.reset=function(){this.forceCompositionEnd()},Hi.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Hi.prototype.readFromDOMSoon=function(){var m=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(m.readDOMTimeout=null,m.composing)if(m.composing.done)m.composing=null;else return;m.updateFromDOM()},80)},Hi.prototype.updateFromDOM=function(){var m=this;(this.cm.isReadOnly()||!this.pollContent())&&vo(this.cm,function(){return Zi(m.cm)})},Hi.prototype.setUneditable=function(m){m.contentEditable="false"},Hi.prototype.onKeyPress=function(m){if(m.charCode==0||this.composing)return;m.preventDefault(),this.cm.isReadOnly()||Sa(this.cm,mr)(this.cm,String.fromCharCode(m.charCode==null?m.keyCode:m.charCode),0)},Hi.prototype.readOnlyChanged=function(m){this.div.contentEditable=String(m!="nocursor")},Hi.prototype.onContextMenu=function(){},Hi.prototype.resetPosition=function(){},Hi.prototype.needsContentAttribute=!0;function Fl(m,A){var H=It(m,A.line);if(!H||H.hidden)return null;var K=$t(m.doc,A.line),G=ze(H,K,A.line),ee=$e(K,m.doc.direction),ye="left";if(ee){var Oe=ve(ee,A.ch);ye=Oe%2?"right":"left"}var Pe=yn(G.map,A.ch,ye);return Pe.offset=Pe.collapse=="right"?Pe.end:Pe.start,Pe}function Ql(m){for(var A=m;A;A=A.parentNode)if(/CodeMirror-gutter-wrapper/.test(A.className))return!0;return!1}function os(m,A){return A&&(m.bad=!0),m}function jl(m,A,H,K,G){var ee="",ye=!1,Oe=m.doc.lineSeparator(),Pe=!1;function He(Mt){return function(rn){return rn.id==Mt}}function ct(){ye&&(ee+=Oe,Pe&&(ee+=Oe),ye=Pe=!1)}function _t(Mt){Mt&&(ct(),ee+=Mt)}function Wt(Mt){if(Mt.nodeType==1){var rn=Mt.getAttribute("cm-text");if(rn){_t(rn);return}var pn=Mt.getAttribute("cm-marker"),On;if(pn){var Gn=m.findMarks(qt(K,0),qt(G+1,0),He(+pn));Gn.length&&(On=Gn[0].find(0))&&_t(Zn(m.doc,On.from,On.to).join(Oe));return}if(Mt.getAttribute("contenteditable")=="false")return;var er=/^(pre|div|p|li|table|br)$/i.test(Mt.nodeName);if(!/^br$/i.test(Mt.nodeName)&&Mt.textContent.length==0)return;er&&ct();for(var Vn=0;Vn<Mt.childNodes.length;Vn++)Wt(Mt.childNodes[Vn]);/^(pre|p)$/i.test(Mt.nodeName)&&(Pe=!0),er&&(ye=!0)}else Mt.nodeType==3&&_t(Mt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Wt(A),A==H);)A=A.nextSibling,Pe=!1;return ee}function Ls(m,A,H){var K;if(A==m.display.lineDiv){if(K=m.display.lineDiv.childNodes[H],!K)return os(m.clipPos(qt(m.display.viewTo-1)),!0);A=null,H=0}else for(K=A;;K=K.parentNode){if(!K||K==m.display.lineDiv)return null;if(K.parentNode&&K.parentNode==m.display.lineDiv)break}for(var G=0;G<m.display.view.length;G++){var ee=m.display.view[G];if(ee.node==K)return ou(ee,A,H)}}function ou(m,A,H){var K=m.text.firstChild,G=!1;if(!A||!M(K,A))return os(qt(Yn(m.line),0),!0);if(A==K&&(G=!0,A=K.childNodes[H],H=0,!A)){var ee=m.rest?oe(m.rest):m.line;return os(qt(Yn(ee),ee.text.length),G)}var ye=A.nodeType==3?A:null,Oe=A;for(!ye&&A.childNodes.length==1&&A.firstChild.nodeType==3&&(ye=A.firstChild,H&&(H=ye.nodeValue.length));Oe.parentNode!=K;)Oe=Oe.parentNode;var Pe=m.measure,He=Pe.maps;function ct(On,Gn,er){for(var Vn=-1;Vn<(He?He.length:0);Vn++)for(var sr=Vn<0?Pe.map:He[Vn],Rr=0;Rr<sr.length;Rr+=3){var br=sr[Rr+2];if(br==On||br==Gn){var gi=Yn(Vn<0?m.line:m.rest[Vn]),ua=sr[Rr]+er;return(er<0||br!=On)&&(ua=sr[Rr+(er?1:0)]),qt(gi,ua)}}}var _t=ct(ye,Oe,H);if(_t)return os(_t,G);for(var Wt=Oe.nextSibling,Mt=ye?ye.nodeValue.length-H:0;Wt;Wt=Wt.nextSibling){if(_t=ct(Wt,Wt.firstChild,0),_t)return os(qt(_t.line,_t.ch-Mt),G);Mt+=Wt.textContent.length}for(var rn=Oe.previousSibling,pn=H;rn;rn=rn.previousSibling){if(_t=ct(rn,rn.firstChild,-1),_t)return os(qt(_t.line,_t.ch+pn),G);pn+=rn.textContent.length}}var ui=function(m){this.cm=m,this.prevInput="",this.pollingFast=!1,this.polling=new Z,this.hasSelection=!1,this.composing=null};ui.prototype.init=function(m){var A=this,H=this,K=this.cm;this.createField(m);var G=this.textarea;m.wrapper.insertBefore(this.wrapper,m.wrapper.firstChild),o&&(G.style.width="0px"),Me(G,"input",function(){_&&p>=9&&A.hasSelection&&(A.hasSelection=null),H.poll()}),Me(G,"paste",function(ye){if(Ze(K,ye)||Gr(ye,K))return;K.state.pasteIncoming=+new Date,H.fastPoll()});function ee(ye){if(Ze(K,ye))return;if(K.somethingSelected())Pr({lineWise:!1,text:K.getSelections()});else if(K.options.lineWiseCopyCut){var Oe=ho(K);Pr({lineWise:!0,text:Oe.text}),ye.type=="cut"?K.setSelections(Oe.ranges,null,De):(H.prevInput="",G.value=Oe.text.join(`
`),F(G))}else return;ye.type=="cut"&&(K.state.cutIncoming=+new Date)}Me(G,"cut",ee),Me(G,"copy",ee),Me(m.scroller,"paste",function(ye){if(Po(m,ye)||Ze(K,ye))return;if(!G.dispatchEvent){K.state.pasteIncoming=+new Date,H.focus();return}var Oe=new Event("paste");Oe.clipboardData=ye.clipboardData,G.dispatchEvent(Oe)}),Me(m.lineSpace,"selectstart",function(ye){Po(m,ye)||_e(ye)}),Me(G,"compositionstart",function(){var ye=K.getCursor("from");H.composing&&H.composing.range.clear(),H.composing={start:ye,range:K.markText(ye,K.getCursor("to"),{className:"CodeMirror-composing"})}}),Me(G,"compositionend",function(){H.composing&&(H.poll(),H.composing.range.clear(),H.composing=null)})},ui.prototype.createField=function(m){this.wrapper=bs(),this.textarea=this.wrapper.firstChild},ui.prototype.screenReaderLabelChanged=function(m){m?this.textarea.setAttribute("aria-label",m):this.textarea.removeAttribute("aria-label")},ui.prototype.prepareSelection=function(){var m=this.cm,A=m.display,H=m.doc,K=Ho(m);if(m.options.moveInputWithCursor){var G=ci(m,H.sel.primary().head,"div"),ee=A.wrapper.getBoundingClientRect(),ye=A.lineDiv.getBoundingClientRect();K.teTop=Math.max(0,Math.min(A.wrapper.clientHeight-10,G.top+ye.top-ee.top)),K.teLeft=Math.max(0,Math.min(A.wrapper.clientWidth-10,G.left+ye.left-ee.left))}return K},ui.prototype.showSelection=function(m){var A=this.cm,H=A.display;D(H.cursorDiv,m.cursors),D(H.selectionDiv,m.selection),m.teTop!=null&&(this.wrapper.style.top=m.teTop+"px",this.wrapper.style.left=m.teLeft+"px")},ui.prototype.reset=function(m){if(this.contextMenuPending||this.composing)return;var A=this.cm;if(A.somethingSelected()){this.prevInput="";var H=A.getSelection();this.textarea.value=H,A.state.focused&&F(this.textarea),_&&p>=9&&(this.hasSelection=H)}else m||(this.prevInput=this.textarea.value="",_&&p>=9&&(this.hasSelection=null))},ui.prototype.getField=function(){return this.textarea},ui.prototype.supportsTouch=function(){return!1},ui.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||z()!=this.textarea))try{this.textarea.focus()}catch(m){}},ui.prototype.blur=function(){this.textarea.blur()},ui.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ui.prototype.receivedFocus=function(){this.slowPoll()},ui.prototype.slowPoll=function(){var m=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){m.poll(),m.cm.state.focused&&m.slowPoll()})},ui.prototype.fastPoll=function(){var m=!1,A=this;A.pollingFast=!0;function H(){var K=A.poll();!K&&!m?(m=!0,A.polling.set(60,H)):(A.pollingFast=!1,A.slowPoll())}A.polling.set(20,H)},ui.prototype.poll=function(){var m=this,A=this.cm,H=this.textarea,K=this.prevInput;if(this.contextMenuPending||!A.state.focused||ut(H)&&!K&&!this.composing||A.isReadOnly()||A.options.disableInput||A.state.keySeq)return!1;var G=H.value;if(G==K&&!A.somethingSelected())return!1;if(_&&p>=9&&this.hasSelection===G||f&&/[\uf700-\uf7ff]/.test(G))return A.display.input.reset(),!1;if(A.doc.sel==A.display.selForContextMenu){var ee=G.charCodeAt(0);if(ee==8203&&!K&&(K="\u200B"),ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,Oe=Math.min(K.length,G.length);ye<Oe&&K.charCodeAt(ye)==G.charCodeAt(ye);)++ye;return vo(A,function(){mr(A,G.slice(ye),K.length-ye,null,m.composing?"*compose":null),G.length>1e3||G.indexOf(`
`)>-1?H.value=m.prevInput="":m.prevInput=G,m.composing&&(m.composing.range.clear(),m.composing.range=A.markText(m.composing.start,A.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ui.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ui.prototype.onKeyPress=function(){_&&p>=9&&(this.hasSelection=null),this.fastPoll()},ui.prototype.onContextMenu=function(m){var A=this,H=A.cm,K=H.display,G=A.textarea;A.contextMenuPending&&A.contextMenuPending();var ee=Ma(H,m),ye=K.scroller.scrollTop;if(!ee||l)return;var Oe=H.options.resetSelectionOnContextMenu;Oe&&H.doc.sel.contains(ee)==-1&&Sa(H,Qr)(H.doc,Xt(ee),De);var Pe=G.style.cssText,He=A.wrapper.style.cssText,ct=A.wrapper.offsetParent.getBoundingClientRect();A.wrapper.style.cssText="position: static",G.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(m.clientY-ct.top-5)+"px; left: "+(m.clientX-ct.left-5)+`px;
z-index: 1000; background: `+(_?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _t;e&&(_t=window.scrollY),K.input.focus(),e&&window.scrollTo(null,_t),K.input.reset(),H.somethingSelected()||(G.value=A.prevInput=" "),A.contextMenuPending=Mt,K.selForContextMenu=H.doc.sel,clearTimeout(K.detectingSelectAll);function Wt(){if(G.selectionStart!=null){var pn=H.somethingSelected(),On="\u200B"+(pn?G.value:"");G.value="\u21DA",G.value=On,A.prevInput=pn?"":"\u200B",G.selectionStart=1,G.selectionEnd=On.length,K.selForContextMenu=H.doc.sel}}function Mt(){if(A.contextMenuPending!=Mt)return;if(A.contextMenuPending=!1,A.wrapper.style.cssText=He,G.style.cssText=Pe,_&&p<9&&K.scrollbars.setScrollTop(K.scroller.scrollTop=ye),G.selectionStart!=null){(!_||_&&p<9)&&Wt();var pn=0,On=function(){K.selForContextMenu==H.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&A.prevInput=="\u200B"?Sa(H,Pi)(H):pn++<10?K.detectingSelectAll=setTimeout(On,500):(K.selForContextMenu=null,K.input.reset())};K.detectingSelectAll=setTimeout(On,200)}}if(_&&p>=9&&Wt(),O){ke(m);var rn=function(){Te(window,"mouseup",rn),setTimeout(Mt,20)};Me(window,"mouseup",rn)}else setTimeout(Mt,50)},ui.prototype.readOnlyChanged=function(m){m||this.reset(),this.textarea.disabled=m=="nocursor",this.textarea.readOnly=!!m},ui.prototype.setUneditable=function(){},ui.prototype.needsContentAttribute=!1;function ru(m,A){if(A=A?L(A):{},A.value=m.value,!A.tabindex&&m.tabIndex&&(A.tabindex=m.tabIndex),!A.placeholder&&m.placeholder&&(A.placeholder=m.placeholder),A.autofocus==null){var H=z();A.autofocus=H==m||m.getAttribute("autofocus")!=null&&H==document.body}function K(){m.value=Oe.getValue()}var G;if(m.form&&(Me(m.form,"submit",K),!A.leaveSubmitMethodAlone)){var ee=m.form;G=ee.submit;try{var ye=ee.submit=function(){K(),ee.submit=G,ee.submit(),ee.submit=ye}}catch(Pe){}}A.finishInit=function(Pe){Pe.save=K,Pe.getTextArea=function(){return m},Pe.toTextArea=function(){Pe.toTextArea=isNaN,K(),m.parentNode.removeChild(Pe.getWrapperElement()),m.style.display="",m.form&&(Te(m.form,"submit",K),!A.leaveSubmitMethodAlone&&typeof m.form.submit=="function"&&(m.form.submit=G))}},m.style.display="none";var Oe=fn(function(Pe){return m.parentNode.insertBefore(Pe,m.nextSibling)},A);return Oe}function Jl(m){m.off=Te,m.on=Me,m.wheelEventPixels=Rt,m.Doc=_r,m.splitLines=bt,m.countColumn=B,m.findColumn=we,m.isWordChar=$,m.Pass=Ee,m.signal=Ye,m.Line=Ra,m.changeEnd=tn,m.scrollbarModel=$s,m.Pos=qt,m.cmpPos=wn,m.modes=ft,m.mimeModes=nt,m.resolveMode=vt,m.getMode=Ht,m.modeExtensions=Ft,m.extendMode=Lt,m.copyState=zt,m.startState=bn,m.innerMode=Qt,m.commands=hs,m.keyMap=Va,m.keyName=ma,m.isModifierKey=vs,m.lookupKey=Xo,m.normalizeKeyMap=Rs,m.StringStream=Zt,m.SharedTextMarker=Co,m.TextMarker=ko,m.LineWidget=to,m.e_preventDefault=_e,m.e_stopPropagation=Ae,m.e_stop=ke,m.addClass=X,m.contains=M,m.rmClass=w,m.keyNames=ji}Yl(fn),as(fn);var El="iter insert remove copy getEditor constructor".split(" ");for(var Ys in _r.prototype)_r.prototype.hasOwnProperty(Ys)&&re(El,Ys)<0&&(fn.prototype[Ys]=function(m){return function(){return m.apply(this.doc,arguments)}}(_r.prototype[Ys]));return Be(_r),fn.inputStyles={textarea:ui,contenteditable:Hi},fn.defineMode=function(m){!fn.defaults.mode&&m!="null"&&(fn.defaults.mode=m),Dt.apply(this,arguments)},fn.defineMIME=Kt,fn.defineMode("null",function(){return{token:function(m){return m.skipToEnd()}}}),fn.defineMIME("text/plain","null"),fn.defineExtension=function(m,A){fn.prototype[m]=A},fn.defineDocExtension=function(m,A){_r.prototype[m]=A},fn.fromTextArea=ru,Jl(fn),fn.version="5.58.2",fn})},W6BS:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WYAk:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){(function(){var v=I,T=v.lib,b=T.Base,g=v.enc,s=g.Utf8,_=v.algo,p=_.HMAC=b.extend({init:function(e,a){e=this._hasher=new e.init,typeof a=="string"&&(a=s.parse(a));var n=e.blockSize,l=n*4;a.sigBytes>l&&(a=e.finalize(a)),a.clamp();for(var r=this._oKey=a.clone(),i=this._iKey=a.clone(),t=r.words,o=i.words,c=0;c<n;c++)t[c]^=1549556828,o[c]^=909522486;r.sigBytes=i.sigBytes=l,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var a=this._hasher,n=a.finalize(e);a.reset();var l=a.finalize(this._oKey.clone().concat(n));return l}})})()})},WaYH:function(j,W,y){"use strict";var I=y("rePB"),v=y("Ff2n"),T=y("VTBJ"),b=y("1OyB"),g=y("vuIU"),s=y("JX7q"),_=y("Ji7U"),p=y("LK+K"),e=y("q1tI"),a=y("TSYQ"),n=y.n(a),l=y("sboe"),r=y("OZM5"),i=function(O){var C=O.prefixCls,w=O.level,S=O.isStart,D=O.isEnd;if(!w)return null;for(var R="".concat(C,"-indent-unit"),P=[],N=0;N<w;N+=1){var M;P.push(e.createElement("span",{key:N,className:n()(R,(M={},Object(I.a)(M,"".concat(R,"-start"),S[N+1]),Object(I.a)(M,"".concat(R,"-end"),D[N+1]),Object(I.a)(M,"".concat(R,"-end-first-level"),!N&&D[0]),M))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(C,"-indent")},P)},t=i,o=y("815F"),c="open",d="close",f="---",h=function(x){Object(_.a)(C,x);var O=Object(p.a)(C);function C(){var w;return Object(b.a)(this,C),w=O.apply(this,arguments),w.state={dragNodeHighlight:!1},w.onSelectorClick=function(S){var D=w.props.context.onNodeClick;D(S,Object(o.b)(w.props)),w.isSelectable()?w.onSelect(S):w.onCheck(S)},w.onSelectorDoubleClick=function(S){var D=w.props.context.onNodeDoubleClick;D(S,Object(o.b)(w.props))},w.onSelect=function(S){if(w.isDisabled())return;var D=w.props.context.onNodeSelect;S.preventDefault(),D(S,Object(o.b)(w.props))},w.onCheck=function(S){if(w.isDisabled())return;var D=w.props,R=D.disableCheckbox,P=D.checked,N=w.props.context.onNodeCheck;if(!w.isCheckable()||R)return;S.preventDefault();var M=!P;N(S,Object(o.b)(w.props),M)},w.onMouseEnter=function(S){var D=w.props.context.onNodeMouseEnter;D(S,Object(o.b)(w.props))},w.onMouseLeave=function(S){var D=w.props.context.onNodeMouseLeave;D(S,Object(o.b)(w.props))},w.onContextMenu=function(S){var D=w.props.context.onNodeContextMenu;D(S,Object(o.b)(w.props))},w.onDragStart=function(S){var D=w.props.context.onNodeDragStart;S.stopPropagation(),w.setState({dragNodeHighlight:!0}),D(S,Object(s.a)(w));try{S.dataTransfer.setData("text/plain","")}catch(R){}},w.onDragEnter=function(S){var D=w.props.context.onNodeDragEnter;S.preventDefault(),S.stopPropagation(),D(S,Object(s.a)(w))},w.onDragOver=function(S){var D=w.props.context.onNodeDragOver;S.preventDefault(),S.stopPropagation(),D(S,Object(s.a)(w))},w.onDragLeave=function(S){var D=w.props.context.onNodeDragLeave;S.stopPropagation(),D(S,Object(s.a)(w))},w.onDragEnd=function(S){var D=w.props.context.onNodeDragEnd;S.stopPropagation(),w.setState({dragNodeHighlight:!1}),D(S,Object(s.a)(w))},w.onDrop=function(S){var D=w.props.context.onNodeDrop;S.preventDefault(),S.stopPropagation(),w.setState({dragNodeHighlight:!1}),D(S,Object(s.a)(w))},w.onExpand=function(S){var D=w.props.context.onNodeExpand;D(S,Object(o.b)(w.props))},w.setSelectHandle=function(S){w.selectHandle=S},w.getNodeState=function(){var S=w.props.expanded;return w.isLeaf()?null:S?c:d},w.hasChildren=function(){var S=w.props.eventKey,D=w.props.context.keyEntities,R=D[S]||{},P=R.children;return!!(P||[]).length},w.isLeaf=function(){var S=w.props,D=S.isLeaf,R=S.loaded,P=w.props.context.loadData,N=w.hasChildren();return D===!1?!1:D||!P&&!N||P&&R&&!N},w.isDisabled=function(){var S=w.props.disabled,D=w.props.context.disabled;return!!(D||S)},w.isCheckable=function(){var S=w.props.checkable,D=w.props.context.checkable;return!D||S===!1?!1:D},w.syncLoadData=function(S){var D=S.expanded,R=S.loading,P=S.loaded,N=w.props.context,M=N.loadData,z=N.onNodeLoad;if(R)return;M&&D&&!w.isLeaf()&&(!w.hasChildren()&&!P&&z(Object(o.b)(w.props)))},w.renderSwitcher=function(){var S=w.props,D=S.expanded,R=S.switcherIcon,P=w.props.context,N=P.prefixCls,M=P.switcherIcon,z=R||M;if(w.isLeaf())return e.createElement("span",{className:n()("".concat(N,"-switcher"),"".concat(N,"-switcher-noop"))},typeof z=="function"?z(Object(T.a)(Object(T.a)({},w.props),{},{isLeaf:!0})):z);var X=n()("".concat(N,"-switcher"),"".concat(N,"-switcher_").concat(D?c:d));return e.createElement("span",{onClick:w.onExpand,className:X},typeof z=="function"?z(Object(T.a)(Object(T.a)({},w.props),{},{isLeaf:!1})):z)},w.renderCheckbox=function(){var S=w.props,D=S.checked,R=S.halfChecked,P=S.disableCheckbox,N=w.props.context.prefixCls,M=w.isDisabled(),z=w.isCheckable();if(!z)return null;var X=typeof z!="boolean"?z:null;return e.createElement("span",{className:n()("".concat(N,"-checkbox"),D&&"".concat(N,"-checkbox-checked"),!D&&R&&"".concat(N,"-checkbox-indeterminate"),(M||P)&&"".concat(N,"-checkbox-disabled")),onClick:w.onCheck},X)},w.renderIcon=function(){var S=w.props.loading,D=w.props.context.prefixCls;return e.createElement("span",{className:n()("".concat(D,"-iconEle"),"".concat(D,"-icon__").concat(w.getNodeState()||"docu"),S&&"".concat(D,"-icon_loading"))})},w.renderSelector=function(){var S=w.state.dragNodeHighlight,D=w.props,R=D.title,P=D.selected,N=D.icon,M=D.loading,z=D.data,X=w.props.context,k=X.prefixCls,F=X.showIcon,U=X.icon,L=X.draggable,B=X.loadData,Z=X.titleRender,re=w.isDisabled(),me="".concat(k,"-node-content-wrapper"),Ee;if(F){var De=N||U;Ee=De?e.createElement("span",{className:n()("".concat(k,"-iconEle"),"".concat(k,"-icon__customize"))},typeof De=="function"?De(w.props):De):w.renderIcon()}else B&&M&&(Ee=w.renderIcon());var te;typeof R=="function"?te=R(z):Z?te=Z(z):te=R;var Ce=e.createElement("span",{className:"".concat(k,"-title")},te);return e.createElement("span",{ref:w.setSelectHandle,title:typeof R=="string"?R:"",className:n()("".concat(me),"".concat(me,"-").concat(w.getNodeState()||"normal"),!re&&(P||S)&&"".concat(k,"-node-selected"),!re&&L&&"draggable"),draggable:!re&&L||void 0,"aria-grabbed":!re&&L||void 0,onMouseEnter:w.onMouseEnter,onMouseLeave:w.onMouseLeave,onContextMenu:w.onContextMenu,onClick:w.onSelectorClick,onDoubleClick:w.onSelectorDoubleClick,onDragStart:L?w.onDragStart:void 0},Ee,Ce)},w}return Object(g.a)(C,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var S=this.props.selectable,D=this.props.context.selectable;return typeof S=="boolean"?S:D}},{key:"render",value:function(){var S,D=this.props,R=D.eventKey,P=D.className,N=D.style,M=D.dragOver,z=D.dragOverGapTop,X=D.dragOverGapBottom,k=D.isLeaf,F=D.isStart,U=D.isEnd,L=D.expanded,B=D.selected,Z=D.checked,re=D.halfChecked,me=D.loading,Ee=D.domRef,De=D.active,te=D.onMouseMove,Ce=Object(v.a)(D,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),we=this.props.context,ce=we.prefixCls,le=we.filterTreeNode,oe=we.draggable,xe=we.keyEntities,q=this.isDisabled(),se=Object(r.f)(Ce),Ne=xe[R]||{},de=Ne.level,$=U[U.length-1];return e.createElement("div",Object.assign({ref:Ee,className:n()(P,"".concat(ce,"-treenode"),(S={},Object(I.a)(S,"".concat(ce,"-treenode-disabled"),q),Object(I.a)(S,"".concat(ce,"-treenode-switcher-").concat(L?"open":"close"),!k),Object(I.a)(S,"".concat(ce,"-treenode-checkbox-checked"),Z),Object(I.a)(S,"".concat(ce,"-treenode-checkbox-indeterminate"),re),Object(I.a)(S,"".concat(ce,"-treenode-selected"),B),Object(I.a)(S,"".concat(ce,"-treenode-loading"),me),Object(I.a)(S,"".concat(ce,"-treenode-active"),De),Object(I.a)(S,"".concat(ce,"-treenode-leaf-last"),$),Object(I.a)(S,"drag-over",!q&&M),Object(I.a)(S,"drag-over-gap-top",!q&&z),Object(I.a)(S,"drag-over-gap-bottom",!q&&X),Object(I.a)(S,"filter-node",le&&le(Object(o.b)(this.props))),S)),style:N,onDragEnter:oe?this.onDragEnter:void 0,onDragOver:oe?this.onDragOver:void 0,onDragLeave:oe?this.onDragLeave:void 0,onDrop:oe?this.onDrop:void 0,onDragEnd:oe?this.onDragEnd:void 0,onMouseMove:te},se),e.createElement(t,{prefixCls:ce,level:de,isStart:F,isEnd:U}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),C}(e.Component),u=function(O){return e.createElement(l.a.Consumer,null,function(C){return e.createElement(h,Object.assign({},O,{context:C}))})};u.displayName="TreeNode",u.defaultProps={title:f},u.isTreeNode=1;var E=W.a=u},XIdC:function(j,W,y){"use strict";var I=y("rePB"),v=y("ODXe"),T=y("Ff2n"),b=y("q1tI"),g=y.n(b),s=y("TSYQ"),_=y.n(s),p=y("6cGi"),e=y("4IlW"),a=b.forwardRef(function(n,l){var r,i=n.prefixCls,t=i===void 0?"rc-switch":i,o=n.className,c=n.checked,d=n.defaultChecked,f=n.disabled,h=n.loadingIcon,u=n.checkedChildren,E=n.unCheckedChildren,x=n.onClick,O=n.onChange,C=n.onKeyDown,w=Object(T.a)(n,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),S=Object(p.a)(!1,{value:c,defaultValue:d}),D=Object(v.a)(S,2),R=D[0],P=D[1];function N(k,F){var U=R;return f||(U=k,P(U),O==null||O(U,F)),U}function M(k){k.which===e.a.LEFT?N(!1,k):k.which===e.a.RIGHT&&N(!0,k),C==null||C(k)}function z(k){var F=N(!R,k);x==null||x(F,k)}var X=_()(t,o,(r={},Object(I.a)(r,"".concat(t,"-checked"),R),Object(I.a)(r,"".concat(t,"-disabled"),f),r));return b.createElement("button",Object.assign({},w,{type:"button",role:"switch","aria-checked":R,disabled:f,className:X,ref:l,onKeyDown:M,onClick:z}),h,b.createElement("span",{className:"".concat(t,"-inner")},R?u:E))});a.displayName="Switch",W.a=a},XZCF:function(j,W,y){},Xsq0:function(j,W,y){j.exports=y.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(j,W,y){"use strict";y.r(W),y.d(W,"ResizableTextArea",function(){return re});var I=y("wx14"),v=y("1OyB"),T=y("vuIU"),b=y("Ji7U"),g=y("LK+K"),s=y("q1tI"),_=y("VTBJ"),p=y("rePB"),e=y("Zm9Q"),a=y("Kwbf"),n=y("c+Xe"),l=y("m+aA"),r=y("bdgK"),i=new Map;function t(De){De.forEach(function(te){var Ce,we=te.target;(Ce=i.get(we))===null||Ce===void 0||Ce.forEach(function(ce){return ce(we)})})}var o=new r.default(t),c=null,d=null;function f(De,te){i.has(De)||(i.set(De,new Set),o.observe(De)),i.get(De).add(te)}function h(De,te){i.has(De)&&(i.get(De).delete(te),i.get(De).size||(o.unobserve(De),i.delete(De)))}var u=function(De){Object(b.a)(Ce,De);var te=Object(g.a)(Ce);function Ce(){return Object(v.a)(this,Ce),te.apply(this,arguments)}return Object(T.a)(Ce,[{key:"render",value:function(){return this.props.children}}]),Ce}(s.Component),E=s.createContext(null);function x(De){var te=De.children,Ce=De.onBatchResize,we=s.useRef(0),ce=s.useRef([]),le=s.useContext(E),oe=s.useCallback(function(xe,q,se){we.current+=1;var Ne=we.current;ce.current.push({size:xe,element:q,data:se}),Promise.resolve().then(function(){Ne===we.current&&(Ce==null||Ce(ce.current),ce.current=[])}),le==null||le(xe,q,se)},[Ce,le]);return s.createElement(E.Provider,{value:oe},te)}function O(De){var te=De.children,Ce=De.disabled,we=s.useRef(null),ce=s.useRef(null),le=s.useContext(E),oe=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),xe=s.isValidElement(te)&&Object(n.c)(te),q=xe?te.ref:null,se=s.useMemo(function(){return Object(n.a)(q,we)},[q,we]),Ne=s.useRef(De);Ne.current=De;var de=s.useCallback(function($){var Q=Ne.current,Y=Q.onResize,ue=Q.data,ae=$.getBoundingClientRect(),be=ae.width,Ie=ae.height,pe=$.offsetWidth,Le=$.offsetHeight,ve=Math.floor(be),Xe=Math.floor(Ie);if(oe.current.width!==ve||oe.current.height!==Xe||oe.current.offsetWidth!==pe||oe.current.offsetHeight!==Le){var $e={width:ve,height:Xe,offsetWidth:pe,offsetHeight:Le};oe.current=$e;var Ge=pe===Math.round(be)?be:pe,Me=Le===Math.round(Ie)?Ie:Le,gt=Object(_.a)(Object(_.a)({},$e),{},{offsetWidth:Ge,offsetHeight:Me});le==null||le(gt,$,ue),Y&&Promise.resolve().then(function(){Y(gt,$)})}},[]);return s.useEffect(function(){var $=Object(l.a)(we.current)||Object(l.a)(ce.current);return $&&!Ce&&f($,de),function(){return h($,de)}},[we.current,Ce]),s.createElement(u,{ref:ce},xe?s.cloneElement(te,{ref:se}):te)}var C="rc-observer-key";function w(De){var te=De.children,Ce=Object(e.a)(te);return Ce.map(function(we,ce){var le=(we==null?void 0:we.key)||"".concat(C,"-").concat(ce);return s.createElement(O,Object(I.a)({},De,{key:le}),we)})}w.Collection=x;var S=w,D=y("bT9E"),R=y("TSYQ"),P=y.n(R),N=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,M=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],z={},X;function k(De){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=De.getAttribute("id")||De.getAttribute("data-reactid")||De.getAttribute("name");if(te&&z[Ce])return z[Ce];var we=window.getComputedStyle(De),ce=we.getPropertyValue("box-sizing")||we.getPropertyValue("-moz-box-sizing")||we.getPropertyValue("-webkit-box-sizing"),le=parseFloat(we.getPropertyValue("padding-bottom"))+parseFloat(we.getPropertyValue("padding-top")),oe=parseFloat(we.getPropertyValue("border-bottom-width"))+parseFloat(we.getPropertyValue("border-top-width")),xe=M.map(function(se){return"".concat(se,":").concat(we.getPropertyValue(se))}).join(";"),q={sizingStyle:xe,paddingSize:le,borderSize:oe,boxSizing:ce};return te&&Ce&&(z[Ce]=q),q}function F(De){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,we=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;X||(X=document.createElement("textarea"),X.setAttribute("tab-index","-1"),X.setAttribute("aria-hidden","true"),document.body.appendChild(X)),De.getAttribute("wrap")?X.setAttribute("wrap",De.getAttribute("wrap")):X.removeAttribute("wrap");var ce=k(De,te),le=ce.paddingSize,oe=ce.borderSize,xe=ce.boxSizing,q=ce.sizingStyle;X.setAttribute("style","".concat(q,";").concat(N)),X.value=De.value||De.placeholder||"";var se=Number.MIN_SAFE_INTEGER,Ne=Number.MAX_SAFE_INTEGER,de=X.scrollHeight,$;if(xe==="border-box"?de+=oe:xe==="content-box"&&(de-=le),Ce!==null||we!==null){X.value=" ";var Q=X.scrollHeight-le;Ce!==null&&(se=Q*Ce,xe==="border-box"&&(se=se+le+oe),de=Math.max(se,de)),we!==null&&(Ne=Q*we,xe==="border-box"&&(Ne=Ne+le+oe),$=de>Ne?"":"hidden",de=Math.min(Ne,de))}return{height:de,minHeight:se,maxHeight:Ne,overflowY:$,resize:"none"}}var U=y("Gytx"),L=y.n(U),B;(function(De){De[De.NONE=0]="NONE",De[De.RESIZING=1]="RESIZING",De[De.RESIZED=2]="RESIZED"})(B||(B={}));var Z=function(De){Object(b.a)(Ce,De);var te=Object(g.a)(Ce);function Ce(we){var ce;return Object(v.a)(this,Ce),ce=te.call(this,we),ce.nextFrameActionId=void 0,ce.resizeFrameId=void 0,ce.textArea=void 0,ce.saveTextArea=function(le){ce.textArea=le},ce.handleResize=function(le){var oe=ce.state.resizeStatus,xe=ce.props,q=xe.autoSize,se=xe.onResize;if(oe!==B.NONE)return;typeof se=="function"&&se(le),q&&ce.resizeOnNextFrame()},ce.resizeOnNextFrame=function(){cancelAnimationFrame(ce.nextFrameActionId),ce.nextFrameActionId=requestAnimationFrame(ce.resizeTextarea)},ce.resizeTextarea=function(){var le=ce.props.autoSize;if(!le||!ce.textArea)return;var oe=le.minRows,xe=le.maxRows,q=F(ce.textArea,!1,oe,xe);ce.setState({textareaStyles:q,resizeStatus:B.RESIZING},function(){cancelAnimationFrame(ce.resizeFrameId),ce.resizeFrameId=requestAnimationFrame(function(){ce.setState({resizeStatus:B.RESIZED},function(){ce.resizeFrameId=requestAnimationFrame(function(){ce.setState({resizeStatus:B.NONE}),ce.fixFirefoxAutoScroll()})})})})},ce.renderTextArea=function(){var le=ce.props,oe=le.prefixCls,xe=oe===void 0?"rc-textarea":oe,q=le.autoSize,se=le.onResize,Ne=le.className,de=le.disabled,$=ce.state,Q=$.textareaStyles,Y=$.resizeStatus,ue=Object(D.a)(ce.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ae=P()(xe,Ne,Object(p.a)({},"".concat(xe,"-disabled"),de));"value"in ue&&(ue.value=ue.value||"");var be=Object(_.a)(Object(_.a)(Object(_.a)({},ce.props.style),Q),Y===B.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return s.createElement(S,{onResize:ce.handleResize,disabled:!(q||se)},s.createElement("textarea",Object(I.a)({},ue,{className:ae,style:be,ref:ce.saveTextArea})))},ce.state={textareaStyles:{},resizeStatus:B.NONE},ce}return Object(T.a)(Ce,[{key:"componentDidUpdate",value:function(ce){(ce.value!==this.props.value||!L()(ce.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ce=this.textArea.selectionStart,le=this.textArea.selectionEnd;this.textArea.setSelectionRange(ce,le)}}catch(oe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ce}(s.Component),re=Z,me=function(De){Object(b.a)(Ce,De);var te=Object(g.a)(Ce);function Ce(we){var ce;Object(v.a)(this,Ce),ce=te.call(this,we),ce.resizableTextArea=void 0,ce.focus=function(){ce.resizableTextArea.textArea.focus()},ce.saveTextArea=function(oe){ce.resizableTextArea=oe},ce.handleChange=function(oe){var xe=ce.props.onChange;ce.setValue(oe.target.value,function(){ce.resizableTextArea.resizeTextarea()}),xe&&xe(oe)},ce.handleKeyDown=function(oe){var xe=ce.props,q=xe.onPressEnter,se=xe.onKeyDown;oe.keyCode===13&&q&&q(oe),se&&se(oe)};var le=typeof we.value=="undefined"||we.value===null?we.defaultValue:we.value;return ce.state={value:le},ce}return Object(T.a)(Ce,[{key:"setValue",value:function(ce,le){"value"in this.props||this.setState({value:ce},le)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return s.createElement(re,Object(I.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ce){return"value"in ce?{value:ce.value}:null}}]),Ce}(s.Component),Ee=W.default=me},YJ9k:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;function I(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function v(g,s){for(var _=0;_<s.length;_++){var p=s[_];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(g,p.key,p)}}function T(g,s,_){return s&&v(g.prototype,s),_&&v(g,_),g}var b=function(){function g(){I(this,g),this._listeners=new Map}return T(g,[{key:"addEventListener",value:function(_,p){this._listeners.has(_)||this._listeners.set(_,new Set),this._listeners.get(_).add(p)}},{key:"removeEventListener",value:function(_,p){this._listeners.has(_)&&this._listeners.get(_).delete(p)}},{key:"dispatchEvent",value:function(_){var p=this;return this._listeners.has(_.type)?(this._listeners.get(_.type).forEach(function(e){return e.call(p,_)}),!_.defaultPrevented):!0}}]),g}();W.default=b},Ypxr:function(j,W,y){},Yr8L:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAA8CAMAAADygAyiAAAAe1BMVEUAAAC/j1C3l1i1lVq2llmzl1i2llm0llm1lVi0llm1lVi0llm1lVm1lVi0lli1lVi0lli1llm1lVm0lli1lli1lVm0lVm1lli1llnJs4fSvpnYx6fdzrLh1Lzl2sTo38zs49Pu59nx6+D07+X28uv59vD7+fX9/Pr///9SRDJsAAAAGHRSTlMAECAwP0BQX2BwgI+Qn6Cwv8DP0N/g7/D8rFP8AAAB+klEQVRYw+3X2VbCMBAG4EliEQqkQGgTEBFRlvd/QksLMV0yyVQvvPC/4XCg38kyzQLQSTJfGTSLqYBwxMJEZM5CTlKYqKwDjRKRTinhbVqb6EjMGRtCOAJlFGiGQBTHLDuPP08XVUaMBBUwqp+bPtcTZQc4TXr+vv84Xcucjq+dnyB1i4F/T3gPtKmUOp8bL2QKDtJg0OHq5OiHymIoUOjkQtetH1q7E9UD1cDBfFSfb37IREG7excPfwBqDvrPoW096C8YpILQ7jFpe2T6l+57GoAOBoEyd+UItQgryDEwHQ21++ZAulwv0/Bgb/aXvia5j5ZvP7PDnQrv9B/r19YHqWoB59qygYJsQspC+r7qinwQtHxAud2amLxD+RBIuhuTkPoGZRRodoO07OyUIuEwaUMXBEqAJ779tjNtnxXwbj8bk4ZFt6D3xgq5c3/KUChtl+LFcZo9G6MQb/ft5ezZRfLAsUb2bGznal/bGUKDeprkSR48aaVxUBI++y1/ehKxndNhRzGIOY7q33HCko50QpISEB2GjLhkQImvCvQIiOGyj0kZ0MNnrQVTTYYwtTWxlhoPVpp1ngL8Q53yfrrFXibn1VdOZhLPhWsliM3x30BoVYDct2iDVVBuVzDs4kaDcj+UkSDphyYkiHnXSEWsIyZ7e6e8c/YFAVX9WNqVSc8AAAAASUVORK5CYII="},ZBwS:function(j,W){var y=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},I=-1,v=1,T=0;y.Diff=function(b,g){return[b,g]},y.prototype.diff_main=function(b,g,s,_){typeof _=="undefined"&&(this.Diff_Timeout<=0?_=Number.MAX_VALUE:_=new Date().getTime()+this.Diff_Timeout*1e3);var p=_;if(b==null||g==null)throw new Error("Null input. (diff_main)");if(b==g)return b?[new y.Diff(T,b)]:[];typeof s=="undefined"&&(s=!0);var e=s,a=this.diff_commonPrefix(b,g),n=b.substring(0,a);b=b.substring(a),g=g.substring(a),a=this.diff_commonSuffix(b,g);var l=b.substring(b.length-a);b=b.substring(0,b.length-a),g=g.substring(0,g.length-a);var r=this.diff_compute_(b,g,e,p);return n&&r.unshift(new y.Diff(T,n)),l&&r.push(new y.Diff(T,l)),this.diff_cleanupMerge(r),r},y.prototype.diff_compute_=function(b,g,s,_){var p;if(!b)return[new y.Diff(v,g)];if(!g)return[new y.Diff(I,b)];var e=b.length>g.length?b:g,a=b.length>g.length?g:b,n=e.indexOf(a);if(n!=-1)return p=[new y.Diff(v,e.substring(0,n)),new y.Diff(T,a),new y.Diff(v,e.substring(n+a.length))],b.length>g.length&&(p[0][0]=p[2][0]=I),p;if(a.length==1)return[new y.Diff(I,b),new y.Diff(v,g)];var l=this.diff_halfMatch_(b,g);if(l){var r=l[0],i=l[1],t=l[2],o=l[3],c=l[4],d=this.diff_main(r,t,s,_),f=this.diff_main(i,o,s,_);return d.concat([new y.Diff(T,c)],f)}return s&&b.length>100&&g.length>100?this.diff_lineMode_(b,g,_):this.diff_bisect_(b,g,_)},y.prototype.diff_lineMode_=function(b,g,s){var _=this.diff_linesToChars_(b,g);b=_.chars1,g=_.chars2;var p=_.lineArray,e=this.diff_main(b,g,!1,s);this.diff_charsToLines_(e,p),this.diff_cleanupSemantic(e),e.push(new y.Diff(T,""));for(var a=0,n=0,l=0,r="",i="";a<e.length;){switch(e[a][0]){case v:l++,i+=e[a][1];break;case I:n++,r+=e[a][1];break;case T:if(n>=1&&l>=1){e.splice(a-n-l,n+l),a=a-n-l;for(var t=this.diff_main(r,i,!1,s),o=t.length-1;o>=0;o--)e.splice(a,0,t[o]);a=a+t.length}l=0,n=0,r="",i="";break}a++}return e.pop(),e},y.prototype.diff_bisect_=function(b,g,s){for(var _=b.length,p=g.length,e=Math.ceil((_+p)/2),a=e,n=2*e,l=new Array(n),r=new Array(n),i=0;i<n;i++)l[i]=-1,r[i]=-1;l[a+1]=0,r[a+1]=0;for(var t=_-p,o=t%2!=0,c=0,d=0,f=0,h=0,u=0;u<e&&!(new Date().getTime()>s);u++){for(var E=-u+c;E<=u-d;E+=2){var x=a+E,O;E==-u||E!=u&&l[x-1]<l[x+1]?O=l[x+1]:O=l[x-1]+1;for(var C=O-E;O<_&&C<p&&b.charAt(O)==g.charAt(C);)O++,C++;if(l[x]=O,O>_)d+=2;else if(C>p)c+=2;else if(o){var w=a+t-E;if(w>=0&&w<n&&r[w]!=-1){var S=_-r[w];if(O>=S)return this.diff_bisectSplit_(b,g,O,C,s)}}}for(var D=-u+f;D<=u-h;D+=2){var w=a+D,S;D==-u||D!=u&&r[w-1]<r[w+1]?S=r[w+1]:S=r[w-1]+1;for(var R=S-D;S<_&&R<p&&b.charAt(_-S-1)==g.charAt(p-R-1);)S++,R++;if(r[w]=S,S>_)h+=2;else if(R>p)f+=2;else if(!o){var x=a+t-D;if(x>=0&&x<n&&l[x]!=-1){var O=l[x],C=a+O-x;if(S=_-S,O>=S)return this.diff_bisectSplit_(b,g,O,C,s)}}}}return[new y.Diff(I,b),new y.Diff(v,g)]},y.prototype.diff_bisectSplit_=function(b,g,s,_,p){var e=b.substring(0,s),a=g.substring(0,_),n=b.substring(s),l=g.substring(_),r=this.diff_main(e,a,!1,p),i=this.diff_main(n,l,!1,p);return r.concat(i)},y.prototype.diff_linesToChars_=function(b,g){var s=[],_={};s[0]="";function p(l){for(var r="",i=0,t=-1,o=s.length;t<l.length-1;){t=l.indexOf(`
`,i),t==-1&&(t=l.length-1);var c=l.substring(i,t+1);(_.hasOwnProperty?_.hasOwnProperty(c):_[c]!==void 0)?r+=String.fromCharCode(_[c]):(o==e&&(c=l.substring(i),t=l.length),r+=String.fromCharCode(o),_[c]=o,s[o++]=c),i=t+1}return r}var e=4e4,a=p(b);e=65535;var n=p(g);return{chars1:a,chars2:n,lineArray:s}},y.prototype.diff_charsToLines_=function(b,g){for(var s=0;s<b.length;s++){for(var _=b[s][1],p=[],e=0;e<_.length;e++)p[e]=g[_.charCodeAt(e)];b[s][1]=p.join("")}},y.prototype.diff_commonPrefix=function(b,g){if(!b||!g||b.charAt(0)!=g.charAt(0))return 0;for(var s=0,_=Math.min(b.length,g.length),p=_,e=0;s<p;)b.substring(e,p)==g.substring(e,p)?(s=p,e=s):_=p,p=Math.floor((_-s)/2+s);return p},y.prototype.diff_commonSuffix=function(b,g){if(!b||!g||b.charAt(b.length-1)!=g.charAt(g.length-1))return 0;for(var s=0,_=Math.min(b.length,g.length),p=_,e=0;s<p;)b.substring(b.length-p,b.length-e)==g.substring(g.length-p,g.length-e)?(s=p,e=s):_=p,p=Math.floor((_-s)/2+s);return p},y.prototype.diff_commonOverlap_=function(b,g){var s=b.length,_=g.length;if(s==0||_==0)return 0;s>_?b=b.substring(s-_):s<_&&(g=g.substring(0,s));var p=Math.min(s,_);if(b==g)return p;for(var e=0,a=1;;){var n=b.substring(p-a),l=g.indexOf(n);if(l==-1)return e;a+=l,(l==0||b.substring(p-a)==g.substring(0,a))&&(e=a,a++)}},y.prototype.diff_halfMatch_=function(b,g){if(this.Diff_Timeout<=0)return null;var s=b.length>g.length?b:g,_=b.length>g.length?g:b;if(s.length<4||_.length*2<s.length)return null;var p=this;function e(d,f,h){for(var u=d.substring(h,h+Math.floor(d.length/4)),E=-1,x="",O,C,w,S;(E=f.indexOf(u,E+1))!=-1;){var D=p.diff_commonPrefix(d.substring(h),f.substring(E)),R=p.diff_commonSuffix(d.substring(0,h),f.substring(0,E));x.length<R+D&&(x=f.substring(E-R,E)+f.substring(E,E+D),O=d.substring(0,h-R),C=d.substring(h+D),w=f.substring(0,E-R),S=f.substring(E+D))}return x.length*2>=d.length?[O,C,w,S,x]:null}var a=e(s,_,Math.ceil(s.length/4)),n=e(s,_,Math.ceil(s.length/2)),l;if(!a&&!n)return null;n?a?l=a[4].length>n[4].length?a:n:l=n:l=a;var r,i,t,o;b.length>g.length?(r=l[0],i=l[1],t=l[2],o=l[3]):(t=l[0],o=l[1],r=l[2],i=l[3]);var c=l[4];return[r,i,t,o,c]},y.prototype.diff_cleanupSemantic=function(b){for(var g=!1,s=[],_=0,p=null,e=0,a=0,n=0,l=0,r=0;e<b.length;)b[e][0]==T?(s[_++]=e,a=l,n=r,l=0,r=0,p=b[e][1]):(b[e][0]==v?l+=b[e][1].length:r+=b[e][1].length,p&&p.length<=Math.max(a,n)&&p.length<=Math.max(l,r)&&(b.splice(s[_-1],0,new y.Diff(I,p)),b[s[_-1]+1][0]=v,_--,_--,e=_>0?s[_-1]:-1,a=0,n=0,l=0,r=0,p=null,g=!0)),e++;for(g&&this.diff_cleanupMerge(b),this.diff_cleanupSemanticLossless(b),e=1;e<b.length;){if(b[e-1][0]==I&&b[e][0]==v){var i=b[e-1][1],t=b[e][1],o=this.diff_commonOverlap_(i,t),c=this.diff_commonOverlap_(t,i);o>=c?(o>=i.length/2||o>=t.length/2)&&(b.splice(e,0,new y.Diff(T,t.substring(0,o))),b[e-1][1]=i.substring(0,i.length-o),b[e+1][1]=t.substring(o),e++):(c>=i.length/2||c>=t.length/2)&&(b.splice(e,0,new y.Diff(T,i.substring(0,c))),b[e-1][0]=v,b[e-1][1]=t.substring(0,t.length-c),b[e+1][0]=I,b[e+1][1]=i.substring(c),e++),e++}e++}},y.prototype.diff_cleanupSemanticLossless=function(b){function g(c,d){if(!c||!d)return 6;var f=c.charAt(c.length-1),h=d.charAt(0),u=f.match(y.nonAlphaNumericRegex_),E=h.match(y.nonAlphaNumericRegex_),x=u&&f.match(y.whitespaceRegex_),O=E&&h.match(y.whitespaceRegex_),C=x&&f.match(y.linebreakRegex_),w=O&&h.match(y.linebreakRegex_),S=C&&c.match(y.blanklineEndRegex_),D=w&&d.match(y.blanklineStartRegex_);return S||D?5:C||w?4:u&&!x&&O?3:x||O?2:u||E?1:0}for(var s=1;s<b.length-1;){if(b[s-1][0]==T&&b[s+1][0]==T){var _=b[s-1][1],p=b[s][1],e=b[s+1][1],a=this.diff_commonSuffix(_,p);if(a){var n=p.substring(p.length-a);_=_.substring(0,_.length-a),p=n+p.substring(0,p.length-a),e=n+e}for(var l=_,r=p,i=e,t=g(_,p)+g(p,e);p.charAt(0)===e.charAt(0);){_+=p.charAt(0),p=p.substring(1)+e.charAt(0),e=e.substring(1);var o=g(_,p)+g(p,e);o>=t&&(t=o,l=_,r=p,i=e)}b[s-1][1]!=l&&(l?b[s-1][1]=l:(b.splice(s-1,1),s--),b[s][1]=r,i?b[s+1][1]=i:(b.splice(s+1,1),s--))}s++}},y.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,y.whitespaceRegex_=/\s/,y.linebreakRegex_=/[\r\n]/,y.blanklineEndRegex_=/\n\r?\n$/,y.blanklineStartRegex_=/^\r?\n\r?\n/,y.prototype.diff_cleanupEfficiency=function(b){for(var g=!1,s=[],_=0,p=null,e=0,a=!1,n=!1,l=!1,r=!1;e<b.length;)b[e][0]==T?(b[e][1].length<this.Diff_EditCost&&(l||r)?(s[_++]=e,a=l,n=r,p=b[e][1]):(_=0,p=null),l=r=!1):(b[e][0]==I?r=!0:l=!0,p&&(a&&n&&l&&r||p.length<this.Diff_EditCost/2&&a+n+l+r==3)&&(b.splice(s[_-1],0,new y.Diff(I,p)),b[s[_-1]+1][0]=v,_--,p=null,a&&n?(l=r=!0,_=0):(_--,e=_>0?s[_-1]:-1,l=r=!1),g=!0)),e++;g&&this.diff_cleanupMerge(b)},y.prototype.diff_cleanupMerge=function(b){b.push(new y.Diff(T,""));for(var g=0,s=0,_=0,p="",e="",a;g<b.length;)switch(b[g][0]){case v:_++,e+=b[g][1],g++;break;case I:s++,p+=b[g][1],g++;break;case T:s+_>1?(s!==0&&_!==0&&(a=this.diff_commonPrefix(e,p),a!==0&&(g-s-_>0&&b[g-s-_-1][0]==T?b[g-s-_-1][1]+=e.substring(0,a):(b.splice(0,0,new y.Diff(T,e.substring(0,a))),g++),e=e.substring(a),p=p.substring(a)),a=this.diff_commonSuffix(e,p),a!==0&&(b[g][1]=e.substring(e.length-a)+b[g][1],e=e.substring(0,e.length-a),p=p.substring(0,p.length-a))),g-=s+_,b.splice(g,s+_),p.length&&(b.splice(g,0,new y.Diff(I,p)),g++),e.length&&(b.splice(g,0,new y.Diff(v,e)),g++),g++):g!==0&&b[g-1][0]==T?(b[g-1][1]+=b[g][1],b.splice(g,1)):g++,_=0,s=0,p="",e="";break}b[b.length-1][1]===""&&b.pop();var n=!1;for(g=1;g<b.length-1;)b[g-1][0]==T&&b[g+1][0]==T&&(b[g][1].substring(b[g][1].length-b[g-1][1].length)==b[g-1][1]?(b[g][1]=b[g-1][1]+b[g][1].substring(0,b[g][1].length-b[g-1][1].length),b[g+1][1]=b[g-1][1]+b[g+1][1],b.splice(g-1,1),n=!0):b[g][1].substring(0,b[g+1][1].length)==b[g+1][1]&&(b[g-1][1]+=b[g+1][1],b[g][1]=b[g][1].substring(b[g+1][1].length)+b[g+1][1],b.splice(g+1,1),n=!0)),g++;n&&this.diff_cleanupMerge(b)},y.prototype.diff_xIndex=function(b,g){var s=0,_=0,p=0,e=0,a;for(a=0;a<b.length&&!(b[a][0]!==v&&(s+=b[a][1].length),b[a][0]!==I&&(_+=b[a][1].length),s>g);a++)p=s,e=_;return b.length!=a&&b[a][0]===I?e:e+(g-p)},y.prototype.diff_prettyHtml=function(b){for(var g=[],s=/&/g,_=/</g,p=/>/g,e=/\n/g,a=0;a<b.length;a++){var n=b[a][0],l=b[a][1],r=l.replace(s,"&amp;").replace(_,"&lt;").replace(p,"&gt;").replace(e,"&para;<br>");switch(n){case v:g[a]='<ins style="background:#e6ffe6;">'+r+"</ins>";break;case I:g[a]='<del style="background:#ffe6e6;">'+r+"</del>";break;case T:g[a]="<span>"+r+"</span>";break}}return g.join("")},y.prototype.diff_text1=function(b){for(var g=[],s=0;s<b.length;s++)b[s][0]!==v&&(g[s]=b[s][1]);return g.join("")},y.prototype.diff_text2=function(b){for(var g=[],s=0;s<b.length;s++)b[s][0]!==I&&(g[s]=b[s][1]);return g.join("")},y.prototype.diff_levenshtein=function(b){for(var g=0,s=0,_=0,p=0;p<b.length;p++){var e=b[p][0],a=b[p][1];switch(e){case v:s+=a.length;break;case I:_+=a.length;break;case T:g+=Math.max(s,_),s=0,_=0;break}}return g+=Math.max(s,_),g},y.prototype.diff_toDelta=function(b){for(var g=[],s=0;s<b.length;s++)switch(b[s][0]){case v:g[s]="+"+encodeURI(b[s][1]);break;case I:g[s]="-"+b[s][1].length;break;case T:g[s]="="+b[s][1].length;break}return g.join(" ").replace(/%20/g," ")},y.prototype.diff_fromDelta=function(b,g){for(var s=[],_=0,p=0,e=g.split(/\t/g),a=0;a<e.length;a++){var n=e[a].substring(1);switch(e[a].charAt(0)){case"+":try{s[_++]=new y.Diff(v,decodeURI(n))}catch(i){throw new Error("Illegal escape in diff_fromDelta: "+n)}break;case"-":case"=":var l=parseInt(n,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+n);var r=b.substring(p,p+=l);e[a].charAt(0)=="="?s[_++]=new y.Diff(T,r):s[_++]=new y.Diff(I,r);break;default:if(e[a])throw new Error("Invalid diff operation in diff_fromDelta: "+e[a])}}if(p!=b.length)throw new Error("Delta length ("+p+") does not equal source text length ("+b.length+").");return s},y.prototype.match_main=function(b,g,s){if(b==null||g==null||s==null)throw new Error("Null input. (match_main)");return s=Math.max(0,Math.min(s,b.length)),b==g?0:b.length?b.substring(s,s+g.length)==g?s:this.match_bitap_(b,g,s):-1},y.prototype.match_bitap_=function(b,g,s){if(g.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var _=this.match_alphabet_(g),p=this;function e(O,C){var w=O/g.length,S=Math.abs(s-C);return p.Match_Distance?w+S/p.Match_Distance:S?1:w}var a=this.Match_Threshold,n=b.indexOf(g,s);n!=-1&&(a=Math.min(e(0,n),a),n=b.lastIndexOf(g,s+g.length),n!=-1&&(a=Math.min(e(0,n),a)));var l=1<<g.length-1;n=-1;for(var r,i,t=g.length+b.length,o,c=0;c<g.length;c++){for(r=0,i=t;r<i;)e(c,s+i)<=a?r=i:t=i,i=Math.floor((t-r)/2+r);t=i;var d=Math.max(1,s-i+1),f=Math.min(s+i,b.length)+g.length,h=Array(f+2);h[f+1]=(1<<c)-1;for(var u=f;u>=d;u--){var E=_[b.charAt(u-1)];if(c===0?h[u]=(h[u+1]<<1|1)&E:h[u]=(h[u+1]<<1|1)&E|((o[u+1]|o[u])<<1|1)|o[u+1],h[u]&l){var x=e(c,u-1);if(x<=a)if(a=x,n=u-1,n>s)d=Math.max(1,2*s-n);else break}}if(e(c+1,s)>a)break;o=h}return n},y.prototype.match_alphabet_=function(b){for(var g={},s=0;s<b.length;s++)g[b.charAt(s)]=0;for(var s=0;s<b.length;s++)g[b.charAt(s)]|=1<<b.length-s-1;return g},y.prototype.patch_addContext_=function(b,g){if(g.length==0)return;if(b.start2===null)throw Error("patch not initialized");for(var s=g.substring(b.start2,b.start2+b.length1),_=0;g.indexOf(s)!=g.lastIndexOf(s)&&s.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)_+=this.Patch_Margin,s=g.substring(b.start2-_,b.start2+b.length1+_);_+=this.Patch_Margin;var p=g.substring(b.start2-_,b.start2);p&&b.diffs.unshift(new y.Diff(T,p));var e=g.substring(b.start2+b.length1,b.start2+b.length1+_);e&&b.diffs.push(new y.Diff(T,e)),b.start1-=p.length,b.start2-=p.length,b.length1+=p.length+e.length,b.length2+=p.length+e.length},y.prototype.patch_make=function(b,g,s){var _,p;if(typeof b=="string"&&typeof g=="string"&&typeof s=="undefined")_=b,p=this.diff_main(_,g,!0),p.length>2&&(this.diff_cleanupSemantic(p),this.diff_cleanupEfficiency(p));else if(b&&typeof b=="object"&&typeof g=="undefined"&&typeof s=="undefined")p=b,_=this.diff_text1(p);else if(typeof b=="string"&&g&&typeof g=="object"&&typeof s=="undefined")_=b,p=g;else if(typeof b=="string"&&typeof g=="string"&&s&&typeof s=="object")_=b,p=s;else throw new Error("Unknown call format to patch_make.");if(p.length===0)return[];for(var e=[],a=new y.patch_obj,n=0,l=0,r=0,i=_,t=_,o=0;o<p.length;o++){var c=p[o][0],d=p[o][1];!n&&c!==T&&(a.start1=l,a.start2=r);switch(c){case v:a.diffs[n++]=p[o],a.length2+=d.length,t=t.substring(0,r)+d+t.substring(r);break;case I:a.length1+=d.length,a.diffs[n++]=p[o],t=t.substring(0,r)+t.substring(r+d.length);break;case T:d.length<=2*this.Patch_Margin&&n&&p.length!=o+1?(a.diffs[n++]=p[o],a.length1+=d.length,a.length2+=d.length):d.length>=2*this.Patch_Margin&&(n&&(this.patch_addContext_(a,i),e.push(a),a=new y.patch_obj,n=0,i=t,l=r));break}c!==v&&(l+=d.length),c!==I&&(r+=d.length)}return n&&(this.patch_addContext_(a,i),e.push(a)),e},y.prototype.patch_deepCopy=function(b){for(var g=[],s=0;s<b.length;s++){var _=b[s],p=new y.patch_obj;p.diffs=[];for(var e=0;e<_.diffs.length;e++)p.diffs[e]=new y.Diff(_.diffs[e][0],_.diffs[e][1]);p.start1=_.start1,p.start2=_.start2,p.length1=_.length1,p.length2=_.length2,g[s]=p}return g},y.prototype.patch_apply=function(b,g){if(b.length==0)return[g,[]];b=this.patch_deepCopy(b);var s=this.patch_addPadding(b);g=s+g+s,this.patch_splitMax(b);for(var _=0,p=[],e=0;e<b.length;e++){var a=b[e].start2+_,n=this.diff_text1(b[e].diffs),l,r=-1;if(n.length>this.Match_MaxBits?(l=this.match_main(g,n.substring(0,this.Match_MaxBits),a),l!=-1&&(r=this.match_main(g,n.substring(n.length-this.Match_MaxBits),a+n.length-this.Match_MaxBits),(r==-1||l>=r)&&(l=-1))):l=this.match_main(g,n,a),l==-1)p[e]=!1,_-=b[e].length2-b[e].length1;else{p[e]=!0,_=l-a;var i;if(r==-1?i=g.substring(l,l+n.length):i=g.substring(l,r+this.Match_MaxBits),n==i)g=g.substring(0,l)+this.diff_text2(b[e].diffs)+g.substring(l+n.length);else{var t=this.diff_main(n,i,!1);if(n.length>this.Match_MaxBits&&this.diff_levenshtein(t)/n.length>this.Patch_DeleteThreshold)p[e]=!1;else{this.diff_cleanupSemanticLossless(t);for(var o=0,c,d=0;d<b[e].diffs.length;d++){var f=b[e].diffs[d];f[0]!==T&&(c=this.diff_xIndex(t,o)),f[0]===v?g=g.substring(0,l+c)+f[1]+g.substring(l+c):f[0]===I&&(g=g.substring(0,l+c)+g.substring(l+this.diff_xIndex(t,o+f[1].length))),f[0]!==I&&(o+=f[1].length)}}}}}return g=g.substring(s.length,g.length-s.length),[g,p]},y.prototype.patch_addPadding=function(b){for(var g=this.Patch_Margin,s="",_=1;_<=g;_++)s+=String.fromCharCode(_);for(var _=0;_<b.length;_++)b[_].start1+=g,b[_].start2+=g;var p=b[0],e=p.diffs;if(e.length==0||e[0][0]!=T)e.unshift(new y.Diff(T,s)),p.start1-=g,p.start2-=g,p.length1+=g,p.length2+=g;else if(g>e[0][1].length){var a=g-e[0][1].length;e[0][1]=s.substring(e[0][1].length)+e[0][1],p.start1-=a,p.start2-=a,p.length1+=a,p.length2+=a}if(p=b[b.length-1],e=p.diffs,e.length==0||e[e.length-1][0]!=T)e.push(new y.Diff(T,s)),p.length1+=g,p.length2+=g;else if(g>e[e.length-1][1].length){var a=g-e[e.length-1][1].length;e[e.length-1][1]+=s.substring(0,a),p.length1+=a,p.length2+=a}return s},y.prototype.patch_splitMax=function(b){for(var g=this.Match_MaxBits,s=0;s<b.length;s++){if(b[s].length1<=g)continue;var _=b[s];b.splice(s--,1);for(var p=_.start1,e=_.start2,a="";_.diffs.length!==0;){var n=new y.patch_obj,l=!0;for(n.start1=p-a.length,n.start2=e-a.length,a!==""&&(n.length1=n.length2=a.length,n.diffs.push(new y.Diff(T,a)));_.diffs.length!==0&&n.length1<g-this.Patch_Margin;){var r=_.diffs[0][0],i=_.diffs[0][1];r===v?(n.length2+=i.length,e+=i.length,n.diffs.push(_.diffs.shift()),l=!1):r===I&&n.diffs.length==1&&n.diffs[0][0]==T&&i.length>2*g?(n.length1+=i.length,p+=i.length,l=!1,n.diffs.push(new y.Diff(r,i)),_.diffs.shift()):(i=i.substring(0,g-n.length1-this.Patch_Margin),n.length1+=i.length,p+=i.length,r===T?(n.length2+=i.length,e+=i.length):l=!1,n.diffs.push(new y.Diff(r,i)),i==_.diffs[0][1]?_.diffs.shift():_.diffs[0][1]=_.diffs[0][1].substring(i.length))}a=this.diff_text2(n.diffs),a=a.substring(a.length-this.Patch_Margin);var t=this.diff_text1(_.diffs).substring(0,this.Patch_Margin);t!==""&&(n.length1+=t.length,n.length2+=t.length,n.diffs.length!==0&&n.diffs[n.diffs.length-1][0]===T?n.diffs[n.diffs.length-1][1]+=t:n.diffs.push(new y.Diff(T,t))),l||b.splice(++s,0,n)}}},y.prototype.patch_toText=function(b){for(var g=[],s=0;s<b.length;s++)g[s]=b[s];return g.join("")},y.prototype.patch_fromText=function(b){var g=[];if(!b)return g;for(var s=b.split(`
`),_=0,p=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;_<s.length;){var e=s[_].match(p);if(!e)throw new Error("Invalid patch string: "+s[_]);var a=new y.patch_obj;for(g.push(a),a.start1=parseInt(e[1],10),e[2]===""?(a.start1--,a.length1=1):e[2]=="0"?a.length1=0:(a.start1--,a.length1=parseInt(e[2],10)),a.start2=parseInt(e[3],10),e[4]===""?(a.start2--,a.length2=1):e[4]=="0"?a.length2=0:(a.start2--,a.length2=parseInt(e[4],10)),_++;_<s.length;){var n=s[_].charAt(0);try{var l=decodeURI(s[_].substring(1))}catch(r){throw new Error("Illegal escape in patch_fromText: "+l)}if(n=="-")a.diffs.push(new y.Diff(I,l));else if(n=="+")a.diffs.push(new y.Diff(v,l));else if(n==" ")a.diffs.push(new y.Diff(T,l));else{if(n=="@")break;if(!(n===""))throw new Error('Invalid patch mode "'+n+'" in: '+l)}_++}}return g},y.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},y.patch_obj.prototype.toString=function(){var b,g;this.length1===0?b=this.start1+",0":this.length1==1?b=this.start1+1:b=this.start1+1+","+this.length1,this.length2===0?g=this.start2+",0":this.length2==1?g=this.start2+1:g=this.start2+1+","+this.length2;for(var s=["@@ -"+b+" +"+g+` @@
`],_,p=0;p<this.diffs.length;p++){switch(this.diffs[p][0]){case v:_="+";break;case I:_="-";break;case T:_=" ";break}s[p+1]=_+encodeURI(this.diffs[p][1])+`
`}return s.join("").replace(/%20/g," ")},j.exports=y,j.exports.diff_match_patch=y,j.exports.DIFF_DELETE=I,j.exports.DIFF_INSERT=v,j.exports.DIFF_EQUAL=T},ZD9Y:function(j,W,y){"use strict";var I=y("BoS7"),v=y("Sdc0"),T=y("OaEy"),b=y("2fM7"),g=y("q1tI"),s=y.n(g),_=y("lOMy"),p=y.n(_),e=b.a.Option;W.a=function(a){var n=a.onFontSizeChange,l=a.cmFontSize,r=a.cmCodeMode,i=a.onCodeModeChange,t=a.onTabToSpace,o=a.className,c=o===void 0?"":o,d=a.tabToSpace,f=a.children;return s.a.createElement("div",{className:"tpi-code-setting ".concat(c)},s.a.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),s.a.createElement("section",null,s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),s.a.createElement(b.a,{bordered:!1,size:"small",value:r,onChange:i},s.a.createElement(e,{value:"vs"},"\u767D\u8272\u80CC\u666F"),s.a.createElement(e,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),s.a.createElement(b.a,{bordered:!1,size:"small",value:l,onChange:n},s.a.createElement(e,{value:12},"12px"),s.a.createElement(e,{value:14},"14px"),s.a.createElement(e,{value:16},"16px"),s.a.createElement(e,{value:18},"18px"),s.a.createElement(e,{value:20},"20px"),s.a.createElement(e,{value:22},"22px"))),s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"Tab\u8F6C\u6362"),s.a.createElement(v.a,{checked:d,onChange:t}))),s.a.createElement("h3",null,"\u5FEB\u6377\u952E"),s.a.createElement("section",null,s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),s.a.createElement("span",null,"Ctrl + S")),s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),s.a.createElement("span",null,"F1 / Alt + F1")),s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),s.a.createElement("span",null,"Ctrl + ]/[")),s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),s.a.createElement("span",null,"Ctrl + Shift + \\")),s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),s.a.createElement("span",null,"Home")),s.a.createElement("div",{className:"file-item"},s.a.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),s.a.createElement("span",null,"End"))),f)}},ZIAf:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABKCAYAAAAL8lK4AAAAAXNSR0IArs4c6QAAFrlJREFUeF7tW3uMXNV5/86989jZXXsf7K53Z722F68fGBwbLOOYR6jBqXhUbZQW5KQNKbQRtFJRhZqmpCmPtqEqqH/0r6SoQUpQlUBSoapNQtuoDaQhJSRAUx5JSigB29gGL/a+ZmfmnvNV3znnO+e7d2bZjVS1ldJJzMzeuY9zft/r9z1GwU/5S/2U7x/+H4C1awAqRIB77rnn/yxod911Fyq7OoVr3deKm/nR67itDe07DcIRQEiNQSAAjP2HQE+gv+k/xsRj9jwAe8x+zdfxcbqebuL+7+7lj7n7uy/sKYXj4fn+XuH8LrslIDaOVhFKtcaZJVC9ZfxetaQfSPb0PHRIqYwv6QrAy8dbt2mt7jOIVV4gP8wBoQDtwnnxtGb6n7Kbo2uKADhQ6DgCKgKGNhhBdZ+Vv5bukQfAYe3uHYDQDmx6WWH414bhCmyZ6IXnjyeQaQZTQX9Vw1DNPFsrVw9fcr6atbpSBO9HJ7JPG4235DZuN+UX5BdgF+OlaxdEAARNcEBYKXspGr/ICIC4nsGh8610HRBWGRBA++fQWoOGIYImAPzG+X3P1l5Ie3rgpaMEdBLW5NavYLCWwUDVfOvKvT2XKqVIFvH14xPtezOEO3Ibk4gH9fYPFuZgTSOYifhemESUnpdc7pq8ObBUpUnlrmdwvBYQAPt39oNJyvDiUUJFgQNdCc10e9002IZSmlx/aE/1SwGA19/EnzFo/inTxjo7VnkrVZKuXaxQW5a+tGPekF19AZDgF4SmSA0Rz5Sbz5ugNwPWNHH9ufUe2FzvgW+81AZQKShInWlYbfLvXpOHahqGe/HrV+7tOWQBQMTktbfM82jwvOB4wKkeq13YvLdz56jQoxw3y7ZO3+eu9zZs7Zzvy75CACcdoQ4OUTha7yDD8w1ApZLAdQcG4G+fXgINZQClQCUJACb2s/M93hcAQLVkYOOAWZ7qqw5aAI6exuuNMY84FZaOSdqc8OjSc3uHFqJDAC3vM6w6FkyI1Tvn3b0xSydY9D9FU9u3ow/mGwgvHc0gKVUgSRPrHBWUrGuO93KaQEYxPdyGpJTutwAcO23+0RhzOHhu4Xg4LJE0rEByqi8kbz00h0YAPl86LWkWHCqjirvrrcZ1C38F/8Kg0QZ+/tJB+OK/nAFIKpCmJUjSslf/vA+wDtWvcdtoG0qJuk7NzeHIQoYnjMGUw5eMxcEhsgeW4UlJALxJFEESgBF4HdIU3j46vMgzig45Fx4BYHKkAuPnlOCJF5aglFYgLSeQqAooUn0bBfiZPsT69W8fbUM5TW9Ub5zBG1Cbh4MKr0hAVo7tIcazBgiwpAYE5yqJjF8gKafUQMcnPGmSYZIjj3/WRdv74JWTTTh2WkOpVIakXIGUNk8RnvwNKTwTOE/O6DnnjWeQpsnN6uQZvM8Y/KiVvpdeVymFi2N85muCoxRMrsjiWL0df5D8gB7qiFVXIRQ2H673x6/atx6+/PQcGKMgLVcgScgEyAckniO4KODAdQ6RzOCCiQxUom4gAKz9kxSt10bliYffqD8upReoqg+P7O35emfX3a8vOkJ+LtmyJTx+keF69kfWiQqu4O9/eN96+OtvnoVyuQwqTaFSqgAkqfNX1p+4TUstSFIHQAJwnTp1Fl/SBncGW/HeOu+F3cKY/QVnRqoWJBo1g6XJHMIB4ulzzplF6svOj81JAl6k46xdoBJ4965eeOy785AmKZQrVUhodykBQFogtC2wSoBaBWHnBgNpog6oU2dw3gD2MwD2YayiQoocS0OC4wlQtNtoQow2S7voI6QWMNBW4tJ32AULOtxlXWmq4ILpGjzxwjJAoqBSqVrnR8BI+485hoswAz0IW8c0QH91RCEiUaYqAJT432yjUXnrTNZfQfWBtJTc2WgZWFrKIDMm56joWbRZeqhLQ91n/4nWFLINe47/3mWslqPYD3wenUGf+X52L/7eiX+3x+i8xJ37yokW/OAY2XMCaVqGtOylb1l+1FDiIc73KJgYMDA5hHP7t1cGumaD1z/ySDr64mjt937j4OMa8aKlRhsWl9rQQoCsrb2zcptn0wgqXkhk+BwZWu3Ccimtj/+0Ss8DON0O3IDTa5H80B4TlYAi6pumUEpTSFQZqCjg1hXZnw5aDbBtzMBwHzy7b1vloq4A3H03Jr/6kaU9Pb2lZ9oZwuKygWarDe2WV1Orru4B4SEineVszqphgVk6E4oLy11P9+z6HdcJfIJDIZI2qRWocgqU01kNSUtWs1CVvPlweh7rEwTo3k0aesvqM3u3Vn69e0EEUc0utv40M8lHs7aBZobQzgxk2rgU1PiF2iggU1cHCrFAKzmOv5yVCSLkPDSHQ9YmLrgwBee6A2/c8wLvfJ19JQ4MSn9UCpikdo0+Hwsmy9EgTQEOTBuAJPnIni2lv+yuAYjJ7cv4WrOtJ0l12i0NbZKM5ljt8/QgXY4QLFkGxashb9xHEgaN1TLSYi9payI+jIXQR5uMuQkJwZoVOTyVBpNSFP9B2VgvfQBr2nA/wM5xDeUS7N61qfp8VwCWWnggy8y/0k20IalTZcVYANzNI6V1nN+nnL5aFCh1cDxRssFsQoFESL2gESEn4EqT1yQXqRLnL2ywI9Ljs0yrHVHlpe0TqDPjCBMD8OYFm0sbOgoi3n3DYhPvMYh30sV8M/dQR5LyyYrk2N7meKF8rq/GMHMMqWmgqB7EwEG60NdQj/AmZusU3p8wR6HYz+HUAxJZrVvn/mkD/bXkC+dtLH3AByPednxfbOJ3tMF9zlM7dQxUmZiiJr+gICPzyAR788zLLYL8hEtKrev0PoHMNi6KNCyqei4tJk1b4fm8ruh/+FzJ/OT1TmjVEsDBGQMqTX5t52Tpwa4AIOL4UguOa43Kxc6o4rzwxWWAlgHrbLSlzm4j9DeBor2m0DEuSmbWnOh+bmHspCzp8g6R7dGXBCxPIDAp7lvOgGjjf6rQZXvC/FgrJbjBFLym1QcBdtYRklppats56mhXABotvCkz+GBIWKSagoJMIyw1ATJUkGWOv9ODaOO8WQKAzqONMCCZT0LoGvLIFhwGzqs3XZMD1J9Da7HnBhCB4jhsGTaiVC9K8SGfidpG1+6dAhhdj89tmyxfyPre4QQXm/glbcwvOmLDFVkXhmghdKPFhjtOi7WLJqnSZjUfJ21wG3Xf03XOedJxC5DVBgKSNYOvjxtlzQpACcDou6khhA3rhBP26w30msyIS+cK4MrzkIqhf3zuePoHXQFAxPJiC95Cg+ujbZKERdIDChothGabVV8CIaQbNi4kbTfvpMIgBK2hY9aEnBcnoBgc+zlcF+83WHOsLjpqZqaxlM7hdLifHKCCUik9MDWivt0VgMWWdXzfyRUQQjcosj7yC42WglaGQC0WrZ2krQZ4idpjwjycj3D2T5vvNBuxSX8fljzf12qgMJ3x9Wi1oCPlFZkfc4xdGwG2jKo3No0kkxT+VgLgVmPwU64aI0NRMRpwAYNjrucHtDnaZFB1ClUOKLZj2kybJOqlSu8trxn03s4UtDVCS3tNsMBFcBiUnhIRGmMpsGucxPxCxn7LWzTC4d0APVX1F5vOSW+VcS/nAxab+KBBvEk6QO7KREAE4oUQ6WyPFxKrLzJnYA6Q89bMN0Ruwf6BwqzzLQQkQNug3XRv2aahhRCdD4NMyNbVAK7YRaQ5vaZ+jnpsRQAWmvjvxuAFMfR5TfAO0GpGyORivZ2TH1ZFyfG5OxNqfIKlhaaqZ5L5UMYEq1MTg8RDDzKey89xRRMXYnfUFewYh7mJ4WRUKdXqCgAi9i22YM4YTDpCoI+3+ZJVp/pLqTo/ErOx4FdynV8RpliNu9DnSMiEAAqOOWpqnmjRXq48X8FAH3xhfDC17K8rAI02vifL8HGu0bEq200xKwuZn0gzg9pGYtJ1MZ66FpOcbr5G2jQ/n/1SID+5Enuk7LFD7Y7VKgBX7yE+mh4ZG1QPrwjAwjL+DiLeb9WwYIvumHM05MBabReuuPDItb9A73ypSHZ5c0lJro7AYTEfz3kdrI0y6YpFzmgeTju56sMJloLpMYQ9W5JWul6NjCo1vzIATfw8Gjwikx+O/0yKaPMLyy6M2bDn47kmRyViOy2mTYzPL8j3qVyNwJa0fKWM/Bh9TmxJD1JfJqPsgR0qb4zWwKwz1PhE9hg1xect3v4vngEYH4Cv1odL13ZmPWI+YKGJzxiNF1pJB+/OquWOLbWc9B3Xd4mQZYD0t88DAmW1ocsD5Zmf9eYU6jiecyikexFz9O8U4qZHENbX5HwAs1GRm4g6Q2ykxOSKCsTvPd8QwLdsHq08sBoAZ7XG9dFZuQdJx0cAUJy20vcgWGlTzKbFW5LjNuPoL53vWZ8/xjkDaYzNJegcDwSTHPqbsv2Lt1DIi45PhtlidJFawaF2bB3ChdOUTZXr02PqxIoAIOLYwjKe5DDEPfVi3t7MABqtmPXxZiJnF9zfSt1lhxmRGx+WHCAOrMwyQ59I+WRK3nP3JMJATWajkfBIXyUrS+EzKtgxkcHGIfOtmcnaJd02H7LBpTYezDLzJFd2OOzEeOvnexCglSlYJifo6wEtKpMZ5aTv1d7RXa8JNiESzM9vNGxcMEK7eaa6GmDfZgO1smy++NAq02BfM+DIE7UW4ODWFtSqye9un+y5/x0BWGjhh4zGz3VUasLggoj5HH99jLdZns0DhMRpE22wUrfsjSJHxv8UkCYR7XUML26aTYeOU5Y3MybaZaFlHitQst8XHLYPt/0VhL2b2lCupLu216svvSMA8w1XAostrEKfTvKAbo6nkHwEKYiQWswuuVhCFWfSKtr8MjlVo6BWBuiryEpTnu/nuUG+uuy+A9g4mMHUkH7tXVv7Nq+0+WACCw38KwP4QdYAdnyyHsDl7pyZCG1wzjOOouTCmF9UsUApq8E5pugpd3x+zDGc7ctqUKH/7/OKXRNNWN8DD+yd6btlLQA8lSFebPuDvuGRz7BYApIVysRDVn2jucR2lGRqvg4Y0uy8Y4sOuJh0CW4gyvG5zm+YT1Cwd3IJ0gTfv2/H+kdXBWC+ga9rxI2cQDAT5HGSkLSI7E+qeaTKLpbHmcAuJW9Z3fUOzEk6zhR1Zp6RicpIlXN8YW4JoK+qYWakmUF53Tnv3qbmVgVgroENg9jDWWAuBQ7zAbIq5Dfq099AUz0dzeXjvDnOKAuFzKDmYS4galu3PKSYqBW5CpnVaF8LNvS3nrh09+AV77R56wMQsX+ugfM5/p+jmE71yDk127FGaEdjbQfWcXBftI3pshhL6XZvWQ6XuUbQBgFYIEAiEsTcQIzAeYFsHlqE3rL5+Hv2DP7JqgA0GjjdQnwlqL0cKvIqSmGJxtBcjHYVG6a5jsVRhdjxAesI/ehcLu10WEGaAPRWgFpTzlzCaGykvbKekPcJopfoI1MxBadnbB2eg1KqLrpi79CzqwKw2ML9WYbfzpEemQ1SFbhJyY2P8xSyfOnLAUFxXtm8gDi+A8PxfWJ99l2UwZgXnDuGsGkoAtBZeRL+Q7TculFe6Y96ym2Y7G+8ddW+oTFZ+1uRBywu47VtjV+Wapir3iDA0rLbdKzlOTDC3z7BcfU+AiMCwDU/C46t+TkSRH9fdq6BHsv0ZLN1hVqDTHdXkD6Z1VC1AQPV5t9cfWDkfatJ3/qAhRbemLXxs7INFeKzt8PlliMpxPacyrs6HW3WZXcRDDpmv7M5gN+s1wDWBNaCPVMIY+uiKbhyW75VJh1s4BZhdMaHXME/RnvmoVbSH7v24Mh9awJgbglv14h/li+C5PNxWlSDcoCmy/vdJonB+cTG01p73DjKy0kNU16mw/w9hdjLZxDKqWi/iSnRPM3NDztzzUKSJy7BjddmaVrksl84OPzNtQGwqO/VoO4oNkAlIOwf6CEkbdfxIQl7yduKrfvMPJ8iBjVPOIMkIFxV16n7zCgC1fW7FzIKfT/hmIOm+ogg15mghpHK2Wxw0+i6Q9NqeU0AnF3CP9cGb+ugoqKlbZ2MrMCGUTc5ApO33bwnd7ZPvJ+cZIVmGhLBDkXzhYlODH2iLtHRpMmP4JSxCevSuRevv3Li/LVs3vqAsw38VJaZW3nmJ0jbEqDIwHJ9QrY5P+QQc/DY7u6aEHXwCzFBUqDgcrQuMEOvfTLnkIKrwBL0qqWHjxweP7JmAM4s4mcM4s35jUfUieLEWpzg//6HCPnagUtaigVKsvfQayi23HP5fJwxeqcGiyNRsk7gtK8Kc1BVy5/44Hvrn1wzAG8v4UNG46/Ecjhv0nljaf9Fj7wmNRW5QSdFjvXHmG0WQO6Y9o6jryFX8ZpV1rNQRn3DjddMfHHNAMwu6IcNqhtcIhSzwa51+PCrMOGVeaytWxO1owtU1AQ2se6aFctecfSGc4GcX/LPrrTepBVeevPPTT65ZgDeXsRHtcH3yY6wnLyQZelIkPL9v44ChZj66Gi0huLJSn0Amd/HUpxseMR8IT8IXVo+AaVyOn3TNROvrhmA2QXzFYNwTeypyXyeH5AfhAppqHeUuXa6mNAO8VpmgkGLxACG1CzuExZ8QxjKzp0bfwFCmpE0jsPwtqnqDefn+3/vmA6fXsCvIeJVsWsrWuPS64aw2Mnfu/NzyeV9EhOAEL8XsD9ri+l1nCxdAfwwnd45kQaLx/A337/Zzc+t8aVm5/EJjebyYl4t7U/2BorZl5RycHKy3R1+8JBvpubz+s4eRHyO2KjvNbDGFTUvmzuKt/3Slp8MgNML+FVt8Go3Ll+URtEGRWVGqGgelHzVNgJZJD6yw+Prib4RK2cIpGnmIoX4BQg/oz13DH/7+p9QA07P609rVLdEifgCgxgv53CYS1RWyMjyi/fjgTwIJQeqbVndDT266XE2mWJhVfzURSZKYWYhjtktnzkOT/3bq/M017zaa31/5fRn77xkWs3O4eVaweNaG5WrvHRhbbk+vaj4FD10N6l3HPMhMtfulhOmYXKc55M7I0/RyTbnTsETT/3QvHby7KpmsHN6+NTn/+jyDXZE5s05vF0b+ENtTF+xv+7GWwp1OpkbyNq/nwblSTA2jY66X057ROJT6PKERk3oS3APIL8eeg69mktz8P0fvLz49PNv9K2mAft3jz/3wMcOXBhmhE4t4Lhuw9UazQyaZNogUJV4ozY4aQCq0hZz3IAJlJzuZvOR3l2UviS7ZM0ojuXEZCo/oc5Sd9yjUJrXLTh59D9PfuUbL29YDYDDBzZ97v7fuvDD3X8vULj6OP24chk2goZJncGkATNpDNQNqkmNMGkQ6og44pIW1xfMb0A612J7O2oAe/V87hGlHn+gJfsQLgHjn9+cfet469F/eK5C0+0rvUrUMPjZHTN3/PL2V9YEwGpo0vf/gVhdeBUm2hrqbYQ6INSNMXVtCCBVRwIM6Fhswcs6YC7DEyXykB4L/xB+/+drCzz0RwC2msvwzLPf0y+8/Kb7+XiX1wUzI8ceuvvSjfTVfxsAawGJzvn7E9inZqGOGUyYDOqZBcXUjYEJbbAOkBBIExpxXRiALLC/YvMlTD36RSycPWP+7mtPJws00FB49dXK5prLzj38+x/e+c//KwCsFahHXsD+9jxMqBaBpCeaLdxmdLYrM0jNznGAdFglCTntEkmef6zGn+dm39aPff276dxiMzyyVi3joYunPvHJW3bfywf/xzVgrQCs9bxHnsTaqbdhanl54V2AsMtAtk2B2qSSdLzdbtZf/fHr6tTsWT0+1Pv9qc3rPvTxI+f9UN77vwCByDyXl6nyEwAAAABJRU5ErkJggg=="},ZW9T:function(j,W,y){"use strict";y.d(W,"a",function(){return U});var I=y("k1fw"),v=y("oBTY"),T=y("miYZ"),b=y("tsqr"),g=y("rAM+"),s=y("tJVT"),_=y("PpiC"),p=y("q1tI"),e=y.n(p),a=y("bdgK"),n=y("9og8"),l=y("WmNS"),r=y.n(l),i={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},t={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},o={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},c={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},d=y("5VLF"),f=y.n(d),h={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},u=function(B,Z){return Z.map(function(re){return{label:re,kind:B.languages.CompletionItemKind.Keyword,insertText:re}})},E=function(B){return Object.keys(h.tables).map(function(Z){return{label:Z,kind:B.languages.CompletionItemKind.Variable,insertText:Z}})},x=function(B,Z){var re=h.tables[B];return re?re.map(function(me){return{label:me,kind:Z.languages.CompletionItemKind.Field,insertText:me}}):[]};function O(L,B,Z,re,me){var Ee=B.getWordUntilPosition(Z),De={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},te=re.map(function(Ce){return{label:Ce,kind:L.languages.CompletionItemKind.Keyword,insertText:Ce,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}});return me.map(function(Ce){te.push(Object(I.a)(Object(I.a)({},Ce),{},{range:De}))}),te}var C=function(L){h.languages.map(function(me){return L.languages.registerDocumentFormattingEditProvider(me,{provideDocumentFormattingEdits:function(De,te,Ce){return Object(n.a)(r.a.mark(function we(){var ce;return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return ce=f()(De.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),oe.abrupt("return",[{range:De.getFullModelRange(),text:ce}]);case 2:case"end":return oe.stop()}},we)}))()}}),me});var B=o.quickKey.map(function(me){return{label:me.label,kind:L.languages.CompletionItemKind.Method,insertText:me.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),Z=c.quickKey.map(function(me){return{label:me.label,kind:L.languages.CompletionItemKind.Method,insertText:me.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),re=t.quickKey.map(function(me){return{label:me.label,kind:L.languages.CompletionItemKind.Method,insertText:me.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}});L.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ee,De){var te=Ee.getWordUntilPosition(De),Ce={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},we=Ee.getLineContent(De.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[].concat(Object(v.a)(o.keywords.map(function(ce){return{label:ce,kind:L.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})),Object(v.a)(o.quickKey.map(function(ce){return{label:ce.label,kind:L.languages.CompletionItemKind.Function,documentation:ce.content,insertText:we.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})))}}}),L.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ee,De){var te=Ee.getWordUntilPosition(De),Ce={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn};return{suggestions:Object(v.a)(i.keywords.map(function(we){return{label:we,kind:L.languages.CompletionItemKind.Function,documentation:we,insertText:we,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}}))}}}),L.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ee,De){var te=Ee.getWordUntilPosition(De),Ce={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},we=Ee.getLineContent(De.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[].concat(Object(v.a)(t.keywords.map(function(ce){return{label:ce,kind:L.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})),Object(v.a)(t.quickKey.map(function(ce){return{label:ce.label,kind:L.languages.CompletionItemKind.Function,documentation:ce.content,insertText:we.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})))}}}),L.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ee,De){var te=Ee.getWordUntilPosition(De),Ce={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},we=Ee.getLineContent(De.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[].concat(Object(v.a)(c.keywords.map(function(ce){return{label:ce,kind:L.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})),Object(v.a)(c.quickKey.map(function(ce){return{label:ce.label,kind:L.languages.CompletionItemKind.Function,documentation:ce.content,insertText:we.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})))}}})},w="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",S=y("fjLI"),D=y("LvDl"),R=y("+ua5");function P(L){return/^\d+$/.test(L)?"".concat(L,"px"):L}function N(){}var M=!1,z={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function X(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],B=L;if(Array.isArray(L)){for(var Z=0;Z<L.length;Z++){var re=z[L[Z]];if(re)return re}return B[0]}return z[B]||B}var k=null,F=W.b=function(L){var B=L.width,Z=B===void 0?"100%":B,re=L.height,me=re===void 0?"100%":re,Ee=L.value,De=L.language,te=De===void 0?"javascript":De,Ce=L.style,we=Ce===void 0?{}:Ce,ce=L.options,le=ce===void 0?{}:ce,oe=L.overrideServices,xe=oe===void 0?{}:oe,q=L.theme,se=q===void 0?"vs-dark":q,Ne=L.onEditBlur,de=L.onSave,$=L.autoHeight,Q=$===void 0?!1:$,Y=L.forbidCopy,ue=Y===void 0?!1:Y,ae=L.onChange,be=ae===void 0?N:ae,Ie=L.editorDidMount,pe=Ie===void 0?N:Ie,Le=L.onFocus,ve=Le===void 0?N:Le,Xe=L.filename,$e=Xe===void 0?"educoder.txt":Xe,Ge=L.errorLine,Me=L.errorContent,gt=Me===void 0?"":Me,Te=Object(_.a)(L,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Ye=Object(p.useRef)(),Ze=Object(p.useRef)({}),Ve=Object(p.useRef)(),Fe=Object(p.useRef)(),Be=Object(p.useRef)(!1),_e=Object(p.useRef)(),Ae=Object(p.useState)(!1),fe=Object(s.a)(Ae,2),ke=fe[0],Je=fe[1];function ne(){var Ft;return Ye.current&&(Ft=new a.default(function(Lt){var zt=Object(g.a)(Lt),Qt;try{for(zt.s();!(Qt=zt.n()).done;){var bn=Qt.value;(bn.target.offsetHeight>0||bn.target.offsetWidth>0)&&Ze.current.instance.layout()}}catch(Zt){zt.e(Zt)}finally{zt.f()}}),Ft.observe(Ye.current)),Ft}function Qe(){b.b.warn(decodeURIComponent(w))}var dt=function(){var Lt=Ze.current.instance;if(Ee!=null&&Lt&&ke){var zt=Lt.getModel();zt&&Ee!==zt.getValue()&&(M=!0,zt.setValue(Ee),Lt.layout(),M=!1)}};Object(p.useEffect)(function(){Fe.current&&clearTimeout(Fe.current),Fe.current=setTimeout(function(){dt()},500)},[Ee,ke,Ze.current]),Object(p.useEffect)(function(){if(Ge&&Ze.current&&Ze.current.instance){var Ft=Ze.current.instance;Ft.changeViewZones(function(zt){var Qt=document.createElement("div");Qt.style.padding="10px 20px",Qt.style.width="calc(100% - 20px)",Qt.className="my-error-line-wrp",Qt.innerHTML=gt,zt.addZone({afterLineNumber:Ge||11,heightInLines:3,domNode:Qt})});var Lt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ft.addOverlayWidget(Lt),Ft.revealPositionInCenter({lineNumber:20,column:1})}},[Ge,Ze.current,ke]);function Ke(){var Ft=Ze.current.instance;if(Ft){var Lt=Ft.getSelection(),zt=Ze.current.pastePos||{},Qt=new k.Range(zt.startLineNumber||Lt.endLineNumber,zt.startColumn||Lt.endColumn,zt.endLineNumber||Lt.endLineNumber,zt.endColumn||Lt.endColumn);setTimeout(function(){Ft.executeEdits("",[{range:Qt,text:""}])},300)}}function et(Ft){(window.navigator.platform.match("Mac")?Ft.metaKey:Ft.ctrlKey)&&Ft.keyCode==83&&(Ft.preventDefault(),de())}var rt=function(){if(Q&&Ze.current.instance){var Lt=Ze.current.instance.getContentHeight();vt(Lt<me?me:Lt)}else vt(me)};function bt(Ft){var Lt=document.createEvent("MouseEvents");Lt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ft.dispatchEvent(Lt)}function ut(Ft,Lt){var zt=window.URL||window.webkitURL||window,Qt=new Blob([Lt]),bn=document.createElementNS("http://www.w3.org/1999/xhtml","a");bn.href=zt.createObjectURL(Qt),bn.download=Ft,bt(bn)}Object(p.useEffect)(function(){rt()},[rt]),Object(p.useEffect)(function(){Ye.current&&!ke&&Promise.all([y.e(17),y.e(28)]).then(y.t.bind(null,"M/lh",7)).then(function(Ft){try{k=Ft,Ze.current.instance=k.editor.create(Ye.current,{value:Ee,language:X(te),theme:se,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},xe);var Lt=Ze.current.instance,zt=S.d._menuItems,Qt=Object(v.a)(zt).find(function(Fn){return Fn[0]._debugName=="EditorContext"}),bn=Qt[1],Zt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],$t=function(Hn,Yn){var jn=Hn._first;do{var or,jr,qt=Yn.includes((or=jn.element)===null||or===void 0||((jr=or.command)===null||jr===void 0)?void 0:jr.id);qt&&Hn._remove(jn)}while(jn=jn.next)};if(pe(Lt,k),setTimeout(function(){rt(),Ze.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ut($e||"educoder.txt",Lt.getValue())}}),Lt.getDomNode().addEventListener("input",function(){Ve.current.autoFormat&&Lt.getAction("editor.action.formatDocument").run()})},500),Ze.current.subscription=Lt.onDidChangeModelContent(function(Fn){Be.current?clearTimeout(_e.current):(rt(),be(Lt.getValue(),Fn)),_e.current=setTimeout(function(){Be.current=!1},500)}),window.Monaco||C(k,X(te)),ue&&($t(bn,Zt),Ye.current.classList.add("noCopyPaste"),Lt.onKeyDown(function(Fn){var Hn=Fn.keyCode,Yn=Fn.ctrlKey,jn=Fn.metaKey;(Hn===33||Hn===52)&&(jn||Yn)&&(Qe(),Fn.preventDefault())})),window.Monaco=k,Ne&&Lt.onDidBlurEditorWidget(function(){Ne(Lt.getValue())}),ve&&Lt.onDidFocusEditorText(function(){ve(Lt.getValue())}),ue){Lt.addCommand(k.KeyMod.CtrlCmd|k.KeyCode.KEY_V,function(){return Qe(),null}),Lt.onDidPaste(function(Fn){Ze.current.pastePos=Fn});try{window.addEventListener("paste",Ke)}catch(Fn){}}var Zn=ne();return Je(!0),function(){var Fn=Ze.current.instance;Fn.dispose();var Hn=Fn.getModel();Hn&&Hn.dispose(),Ze.current.subscription&&Ze.current.subscription.dispose(),ue&&window.removeEventListener("paste",Ke),Zn.unobserve(Ye.current)}}catch(Fn){}})},[]),Object(p.useEffect)(function(){var Ft=Ze.current.instance;if(Ft&&ke)return document.addEventListener("keydown",et,!1),function(){document.removeEventListener("keydown",et)}},[de,ke]),Object(p.useEffect)(function(){var Ft=Ze.current.instance;if(Ft&&ke){var Lt=X(te);k.editor.setModelLanguage(Ft.getModel(),Lt),console.log("language:",te,Ft.getModel(),Lt)}},[te,ke]),Object(p.useEffect)(function(){var Ft=Ze.current.instance;Ft&&ke&&k.editor.setTheme(se)},[se,ke]),Object(p.useEffect)(function(){var Ft=Ze.current.instance;Ve.current=le,Ft&&ke&&(Ft.updateOptions(Object(I.a)({},le)),setTimeout(function(){Ft.getModel().updateOptions(Object(I.a)({},le))},200))},[JSON.stringify(le),ke]),Object(p.useEffect)(function(){var Ft=Ze.current.instance;Ft&&ke&&Ft.layout()},[Z,me,ke]);var ot=Object(p.useState)(P(Z)),Ue=Object(s.a)(ot,2),We=Ue[0],ft=Ue[1],nt=Object(p.useState)(P(me)),Dt=Object(s.a)(nt,2),Kt=Dt[0],vt=Dt[1],Ht=Object(I.a)(Object(I.a)({},we),{},{width:We,height:Kt});return e.a.createElement("div",{className:"my-monaco-editor",ref:Ye,style:Ht})};function U(L){var B=L.width,Z=B===void 0?"100%":B,re=L.height,me=re===void 0?"100%":re,Ee=L.original,De=L.modified,te=L.language,Ce=L.options,we=Ce===void 0?{}:Ce,ce=Object(p.useRef)(),le=Object(p.useState)(null),oe=Object(s.a)(le,2),xe=oe[0],q=oe[1];function se(Q){var Y;return ce.current&&(Y=new a.default(function(ue){var ae=Object(g.a)(ue),be;try{for(ae.s();!(be=ae.n()).done;){var Ie=be.value;(Ie.target.offsetHeight>0||Ie.target.offsetWidth>0)&&Q.layout()}}catch(pe){ae.e(pe)}finally{ae.f()}}),Y.observe(ce.current)),Y}Object(p.useEffect)(function(){ce.current&&Promise.all([y.e(17),y.e(28)]).then(y.t.bind(null,"M/lh",7)).then(function(Q){k=Q;var Y=k.editor.createDiffEditor(ce.current,Object(I.a)(Object(I.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},we),{},{wordWrap:!0}));q(Y);var ue=se(Y);return function(){Y.dispose();var ae=Y.getModel();ae&&ae.dispose(),ue.unobserve(ce.current)}})},[]),Object(p.useEffect)(function(){xe&&xe.setModel({original:k.editor.createModel(Ee,te),modified:k.editor.createModel(De,te)})},[Ee,De,te,xe]);var Ne=P(Z),de=P(me),$={width:Ne,height:de};return e.a.createElement("div",{className:"my-diff-editor",ref:ce,style:$})}},ZpRC:function(j,W,y){"use strict";function I(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function v(n,l){return(!l||n!=="hidden")&&n!=="visible"&&n!=="clip"}function T(n,l){if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){var r=getComputedStyle(n,null);return v(r.overflowY,l)||v(r.overflowX,l)||function(i){var t=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch(c){return null}}(i);return!!t&&(t.clientHeight<i.scrollHeight||t.clientWidth<i.scrollWidth)}(n)}return!1}function b(n,l,r,i,t,o,c,d){return o<n&&c>l||o>n&&c<l?0:o<=n&&d<=r||c>=l&&d>=r?o-n-i:c>l&&d<r||o<n&&d>r?c-l+t:0}var g=function(n,l){var r=window,i=l.scrollMode,t=l.block,o=l.inline,c=l.boundary,d=l.skipOverflowHiddenElements,f=typeof c=="function"?c:function(Q){return Q!==c};if(!I(n))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,u=[],E=n;I(E)&&f(E);){if((E=E.parentElement)===h){u.push(E);break}E!=null&&E===document.body&&T(E)&&!T(document.documentElement)||E!=null&&T(E,d)&&u.push(E)}for(var x=r.visualViewport?r.visualViewport.width:innerWidth,O=r.visualViewport?r.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,S=n.getBoundingClientRect(),D=S.height,R=S.width,P=S.top,N=S.right,M=S.bottom,z=S.left,X=t==="start"||t==="nearest"?P:t==="end"?M:P+D/2,k=o==="center"?z+R/2:o==="end"?N:z,F=[],U=0;U<u.length;U++){var L=u[U],B=L.getBoundingClientRect(),Z=B.height,re=B.width,me=B.top,Ee=B.right,De=B.bottom,te=B.left;if(i==="if-needed"&&P>=0&&z>=0&&M<=O&&N<=x&&P>=me&&M<=De&&z>=te&&N<=Ee)return F;var Ce=getComputedStyle(L),we=parseInt(Ce.borderLeftWidth,10),ce=parseInt(Ce.borderTopWidth,10),le=parseInt(Ce.borderRightWidth,10),oe=parseInt(Ce.borderBottomWidth,10),xe=0,q=0,se="offsetWidth"in L?L.offsetWidth-L.clientWidth-we-le:0,Ne="offsetHeight"in L?L.offsetHeight-L.clientHeight-ce-oe:0;if(h===L)xe=t==="start"?X:t==="end"?X-O:t==="nearest"?b(w,w+O,O,ce,oe,w+X,w+X+D,D):X-O/2,q=o==="start"?k:o==="center"?k-x/2:o==="end"?k-x:b(C,C+x,x,we,le,C+k,C+k+R,R),xe=Math.max(0,xe+w),q=Math.max(0,q+C);else{xe=t==="start"?X-me-ce:t==="end"?X-De+oe+Ne:t==="nearest"?b(me,De,Z,ce,oe+Ne,X,X+D,D):X-(me+Z/2)+Ne/2,q=o==="start"?k-te-we:o==="center"?k-(te+re/2)+se/2:o==="end"?k-Ee+le+se:b(te,Ee,re,we,le+se,k,k+R,R);var de=L.scrollLeft,$=L.scrollTop;X+=$-(xe=Math.max(0,Math.min($+xe,L.scrollHeight-Z+Ne))),k+=de-(q=Math.max(0,Math.min(de+q,L.scrollWidth-re+se)))}F.push({el:L,top:xe,left:q})}return F};function s(n){return n===Object(n)&&Object.keys(n).length!==0}function _(n,l){l===void 0&&(l="auto");var r="scrollBehavior"in document.body.style;n.forEach(function(i){var t=i.el,o=i.top,c=i.left;t.scroll&&r?t.scroll({top:o,left:c,behavior:l}):(t.scrollTop=o,t.scrollLeft=c)})}function p(n){return n===!1?{block:"end",inline:"nearest"}:s(n)?n:{block:"start",inline:"nearest"}}function e(n,l){var r=!n.ownerDocument.documentElement.contains(n);if(s(l)&&typeof l.behavior=="function")return l.behavior(r?[]:g(n,l));if(r)return;var i=p(l);return _(g(n,i),i.behavior)}var a=W.a=e},Zss7:function(j,W,y){var I;(function(v){var T=/^\s+/,b=/\s+$/,g=0,s=v.round,_=v.min,p=v.max,e=v.random;function a(oe,xe){if(oe=oe||"",xe=xe||{},oe instanceof a)return oe;if(!(this instanceof a))return new a(oe,xe);var q=n(oe);this._originalInput=oe,this._r=q.r,this._g=q.g,this._b=q.b,this._a=q.a,this._roundA=s(100*this._a)/100,this._format=xe.format||q.format,this._gradientType=xe.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=q.ok,this._tc_id=g++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var oe=this.toRgb();return(oe.r*299+oe.g*587+oe.b*114)/1e3},getLuminance:function(){var oe=this.toRgb(),xe,q,se,Ne,de,$;return xe=oe.r/255,q=oe.g/255,se=oe.b/255,xe<=.03928?Ne=xe/12.92:Ne=v.pow((xe+.055)/1.055,2.4),q<=.03928?de=q/12.92:de=v.pow((q+.055)/1.055,2.4),se<=.03928?$=se/12.92:$=v.pow((se+.055)/1.055,2.4),.2126*Ne+.7152*de+.0722*$},setAlpha:function(oe){return this._a=F(oe),this._roundA=s(100*this._a)/100,this},toHsv:function(){var oe=t(this._r,this._g,this._b);return{h:oe.h*360,s:oe.s,v:oe.v,a:this._a}},toHsvString:function(){var oe=t(this._r,this._g,this._b),xe=s(oe.h*360),q=s(oe.s*100),se=s(oe.v*100);return this._a==1?"hsv("+xe+", "+q+"%, "+se+"%)":"hsva("+xe+", "+q+"%, "+se+"%, "+this._roundA+")"},toHsl:function(){var oe=r(this._r,this._g,this._b);return{h:oe.h*360,s:oe.s,l:oe.l,a:this._a}},toHslString:function(){var oe=r(this._r,this._g,this._b),xe=s(oe.h*360),q=s(oe.s*100),se=s(oe.l*100);return this._a==1?"hsl("+xe+", "+q+"%, "+se+"%)":"hsla("+xe+", "+q+"%, "+se+"%, "+this._roundA+")"},toHex:function(oe){return c(this._r,this._g,this._b,oe)},toHexString:function(oe){return"#"+this.toHex(oe)},toHex8:function(oe){return d(this._r,this._g,this._b,this._a,oe)},toHex8String:function(oe){return"#"+this.toHex8(oe)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(U(this._r,255)*100)+"%",g:s(U(this._g,255)*100)+"%",b:s(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+s(U(this._r,255)*100)+"%, "+s(U(this._g,255)*100)+"%, "+s(U(this._b,255)*100)+"%)":"rgba("+s(U(this._r,255)*100)+"%, "+s(U(this._g,255)*100)+"%, "+s(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:X[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(oe){var xe="#"+f(this._r,this._g,this._b,this._a),q=xe,se=this._gradientType?"GradientType = 1, ":"";if(oe){var Ne=a(oe);q="#"+f(Ne._r,Ne._g,Ne._b,Ne._a)}return"progid:DXImageTransform.Microsoft.gradient("+se+"startColorstr="+xe+",endColorstr="+q+")"},toString:function(oe){var xe=!!oe;oe=oe||this._format;var q=!1,se=this._a<1&&this._a>=0,Ne=!xe&&se&&(oe==="hex"||oe==="hex6"||oe==="hex3"||oe==="hex4"||oe==="hex8"||oe==="name");return Ne?oe==="name"&&this._a===0?this.toName():this.toRgbString():(oe==="rgb"&&(q=this.toRgbString()),oe==="prgb"&&(q=this.toPercentageRgbString()),(oe==="hex"||oe==="hex6")&&(q=this.toHexString()),oe==="hex3"&&(q=this.toHexString(!0)),oe==="hex4"&&(q=this.toHex8String(!0)),oe==="hex8"&&(q=this.toHex8String()),oe==="name"&&(q=this.toName()),oe==="hsl"&&(q=this.toHslString()),oe==="hsv"&&(q=this.toHsvString()),q||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(oe,xe){var q=oe.apply(null,[this].concat([].slice.call(xe)));return this._r=q._r,this._g=q._g,this._b=q._b,this.setAlpha(q._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(u,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(oe,xe){return oe.apply(null,[this].concat([].slice.call(xe)))},analogous:function(){return this._applyCombination(N,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},a.fromRatio=function(oe,xe){if(typeof oe=="object"){var q={};for(var se in oe)oe.hasOwnProperty(se)&&(se==="a"?q[se]=oe[se]:q[se]=Ee(oe[se]));oe=q}return a(oe,xe)};function n(oe){var xe={r:0,g:0,b:0},q=1,se=null,Ne=null,de=null,$=!1,Q=!1;return typeof oe=="string"&&(oe=ce(oe)),typeof oe=="object"&&(we(oe.r)&&we(oe.g)&&we(oe.b)?(xe=l(oe.r,oe.g,oe.b),$=!0,Q=String(oe.r).substr(-1)==="%"?"prgb":"rgb"):we(oe.h)&&we(oe.s)&&we(oe.v)?(se=Ee(oe.s),Ne=Ee(oe.v),xe=o(oe.h,se,Ne),$=!0,Q="hsv"):we(oe.h)&&we(oe.s)&&we(oe.l)&&(se=Ee(oe.s),de=Ee(oe.l),xe=i(oe.h,se,de),$=!0,Q="hsl"),oe.hasOwnProperty("a")&&(q=oe.a)),q=F(q),{ok:$,format:oe.format||Q,r:_(255,p(xe.r,0)),g:_(255,p(xe.g,0)),b:_(255,p(xe.b,0)),a:q}}function l(oe,xe,q){return{r:U(oe,255)*255,g:U(xe,255)*255,b:U(q,255)*255}}function r(oe,xe,q){oe=U(oe,255),xe=U(xe,255),q=U(q,255);var se=p(oe,xe,q),Ne=_(oe,xe,q),de,$,Q=(se+Ne)/2;if(se==Ne)de=$=0;else{var Y=se-Ne;$=Q>.5?Y/(2-se-Ne):Y/(se+Ne);switch(se){case oe:de=(xe-q)/Y+(xe<q?6:0);break;case xe:de=(q-oe)/Y+2;break;case q:de=(oe-xe)/Y+4;break}de/=6}return{h:de,s:$,l:Q}}function i(oe,xe,q){var se,Ne,de;oe=U(oe,360),xe=U(xe,100),q=U(q,100);function $(ue,ae,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ue+(ae-ue)*6*be:be<1/2?ae:be<2/3?ue+(ae-ue)*(2/3-be)*6:ue}if(xe===0)se=Ne=de=q;else{var Q=q<.5?q*(1+xe):q+xe-q*xe,Y=2*q-Q;se=$(Y,Q,oe+1/3),Ne=$(Y,Q,oe),de=$(Y,Q,oe-1/3)}return{r:se*255,g:Ne*255,b:de*255}}function t(oe,xe,q){oe=U(oe,255),xe=U(xe,255),q=U(q,255);var se=p(oe,xe,q),Ne=_(oe,xe,q),de,$,Q=se,Y=se-Ne;if($=se===0?0:Y/se,se==Ne)de=0;else{switch(se){case oe:de=(xe-q)/Y+(xe<q?6:0);break;case xe:de=(q-oe)/Y+2;break;case q:de=(oe-xe)/Y+4;break}de/=6}return{h:de,s:$,v:Q}}function o(oe,xe,q){oe=U(oe,360)*6,xe=U(xe,100),q=U(q,100);var se=v.floor(oe),Ne=oe-se,de=q*(1-xe),$=q*(1-Ne*xe),Q=q*(1-(1-Ne)*xe),Y=se%6,ue=[q,$,de,de,Q,q][Y],ae=[Q,q,q,$,de,de][Y],be=[de,de,Q,q,q,$][Y];return{r:ue*255,g:ae*255,b:be*255}}function c(oe,xe,q,se){var Ne=[me(s(oe).toString(16)),me(s(xe).toString(16)),me(s(q).toString(16))];return se&&Ne[0].charAt(0)==Ne[0].charAt(1)&&Ne[1].charAt(0)==Ne[1].charAt(1)&&Ne[2].charAt(0)==Ne[2].charAt(1)?Ne[0].charAt(0)+Ne[1].charAt(0)+Ne[2].charAt(0):Ne.join("")}function d(oe,xe,q,se,Ne){var de=[me(s(oe).toString(16)),me(s(xe).toString(16)),me(s(q).toString(16)),me(De(se))];return Ne&&de[0].charAt(0)==de[0].charAt(1)&&de[1].charAt(0)==de[1].charAt(1)&&de[2].charAt(0)==de[2].charAt(1)&&de[3].charAt(0)==de[3].charAt(1)?de[0].charAt(0)+de[1].charAt(0)+de[2].charAt(0)+de[3].charAt(0):de.join("")}function f(oe,xe,q,se){var Ne=[me(De(se)),me(s(oe).toString(16)),me(s(xe).toString(16)),me(s(q).toString(16))];return Ne.join("")}a.equals=function(oe,xe){return!oe||!xe?!1:a(oe).toRgbString()==a(xe).toRgbString()},a.random=function(){return a.fromRatio({r:e(),g:e(),b:e()})};function h(oe,xe){xe=xe===0?0:xe||10;var q=a(oe).toHsl();return q.s-=xe/100,q.s=L(q.s),a(q)}function u(oe,xe){xe=xe===0?0:xe||10;var q=a(oe).toHsl();return q.s+=xe/100,q.s=L(q.s),a(q)}function E(oe){return a(oe).desaturate(100)}function x(oe,xe){xe=xe===0?0:xe||10;var q=a(oe).toHsl();return q.l+=xe/100,q.l=L(q.l),a(q)}function O(oe,xe){xe=xe===0?0:xe||10;var q=a(oe).toRgb();return q.r=p(0,_(255,q.r-s(255*-(xe/100)))),q.g=p(0,_(255,q.g-s(255*-(xe/100)))),q.b=p(0,_(255,q.b-s(255*-(xe/100)))),a(q)}function C(oe,xe){xe=xe===0?0:xe||10;var q=a(oe).toHsl();return q.l-=xe/100,q.l=L(q.l),a(q)}function w(oe,xe){var q=a(oe).toHsl(),se=(q.h+xe)%360;return q.h=se<0?360+se:se,a(q)}function S(oe){var xe=a(oe).toHsl();return xe.h=(xe.h+180)%360,a(xe)}function D(oe){var xe=a(oe).toHsl(),q=xe.h;return[a(oe),a({h:(q+120)%360,s:xe.s,l:xe.l}),a({h:(q+240)%360,s:xe.s,l:xe.l})]}function R(oe){var xe=a(oe).toHsl(),q=xe.h;return[a(oe),a({h:(q+90)%360,s:xe.s,l:xe.l}),a({h:(q+180)%360,s:xe.s,l:xe.l}),a({h:(q+270)%360,s:xe.s,l:xe.l})]}function P(oe){var xe=a(oe).toHsl(),q=xe.h;return[a(oe),a({h:(q+72)%360,s:xe.s,l:xe.l}),a({h:(q+216)%360,s:xe.s,l:xe.l})]}function N(oe,xe,q){xe=xe||6,q=q||30;var se=a(oe).toHsl(),Ne=360/q,de=[a(oe)];for(se.h=(se.h-(Ne*xe>>1)+720)%360;--xe;)se.h=(se.h+Ne)%360,de.push(a(se));return de}function M(oe,xe){xe=xe||6;for(var q=a(oe).toHsv(),se=q.h,Ne=q.s,de=q.v,$=[],Q=1/xe;xe--;)$.push(a({h:se,s:Ne,v:de})),de=(de+Q)%1;return $}a.mix=function(oe,xe,q){q=q===0?0:q||50;var se=a(oe).toRgb(),Ne=a(xe).toRgb(),de=q/100,$={r:(Ne.r-se.r)*de+se.r,g:(Ne.g-se.g)*de+se.g,b:(Ne.b-se.b)*de+se.b,a:(Ne.a-se.a)*de+se.a};return a($)},a.readability=function(oe,xe){var q=a(oe),se=a(xe);return(v.max(q.getLuminance(),se.getLuminance())+.05)/(v.min(q.getLuminance(),se.getLuminance())+.05)},a.isReadable=function(oe,xe,q){var se=a.readability(oe,xe),Ne,de;de=!1,Ne=le(q);switch(Ne.level+Ne.size){case"AAsmall":case"AAAlarge":de=se>=4.5;break;case"AAlarge":de=se>=3;break;case"AAAsmall":de=se>=7;break}return de},a.mostReadable=function(oe,xe,q){var se=null,Ne=0,de,$,Q,Y;q=q||{},$=q.includeFallbackColors,Q=q.level,Y=q.size;for(var ue=0;ue<xe.length;ue++)de=a.readability(oe,xe[ue]),de>Ne&&(Ne=de,se=a(xe[ue]));return a.isReadable(oe,se,{level:Q,size:Y})||!$?se:(q.includeFallbackColors=!1,a.mostReadable(oe,["#fff","#000"],q))};var z=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},X=a.hexNames=k(z);function k(oe){var xe={};for(var q in oe)oe.hasOwnProperty(q)&&(xe[oe[q]]=q);return xe}function F(oe){return oe=parseFloat(oe),(isNaN(oe)||oe<0||oe>1)&&(oe=1),oe}function U(oe,xe){Z(oe)&&(oe="100%");var q=re(oe);return oe=_(xe,p(0,parseFloat(oe))),q&&(oe=parseInt(oe*xe,10)/100),v.abs(oe-xe)<1e-6?1:oe%xe/parseFloat(xe)}function L(oe){return _(1,p(0,oe))}function B(oe){return parseInt(oe,16)}function Z(oe){return typeof oe=="string"&&oe.indexOf(".")!=-1&&parseFloat(oe)===1}function re(oe){return typeof oe=="string"&&oe.indexOf("%")!=-1}function me(oe){return oe.length==1?"0"+oe:""+oe}function Ee(oe){return oe<=1&&(oe=oe*100+"%"),oe}function De(oe){return v.round(parseFloat(oe)*255).toString(16)}function te(oe){return B(oe)/255}var Ce=function(){var oe="[-\\+]?\\d+%?",xe="[-\\+]?\\d*\\.\\d+%?",q="(?:"+xe+")|(?:"+oe+")",se="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",Ne="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?";return{CSS_UNIT:new RegExp(q),rgb:new RegExp("rgb"+se),rgba:new RegExp("rgba"+Ne),hsl:new RegExp("hsl"+se),hsla:new RegExp("hsla"+Ne),hsv:new RegExp("hsv"+se),hsva:new RegExp("hsva"+Ne),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function we(oe){return!!Ce.CSS_UNIT.exec(oe)}function ce(oe){oe=oe.replace(T,"").replace(b,"").toLowerCase();var xe=!1;if(z[oe])oe=z[oe],xe=!0;else if(oe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var q;return(q=Ce.rgb.exec(oe))?{r:q[1],g:q[2],b:q[3]}:(q=Ce.rgba.exec(oe))?{r:q[1],g:q[2],b:q[3],a:q[4]}:(q=Ce.hsl.exec(oe))?{h:q[1],s:q[2],l:q[3]}:(q=Ce.hsla.exec(oe))?{h:q[1],s:q[2],l:q[3],a:q[4]}:(q=Ce.hsv.exec(oe))?{h:q[1],s:q[2],v:q[3]}:(q=Ce.hsva.exec(oe))?{h:q[1],s:q[2],v:q[3],a:q[4]}:(q=Ce.hex8.exec(oe))?{r:B(q[1]),g:B(q[2]),b:B(q[3]),a:te(q[4]),format:xe?"name":"hex8"}:(q=Ce.hex6.exec(oe))?{r:B(q[1]),g:B(q[2]),b:B(q[3]),format:xe?"name":"hex"}:(q=Ce.hex4.exec(oe))?{r:B(q[1]+""+q[1]),g:B(q[2]+""+q[2]),b:B(q[3]+""+q[3]),a:te(q[4]+""+q[4]),format:xe?"name":"hex8"}:(q=Ce.hex3.exec(oe))?{r:B(q[1]+""+q[1]),g:B(q[2]+""+q[2]),b:B(q[3]+""+q[3]),format:xe?"name":"hex"}:!1}function le(oe){var xe,q;return oe=oe||{level:"AA",size:"small"},xe=(oe.level||"AA").toUpperCase(),q=(oe.size||"small").toLowerCase(),xe!=="AA"&&xe!=="AAA"&&(xe="AA"),q!=="small"&&q!=="large"&&(q="small"),{level:xe,size:q}}j.exports?j.exports=a:!(I=function(){return a}.call(W,y,W,j),I!==void 0&&(j.exports=I))})(Math)},aVK0:function(j,W,y){j.exports={flex_box_center:"flex_box_center___21Vfj",flex_space_between:"flex_space_between___uZYuI",flex_box_vertical_center:"flex_box_vertical_center___YbtWj",flex_box_center_end:"flex_box_center_end_____Dod",flex_box_column:"flex_box_column___38gQH",headLeft:"headLeft___2agg1",colorBlue:"colorBlue___3Vx0N",wrap:"wrap___2WfDC",nodata:"nodata___2f07p",nodataText:"nodataText___3TEWn",content:"content___2_atz",gitCode:"gitCode___3gBXU",ellipsis:"ellipsis___1HiNM",menu:"menu___1DQOO",overlayClass:"overlayClass___2EPCd",tips:"tips___3g6oq"}},b1fT:function(j,W,y){j.exports={"choose-game-item":"choose-game-item___3Vmdr","output-title-container":"output-title-container___15c7x","output-title":"output-title___wqGBh","test-case-list":"test-case-list___134lr","test-header":"test-header___3YSEo",active:"active___3o9Hq","active-debug":"active-debug___1dZQo","test-result":"test-result___2OIUv","markdown-body":"markdown-body___1mq0e",success:"success___2M7U8",failer:"failer___3JK5X",count:"count___3ViIk","test-case-item":"test-case-item___JBhkJ","case-header":"case-header___27Lc0",iconfont:"iconfont___3UAOT",description:"description___1SgkG","item-desc":"item-desc___29cRg",show:"show___3qunF","item-tip":"item-tip___1pJqj","arrow-down":"arrow-down___3rUfL","test-title":"test-title___1eTn_","arrow-right":"arrow-right___36G7Q","case-info":"case-info___21-4n","test-case-run-header":"test-case-run-header___1BrpP","test-case-run-wrp":"test-case-run-wrp___2T5BC","diff-panel-container":"diff-panel-container___CQu-S","line-break":"line-break___1hJQp",empty:"empty___19Ozf",alert:"alert___AMTef"}},bCnd:function(j,W,y){"use strict";y.d(W,"b",function(){return b}),y.d(W,"a",function(){return g});var I=y("je13"),v=y.n(I),T=!1;function b(s,_){var p=v.a.get("__ec");p||(p={}),p[s]=_,v.a.set("__ec",p)}function g(s,_){var p=v.a.get("__ec");return p?p[s]===void 0?_:p[s]:_}},bHOs:function(j,W,y){"use strict";var I=y("14J3"),v=y("BMrR"),T=y("jCWc"),b=y("kPKH"),g=y("5NDa"),s=y("5rEg"),_=y("9og8"),p=y("miYZ"),e=y("tsqr"),a=y("2qtc"),n=y("kLXV"),l=y("WmNS"),r=y.n(l),i=y("q1tI"),t=y.n(i),o=y("lOMy"),c=y("GIiI"),d=y("P5Jw"),f=y("Ty5D"),h=y("500L"),u=y("m3rI"),E=y("ErOA"),x=y("tJVT"),O=y("1vsH"),C=Object(i.forwardRef)(function(z,X){var k=z.time;console.log("ScreenRecord:",X);var F=Object(i.useRef)(),U=Object(i.useState)(),L=Object(x.a)(U,2),B=L[0],Z=L[1],re=Object(i.useRef)(),me=2e3,Ee=[];Object(i.useImperativeHandle)(X,function(){return{startScreenRecord:we,downloadFile:Ce}});function De(ce,le){return te.apply(this,arguments)}function te(){return te=Object(_.a)(r.a.mark(function ce(le,oe){var xe,q;return r.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return xe=[],Ne.next=3,new MediaRecorder(le);case 3:q=Ne.sent,q.ondataavailable=function(de){xe.push(de.data)},q.start(),re.current=q,window.recorderRefs=q,q.addEventListener("stop",function(de){var $=URL.createObjectURL(xe[0],{type:"video/mp4"});Object(O.x)("xxx.webm",$)});case 9:case"end":return Ne.stop()}},ce)})),te.apply(this,arguments)}function Ce(){if(!window.recorderRefs){e.b.warn("\u60A8\u8FD8\u6CA1\u6709\u5F00\u542F\u89C6\u9891\u5F55\u5236\uFF0C\u8BF7\u5148\u53BB\u5F55\u5236\u89C6\u9891\u5427\uFF01");return}var ce=F.current.srcObject.getTracks();ce.forEach(function(le){le.stop()}),window.recorderRefs.addEventListener("dataavailable",function(le){var oe=URL.createObjectURL(le.data,{type:"video/mp4"});Object(O.x)("\u5C4F\u5E55\u5F55\u5236\u89C6\u9891.webm",oe)})}function we(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then(function(ce){return F.current.srcObject=ce,Ee.push(ce),F.current.captureStream=F.current.captureStream||F.current.mozCaptureStream,new Promise(function(le){return F.current.onplaying=le})}).then(function(){return De(F.current.captureStream(),me)}).then(function(ce){}).catch(function(ce){ce.name==="NotFoundError"?e.b.warn("\u627E\u4E0D\u5230\u6444\u50CF\u5934\u6216\u9EA6\u514B\u98CE\u3002\u65E0\u6CD5\u5F55\u5236."):ce.name==="UnknownError"&&e.b.warn("\u5F55\u5236\u5931\u8D25")})}return t.a.createElement("div",{style:{position:"absolute",top:"0",zIndex:-1}},t.a.createElement("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:F}))}),w=C,S=y("LvDl"),D=y("hBbQ"),R=y("Fhpe"),P=y.n(R),N={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},M=W.a=function(z){var X=z.className,k=z.git_url,F=z.difficulty,U=z.task_pass,L=z.test_set_permission,B=z.onVncAction,Z=z.windows_vnc,re=z.linux_vnc,me=z.vnc_url,Ee=z.unity_3d_routes,De=z.index_tab,te=z.shixun_environment_id,Ce=z.tab_type,we=z.reboot_cloud,ce=z.cloud_type,le=z.resData,oe=z.instance_startup_type,xe=z.mirror_description_multi,q=z.is_jupyter_notebook,se=z.is_jupyter_lab,Ne=z.jupyterData,de=z.is_jupyter,$=z.onHideToolBar,Q=Object(f.i)(),Y=Object(i.useRef)(),ue=Z?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",ae=Z?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",be=!Object(S.isEmpty)(le)||!Object(S.isEmpty)(Ne),Ie=Ne?{name:Ne==null?void 0:Ne.main_mirror_name,description:Ne==null?void 0:Ne.main_mirror_description}:xe==null?void 0:xe.find(function(Me){return Me.shixun_environment_id===te}),pe=function(){$(),n.a.info({title:"\u6587\u4EF6\u4E0A\u4F20",icon:null,okText:"\u5173\u95ED",width:600,centered:!0,content:t.a.createElement("div",{className:"pt10"},t.a.createElement(h.b,{isDragger:!0,maxSize:20,additionalText:'\u9ED8\u8BA4\u5B58\u653E\u76EE\u5F55\u8DEF\u5F84\u4E3A"'.concat(ue,'"'),action:"".concat(u.a.API_SERVER,"/api/tasks/").concat(Q.taskId||Q.identifier,"/upload_file?debug=admin&shixun_environment_id=").concat(te||null,"&tab_type=").concat(Ce||null,"&is_jupyter=").concat(de||!1),onChange:function(Te){Te.every(function(Ye){var Ze;return((Ze=Ye.response)===null||Ze===void 0?void 0:Ze.status)===0})&&(n.a.destroyAll(),e.b.info("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F")),console.log("fileList:",Te)}}))})},Le=function(){$(),n.a.confirm({title:"\u4E0B\u8F7D\u4EE3\u7801",centered:!0,width:600,content:"\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(ae,"\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),onOk:function(){var gt=Object(_.a)(r.a.mark(function Ye(){return r.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Object(E.a)("/api/tasks/".concat(Q.taskId||Q.identifier,"/download_file?debug=admin"),{method:"post",body:{autoDownload:!0,shixun_environment_id:te||null,tab_type:Ce||null,is_jupyter:de||!1},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return Ve.abrupt("return",!0);case 3:case"end":return Ve.stop()}},Ye)}));function Te(){return gt.apply(this,arguments)}return Te}()})},ve=function(){var gt,Te;(gt=Y.current)===null||gt===void 0||((Te=gt.startScreenRecord)===null||Te===void 0)||Te.call(gt)},Xe=function(){var Me=Object(_.a)(r.a.mark(function gt(){var Te,Ye;return r.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:$(),Te="",Ye=String(Math.random()),n.a.confirm({icon:null,className:P.a.CustomTipsModalCss,okButtonProps:{type:"primary"},centered:!0,width:460,okText:"\u9884\u89C8",cancelText:"\u53D6\u6D88",title:"\u670D\u52A1\u9884\u89C8",content:t.a.createElement("div",{style:{height:95}},t.a.createElement("div",{className:"mb5 c-grey-333 font14 mb10"},"\u670D\u52A1\u9884\u89C8\u5C06\u4E3A\u5B9E\u9A8C\u73AF\u5883\u5185\u90E8\u670D\u52A1\u6620\u5C04\u5230\u4E34\u65F6\u57DF\u540D\uFF0C\u4EC5\u4F9B\u9884\u89C8\u6D4B\u8BD5\u4F7F\u7528\u3002\u8BF7\u586B\u5199\u5185\u90E8\u670D\u52A1\u7AEF\u53E3\uFF0C\u5E76\u786E\u8BA4\u670D\u52A1\u6B63\u5E38\u542F\u52A8\u3002"),t.a.createElement("div",null,t.a.createElement("span",{className:"c-grey-999 font14 mr10"},"\u7AEF\u53E3\u53F7"),t.a.createElement(s.a,{defaultValue:Te,onChange:function(Be){var _e=document.getElementById(Ye);_e.style.display="none",Te=Be.target.value},maxLength:5,style:{width:326}})),t.a.createElement("div",{style:{display:"none",marginTop:4,marginLeft:52},id:Ye,className:"c-red"})),onOk:function(){var Fe=Object(_.a)(r.a.mark(function _e(){var Ae,fe,ke,Je;return r.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(fe=document.getElementById(Ye),Te){Qe.next=5;break}return fe.style.display="block",fe.innerText="\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A",Qe.abrupt("return",Promise.reject());case 5:if(!Te.includes(" ")){Qe.next=9;break}return fe.style.display="block",fe.innerText="\u7AEF\u53E3\u53F7\u4E0D\u80FD\u6709\u7A7A\u683C",Qe.abrupt("return",Promise.reject());case 9:if(!(Te&&(Te.includes(".")||isNaN(Number(Te))||Number(Te)>65535||Number(Te)<=0||Te.length>1&&Te[0]==="0"))){Qe.next=13;break}return fe.style.display="block",fe.innerText="\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7AEF\u53E3\u53F7",Qe.abrupt("return",Promise.reject());case 13:return Qe.next=15,Object(E.a)("/api/tasks/".concat(Q.taskId||Q.identifier,"/port_proxy"),{method:"post",body:{port:Number(Te),shixun_environment_id:te||null,tab_type:Ce||null,is_jupyter:de||!1}});case 15:return ke=Qe.sent,Qe.next=18,new Promise(function(dt,Ke){setTimeout(function(){dt("")},1e3)});case 18:ke!=null&&(Ae=ke.data)!==null&&Ae!==void 0&&Ae.url&&Object(O.T)(ke==null||((Je=ke.data)===null||Je===void 0)?void 0:Je.url);case 19:case"end":return Qe.stop()}},_e)}));function Be(){return Fe.apply(this,arguments)}return Be}()});case 4:case"end":return Ve.stop()}},gt)}));return function(){return Me.apply(this,arguments)}}(),$e=function(){$(),n.a.info({title:"SSH\u76F4\u8FDE",width:600,centered:!0,content:t.a.createElement(t.a.Fragment,null,t.a.createElement(v.a,null,t.a.createElement(b.a,{flex:"50px"},"\u8D26\u53F7"),t.a.createElement(b.a,null,le==null?void 0:le.username)),t.a.createElement(v.a,null,t.a.createElement(b.a,{flex:"50px"},"\u5730\u5740"),t.a.createElement(b.a,null,le==null?void 0:le.ssh_address)),t.a.createElement(v.a,null,t.a.createElement(b.a,{flex:"50px"},"\u7AEF\u53E3"),t.a.createElement(b.a,null,le==null?void 0:le.port)),t.a.createElement(v.a,null,t.a.createElement(b.a,{flex:"50px"},"\u5BC6\u7801"),t.a.createElement(b.a,null,le==null?void 0:le.password)))})},Ge=function(){$(),n.a.info({title:"RDP\u76F4\u8FDE",icon:null,className:P.a.CustomTipsModalCss,okButtonProps:{type:"primary"},okText:"\u6211\u77E5\u9053\u5566",width:600,centered:!0,content:t.a.createElement("div",null,t.a.createElement(v.a,null,t.a.createElement(b.a,{className:"c-grey-999",flex:"50px"},"\u8D26\u53F7"),t.a.createElement(b.a,{className:"c-grey-333"},le==null?void 0:le.username)),t.a.createElement(v.a,{className:"mt10"},t.a.createElement(b.a,{className:"c-grey-999",flex:"50px"},"\u5730\u5740"),t.a.createElement(b.a,{className:"c-grey-333"},le==null?void 0:le.host)),t.a.createElement(v.a,{className:"mt10"},t.a.createElement(b.a,{className:"c-grey-999",flex:"50px"},"\u7AEF\u53E3"),t.a.createElement(b.a,{className:"c-grey-333"},le==null?void 0:le.port)),t.a.createElement(v.a,{className:"mt10"},t.a.createElement(b.a,{className:"c-grey-999",flex:"50px"},"\u5BC6\u7801"),t.a.createElement(b.a,{className:"c-grey-333"},le==null?void 0:le.password)),t.a.createElement("a",{style:{textDecoration:"underline",display:"inline-block"},href:"https://www.educoder.net/forums/36696",target:"_blank",className:"mt10 font14 current c-light-primary"},"\u64CD\u4F5C\u8BF4\u660E"))})};return t.a.createElement("div",{className:"tpi-code-setting ".concat(X)},t.a.createElement("h3",null,"\u529F\u80FD"),t.a.createElement("section",null,(Ee||q||se)&&t.a.createElement("a",{title:"\u5168\u5C4F",className:"file-item action",onClick:function(){B("full-screen")}},t.a.createElement("i",{className:"iconfont icon-quanping"}),"\u5F00\u542F / \u9000\u51FA\u5168\u5C4F"),(Ce===2||Ce===3||Ce===4||q||se)&&t.a.createElement("a",{onClick:function(){return B("reset-task")},className:"file-item action",title:"\u91CD\u7F6E\u73AF\u5883"},t.a.createElement("i",{className:"iconfont icon-zhongzhishixun1"}),"\u91CD\u7F6E\u73AF\u5883"),(Ce===2||Ce===3||Ce===5||se)&&t.a.createElement("a",{onClick:function(){return B("reset-git-code")},className:"file-item action",title:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"},t.a.createElement("i",{className:"iconfont icon-zhongzhishixun"}),"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"),(Ce===3||q||se)&&t.a.createElement("a",{onClick:function(){return pe()},className:"file-item action",title:"\u4E0A\u4F20\u6587\u4EF6"},t.a.createElement("i",{className:"iconfont icon-shangchuanwenjian"}),"\u4E0A\u4F20\u6587\u4EF6"),(Ce===3||q||se)&&t.a.createElement("a",{onClick:function(){return Le()},className:"file-item action",title:"\u4E0B\u8F7D\u6587\u4EF6"},t.a.createElement("i",{className:"iconfont icon-xiazai3"}),"\u4E0B\u8F7D\u6587\u4EF6"),(Ce===3||Ce===5)&&t.a.createElement("a",{onClick:function(){return ve()},className:"file-item action",title:"\u5C4F\u5E55\u5F55\u5236"},t.a.createElement("i",{className:"iconfont icon-jiaruketang1"}),"\u5C4F\u5E55\u5F55\u5236"),((Ce===2||Ce===3||Ce===4)&&(ce===0||ce===1)||q||se)&&be&&t.a.createElement("a",{onClick:function(){return Xe()},className:"file-item action w100",title:"\u670D\u52A1\u9884\u89C8"},t.a.createElement("i",{className:"iconfont icon-suanfasheji"}),"\u670D\u52A1\u9884\u89C8"),we&&be&&t.a.createElement("a",{onClick:function(){return B("restart-reboot")},className:"file-item action",title:"\u91CD\u542F\u4E91\u4E3B\u673A"},t.a.createElement(c.a,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"\u91CD\u542F\u4E91\u4E3B\u673A "),(Ce===3||Ce===5||q||se)&&t.a.createElement("a",{onClick:function(){return B("reset-code")},className:"file-item action",title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},t.a.createElement("i",{className:"iconfont icon-zhongzhi font20",style:{marginRight:19}}),"\u6062\u590D\u521D\u59CB\u4EE3\u7801"),k&&t.a.createElement(d.CopyToClipboard,{text:k,onCopy:function(){return e.b.success("\u590D\u5236\u6210\u529F")}},t.a.createElement("a",{title:"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740",className:"file-item action"},t.a.createElement("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740")),Ce===3&&t.a.createElement("a",{className:"file-item action",onClick:function(){B("show-clipboard-box")}},t.a.createElement("i",{className:"iconfont icon-fuzhiniantie"}),"\u590D\u5236\u7C98\u8D34"),Ce===4&&be&&t.a.createElement("a",{className:"file-item action",onClick:$e},t.a.createElement("i",{className:"iconfont icon-congshulianjie"}),"SSH\u76F4\u8FDE"),oe===2&&be&&t.a.createElement("a",{className:"file-item action",onClick:Ge},t.a.createElement("i",{className:"iconfont icon-RDPzhilian"}),"RDP\u76F4\u8FDE")),!!Ce&&t.a.createElement(t.a.Fragment,null,t.a.createElement("h3",null,"\u5173\u5361\u914D\u7F6E\u4FE1\u606F"),t.a.createElement("section",null,t.a.createElement("a",{className:"file-item",title:U?"\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218":"\u4E0D\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218"},t.a.createElement("b",null,"\u8DF3\u5173"),t.a.createElement("span",null,U?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8")),t.a.createElement("a",{className:"file-item",title:L?"\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9":"\u4E0D\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9"},t.a.createElement("b",null,"\u6D4B\u8BD5\u96C6\u89E3\u9501"),t.a.createElement("span",null,L?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8")))),t.a.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),t.a.createElement("section",null,t.a.createElement("div",{className:"file-item"},t.a.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),t.a.createElement("span",null,(Ne==null?void 0:Ne.difficulty)||N[F])),t.a.createElement("div",{className:"file-item",style:{alignItems:"flex-start"}},t.a.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Ee?t.a.createElement("span",{className:"multi_ellipsis1"},"\u6682\u65E0"):Ie&&t.a.createElement(D.a,{value:[Ie],title:"\u5B9E\u9A8C\u73AF\u5883\u8BF4\u660E"},t.a.createElement("span",{title:Ie==null?void 0:Ie.name,className:"multi_ellipsis1 current"},Ie==null?void 0:Ie.name)))),t.a.createElement(w,{ref:Y}))}},bPs0:function(j,W,y){"use strict";y.d(W,"b",function(){return h});var I=y("k1fw"),v=y("9og8"),T=y("2qtc"),b=y("kLXV"),g=y("tJVT"),s=y("PpiC"),_=y("aHsQ"),p=y("sGsY"),e=y("WmNS"),a=y.n(e),n=y("q1tI"),l=y.n(n),r=y("bntm"),i=y("V0Rq"),t=y("wd/R"),o=y.n(t),c=y("Ty5D"),d=y("9kvl"),f=p.a.Countdown,h=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],u=function(x){var O=x.globalSetting,C=x.loading,w=x.user,S=x.exercise,D=x.socket,R=x.dispatch,P=Object(s.a)(x,["globalSetting","loading","user","exercise","socket","dispatch"]),N=Object(n.useState)({}),M=Object(g.a)(N,2),z=M[0],X=M[1],k=b.a.useModal(),F=Object(g.a)(k,2),U=F[0],L=F[1],B=Object(n.useRef)(),Z=Object(n.useRef)(null),re=Object(n.useRef)(null),me=Object(n.useState)(!0),Ee=Object(g.a)(me,2),De=Ee[0],te=Ee[1],Ce=Object(c.h)().query,we=Object(c.i)();Object(n.useEffect)(function(){var Y,ue,ae,be,Ie;if(clearTimeout(Z.current),document.addEventListener(Object(r.c)(),Q,!1),window.addEventListener("blur",de,!1),(Y=S.exerciseUserInfo)!==null&&Y!==void 0&&Y.screen_open&&Object(r.a)()&&(R({type:"globalSetting/headerFooterToggle",payload:!1}),te(!1)),(ue=S.exerciseUserInfo)!==null&&ue!==void 0&&ue.screen_at&&o()().diff(o()((ae=S.exerciseUserInfo)===null||ae===void 0?void 0:ae.screen_at),"seconds")>0)ce();else if((be=S.exerciseUserInfo)!==null&&be!==void 0&&be.screen_open&&!Object(r.a)()){var pe=document.domain==="kepukehuan.educoder.net"?30:S.exerciseUserInfo.screen_sec+10+1;B.current=b.a.info({icon:null,content:l.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",l.a.createElement("br",null),"\u5207\u6362\u9875\u9762"," ",S.exerciseUserInfo.screen_num-S.exerciseUserInfo.used_screen_num," ","\u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",l.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:l.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",l.a.createElement("span",{style:{display:"inline-block"}},l.a.createElement(f,{onFinish:function(){var ve;ce(),(ve=B.current)===null||ve===void 0||ve.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+pe*1e3})),"S\uFF09"),onOk:function(){var ve;(ve=B.current)===null||ve===void 0||ve.destroy(),te(!1),Object(r.d)(document.body),document.getElementById("root").addEventListener("click",le,!1)}})}return(Ie=S.exerciseUserInfo)!==null&&Ie!==void 0&&Ie.screen_open&&!Object(r.a)()||document.getElementById("root").addEventListener("click",le,!1),function(){document.getElementById("root").removeEventListener("click",le,!1),document.removeEventListener(Object(r.c)(),Q,!1),window.removeEventListener("blur",de,!1),clearTimeout(Z.current)}},[]),Object(n.useEffect)(function(){setTimeout(function(){S.actionTabs.removeEventListenerExitScreen&&(clearTimeout(Z.current),document.getElementById("root").removeEventListener("click",le,!1),document.removeEventListener(Object(r.c)(),Q,!1))},500),oe()},[S.actionTabs]),Object(n.useEffect)(function(){setTimeout(function(){S.exerciseUserInfo.used_screen_num>S.exerciseUserInfo.screen_num?se():!De},500)},[S.exerciseUserInfo]);var ce=function(){var Y=Object(v.a)(a.a.mark(function ue(){var ae;return a.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,$();case 2:ae=Ie.sent,setTimeout(function(){var pe,Le;(pe=B.current)===null||pe===void 0||pe.destroy(),B.current=b.a.info({okText:l.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:l.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",l.a.createElement("span",{className:"c-red"},ae.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",l.a.createElement("span",{className:"c-red"},(Le=S.exerciseUserInfo)===null||Le===void 0?void 0:Le.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var ve=Object(v.a)(a.a.mark(function $e(){return a.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:Object(r.d)(document.body);case 1:case"end":return Me.stop()}},$e)}));function Xe(){return ve.apply(this,arguments)}return Xe}()})},1e3);case 4:case"end":return Ie.stop()}},ue)}));return function(){return Y.apply(this,arguments)}}(),le=function(ue){!Object(r.a)()&&ue.target.nodeName!=="A"&&ue.target.nodeName!=="BUTTON"&&ue.target.innerHTML!=="\u786E \u5B9A"&&(Object(r.d)(document.body),console.log("documentClick.full"))},oe=function(){var Y=Object(v.a)(a.a.mark(function ue(){return a.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.abrupt("return",new Promise(function(){var Ie=Object(v.a)(a.a.mark(function pe(Le){var ve;return a.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,R({type:"exercise/getExerciseUserInfo",payload:Object(I.a)({},we)});case 2:return ve=$e.sent,Le(ve==null?void 0:ve.data),$e.abrupt("return",ve==null?void 0:ve.data);case 5:case"end":return $e.stop()}},pe)}));return function(pe){return Ie.apply(this,arguments)}}()));case 1:case"end":return be.stop()}},ue)}));return function(){return Y.apply(this,arguments)}}(),xe=function(){var Y=Object(v.a)(a.a.mark(function ue(ae){var be,Ie,pe;return a.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:(be=B.current)===null||be===void 0||((Ie=be.destroyAll)===null||Ie===void 0)||Ie.call(be),B.current=b.a.info({maskClosable:!1,keyboard:!1,okText:l.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",l.a.createElement("span",{style:{display:"inline-block"}},l.a.createElement(f,{onFinish:$,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(S.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:l.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",l.a.createElement("span",{className:"c-red"},ae),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",l.a.createElement("span",{className:"c-red"},(pe=S.exerciseUserInfo)===null||pe===void 0?void 0:pe.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",l.a.createElement("span",{className:"c-red"},S.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",l.a.createElement("br",null),l.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var Xe=Object(v.a)(a.a.mark(function Ge(){return a.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:clearTimeout(re.current),Object(r.d)(document.body),B.current.destroy();case 3:case"end":return gt.stop()}},Ge)}));function $e(){return Xe.apply(this,arguments)}return $e}()}),re.current=setTimeout(function(){var Xe;B.current.update({okText:l.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:l.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",l.a.createElement("span",{className:"c-red"},ae+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",l.a.createElement("span",{className:"c-red"},(Xe=S.exerciseUserInfo)===null||Xe===void 0?void 0:Xe.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(S.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return ve.stop()}},ue)}));return function(ae){return Y.apply(this,arguments)}}(),q=function(){location.href="/classrooms/".concat(we.coursesId,"/exercise/").concat(we.categoryId,"/detail")},se=function(){var Y=Object(v.a)(a.a.mark(function ue(){var ae,be,Ie;return a.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return(ae=B.current)===null||ae===void 0||((be=ae.destroyAll)===null||be===void 0)||be.call(ae),Le.next=3,Object(i.ab)({categoryId:we.categoryId,commit_method:1});case 3:if(Ie=Le.sent,Ie){try{D.send(JSON.stringify({type:"toggleLockExit",data:!1})),D.send(JSON.stringify({type:"network-open",data:""}))}catch(ve){}Ne()}case 5:case"end":return Le.stop()}},ue)}));return function(){return Y.apply(this,arguments)}}(),Ne=function(){var ue,ae;document.removeEventListener(Object(r.c)(),Q,!1),Object(r.b)(),(ue=B.current)===null||ue===void 0||((ae=ue.destroyAll)===null||ae===void 0)||ae.call(ue);try{D.send(JSON.stringify({type:"toggleLockExit",data:!1})),D.send(JSON.stringify({type:"network-open",data:""}))}catch(be){}U.info({content:l.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",l.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){q()}})},de=function(ue){Object(r.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(r.b)()},$=function(){var Y=Object(v.a)(a.a.mark(function ue(){return a.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.abrupt("return",new Promise(function(){var Ie=Object(v.a)(a.a.mark(function pe(Le){var ve,Xe,$e;return a.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!((ve=S.exerciseUserInfo)!==null&&ve!==void 0&&ve.screen_at)){Me.next=3;break}return Me.next=3,Object(i.h)(Object(I.a)(Object(I.a)({},we),{},{reset:!0}));case 3:return Me.next=5,Object(i.R)({id:we.categoryId});case 5:if(Xe=Me.sent,!(Xe!=null&&Xe.is_commit)){Me.next=9;break}return Ne(),Me.abrupt("return");case 9:return Me.next=11,oe();case 11:$e=Me.sent,Le($e);case 13:case"end":return Me.stop()}},pe)}));return function(pe){return Ie.apply(this,arguments)}}()));case 1:case"end":return be.stop()}},ue)}));return function(){return Y.apply(this,arguments)}}(),Q=function(){var Y=Object(v.a)(a.a.mark(function ue(){var ae,be,Ie,pe;return a.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(ae=!1,console.log("fullscreen change"),!Object(r.a)()){ve.next=7;break}(be=S.exerciseUserInfo)!==null&&be!==void 0&&be.screen_at&&Object(i.h)(Object(I.a)(Object(I.a)({},we),{},{reset:!0})),clearTimeout(Z.current),ve.next=17;break;case 7:return ae=!0,ve.next=10,Object(i.h)(Object(I.a)({},we));case 10:return ve.next=12,oe();case 12:Ie=ve.sent,xe(Ie.used_screen_num),pe=setTimeout(Object(v.a)(a.a.mark(function Xe(){return a.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:case"end":return Ge.stop()}},Xe)})),S.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),Z.current=pe;case 17:R({type:"globalSetting/headerFooterToggle",payload:ae});case 18:case"end":return ve.stop()}},ue)}));return function(){return Y.apply(this,arguments)}}();return l.a.createElement("div",null,L)};W.a=Object(d.a)(function(E){var x=E.loading,O=E.user,C=E.exercise,w=E.globalSetting;return{globalSetting:w,user:O,exercise:C,loading:x.effects}})(u)},bQjk:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return function(v){var T=I,b=T.lib,g=b.CipherParams,s=T.enc,_=s.Hex,p=T.format,e=p.Hex={stringify:function(a){return a.ciphertext.toString(_)},parse:function(a){var n=_.parse(a);return g.create({ciphertext:n})}}}(),I.format.Hex})},bT9E:function(j,W,y){"use strict";y.d(W,"a",function(){return v});var I=y("VTBJ");function v(T,b){var g=Object(I.a)({},T);return Array.isArray(b)&&b.forEach(function(s){delete g[s]}),g}},biw7:function(j,W,y){"use strict";var I=y("q1tI"),v=y.n(I),T=I.createContext(null);W.a=T},c5Ni:function(j,W,y){},c5fP:function(j,W,y){"use strict";function I(Te){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(Ze){return typeof Ze}:I=function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze},I(Te)}Object.defineProperty(W,"__esModule",{value:!0}),W._tr_init=Xe,W._tr_stored_block=$e,W._tr_flush_block=Me,W._tr_tally=gt,W._tr_align=Ge;var v=b(y("6BzB"));function T(){if(typeof WeakMap!="function")return null;var Te=new WeakMap;return T=function(){return Te},Te}function b(Te){if(Te&&Te.__esModule)return Te;if(Te===null||I(Te)!=="object"&&typeof Te!="function")return{default:Te};var Ye=T();if(Ye&&Ye.has(Te))return Ye.get(Te);var Ze={},Ve=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Fe in Te)if(Object.prototype.hasOwnProperty.call(Te,Fe)){var Be=Ve?Object.getOwnPropertyDescriptor(Te,Fe):null;Be&&(Be.get||Be.set)?Object.defineProperty(Ze,Fe,Be):Ze[Fe]=Te[Fe]}return Ze.default=Te,Ye&&Ye.set(Te,Ze),Ze}var g=4,s=0,_=1,p=2;function e(Te){for(var Ye=Te.length;--Ye>=0;)Te[Ye]=0}var a=0,n=1,l=2,r=3,i=258,t=29,o=256,c=o+1+t,d=30,f=19,h=2*c+1,u=15,E=16,x=7,O=256,C=16,w=17,S=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],R=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=512,z=new Array((c+2)*2);e(z);var X=new Array(d*2);e(X);var k=new Array(M);e(k);var F=new Array(i-r+1);e(F);var U=new Array(t);e(U);var L=new Array(d);e(L);function B(Te,Ye,Ze,Ve,Fe){this.static_tree=Te,this.extra_bits=Ye,this.extra_base=Ze,this.elems=Ve,this.max_length=Fe,this.has_stree=Te&&Te.length}var Z,re,me;function Ee(Te,Ye){this.dyn_tree=Te,this.max_code=0,this.stat_desc=Ye}function De(Te){return Te<256?k[Te]:k[256+(Te>>>7)]}function te(Te,Ye){Te.pending_buf[Te.pending++]=Ye&255,Te.pending_buf[Te.pending++]=Ye>>>8&255}function Ce(Te,Ye,Ze){Te.bi_valid>E-Ze?(Te.bi_buf|=Ye<<Te.bi_valid&65535,te(Te,Te.bi_buf),Te.bi_buf=Ye>>E-Te.bi_valid,Te.bi_valid+=Ze-E):(Te.bi_buf|=Ye<<Te.bi_valid&65535,Te.bi_valid+=Ze)}function we(Te,Ye,Ze){Ce(Te,Ze[Ye*2],Ze[Ye*2+1])}function ce(Te,Ye){var Ze=0;do Ze|=Te&1,Te>>>=1,Ze<<=1;while(--Ye>0);return Ze>>>1}function le(Te){Te.bi_valid===16?(te(Te,Te.bi_buf),Te.bi_buf=0,Te.bi_valid=0):Te.bi_valid>=8&&(Te.pending_buf[Te.pending++]=Te.bi_buf&255,Te.bi_buf>>=8,Te.bi_valid-=8)}function oe(Te,Ye){var Ze=Ye.dyn_tree,Ve=Ye.max_code,Fe=Ye.stat_desc.static_tree,Be=Ye.stat_desc.has_stree,_e=Ye.stat_desc.extra_bits,Ae=Ye.stat_desc.extra_base,fe=Ye.stat_desc.max_length,ke,Je,ne,Qe,dt,Ke,et=0;for(Qe=0;Qe<=u;Qe++)Te.bl_count[Qe]=0;for(Ze[Te.heap[Te.heap_max]*2+1]=0,ke=Te.heap_max+1;ke<h;ke++){if(Je=Te.heap[ke],Qe=Ze[Ze[Je*2+1]*2+1]+1,Qe>fe&&(Qe=fe,et++),Ze[Je*2+1]=Qe,Je>Ve)continue;Te.bl_count[Qe]++,dt=0,Je>=Ae&&(dt=_e[Je-Ae]),Ke=Ze[Je*2],Te.opt_len+=Ke*(Qe+dt),Be&&(Te.static_len+=Ke*(Fe[Je*2+1]+dt))}if(et===0)return;do{for(Qe=fe-1;Te.bl_count[Qe]===0;)Qe--;Te.bl_count[Qe]--,Te.bl_count[Qe+1]+=2,Te.bl_count[fe]--,et-=2}while(et>0);for(Qe=fe;Qe!==0;Qe--)for(Je=Te.bl_count[Qe];Je!==0;){if(ne=Te.heap[--ke],ne>Ve)continue;Ze[ne*2+1]!==Qe&&(Te.opt_len+=(Qe-Ze[ne*2+1])*Ze[ne*2],Ze[ne*2+1]=Qe),Je--}}function xe(Te,Ye,Ze){var Ve=new Array(u+1),Fe=0,Be,_e;for(Be=1;Be<=u;Be++)Ve[Be]=Fe=Fe+Ze[Be-1]<<1;for(_e=0;_e<=Ye;_e++){var Ae=Te[_e*2+1];if(Ae===0)continue;Te[_e*2]=ce(Ve[Ae]++,Ae)}}function q(){var Te,Ye,Ze,Ve,Fe,Be=new Array(u+1);for(Ze=0,Ve=0;Ve<t-1;Ve++)for(U[Ve]=Ze,Te=0;Te<1<<D[Ve];Te++)F[Ze++]=Ve;for(F[Ze-1]=Ve,Fe=0,Ve=0;Ve<16;Ve++)for(L[Ve]=Fe,Te=0;Te<1<<R[Ve];Te++)k[Fe++]=Ve;for(Fe>>=7;Ve<d;Ve++)for(L[Ve]=Fe<<7,Te=0;Te<1<<R[Ve]-7;Te++)k[256+Fe++]=Ve;for(Ye=0;Ye<=u;Ye++)Be[Ye]=0;for(Te=0;Te<=143;)z[Te*2+1]=8,Te++,Be[8]++;for(;Te<=255;)z[Te*2+1]=9,Te++,Be[9]++;for(;Te<=279;)z[Te*2+1]=7,Te++,Be[7]++;for(;Te<=287;)z[Te*2+1]=8,Te++,Be[8]++;for(xe(z,c+1,Be),Te=0;Te<d;Te++)X[Te*2+1]=5,X[Te*2]=ce(Te,5);Z=new B(z,D,o+1,c,u),re=new B(X,R,0,d,u),me=new B(new Array(0),P,0,f,x)}function se(Te){var Ye;for(Ye=0;Ye<c;Ye++)Te.dyn_ltree[Ye*2]=0;for(Ye=0;Ye<d;Ye++)Te.dyn_dtree[Ye*2]=0;for(Ye=0;Ye<f;Ye++)Te.bl_tree[Ye*2]=0;Te.dyn_ltree[O*2]=1,Te.opt_len=Te.static_len=0,Te.last_lit=Te.matches=0}function Ne(Te){Te.bi_valid>8?te(Te,Te.bi_buf):Te.bi_valid>0&&(Te.pending_buf[Te.pending++]=Te.bi_buf),Te.bi_buf=0,Te.bi_valid=0}function de(Te,Ye,Ze,Ve){Ne(Te),Ve&&(te(Te,Ze),te(Te,~Ze)),v.arraySet(Te.pending_buf,Te.window,Ye,Ze,Te.pending),Te.pending+=Ze}function $(Te,Ye,Ze,Ve){var Fe=Ye*2,Be=Ze*2;return Te[Fe]<Te[Be]||Te[Fe]===Te[Be]&&Ve[Ye]<=Ve[Ze]}function Q(Te,Ye,Ze){for(var Ve=Te.heap[Ze],Fe=Ze<<1;Fe<=Te.heap_len&&!(Fe<Te.heap_len&&$(Ye,Te.heap[Fe+1],Te.heap[Fe],Te.depth)&&Fe++,$(Ye,Ve,Te.heap[Fe],Te.depth));)Te.heap[Ze]=Te.heap[Fe],Ze=Fe,Fe<<=1;Te.heap[Ze]=Ve}function Y(Te,Ye,Ze){var Ve,Fe,Be=0,_e,Ae;if(Te.last_lit!==0)do Ve=Te.pending_buf[Te.d_buf+Be*2]<<8|Te.pending_buf[Te.d_buf+Be*2+1],Fe=Te.pending_buf[Te.l_buf+Be],Be++,Ve===0?we(Te,Fe,Ye):(_e=F[Fe],we(Te,_e+o+1,Ye),Ae=D[_e],Ae!==0&&(Fe-=U[_e],Ce(Te,Fe,Ae)),Ve--,_e=De(Ve),we(Te,_e,Ze),Ae=R[_e],Ae!==0&&(Ve-=L[_e],Ce(Te,Ve,Ae)));while(Be<Te.last_lit);we(Te,O,Ye)}function ue(Te,Ye){var Ze=Ye.dyn_tree,Ve=Ye.stat_desc.static_tree,Fe=Ye.stat_desc.has_stree,Be=Ye.stat_desc.elems,_e,Ae,fe=-1,ke;for(Te.heap_len=0,Te.heap_max=h,_e=0;_e<Be;_e++)Ze[_e*2]!==0?(Te.heap[++Te.heap_len]=fe=_e,Te.depth[_e]=0):Ze[_e*2+1]=0;for(;Te.heap_len<2;)ke=Te.heap[++Te.heap_len]=fe<2?++fe:0,Ze[ke*2]=1,Te.depth[ke]=0,Te.opt_len--,Fe&&(Te.static_len-=Ve[ke*2+1]);for(Ye.max_code=fe,_e=Te.heap_len>>1;_e>=1;_e--)Q(Te,Ze,_e);ke=Be;do _e=Te.heap[1],Te.heap[1]=Te.heap[Te.heap_len--],Q(Te,Ze,1),Ae=Te.heap[1],Te.heap[--Te.heap_max]=_e,Te.heap[--Te.heap_max]=Ae,Ze[ke*2]=Ze[_e*2]+Ze[Ae*2],Te.depth[ke]=(Te.depth[_e]>=Te.depth[Ae]?Te.depth[_e]:Te.depth[Ae])+1,Ze[_e*2+1]=Ze[Ae*2+1]=ke,Te.heap[1]=ke++,Q(Te,Ze,1);while(Te.heap_len>=2);Te.heap[--Te.heap_max]=Te.heap[1],oe(Te,Ye),xe(Ze,fe,Te.bl_count)}function ae(Te,Ye,Ze){var Ve,Fe=-1,Be,_e=Ye[0*2+1],Ae=0,fe=7,ke=4;for(_e===0&&(fe=138,ke=3),Ye[(Ze+1)*2+1]=65535,Ve=0;Ve<=Ze;Ve++){if(Be=_e,_e=Ye[(Ve+1)*2+1],++Ae<fe&&Be===_e)continue;Ae<ke?Te.bl_tree[Be*2]+=Ae:Be!==0?(Be!==Fe&&Te.bl_tree[Be*2]++,Te.bl_tree[C*2]++):Ae<=10?Te.bl_tree[w*2]++:Te.bl_tree[S*2]++,Ae=0,Fe=Be,_e===0?(fe=138,ke=3):Be===_e?(fe=6,ke=3):(fe=7,ke=4)}}function be(Te,Ye,Ze){var Ve,Fe=-1,Be,_e=Ye[0*2+1],Ae=0,fe=7,ke=4;for(_e===0&&(fe=138,ke=3),Ve=0;Ve<=Ze;Ve++){if(Be=_e,_e=Ye[(Ve+1)*2+1],++Ae<fe&&Be===_e)continue;if(Ae<ke)do we(Te,Be,Te.bl_tree);while(--Ae!==0);else Be!==0?(Be!==Fe&&(we(Te,Be,Te.bl_tree),Ae--),we(Te,C,Te.bl_tree),Ce(Te,Ae-3,2)):Ae<=10?(we(Te,w,Te.bl_tree),Ce(Te,Ae-3,3)):(we(Te,S,Te.bl_tree),Ce(Te,Ae-11,7));Ae=0,Fe=Be,_e===0?(fe=138,ke=3):Be===_e?(fe=6,ke=3):(fe=7,ke=4)}}function Ie(Te){var Ye;for(ae(Te,Te.dyn_ltree,Te.l_desc.max_code),ae(Te,Te.dyn_dtree,Te.d_desc.max_code),ue(Te,Te.bl_desc),Ye=f-1;Ye>=3&&!(Te.bl_tree[N[Ye]*2+1]!==0);Ye--);return Te.opt_len+=3*(Ye+1)+5+5+4,Ye}function pe(Te,Ye,Ze,Ve){var Fe;for(Ce(Te,Ye-257,5),Ce(Te,Ze-1,5),Ce(Te,Ve-4,4),Fe=0;Fe<Ve;Fe++)Ce(Te,Te.bl_tree[N[Fe]*2+1],3);be(Te,Te.dyn_ltree,Ye-1),be(Te,Te.dyn_dtree,Ze-1)}function Le(Te){var Ye=4093624447,Ze;for(Ze=0;Ze<=31;Ze++,Ye>>>=1)if(Ye&1&&Te.dyn_ltree[Ze*2]!==0)return s;if(Te.dyn_ltree[9*2]!==0||Te.dyn_ltree[10*2]!==0||Te.dyn_ltree[13*2]!==0)return _;for(Ze=32;Ze<o;Ze++)if(Te.dyn_ltree[Ze*2]!==0)return _;return s}var ve=!1;function Xe(Te){ve||(q(),ve=!0),Te.l_desc=new Ee(Te.dyn_ltree,Z),Te.d_desc=new Ee(Te.dyn_dtree,re),Te.bl_desc=new Ee(Te.bl_tree,me),Te.bi_buf=0,Te.bi_valid=0,se(Te)}function $e(Te,Ye,Ze,Ve){Ce(Te,(a<<1)+(Ve?1:0),3),de(Te,Ye,Ze,!0)}function Ge(Te){Ce(Te,n<<1,3),we(Te,O,z),le(Te)}function Me(Te,Ye,Ze,Ve){var Fe,Be,_e=0;Te.level>0?(Te.strm.data_type===p&&(Te.strm.data_type=Le(Te)),ue(Te,Te.l_desc),ue(Te,Te.d_desc),_e=Ie(Te),Fe=Te.opt_len+3+7>>>3,Be=Te.static_len+3+7>>>3,Be<=Fe&&(Fe=Be)):Fe=Be=Ze+5,Ze+4<=Fe&&Ye!==-1?$e(Te,Ye,Ze,Ve):Te.strategy===g||Be===Fe?(Ce(Te,(n<<1)+(Ve?1:0),3),Y(Te,z,X)):(Ce(Te,(l<<1)+(Ve?1:0),3),pe(Te,Te.l_desc.max_code+1,Te.d_desc.max_code+1,_e+1),Y(Te,Te.dyn_ltree,Te.dyn_dtree)),se(Te),Ve&&Ne(Te)}function gt(Te,Ye,Ze){return Te.pending_buf[Te.d_buf+Te.last_lit*2]=Ye>>>8&255,Te.pending_buf[Te.d_buf+Te.last_lit*2+1]=Ye&255,Te.pending_buf[Te.l_buf+Te.last_lit]=Ze&255,Te.last_lit++,Ye===0?Te.dyn_ltree[Ze*2]++:(Te.matches++,Ye--,Te.dyn_ltree[(F[Ze]+o+1)*2]++,Te.dyn_dtree[De(Ye)*2]++),Te.last_lit===Te.lit_bufsize-1}},cRFk:function(j,W,y){j.exports=y.p+"static/RepositoryNoneData.828085a8.png"},"cf+g":function(j,W,y){j.exports=y.p+"static/mark.ad150797.svg"},csWT:function(j,W,y){j.exports=y.p+"static/choose.4ad1045f.svg"},cv67:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(v){var T=I,b=T.lib,g=b.WordArray,s=b.Hasher,_=T.algo,p=[];(function(){for(var i=0;i<64;i++)p[i]=v.abs(v.sin(i+1))*4294967296|0})();var e=_.MD5=s.extend({_doReset:function(){this._hash=new g.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,t){for(var o=0;o<16;o++){var c=t+o,d=i[c];i[c]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var f=this._hash.words,h=i[t+0],u=i[t+1],E=i[t+2],x=i[t+3],O=i[t+4],C=i[t+5],w=i[t+6],S=i[t+7],D=i[t+8],R=i[t+9],P=i[t+10],N=i[t+11],M=i[t+12],z=i[t+13],X=i[t+14],k=i[t+15],F=f[0],U=f[1],L=f[2],B=f[3];F=a(F,U,L,B,h,7,p[0]),B=a(B,F,U,L,u,12,p[1]),L=a(L,B,F,U,E,17,p[2]),U=a(U,L,B,F,x,22,p[3]),F=a(F,U,L,B,O,7,p[4]),B=a(B,F,U,L,C,12,p[5]),L=a(L,B,F,U,w,17,p[6]),U=a(U,L,B,F,S,22,p[7]),F=a(F,U,L,B,D,7,p[8]),B=a(B,F,U,L,R,12,p[9]),L=a(L,B,F,U,P,17,p[10]),U=a(U,L,B,F,N,22,p[11]),F=a(F,U,L,B,M,7,p[12]),B=a(B,F,U,L,z,12,p[13]),L=a(L,B,F,U,X,17,p[14]),U=a(U,L,B,F,k,22,p[15]),F=n(F,U,L,B,u,5,p[16]),B=n(B,F,U,L,w,9,p[17]),L=n(L,B,F,U,N,14,p[18]),U=n(U,L,B,F,h,20,p[19]),F=n(F,U,L,B,C,5,p[20]),B=n(B,F,U,L,P,9,p[21]),L=n(L,B,F,U,k,14,p[22]),U=n(U,L,B,F,O,20,p[23]),F=n(F,U,L,B,R,5,p[24]),B=n(B,F,U,L,X,9,p[25]),L=n(L,B,F,U,x,14,p[26]),U=n(U,L,B,F,D,20,p[27]),F=n(F,U,L,B,z,5,p[28]),B=n(B,F,U,L,E,9,p[29]),L=n(L,B,F,U,S,14,p[30]),U=n(U,L,B,F,M,20,p[31]),F=l(F,U,L,B,C,4,p[32]),B=l(B,F,U,L,D,11,p[33]),L=l(L,B,F,U,N,16,p[34]),U=l(U,L,B,F,X,23,p[35]),F=l(F,U,L,B,u,4,p[36]),B=l(B,F,U,L,O,11,p[37]),L=l(L,B,F,U,S,16,p[38]),U=l(U,L,B,F,P,23,p[39]),F=l(F,U,L,B,z,4,p[40]),B=l(B,F,U,L,h,11,p[41]),L=l(L,B,F,U,x,16,p[42]),U=l(U,L,B,F,w,23,p[43]),F=l(F,U,L,B,R,4,p[44]),B=l(B,F,U,L,M,11,p[45]),L=l(L,B,F,U,k,16,p[46]),U=l(U,L,B,F,E,23,p[47]),F=r(F,U,L,B,h,6,p[48]),B=r(B,F,U,L,S,10,p[49]),L=r(L,B,F,U,X,15,p[50]),U=r(U,L,B,F,C,21,p[51]),F=r(F,U,L,B,M,6,p[52]),B=r(B,F,U,L,x,10,p[53]),L=r(L,B,F,U,P,15,p[54]),U=r(U,L,B,F,u,21,p[55]),F=r(F,U,L,B,D,6,p[56]),B=r(B,F,U,L,k,10,p[57]),L=r(L,B,F,U,w,15,p[58]),U=r(U,L,B,F,z,21,p[59]),F=r(F,U,L,B,O,6,p[60]),B=r(B,F,U,L,N,10,p[61]),L=r(L,B,F,U,E,15,p[62]),U=r(U,L,B,F,R,21,p[63]),f[0]=f[0]+F|0,f[1]=f[1]+U|0,f[2]=f[2]+L|0,f[3]=f[3]+B|0},_doFinalize:function(){var i=this._data,t=i.words,o=this._nDataBytes*8,c=i.sigBytes*8;t[c>>>5]|=128<<24-c%32;var d=v.floor(o/4294967296),f=o;t[(c+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,t[(c+64>>>9<<4)+14]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,i.sigBytes=(t.length+1)*4,this._process();for(var h=this._hash,u=h.words,E=0;E<4;E++){var x=u[E];u[E]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return h},clone:function(){var i=s.clone.call(this);return i._hash=this._hash.clone(),i}});function a(i,t,o,c,d,f,h){var u=i+(t&o|~t&c)+d+h;return(u<<f|u>>>32-f)+t}function n(i,t,o,c,d,f,h){var u=i+(t&c|o&~c)+d+h;return(u<<f|u>>>32-f)+t}function l(i,t,o,c,d,f,h){var u=i+(t^o^c)+d+h;return(u<<f|u>>>32-f)+t}function r(i,t,o,c,d,f,h){var u=i+(o^(t|~c))+d+h;return(u<<f|u>>>32-f)+t}T.MD5=s._createHelper(e),T.HmacMD5=s._createHmacHelper(e)}(Math),I.MD5})},dPi7:function(j,W,y){j.exports=y.p+"static/appoint1.9457cf22.svg"},dTJi:function(j,W,y){},dejd:function(j,W,y){},djh8:function(j,W,y){j.exports=y.p+"static/qrCode.d852fdfc.png"},dmUQ:function(j,W,y){"use strict";var I=y("Ff2n"),v=y("rePB"),T=y("1OyB"),b=y("vuIU"),g=y("Ji7U"),s=y("md7G"),_=y("foSv"),p=y("q1tI"),e=y.n(p),a=y("TSYQ"),n=y.n(a),l=y("4IlW");function r(D,R){var P=Object.keys(D);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(D);R&&(N=N.filter(function(M){return Object.getOwnPropertyDescriptor(D,M).enumerable})),P.push.apply(P,N)}return P}function i(D){for(var R=1;R<arguments.length;R++){var P=arguments[R]!=null?arguments[R]:{};R%2?r(Object(P),!0).forEach(function(N){Object(v.a)(D,N,P[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(P)):r(Object(P)).forEach(function(N){Object.defineProperty(D,N,Object.getOwnPropertyDescriptor(P,N))})}return D}function t(D){var R=o();return function(){var N=Object(_.a)(D),M;if(R){var z=Object(_.a)(this).constructor;M=Reflect.construct(N,arguments,z)}else M=N.apply(this,arguments);return Object(s.a)(this,M)}}function o(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(D){return!1}}function c(){}function d(D){D.preventDefault()}var f=function(R){return R.replace(/[^\w.-]+/g,"")},h=200,u=600,E=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,x=function(R){return R!=null},O=function(R,P){return P===R||typeof P=="number"&&typeof R=="number"&&isNaN(P)&&isNaN(R)},C=function(D){Object(g.a)(P,D);var R=t(P);function P(N){var M;Object(T.a)(this,P),M=R.call(this,N),M.onKeyDown=function(k){var F=M.props,U=F.onKeyDown,L=F.onPressEnter;if(k.keyCode===l.a.UP){var B=M.getRatio(k);M.up(k,B,null),M.stop()}else if(k.keyCode===l.a.DOWN){var Z=M.getRatio(k);M.down(k,Z,null),M.stop()}else k.keyCode===l.a.ENTER&&L&&L(k);if(M.recordCursorPosition(),M.lastKeyCode=k.keyCode,U){for(var re=arguments.length,me=new Array(re>1?re-1:0),Ee=1;Ee<re;Ee++)me[Ee-1]=arguments[Ee];U.apply(void 0,[k].concat(me))}},M.onKeyUp=function(k){var F=M.props.onKeyUp;if(M.stop(),M.recordCursorPosition(),F){for(var U=arguments.length,L=new Array(U>1?U-1:0),B=1;B<U;B++)L[B-1]=arguments[B];F.apply(void 0,[k].concat(L))}},M.onChange=function(k){var F=M.props.onChange;M.state.focused&&(M.inputting=!0),M.rawInput=M.props.parser(M.getValueFromEvent(k)),M.setState({inputValue:M.rawInput}),F(M.toNumber(M.rawInput))},M.onMouseUp=function(){var k=M.props.onMouseUp;M.recordCursorPosition(),k&&k.apply(void 0,arguments)},M.onFocus=function(){var k;M.setState({focused:!0}),(k=M.props).onFocus.apply(k,arguments)},M.onBlur=function(){var k=M.props.onBlur;M.inputting=!1,M.setState({focused:!1});var F=M.getCurrentValidValue(M.state.inputValue),U=M.setValue(F,c);if(k){var L=M.input.value,B=M.getInputDisplayValue({focus:!1,value:U});M.input.value=B&&Number(B),k.apply(void 0,arguments),M.input.value=L}},M.getRatio=function(k){var F=1;return k.metaKey||k.ctrlKey?F=.1:k.shiftKey&&(F=10),F},M.getFullNum=function(k){return isNaN(k)?k:/e/i.test(String(k))?Number(k).toFixed(18).replace(/\.?0+$/,""):k},M.getPrecision=function(k){if(x(M.props.precision))return M.props.precision;var F=String(k);if(F.indexOf("e-")>=0)return parseInt(F.slice(F.indexOf("e-")+2),10);var U=0;return F.indexOf(".")>=0&&(U=F.length-F.indexOf(".")-1),U},M.getInputDisplayValue=function(k){var F=k||M.state,U=F.focused,L=F.inputValue,B=F.value,Z;U?Z=L:Z=M.toPrecisionAsStep(B),Z==null&&(Z="");var re=M.formatWrapper(Z);return x(M.props.decimalSeparator)&&(re=re.toString().replace(".",M.props.decimalSeparator)),re},M.recordCursorPosition=function(){try{M.cursorStart=M.input.selectionStart,M.cursorEnd=M.input.selectionEnd,M.currentValue=M.input.value,M.cursorBefore=M.input.value.substring(0,M.cursorStart),M.cursorAfter=M.input.value.substring(M.cursorEnd)}catch(k){}},M.restoreByAfter=function(k){if(k===void 0)return!1;var F=M.input.value,U=F.lastIndexOf(k);if(U===-1)return!1;var L=M.cursorBefore.length;return M.lastKeyCode===l.a.DELETE&&M.cursorBefore.charAt(L-1)===k[0]?(M.fixCaret(L,L),!0):U+k.length===F.length?(M.fixCaret(U,U),!0):!1},M.partRestoreByAfter=function(k){return k===void 0?!1:Array.prototype.some.call(k,function(F,U){var L=k.substring(U);return M.restoreByAfter(L)})},M.isNotCompleteNumber=function(k){return isNaN(k)||k===""||k===null||k&&k.toString().indexOf(".")===k.toString().length-1},M.stop=function(){M.autoStepTimer&&clearTimeout(M.autoStepTimer)},M.down=function(k,F,U){M.pressingUpOrDown=!0,M.step("down",k,F,U)},M.up=function(k,F,U){M.pressingUpOrDown=!0,M.step("up",k,F,U)},M.saveInput=function(k){M.input=k};var z=N.value;z===void 0&&(z=N.defaultValue),M.state={focused:N.autoFocus};var X=M.getValidValue(M.toNumber(z));return M.state=i(i({},M.state),{},{inputValue:M.toPrecisionAsStep(X),value:X}),M}return Object(b.a)(P,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(M){var z=this.props,X=z.value,k=z.onChange,F=z.max,U=z.min,L=this.state.focused;if(M){if(!O(M.value,X)||!O(M.max,F)||!O(M.min,U)){var B=L?X:this.getValidValue(X),Z;this.pressingUpOrDown?Z=B:this.inputting?Z=this.rawInput:Z=this.toPrecisionAsStep(B),this.setState({value:B,inputValue:Z})}var re="value"in this.props?X:this.state.value;"max"in this.props&&M.max!==F&&typeof re=="number"&&re>F&&k&&k(F),"min"in this.props&&M.min!==U&&typeof re=="number"&&re<U&&k&&k(U)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var me=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===l.a.BACKSPACE?me=this.cursorStart-1:this.lastKeyCode===l.a.DELETE&&(me=this.cursorStart):me=this.input.value.length,this.fixCaret(me,me)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case l.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case l.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Ee){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(M){var z=M;return z===""?z="":this.isNotCompleteNumber(parseFloat(z))?z=this.state.value:z=this.getValidValue(z),this.toNumber(z)}},{key:"getValueFromEvent",value:function(M){var z=M.target.value.trim().replace(/。/g,".");return x(this.props.decimalSeparator)&&(z=z.replace(this.props.decimalSeparator,".")),z}},{key:"getValidValue",value:function(M){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,k=parseFloat(M);return isNaN(k)?M:(k<z&&(k=z),k>X&&(k=X),k)}},{key:"setValue",value:function(M,z){var X=this.props.precision,k=this.isNotCompleteNumber(parseFloat(M))?null:parseFloat(M),F=this.state.value,U=F===void 0?null:F,L=this.state.inputValue,B=L===void 0?null:L,Z=typeof k=="number"?k.toFixed(X):"".concat(k),re=k!==U||Z!=="".concat(B);return"value"in this.props?(B=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:B},z)):this.setState({value:k,inputValue:this.toPrecisionAsStep(M)},z),re&&this.props.onChange(k),k}},{key:"getMaxPrecision",value:function(M){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=this.props,k=X.precision,F=X.step;if(x(k))return k;var U=this.getPrecision(z),L=this.getPrecision(F),B=this.getPrecision(M);return M?Math.max(B,U+L):U+L}},{key:"getPrecisionFactor",value:function(M){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=this.getMaxPrecision(M,z);return Math.pow(10,X)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(M){return this.props.formatter?this.props.formatter(M):M}},{key:"toPrecisionAsStep",value:function(M){if(this.isNotCompleteNumber(M)||M==="")return M;var z=Math.abs(this.getMaxPrecision(M));return isNaN(z)?M.toString():Number(M).toFixed(z)}},{key:"toNumber",value:function(M){var z=this.props.precision,X=this.state.focused,k=M&&M.length>16&&X;return this.isNotCompleteNumber(M)||k?M:x(z)?Math.round(M*Math.pow(10,z))/Math.pow(10,z):Number(M)}},{key:"upStep",value:function(M,z){var X=this.props.step,k=this.getPrecisionFactor(M,z),F=Math.abs(this.getMaxPrecision(M,z)),U=((k*M+k*X*z)/k).toFixed(F);return this.toNumber(U)}},{key:"downStep",value:function(M,z){var X=this.props.step,k=this.getPrecisionFactor(M,z),F=Math.abs(this.getMaxPrecision(M,z)),U=((k*M-k*X*z)/k).toFixed(F);return this.toNumber(U)}},{key:"step",value:function(M,z){var X=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,F=arguments.length>3?arguments[3]:void 0;this.stop(),z&&(z.persist(),z.preventDefault());var U=this.props;if(U.disabled)return;var L=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(L))return;var B=this["".concat(M,"Step")](L,k),Z=B>U.max||B<U.min;if(B>U.max?B=U.max:B<U.min&&(B=U.min),this.setValue(B,null),this.setState({focused:!0},function(){X.pressingUpOrDown=!1}),Z)return;this.autoStepTimer=setTimeout(function(){X[M](z,k,!0)},F?h:u)}},{key:"fixCaret",value:function(M,z){if(M===void 0||z===void 0||!this.input||!this.input.value)return;try{var X=this.input.selectionStart,k=this.input.selectionEnd;(M!==X||z!==k)&&this.input.setSelectionRange(M,z)}catch(F){}}},{key:"render",value:function(){var M,z=this.props,X=z.prefixCls,k=z.disabled,F=z.readOnly,U=z.useTouch,L=z.autoComplete,B=z.upHandler,Z=z.downHandler,re=z.className,me=z.max,Ee=z.min,De=z.style,te=z.title,Ce=z.onMouseEnter,we=z.onMouseLeave,ce=z.onMouseOver,le=z.onMouseOut,oe=z.required,xe=z.onClick,q=z.tabIndex,se=z.type,Ne=z.placeholder,de=z.id,$=z.inputMode,Q=z.pattern,Y=z.step,ue=z.maxLength,ae=z.autoFocus,be=z.name,Ie=z.onPaste,pe=z.onInput,Le=Object(I.a)(z,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),ve=this.state,Xe=ve.value,$e=ve.focused,Ge=n()(X,(M={},Object(v.a)(M,re,!!re),Object(v.a)(M,"".concat(X,"-disabled"),k),Object(v.a)(M,"".concat(X,"-focused"),$e),M)),Me={};Object.keys(Le).forEach(function(ke){(ke.substr(0,5)==="data-"||ke.substr(0,5)==="aria-"||ke==="role")&&(Me[ke]=Le[ke])});var gt=!F&&!k,Te=this.getInputDisplayValue(null),Ye=(Xe||Xe===0)&&(isNaN(Xe)||Number(Xe)>=me),Ze=(Xe||Xe===0)&&(isNaN(Xe)||Number(Xe)<=Ee),Ve=Ye||k||F,Fe=Ze||k||F,Be=n()("".concat(X,"-handler"),"".concat(X,"-handler-up"),Object(v.a)({},"".concat(X,"-handler-up-disabled"),Ve)),_e=n()("".concat(X,"-handler"),"".concat(X,"-handler-down"),Object(v.a)({},"".concat(X,"-handler-down-disabled"),Fe)),Ae=U?{onTouchStart:Ve?c:this.up,onTouchEnd:this.stop}:{onMouseDown:Ve?c:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},fe=U?{onTouchStart:Fe?c:this.down,onTouchEnd:this.stop}:{onMouseDown:Fe?c:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ge,style:De,title:te,onMouseEnter:Ce,onMouseLeave:we,onMouseOver:ce,onMouseOut:le,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(X,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Ae,{role:"button","aria-label":"Increase Value","aria-disabled":Ve,className:Be}),B||e.a.createElement("span",{unselectable:"on",className:"".concat(X,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},fe,{role:"button","aria-label":"Decrease Value","aria-disabled":Fe,className:_e}),Z||e.a.createElement("span",{unselectable:"on",className:"".concat(X,"-handler-down-inner"),onClick:d}))),e.a.createElement("div",{className:"".concat(X,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ee,"aria-valuemax":me,"aria-valuenow":Xe,required:oe,type:se,placeholder:Ne,onPaste:Ie,onClick:xe,onMouseUp:this.onMouseUp,className:"".concat(X,"-input"),tabIndex:q,autoComplete:L,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:gt?this.onKeyDown:c,onKeyUp:gt?this.onKeyUp:c,autoFocus:ae,maxLength:ue,readOnly:F,disabled:k,max:me,min:Ee,step:Y,name:be,title:te,id:de,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Te),pattern:Q,inputMode:$,onInput:pe},Me))))}}]),P}(e.a.Component);C.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:c,onKeyDown:c,onPressEnter:c,onFocus:c,onBlur:c,parser:f,required:!1,autoComplete:"off"};var w=C,S=W.a=w},e7zE:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("3y9D"),y("WYAk"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.Base,g=T.WordArray,s=v.algo,_=s.SHA1,p=s.HMAC,e=s.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:_,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,n){for(var l=this.cfg,r=p.create(l.hasher,a),i=g.create(),t=g.create([1]),o=i.words,c=t.words,d=l.keySize,f=l.iterations;o.length<d;){var h=r.update(n).finalize(t);r.reset();for(var u=h.words,E=u.length,x=h,O=1;O<f;O++){x=r.finalize(x),r.reset();for(var C=x.words,w=0;w<E;w++)u[w]^=C[w]}i.concat(h),c[0]++}return i.sigBytes=d*4,i}});v.PBKDF2=function(a,n,l){return e.create(l).compute(a,n)}}(),I.PBKDF2})},eP3c:function(j,W,y){"use strict";function I(_e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(fe){return typeof fe}:I=function(fe){return fe&&typeof Symbol=="function"&&fe.constructor===Symbol&&fe!==Symbol.prototype?"symbol":typeof fe},I(_e)}Object.defineProperty(W,"__esModule",{value:!0}),W.inflateReset=pe,W.inflateReset2=Le,W.inflateResetKeep=Ie,W.inflateInit=Xe,W.inflateInit2=ve,W.inflate=Ye,W.inflateEnd=Ze,W.inflateGetHeader=Ve,W.inflateSetDictionary=Fe,W.inflateInfo=W.Z_DEFLATED=W.Z_BUF_ERROR=W.Z_MEM_ERROR=W.Z_DATA_ERROR=W.Z_STREAM_ERROR=W.Z_NEED_DICT=W.Z_STREAM_END=W.Z_OK=W.Z_TREES=W.Z_BLOCK=W.Z_FINISH=void 0;var v=e(y("6BzB")),T=_(y("xlC8")),b=_(y("QV2g")),g=_(y("sjKO")),s=_(y("JSwD"));function _(_e){return _e&&_e.__esModule?_e:{default:_e}}function p(){if(typeof WeakMap!="function")return null;var _e=new WeakMap;return p=function(){return _e},_e}function e(_e){if(_e&&_e.__esModule)return _e;if(_e===null||I(_e)!=="object"&&typeof _e!="function")return{default:_e};var Ae=p();if(Ae&&Ae.has(_e))return Ae.get(_e);var fe={},ke=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Je in _e)if(Object.prototype.hasOwnProperty.call(_e,Je)){var ne=ke?Object.getOwnPropertyDescriptor(_e,Je):null;ne&&(ne.get||ne.set)?Object.defineProperty(fe,Je,ne):fe[Je]=_e[Je]}return fe.default=_e,Ae&&Ae.set(_e,fe),fe}var a=0,n=1,l=2,r=4;W.Z_FINISH=r;var i=5;W.Z_BLOCK=i;var t=6;W.Z_TREES=t;var o=0;W.Z_OK=o;var c=1;W.Z_STREAM_END=c;var d=2;W.Z_NEED_DICT=d;var f=-2;W.Z_STREAM_ERROR=f;var h=-3;W.Z_DATA_ERROR=h;var u=-4;W.Z_MEM_ERROR=u;var E=-5;W.Z_BUF_ERROR=E;var x=8;W.Z_DEFLATED=x;var O=1,C=2,w=3,S=4,D=5,R=6,P=7,N=8,M=9,z=10,X=11,k=12,F=13,U=14,L=15,B=16,Z=17,re=18,me=19,Ee=20,De=21,te=22,Ce=23,we=24,ce=25,le=26,oe=27,xe=28,q=29,se=30,Ne=31,de=32,$=852,Q=592,Y=15,ue=Y;function ae(_e){return(_e>>>24&255)+(_e>>>8&65280)+((_e&65280)<<8)+((_e&255)<<24)}function be(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new v.Buf16(320),this.work=new v.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ie(_e){var Ae;return!_e||!_e.state?f:(Ae=_e.state,_e.total_in=_e.total_out=Ae.total=0,_e.msg="",Ae.wrap&&(_e.adler=Ae.wrap&1),Ae.mode=O,Ae.last=0,Ae.havedict=0,Ae.dmax=32768,Ae.head=null,Ae.hold=0,Ae.bits=0,Ae.lencode=Ae.lendyn=new v.Buf32($),Ae.distcode=Ae.distdyn=new v.Buf32(Q),Ae.sane=1,Ae.back=-1,o)}function pe(_e){var Ae;return!_e||!_e.state?f:(Ae=_e.state,Ae.wsize=0,Ae.whave=0,Ae.wnext=0,Ie(_e))}function Le(_e,Ae){var fe,ke;return!_e||!_e.state?f:(ke=_e.state,Ae<0?(fe=0,Ae=-Ae):(fe=(Ae>>4)+1,Ae<48&&(Ae&=15)),Ae&&(Ae<8||Ae>15)?f:(ke.window!==null&&ke.wbits!==Ae&&(ke.window=null),ke.wrap=fe,ke.wbits=Ae,pe(_e)))}function ve(_e,Ae){var fe,ke;return _e?(ke=new be,_e.state=ke,ke.window=null,fe=Le(_e,Ae),fe!==o&&(_e.state=null),fe):f}function Xe(_e){return ve(_e,ue)}var $e=!0,Ge,Me;function gt(_e){if($e){var Ae;for(Ge=new v.Buf32(512),Me=new v.Buf32(32),Ae=0;Ae<144;)_e.lens[Ae++]=8;for(;Ae<256;)_e.lens[Ae++]=9;for(;Ae<280;)_e.lens[Ae++]=7;for(;Ae<288;)_e.lens[Ae++]=8;for((0,s.default)(n,_e.lens,0,288,Ge,0,_e.work,{bits:9}),Ae=0;Ae<32;)_e.lens[Ae++]=5;(0,s.default)(l,_e.lens,0,32,Me,0,_e.work,{bits:5}),$e=!1}_e.lencode=Ge,_e.lenbits=9,_e.distcode=Me,_e.distbits=5}function Te(_e,Ae,fe,ke){var Je,ne=_e.state;return ne.window===null&&(ne.wsize=1<<ne.wbits,ne.wnext=0,ne.whave=0,ne.window=new v.Buf8(ne.wsize)),ke>=ne.wsize?(v.arraySet(ne.window,Ae,fe-ne.wsize,ne.wsize,0),ne.wnext=0,ne.whave=ne.wsize):(Je=ne.wsize-ne.wnext,Je>ke&&(Je=ke),v.arraySet(ne.window,Ae,fe-ke,Je,ne.wnext),ke-=Je,ke?(v.arraySet(ne.window,Ae,fe-ke,ke,0),ne.wnext=ke,ne.whave=ne.wsize):(ne.wnext+=Je,ne.wnext===ne.wsize&&(ne.wnext=0),ne.whave<ne.wsize&&(ne.whave+=Je))),0}function Ye(_e,Ae){var fe,ke,Je,ne,Qe,dt,Ke,et,rt,bt,ut,ot,Ue,We,ft=0,nt,Dt,Kt,vt,Ht,Ft,Lt,zt,Qt=new v.Buf8(4),bn,Zt,$t=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_e||!_e.state||!_e.output||!_e.input&&_e.avail_in!==0)return f;fe=_e.state,fe.mode===k&&(fe.mode=F),Qe=_e.next_out,Je=_e.output,Ke=_e.avail_out,ne=_e.next_in,ke=_e.input,dt=_e.avail_in,et=fe.hold,rt=fe.bits,bt=dt,ut=Ke,zt=o;e:for(;;)switch(fe.mode){case O:if(fe.wrap===0){fe.mode=F;break}for(;rt<16;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(fe.wrap&2&&et===35615){fe.check=0,Qt[0]=et&255,Qt[1]=et>>>8&255,fe.check=(0,b.default)(fe.check,Qt,2,0),et=0,rt=0,fe.mode=C;break}if(fe.flags=0,fe.head&&(fe.head.done=!1),!(fe.wrap&1)||(((et&255)<<8)+(et>>8))%31){_e.msg="incorrect header check",fe.mode=se;break}if((et&15)!==x){_e.msg="unknown compression method",fe.mode=se;break}if(et>>>=4,rt-=4,Lt=(et&15)+8,fe.wbits===0)fe.wbits=Lt;else if(Lt>fe.wbits){_e.msg="invalid window size",fe.mode=se;break}fe.dmax=1<<Lt,_e.adler=fe.check=1,fe.mode=et&512?z:k,et=0,rt=0;break;case C:for(;rt<16;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(fe.flags=et,(fe.flags&255)!==x){_e.msg="unknown compression method",fe.mode=se;break}if(fe.flags&57344){_e.msg="unknown header flags set",fe.mode=se;break}fe.head&&(fe.head.text=et>>8&1),fe.flags&512&&(Qt[0]=et&255,Qt[1]=et>>>8&255,fe.check=(0,b.default)(fe.check,Qt,2,0)),et=0,rt=0,fe.mode=w;case w:for(;rt<32;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}fe.head&&(fe.head.time=et),fe.flags&512&&(Qt[0]=et&255,Qt[1]=et>>>8&255,Qt[2]=et>>>16&255,Qt[3]=et>>>24&255,fe.check=(0,b.default)(fe.check,Qt,4,0)),et=0,rt=0,fe.mode=S;case S:for(;rt<16;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}fe.head&&(fe.head.xflags=et&255,fe.head.os=et>>8),fe.flags&512&&(Qt[0]=et&255,Qt[1]=et>>>8&255,fe.check=(0,b.default)(fe.check,Qt,2,0)),et=0,rt=0,fe.mode=D;case D:if(fe.flags&1024){for(;rt<16;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}fe.length=et,fe.head&&(fe.head.extra_len=et),fe.flags&512&&(Qt[0]=et&255,Qt[1]=et>>>8&255,fe.check=(0,b.default)(fe.check,Qt,2,0)),et=0,rt=0}else fe.head&&(fe.head.extra=null);fe.mode=R;case R:if(fe.flags&1024&&(ot=fe.length,ot>dt&&(ot=dt),ot&&(fe.head&&(Lt=fe.head.extra_len-fe.length,fe.head.extra||(fe.head.extra=new Array(fe.head.extra_len)),v.arraySet(fe.head.extra,ke,ne,ot,Lt)),fe.flags&512&&(fe.check=(0,b.default)(fe.check,ke,ot,ne)),dt-=ot,ne+=ot,fe.length-=ot),fe.length))break e;fe.length=0,fe.mode=P;case P:if(fe.flags&2048){if(dt===0)break e;ot=0;do Lt=ke[ne+ot++],fe.head&&Lt&&fe.length<65536&&(fe.head.name+=String.fromCharCode(Lt));while(Lt&&ot<dt);if(fe.flags&512&&(fe.check=(0,b.default)(fe.check,ke,ot,ne)),dt-=ot,ne+=ot,Lt)break e}else fe.head&&(fe.head.name=null);fe.length=0,fe.mode=N;case N:if(fe.flags&4096){if(dt===0)break e;ot=0;do Lt=ke[ne+ot++],fe.head&&Lt&&fe.length<65536&&(fe.head.comment+=String.fromCharCode(Lt));while(Lt&&ot<dt);if(fe.flags&512&&(fe.check=(0,b.default)(fe.check,ke,ot,ne)),dt-=ot,ne+=ot,Lt)break e}else fe.head&&(fe.head.comment=null);fe.mode=M;case M:if(fe.flags&512){for(;rt<16;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(et!==(fe.check&65535)){_e.msg="header crc mismatch",fe.mode=se;break}et=0,rt=0}fe.head&&(fe.head.hcrc=fe.flags>>9&1,fe.head.done=!0),_e.adler=fe.check=0,fe.mode=k;break;case z:for(;rt<32;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}_e.adler=fe.check=ae(et),et=0,rt=0,fe.mode=X;case X:if(fe.havedict===0)return _e.next_out=Qe,_e.avail_out=Ke,_e.next_in=ne,_e.avail_in=dt,fe.hold=et,fe.bits=rt,d;_e.adler=fe.check=1,fe.mode=k;case k:if(Ae===i||Ae===t)break e;case F:if(fe.last){et>>>=rt&7,rt-=rt&7,fe.mode=oe;break}for(;rt<3;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}fe.last=et&1,et>>>=1,rt-=1;switch(et&3){case 0:fe.mode=U;break;case 1:if(gt(fe),fe.mode=Ee,Ae===t){et>>>=2,rt-=2;break e}break;case 2:fe.mode=Z;break;case 3:_e.msg="invalid block type",fe.mode=se}et>>>=2,rt-=2;break;case U:for(et>>>=rt&7,rt-=rt&7;rt<32;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if((et&65535)!==(et>>>16^65535)){_e.msg="invalid stored block lengths",fe.mode=se;break}if(fe.length=et&65535,et=0,rt=0,fe.mode=L,Ae===t)break e;case L:fe.mode=B;case B:if(ot=fe.length,ot){if(ot>dt&&(ot=dt),ot>Ke&&(ot=Ke),ot===0)break e;v.arraySet(Je,ke,ne,ot,Qe),dt-=ot,ne+=ot,Ke-=ot,Qe+=ot,fe.length-=ot;break}fe.mode=k;break;case Z:for(;rt<14;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(fe.nlen=(et&31)+257,et>>>=5,rt-=5,fe.ndist=(et&31)+1,et>>>=5,rt-=5,fe.ncode=(et&15)+4,et>>>=4,rt-=4,fe.nlen>286||fe.ndist>30){_e.msg="too many length or distance symbols",fe.mode=se;break}fe.have=0,fe.mode=re;case re:for(;fe.have<fe.ncode;){for(;rt<3;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}fe.lens[$t[fe.have++]]=et&7,et>>>=3,rt-=3}for(;fe.have<19;)fe.lens[$t[fe.have++]]=0;if(fe.lencode=fe.lendyn,fe.lenbits=7,bn={bits:fe.lenbits},zt=(0,s.default)(a,fe.lens,0,19,fe.lencode,0,fe.work,bn),fe.lenbits=bn.bits,zt){_e.msg="invalid code lengths set",fe.mode=se;break}fe.have=0,fe.mode=me;case me:for(;fe.have<fe.nlen+fe.ndist;){for(;!(ft=fe.lencode[et&(1<<fe.lenbits)-1],nt=ft>>>24,Dt=ft>>>16&255,Kt=ft&65535,nt<=rt);){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(Kt<16)et>>>=nt,rt-=nt,fe.lens[fe.have++]=Kt;else{if(Kt===16){for(Zt=nt+2;rt<Zt;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(et>>>=nt,rt-=nt,fe.have===0){_e.msg="invalid bit length repeat",fe.mode=se;break}Lt=fe.lens[fe.have-1],ot=3+(et&3),et>>>=2,rt-=2}else if(Kt===17){for(Zt=nt+3;rt<Zt;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}et>>>=nt,rt-=nt,Lt=0,ot=3+(et&7),et>>>=3,rt-=3}else{for(Zt=nt+7;rt<Zt;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}et>>>=nt,rt-=nt,Lt=0,ot=11+(et&127),et>>>=7,rt-=7}if(fe.have+ot>fe.nlen+fe.ndist){_e.msg="invalid bit length repeat",fe.mode=se;break}for(;ot--;)fe.lens[fe.have++]=Lt}}if(fe.mode===se)break;if(fe.lens[256]===0){_e.msg="invalid code -- missing end-of-block",fe.mode=se;break}if(fe.lenbits=9,bn={bits:fe.lenbits},zt=(0,s.default)(n,fe.lens,0,fe.nlen,fe.lencode,0,fe.work,bn),fe.lenbits=bn.bits,zt){_e.msg="invalid literal/lengths set",fe.mode=se;break}if(fe.distbits=6,fe.distcode=fe.distdyn,bn={bits:fe.distbits},zt=(0,s.default)(l,fe.lens,fe.nlen,fe.ndist,fe.distcode,0,fe.work,bn),fe.distbits=bn.bits,zt){_e.msg="invalid distances set",fe.mode=se;break}if(fe.mode=Ee,Ae===t)break e;case Ee:fe.mode=De;case De:if(dt>=6&&Ke>=258){_e.next_out=Qe,_e.avail_out=Ke,_e.next_in=ne,_e.avail_in=dt,fe.hold=et,fe.bits=rt,(0,g.default)(_e,ut),Qe=_e.next_out,Je=_e.output,Ke=_e.avail_out,ne=_e.next_in,ke=_e.input,dt=_e.avail_in,et=fe.hold,rt=fe.bits,fe.mode===k&&(fe.back=-1);break}for(fe.back=0;!(ft=fe.lencode[et&(1<<fe.lenbits)-1],nt=ft>>>24,Dt=ft>>>16&255,Kt=ft&65535,nt<=rt);){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(Dt&&(Dt&240)===0){for(vt=nt,Ht=Dt,Ft=Kt;!(ft=fe.lencode[Ft+((et&(1<<vt+Ht)-1)>>vt)],nt=ft>>>24,Dt=ft>>>16&255,Kt=ft&65535,vt+nt<=rt);){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}et>>>=vt,rt-=vt,fe.back+=vt}if(et>>>=nt,rt-=nt,fe.back+=nt,fe.length=Kt,Dt===0){fe.mode=le;break}if(Dt&32){fe.back=-1,fe.mode=k;break}if(Dt&64){_e.msg="invalid literal/length code",fe.mode=se;break}fe.extra=Dt&15,fe.mode=te;case te:if(fe.extra){for(Zt=fe.extra;rt<Zt;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}fe.length+=et&(1<<fe.extra)-1,et>>>=fe.extra,rt-=fe.extra,fe.back+=fe.extra}fe.was=fe.length,fe.mode=Ce;case Ce:for(;!(ft=fe.distcode[et&(1<<fe.distbits)-1],nt=ft>>>24,Dt=ft>>>16&255,Kt=ft&65535,nt<=rt);){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if((Dt&240)===0){for(vt=nt,Ht=Dt,Ft=Kt;!(ft=fe.distcode[Ft+((et&(1<<vt+Ht)-1)>>vt)],nt=ft>>>24,Dt=ft>>>16&255,Kt=ft&65535,vt+nt<=rt);){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}et>>>=vt,rt-=vt,fe.back+=vt}if(et>>>=nt,rt-=nt,fe.back+=nt,Dt&64){_e.msg="invalid distance code",fe.mode=se;break}fe.offset=Kt,fe.extra=Dt&15,fe.mode=we;case we:if(fe.extra){for(Zt=fe.extra;rt<Zt;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}fe.offset+=et&(1<<fe.extra)-1,et>>>=fe.extra,rt-=fe.extra,fe.back+=fe.extra}if(fe.offset>fe.dmax){_e.msg="invalid distance too far back",fe.mode=se;break}fe.mode=ce;case ce:if(Ke===0)break e;if(ot=ut-Ke,fe.offset>ot){if(ot=fe.offset-ot,ot>fe.whave&&fe.sane){_e.msg="invalid distance too far back",fe.mode=se;break}ot>fe.wnext?(ot-=fe.wnext,Ue=fe.wsize-ot):Ue=fe.wnext-ot,ot>fe.length&&(ot=fe.length),We=fe.window}else We=Je,Ue=Qe-fe.offset,ot=fe.length;ot>Ke&&(ot=Ke),Ke-=ot,fe.length-=ot;do Je[Qe++]=We[Ue++];while(--ot);fe.length===0&&(fe.mode=De);break;case le:if(Ke===0)break e;Je[Qe++]=fe.length,Ke--,fe.mode=De;break;case oe:if(fe.wrap){for(;rt<32;){if(dt===0)break e;dt--,et|=ke[ne++]<<rt,rt+=8}if(ut-=Ke,_e.total_out+=ut,fe.total+=ut,ut&&(_e.adler=fe.check=fe.flags?(0,b.default)(fe.check,Je,ut,Qe-ut):(0,T.default)(fe.check,Je,ut,Qe-ut)),ut=Ke,(fe.flags?et:ae(et))!==fe.check){_e.msg="incorrect data check",fe.mode=se;break}et=0,rt=0}fe.mode=xe;case xe:if(fe.wrap&&fe.flags){for(;rt<32;){if(dt===0)break e;dt--,et+=ke[ne++]<<rt,rt+=8}if(et!==(fe.total&4294967295)){_e.msg="incorrect length check",fe.mode=se;break}et=0,rt=0}fe.mode=q;case q:zt=c;break e;case se:zt=h;break e;case Ne:return u;case de:default:return f}return _e.next_out=Qe,_e.avail_out=Ke,_e.next_in=ne,_e.avail_in=dt,fe.hold=et,fe.bits=rt,(fe.wsize||ut!==_e.avail_out&&fe.mode<se&&(fe.mode<oe||Ae!==r))&&Te(_e,_e.output,_e.next_out,ut-_e.avail_out)?(fe.mode=Ne,u):(bt-=_e.avail_in,ut-=_e.avail_out,_e.total_in+=bt,_e.total_out+=ut,fe.total+=ut,fe.wrap&&ut&&(_e.adler=fe.check=fe.flags?(0,b.default)(fe.check,Je,ut,_e.next_out-ut):(0,T.default)(fe.check,Je,ut,_e.next_out-ut)),_e.data_type=fe.bits+(fe.last?64:0)+(fe.mode===k?128:0)+(fe.mode===Ee||fe.mode===L?256:0),(bt===0&&ut===0||Ae===r)&&zt===o&&(zt=E),zt)}function Ze(_e){if(!_e||!_e.state)return f;var Ae=_e.state;return Ae.window&&(Ae.window=null),_e.state=null,o}function Ve(_e,Ae){var fe;return!_e||!_e.state?f:(fe=_e.state,(fe.wrap&2)===0?f:(fe.head=Ae,Ae.done=!1,o))}function Fe(_e,Ae){var fe=Ae.length,ke,Je,ne;return!_e||!_e.state?f:(ke=_e.state,ke.wrap!==0&&ke.mode!==X?f:ke.mode===X&&(Je=1,Je=(0,T.default)(Je,Ae,fe,0),Je!==ke.check)?h:(ne=Te(_e,Ae,fe,fe),ne?(ke.mode=Ne,u):(ke.havedict=1,o)))}var Be="pako inflate (from Nodeca project)";W.inflateInfo=Be},"f+oW":function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAABz0lEQVR4Xu3csU7DQBRE0V1+LNCn5DNT0mN+DCNoQzNjfBVWl/o9T3wYNiiyMq+3fR/+nC4whT7d+CdAaMZZaMhZaKEpASjHM1poSACKsdFCQwJQjI0WGhKAYmy00JAAFGOjhYYEoBgbLTQkAMXYaKEhASjGRgsNCUAxNlpoSACKsdFCQwJQjI0WGhKAYmz0YtDb2+t8ge4pirne9vcxxnO0VAxTjRYaeppUaAq6+GsjV5Y5Oki0h8yizuiHvHnyRQkNaQstNCQAxdhooSEBKMZGCw0JQDE2ejHobezj49A9PY19fI556Bq/Lc9x8dO7P1e9v6AfkwLI3xHLQR8+Os6CX+zoOIvp31zX/zqgX5XQQkMCUIyNFhoSgGJstNCQABRjo4WGBKAYqtEbdD9tzDIP0PhIGPVImE+TMt9NaqOhRrdn5zJ71JvhMmDtjQjdyoV7Qodg7bjQrVy4J3QI1o4L3cqFe0KHYO240K1cuCd0CNaOC93KhXtCh2DtuNCtXLgndAjWjgvdyoV7Qodg7bjQrVy4J3QI1o4L3cqFe0KHYO240K1cuCd0CNaOC93KhXtCh2DtuNCtXLgndAjWjgvdyoV7Qodg7bjQrVy49wXyQzzmd6RVpQAAAABJRU5ErkJggg=="},fAei:function(j,W,y){"use strict";y.d(W,"a",function(){return h.a});var I=y("rePB"),v=y("VTBJ"),T=y("KQm4"),b=y("1OyB"),g=y("vuIU"),s=y("Ji7U"),_=y("LK+K"),p=y("q1tI"),e=y("4IlW"),a=y("Kwbf"),n=y("TSYQ"),l=y.n(n),r=y("sboe"),i=y("OZM5"),t=y("815F"),o=y("ODXe"),c=y("Ff2n"),d=y("+nKL"),f=y("8XRh"),h=y("WaYH"),u=function(Ee,De){var te=Ee.className,Ce=Ee.style,we=Ee.motion,ce=Ee.motionNodes,le=Ee.motionType,oe=Ee.onMotionStart,xe=Ee.onMotionEnd,q=Ee.active,se=Ee.treeNodeRequiredProps,Ne=Object(c.a)(Ee,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),de=p.useState(!0),$=Object(o.a)(de,2),Q=$[0],Y=$[1],ue=p.useContext(r.a),ae=ue.prefixCls,be=p.useRef(!1),Ie=function(){be.current||xe(),be.current=!0};return Object(p.useEffect)(function(){ce&&le==="hide"&&Q&&Y(!1)},[ce]),Object(p.useEffect)(function(){return ce&&oe(),function(){ce&&Ie()}},[]),ce?p.createElement(f.default,Object.assign({ref:De,visible:Q},we,{motionAppear:le==="show",onAppearEnd:Ie,onLeaveEnd:Ie}),function(pe,Le){var ve=pe.className,Xe=pe.style;return p.createElement("div",{ref:Le,className:l()("".concat(ae,"-treenode-motion"),ve),style:Xe},ce.map(function($e){var Ge=$e.data,Me=Ge.key,gt=Object(c.a)(Ge,["key"]),Te=$e.isStart,Ye=$e.isEnd;delete gt.children;var Ze=Object(t.f)(Me,se);return p.createElement(h.a,Object.assign({},gt,Ze,{active:q,data:$e.data,key:Me,isStart:Te,isEnd:Ye}))}))}):p.createElement(h.a,Object.assign({domRef:De,className:te,style:Ce},Ne,{active:q}))};u.displayName="MotionTreeNode";var E=p.forwardRef(u),x=E;function O(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],De=me.length,te=Ee.length;if(Math.abs(De-te)!==1)return{add:!1,key:null};function Ce(we,ce){var le=new Map;we.forEach(function(xe){le.set(xe,!0)});var oe=ce.filter(function(xe){return!le.has(xe)});return oe.length===1?oe[0]:null}return De<te?{add:!0,key:Ce(me,Ee)}:{add:!1,key:Ce(Ee,me)}}function C(me,Ee,De){var te=me.findIndex(function(le){var oe=le.data;return oe.key===De}),Ce=me[te+1],we=Ee.findIndex(function(le){var oe=le.data;return oe.key===De});if(Ce){var ce=Ee.findIndex(function(le){var oe=le.data;return oe.key===Ce.data.key});return Ee.slice(we+1,ce)}return Ee.slice(we+1)}var w={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},S=function(){},D="RC_TREE_MOTION_".concat(Math.random()),R={key:D},P={key:D,level:0,index:0,pos:"0",node:R},N={parent:null,children:[],pos:P.pos,data:R,isStart:[],isEnd:[]};function M(me,Ee,De,te){return Ee===!1||!De?me:me.slice(0,Math.ceil(De/te)+1)}function z(me){var Ee=me.data.key,De=me.pos;return Object(t.e)(Ee,De)}function X(me){for(var Ee=String(me.data.key),De=me;De.parent;)De=De.parent,Ee="".concat(De.data.key," > ").concat(Ee);return Ee}var k=function(Ee,De){var te=Ee.prefixCls,Ce=Ee.data,we=Ee.selectable,ce=Ee.checkable,le=Ee.expandedKeys,oe=Ee.selectedKeys,xe=Ee.checkedKeys,q=Ee.loadedKeys,se=Ee.loadingKeys,Ne=Ee.halfCheckedKeys,de=Ee.keyEntities,$=Ee.disabled,Q=Ee.dragging,Y=Ee.dragOverNodeKey,ue=Ee.dropPosition,ae=Ee.motion,be=Ee.height,Ie=Ee.itemHeight,pe=Ee.virtual,Le=Ee.focusable,ve=Ee.activeItem,Xe=Ee.focused,$e=Ee.tabIndex,Ge=Ee.onKeyDown,Me=Ee.onFocus,gt=Ee.onBlur,Te=Ee.onActiveChange,Ye=Ee.onListChangeStart,Ze=Ee.onListChangeEnd,Ve=Object(c.a)(Ee,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),Fe=p.useRef(null);p.useImperativeHandle(De,function(){return{scrollTo:function(Lt){Fe.current.scrollTo(Lt)}}});var Be=p.useState(le),_e=Object(o.a)(Be,2),Ae=_e[0],fe=_e[1],ke=p.useState(Ce),Je=Object(o.a)(ke,2),ne=Je[0],Qe=Je[1],dt=p.useState(Ce),Ke=Object(o.a)(dt,2),et=Ke[0],rt=Ke[1],bt=p.useState([]),ut=Object(o.a)(bt,2),ot=ut[0],Ue=ut[1],We=p.useState(null),ft=Object(o.a)(We,2),nt=ft[0],Dt=ft[1];function Kt(){Qe(Ce),rt(Ce),Ue([]),Dt(null),Ze()}p.useEffect(function(){fe(le);var Ft=O(Ae,le);if(Ft.key!==null)if(Ft.add){var Lt=ne.findIndex(function(Zn){var Fn=Zn.data.key;return Fn===Ft.key}),zt=M(C(ne,Ce,Ft.key),pe,be,Ie),Qt=ne.slice();Qt.splice(Lt+1,0,N),rt(Qt),Ue(zt),Dt("show")}else{var bn=Ce.findIndex(function(Zn){var Fn=Zn.data.key;return Fn===Ft.key}),Zt=M(C(Ce,ne,Ft.key),pe,be,Ie),$t=Ce.slice();$t.splice(bn+1,0,N),rt($t),Ue(Zt),Dt("hide")}else ne!==Ce&&(Qe(Ce),rt(Ce))},[le,Ce]),p.useEffect(function(){Q||Kt()},[Q]);var vt=ae?et:Ce,Ht={expandedKeys:le,selectedKeys:oe,loadedKeys:q,loadingKeys:se,checkedKeys:xe,halfCheckedKeys:Ne,dragOverNodeKey:Y,dropPosition:ue,keyEntities:de};return p.createElement(p.Fragment,null,Xe&&ve&&p.createElement("span",{style:w,"aria-live":"assertive"},X(ve)),p.createElement("div",{role:"tree"},p.createElement("input",{style:w,disabled:Le===!1||$,tabIndex:Le!==!1?$e:null,onKeyDown:Ge,onFocus:Me,onBlur:gt,value:"",onChange:S})),p.createElement(d.a,Object.assign({},Ve,{data:vt,itemKey:z,height:be,fullHeight:!1,virtual:pe,itemHeight:Ie,prefixCls:"".concat(te,"-list"),ref:Fe}),function(Ft){var Lt=Ft.pos,zt=Ft.data,Qt=zt.key,bn=Object(c.a)(zt,["key"]),Zt=Ft.isStart,$t=Ft.isEnd,Zn=Object(t.e)(Qt,Lt);delete bn.children;var Fn=Object(t.f)(Zn,Ht);return p.createElement(x,Object.assign({},bn,Fn,{active:ve&&Qt===ve.data.key,pos:Lt,data:Ft.data,isStart:Zt,isEnd:$t,motion:ae,motionNodes:Qt===D?ot:null,motionType:nt,onMotionStart:Ye,onMotionEnd:Kt,treeNodeRequiredProps:Ht,onMouseMove:function(){Te(null)}}))}))},F=p.forwardRef(k);F.displayName="NodeList";var U=F,L=y("NvD2"),B=function(me){Object(s.a)(De,me);var Ee=Object(_.a)(De);function De(){var te;return Object(b.a)(this,De),te=Ee.apply(this,arguments),te.destroyed=!1,te.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},te.listRef=p.createRef(),te.onNodeDragStart=function(Ce,we){var ce=te.state,le=ce.expandedKeys,oe=ce.keyEntities,xe=te.props.onDragStart,q=we.props.eventKey;te.dragNode=we;var se=Object(i.b)(le,q);te.setState({dragging:!0,dragNodesKeys:Object(i.g)(q,oe)}),te.setExpandedKeys(se),xe&&xe({event:Ce,node:Object(t.b)(we.props)})},te.onNodeDragEnter=function(Ce,we){var ce=te.state,le=ce.expandedKeys,oe=ce.keyEntities,xe=ce.dragNodesKeys,q=te.props.onDragEnter,se=we.props,Ne=se.pos,de=se.eventKey;if(!te.dragNode||xe.indexOf(de)!==-1)return;var $=Object(i.c)(Ce,we);if(te.dragNode.props.eventKey===de&&$===0){te.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){te.setState({dragOverNodeKey:de,dropPosition:$}),te.delayedDragEnterLogic||(te.delayedDragEnterLogic={}),Object.keys(te.delayedDragEnterLogic).forEach(function(Q){clearTimeout(te.delayedDragEnterLogic[Q])}),te.delayedDragEnterLogic[Ne]=window.setTimeout(function(){if(!te.state.dragging)return;var Q=Object(T.a)(le),Y=oe[de];Y&&(Y.children||[]).length&&(Q=Object(i.a)(le,de)),"expandedKeys"in te.props||te.setExpandedKeys(Q),q&&q({event:Ce,node:Object(t.b)(we.props),expandedKeys:Q})},400)},0)},te.onNodeDragOver=function(Ce,we){var ce=te.state.dragNodesKeys,le=te.props.onDragOver,oe=we.props.eventKey;if(ce.indexOf(oe)!==-1)return;if(te.dragNode&&oe===te.state.dragOverNodeKey){var xe=Object(i.c)(Ce,we);if(xe===te.state.dropPosition)return;te.setState({dropPosition:xe})}le&&le({event:Ce,node:Object(t.b)(we.props)})},te.onNodeDragLeave=function(Ce,we){var ce=te.props.onDragLeave;te.setState({dragOverNodeKey:""}),ce&&ce({event:Ce,node:Object(t.b)(we.props)})},te.onNodeDragEnd=function(Ce,we){var ce=te.props.onDragEnd;te.setState({dragOverNodeKey:""}),te.cleanDragState(),ce&&ce({event:Ce,node:Object(t.b)(we.props)}),te.dragNode=null},te.onNodeDrop=function(Ce,we){var ce=te.state,le=ce.dragNodesKeys,oe=le===void 0?[]:le,xe=ce.dropPosition,q=te.props.onDrop,se=we.props,Ne=se.eventKey,de=se.pos;if(te.setState({dragOverNodeKey:""}),te.cleanDragState(),oe.indexOf(Ne)!==-1){Object(a.a)(!1,"Can not drop to dragNode(include it's children node)");return}var $=Object(i.k)(de),Q={event:Ce,node:Object(t.b)(we.props),dragNode:te.dragNode?Object(t.b)(te.dragNode.props):null,dragNodesKeys:oe.slice(),dropPosition:xe+Number($[$.length-1]),dropToGap:!1};xe!==0&&(Q.dropToGap=!0),q&&q(Q),te.dragNode=null},te.cleanDragState=function(){var Ce=te.state.dragging;Ce&&te.setState({dragging:!1})},te.onNodeClick=function(Ce,we){var ce=te.props.onClick;ce&&ce(Ce,we)},te.onNodeDoubleClick=function(Ce,we){var ce=te.props.onDoubleClick;ce&&ce(Ce,we)},te.onNodeSelect=function(Ce,we){var ce=te.state.selectedKeys,le=te.state.keyEntities,oe=te.props,xe=oe.onSelect,q=oe.multiple,se=we.selected,Ne=we.key,de=!se;de?q?ce=Object(i.a)(ce,Ne):ce=[Ne]:ce=Object(i.b)(ce,Ne);var $=ce.map(function(Q){var Y=le[Q];return Y?Y.node:null}).filter(function(Q){return Q});te.setUncontrolledState({selectedKeys:ce}),xe&&xe(ce,{event:"select",selected:de,node:we,selectedNodes:$,nativeEvent:Ce.nativeEvent})},te.onNodeCheck=function(Ce,we,ce){var le=te.state,oe=le.keyEntities,xe=le.checkedKeys,q=le.halfCheckedKeys,se=te.props,Ne=se.checkStrictly,de=se.onCheck,$=we.key,Q,Y={event:"check",node:we,checked:ce,nativeEvent:Ce.nativeEvent};if(Ne){var ue=ce?Object(i.a)(xe,$):Object(i.b)(xe,$),ae=Object(i.b)(q,$);Q={checked:ue,halfChecked:ae},Y.checkedNodes=ue.map(function(Xe){return oe[Xe]}).filter(function(Xe){return Xe}).map(function(Xe){return Xe.node}),te.setUncontrolledState({checkedKeys:ue})}else{var be=Object(L.a)([].concat(Object(T.a)(xe),[$]),!0,oe),Ie=be.checkedKeys,pe=be.halfCheckedKeys;if(!ce){var Le=new Set(Ie);Le.delete($);var ve=Object(L.a)(Array.from(Le),{checked:!1,halfCheckedKeys:pe},oe);Ie=ve.checkedKeys,pe=ve.halfCheckedKeys}Q=Ie,Y.checkedNodes=[],Y.checkedNodesPositions=[],Y.halfCheckedKeys=pe,Ie.forEach(function(Xe){var $e=oe[Xe];if(!$e)return;var Ge=$e.node,Me=$e.pos;Y.checkedNodes.push(Ge),Y.checkedNodesPositions.push({node:Ge,pos:Me})}),te.setUncontrolledState({checkedKeys:Ie},!1,{halfCheckedKeys:pe})}de&&de(Q,Y)},te.onNodeLoad=function(Ce){return new Promise(function(we){te.setState(function(ce){var le=ce.loadedKeys,oe=le===void 0?[]:le,xe=ce.loadingKeys,q=xe===void 0?[]:xe,se=te.props,Ne=se.loadData,de=se.onLoad,$=Ce.key;if(!Ne||oe.indexOf($)!==-1||q.indexOf($)!==-1)return{};var Q=Ne(Ce);return Q.then(function(){var Y=te.state,ue=Y.loadedKeys,ae=Y.loadingKeys,be=Object(i.a)(ue,$),Ie=Object(i.b)(ae,$);de&&de(be,{event:"load",node:Ce}),te.setUncontrolledState({loadedKeys:be}),te.setState({loadingKeys:Ie}),we()}),{loadingKeys:Object(i.a)(q,$)}})})},te.onNodeMouseEnter=function(Ce,we){var ce=te.props.onMouseEnter;ce&&ce({event:Ce,node:we})},te.onNodeMouseLeave=function(Ce,we){var ce=te.props.onMouseLeave;ce&&ce({event:Ce,node:we})},te.onNodeContextMenu=function(Ce,we){var ce=te.props.onRightClick;ce&&(Ce.preventDefault(),ce({event:Ce,node:we}))},te.onFocus=function(){var Ce=te.props.onFocus;te.setState({focused:!0}),Ce&&Ce.apply(void 0,arguments)},te.onBlur=function(){var Ce=te.props.onBlur;te.setState({focused:!1}),te.onActiveChange(null),Ce&&Ce.apply(void 0,arguments)},te.getTreeNodeRequiredProps=function(){var Ce=te.state,we=Ce.expandedKeys,ce=Ce.selectedKeys,le=Ce.loadedKeys,oe=Ce.loadingKeys,xe=Ce.checkedKeys,q=Ce.halfCheckedKeys,se=Ce.dragOverNodeKey,Ne=Ce.dropPosition,de=Ce.keyEntities;return{expandedKeys:we||[],selectedKeys:ce||[],loadedKeys:le||[],loadingKeys:oe||[],checkedKeys:xe||[],halfCheckedKeys:q||[],dragOverNodeKey:se,dropPosition:Ne,keyEntities:de}},te.setExpandedKeys=function(Ce){var we=te.state.treeData,ce=Object(t.d)(we,Ce);te.setUncontrolledState({expandedKeys:Ce,flattenNodes:ce},!0)},te.onNodeExpand=function(Ce,we){var ce=te.state.expandedKeys,le=te.state.listChanging,oe=te.props,xe=oe.onExpand,q=oe.loadData,se=we.key,Ne=we.expanded;if(le)return;var de=ce.indexOf(se),$=!Ne;if(Object(a.a)(Ne&&de!==-1||!Ne&&de===-1,"Expand state not sync with index check"),$?ce=Object(i.a)(ce,se):ce=Object(i.b)(ce,se),te.setExpandedKeys(ce),xe&&xe(ce,{node:we,expanded:$,nativeEvent:Ce.nativeEvent}),$&&q){var Q=te.onNodeLoad(we);Q&&Q.then(function(){var Y=Object(t.d)(te.state.treeData,ce);te.setUncontrolledState({flattenNodes:Y})})}},te.onListChangeStart=function(){te.setUncontrolledState({listChanging:!0})},te.onListChangeEnd=function(){setTimeout(function(){te.setUncontrolledState({listChanging:!1})})},te.onActiveChange=function(Ce){var we=te.state.activeKey,ce=te.props.onActiveChange;if(we===Ce)return;te.setState({activeKey:Ce}),Ce!==null&&te.scrollTo({key:Ce}),ce&&ce(Ce)},te.getActiveItem=function(){var Ce=te.state,we=Ce.activeKey,ce=Ce.flattenNodes;return we===null?null:ce.find(function(le){var oe=le.data.key;return oe===we})||null},te.offsetActiveKey=function(Ce){var we=te.state,ce=we.flattenNodes,le=we.activeKey,oe=ce.findIndex(function(se){var Ne=se.data.key;return Ne===le});oe===-1&&Ce<0&&(oe=ce.length),oe=(oe+Ce+ce.length)%ce.length;var xe=ce[oe];if(xe){var q=xe.data.key;te.onActiveChange(q)}else te.onActiveChange(null)},te.onKeyDown=function(Ce){var we=te.state,ce=we.activeKey,le=we.expandedKeys,oe=we.checkedKeys,xe=te.props,q=xe.onKeyDown,se=xe.checkable,Ne=xe.selectable;switch(Ce.which){case e.a.UP:{te.offsetActiveKey(-1),Ce.preventDefault();break}case e.a.DOWN:{te.offsetActiveKey(1),Ce.preventDefault();break}}var de=te.getActiveItem();if(de&&de.data){var $=te.getTreeNodeRequiredProps(),Q=de.data.isLeaf===!1||!!(de.data.children||[]).length,Y=Object(t.b)(Object(v.a)(Object(v.a)({},Object(t.f)(ce,$)),{},{data:de.data,active:!0}));switch(Ce.which){case e.a.LEFT:{Q&&le.includes(ce)?te.onNodeExpand({},Y):de.parent&&te.onActiveChange(de.parent.data.key),Ce.preventDefault();break}case e.a.RIGHT:{Q&&!le.includes(ce)?te.onNodeExpand({},Y):de.children&&de.children.length&&te.onActiveChange(de.children[0].data.key),Ce.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{se&&!Y.disabled&&Y.checkable!==!1&&!Y.disableCheckbox?te.onNodeCheck({},Y,!oe.includes(ce)):!se&&Ne&&!Y.disabled&&Y.selectable!==!1&&te.onNodeSelect({},Y);break}}}q&&q(Ce)},te.setUncontrolledState=function(Ce){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(te.destroyed)return;var le=!1,oe=!0,xe={};Object.keys(Ce).forEach(function(q){if(q in te.props){oe=!1;return}le=!0,xe[q]=Ce[q]}),le&&(!we||oe)&&te.setState(Object(v.a)(Object(v.a)({},xe),ce))},te.scrollTo=function(Ce){te.listRef.current.scrollTo(Ce)},te}return Object(g.a)(De,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Ce,we=this.state,ce=we.focused,le=we.flattenNodes,oe=we.keyEntities,xe=we.dragging,q=we.activeKey,se=this.props,Ne=se.prefixCls,de=se.className,$=se.style,Q=se.showLine,Y=se.focusable,ue=se.tabIndex,ae=ue===void 0?0:ue,be=se.selectable,Ie=se.showIcon,pe=se.icon,Le=se.switcherIcon,ve=se.draggable,Xe=se.checkable,$e=se.checkStrictly,Ge=se.disabled,Me=se.motion,gt=se.loadData,Te=se.filterTreeNode,Ye=se.height,Ze=se.itemHeight,Ve=se.virtual,Fe=se.titleRender,Be=se.onContextMenu,_e=Object(i.f)(this.props);return p.createElement(r.a.Provider,{value:{prefixCls:Ne,selectable:be,showIcon:Ie,icon:pe,switcherIcon:Le,draggable:ve,checkable:Xe,checkStrictly:$e,disabled:Ge,keyEntities:oe,loadData:gt,filterTreeNode:Te,titleRender:Fe,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},p.createElement("div",{className:l()(Ne,de,(Ce={},Object(I.a)(Ce,"".concat(Ne,"-show-line"),Q),Object(I.a)(Ce,"".concat(Ne,"-focused"),ce),Object(I.a)(Ce,"".concat(Ne,"-active-focused"),q!==null),Ce))},p.createElement(U,Object.assign({ref:this.listRef,prefixCls:Ne,style:$,data:le,disabled:Ge,selectable:be,checkable:!!Xe,motion:Me,dragging:xe,height:Ye,itemHeight:Ze,virtual:Ve,focusable:Y,focused:ce,tabIndex:ae,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Be},this.getTreeNodeRequiredProps(),_e))))}}],[{key:"getDerivedStateFromProps",value:function(Ce,we){var ce=we.prevProps,le={prevProps:Ce};function oe(pe){return!ce&&pe in Ce||ce&&ce[pe]!==Ce[pe]}var xe;if(oe("treeData")?xe=Ce.treeData:oe("children")&&(Object(a.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=Object(t.c)(Ce.children)),xe){le.treeData=xe;var q=Object(t.a)(xe);le.keyEntities=Object(v.a)(Object(I.a)({},D,P),q.keyEntities)}var se=le.keyEntities||we.keyEntities;if(oe("expandedKeys")||ce&&oe("autoExpandParent"))le.expandedKeys=Ce.autoExpandParent||!ce&&Ce.defaultExpandParent?Object(i.e)(Ce.expandedKeys,se):Ce.expandedKeys;else if(!ce&&Ce.defaultExpandAll){var Ne=Object(v.a)({},se);delete Ne[D],le.expandedKeys=Object.keys(Ne).map(function(pe){return Ne[pe].key})}else!ce&&Ce.defaultExpandedKeys&&(le.expandedKeys=Ce.autoExpandParent||Ce.defaultExpandParent?Object(i.e)(Ce.defaultExpandedKeys,se):Ce.defaultExpandedKeys);if(le.expandedKeys||delete le.expandedKeys,xe||le.expandedKeys){var de=Object(t.d)(xe||we.treeData,le.expandedKeys||we.expandedKeys);le.flattenNodes=de}if(Ce.selectable&&(oe("selectedKeys")?le.selectedKeys=Object(i.d)(Ce.selectedKeys,Ce):!ce&&Ce.defaultSelectedKeys&&(le.selectedKeys=Object(i.d)(Ce.defaultSelectedKeys,Ce))),Ce.checkable){var $;if(oe("checkedKeys")?$=Object(i.j)(Ce.checkedKeys)||{}:!ce&&Ce.defaultCheckedKeys?$=Object(i.j)(Ce.defaultCheckedKeys)||{}:xe&&($=Object(i.j)(Ce.checkedKeys)||{checkedKeys:we.checkedKeys,halfCheckedKeys:we.halfCheckedKeys}),$){var Q=$,Y=Q.checkedKeys,ue=Y===void 0?[]:Y,ae=Q.halfCheckedKeys,be=ae===void 0?[]:ae;if(!Ce.checkStrictly){var Ie=Object(L.a)(ue,!0,se);ue=Ie.checkedKeys,be=Ie.halfCheckedKeys}le.checkedKeys=ue,le.halfCheckedKeys=be}}return oe("loadedKeys")&&(le.loadedKeys=Ce.loadedKeys),le}}]),De}(p.Component);B.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},B.TreeNode=h.a;var Z=B,re=W.b=Z},fXAG:function(j,W,y){"use strict";y.d(W,"j",function(){return I}),y.d(W,"i",function(){return v}),y.d(W,"k",function(){return T}),y.d(W,"X",function(){return b}),y.d(W,"o",function(){return g}),y.d(W,"N",function(){return s}),y.d(W,"Y",function(){return _}),y.d(W,"t",function(){return p}),y.d(W,"u",function(){return e}),y.d(W,"V",function(){return a}),y.d(W,"A",function(){return n}),y.d(W,"m",function(){return l}),y.d(W,"R",function(){return r}),y.d(W,"r",function(){return i}),y.d(W,"I",function(){return t}),y.d(W,"U",function(){return o}),y.d(W,"W",function(){return c}),y.d(W,"l",function(){return d}),y.d(W,"L",function(){return f}),y.d(W,"T",function(){return h}),y.d(W,"x",function(){return u}),y.d(W,"z",function(){return E}),y.d(W,"Q",function(){return x}),y.d(W,"b",function(){return O}),y.d(W,"G",function(){return C}),y.d(W,"a",function(){return w}),y.d(W,"c",function(){return D}),y.d(W,"K",function(){return R}),y.d(W,"g",function(){return P}),y.d(W,"s",function(){return N}),y.d(W,"S",function(){return M}),y.d(W,"y",function(){return z}),y.d(W,"B",function(){return X}),y.d(W,"f",function(){return k}),y.d(W,"e",function(){return F}),y.d(W,"h",function(){return L}),y.d(W,"d",function(){return B}),y.d(W,"M",function(){return re}),y.d(W,"n",function(){return me}),y.d(W,"E",function(){return Ee}),y.d(W,"H",function(){return De}),y.d(W,"D",function(){return Ce}),y.d(W,"C",function(){return we}),y.d(W,"F",function(){return ce}),y.d(W,"q",function(){return xe}),y.d(W,"P",function(){return q}),y.d(W,"O",function(){return se}),y.d(W,"p",function(){return Ne}),y.d(W,"J",function(){return ue}),y.d(W,"w",function(){return ae}),y.d(W,"v",function(){return be});var I="FETCH_TASK_START",v="FETCH_TASK_FAILURE",T="FETCH_TASK_SUCCESS",b="UPDATE_TASK_DATA",g="HIDE_EVALUATE_RESULT",s="SHOW_EVALUATE_RESULT",_="UPDATE_TIMESTRAP",p="MOVE_X",e="MOVE_Y",a="TRIGGER_RIGHT_PANEL_MASK ",n="SET_ACTIVE_INDEX",l="GET_TASK_LIST",r="SHOW_TASK_LIST",i="HIDE_TASK_LIST",t="SET_TASK_STAR",o="TRIGGER_ENLARGE_UNITY3D ",c="TRIGGER_TAB_FIXED ",d="GET_DISCUSSES",f="SHOW_DISCUSSES_LOADING",h="TOP_OR_DOWN_DISCUSS",u="PLUS_DISCUSS",E="SET_ACTION_TYPE",x="SHOW_REWARD_DIALOG",O="CANCEL_REWARD_DIALOG",C="SET_REWARD",w="ACTIVE_DISCUSS_INDEX",S="CREATE_DISCUSS",D="DISABLE_DISCUSS",R="SHOW_ANSWER_LOADING",P="FETCH_ANSWER_INFO",N="HIGH_TIP_MODAL",M="SHOW_TIP_MODAL",z="SELECT_UNLOCK_ANSWER",X="SET_CHOOSE_ANSWERS",k="EVAL_CHOOSE_START",F="EVAL_CHOOSE_END",U="SHOW_REP_loading",L="FETCH_REP_CONTENT",B="EDIT_REP_CONTENT",Z="SET_REP_PATH",re="SHOW_EVALUATE_LOADING",me="HIDE_EVALUATE_LOADING",Ee="SET_EVALUATE_MESSAGE",De="SET_SHOW_DIR",te="SET_EDITOR_SETTING",Ce="SET_EDITOR_THEME",we="SET_EDITOR_FONTSIZE",ce="SET_REPOS",le="SHOW_PATH_LIST",oe="HIDE_PATH_LIST",xe="HIDE_PICTURE_VIEW",q="SHOW_PICTURE_VIEW",se="SHOW_NOTICE",Ne="HIDE_NOTICE",de="SET_TAB_INDEX",$="SET_SSH_TABS",Q="SET_SSH_CONFIGDATA",Y="SET_SSH_CONFIGDATAARR",ue="SET_VNC_LOADING ",ae="ON_TAB_TO_SPACE ",be="ON_AUTO_FORMAT "},fcSX:function(j,W,y){"use strict";var I=y("Ff2n"),v=y("1OyB"),T=y("vuIU"),b=y("Ji7U"),g=y("md7G"),s=y("foSv"),_=y("1W/9"),p=y("q1tI"),e=y("rePB"),a=y("JX7q"),n=y("TSYQ"),l=y.n(n),r=y("qx4F"),i=y("4IlW");function t(k){return Array.isArray(k)?k:[k]}var o={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},c=Object.keys(o).filter(function(k){if(typeof document=="undefined")return!1;var F=document.getElementsByTagName("html")[0];return k in(F?F.style:{})})[0],d=o[c];function f(k,F,U,L){k.addEventListener?k.addEventListener(F,U,L):k.attachEvent&&k.attachEvent("on".concat(F),U)}function h(k,F,U,L){k.removeEventListener?k.removeEventListener(F,U,L):k.attachEvent&&k.detachEvent("on".concat(F),U)}function u(k,F){var U=typeof k=="function"?k(F):k;return Array.isArray(U)?U.length===2?U:[U[0],U[1]]:[U]}var E=function(F){return!isNaN(parseFloat(F))&&isFinite(F)},x=!(typeof window!="undefined"&&window.document&&window.document.createElement),O=function k(F,U,L,B){if(!U||U===document||U instanceof Document)return!1;if(U===F.parentNode)return!0;var Z=Math.max(Math.abs(L),Math.abs(B))===Math.abs(B),re=Math.max(Math.abs(L),Math.abs(B))===Math.abs(L),me=U.scrollHeight-U.clientHeight,Ee=U.scrollWidth-U.clientWidth,De=document.defaultView.getComputedStyle(U),te=De.overflowY==="auto"||De.overflowY==="scroll",Ce=De.overflowX==="auto"||De.overflowX==="scroll",we=me&&te,ce=Ee&&Ce;return Z&&(!we||we&&(U.scrollTop>=me&&B<0||U.scrollTop<=0&&B>0))||re&&(!ce||ce&&(U.scrollLeft>=Ee&&L<0||U.scrollLeft<=0&&L>0))?k(F,U.parentNode,L,B):!1};function C(k){var F=w();return function(){var L=Object(s.a)(k),B;if(F){var Z=Object(s.a)(this).constructor;B=Reflect.construct(L,arguments,Z)}else B=L.apply(this,arguments);return Object(g.a)(this,B)}}function w(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(k){return!1}}var S={},D=function(k){Object(b.a)(U,k);var F=C(U);function U(L){var B;return Object(v.a)(this,U),B=F.call(this,L),B.domFocus=function(){B.dom&&B.dom.focus()},B.removeStartHandler=function(Z){if(Z.touches.length>1)return;B.startPos={x:Z.touches[0].clientX,y:Z.touches[0].clientY}},B.removeMoveHandler=function(Z){if(Z.changedTouches.length>1)return;var re=Z.currentTarget,me=Z.changedTouches[0].clientX-B.startPos.x,Ee=Z.changedTouches[0].clientY-B.startPos.y;(re===B.maskDom||re===B.handlerDom||re===B.contentDom&&O(re,Z.target,me,Ee))&&Z.cancelable&&Z.preventDefault()},B.transitionEnd=function(Z){var re=Z.target;h(re,d,B.transitionEnd),re.style.transition=""},B.onKeyDown=function(Z){if(Z.keyCode===i.a.ESC){var re=B.props.onClose;Z.stopPropagation(),re&&re(Z)}},B.onWrapperTransitionEnd=function(Z){var re=B.props,me=re.open,Ee=re.afterVisibleChange;Z.target===B.contentWrapper&&Z.propertyName.match(/transform$/)&&(B.dom.style.transition="",!me&&B.getCurrentDrawerSome()&&(document.body.style.overflowX="",B.maskDom&&(B.maskDom.style.left="",B.maskDom.style.width="")),Ee&&Ee(!!me))},B.openLevelTransition=function(){var Z=B.props,re=Z.open,me=Z.width,Ee=Z.height,De=B.getHorizontalBoolAndPlacementName(),te=De.isHorizontal,Ce=De.placementName,we=B.contentDom?B.contentDom.getBoundingClientRect()[te?"width":"height"]:0,ce=(te?me:Ee)||we;B.setLevelAndScrolling(re,Ce,ce)},B.setLevelTransform=function(Z,re,me,Ee){var De=B.props,te=De.placement,Ce=De.levelMove,we=De.duration,ce=De.ease,le=De.showMask;B.levelDom.forEach(function(oe){oe.style.transition="transform ".concat(we," ").concat(ce),f(oe,d,B.transitionEnd);var xe=Z?me:0;if(Ce){var q=u(Ce,{target:oe,open:Z});xe=Z?q[0]:q[1]||0}var se=typeof xe=="number"?"".concat(xe,"px"):xe,Ne=te==="left"||te==="top"?se:"-".concat(se);Ne=le&&te==="right"&&Ee?"calc(".concat(Ne," + ").concat(Ee,"px)"):Ne,oe.style.transform=xe?"".concat(re,"(").concat(Ne,")"):""})},B.setLevelAndScrolling=function(Z,re,me){var Ee=B.props.onChange;if(!x){var De=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(r.a)(!0):0;B.setLevelTransform(Z,re,me,De),B.toggleScrollingToDrawerAndBody(De)}Ee&&Ee(Z)},B.toggleScrollingToDrawerAndBody=function(Z){var re=B.props,me=re.getOpenCount,Ee=re.getContainer,De=re.showMask,te=re.open,Ce=Ee&&Ee(),we=me&&me();if(Ce&&Ce.parentNode===document.body&&De){var ce=["touchstart"],le=[document.body,B.maskDom,B.handlerDom,B.contentDom];te&&document.body.style.overflow!=="hidden"?(Z&&B.addScrollingEffect(Z),we===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",le.forEach(function(oe,xe){if(!oe)return;f(oe,ce[xe]||"touchmove",xe?B.removeMoveHandler:B.removeStartHandler,B.passive)})):B.getCurrentDrawerSome()&&(we||(document.body.style.overflow=""),document.body.style.touchAction="",Z&&B.remScrollingEffect(Z),le.forEach(function(oe,xe){if(!oe)return;h(oe,ce[xe]||"touchmove",xe?B.removeMoveHandler:B.removeStartHandler,B.passive)}))}},B.addScrollingEffect=function(Z){var re=B.props,me=re.placement,Ee=re.duration,De=re.ease,te=re.getOpenCount,Ce=re.switchScrollingEffect,we=te&&te();we===1&&Ce();var ce="width ".concat(Ee," ").concat(De),le="transform ".concat(Ee," ").concat(De);B.dom.style.transition="none";switch(me){case"right":B.dom.style.transform="translateX(-".concat(Z,"px)");break;case"top":case"bottom":B.dom.style.width="calc(100% - ".concat(Z,"px)"),B.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(B.timeout),B.timeout=setTimeout(function(){B.dom&&(B.dom.style.transition="".concat(le,",").concat(ce),B.dom.style.width="",B.dom.style.transform="")})},B.remScrollingEffect=function(Z){var re=B.props,me=re.placement,Ee=re.duration,De=re.ease,te=re.getOpenCount,Ce=re.switchScrollingEffect,we=te&&te();we||Ce(!0),c&&(document.body.style.overflowX="hidden"),B.dom.style.transition="none";var ce,le="width ".concat(Ee," ").concat(De),oe="transform ".concat(Ee," ").concat(De);switch(me){case"left":{B.dom.style.width="100%",le="width 0s ".concat(De," ").concat(Ee);break}case"right":{B.dom.style.transform="translateX(".concat(Z,"px)"),B.dom.style.width="100%",le="width 0s ".concat(De," ").concat(Ee),B.maskDom&&(B.maskDom.style.left="-".concat(Z,"px"),B.maskDom.style.width="calc(100% + ".concat(Z,"px)"));break}case"top":case"bottom":{B.dom.style.width="calc(100% + ".concat(Z,"px)"),B.dom.style.height="100%",B.dom.style.transform="translateZ(0)",ce="height 0s ".concat(De," ").concat(Ee);break}default:break}clearTimeout(B.timeout),B.timeout=setTimeout(function(){B.dom&&(B.dom.style.transition="".concat(oe,",").concat(ce?"".concat(ce,","):"").concat(le),B.dom.style.transform="",B.dom.style.width="",B.dom.style.height="")})},B.getCurrentDrawerSome=function(){return!Object.keys(S).some(function(Z){return S[Z]})},B.getLevelDom=function(Z){var re=Z.level,me=Z.getContainer;if(x)return;var Ee=me&&me(),De=Ee?Ee.parentNode:null;if(B.levelDom=[],re==="all"){var te=De?Array.prototype.slice.call(De.children):[];te.forEach(function(Ce){Ce.nodeName!=="SCRIPT"&&Ce.nodeName!=="STYLE"&&Ce.nodeName!=="LINK"&&Ce!==Ee&&B.levelDom.push(Ce)})}else re&&t(re).forEach(function(Ce){document.querySelectorAll(Ce).forEach(function(we){B.levelDom.push(we)})})},B.getHorizontalBoolAndPlacementName=function(){var Z=B.props.placement,re=Z==="left"||Z==="right",me="translate".concat(re?"X":"Y");return{isHorizontal:re,placementName:me}},B.state={_self:Object(a.a)(B)},B}return Object(T.a)(U,[{key:"componentDidMount",value:function(){var B=this;if(!x){var Z=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Z=!0,null}}))}catch(te){}this.passive=Z?{passive:!1}:!1}var re=this.props,me=re.open,Ee=re.getContainer,De=Ee&&Ee();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),me&&(De&&De.parentNode===document.body&&(S[this.drawerId]=me),this.openLevelTransition(),this.forceUpdate(function(){B.domFocus()}))}},{key:"componentDidUpdate",value:function(B){var Z=this.props,re=Z.open,me=Z.getContainer,Ee=me&&me();re!==B.open&&(re&&this.domFocus(),Ee&&Ee.parentNode===document.body&&(S[this.drawerId]=!!re),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var B=this.props,Z=B.getOpenCount,re=B.open,me=B.switchScrollingEffect,Ee=typeof Z=="function"&&Z();delete S[this.drawerId],re&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Ee||(document.body.style.overflow="",me(!0))}},{key:"render",value:function(){var B,Z=this,re=this.props,me=re.className,Ee=re.children,De=re.style,te=re.width,Ce=re.height,we=re.defaultOpen,ce=re.open,le=re.prefixCls,oe=re.placement,xe=re.level,q=re.levelMove,se=re.ease,Ne=re.duration,de=re.getContainer,$=re.handler,Q=re.onChange,Y=re.afterVisibleChange,ue=re.showMask,ae=re.maskClosable,be=re.maskStyle,Ie=re.onClose,pe=re.onHandleClick,Le=re.keyboard,ve=re.getOpenCount,Xe=re.switchScrollingEffect,$e=Object(I.a)(re,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),Ge=this.dom?ce:!1,Me=l()(le,(B={},Object(e.a)(B,"".concat(le,"-").concat(oe),!0),Object(e.a)(B,"".concat(le,"-open"),Ge),Object(e.a)(B,me||"",!!me),Object(e.a)(B,"no-mask",!ue),B)),gt=this.getHorizontalBoolAndPlacementName(),Te=gt.placementName,Ye=oe==="left"||oe==="top"?"-100%":"100%",Ze=Ge?"":"".concat(Te,"(").concat(Ye,")"),Ve=$&&p.cloneElement($,{onClick:function(Be){$.props.onClick&&$.props.onClick(),pe&&pe(Be)},ref:function(Be){Z.handlerDom=Be}});return p.createElement("div",Object.assign({},$e,{tabIndex:-1,className:Me,style:De,ref:function(Be){Z.dom=Be},onKeyDown:Ge&&Le?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),ue&&p.createElement("div",{className:"".concat(le,"-mask"),onClick:ae?Ie:void 0,style:be,ref:function(Be){Z.maskDom=Be}}),p.createElement("div",{className:"".concat(le,"-content-wrapper"),style:{transform:Ze,msTransform:Ze,width:E(te)?"".concat(te,"px"):te,height:E(Ce)?"".concat(Ce,"px"):Ce},ref:function(Be){Z.contentWrapper=Be}},p.createElement("div",{className:"".concat(le,"-content"),ref:function(Be){Z.contentDom=Be},onTouchStart:Ge&&ue?this.removeStartHandler:void 0,onTouchMove:Ge&&ue?this.removeMoveHandler:void 0},Ee),Ve))}}],[{key:"getDerivedStateFromProps",value:function(B,Z){var re=Z.prevProps,me=Z._self,Ee={prevProps:B};if(re!==void 0){var De=B.placement,te=B.level;De!==re.placement&&(me.contentDom=null),te!==re.level&&me.getLevelDom(B)}return Ee}}]),U}(p.Component);D.defaultProps={switchScrollingEffect:function(){}};var R=D;function P(k){var F=N();return function(){var L=Object(s.a)(k),B;if(F){var Z=Object(s.a)(this).constructor;B=Reflect.construct(L,arguments,Z)}else B=L.apply(this,arguments);return Object(g.a)(this,B)}}function N(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(k){return!1}}var M=function(k){Object(b.a)(U,k);var F=P(U);function U(L){var B;Object(v.a)(this,U),B=F.call(this,L),B.onHandleClick=function(re){var me=B.props,Ee=me.onHandleClick,De=me.open;if(Ee&&Ee(re),typeof De=="undefined"){var te=B.state.open;B.setState({open:!te})}},B.onClose=function(re){var me=B.props,Ee=me.onClose,De=me.open;Ee&&Ee(re),typeof De=="undefined"&&B.setState({open:!1})};var Z=typeof L.open!="undefined"?L.open:!!L.defaultOpen;return B.state={open:Z},"onMaskClick"in L&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),B}return Object(T.a)(U,[{key:"render",value:function(){var B=this,Z=this.props,re=Z.defaultOpen,me=Z.getContainer,Ee=Z.wrapperClassName,De=Z.forceRender,te=Z.handler,Ce=Object(I.a)(Z,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),we=this.state.open;if(!me)return p.createElement("div",{className:Ee,ref:function(oe){B.dom=oe}},p.createElement(R,Object.assign({},Ce,{open:we,handler:te,getContainer:function(){return B.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var ce=!!te||De;return p.createElement(_.a,{visible:we,forceRender:ce,getContainer:me,wrapperClassName:Ee},function(le){var oe=le.visible,xe=le.afterClose,q=Object(I.a)(le,["visible","afterClose"]);return p.createElement(R,Object.assign({},Ce,q,{open:oe!==void 0?oe:we,afterVisibleChange:xe!==void 0?xe:Ce.afterVisibleChange,handler:te,onClose:B.onClose,onHandleClick:B.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(B,Z){var re=Z.prevProps,me={prevProps:B};return typeof re!="undefined"&&B.open!==re.open&&(me.open=B.open),me}}]),U}(p.Component);M.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:p.createElement("div",{className:"drawer-handle"},p.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var z=M,X=W.a=z},fjLI:function(j,W,y){"use strict";y.d(W,"f",function(){return r}),y.d(W,"b",function(){return i}),y.d(W,"a",function(){return t}),y.d(W,"d",function(){return o}),y.d(W,"e",function(){return c}),y.d(W,"c",function(){return d});var I=y("8HAY"),v=y("Vhoy"),T=y("MI8n"),b=y("JYp7"),g=y("pmY6"),s=y("24hK"),_=y("nnTU"),p=y("T8No"),e=y("Cg/j"),a=y("t9D7"),n=function(f,h,u,E){var x=arguments.length,O=x<3?h:E===null?E=Object.getOwnPropertyDescriptor(h,u):E,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(f,h,u,E);else for(var w=f.length-1;w>=0;w--)(C=f[w])&&(O=(x<3?C(O):x>3?C(h,u,O):C(h,u))||O);return x>3&&O&&Object.defineProperty(h,u,O),O},l=function(f,h){return function(u,E){h(u,E,f)}};function r(f){return f.command!==void 0}class i{constructor(f){this.id=i._idPool++,this._debugName=f}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const t=Object(e.c)("menuService"),o=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new T.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:f=>f===i.CommandPalette}}addCommand(f){return this.addCommands(b.a.single(f))}addCommands(f){for(const h of f)this._commands.set(h.id,h);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(g.i)(()=>{let h=!1;for(const u of f)h=this._commands.delete(u.id)||h;h&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(f){return this._commands.get(f)}getCommands(){const f=new Map;return this._commands.forEach((h,u)=>f.set(u,h)),f}appendMenuItem(f,h){return this.appendMenuItems(b.a.single({id:f,item:h}))}appendMenuItems(f){const h=new Set,u=new s.a;for(const{id:E,item:x}of f){let O=this._menuItems.get(E);O||(O=new s.a,this._menuItems.set(E,O)),u.push(O.push(x)),h.add(E)}return this._onDidChangeMenu.fire(h),Object(g.i)(()=>{if(u.size>0){for(let E of u)E();this._onDidChangeMenu.fire(h),u.clear()}})}getMenuItems(f){let h;return this._menuItems.has(f)?h=[...this._menuItems.get(f)]:h=[],f===i.CommandPalette&&this._appendImplicitItems(h),h}_appendImplicitItems(f){const h=new Set;for(const u of f)r(u)&&(h.add(u.command.id),u.alt&&h.add(u.alt.id));this._commands.forEach((u,E)=>{h.has(E)||f.push({command:u})})}};class c extends I.e{constructor(f,h,u,E){super(`submenuitem.${f.submenu.id}`,typeof f.title=="string"?f.title:f.title.value,[],"submenu");this.item=f,this._menuService=h,this._contextKeyService=u,this._options=E}get actions(){const f=[],h=this._menuService.createMenu(this.item.submenu,this._contextKeyService),u=h.getActions(this._options);h.dispose();for(const[,E]of u)E.length>0&&(f.push(...E),f.push(new I.d));return f.length&&f.pop(),f}}let d=class f{constructor(h,u,E,x,O){var C,w;if(this._commandService=O,this.id=h.id,this.label=(E==null?void 0:E.renderShortTitle)&&h.shortTitle?typeof h.shortTitle=="string"?h.shortTitle:h.shortTitle.value:typeof h.title=="string"?h.title:h.title.value,this.tooltip=(w=typeof h.tooltip=="string"?h.tooltip:(C=h.tooltip)===null||C===void 0?void 0:C.value)!==null&&w!==void 0?w:"",this.enabled=!h.precondition||x.contextMatchesRules(h.precondition),this.checked=void 0,h.toggled){const S=h.toggled.condition?h.toggled:{condition:h.toggled};this.checked=x.contextMatchesRules(S.condition),this.checked&&S.tooltip&&(this.tooltip=typeof S.tooltip=="string"?S.tooltip:S.tooltip.value),S.title&&(this.label=typeof S.title=="string"?S.title:S.title.value)}this.item=h,this.alt=u?new f(u,void 0,E,x,O):void 0,this._options=E,a.d.isThemeIcon(h.icon)&&(this.class=v.a.asClassName(h.icon))}dispose(){}run(...h){var u,E;let x=[];return((u=this._options)===null||u===void 0?void 0:u.arg)&&(x=[...x,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(x=[...x,...h]),this._commandService.executeCommand(this.id,...x)}};d=n([l(3,p.b),l(4,_.b)],d)},fxth:function(j,W,y){j.exports={"action-bar-container":"action-bar-container___3Et9N","edit-status":"edit-status___1BgGg","action-bar":"action-bar___Q-6Wi",iconfont:"iconfont___3Ar9E",startDebug:"startDebug___AFxky",disabledDebug:"disabledDebug___iE475"}},fyJ8:function(j,W,y){"use strict";var I=y("rePB"),v=y("VTBJ"),T=y("Ff2n"),b=y("U8pU"),g=y("q1tI"),s=y.n(g),_=y("TSYQ"),p=y.n(_),e=y("c+Xe"),a=y("sR1s");function n(o){return o&&Object(b.a)(o)==="object"&&!Array.isArray(o)&&!g.isValidElement(o)}function l(o){return typeof o=="string"?!0:Object(e.c)(o)}function r(o,c){var d,f=o.prefixCls,h=o.className,u=o.record,E=o.index,x=o.dataIndex,O=o.render,C=o.children,w=o.component,S=w===void 0?"td":w,D=o.colSpan,R=o.rowSpan,P=o.fixLeft,N=o.fixRight,M=o.firstFixLeft,z=o.lastFixLeft,X=o.firstFixRight,k=o.lastFixRight,F=o.appendNode,U=o.additionalProps,L=U===void 0?{}:U,B=o.ellipsis,Z=o.align,re=o.rowType,me=o.isSticky,Ee="".concat(f,"-cell"),De,te;if(C)te=C;else{var Ce=Object(a.b)(u,x);if(te=Ce,O){var we=O(Ce,u,E);n(we)?(te=we.children,De=we.props):te=we}}Object(b.a)(te)==="object"&&!Array.isArray(te)&&!g.isValidElement(te)&&(te=null),B&&(z||X)&&(te=g.createElement("span",{className:"".concat(Ee,"-content")},te));var ce=De||{},le=ce.colSpan,oe=ce.rowSpan,xe=ce.style,q=ce.className,se=Object(T.a)(ce,["colSpan","rowSpan","style","className"]),Ne=le!==void 0?le:D,de=oe!==void 0?oe:R;if(Ne===0||de===0)return null;var $={},Q=typeof P=="number",Y=typeof N=="number";Q&&($.position="sticky",$.left=P),Y&&($.position="sticky",$.right=N);var ue={};Z&&(ue.textAlign=Z);var ae,be=B===!0?{showTitle:!0}:B;be&&(be.showTitle||re==="header")&&(typeof te=="string"||typeof te=="number"?ae=te.toString():g.isValidElement(te)&&typeof te.props.children=="string"&&(ae=te.props.children));var Ie=Object(v.a)(Object(v.a)(Object(v.a)({title:ae},se),L),{},{colSpan:Ne&&Ne!==1?Ne:null,rowSpan:de&&de!==1?de:null,className:p()(Ee,h,(d={},Object(I.a)(d,"".concat(Ee,"-fix-left"),Q),Object(I.a)(d,"".concat(Ee,"-fix-left-first"),M),Object(I.a)(d,"".concat(Ee,"-fix-left-last"),z),Object(I.a)(d,"".concat(Ee,"-fix-right"),Y),Object(I.a)(d,"".concat(Ee,"-fix-right-first"),X),Object(I.a)(d,"".concat(Ee,"-fix-right-last"),k),Object(I.a)(d,"".concat(Ee,"-ellipsis"),B),Object(I.a)(d,"".concat(Ee,"-with-append"),F),Object(I.a)(d,"".concat(Ee,"-fix-sticky"),(Q||Y)&&me),d),L.className,q),style:Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},L.style),ue),$),xe),ref:l(S)?c:null});return g.createElement(S,Object.assign({},Ie),F,te)}var i=g.forwardRef(r);i.displayName="Cell";var t=g.memo(i,function(o,c){return c.shouldCellUpdate?!c.shouldCellUpdate(c.record,o.record):!1});W.a=t},gIYZ:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};W.default=I},gRFJ:function(j,W,y){j.exports=[y("rdUC"),y("ynwM"),y("RELg"),y("DlR+"),y("CrYA"),y("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(j){return j<10?"0"+j:j}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(j){return rx_escapable.lastIndex=0,rx_escapable.test(j)?'"'+j.replace(rx_escapable,function(W){var y=meta[W];return typeof y=="string"?y:"\\u"+("0000"+W.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+j+'"'}function str(j,W){var y,I,v,T,b=gap,g,s=W[j];s&&typeof s=="object"&&typeof s.toJSON=="function"&&(s=s.toJSON(j)),typeof rep=="function"&&(s=rep.call(W,j,s));switch(typeof s){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,g=[],Object.prototype.toString.apply(s)==="[object Array]"){for(T=s.length,y=0;y<T;y+=1)g[y]=str(y,s)||"null";return v=g.length===0?"[]":gap?`[
`+gap+g.join(`,
`+gap)+`
`+b+"]":"["+g.join(",")+"]",gap=b,v}if(rep&&typeof rep=="object")for(T=rep.length,y=0;y<T;y+=1)typeof rep[y]=="string"&&(I=rep[y],v=str(I,s),v&&g.push(quote(I)+(gap?": ":":")+v));else for(I in s)Object.prototype.hasOwnProperty.call(s,I)&&(v=str(I,s),v&&g.push(quote(I)+(gap?": ":":")+v));return v=g.length===0?"{}":gap?`{
`+gap+g.join(`,
`+gap)+`
`+b+"}":"{"+g.join(",")+"}",gap=b,v}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(j,W,y){var I;if(gap="",indent="",typeof y=="number")for(I=0;I<y;I+=1)indent+=" ";else typeof y=="string"&&(indent=y);if(rep=W,W&&typeof W!="function"&&(typeof W!="object"||typeof W.length!="number"))throw new Error("JSON.stringify");return str("",{"":j})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(j,W){var y,I,v=j[W];if(v&&typeof v=="object")for(y in v)Object.prototype.hasOwnProperty.call(v,y)&&(I=walk(v,y),I!==void 0?v[y]=I:delete v[y]);return reviver.call(j,W,v)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(j){return"\\u"+("0000"+j.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},"gb/T":function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.mode.ECB=function(){var v=I.lib.BlockCipherMode.extend();return v.Encryptor=v.extend({processBlock:function(T,b){this._cipher.encryptBlock(T,b)}}),v.Decryptor=v.extend({processBlock:function(T,b){this._cipher.decryptBlock(T,b)}}),v}(),I.mode.ECB})},gflZ:function(j,W,y){},gp9y:function(j,W,y){},h3fs:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAAIB1JREFUeAHtXXuMZXV9/507M8vu7Mx2BXnrYoB2q7XU+AoWQ8PDF0VrGw0mjcbVdlH/aAvRpEXEFRA1EGjSROs2UaONFUkTFYq1wNogRaprfDQpLmWRlwoLC+vOzA67s3NPP5/v43d+59xz7px757GD8ts95/f9fd+P3+93z71z7j1ZeBa1PM+zN3x89gXdvLs5D/nmvBs2hyw/LeRhY5Zlk6BPZlmYDHk2KWFl+VSehynQ0OdTIQv7QNuddcKuLGS7Olln17c+vO5R0PNnSxqy1ezo1s/mYw8+Mfuqbnf+XGT03BDyV6MA65fSZxR4JoTse0jEjk5nZMeLjl33/e0XZ3NLaWMpda26gr3h+vzo+Znpi7Ai3oLivBbBTixlwC10TaOId+Uh+/rYxMRXv3Vp9lQLmRVjWRUF40p64LGpC7pZ9i5sThdiu1uzYhnoYwjb5qE8C7d08vyLp54weetqWHlHtGBvumbq2ENz2SUh627FajqmT+6OOAmrbm/IO9vXjOU3fPOyySeOlENHpGDnXn3g5E53/oMo0laspvEjFfwwdrHqDqB427udket2XD7+82F0LEZmRQv2+munjuvOho+hUO9ZLdvesMnjdonCfa6zLnz0Pz40uWdYPYPKrUjBtuV5566rpy/udvNr4ODGQZ1c5fz7Op3sstdePvHZbVnWXW5fl71g510586qQz38al+WvXO5gjqR+JHJnZ2Tk/bddvn7ncvqxbAXjld/9j09dk+XZpdj+OssZxGrRjW2ym2f59acfP3nZcl1RLkvBzv/k7Kb84NyNWFVnrpZkrqQfSOo92VFjF93+t+seXmq7Sz7zX3fVzFu6h+Z+9JtaLBaIsTMHzMWqLth5V059fL47/3V4/LyldvRZpw85YC6Yk6X0fUm2xG3fzkfvvHNqOxzbspTO/Rrp+vzZZ09u3XZOdnixMS26YG+/Pl/31PTUjXhv9ebFOvPrLI/3bDcfPTF50U2XZrOLiXNRBXvrDfnG/VPTt4Q8P2sxTvzGyGbZf22YnLjwa5dk+4aNeeiCcWXtnZ6+7bliDZh6FO2YiYnXDbvShrpK5GsWt8HnijVgsciO3Yi5e/tX85EhpMNQBeMFxnOvWcOkW2WYu733Tv3TMBoGLphdpj53NThMtssyW4a55B/oNYxvBOV9Vtnwc6NFZGCkM/Int31k/TfaqmhdsAuunj3lme7cD597U9w2tS35svB0Z83Yy9p+jNVqS+QHuQfn575yRIqFz3n4Wc+KHS3zvGRs+ESEn7syx210tioYP3Vf0s8G6wrQ4C0+6V/Rfw1u1E+YRubBCMwtc9xGasEtUf+e1b1nUX8iYYG8JRZxZ5Rje/qELaE18ydMQ4C91vpZwn2MhY2UMUEXDO0g/mkmZJ0z77hi/ff7SfRdYdvwl2L94+OQf89iMDwYCA5ZKygSC8XD0OgJg5EFtEN4VQKorh2FrOtYmt70u72KL+6f+5vaTILQWBnvEA2RSa63Med9Wt83b6OjH3wf8veXfeTrSe60F4pFsKYoLZagiTB6OnGdX/tCvoxf3hH94RHdF18VRxCrgqWNTVae8QiS8GDtpEe+M/f4A9/+RONfrRtV8oaZwwfyXbDX/h4M9960ciZ6UxRXCDAcACglw0J3Ebl72sUrXjqP6x62L00Qt0VlsIe7wkVtwVOMNQYyafEoUBJ3IUeqaFs3942OZ5ubbuxpXH7zB8KVsLDoYtFXhuPbiBaCkRS4EHjvio7ZS/gWrMh1C16ZBMzYEhzuU9rDEbpgJTCfpELcNgsfaZ+xOI4+e12IkxYROmx53sg7y5p4XWWJzvsGs/n5B+BOuztwzT967M6qYgYE1Rho0WhGcf79A9LJK3ICKA/P2sBfgAL5BHb0sL3nVRyAEvVZz6oTsPnE7U5CMTJXoPqhvZSLsQhdealDtkkPwGRVd/MZGg/lIyOn1t33OFonxps8MZ/aFcsVwJmeYgkN3sp/K5SnH7gN41k4/4yjwuaTR8PG8U4Y7fuK6oZWvp/HBvDUdDfc++jhcPtPDoaZZ1gBj6vsDwunq02LxpyUilZmrx0hU2tYAxAvqTL01Fxvnw4PQqjdHbn03bSIc2JBVwVd1lmsAcbVBPzLTx0Lb3vNeFiLt4ttV4zIy8SohqFj6nEeYhxmz1alK7b5XCc/NZuHm+6eDf/z8JyUxmPXJBSrTVOiRZOC0UySq2arSoGmA2vGwouqt4X3vIbxXvfWxUqsNhVLVh0il6RJ3w2vOG0svOuPxsM41nAHkTG4Nofzsq87qMN5Uth5UxzhhQ7XlcpvWJeF9543Hl66aQwxYR+S11co0wB1knCiAsUK0YbkQMbtT6yBfO+gIlIqmHw8gi8mVHiahzZjCofUUV9ZUsT4XTky52ESAb/tzHGZ7Zzxz9bjHWetC+uPknJIXJokTkwenAyaC8bMJjlydmVe+IxaVD+yKhVs956pP4axob5FojNJPBOH6ahfmouzmI2YjuH1L1sXxo9SX1kstqaiOU2YjM9xTTIrhZfX35ethTsoCIskPWPRicmiCR69hUnXB2qsBb+GlQqVCoYrn3emxL4wHYInUgxhTD0DTI+lw4mX7RbUS144Fkawx/BgIN4Trh5Oa8tfle+gesSxT+Eq37DjM05Zg7B0InIy6sSEQa0WADQqZyJ4Jp5jHQpuoRO/M5fyxILxm4/8Ml1KbAuLD+ILPdGjOBfFYiDHTEgEotpfjNnXHWRynhSu463DpTIpXMc7DE5isYnoRbK1BnOaAX95KKKmJ+0ba8LauEQsmHxNddBLedfiRYKPnEQ8IpAExNk4OsLisBC9B9UR783hOt6VwNEP9yGF3fbYKMohK8zLVCTA8yC5sPx4XIP00LyGtXGZWDAs18FuK0ZiucSZXzqlgXGsOGCFzl4YGBi2Rr/yopwE7j0QQrPe+bwXfvL2O0AUOvsUbpJJeVLY+N02+xTGMPqh273uInFbtBwwF4yfvkiOOHIAcNuW1kYKxisR6OEXwNs1+hEbq2U1YW2A53yLEEFiYMCdlWQyajTCsTnMHofQrHeZtE95BKYi8msXYUdU9Qk7mb05bAp6+IF3nNjB2OPSnoo8A5YFDFkj8UFoZkzyYvACHWvjV4vySQd/WgEyw39bXzziTKJ3GoT6IAOguLoU5kz15qD3jk/7NrSUpw6uw9GG471P7Tqc0hz2XngYu1wZcpWBIkScgOfrotLACTattmseqJ+wGt0tK4y/gzGQOJhltUhf9kPxvqKotfjQlPu9xAAs44ow4+KR4lK4ie56mvpUZwo38Q+BZ0y+yjRWz43tKNDJxvhkXgP23Amh5clrJAVD8QcuGO3ABznRET+IUscwwwCIc5xddmlPGSmOCCtMKhvx3rcqIPhdV13vulQrzqZfZ4bZ66ODfOIT5RLYbYkeCZarSwvBmDnQHGguCMuYOqIzgwFQITXCT1BwHeevHkw84TbPuB2qM+zpNBpw/McA1GNuE5oE9vJCbn0KpzyLgVOdhHGBKjbZ86Bu7+vsVOXJ4ziH09hk+5PtkYXRuCECO5YPryJzM3DjrwDl2Sh/uwl6Bvs5IHohPpgjOtDVBFhJnGVaRPw2lBRMtkQ6Snk2MkZdgimfnNbEX6WXpXtHsMdEm7sRFhy5q/44bx/7clkvQWC7x93XjJ7FyqFUeuYgGk0Uus5eL2sxrBFr1eEPbdVytER6sFAoydcOZwJ0XAgc60F++iqHw+wN6T0ZiPI+hVW4hm56KcYmMtYTjrYxEDuGQyctxaVwE130e1ylWGmbpUMDk6SAoAi4tsF71moUaocumDviPT2kTxKDuEuXbcbZmFuKBFLjr8fjPVnq4DocefmCTN3ywpzAy2UPJsyKxqnWWSiM/Q+cJMHhmCOKpAFw3LKxVqPYrYYqGG2midAxHVUsZxi+Ui+ueAGFBJRv6T1+ulIV6yGLQefppUoiRLfJO9zaniW3FFhqx227fx6uGRIyYu64QQYMWDfHQpGLF5h2EGs1ihfE0y3HLaXAVrHo77+ogDHzYPM9XAYwwrGIVuSFbqfH9s2Hh584iLq7FiNgOL52JPzuC9eGsZq/TD9OuT3PYJJU5CA+ftRoeDHk6v6ifeBQHnY9+kw4dJjvFYvGD5xPPXFtOHrC16vRUt8BMybdUmgX8aFAFqUIOLteePjIdFGkgjJKbcda8Y1z+xttqmpoTP0sUaRQIMjWQAZLolyEJA7ayzJ8VuR3/nc6/P2Xfxy6Xby3oZy9FRBQLOThxaceG676i5fiU/7C5Pfvmwmf+sLOcHh+vkBWoNM3PT984n1nlIr9q5lu+OA/7AxP7puBCfNCXmgAdzphzdho+Oh7X45iN98tEWNijFIsatKj5ALDYZhJ/CV6u8FGhJ0N/AlHefbTE9aEvR11oBVNPhWX5KjnXizq+OZ3fx718P2MvqchhQ0lBO7e3XvCzx47hJkMSTu++d1HwzyKxVzLAW7Pjfe7H34y3IeVRHsu971d+1GsafFaVorZEc9ga25uPtz+gz2R3+ViL1Y0dg/ZUyC96SvyRS5tBc4xbfpsgu/D9OdW2/A38UiEWi4D40zShPn8ZW9JBRATbPCm4yd8MeI1W9eYBq7FIv/oaCcc+1ujqoe6cJxyAn41lr7FrBWgoyh3wvPGSgXddNw6YfRiuQ5aVrk8nPT8dSVbtBcPAuCUSSA9x2iC1050JjihD3lirfAaFvBbucNoqAjRSaCIZbLl40NR63xKTK8STcTjC1veeGJYu6YTHvzFftUjjolGKeTaNaPhjWeeHI6Z1BcxUqjjz88/KYxgj7z/EfykL9/zVdq6tWvCBa85ORy3sXyT2O9tWhsufeerwp0//GU4iNXElePZxg9+hc2nPC/86R8eI2+WqdLtsS83x1iPLu8Qpr6i0wHPCa1ALgixVqPILlaYGVpQpMJQrbSrEX9wAp0sclC06j/GrK3jx1Gs977pRAjgYCN/QhdccnLZtWNZePfrIZNR1uTI5zB7tqo+4M/5gw3hnDM2NNKjDMVNXnqVkLOo5wmHXFzQMY6r9sjNZFQVEN+moVblKddGqIaHPsRmcMTROQuA+3aPrwzKm8PeE5/Czue907yv8jve+6WmQ1+MiTFacLEmzIXZjjj6sIiGFwP8PPiQN96U7CZFo9+xYCWmGFMFWz9krEnMPUxOS0z38KSIqr6F5AflL9miMJrU0A0pavgzajWKxE5Bw1B3SlUt9yuU89ok9OGCvcVdy+c072uZKsiU12HvK6wyTGkOe1/Hv5w41goXHfIj/Mtpp6R7JYP1CeSTxLelptVfcrTlwHW3ZF8UG2uFFYYtcQXbSgbIsFJ7Dnu/gmEviSnWim9ocC28JPpaKxk2YdUVQj2Oo3GHfQVV6Qs5uFj5hfQvmo5a8bJ+t760L1pdKwV8H+YFqyZoIQUu5z35UxifJknR2LNRv+MU0//sutJerhdsHx/U3/7WhqCiVqN8cEzNe80htC0swkR4MsjtsPcLa1iYI9XlsPcLS/dypLIOe1/iZmWloiXskg5YK9wKme3SD2KWVHejstpgG7lXF6G6wlY6FtZqlI9k6hafIy1PhpLXSNtdau0wAZ6UOgansV+KVrW3kH7fXtMtdyn8aKuDtero87P4SKbFt8ZEJlVikuKn3RikMD3guKk5LZUZDHbbvh3TvlilZbNd9inVn/IUcOJtje+NOUnE2oBQPcNa4Usd8pnK99oINfGIn0me+zmpCdCEUa58aALTJJVh8jtPVbbN2GW9KIvVl2QkiZ/YUg4szoR7CBDPOEOt5HoK+nYMoaFexByXIpKDnie3CpDcdMgVJOjsU3i5+N2O97TjdlO4iU6eUmFsEGMnwxI1qJIaScH4ZLrB9UJF9Myk3UH2UiSd0aQSxdUxc1A/AKZo9RA+1yH8xPTyuZzThMn4HOc8ae8056/25GVzGYcFaXjHkUdjQYxEIl6Vx4ixC5JCJCZNmKrIhN4Aeo2kYHyMIPimG3jboe1CgK7g8R2Jo2kgAfdrHI4J8cSs1l5WG0KJK8xg9/ehPXjyosSdxMhsMXwW0DO3+IukaauR3hHG54TAibtc/0I9V0rRACfFMv8jjmP5O7O8VIZwx4/2SyDUsNDh25MnrNpT3nlS2PlSXAq3pTNG8npzkD2P2xALZ5/+hdr/bg0CgwaDdRigxcTosJxDxTWdWRt/lot9JkC7WetfxaxTrA54KOAwsMAodPN39+hPJmDIuvc7aIf0puY010E+x6XwUtFdD3v+7MOt9+iD+hg73RRXIyAeCHaQ4lCq2jDhv+64WLCR9RM3wuwhJ7TqZdaAUzwtJGRFASlheJRCJmMePvWVh+SHSpzU1MvqgYiviGpPOedp0rEYvOt2u27vqaluuParD0sssRhmyEunOShyEnPkOUtI/UDWhA9PdZ5YMD5NFdvuLU5o7K04qV1+n8LHJIvv6L1wOu1BIQGeP/bUwbDl2p9iezzQWAwmic17wiJuPeGehBq/WjG64TzpaU8+0UGdCew8qQ3C5Nnxk9mw5bqfhl88iTuw8FmRxChEUpkHK5nxAym5ke+ccIDmuRKFimo8sybpk25LtwjgFqov4haWP2uUriHQ1+LSVh0mQhzHbzbSUSmnMDIKjICbmp0PV33pvvAvO9aHM19ydDgOdzStwZ1NKmlBIbLfecHa8NsnFr+uSjV1bRZXn3fdOxMOzcV01LG1womr4NTUB9xkmofHn54L/33v0+H+n09LobKMqVNnyBchvFbnuDTgS7Z+IaJwWPQO6B5rkjpdKhgffbv78am9yHerv0B78rx3X9z5vEuIWPY4hFD0nKH3Pzod/u+RX6GImCrdefTkB4wxoev/6tVh80laMNfEno3qntjfDTfd+UT41zvuD9OzB9UE8Lq6yYVGk5gkDrP3SRZfe90tXocxIBz0T+jZSNITx4MsyicDKsVQLu+xREkSk8ZCMpvgFVzwDN69px4/eWvKWCoYr0TO+9g0nlLU/buUqR/sgTO7Os90lUlSYZH/5B57esqI8F5dPlwBQ85HRhoPNif8JxIzFGiyrsFH0684jT9eoo0a2Ng/8Pjh8OU7fhn+/e6fhcO8zRpI2aJoWHSS0xuI3PzFKfTCyzET67sBtXKsveggjOIQZk/9MpaiUqEdhmes5NXJwpH+E7sgMVeiHpKtGh5D7FeHzl8qGJF8TjF+4+ivEUbzj4N54OIghCRJOBlegmbijS6BYsRfR/UECYkftKBIeZeBs0qgs8enq9w2X/mS43CfItBJ+8H9B8M/3/5IuPtHv1AsEqFJZM//+Ecc7RGBJmNOdw4VJXiFO3gdk027IMqnu+SHX6B5oXRFEUdx0kmWQRwTSUyBV5Ix+8ByhmFDgxb8OFh+Q5XcUzD+etj5V8qjOv6mytxvrC+qqBiDR7E0DsIWkASus08+EePMtjqlwWmS8eU4FO6s3z9W9HBm3vHjA+GL33ow7Hpwr7iR8cqAjfqpx1tMINDiCwiaQemczeZWTCzTLKJyokKMxYauLC+W9FZQKWSExYjoowrqJ6/YgY+i1o236MG/vfpLbhTrKRiRfKg0fuDyA0hpZX6Tqk2cYSbxPzoj3qnjcXUxmx28NnEVoUgsltwZLKsNujw4gJThk3X5esNC//ThmfDl/8zDjTseCo89OUNW8JdddttiWuSpqHBK6MYk8m6HutBgUXwQyJWpEKgsFun0HTALyN7GAosSK7DgbVKKZrNIMRySLoE5oGB9g0+HWIM6KiTrG1bZZ/DVnffVUmlMHGCKUVZ6Io1XhQBw0q/HcqywXETwxSmfx7dTwITeceTViw5uiwU/VYpu6sA/sUWkNXeeFDbJM1ecEwpAEi++8fJNmpRKhIiXwogOTb6ycAJxbMXyXoqG28VhUIunFyWEdVV5UUmnJupQGzopgaQb0U8hxxN2hn+8/YrJ90dEApSna0LgE8C7B8I7gOr9OlLJEAYcazbgIBOuzsl2JTTyEODB4MHA3xnEiCdihc4ZLFccHPN1jD8TAQbRrbzCYmNd5RSlJisAGNQ++aFPlAMmXfOmNuGP+6muqQ7VQzkK0lfK4mTFEByRoGuBTKkqUTsCmwp3INKpDy36pcPkvI+5T8YlsFkMbOdfNfV+rIZPlyR8wDziHxXoCmPAbMkq4wWErB74hxXFH1jhD0IKjpWSy3hdhVqoAo46yS4Fcv3e05a5j47lEjaDIaXkWDQtaCEtjKbB9HDEQlC1waKZsyQtGnmkgCwWZYoVpfJeUOqxgoJPV59oFDFSqw1fwvjA7R+Z/EwV72PX5uNSz8e1w52dJWQyiA4wHptV4g5jkMBJ4FUY6TSlgcTZykA73E7YM2jCOASHO/AEVh78eUHxpd5o4AvkHRmBLeULHcrjYG+w4KI8/TK5iKMsfazYsjG/0aKFAl3iYaDk54HwWBQrjKZDkEBTTqYQesORvdJA2cmcV9ClYbO0sTU+yoNTlU5gWlNJugoi7CuDq4wzHmN5rZJVCBjftJTXJfLJSrTXMK5C4+eFiuoTK+qV2ZZBXEHy6hATR3FxTE8Kg1cSRxqbJY9Jph0TkF4SK3SVEZoUhn4Qx56TTIsVCyi6Uh6wGb9YEAcERUJs0IhkLPwoD2pesJ175f5rkQD+ynPRLGgpBLCSeO+tUNJ54pOiaXG8EL5tUiEOKarDxLAQPJNWmI8QI/BCMFlocsaJ9sszWumRyeR0TAEKK4/m1QsDXCwQ9ZMHhZKtg9IsHHHKpypU1qYRVJPussoqCD9l4bodV2z4kA+belhduJ1+/ORlMHdPiVPtJwnRMLRIJOrYg2DAgmE0mJW6BRJOtiXHc4uSbUj5ZIuqblO+jRletzEmTrczXv53Rnxb9a0RNOIM38GXALn9gtF8oqzhuJ1SFw7x14sCH3PidJ9XWk2xQJAJo5NMkxUnjw5jOjG8hzmOiD5ARbSZ8/xPzm7i49rhQPEUdJvxMvshSmVxOxRVYOCKSWBOY9kWiRSaX8qTiauNdF1VxKg+QmxmUAc4J+4zaZRjZ3il4qwk0BQTxUvyVI8pRV5qJivGBEQOsH6YSyLRPtdJRxFdRnRSmE1l3WuMHK29sgz0wDfXXCjoA9U+UlE8RWxIltpnwgm5m+iBUBTPWhClO68WSvk03SKhQlSGJoPYCQre01a5EElSki3PtcaasRhs7KhahoqjPkF5kYw1LYAkn8WkYEIvBqAAHyePDgoybaMt2yMVVX0IfNAmilMsX8sjne5bNLguyYUi5ePKMtgKKr8a4BcZZCZdUwf1bkjQpVO5GJIlS4xmUs4sgqtQtHyiUiSbtiT9qhs8ZHOc9KoIBC0U1UUep4l0Q7FIEz5h4kS75o4rJj+so3bnRLydALnO/dj+z6HbEiWSRBRFs2LERJPJGNEpX4HjmEURDE4Kk9HhaK0EaJ6sGBikNwB5si2rKkce00Bb2hxjNCsuF0XBrTxx9YGSFpG8HIu/lFfFuvrjwJDafX7HRze8p4RpMfCNuAVrwXL22ZNb4dPNEaOxRGeJp4+6VYEIZoVpzpgFh7G8FpDOF3O84PMfaCrDiwjw+EWIXADwIkAvBuSCgBcMvCCQ93HsVVYuFMyu6KAeO2hH6dRPXWon8pk+0Ws08Ud0wxxjiLo1Hp8cXlDhYhzeUhC5Yw6dNEifqBlELITaR9snMyldaSyfkOKe5Nujb3hqW0YpD9DRQcMnJlTIkiJkMCt/lLKgbMzOFVB3mtAyifXQRn7A/DBacUogrDYJFLpcveiOA9PFbpGPtlfrib5BwLfekG/cPzV9Czw/K8pVnCwKp0WSyckCCp8zo9f/ooZOiZwARDmfkCsnCyHyFsmrSpaK4FpMXHjtQiTyCU/B0FskMijdPYyTICJEiZ5QrA2TExd+7ZJsX4IdCCy8GUisYOZKe2p66kYU4M0R684SAQtF0YgoCmdVIxLNhdATNM+0sMLQ9xSTXJJVJZEWNTSHnfJG21IpFVa6yrvHpPQUSpAqo/Rw89ETkxfddGk2W2AHh5o9H0DXtm/no3feOYVbC5ILEcp7RGalX+E8UTFJURhqXE+NTy5XkMohOb2kw5GFUOGr4cosvQUiWywSB6mPZRdI/Txfs7adkx3mYDGtV/UitPVc8rsuD8aseeFITlMhSSXCspsmrZRw01tLd6TbpI0YZQRMg3YJawlfHTQWiIz1qlnUgS/dq3bTcYOZlGUwWN5c5/NfwIwrPhFxFWlmzHJv8chcMNYVytWxL4oho0gqNERUBEqJj9gK0KSgbcbwyPqRbOTdt31k/aLuqK541TQvqmyDjS+4evaUg/NzX0HMZzZKpgmpKV6j3AKEnmKkdijbNuEL2OlHhol7jhoZe8etl697qB/fMDS8IVn6RkdPO2HybCTnOlwM60caVTNMnB9MKg55D8Yzls1ARyGZLk616Da8r/qxhGOJFTEz9uUoFl1lGMva9O9p859GPV7Z2lB1VfQTXPYI+hkvaHBjJ97Qf2ChR9MXEsNBKxLuNtyQeNfV0xfjdoNr4GbvPSLD+b5apPbhL9GX8S/F23jL1zK3FSmYx8Cnr9sDvbfg3VjjLXTOv5p7bH+HsHN/jjfMND3VfDn8X9GCeQB8sDefU4wrwK0oXPMdxi6winoU6gAKtZ33DdY9GHu5XT0iBfOg9JnR2SW4LtmK4rX6AobLrnSPIu3Frcrbeft03R25K+XPES2YB8mHmekTbrN34s9hF66W7ZLbHj5evAX3PX7ptOMm/636xQT3fyX7VVGwNGA+oFOex4lHPGLV8amBA/9Me6pvCHgaq+kuvK34Br+Vmn6ZbghdSy6y6gqWRsiVxyfT8WFnuNI/F2+y8EimAZ/ElCqsgVEc/AoQfrQEX67kTyvw2/qrYSXVuCqoVV2wqtP4GCvjI5n4lB9sm5tx59xmbFengw9vFbIJ0CdRAPyIPX8pHA2/kYsCT2G14Ec882kU/WnQduNvkruw3e3ibzfpTzdhI36WtP8Hs4VbjXCO43sAAAAASUVORK5CYII="},h78n:function(j,W,y){"use strict";y.d(W,"a",function(){return M});var I=y("q1tI"),v=y.n(I),T=y("TSYQ"),b=y.n(T),g={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},s=function(k){var F=k.map(function(){return Object(I.useRef)()}),U=Object(I.useRef)();return Object(I.useEffect)(function(){var L=Date.now(),B=!1;Object.keys(F).forEach(function(Z){var re=F[Z].current;if(!re)return;B=!0;var me=re.style;me.transitionDuration=".3s, .3s, .3s, .06s",U.current&&L-U.current<100&&(me.transitionDuration="0s, 0s")}),B&&(U.current=Date.now())}),[F]};function _(){return _=Object.assign||function(X){for(var k=1;k<arguments.length;k++){var F=arguments[k];for(var U in F)Object.prototype.hasOwnProperty.call(F,U)&&(X[U]=F[U])}return X},_.apply(this,arguments)}function p(X,k){return r(X)||l(X,k)||a(X,k)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(X,k){if(!X)return;if(typeof X=="string")return n(X,k);var F=Object.prototype.toString.call(X).slice(8,-1);if(F==="Object"&&X.constructor&&(F=X.constructor.name),F==="Map"||F==="Set")return Array.from(X);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return n(X,k)}function n(X,k){(k==null||k>X.length)&&(k=X.length);for(var F=0,U=new Array(k);F<k;F++)U[F]=X[F];return U}function l(X,k){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(X)))return;var F=[],U=!0,L=!1,B=void 0;try{for(var Z=X[Symbol.iterator](),re;!(U=(re=Z.next()).done)&&!(F.push(re.value),k&&F.length===k);U=!0);}catch(me){L=!0,B=me}finally{try{!U&&Z.return!=null&&Z.return()}finally{if(L)throw B}}return F}function r(X){if(Array.isArray(X))return X}function i(X,k){if(X==null)return{};var F=t(X,k),U,L;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(X);for(L=0;L<B.length;L++){if(U=B[L],k.indexOf(U)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(X,U))continue;F[U]=X[U]}}return F}function t(X,k){if(X==null)return{};var F={},U=Object.keys(X),L,B;for(B=0;B<U.length;B++){if(L=U[B],k.indexOf(L)>=0)continue;F[L]=X[L]}return F}var o=function(k){var F=k.className,U=k.percent,L=k.prefixCls,B=k.strokeColor,Z=k.strokeLinecap,re=k.strokeWidth,me=k.style,Ee=k.trailColor,De=k.trailWidth,te=k.transition,Ce=i(k,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ce.gapPosition;var we=Array.isArray(U)?U:[U],ce=Array.isArray(B)?B:[B],le=s(we),oe=p(le,1),xe=oe[0],q=re/2,se=100-re/2,Ne="M ".concat(Z==="round"?q:0,",").concat(q,`
L `).concat(Z==="round"?se:100,",").concat(q),de="0 0 100 ".concat(re),$=0;return v.a.createElement("svg",_({className:b()("".concat(L,"-line"),F),viewBox:de,preserveAspectRatio:"none",style:me},Ce),v.a.createElement("path",{className:"".concat(L,"-line-trail"),d:Ne,strokeLinecap:Z,stroke:Ee,strokeWidth:De||re,fillOpacity:"0"}),we.map(function(Q,Y){var ue={strokeDasharray:"".concat(Q,"px, 100px"),strokeDashoffset:"-".concat($,"px"),transition:te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ae=ce[Y]||ce[ce.length-1];return $+=Q,v.a.createElement("path",{key:Y,className:"".concat(L,"-line-path"),d:Ne,strokeLinecap:Z,stroke:ae,strokeWidth:re,fillOpacity:"0",ref:xe[Y],style:ue})}))};o.defaultProps=g;var c=o;function d(){return d=Object.assign||function(X){for(var k=1;k<arguments.length;k++){var F=arguments[k];for(var U in F)Object.prototype.hasOwnProperty.call(F,U)&&(X[U]=F[U])}return X},d.apply(this,arguments)}function f(X,k){return O(X)||x(X,k)||u(X,k)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(X,k){if(!X)return;if(typeof X=="string")return E(X,k);var F=Object.prototype.toString.call(X).slice(8,-1);if(F==="Object"&&X.constructor&&(F=X.constructor.name),F==="Map"||F==="Set")return Array.from(X);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return E(X,k)}function E(X,k){(k==null||k>X.length)&&(k=X.length);for(var F=0,U=new Array(k);F<k;F++)U[F]=X[F];return U}function x(X,k){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(X)))return;var F=[],U=!0,L=!1,B=void 0;try{for(var Z=X[Symbol.iterator](),re;!(U=(re=Z.next()).done)&&!(F.push(re.value),k&&F.length===k);U=!0);}catch(me){L=!0,B=me}finally{try{!U&&Z.return!=null&&Z.return()}finally{if(L)throw B}}return F}function O(X){if(Array.isArray(X))return X}function C(X,k){if(X==null)return{};var F=w(X,k),U,L;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(X);for(L=0;L<B.length;L++){if(U=B[L],k.indexOf(U)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(X,U))continue;F[U]=X[U]}}return F}function w(X,k){if(X==null)return{};var F={},U=Object.keys(X),L,B;for(B=0;B<U.length;B++){if(L=U[B],k.indexOf(L)>=0)continue;F[L]=X[L]}return F}var S=0;function D(X){return+X.replace("%","")}function R(X){return Array.isArray(X)?X:[X]}function P(X,k,F,U){var L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,B=arguments.length>5?arguments[5]:void 0,Z=50-U/2,re=0,me=-Z,Ee=0,De=-2*Z;switch(B){case"left":re=-Z,me=0,Ee=2*Z,De=0;break;case"right":re=Z,me=0,Ee=-2*Z,De=0;break;case"bottom":me=Z,De=2*Z;break;default:}var te="M 50,50 m ".concat(re,",").concat(me,`
a `).concat(Z,",").concat(Z," 0 1 1 ").concat(Ee,",").concat(-De,`
a `).concat(Z,",").concat(Z," 0 1 1 ").concat(-Ee,",").concat(De),Ce=Math.PI*2*Z,we={stroke:F,strokeDasharray:"".concat(k/100*(Ce-L),"px ").concat(Ce,"px"),strokeDashoffset:"-".concat(L/2+X/100*(Ce-L),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:te,pathStyle:we}}var N=function(k){var F=k.prefixCls,U=k.strokeWidth,L=k.trailWidth,B=k.gapDegree,Z=k.gapPosition,re=k.trailColor,me=k.strokeLinecap,Ee=k.style,De=k.className,te=k.strokeColor,Ce=k.percent,we=C(k,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ce=Object(I.useMemo)(function(){return S+=1,S},[]),le=P(0,100,re,U,B,Z),oe=le.pathString,xe=le.pathStyle,q=R(Ce),se=R(te),Ne=se.find(function(ue){return Object.prototype.toString.call(ue)==="[object Object]"}),de=s(q),$=f(de,1),Q=$[0],Y=function(){var ae=0;return q.map(function(be,Ie){var pe=se[Ie]||se[se.length-1],Le=Object.prototype.toString.call(pe)==="[object Object]"?"url(#".concat(F,"-gradient-").concat(ce,")"):"",ve=P(ae,be,pe,U,B,Z);return ae+=be,v.a.createElement("path",{key:Ie,className:"".concat(F,"-circle-path"),d:ve.pathString,stroke:Le,strokeLinecap:me,strokeWidth:U,opacity:be===0?0:1,fillOpacity:"0",style:ve.pathStyle,ref:Q[Ie]})})};return v.a.createElement("svg",d({className:b()("".concat(F,"-circle"),De),viewBox:"0 0 100 100",style:Ee},we),Ne&&v.a.createElement("defs",null,v.a.createElement("linearGradient",{id:"".concat(F,"-gradient-").concat(ce),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Ne).sort(function(ue,ae){return D(ue)-D(ae)}).map(function(ue,ae){return v.a.createElement("stop",{key:ae,offset:ue,stopColor:Ne[ue]})}))),v.a.createElement("path",{className:"".concat(F,"-circle-trail"),d:oe,stroke:re,strokeLinecap:me,strokeWidth:L||U,fillOpacity:"0",style:xe}),Y().reverse())};N.defaultProps=g;var M=N,z={Line:c,Circle:M}},hBbQ:function(j,W,y){"use strict";var I=y("2qtc"),v=y("kLXV"),T=y("tJVT"),b=y("q1tI"),g=y.n(b),s=y("Jjat"),_=y.n(s),p=y("9Bee"),e=function(n){var l=n.title,r=n.children,i=n.value,t=Object(b.useState)(!1),o=Object(T.a)(t,2),c=o[0],d=o[1];return g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{onClick:function(){return d(!0)}},r),g.a.createElement(v.a,{title:l,visible:c,width:1e3,destroyOnClose:!0,centered:!0,onCancel:function(){return d(!1)},className:_.a.modal,footer:null,closeIcon:g.a.createElement("i",{style:{color:"#979797"},className:"iconfont icon-danchuangguanbi font18"})},typeof i=="string"&&g.a.createElement(p.a,{value:i||""}),Object.prototype.toString.call(i)==="[object Array]"&&g.a.createElement(g.a.Fragment,null,i==null?void 0:i.map(function(f,h){return g.a.createElement("div",{key:h},g.a.createElement("b",null,f.name||f.type_name),g.a.createElement(p.a,{value:f.description||""}))}))))};W.a=e},hW8S:function(j,W,y){"use strict";y.d(W,"a",function(){return b}),y.d(W,"c",function(){return g}),y.d(W,"b",function(){return s});var I=y("VTBJ"),v=y("Ff2n"),T=y("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function g(_){var p=_.expandable,e=Object(v.a)(_,["expandable"]);return"expandable"in _?Object(I.a)(Object(I.a)({},e),p):e}function s(_){return Object.keys(_).reduce(function(p,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(p[e]=_[e]),p},{})}},hXwI:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;function I(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function v(g,s){for(var _=0;_<s.length;_++){var p=s[_];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(g,p.key,p)}}function T(g,s,_){return s&&v(g.prototype,s),_&&v(g,_),g}var b=function(){function g(){I(this,g)}return T(g,[{key:"decodeRect",value:function(_,p,e,a,n,l,r){if(n.rQwait("COPYRECT",4))return!1;var i=n.rQshift16(),t=n.rQshift16();return l.copyImage(i,t,_,p,e,a),!0}}]),g}();W.default=b},iNZB:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjc0MDQ0OTA3MDE3NzExRUJCNjY1QzBDMDY3NUI5QTQ3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjc0MDQ0OTA4MDE3NzExRUJCNjY1QzBDMDY3NUI5QTQ3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzQwNDQ5MDUwMTc3MTFFQkI2NjVDMEMwNjc1QjlBNDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzQwNDQ5MDYwMTc3MTFFQkI2NjVDMEMwNjc1QjlBNDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4CEd39AAACAklEQVR42uzYvyuFURjA8Yf7TpSw+BHbvSTZrXTFX6AMRLiLySSE8ismg8FAIsKAwcCA/eqSbEqJrEgMd7pxzi3iUgbn8KTvU0/37b7Lp/Oe5+k5JygoC4uJiMkpk1GTeaIoApOVJuMm80VhZJuc1Ip7BUZFcWRr23NfAQUgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQL8FWAoFJLpseFP/+9ur8v9zUU67fN3kVVQFn52jcvNzZH52RlpaqiXwvLIh3cW9j4y32dG4BpXUlwkG0vzUlNdpe8TW9T+zqYznFNgY7ROdrc2pLSkWF+RdLe3yurCXHrvuY7gp5U6MTIgsY42b20mcFGpPiPQUKlO96CPSnUG9FWpToA+K9UJsLIinK5atcNC39Co7O0f6gWmUinp6umVk9MzveNWMpmUlo6YXF5d650Hb+/upbm1M/2rdmC1K2hX0q6o2ona7kW7J+3eVDvy26ruHxnXfSZZWF6VxZU13Ycmnz3SCdBnj3Q28vvqkU4PTT56pPODu+se6eVmwWWP9Hb1YavaVndmxBPHb89HiZO/ufpQWyQAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECPD/AB+1Aw+0AwdNPmgGnpusNblt8kkb8EWAAQAq85VNhqprywAAAABJRU5ErkJggg=="},iUHT:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;function I(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function v(E,x){for(var O=0;O<x.length;O++){var C=x[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}function T(E,x,O){return x&&v(E.prototype,x),O&&v(E,O),E}var b=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=0,_,p,e,a,n,l;_=1<<16,p=1<<24,e=_|p,a=1<<2,n=1<<10,l=a|n;var r=[e|n,s|s,_|s,e|l,e|a,_|l,s|a,_|s,s|n,e|n,e|l,s|n,p|l,e|a,p|s,s|a,s|l,p|n,p|n,_|n,_|n,e|s,e|s,p|l,_|a,p|a,p|a,_|a,s|s,s|l,_|l,p|s,_|s,e|l,s|a,e|s,e|n,p|s,p|s,s|n,e|a,_|s,_|n,p|a,s|n,s|a,p|l,_|l,e|l,_|a,e|s,p|l,p|a,s|l,_|l,e|n,s|l,p|n,p|n,s|s,_|a,_|n,s|s,e|a];_=1<<20,p=1<<31,e=_|p,a=1<<5,n=1<<15,l=a|n;var i=[e|l,p|n,s|n,_|l,_|s,s|a,e|a,p|l,p|a,e|l,e|n,p|s,p|n,_|s,s|a,e|a,_|n,_|a,p|l,s|s,p|s,s|n,_|l,e|s,_|a,p|a,s|s,_|n,s|l,e|n,e|s,s|l,s|s,_|l,e|a,_|s,p|l,e|s,e|n,s|n,e|s,p|n,s|a,e|l,_|l,s|a,s|n,p|s,s|l,e|n,_|s,p|a,_|a,p|l,p|a,_|a,_|n,s|s,p|n,s|l,p|s,e|a,e|l,_|n];_=1<<17,p=1<<27,e=_|p,a=1<<3,n=1<<9,l=a|n;var t=[s|l,e|n,s|s,e|a,p|n,s|s,_|l,p|n,_|a,p|a,p|a,_|s,e|l,_|a,e|s,s|l,p|s,s|a,e|n,s|n,_|n,e|s,e|a,_|l,p|l,_|n,_|s,p|l,s|a,e|l,s|n,p|s,e|n,p|s,_|a,s|l,_|s,e|n,p|n,s|s,s|n,_|a,e|l,p|n,p|a,s|n,s|s,e|a,p|l,_|s,p|s,e|l,s|a,_|l,_|n,p|a,e|s,p|l,s|l,e|s,_|l,s|a,e|a,_|n];_=1<<13,p=1<<23,e=_|p,a=1<<0,n=1<<7,l=a|n;var o=[e|a,_|l,_|l,s|n,e|n,p|l,p|a,_|a,s|s,e|s,e|s,e|l,s|l,s|s,p|n,p|a,s|a,_|s,p|s,e|a,s|n,p|s,_|a,_|n,p|l,s|a,_|n,p|n,_|s,e|n,e|l,s|l,p|n,p|a,e|s,e|l,s|l,s|s,s|s,e|s,_|n,p|n,p|l,s|a,e|a,_|l,_|l,s|n,e|l,s|l,s|a,_|s,p|a,_|a,e|n,p|l,_|a,_|n,p|s,e|a,s|n,p|s,_|s,e|n];_=1<<25,p=1<<30,e=_|p,a=1<<8,n=1<<19,l=a|n;var c=[s|a,_|l,_|n,e|a,s|n,s|a,p|s,_|n,p|l,s|n,_|a,p|l,e|a,e|n,s|l,p|s,_|s,p|n,p|n,s|s,p|a,e|l,e|l,_|a,e|n,p|a,s|s,e|s,_|l,_|s,e|s,s|l,s|n,e|a,s|a,_|s,p|s,_|n,e|a,p|l,_|a,p|s,e|n,_|l,p|l,s|a,_|s,e|n,e|l,s|l,e|s,e|l,_|n,s|s,p|n,e|s,s|l,_|a,p|a,s|n,s|s,p|n,_|l,p|a];_=1<<22,p=1<<29,e=_|p,a=1<<4,n=1<<14,l=a|n;var d=[p|a,e|s,s|n,e|l,e|s,s|a,e|l,_|s,p|n,_|l,_|s,p|a,_|a,p|n,p|s,s|l,s|s,_|a,p|l,s|n,_|n,p|l,s|a,e|a,e|a,s|s,_|l,e|n,s|l,_|n,e|n,p|s,p|n,s|a,e|a,_|n,e|l,_|s,s|l,p|a,_|s,p|n,p|s,s|l,p|a,e|l,_|n,e|s,_|l,e|n,s|s,e|a,s|a,s|n,e|s,_|l,s|n,_|a,p|l,s|s,e|n,p|s,_|a,p|l];_=1<<21,p=1<<26,e=_|p,a=1<<1,n=1<<11,l=a|n;var f=[_|s,e|a,p|l,s|s,s|n,p|l,_|l,e|n,e|l,_|s,s|s,p|a,s|a,p|s,e|a,s|l,p|n,_|l,_|a,p|n,p|a,e|s,e|n,_|a,e|s,s|n,s|l,e|l,_|n,s|a,p|s,_|n,p|s,_|n,_|s,p|l,p|l,e|a,e|a,s|a,_|a,p|s,p|n,_|s,e|n,s|l,_|l,e|n,s|l,p|a,e|l,e|s,_|n,s|s,s|a,e|l,s|s,_|l,e|s,s|n,p|a,p|n,s|n,_|a];_=1<<18,p=1<<28,e=_|p,a=1<<6,n=1<<12,l=a|n;var h=[p|l,s|n,_|s,e|l,p|s,p|l,s|a,p|s,_|a,e|s,e|l,_|n,e|n,_|l,s|n,s|a,e|s,p|a,p|n,s|l,_|n,_|a,e|a,e|n,s|l,s|s,s|s,e|a,p|a,p|n,_|l,_|s,_|l,_|s,e|n,s|n,s|a,e|a,s|n,_|l,p|n,s|a,p|a,e|s,e|a,p|s,_|s,p|l,s|s,e|l,_|a,p|a,e|s,p|n,p|l,s|s,e|l,_|n,_|n,s|l,s|l,_|a,p|s,e|n],u=function(){function E(x){I(this,E),this.keys=[];for(var O=[],C=[],w=[],S=0,D=56;S<56;++S,D-=8){D+=D<-5?65:D<-3?31:D<-1?63:D===27?35:0;var R=D&7;O[S]=(x[D>>>3]&1<<R)!==0?1:0}for(var P=0;P<16;++P){var N=P<<1,M=N+1;w[N]=w[M]=0;for(var z=28;z<59;z+=28)for(var X=z-28;X<z;++X){var k=X+g[P];C[X]=k<z?O[k]:O[k-28]}for(var F=0;F<24;++F)C[b[F]]!==0&&(w[N]|=1<<23-F),C[b[F+24]]!==0&&(w[M]|=1<<23-F)}for(var U=0,L=0,B=0;U<16;++U){var Z=w[L++],re=w[L++];this.keys[B]=(Z&16515072)<<6,this.keys[B]|=(Z&4032)<<10,this.keys[B]|=(re&16515072)>>>10,this.keys[B]|=(re&4032)>>>6,++B,this.keys[B]=(Z&258048)<<12,this.keys[B]|=(Z&63)<<16,this.keys[B]|=(re&258048)>>>4,this.keys[B]|=re&63,++B}}return T(E,[{key:"enc8",value:function(O){var C=O.slice(),w=0,S,D,R;S=C[w++]<<24|C[w++]<<16|C[w++]<<8|C[w++],D=C[w++]<<24|C[w++]<<16|C[w++]<<8|C[w++],R=(S>>>4^D)&252645135,D^=R,S^=R<<4,R=(S>>>16^D)&65535,D^=R,S^=R<<16,R=(D>>>2^S)&858993459,S^=R,D^=R<<2,R=(D>>>8^S)&16711935,S^=R,D^=R<<8,D=D<<1|D>>>31&1,R=(S^D)&2863311530,S^=R,D^=R,S=S<<1|S>>>31&1;for(var P=0,N=0;P<8;++P){R=D<<28|D>>>4,R^=this.keys[N++];var M=f[R&63];M|=c[R>>>8&63],M|=t[R>>>16&63],M|=r[R>>>24&63],R=D^this.keys[N++],M|=h[R&63],M|=d[R>>>8&63],M|=o[R>>>16&63],M|=i[R>>>24&63],S^=M,R=S<<28|S>>>4,R^=this.keys[N++],M=f[R&63],M|=c[R>>>8&63],M|=t[R>>>16&63],M|=r[R>>>24&63],R=S^this.keys[N++],M|=h[R&63],M|=d[R>>>8&63],M|=o[R>>>16&63],M|=i[R>>>24&63],D^=M}for(D=D<<31|D>>>1,R=(S^D)&2863311530,S^=R,D^=R,S=S<<31|S>>>1,R=(S>>>8^D)&16711935,D^=R,S^=R<<8,R=(S>>>2^D)&858993459,D^=R,S^=R<<2,R=(D>>>16^S)&65535,S^=R,D^=R<<16,R=(D>>>4^S)&252645135,S^=R,D^=R<<4,R=[D,S],w=0;w<8;w++)C[w]=(R[w>>>2]>>>8*(3-w%4))%256,C[w]<0&&(C[w]+=256);return C}},{key:"encrypt",value:function(O){return this.enc8(O.slice(0,8)).concat(this.enc8(O.slice(8,16)))}}]),E}();W.default=u},ic2d:function(j,W,y){"use strict";y.d(W,"a",function(){return b});var I=y("FWmy"),v=y("746U");class T{constructor(){this.data=new Map}add(g,s){I.a(v.l(g)),I.a(v.k(s)),I.a(!this.data.has(g),"There is already an extension with this id"),this.data.set(g,s)}as(g){return this.data.get(g)||null}}const b=new T},jO9C:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.pad.Iso97971={pad:function(v,T){v.concat(I.lib.WordArray.create([2147483648],1)),I.pad.ZeroPadding.pad(v,T)},unpad:function(v){I.pad.ZeroPadding.unpad(v),v.sigBytes--}},I.pad.Iso97971})},je13:function(j,W,y){var I=y("5nXd"),v=y("gRFJ"),T=[y("uQRt")];j.exports=I.createStore(v,T)},ji0R:function(j,W,y){j.exports=y.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(j,W,y){"use strict";y.d(W,"a",function(){return Ro});var I=y("rePB"),v=y("ODXe"),T=y("Ff2n"),b=y("VTBJ"),g=y("q1tI"),s=y("TSYQ"),_=y.n(s),p=y("Zm9Q"),e=y("6cGi"),a=y("KQm4"),n=y("xEkU"),l=y.n(n),r=y("t23M");function i(st){var xt=Object(g.useRef)(),At=Object(g.useRef)(!1);function ht(){for(var je=arguments.length,tt=new Array(je),ze=0;ze<je;ze++)tt[ze]=arguments[ze];At.current||(l.a.cancel(xt.current),xt.current=l()(function(){st.apply(void 0,tt)}))}return Object(g.useEffect)(function(){return function(){At.current=!0,l.a.cancel(xt.current)}},[]),ht}function t(st){var xt=Object(g.useRef)([]),At=Object(g.useState)({}),ht=Object(v.a)(At,2),je=ht[1],tt=Object(g.useRef)(typeof st=="function"?st():st),ze=i(function(){var pt=tt.current;xt.current.forEach(function(It){pt=It(pt)}),xt.current=[],tt.current=pt,je({})});function lt(pt){xt.current.push(pt),ze()}return[tt.current,lt]}var o=y("4IlW");function c(st,xt){var At,ht=st.prefixCls,je=st.id,tt=st.active,ze=st.rtl,lt=st.tab,pt=lt.key,It=lt.tab,St=lt.disabled,Nt=lt.closeIcon,en=st.tabBarGutter,yn=st.tabPosition,dn=st.closable,Un=st.renderWrapper,Sr=st.removeAriaLabel,Vr=st.editable,Hr=st.onClick,Yr=st.onRemove,qr=st.onFocus,$r="".concat(ht,"-tab");g.useEffect(function(){return Yr},[]);var Xr={};yn==="top"||yn==="bottom"?Xr[ze?"marginLeft":"marginRight"]=en:Xr.marginBottom=en;var Ei=Vr&&dn!==!1&&!St;function li(Er){if(St)return;Hr(Er)}function sa(Er){Er.preventDefault(),Er.stopPropagation(),Vr.onEdit("remove",{key:pt,event:Er})}var ci=g.createElement("div",{key:pt,ref:xt,className:_()($r,(At={},Object(I.a)(At,"".concat($r,"-with-remove"),Ei),Object(I.a)(At,"".concat($r,"-active"),tt),Object(I.a)(At,"".concat($r,"-disabled"),St),At)),style:Xr,onClick:li},g.createElement("div",{role:"tab","aria-selected":tt,id:je&&"".concat(je,"-tab-").concat(pt),className:"".concat($r,"-btn"),"aria-controls":je&&"".concat(je,"-panel-").concat(pt),"aria-disabled":St,tabIndex:St?null:0,onClick:function(gr){gr.stopPropagation(),li(gr)},onKeyDown:function(gr){[o.a.SPACE,o.a.ENTER].includes(gr.which)&&(gr.preventDefault(),li(gr))},onFocus:qr},It),Ei&&g.createElement("button",{type:"button","aria-label":Sr||"remove",tabIndex:0,className:"".concat($r,"-remove"),onClick:function(gr){gr.stopPropagation(),sa(gr)}},Nt||Vr.removeIcon||"\xD7"));return Un&&(ci=Un(ci)),ci}var d=g.forwardRef(c),f={width:0,height:0,left:0,top:0};function h(st,xt,At){return Object(g.useMemo)(function(){for(var ht,je=new Map,tt=xt.get((ht=st[0])===null||ht===void 0?void 0:ht.key)||f,ze=tt.left+tt.width,lt=0;lt<st.length;lt+=1){var pt=st[lt].key,It=xt.get(pt);if(!It){var St;It=xt.get((St=st[lt-1])===null||St===void 0?void 0:St.key)||f}var Nt=je.get(pt)||Object(b.a)({},It);Nt.right=ze-Nt.left-Nt.width,je.set(pt,Nt)}return je},[st.map(function(ht){return ht.key}).join("_"),xt,At])}var u={width:0,height:0,left:0,top:0,right:0};function E(st,xt,At,ht,je){var tt=je.tabs,ze=je.tabPosition,lt=je.rtl,pt,It,St;["top","bottom"].includes(ze)?(pt="width",It=lt?"right":"left",St=Math.abs(xt.left)):(pt="height",It="top",St=-xt.top);var Nt=xt[pt],en=At[pt],yn=ht[pt],dn=Nt;return en+yn>Nt&&(dn=Nt-yn),Object(g.useMemo)(function(){if(!tt.length)return[0,0];for(var Un=tt.length,Sr=Un,Vr=0;Vr<Un;Vr+=1){var Hr=st.get(tt[Vr].key)||u;if(Hr[It]+Hr[pt]>St+dn){Sr=Vr-1;break}}for(var Yr=0,qr=Un-1;qr>=0;qr-=1){var $r=st.get(tt[qr].key)||u;if($r[It]<St){Yr=qr+1;break}}return[Yr,Sr]},[st,St,dn,ze,tt.map(function(Un){return Un.key}).join("_"),lt])}var x=y("wx14"),O=y("1OyB"),C=y("vuIU"),w=y("JX7q"),S=y("Ji7U"),D=y("LK+K"),R=y("I8Z2"),P=y("bT9E"),N=y("2GS6"),M=y("Gytx"),z=y.n(M),X=y("U8pU"),k=/iPhone/i,F=/iPod/i,U=/iPad/i,L=/\bAndroid(?:.+)Mobile\b/i,B=/Android/i,Z=/\bAndroid(?:.+)SD4930UR\b/i,re=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,me=/Windows Phone/i,Ee=/\bWindows(?:.+)ARM\b/i,De=/BlackBerry/i,te=/BB10/i,Ce=/Opera Mini/i,we=/\b(CriOS|Chrome)(?:.+)Mobile/i,ce=/Mobile(?:.+)Firefox\b/i;function le(st,xt){return st.test(xt)}function oe(st){var xt=st||(typeof navigator!="undefined"?navigator.userAgent:""),At=(xt||"").split("[FBAN");if(typeof At[1]!="undefined"){var ht=At,je=Object(v.a)(ht,1);xt=je[0]}if(At=xt.split("Twitter"),typeof At[1]!="undefined"){var tt=At,ze=Object(v.a)(tt,1);xt=ze[0]}var lt={apple:{phone:le(k,xt)&&!le(me,xt),ipod:le(F,xt),tablet:!le(k,xt)&&le(U,xt)&&!le(me,xt),device:(le(k,xt)||le(F,xt)||le(U,xt))&&!le(me,xt)},amazon:{phone:le(Z,xt),tablet:!le(Z,xt)&&le(re,xt),device:le(Z,xt)||le(re,xt)},android:{phone:!le(me,xt)&&le(Z,xt)||!le(me,xt)&&le(L,xt),tablet:!le(me,xt)&&!le(Z,xt)&&!le(L,xt)&&(le(re,xt)||le(B,xt)),device:!le(me,xt)&&(le(Z,xt)||le(re,xt)||le(L,xt)||le(B,xt))||le(/\bokhttp\b/i,xt)},windows:{phone:le(me,xt),tablet:le(Ee,xt),device:le(me,xt)||le(Ee,xt)},other:{blackberry:le(De,xt),blackberry10:le(te,xt),opera:le(Ce,xt),firefox:le(ce,xt),chrome:le(we,xt),device:le(De,xt)||le(te,xt)||le(Ce,xt)||le(ce,xt)||le(we,xt)},any:null,phone:null,tablet:null};return lt.any=lt.apple.device||lt.android.device||lt.windows.device||lt.other.device,lt.phone=lt.apple.phone||lt.android.phone||lt.windows.phone,lt.tablet=lt.apple.tablet||lt.android.tablet||lt.windows.tablet,lt}var xe=Object(b.a)(Object(b.a)({},oe()),{},{isMobile:oe}),q=xe;function se(){}function Ne(st,xt,At){var ht=xt||"";return st.key||"".concat(ht,"item_").concat(At)}function de(st){return"".concat(st,"-menu-")}function $(st,xt){var At=-1;g.Children.forEach(st,function(ht){At+=1,ht&&ht.type&&ht.type.isMenuItemGroup?g.Children.forEach(ht.props.children,function(je){At+=1,xt(je,At)}):xt(ht,At)})}function Q(st,xt,At){if(!st||At.find)return;g.Children.forEach(st,function(ht){if(ht){var je=ht.type;if(!je||!(je.isSubMenu||je.isMenuItem||je.isMenuItemGroup))return;xt.indexOf(ht.key)!==-1?At.find=!0:ht.props.children&&Q(ht.props.children,xt,At)}})}var Y=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],ue=function(xt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=xt&&typeof xt.getBoundingClientRect=="function"&&xt.getBoundingClientRect().width;if(ht){if(At){var je=getComputedStyle(xt),tt=je.marginLeft,ze=je.marginRight;ht+=+tt.replace("px","")+ +ze.replace("px","")}ht=+ht.toFixed(6)}return ht||0},ae=function(xt,At,ht){xt&&Object(X.a)(xt.style)==="object"&&(xt.style[At]=ht)},be=function(){return q.any},Ie=y("bdgK"),pe=y("i8i4"),Le=y.n(pe),ve=y("wgJM"),Xe=y("l4aY"),$e=y("m+aA"),Ge=y("c+Xe"),Me=y("zT1h"),gt=y("QC+M");function Te(st,xt,At){return At?st[0]===xt[0]:st[0]===xt[0]&&st[1]===xt[1]}function Ye(st,xt,At){var ht=st[xt]||{};return Object(b.a)(Object(b.a)({},ht),At)}function Ze(st,xt,At,ht){for(var je=At.points,tt=Object.keys(st),ze=0;ze<tt.length;ze+=1){var lt=tt[ze];if(Te(st[lt].points,je,ht))return"".concat(xt,"-placement-").concat(lt)}return""}var Ve=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var st=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(st)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(st==null?void 0:st.substr(0,4)))},Fe=y("MNnm");function Be(st,xt){var At={};return At[st.toLowerCase()]=xt.toLowerCase(),At["Webkit".concat(st)]="webkit".concat(xt),At["Moz".concat(st)]="moz".concat(xt),At["ms".concat(st)]="MS".concat(xt),At["O".concat(st)]="o".concat(xt.toLowerCase()),At}function _e(st,xt){var At={animationend:Be("Animation","AnimationEnd"),transitionend:Be("Transition","TransitionEnd")};return st&&("AnimationEvent"in xt||delete At.animationend.animation,"TransitionEvent"in xt||delete At.transitionend.transition),At}var Ae=_e(Object(Fe.a)(),typeof window!="undefined"?window:{}),fe={};if(Object(Fe.a)()){var ke=document.createElement("div");fe=ke.style}var Je={};function ne(st){if(Je[st])return Je[st];var xt=Ae[st];if(xt)for(var At=Object.keys(xt),ht=At.length,je=0;je<ht;je+=1){var tt=At[je];if(Object.prototype.hasOwnProperty.call(xt,tt)&&tt in fe)return Je[st]=xt[tt],Je[st]}return""}var Qe=ne("animationend"),dt=ne("transitionend"),Ke=!!(Qe&&dt),et=Qe||"animationend",rt=dt||"transitionend";function bt(st,xt){if(!st)return null;if(Object(X.a)(st)==="object"){var At=xt.replace(/-\w/g,function(ht){return ht[1].toUpperCase()});return st[At]}return"".concat(st,"-").concat(xt)}var ut="none",ot="appear",Ue="enter",We="leave",ft="none",nt="prepare",Dt="start",Kt="active",vt="end";function Ht(st){var xt=Object(g.useRef)(!1),At=Object(g.useState)(st),ht=Object(v.a)(At,2),je=ht[0],tt=ht[1];function ze(lt){xt.current||tt(lt)}return Object(g.useEffect)(function(){return function(){xt.current=!0}},[]),[je,ze]}var Ft=Object(Fe.a)()?g.useLayoutEffect:g.useEffect,Lt=Ft,zt=function(){var st=g.useRef(null);function xt(){ve.a.cancel(st.current)}function At(ht){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;xt();var tt=Object(ve.a)(function(){je<=1?ht({isCanceled:function(){return tt!==st.current}}):At(ht,je-1)});st.current=tt}return g.useEffect(function(){return function(){xt()}},[]),[At,xt]},Qt=[nt,Dt,Kt,vt],bn=!1,Zt=!0;function $t(st){return st===Kt||st===vt}var Zn=function(st,xt){var At=g.useState(ft),ht=Object(v.a)(At,2),je=ht[0],tt=ht[1],ze=zt(),lt=Object(v.a)(ze,2),pt=lt[0],It=lt[1];function St(){tt(nt)}return Lt(function(){if(je!==ft&&je!==vt){var Nt=Qt.indexOf(je),en=Qt[Nt+1],yn=xt(je);yn===bn?tt(en):pt(function(dn){function Un(){if(dn.isCanceled())return;tt(en)}yn===!0?Un():Promise.resolve(yn).then(Un)})}},[st,je]),g.useEffect(function(){return function(){It()}},[]),[St,je]},Fn=function(st){var xt=Object(g.useRef)(),At=Object(g.useRef)(st);At.current=st;var ht=g.useCallback(function(ze){At.current(ze)},[]);function je(ze){ze&&(ze.removeEventListener(rt,ht),ze.removeEventListener(et,ht))}function tt(ze){xt.current&&xt.current!==ze&&je(xt.current),ze&&ze!==xt.current&&(ze.addEventListener(rt,ht),ze.addEventListener(et,ht),xt.current=ze)}return g.useEffect(function(){return function(){je(xt.current)}},[]),[tt,je]};function Hn(st,xt,At,ht){var je=ht.motionEnter,tt=je===void 0?!0:je,ze=ht.motionAppear,lt=ze===void 0?!0:ze,pt=ht.motionLeave,It=pt===void 0?!0:pt,St=ht.motionDeadline,Nt=ht.motionLeaveImmediately,en=ht.onAppearPrepare,yn=ht.onEnterPrepare,dn=ht.onLeavePrepare,Un=ht.onAppearStart,Sr=ht.onEnterStart,Vr=ht.onLeaveStart,Hr=ht.onAppearActive,Yr=ht.onEnterActive,qr=ht.onLeaveActive,$r=ht.onAppearEnd,Xr=ht.onEnterEnd,Ei=ht.onLeaveEnd,li=ht.onVisibleChanged,sa=Ht(),ci=Object(v.a)(sa,2),Er=ci[0],gr=ci[1],pi=Ht(ut),Ti=Object(v.a)(pi,2),lr=Ti[0],Ai=Ti[1],Di=Ht(null),Ii=Object(v.a)(Di,2),Ji=Ii[0],Wi=Ii[1],wa=Object(g.useRef)(!1),La=Object(g.useRef)(null),ha=Object(g.useRef)(!1),oo=Object(g.useRef)(null);function so(){var ia=At();return ia||oo.current}var go=Object(g.useRef)(!1);function Ma(ia){var Ki=so();if(ia&&!ia.deadline&&ia.target!==Ki)return;var Pa;lr===ot&&go.current?Pa=$r==null?void 0:$r(Ki,ia):lr===Ue&&go.current?Pa=Xr==null?void 0:Xr(Ki,ia):lr===We&&go.current&&(Pa=Ei==null?void 0:Ei(Ki,ia)),Pa!==!1&&!ha.current&&(Ai(ut),Wi(null))}var ra=Fn(Ma),Zi=Object(v.a)(ra,1),fa=Zi[0],la=g.useMemo(function(){var ia,Ki,Pa;switch(lr){case"appear":return ia={},Object(I.a)(ia,nt,en),Object(I.a)(ia,Dt,Un),Object(I.a)(ia,Kt,Hr),ia;case"enter":return Ki={},Object(I.a)(Ki,nt,yn),Object(I.a)(Ki,Dt,Sr),Object(I.a)(Ki,Kt,Yr),Ki;case"leave":return Pa={},Object(I.a)(Pa,nt,dn),Object(I.a)(Pa,Dt,Vr),Object(I.a)(Pa,Kt,qr),Pa;default:return{}}},[lr]),Ko=Zn(lr,function(ia){if(ia===nt){var Ki=la[nt];return Ki?Ki(so()):bn}if(qi in la){var Pa;Wi(((Pa=la[qi])===null||Pa===void 0?void 0:Pa.call(la,so(),null))||null)}return qi===Kt&&(fa(so()),St>0&&(clearTimeout(La.current),La.current=setTimeout(function(){Ma({deadline:!0})},St))),Zt}),es=Object(v.a)(Ko,2),ts=es[0],qi=es[1],Ho=$t(qi);go.current=Ho,Lt(function(){gr(xt);var ia=wa.current;if(wa.current=!0,!st)return;var Ki;!ia&&xt&&lt&&(Ki=ot),ia&&xt&&tt&&(Ki=Ue),(ia&&!xt&&It||!ia&&Nt&&!xt&&It)&&(Ki=We),Ki&&(Ai(Ki),ts())},[xt]),Object(g.useEffect)(function(){(lr===ot&&!lt||lr===Ue&&!tt||lr===We&&!It)&&Ai(ut)},[lt,tt,It]),Object(g.useEffect)(function(){return function(){clearTimeout(La.current),ha.current=!0}},[]),Object(g.useEffect)(function(){Er!==void 0&&lr===ut&&(li==null||li(Er))},[Er,lr]);var ns=Ji;return la[nt]&&qi===Dt&&(ns=Object(b.a)({transition:"none"},ns)),[lr,qi,ns,Er!=null?Er:xt]}var Yn=function(st){Object(S.a)(At,st);var xt=Object(D.a)(At);function At(){return Object(O.a)(this,At),xt.apply(this,arguments)}return Object(C.a)(At,[{key:"render",value:function(){return this.props.children}}]),At}(g.Component),jn=Yn;function or(st){var xt=st;Object(X.a)(st)==="object"&&(xt=st.transitionSupport);function At(je){return!!(je.motionName&&xt)}var ht=g.forwardRef(function(je,tt){var ze=je.visible,lt=ze===void 0?!0:ze,pt=je.removeOnLeave,It=pt===void 0?!0:pt,St=je.forceRender,Nt=je.children,en=je.motionName,yn=je.leavedClassName,dn=je.eventProps,Un=At(je),Sr=Object(g.useRef)(),Vr=Object(g.useRef)();function Hr(){try{return Object($e.a)(Sr.current||Vr.current)}catch(Ai){return null}}var Yr=Hn(Un,lt,Hr,je),qr=Object(v.a)(Yr,4),$r=qr[0],Xr=qr[1],Ei=qr[2],li=qr[3],sa=g.useRef(li);li&&(sa.current=!0);var ci=Object(g.useRef)(tt);ci.current=tt;var Er=g.useCallback(function(Ai){Sr.current=Ai,Object(Ge.b)(ci.current,Ai)},[]),gr,pi=Object(b.a)(Object(b.a)({},dn),{},{visible:lt});if(!Nt)gr=null;else if($r===ut||!At(je))li?gr=Nt(Object(b.a)({},pi),Er):!It&&sa.current?gr=Nt(Object(b.a)(Object(b.a)({},pi),{},{className:yn}),Er):St?gr=Nt(Object(b.a)(Object(b.a)({},pi),{},{style:{display:"none"}}),Er):gr=null;else{var Ti,lr;Xr===nt?lr="prepare":$t(Xr)?lr="active":Xr===Dt&&(lr="start"),gr=Nt(Object(b.a)(Object(b.a)({},pi),{},{className:_()(bt(en,$r),(Ti={},Object(I.a)(Ti,bt(en,"".concat($r,"-").concat(lr)),lr),Object(I.a)(Ti,en,typeof en=="string"),Ti)),style:Ei}),Er)}return g.createElement(jn,{ref:Vr},gr)});return ht.displayName="CSSMotion",ht}var jr=or(Ke),qt="add",wn="keep",Kr="remove",Li="removed";function Mr(st){var xt;return st&&Object(X.a)(st)==="object"&&"key"in st?xt=st:xt={key:st},Object(b.a)(Object(b.a)({},xt),{},{key:String(xt.key)})}function Qn(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return st.map(Mr)}function ge(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],At=[],ht=0,je=xt.length,tt=Qn(st),ze=Qn(xt);tt.forEach(function(It){for(var St=!1,Nt=ht;Nt<je;Nt+=1){var en=ze[Nt];if(en.key===It.key){ht<Nt&&(At=At.concat(ze.slice(ht,Nt).map(function(yn){return Object(b.a)(Object(b.a)({},yn),{},{status:qt})})),ht=Nt),At.push(Object(b.a)(Object(b.a)({},en),{},{status:wn})),ht+=1,St=!0;break}}St||At.push(Object(b.a)(Object(b.a)({},It),{},{status:Kr}))}),ht<je&&(At=At.concat(ze.slice(ht).map(function(It){return Object(b.a)(Object(b.a)({},It),{},{status:qt})})));var lt={};At.forEach(function(It){var St=It.key;lt[St]=(lt[St]||0)+1});var pt=Object.keys(lt).filter(function(It){return lt[It]>1});return pt.forEach(function(It){At=At.filter(function(St){var Nt=St.key,en=St.status;return Nt!==It||en!==Kr}),At.forEach(function(St){St.key===It&&(St.status=wn)})}),At}var V=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function J(st){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jr,At=function(ht){Object(S.a)(tt,ht);var je=Object(D.a)(tt);function tt(){var ze;return Object(O.a)(this,tt),ze=je.apply(this,arguments),ze.state={keyEntities:[]},ze.removeKey=function(lt){ze.setState(function(pt){var It=pt.keyEntities;return{keyEntities:It.map(function(St){return St.key!==lt?St:Object(b.a)(Object(b.a)({},St),{},{status:Li})})}})},ze}return Object(C.a)(tt,[{key:"render",value:function(){var lt=this,pt=this.state.keyEntities,It=this.props,St=It.component,Nt=It.children,en=It.onVisibleChanged,yn=Object(T.a)(It,["component","children","onVisibleChanged"]),dn=St||g.Fragment,Un={};return V.forEach(function(Sr){Un[Sr]=yn[Sr],delete yn[Sr]}),delete yn.keys,g.createElement(dn,yn,pt.map(function(Sr){var Vr=Sr.status,Hr=Object(T.a)(Sr,["status"]),Yr=Vr===qt||Vr===wn;return g.createElement(xt,Object(x.a)({},Un,{key:Hr.key,visible:Yr,eventProps:Hr,onVisibleChanged:function($r){en==null||en($r,{key:Hr.key}),$r||lt.removeKey(Hr.key)}}),Nt)}))}}],[{key:"getDerivedStateFromProps",value:function(lt,pt){var It=lt.keys,St=pt.keyEntities,Nt=Qn(It),en=ge(St,Nt);return{keyEntities:en.filter(function(yn){var dn=St.find(function(Un){var Sr=Un.key;return yn.key===Sr});return!(dn&&dn.status===Li&&yn.status===Kr)})}}}]),tt}(g.Component);return At.defaultProps={component:"div"},At}var ie=J(Ke),Re=jr;function he(st){var xt=st.prefixCls,At=st.motion,ht=st.animation,je=st.transitionName;return At||(ht?{motionName:"".concat(xt,"-").concat(ht)}:je?{motionName:je}:null)}function it(st){var xt=st.prefixCls,At=st.visible,ht=st.zIndex,je=st.mask,tt=st.maskMotion,ze=st.maskAnimation,lt=st.maskTransitionName;if(!je)return null;var pt={};return(tt||lt||ze)&&(pt=Object(b.a)({motionAppear:!0},he({motion:tt,prefixCls:xt,transitionName:lt,animation:ze}))),g.createElement(Re,Object(x.a)({},pt,{visible:At,removeOnLeave:!0}),function(It){var St=It.className;return g.createElement("div",{style:{zIndex:ht},className:_()("".concat(xt,"-mask"),St)})})}var Ut=y("9mu1"),Jt=y("o0o1"),an=y.n(Jt),Pt=y("HaE+"),cn=["measure","align",null,"motion"],Rn=function(st,xt){var At=Object(g.useState)(null),ht=Object(v.a)(At,2),je=ht[0],tt=ht[1],ze=Object(g.useRef)(),lt=Object(g.useRef)(!1);function pt(Nt){lt.current||tt(Nt)}function It(){ve.a.cancel(ze.current)}function St(Nt){It(),ze.current=Object(ve.a)(function(){pt(function(en){switch(je){case"align":return"motion";case"motion":return"stable";default:}return en}),Nt==null||Nt()})}return Object(g.useEffect)(function(){pt("measure")},[st]),Object(g.useEffect)(function(){switch(je){case"measure":xt();break;default:}je&&(ze.current=Object(ve.a)(Object(Pt.a)(an.a.mark(function Nt(){var en,yn;return an.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:en=cn.indexOf(je),yn=cn[en+1],yn&&en!==-1&&pt(yn);case 3:case"end":return Un.stop()}},Nt)}))))},[je]),Object(g.useEffect)(function(){return function(){lt.current=!0,It()}},[]),[je,St]},Jn=function(st){var xt=g.useState({width:0,height:0}),At=Object(v.a)(xt,2),ht=At[0],je=At[1];function tt(lt){je({width:lt.offsetWidth,height:lt.offsetHeight})}var ze=g.useMemo(function(){var lt={};if(st){var pt=ht.width,It=ht.height;st.indexOf("height")!==-1&&It?lt.height=It:st.indexOf("minHeight")!==-1&&It&&(lt.minHeight=It),st.indexOf("width")!==-1&&pt?lt.width=pt:st.indexOf("minWidth")!==-1&&pt&&(lt.minWidth=pt)}return lt},[st,ht]);return[ze,tt]},ir=g.forwardRef(function(st,xt){var At=st.visible,ht=st.prefixCls,je=st.className,tt=st.style,ze=st.children,lt=st.zIndex,pt=st.stretch,It=st.destroyPopupOnHide,St=st.forceRender,Nt=st.align,en=st.point,yn=st.getRootDomNode,dn=st.getClassNameFromAlign,Un=st.onAlign,Sr=st.onMouseEnter,Vr=st.onMouseLeave,Hr=st.onMouseDown,Yr=st.onTouchStart,qr=Object(g.useRef)(),$r=Object(g.useRef)(),Xr=Object(g.useState)(),Ei=Object(v.a)(Xr,2),li=Ei[0],sa=Ei[1],ci=Jn(pt),Er=Object(v.a)(ci,2),gr=Er[0],pi=Er[1];function Ti(){pt&&pi(yn())}var lr=Rn(At,Ti),Ai=Object(v.a)(lr,2),Di=Ai[0],Ii=Ai[1],Ji=Object(g.useRef)();function Wi(){return en||yn}function wa(){var ra;(ra=qr.current)===null||ra===void 0||ra.forceAlign()}function La(ra,Zi){var fa=dn(Zi);li!==fa&&sa(fa),Di==="align"&&(li!==fa?Promise.resolve().then(function(){wa()}):Ii(function(){var la;(la=Ji.current)===null||la===void 0||la.call(Ji)}),Un==null||Un(ra,Zi))}var ha=Object(b.a)({},he(st));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ra){var Zi=ha[ra];ha[ra]=function(fa,la){return Ii(),Zi==null?void 0:Zi(fa,la)}});function oo(){return new Promise(function(ra){Ji.current=ra})}g.useEffect(function(){!ha.motionName&&Di==="motion"&&Ii()},[ha.motionName,Di]),g.useImperativeHandle(xt,function(){return{forceAlign:wa,getElement:function(){return $r.current}}});var so=Object(b.a)(Object(b.a)({},gr),{},{zIndex:lt,opacity:Di==="motion"||Di==="stable"||!At?void 0:0,pointerEvents:Di==="stable"?void 0:"none"},tt),go=!0;(Nt==null?void 0:Nt.points)&&(Di==="align"||Di==="stable")&&(go=!1);var Ma=ze;return g.Children.count(ze)>1&&(Ma=g.createElement("div",{className:"".concat(ht,"-content")},ze)),g.createElement(Re,Object(x.a)({visible:At,ref:$r,leavedClassName:"".concat(ht,"-hidden")},ha,{onAppearPrepare:oo,onEnterPrepare:oo,removeOnLeave:It,forceRender:St}),function(ra,Zi){var fa=ra.className,la=ra.style,Ko=_()(ht,je,li,fa);return g.createElement(Ut.a,{target:Wi(),key:"popup",ref:qr,monitorWindowResize:!0,disabled:go,align:Nt,onAlign:La},g.createElement("div",{ref:Zi,className:Ko,onMouseEnter:Sr,onMouseLeave:Vr,onMouseDownCapture:Hr,onTouchStartCapture:Yr,style:Object(b.a)(Object(b.a)({},la),so)},Ma))})});ir.displayName="PopupInner";var tr=ir,fr=g.forwardRef(function(st,xt){var At=st.prefixCls,ht=st.visible,je=st.zIndex,tt=st.children,ze=st.mobile;ze=ze===void 0?{}:ze;var lt=ze.popupClassName,pt=ze.popupStyle,It=ze.popupMotion,St=It===void 0?{}:It,Nt=ze.popupRender,en=g.useRef();g.useImperativeHandle(xt,function(){return{forceAlign:function(){},getElement:function(){return en.current}}});var yn=Object(b.a)({zIndex:je},pt),dn=tt;return g.Children.count(tt)>1&&(dn=g.createElement("div",{className:"".concat(At,"-content")},tt)),Nt&&(dn=Nt(dn)),g.createElement(Re,Object(x.a)({visible:ht,ref:en,removeOnLeave:!0},St),function(Un,Sr){var Vr=Un.className,Hr=Un.style,Yr=_()(At,lt,Vr);return g.createElement("div",{ref:Sr,className:Yr,style:Object(b.a)(Object(b.a)({},Hr),yn)},dn)})});fr.displayName="MobilePopupInner";var Dr=fr,Yi=["visible","mobile"],oi=g.forwardRef(function(st,xt){var At=st.visible,ht=st.mobile,je=Object(T.a)(st,Yi),tt=Object(g.useState)(At),ze=Object(v.a)(tt,2),lt=ze[0],pt=ze[1],It=Object(g.useState)(!1),St=Object(v.a)(It,2),Nt=St[0],en=St[1],yn=Object(b.a)(Object(b.a)({},je),{},{visible:lt});Object(g.useEffect)(function(){pt(At),At&&ht&&en(Ve())},[At,ht]);var dn=Nt?g.createElement(Dr,Object(x.a)({},yn,{mobile:ht,ref:xt})):g.createElement(tr,Object(x.a)({},yn,{ref:xt}));return g.createElement("div",null,g.createElement(it,yn),dn)});oi.displayName="Popup";var di=oi,_a=g.createContext(null),Si=_a;function ga(){}function mo(){return""}function ao(st){return st?st.ownerDocument:window.document}var yo=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ia(st){var xt=function(At){Object(S.a)(je,At);var ht=Object(D.a)(je);function je(tt){var ze;Object(O.a)(this,je),ze=ht.call(this,tt),ze.popupRef=g.createRef(),ze.triggerRef=g.createRef(),ze.attachId=void 0,ze.clickOutsideHandler=void 0,ze.touchOutsideHandler=void 0,ze.contextMenuOutsideHandler1=void 0,ze.contextMenuOutsideHandler2=void 0,ze.mouseDownTimeout=void 0,ze.focusTime=void 0,ze.preClickTime=void 0,ze.preTouchTime=void 0,ze.delayTimer=void 0,ze.hasPopupMouseDown=void 0,ze.onMouseEnter=function(pt){var It=ze.props.mouseEnterDelay;ze.fireEvents("onMouseEnter",pt),ze.delaySetPopupVisible(!0,It,It?null:pt)},ze.onMouseMove=function(pt){ze.fireEvents("onMouseMove",pt),ze.setPoint(pt)},ze.onMouseLeave=function(pt){ze.fireEvents("onMouseLeave",pt),ze.delaySetPopupVisible(!1,ze.props.mouseLeaveDelay)},ze.onPopupMouseEnter=function(){ze.clearDelayTimer()},ze.onPopupMouseLeave=function(pt){var It;if(pt.relatedTarget&&!pt.relatedTarget.setTimeout&&Object(Xe.a)((It=ze.popupRef.current)===null||It===void 0?void 0:It.getElement(),pt.relatedTarget))return;ze.delaySetPopupVisible(!1,ze.props.mouseLeaveDelay)},ze.onFocus=function(pt){ze.fireEvents("onFocus",pt),ze.clearDelayTimer(),ze.isFocusToShow()&&(ze.focusTime=Date.now(),ze.delaySetPopupVisible(!0,ze.props.focusDelay))},ze.onMouseDown=function(pt){ze.fireEvents("onMouseDown",pt),ze.preClickTime=Date.now()},ze.onTouchStart=function(pt){ze.fireEvents("onTouchStart",pt),ze.preTouchTime=Date.now()},ze.onBlur=function(pt){ze.fireEvents("onBlur",pt),ze.clearDelayTimer(),ze.isBlurToHide()&&ze.delaySetPopupVisible(!1,ze.props.blurDelay)},ze.onContextMenu=function(pt){pt.preventDefault(),ze.fireEvents("onContextMenu",pt),ze.setPopupVisible(!0,pt)},ze.onContextMenuClose=function(){ze.isContextMenuToShow()&&ze.close()},ze.onClick=function(pt){if(ze.fireEvents("onClick",pt),ze.focusTime){var It;if(ze.preClickTime&&ze.preTouchTime?It=Math.min(ze.preClickTime,ze.preTouchTime):ze.preClickTime?It=ze.preClickTime:ze.preTouchTime&&(It=ze.preTouchTime),Math.abs(It-ze.focusTime)<20)return;ze.focusTime=0}ze.preClickTime=0,ze.preTouchTime=0,ze.isClickToShow()&&(ze.isClickToHide()||ze.isBlurToHide())&&pt&&pt.preventDefault&&pt.preventDefault();var St=!ze.state.popupVisible;(ze.isClickToHide()&&!St||St&&ze.isClickToShow())&&ze.setPopupVisible(!ze.state.popupVisible,pt)},ze.onPopupMouseDown=function(){if(ze.hasPopupMouseDown=!0,clearTimeout(ze.mouseDownTimeout),ze.mouseDownTimeout=window.setTimeout(function(){ze.hasPopupMouseDown=!1},0),ze.context){var pt;(pt=ze.context).onPopupMouseDown.apply(pt,arguments)}},ze.onDocumentClick=function(pt){if(ze.props.mask&&!ze.props.maskClosable)return;var It=pt.target,St=ze.getRootDomNode(),Nt=ze.getPopupDomNode();(!Object(Xe.a)(St,It)||ze.isContextMenuOnly())&&!Object(Xe.a)(Nt,It)&&!ze.hasPopupMouseDown&&ze.close()},ze.getRootDomNode=function(){var pt=ze.props.getTriggerDOMNode;if(pt)return pt(ze.triggerRef.current);try{var It=Object($e.a)(ze.triggerRef.current);if(It)return It}catch(St){}return Le.a.findDOMNode(Object(w.a)(ze))},ze.getPopupClassNameFromAlign=function(pt){var It=[],St=ze.props,Nt=St.popupPlacement,en=St.builtinPlacements,yn=St.prefixCls,dn=St.alignPoint,Un=St.getPopupClassNameFromAlign;return Nt&&en&&It.push(Ze(en,yn,pt,dn)),Un&&It.push(Un(pt)),It.join(" ")},ze.getComponent=function(){var pt=ze.props,It=pt.prefixCls,St=pt.destroyPopupOnHide,Nt=pt.popupClassName,en=pt.onPopupAlign,yn=pt.popupMotion,dn=pt.popupAnimation,Un=pt.popupTransitionName,Sr=pt.popupStyle,Vr=pt.mask,Hr=pt.maskAnimation,Yr=pt.maskTransitionName,qr=pt.maskMotion,$r=pt.zIndex,Xr=pt.popup,Ei=pt.stretch,li=pt.alignPoint,sa=pt.mobile,ci=pt.forceRender,Er=ze.state,gr=Er.popupVisible,pi=Er.point,Ti=ze.getPopupAlign(),lr={};return ze.isMouseEnterToShow()&&(lr.onMouseEnter=ze.onPopupMouseEnter),ze.isMouseLeaveToHide()&&(lr.onMouseLeave=ze.onPopupMouseLeave),lr.onMouseDown=ze.onPopupMouseDown,lr.onTouchStart=ze.onPopupMouseDown,g.createElement(di,Object(x.a)({prefixCls:It,destroyPopupOnHide:St,visible:gr,point:li&&pi,className:Nt,align:Ti,onAlign:en,animation:dn,getClassNameFromAlign:ze.getPopupClassNameFromAlign},lr,{stretch:Ei,getRootDomNode:ze.getRootDomNode,style:Sr,mask:Vr,zIndex:$r,transitionName:Un,maskAnimation:Hr,maskTransitionName:Yr,maskMotion:qr,ref:ze.popupRef,motion:yn,mobile:sa,forceRender:ci}),typeof Xr=="function"?Xr():Xr)},ze.attachParent=function(pt){ve.a.cancel(ze.attachId);var It=ze.props,St=It.getPopupContainer,Nt=It.getDocument,en=ze.getRootDomNode(),yn;St?(en||St.length===0)&&(yn=St(en)):yn=Nt(ze.getRootDomNode()).body,yn?yn.appendChild(pt):ze.attachId=Object(ve.a)(function(){ze.attachParent(pt)})},ze.getContainer=function(){var pt=ze.props.getDocument,It=pt(ze.getRootDomNode()).createElement("div");return It.style.position="absolute",It.style.top="0",It.style.left="0",It.style.width="100%",ze.attachParent(It),It},ze.setPoint=function(pt){var It=ze.props.alignPoint;if(!It||!pt)return;ze.setState({point:{pageX:pt.pageX,pageY:pt.pageY}})},ze.handlePortalUpdate=function(){ze.state.prevPopupVisible!==ze.state.popupVisible&&ze.props.afterPopupVisibleChange(ze.state.popupVisible)},ze.triggerContextValue={onPopupMouseDown:ze.onPopupMouseDown};var lt;return"popupVisible"in tt?lt=!!tt.popupVisible:lt=!!tt.defaultPopupVisible,ze.state={prevPopupVisible:lt,popupVisible:lt},yo.forEach(function(pt){ze["fire".concat(pt)]=function(It){ze.fireEvents(pt,It)}}),ze}return Object(C.a)(je,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ze=this.props,lt=this.state;if(lt.popupVisible){var pt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(pt=ze.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Me.a)(pt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(pt=pt||ze.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Me.a)(pt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(pt=pt||ze.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Me.a)(pt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Me.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ve.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var ze;return((ze=this.popupRef.current)===null||ze===void 0?void 0:ze.getElement())||null}},{key:"getPopupAlign",value:function(){var ze=this.props,lt=ze.popupPlacement,pt=ze.popupAlign,It=ze.builtinPlacements;return lt&&It?Ye(It,lt,pt):pt}},{key:"setPopupVisible",value:function(ze,lt){var pt=this.props.alignPoint,It=this.state.popupVisible;this.clearDelayTimer(),It!==ze&&("popupVisible"in this.props||this.setState({popupVisible:ze,prevPopupVisible:It}),this.props.onPopupVisibleChange(ze)),pt&&lt&&ze&&this.setPoint(lt)}},{key:"delaySetPopupVisible",value:function(ze,lt,pt){var It=this,St=lt*1e3;if(this.clearDelayTimer(),St){var Nt=pt?{pageX:pt.pageX,pageY:pt.pageY}:null;this.delayTimer=window.setTimeout(function(){It.setPopupVisible(ze,Nt),It.clearDelayTimer()},St)}else this.setPopupVisible(ze,pt)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(ze){var lt=this.props.children.props,pt=this.props;return lt[ze]&&pt[ze]?this["fire".concat(ze)]:lt[ze]||pt[ze]}},{key:"isClickToShow",value:function(){var ze=this.props,lt=ze.action,pt=ze.showAction;return lt.indexOf("click")!==-1||pt.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var ze=this.props.action;return ze==="contextMenu"||ze.length===1&&ze[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var ze=this.props,lt=ze.action,pt=ze.showAction;return lt.indexOf("contextMenu")!==-1||pt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var ze=this.props,lt=ze.action,pt=ze.hideAction;return lt.indexOf("click")!==-1||pt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var ze=this.props,lt=ze.action,pt=ze.showAction;return lt.indexOf("hover")!==-1||pt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var ze=this.props,lt=ze.action,pt=ze.hideAction;return lt.indexOf("hover")!==-1||pt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var ze=this.props,lt=ze.action,pt=ze.showAction;return lt.indexOf("focus")!==-1||pt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var ze=this.props,lt=ze.action,pt=ze.hideAction;return lt.indexOf("focus")!==-1||pt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var ze;(ze=this.popupRef.current)===null||ze===void 0||ze.forceAlign()}}},{key:"fireEvents",value:function(ze,lt){var pt=this.props.children.props[ze];pt&&pt(lt);var It=this.props[ze];It&&It(lt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var ze=this.state.popupVisible,lt=this.props,pt=lt.children,It=lt.forceRender,St=lt.alignPoint,Nt=lt.className,en=lt.autoDestroy,yn=g.Children.only(pt),dn={key:"trigger"};this.isContextMenuToShow()?dn.onContextMenu=this.onContextMenu:dn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(dn.onClick=this.onClick,dn.onMouseDown=this.onMouseDown,dn.onTouchStart=this.onTouchStart):(dn.onClick=this.createTwoChains("onClick"),dn.onMouseDown=this.createTwoChains("onMouseDown"),dn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(dn.onMouseEnter=this.onMouseEnter,St&&(dn.onMouseMove=this.onMouseMove)):dn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?dn.onMouseLeave=this.onMouseLeave:dn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(dn.onFocus=this.onFocus,dn.onBlur=this.onBlur):(dn.onFocus=this.createTwoChains("onFocus"),dn.onBlur=this.createTwoChains("onBlur"));var Un=_()(yn&&yn.props&&yn.props.className,Nt);Un&&(dn.className=Un);var Sr=Object(b.a)({},dn);Object(Ge.c)(yn)&&(Sr.ref=Object(Ge.a)(this.triggerRef,yn.ref));var Vr=g.cloneElement(yn,Sr),Hr;return(ze||this.popupRef.current||It)&&(Hr=g.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!ze&&en&&(Hr=null),g.createElement(Si.Provider,{value:this.triggerContextValue},Vr,Hr)}}],[{key:"getDerivedStateFromProps",value:function(ze,lt){var pt=ze.popupVisible,It={};return pt!==void 0&&lt.popupVisible!==pt&&(It.popupVisible=pt,It.prevPopupVisible=lt.popupVisible),It}}]),je}(g.Component);return xt.contextType=Si,xt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:mo,getDocument:ao,onPopupVisibleChange:ga,afterPopupVisibleChange:ga,onPopupAlign:ga,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},xt}var Za=Ia(gt.a),Ri={adjustX:1,adjustY:1},ri={topLeft:{points:["bl","tl"],overflow:Ri,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ri,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ri,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ri,offset:[4,0]}},hi={topLeft:{points:["bl","tl"],overflow:Ri,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ri,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ri,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ri,offset:[4,0]}},Mi=ri,Nr=0,Ar={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},fi=function(xt,At,ht){var je=de(At),tt=xt.getState();xt.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},tt.defaultActiveFirst),{},Object(I.a)({},je,ht))})},wr=function(st){Object(S.a)(At,st);var xt=Object(D.a)(At);function At(ht){var je;Object(O.a)(this,At),je=xt.call(this,ht),je.onDestroy=function(St){je.props.onDestroy(St)},je.onKeyDown=function(St){var Nt=St.keyCode,en=je.menuInstance,yn=je.props.store,dn=je.getVisible();if(Nt===o.a.ENTER)return je.onTitleClick(St),fi(yn,je.props.eventKey,!0),!0;if(Nt===o.a.RIGHT)return dn?en.onKeyDown(St):(je.triggerOpenChange(!0),fi(yn,je.props.eventKey,!0)),!0;if(Nt===o.a.LEFT){var Un;if(dn)Un=en.onKeyDown(St);else return;return Un||(je.triggerOpenChange(!1),Un=!0),Un}return dn&&(Nt===o.a.UP||Nt===o.a.DOWN)?en.onKeyDown(St):void 0},je.onOpenChange=function(St){je.props.onOpenChange(St)},je.onPopupVisibleChange=function(St){je.triggerOpenChange(St,St?"mouseenter":"mouseleave")},je.onMouseEnter=function(St){var Nt=je.props,en=Nt.eventKey,yn=Nt.onMouseEnter,dn=Nt.store;fi(dn,je.props.eventKey,!1),yn({key:en,domEvent:St})},je.onMouseLeave=function(St){var Nt=je.props,en=Nt.parentMenu,yn=Nt.eventKey,dn=Nt.onMouseLeave;en.subMenuInstance=Object(w.a)(je),dn({key:yn,domEvent:St})},je.onTitleMouseEnter=function(St){var Nt=je.props,en=Nt.eventKey,yn=Nt.onItemHover,dn=Nt.onTitleMouseEnter;yn({key:en,hover:!0}),dn({key:en,domEvent:St})},je.onTitleMouseLeave=function(St){var Nt=je.props,en=Nt.parentMenu,yn=Nt.eventKey,dn=Nt.onItemHover,Un=Nt.onTitleMouseLeave;en.subMenuInstance=Object(w.a)(je),dn({key:yn,hover:!1}),Un({key:yn,domEvent:St})},je.onTitleClick=function(St){var Nt=Object(w.a)(je),en=Nt.props;if(en.onTitleClick({key:en.eventKey,domEvent:St}),en.triggerSubMenuAction==="hover")return;je.triggerOpenChange(!je.getVisible(),"click"),fi(en.store,je.props.eventKey,!1)},je.onSubMenuClick=function(St){typeof je.props.onClick=="function"&&je.props.onClick(je.addKeyPath(St))},je.onSelect=function(St){je.props.onSelect(St)},je.onDeselect=function(St){je.props.onDeselect(St)},je.getPrefixCls=function(){return"".concat(je.props.rootPrefixCls,"-submenu")},je.getActiveClassName=function(){return"".concat(je.getPrefixCls(),"-active")},je.getDisabledClassName=function(){return"".concat(je.getPrefixCls(),"-disabled")},je.getSelectedClassName=function(){return"".concat(je.getPrefixCls(),"-selected")},je.getOpenClassName=function(){return"".concat(je.props.rootPrefixCls,"-submenu-open")},je.getVisible=function(){return je.state.isOpen},je.getMode=function(){return je.state.mode},je.saveMenuInstance=function(St){je.menuInstance=St},je.addKeyPath=function(St){return Object(b.a)(Object(b.a)({},St),{},{keyPath:(St.keyPath||[]).concat(je.props.eventKey)})},je.triggerOpenChange=function(St,Nt){var en=je.props.eventKey,yn=function(){je.onOpenChange({key:en,item:Object(w.a)(je),trigger:Nt,open:St})};Nt==="mouseenter"?je.mouseenterTimeout=setTimeout(function(){yn()},0):yn()},je.isChildrenSelected=function(){var St={find:!1};return Q(je.props.children,je.props.selectedKeys,St),St.find},je.isInlineMode=function(){return je.getMode()==="inline"},je.adjustWidth=function(){if(!je.subMenuTitle||!je.menuInstance)return;var St=pe.findDOMNode(je.menuInstance);if(St.offsetWidth>=je.subMenuTitle.offsetWidth)return;St.style.minWidth="".concat(je.subMenuTitle.offsetWidth,"px")},je.saveSubMenuTitle=function(St){je.subMenuTitle=St},je.getBaseProps=function(){var St=Object(w.a)(je),Nt=St.props,en=je.getMode();return{mode:en==="horizontal"?"vertical":en,visible:je.getVisible(),level:Nt.level+1,inlineIndent:Nt.inlineIndent,focusable:!1,onClick:je.onSubMenuClick,onSelect:je.onSelect,onDeselect:je.onDeselect,onDestroy:je.onDestroy,selectedKeys:Nt.selectedKeys,eventKey:"".concat(Nt.eventKey,"-menu-"),openKeys:Nt.openKeys,motion:Nt.motion,onOpenChange:je.onOpenChange,subMenuOpenDelay:Nt.subMenuOpenDelay,parentMenu:Object(w.a)(je),subMenuCloseDelay:Nt.subMenuCloseDelay,forceSubMenuRender:Nt.forceSubMenuRender,triggerSubMenuAction:Nt.triggerSubMenuAction,builtinPlacements:Nt.builtinPlacements,defaultActiveFirst:Nt.store.getState().defaultActiveFirst[de(Nt.eventKey)],multiple:Nt.multiple,prefixCls:Nt.rootPrefixCls,id:je.internalMenuId,manualRef:je.saveMenuInstance,itemIcon:Nt.itemIcon,expandIcon:Nt.expandIcon,direction:Nt.direction}},je.getMotion=function(St,Nt){var en=Object(w.a)(je),yn=en.haveRendered,dn=je.props,Un=dn.motion,Sr=dn.rootPrefixCls,Vr=Object(b.a)(Object(b.a)({},Un),{},{leavedClassName:"".concat(Sr,"-hidden"),removeOnLeave:!1,motionAppear:yn||!Nt||St!=="inline"});return Vr};var tt=ht.store,ze=ht.eventKey,lt=tt.getState(),pt=lt.defaultActiveFirst;je.isRootMenu=!1;var It=!1;return pt&&(It=pt[ze]),fi(tt,ze,It),je.state={mode:ht.mode,isOpen:ht.isOpen},je}return Object(C.a)(At,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var je=this,tt=this.props,ze=tt.mode,lt=tt.parentMenu,pt=tt.manualRef,It=tt.isOpen,St=function(){je.setState({mode:ze,isOpen:It})},Nt=It!==this.state.isOpen,en=ze!==this.state.mode;if((en||Nt)&&(ve.a.cancel(this.updateStateRaf),en?this.updateStateRaf=Object(ve.a)(St):St()),pt&&pt(this),ze!=="horizontal"||!(lt==null?void 0:lt.isRootMenu)||!It)return;this.minWidthTimeout=setTimeout(function(){return je.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var je=this.props,tt=je.onDestroy,ze=je.eventKey;tt&&tt(ze),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ve.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(je,tt){var ze=this.getBaseProps();return g.createElement(Oo,Object(x.a)({},ze,{id:this.internalMenuId,className:je,style:tt}),this.props.children)}},{key:"renderChildren",value:function(){var je=this,tt=this.getBaseProps(),ze=tt.mode,lt=tt.visible,pt=tt.forceSubMenuRender,It=tt.direction,St=this.getMotion(ze,lt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||lt||pt,!this.haveOpened)return g.createElement("div",null);var Nt=_()("".concat(tt.prefixCls,"-sub"),Object(I.a)({},"".concat(tt.prefixCls,"-rtl"),It==="rtl"));return this.isInlineMode()?g.createElement(Re,Object(x.a)({visible:tt.visible,forceRender:pt},St),function(en){var yn=en.className,dn=en.style,Un=_()(Nt,yn);return je.renderPopupMenu(Un,dn)}):this.renderPopupMenu(Nt)}},{key:"render",value:function(){var je,tt,ze,lt=Object(b.a)({},this.props),pt=this.getVisible(),It=this.getPrefixCls(),St=this.isInlineMode(),Nt=this.getMode(),en=_()(It,"".concat(It,"-").concat(Nt),(je={},Object(I.a)(je,lt.className,!!lt.className),Object(I.a)(je,this.getOpenClassName(),pt),Object(I.a)(je,this.getActiveClassName(),lt.active||pt&&!St),Object(I.a)(je,this.getDisabledClassName(),lt.disabled),Object(I.a)(je,this.getSelectedClassName(),this.isChildrenSelected()),je));this.internalMenuId||(lt.eventKey?this.internalMenuId="".concat(lt.eventKey,"$Menu"):(Nr+=1,this.internalMenuId="$__$".concat(Nr,"$Menu")));var yn={},dn={},Un={};lt.disabled||(yn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},dn={onClick:this.onTitleClick},Un={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Sr={},Vr=lt.direction,Hr=Vr==="rtl";St&&(Hr?Sr.paddingRight=lt.inlineIndent*lt.level:Sr.paddingLeft=lt.inlineIndent*lt.level);var Yr={};this.getVisible()&&(Yr={"aria-owns":this.internalMenuId});var qr=null;Nt!=="horizontal"&&(qr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qr=g.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var $r=g.createElement("div",Object(x.a)({ref:this.saveSubMenuTitle,style:Sr,className:"".concat(It,"-title"),role:"button"},Un,dn,{"aria-expanded":pt},Yr,{"aria-haspopup":"true",title:typeof lt.title=="string"?lt.title:void 0}),lt.title,qr||g.createElement("i",{className:"".concat(It,"-arrow")})),Xr=this.renderChildren(),Ei=((tt=lt.parentMenu)===null||tt===void 0?void 0:tt.isRootMenu)?lt.parentMenu.props.getPopupContainer:function(Wi){return Wi.parentNode},li=Ar[Nt],sa=lt.popupOffset?{offset:lt.popupOffset}:{},ci=_()((ze={},Object(I.a)(ze,lt.popupClassName,lt.popupClassName&&!St),Object(I.a)(ze,"".concat(It,"-rtl"),Hr),ze)),Er=lt.disabled,gr=lt.triggerSubMenuAction,pi=lt.subMenuOpenDelay,Ti=lt.forceSubMenuRender,lr=lt.subMenuCloseDelay,Ai=lt.builtinPlacements;Y.forEach(function(Wi){return delete lt[Wi]}),delete lt.onClick;var Di=Hr?Object(b.a)(Object(b.a)({},hi),Ai):Object(b.a)(Object(b.a)({},ri),Ai);delete lt.direction;var Ii=this.getBaseProps(),Ji=St?null:this.getMotion(Ii.mode,Ii.visible);return g.createElement("li",Object(x.a)({},lt,yn,{className:en,role:"menuitem"}),g.createElement(Za,{prefixCls:It,popupClassName:_()("".concat(It,"-popup"),ci),getPopupContainer:Ei,builtinPlacements:Di,popupPlacement:li,popupVisible:St?!1:pt,popupAlign:sa,popup:St?null:Xr,action:Er||St?[]:[gr],mouseEnterDelay:pi,mouseLeaveDelay:lr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ti,popupMotion:Ji},$r),St?Xr:null)}}]),At}(g.Component);wr.defaultProps={onMouseEnter:se,onMouseLeave:se,onTitleMouseEnter:se,onTitleMouseLeave:se,onTitleClick:se,manualRef:se,mode:"vertical",title:""};var vi=Object(R.b)(function(st,xt){var At=st.openKeys,ht=st.activeKey,je=st.selectedKeys,tt=xt.eventKey,ze=xt.subMenuKey;return{isOpen:At.indexOf(tt)>-1,active:ht[ze]===tt,selectedKeys:je}})(wr);vi.isSubMenu=!0;var pr=vi,ta="menuitem-overflowed",Qi=.5,ea=function(st){Object(S.a)(At,st);var xt=Object(D.a)(At);function At(){var ht;return Object(O.a)(this,At),ht=xt.apply(this,arguments),ht.resizeObserver=null,ht.mutationObserver=null,ht.originalTotalWidth=0,ht.overflowedItems=[],ht.menuItemSizes=[],ht.cancelFrameId=null,ht.state={lastVisibleIndex:void 0},ht.childRef=g.createRef(),ht.getMenuItemNodes=function(){var je=ht.props.prefixCls,tt=ht.childRef.current;return tt?[].slice.call(tt.children).filter(function(ze){return ze.className.split(" ").indexOf("".concat(je,"-overflowed-submenu"))<0}):[]},ht.getOverflowedSubMenuItem=function(je,tt,ze){var lt=ht.props,pt=lt.overflowedIndicator,It=lt.level,St=lt.mode,Nt=lt.prefixCls,en=lt.theme;if(It!==1||St!=="horizontal")return null;var yn=ht.props.children[0],dn=yn.props,Un=dn.children,Sr=dn.title,Vr=dn.style,Hr=Object(T.a)(dn,["children","title","style"]),Yr=Object(b.a)({},Vr),qr="".concat(je,"-overflowed-indicator"),$r="".concat(je,"-overflowed-indicator");tt.length===0&&ze!==!0?Yr=Object(b.a)(Object(b.a)({},Yr),{},{display:"none"}):ze&&(Yr=Object(b.a)(Object(b.a)({},Yr),{},{visibility:"hidden",position:"absolute"}),qr="".concat(qr,"-placeholder"),$r="".concat($r,"-placeholder"));var Xr=en?"".concat(Nt,"-").concat(en):"",Ei={};return Y.forEach(function(li){Hr[li]!==void 0&&(Ei[li]=Hr[li])}),g.createElement(pr,Object(x.a)({title:pt,className:"".concat(Nt,"-overflowed-submenu"),popupClassName:Xr},Ei,{key:qr,eventKey:$r,disabled:!1,style:Yr}),tt)},ht.setChildrenWidthAndResize=function(){if(ht.props.mode!=="horizontal")return;var je=ht.childRef.current;if(!je)return;var tt=je.children;if(!tt||tt.length===0)return;var ze=je.children[tt.length-1];ae(ze,"display","inline-block");var lt=ht.getMenuItemNodes(),pt=lt.filter(function(It){return It.className.split(" ").indexOf(ta)>=0});pt.forEach(function(It){ae(It,"display","inline-block")}),ht.menuItemSizes=lt.map(function(It){return ue(It,!0)}),pt.forEach(function(It){ae(It,"display","none")}),ht.overflowedIndicatorWidth=ue(je.children[je.children.length-1],!0),ht.originalTotalWidth=ht.menuItemSizes.reduce(function(It,St){return It+St},0),ht.handleResize(),ae(ze,"display","none")},ht.handleResize=function(){if(ht.props.mode!=="horizontal")return;var je=ht.childRef.current;if(!je)return;var tt=ue(je);ht.overflowedItems=[];var ze=0,lt;ht.originalTotalWidth>tt+Qi&&(lt=-1,ht.menuItemSizes.forEach(function(pt){ze+=pt,ze+ht.overflowedIndicatorWidth<=tt&&(lt+=1)})),ht.setState({lastVisibleIndex:lt})},ht}return Object(C.a)(At,[{key:"componentDidMount",value:function(){var je=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var tt=this.childRef.current;if(!tt)return;this.resizeObserver=new Ie.default(function(ze){ze.forEach(function(){var lt=je.cancelFrameId;cancelAnimationFrame(lt),je.cancelFrameId=requestAnimationFrame(je.setChildrenWidthAndResize)})}),[].slice.call(tt.children).concat(tt).forEach(function(ze){je.resizeObserver.observe(ze)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){je.resizeObserver.disconnect(),[].slice.call(tt.children).concat(tt).forEach(function(ze){je.resizeObserver.observe(ze)}),je.setChildrenWidthAndResize()}),this.mutationObserver.observe(tt,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(je){var tt=this,ze=this.state.lastVisibleIndex;return(je||[]).reduce(function(lt,pt,It){var St=pt;if(tt.props.mode==="horizontal"){var Nt=tt.getOverflowedSubMenuItem(pt.props.eventKey,[]);ze!==void 0&&tt.props.className.indexOf("".concat(tt.props.prefixCls,"-root"))!==-1&&(It>ze&&(St=g.cloneElement(pt,{style:{display:"none"},eventKey:"".concat(pt.props.eventKey,"-hidden"),className:"".concat(ta)})),It===ze+1&&(tt.overflowedItems=je.slice(ze+1).map(function(yn){return g.cloneElement(yn,{key:yn.props.eventKey,mode:"vertical-left"})}),Nt=tt.getOverflowedSubMenuItem(pt.props.eventKey,tt.overflowedItems)));var en=[].concat(Object(a.a)(lt),[Nt,St]);return It===je.length-1&&en.push(tt.getOverflowedSubMenuItem(pt.props.eventKey,[],!0)),en}return[].concat(Object(a.a)(lt),[St])},[])}},{key:"render",value:function(){var je=this.props,tt=je.visible,ze=je.prefixCls,lt=je.overflowedIndicator,pt=je.mode,It=je.level,St=je.tag,Nt=je.children,en=je.theme,yn=Object(T.a)(je,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),dn=St;return g.createElement(dn,Object(x.a)({ref:this.childRef},yn),this.renderChildren(Nt))}}]),At}(g.Component);ea.defaultProps={tag:"div",className:""};var Eo=ea;function ca(st){return st.length?st.every(function(xt){return!!xt.props.disabled}):!0}function qa(st,xt,At){var ht=st.getState();st.setState({activeKey:Object(b.a)(Object(b.a)({},ht.activeKey),{},Object(I.a)({},xt,At))})}function ja(st){return st.eventKey||"0-menu-"}function Ba(st,xt){var At=xt,ht=st.children,je=st.eventKey;if(At){var tt;if($(ht,function(ze,lt){ze&&ze.props&&!ze.props.disabled&&At===Ne(ze,je,lt)&&(tt=!0)}),tt)return At}return At=null,st.defaultActiveFirst&&$(ht,function(ze,lt){!At&&ze&&!ze.props.disabled&&(At=Ne(ze,je,lt))}),At}function Ka(st){if(!st)return;var xt=this.instanceArray.indexOf(st);xt!==-1?this.instanceArray[xt]=st:this.instanceArray.push(st)}var Ha=function(st){Object(S.a)(At,st);var xt=Object(D.a)(At);function At(ht){var je;return Object(O.a)(this,At),je=xt.call(this,ht),je.onKeyDown=function(tt,ze){var lt=tt.keyCode,pt;if(je.getFlatInstanceArray().forEach(function(St){St&&St.props.active&&St.onKeyDown&&(pt=St.onKeyDown(tt))}),pt)return 1;var It=null;return(lt===o.a.UP||lt===o.a.DOWN)&&(It=je.step(lt===o.a.UP?-1:1)),It?(tt.preventDefault(),qa(je.props.store,ja(je.props),It.props.eventKey),typeof ze=="function"&&ze(It),1):void 0},je.onItemHover=function(tt){var ze=tt.key,lt=tt.hover;qa(je.props.store,ja(je.props),lt?ze:null)},je.onDeselect=function(tt){je.props.onDeselect(tt)},je.onSelect=function(tt){je.props.onSelect(tt)},je.onClick=function(tt){je.props.onClick(tt)},je.onOpenChange=function(tt){je.props.onOpenChange(tt)},je.onDestroy=function(tt){je.props.onDestroy(tt)},je.getFlatInstanceArray=function(){return je.instanceArray},je.step=function(tt){var ze=je.getFlatInstanceArray(),lt=je.props.store.getState().activeKey[ja(je.props)],pt=ze.length;if(!pt)return null;tt<0&&(ze=ze.concat().reverse());var It=-1;if(ze.every(function(yn,dn){return yn&&yn.props.eventKey===lt?(It=dn,!1):!0}),!je.props.defaultActiveFirst&&It!==-1&&ca(ze.slice(It,pt-1)))return;var St=(It+1)%pt,Nt=St;do{var en=ze[Nt];if(!en||en.props.disabled)Nt=(Nt+1)%pt;else return en}while(Nt!==St);return null},je.renderCommonMenuItem=function(tt,ze,lt){var pt=je.props.store.getState(),It=Object(w.a)(je),St=It.props,Nt=Ne(tt,St.eventKey,ze),en=tt.props;if(!en||typeof tt.type=="string")return tt;var yn=Nt===pt.activeKey,dn=Object(b.a)(Object(b.a)({mode:en.mode||St.mode,level:St.level,inlineIndent:St.inlineIndent,renderMenuItem:je.renderMenuItem,rootPrefixCls:St.prefixCls,index:ze,parentMenu:St.parentMenu,manualRef:en.disabled?void 0:Object(N.a)(tt.ref,Ka.bind(Object(w.a)(je))),eventKey:Nt,active:!en.disabled&&yn,multiple:St.multiple,onClick:function(Sr){(en.onClick||se)(Sr),je.onClick(Sr)},onItemHover:je.onItemHover,motion:St.motion,subMenuOpenDelay:St.subMenuOpenDelay,subMenuCloseDelay:St.subMenuCloseDelay,forceSubMenuRender:St.forceSubMenuRender,onOpenChange:je.onOpenChange,onDeselect:je.onDeselect,onSelect:je.onSelect,builtinPlacements:St.builtinPlacements,itemIcon:en.itemIcon||je.props.itemIcon,expandIcon:en.expandIcon||je.props.expandIcon},lt),{},{direction:St.direction});return(St.mode==="inline"||be())&&(dn.triggerSubMenuAction="click"),g.cloneElement(tt,Object(b.a)(Object(b.a)({},dn),{},{key:Nt||ze}))},je.renderMenuItem=function(tt,ze,lt){if(!tt)return null;var pt=je.props.store.getState(),It={openKeys:pt.openKeys,selectedKeys:pt.selectedKeys,triggerSubMenuAction:je.props.triggerSubMenuAction,subMenuKey:lt};return je.renderCommonMenuItem(tt,ze,It)},ht.store.setState({activeKey:Object(b.a)(Object(b.a)({},ht.store.getState().activeKey),{},Object(I.a)({},ht.eventKey,Ba(ht,ht.activeKey)))}),je.instanceArray=[],je}return Object(C.a)(At,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(je){return this.props.visible||je.visible||this.props.className!==je.className||!z()(this.props.style,je.style)}},{key:"componentDidUpdate",value:function(je){var tt=this.props,ze="activeKey"in tt?tt.activeKey:tt.store.getState().activeKey[ja(tt)],lt=Ba(tt,ze);if(lt!==ze)qa(tt.store,ja(tt),lt);else if("activeKey"in je){var pt=Ba(je,je.activeKey);lt!==pt&&qa(tt.store,ja(tt),lt)}}},{key:"render",value:function(){var je=this,tt=Object(x.a)({},this.props);this.instanceArray=[];var ze=_()(tt.prefixCls,tt.className,"".concat(tt.prefixCls,"-").concat(tt.mode)),lt={className:ze,role:tt.role||"menu"};tt.id&&(lt.id=tt.id),tt.focusable&&(lt.tabIndex=0,lt.onKeyDown=this.onKeyDown);var pt=tt.prefixCls,It=tt.eventKey,St=tt.visible,Nt=tt.level,en=tt.mode,yn=tt.overflowedIndicator,dn=tt.theme;return Y.forEach(function(Un){return delete tt[Un]}),delete tt.onClick,g.createElement(Eo,Object(x.a)({},tt,{prefixCls:pt,mode:en,tag:"ul",level:Nt,theme:dn,visible:St,overflowedIndicator:yn},lt),Object(p.a)(tt.children).map(function(Un,Sr){return je.renderMenuItem(Un,Sr,It||"0-menu-")}))}}]),At}(g.Component);Ha.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:se};var Mo=Object(R.b)()(Ha),Oo=Mo,Ra=y("Kwbf");function Vo(st,xt,At){var ht=st.prefixCls,je=st.motion,tt=st.defaultMotions,ze=tt===void 0?{}:tt,lt=st.openAnimation,pt=st.openTransitionName,It=xt.switchingModeFromInline;if(je)return je;if(Object(X.a)(lt)==="object"&&lt)Object(Ra.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof lt=="string")return{motionName:"".concat(ht,"-open-").concat(lt)};if(pt)return{motionName:pt};var St=ze[At];return St||(It?null:ze.other)}var ar=function(st){Object(S.a)(At,st);var xt=Object(D.a)(At);function At(ht){var je;Object(O.a)(this,At),je=xt.call(this,ht),je.onSelect=function(lt){var pt=Object(w.a)(je),It=pt.props;if(It.selectable){var St=je.store.getState(),Nt=St.selectedKeys,en=lt.key;It.multiple?Nt=Nt.concat([en]):Nt=[en],"selectedKeys"in It||je.store.setState({selectedKeys:Nt}),It.onSelect(Object(b.a)(Object(b.a)({},lt),{},{selectedKeys:Nt}))}},je.onClick=function(lt){var pt=je.getRealMenuMode(),It=Object(w.a)(je),St=It.store,Nt=It.props.onOpenChange;pt!=="inline"&&!("openKeys"in je.props)&&(St.setState({openKeys:[]}),Nt([])),je.props.onClick(lt)},je.onKeyDown=function(lt,pt){je.innerMenu.getWrappedInstance().onKeyDown(lt,pt)},je.onOpenChange=function(lt){var pt=Object(w.a)(je),It=pt.props,St=je.store.getState().openKeys.concat(),Nt=!1,en=function(dn){var Un=!1;if(dn.open)Un=St.indexOf(dn.key)===-1,Un&&St.push(dn.key);else{var Sr=St.indexOf(dn.key);Un=Sr!==-1,Un&&St.splice(Sr,1)}Nt=Nt||Un};Array.isArray(lt)?lt.forEach(en):en(lt),Nt&&("openKeys"in je.props||je.store.setState({openKeys:St}),It.onOpenChange(St))},je.onDeselect=function(lt){var pt=Object(w.a)(je),It=pt.props;if(It.selectable){var St=je.store.getState().selectedKeys.concat(),Nt=lt.key,en=St.indexOf(Nt);en!==-1&&St.splice(en,1),"selectedKeys"in It||je.store.setState({selectedKeys:St}),It.onDeselect(Object(b.a)(Object(b.a)({},lt),{},{selectedKeys:St}))}},je.onMouseEnter=function(lt){je.restoreModeVerticalFromInline();var pt=je.props.onMouseEnter;pt&&pt(lt)},je.onTransitionEnd=function(lt){var pt=lt.propertyName==="width"&&lt.target===lt.currentTarget,It=lt.target.className,St=Object.prototype.toString.call(It)==="[object SVGAnimatedString]"?It.animVal:It,Nt=lt.propertyName==="font-size"&&St.indexOf("anticon")>=0;(pt||Nt)&&je.restoreModeVerticalFromInline()},je.setInnerMenu=function(lt){je.innerMenu=lt},je.isRootMenu=!0;var tt=ht.defaultSelectedKeys,ze=ht.defaultOpenKeys;return"selectedKeys"in ht&&(tt=ht.selectedKeys||[]),"openKeys"in ht&&(ze=ht.openKeys||[]),je.store=Object(R.c)({selectedKeys:tt,openKeys:ze,activeKey:{"0-menu-":Ba(ht,ht.activeKey)}}),je.state={switchingModeFromInline:!1,prevProps:ht,inlineOpenKeys:[],store:je.store},je}return Object(C.a)(At,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(je){var tt=this.props,ze=tt.siderCollapsed,lt=tt.inlineCollapsed,pt=tt.onOpenChange;(!je.inlineCollapsed&&lt||!je.siderCollapsed&&ze)&&pt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var je=this.props.collapsedWidth,tt=this.store,ze=this.prevOpenKeys,lt=this.getInlineCollapsed()&&(je===0||je==="0"||je==="0px");lt?(this.prevOpenKeys=tt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ze&&(this.store.setState({openKeys:ze}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var je=this.props.mode,tt=this.state.switchingModeFromInline,ze=this.getInlineCollapsed();return tt&&ze?"inline":ze?"vertical":je}},{key:"getInlineCollapsed",value:function(){var je=this.props,tt=je.inlineCollapsed,ze=je.siderCollapsed;return ze!==void 0?ze:tt}},{key:"restoreModeVerticalFromInline",value:function(){var je=this.state.switchingModeFromInline;je&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var je=Object(b.a)({},Object(P.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),tt=this.getRealMenuMode();return je.className+=" ".concat(je.prefixCls,"-root"),je.direction==="rtl"&&(je.className+=" ".concat(je.prefixCls,"-rtl")),je=Object(b.a)(Object(b.a)({},je),{},{mode:tt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Vo(this.props,this.state,tt)}),delete je.openAnimation,delete je.openTransitionName,g.createElement(R.a,{store:this.store},g.createElement(Oo,Object(x.a)({},je,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(je,tt){var ze=tt.prevProps,lt=tt.store,pt=lt.getState(),It={},St={prevProps:je};return ze.mode==="inline"&&je.mode!=="inline"&&(St.switchingModeFromInline=!0),"openKeys"in je?It.openKeys=je.openKeys||[]:((je.inlineCollapsed&&!ze.inlineCollapsed||je.siderCollapsed&&!ze.siderCollapsed)&&(St.switchingModeFromInline=!0,St.inlineOpenKeys=pt.openKeys,It.openKeys=[]),(!je.inlineCollapsed&&ze.inlineCollapsed||!je.siderCollapsed&&ze.siderCollapsed)&&(It.openKeys=tt.inlineOpenKeys,St.inlineOpenKeys=[])),Object.keys(It).length&&lt.setState(It),St}}]),At}(g.Component);ar.defaultProps={selectable:!0,onClick:se,onSelect:se,onOpenChange:se,onDeselect:se,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:g.createElement("span",null,"\xB7\xB7\xB7")};var yr=ar,nr=function(st){Object(S.a)(At,st);var xt=Object(D.a)(At);function At(){var ht;return Object(O.a)(this,At),ht=xt.apply(this,arguments),ht.onKeyDown=function(je){var tt=je.keyCode;return tt===o.a.ENTER?(ht.onClick(je),!0):void 0},ht.onMouseLeave=function(je){var tt=ht.props,ze=tt.eventKey,lt=tt.onItemHover,pt=tt.onMouseLeave;lt({key:ze,hover:!1}),pt({key:ze,domEvent:je})},ht.onMouseEnter=function(je){var tt=ht.props,ze=tt.eventKey,lt=tt.onItemHover,pt=tt.onMouseEnter;lt({key:ze,hover:!0}),pt({key:ze,domEvent:je})},ht.onClick=function(je){var tt=ht.props,ze=tt.eventKey,lt=tt.multiple,pt=tt.onClick,It=tt.onSelect,St=tt.onDeselect,Nt=tt.isSelected,en={key:ze,keyPath:[ze],item:Object(w.a)(ht),domEvent:je};pt(en),lt?Nt?St(en):It(en):Nt||It(en)},ht.saveNode=function(je){ht.node=je},ht}return Object(C.a)(At,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var je=this.props;je.onDestroy&&je.onDestroy(je.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var je,tt=Object(b.a)({},this.props),ze=_()(this.getPrefixCls(),tt.className,(je={},Object(I.a)(je,this.getActiveClassName(),!tt.disabled&&tt.active),Object(I.a)(je,this.getSelectedClassName(),tt.isSelected),Object(I.a)(je,this.getDisabledClassName(),tt.disabled),je)),lt=Object(b.a)(Object(b.a)({},tt.attribute),{},{title:typeof tt.title=="string"?tt.title:void 0,className:ze,role:tt.role||"menuitem","aria-disabled":tt.disabled});tt.role==="option"?lt=Object(b.a)(Object(b.a)({},lt),{},{role:"option","aria-selected":tt.isSelected}):(tt.role===null||tt.role==="none")&&(lt.role="none");var pt={onClick:tt.disabled?null:this.onClick,onMouseLeave:tt.disabled?null:this.onMouseLeave,onMouseEnter:tt.disabled?null:this.onMouseEnter},It=Object(b.a)({},tt.style);tt.mode==="inline"&&(tt.direction==="rtl"?It.paddingRight=tt.inlineIndent*tt.level:It.paddingLeft=tt.inlineIndent*tt.level),Y.forEach(function(Nt){return delete tt[Nt]}),delete tt.direction;var St=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(St=g.createElement(this.props.itemIcon,this.props)),g.createElement("li",Object(x.a)({},Object(P.a)(tt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),lt,pt,{style:It,ref:this.saveNode}),tt.children,St)}}]),At}(g.Component);nr.isMenuItem=!0,nr.defaultProps={onSelect:se,onMouseEnter:se,onMouseLeave:se,manualRef:se};var Fr=Object(R.b)(function(st,xt){var At=st.activeKey,ht=st.selectedKeys,je=xt.eventKey,tt=xt.subMenuKey;return{active:At[tt]===je,isSelected:Array.isArray(ht)?ht.indexOf(je)!==-1:ht===je}})(nr),si=Fr,Ci=function(st){Object(S.a)(At,st);var xt=Object(D.a)(At);function At(){var ht;return Object(O.a)(this,At),ht=xt.apply(this,arguments),ht.renderInnerMenuItem=function(je){var tt=ht.props,ze=tt.renderMenuItem,lt=tt.index;return ze(je,lt,ht.props.subMenuKey)},ht}return Object(C.a)(At,[{key:"render",value:function(){var je=Object(x.a)({},this.props),tt=je.className,ze=tt===void 0?"":tt,lt=je.rootPrefixCls,pt="".concat(lt,"-item-group-title"),It="".concat(lt,"-item-group-list"),St=je.title,Nt=je.children;return Y.forEach(function(en){return delete je[en]}),delete je.direction,g.createElement("li",Object(x.a)({},je,{onClick:function(yn){return yn.stopPropagation()},className:"".concat(ze," ").concat(lt,"-item-group")}),g.createElement("div",{className:pt,title:typeof St=="string"?St:void 0},St),g.createElement("ul",{className:It},g.Children.map(Nt,this.renderInnerMenuItem)))}}]),At}(g.Component);Ci.isMenuItemGroup=!0,Ci.defaultProps={disabled:!0};var Or=Ci,na=function(xt){var At=xt.className,ht=xt.rootPrefixCls,je=xt.style;return g.createElement("li",{className:"".concat(At," ").concat(ht,"-item-divider"),style:je})};na.defaultProps={disabled:!0,className:"",style:{}};var Ea=na,Wr=yr,$a=y("eDIo");function _i(st,xt){var At=st.prefixCls,ht=st.editable,je=st.locale,tt=st.style;return!ht||ht.showAdd===!1?null:g.createElement("button",{ref:xt,type:"button",className:"".concat(At,"-nav-add"),style:tt,"aria-label":(je==null?void 0:je.addAriaLabel)||"Add tab",onClick:function(lt){ht.onEdit("add",{event:lt})}},ht.addIcon||"+")}var da=g.forwardRef(_i);function xa(st,xt){var At=st.prefixCls,ht=st.id,je=st.tabs,tt=st.locale,ze=st.mobile,lt=st.moreIcon,pt=lt===void 0?"More":lt,It=st.moreTransitionName,St=st.style,Nt=st.className,en=st.editable,yn=st.tabBarGutter,dn=st.rtl,Un=st.onTabClick,Sr=Object(g.useState)(!1),Vr=Object(v.a)(Sr,2),Hr=Vr[0],Yr=Vr[1],qr=Object(g.useState)(null),$r=Object(v.a)(qr,2),Xr=$r[0],Ei=$r[1],li="".concat(ht,"-more-popup"),sa="".concat(At,"-dropdown"),ci=Xr!==null?"".concat(li,"-").concat(Xr):null,Er=tt==null?void 0:tt.dropdownAriaLabel,gr=g.createElement(Wr,{onClick:function(Ji){var Wi=Ji.key,wa=Ji.domEvent;Un(Wi,wa),Yr(!1)},id:li,tabIndex:-1,role:"listbox","aria-activedescendant":ci,selectedKeys:[Xr],"aria-label":Er!==void 0?Er:"expanded dropdown"},je.map(function(Ii){return g.createElement(si,{key:Ii.key,id:"".concat(li,"-").concat(Ii.key),role:"option","aria-controls":ht&&"".concat(ht,"-panel-").concat(Ii.key),disabled:Ii.disabled},Ii.tab)}));function pi(Ii){for(var Ji=je.filter(function(oo){return!oo.disabled}),Wi=Ji.findIndex(function(oo){return oo.key===Xr})||0,wa=Ji.length,La=0;La<wa;La+=1){Wi=(Wi+Ii+wa)%wa;var ha=Ji[Wi];if(!ha.disabled){Ei(ha.key);return}}}function Ti(Ii){var Ji=Ii.which;if(!Hr){[o.a.DOWN,o.a.SPACE,o.a.ENTER].includes(Ji)&&(Yr(!0),Ii.preventDefault());return}switch(Ji){case o.a.UP:pi(-1),Ii.preventDefault();break;case o.a.DOWN:pi(1),Ii.preventDefault();break;case o.a.ESC:Yr(!1);break;case o.a.SPACE:case o.a.ENTER:Xr!==null&&Un(Xr,Ii);break}}Object(g.useEffect)(function(){var Ii=document.getElementById(ci);Ii&&Ii.scrollIntoView&&Ii.scrollIntoView(!1)},[Xr]),Object(g.useEffect)(function(){Hr||Ei(null)},[Hr]);var lr=Object(I.a)({},dn?"marginLeft":"marginRight",yn);je.length||(lr.visibility="hidden",lr.order=1);var Ai=_()(Object(I.a)({},"".concat(sa,"-rtl"),dn)),Di=ze?null:g.createElement($a.a,{prefixCls:sa,overlay:gr,trigger:["hover"],visible:Hr,transitionName:It,onVisibleChange:Yr,overlayClassName:Ai,mouseEnterDelay:.1,mouseLeaveDelay:.1},g.createElement("button",{type:"button",className:"".concat(At,"-nav-more"),style:lr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":li,id:"".concat(ht,"-more"),"aria-expanded":Hr,onKeyDown:Ti},pt));return g.createElement("div",{className:_()("".concat(At,"-nav-operations"),Nt),style:St,ref:xt},Di,g.createElement(da,{prefixCls:At,locale:tt,editable:en}))}var Wa=g.forwardRef(xa),Yo=Object(g.createContext)(null),bi=.1,Nn=.01,sn=20,Bn=Math.pow(.995,sn);function Dn(){var st=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(st)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(st.substr(0,4)))}function hr(st,xt){var At=Object(g.useState)(),ht=Object(v.a)(At,2),je=ht[0],tt=ht[1],ze=Object(g.useState)(0),lt=Object(v.a)(ze,2),pt=lt[0],It=lt[1],St=Object(g.useState)(0),Nt=Object(v.a)(St,2),en=Nt[0],yn=Nt[1],dn=Object(g.useState)(),Un=Object(v.a)(dn,2),Sr=Un[0],Vr=Un[1],Hr=Object(g.useRef)();function Yr(Er){var gr=Er.touches[0],pi=gr.screenX,Ti=gr.screenY;tt({x:pi,y:Ti}),window.clearInterval(Hr.current)}function qr(Er){if(!je)return;Er.preventDefault();var gr=Er.touches[0],pi=gr.screenX,Ti=gr.screenY;tt({x:pi,y:Ti});var lr=pi-je.x,Ai=Ti-je.y;xt(lr,Ai);var Di=Date.now();It(Di),yn(Di-pt),Vr({x:lr,y:Ai})}function $r(){if(!je)return;if(tt(null),Vr(null),Sr){var Er=Sr.x/en,gr=Sr.y/en,pi=Math.abs(Er),Ti=Math.abs(gr);if(Math.max(pi,Ti)<bi)return;var lr=Er,Ai=gr;Hr.current=window.setInterval(function(){if(Math.abs(lr)<Nn&&Math.abs(Ai)<Nn){window.clearInterval(Hr.current);return}lr*=Bn,Ai*=Bn,xt(lr*sn,Ai*sn)},sn)}}var Xr=Object(g.useRef)(0),Ei=Object(g.useRef)(!1),li=Object(g.useRef)();function sa(Er){var gr=Er.deltaX,pi=Er.deltaY,Ti=0,lr=Math.abs(gr),Ai=Math.abs(pi);lr===Ai?Ti=li.current==="x"?gr:pi:lr>Ai?(Ti=gr,li.current="x"):(Ti=pi,li.current="y");var Di=Date.now();Di-Xr.current>100&&(Ei.current=!1),(xt(-Ti,-Ti)||Ei.current)&&(Er.preventDefault(),Ei.current=!0),Xr.current=Di}var ci=Object(g.useRef)(null);ci.current={onTouchStart:Yr,onTouchMove:qr,onTouchEnd:$r,onWheel:sa},g.useEffect(function(){function Er(lr){ci.current.onTouchStart(lr)}function gr(lr){ci.current.onTouchMove(lr)}function pi(lr){ci.current.onTouchEnd(lr)}function Ti(lr){ci.current.onWheel(lr)}return document.addEventListener("touchmove",gr,{passive:!1}),document.addEventListener("touchend",pi,{passive:!1}),st.current.addEventListener("touchstart",Er,{passive:!1}),st.current.addEventListener("wheel",Ti),function(){document.removeEventListener("touchmove",gr),document.removeEventListener("touchend",pi)}},[])}function Ir(){var st=Object(g.useRef)(new Map);function xt(ht){return st.current.has(ht)||st.current.set(ht,g.createRef()),st.current.get(ht)}function At(ht){st.current.delete(ht)}return[xt,At]}function Zr(st,xt){var At=g.useRef(st),ht=g.useState({}),je=Object(v.a)(ht,2),tt=je[1];function ze(lt){var pt=typeof lt=="function"?lt(At.current):lt;pt!==At.current&&xt(pt,At.current),At.current=pt,tt({})}return[At.current,ze]}var yi=function(xt){var At=xt.position,ht=xt.prefixCls,je=xt.extra;if(!je)return null;var tt,ze=je;return At==="right"&&(tt=ze.right||!ze.left&&ze||null),At==="left"&&(tt=ze.left||null),tt?g.createElement("div",{className:"".concat(ht,"-extra-content")},tt):null};function aa(st,xt){var At,ht=g.useContext(Yo),je=ht.prefixCls,tt=ht.tabs,ze=st.className,lt=st.style,pt=st.id,It=st.animated,St=st.activeKey,Nt=st.rtl,en=st.extra,yn=st.editable,dn=st.locale,Un=st.tabPosition,Sr=st.tabBarGutter,Vr=st.children,Hr=st.onTabClick,Yr=st.onTabScroll,qr=Object(g.useRef)(),$r=Object(g.useRef)(),Xr=Object(g.useRef)(),Ei=Object(g.useRef)(),li=Ir(),sa=Object(v.a)(li,2),ci=sa[0],Er=sa[1],gr=Un==="top"||Un==="bottom",pi=Zr(0,function(Ui,Se){gr&&Yr&&Yr({direction:Ui>Se?"left":"right"})}),Ti=Object(v.a)(pi,2),lr=Ti[0],Ai=Ti[1],Di=Zr(0,function(Ui,Se){!gr&&Yr&&Yr({direction:Ui>Se?"top":"bottom"})}),Ii=Object(v.a)(Di,2),Ji=Ii[0],Wi=Ii[1],wa=Object(g.useState)(0),La=Object(v.a)(wa,2),ha=La[0],oo=La[1],so=Object(g.useState)(0),go=Object(v.a)(so,2),Ma=go[0],ra=go[1],Zi=Object(g.useState)(0),fa=Object(v.a)(Zi,2),la=fa[0],Ko=fa[1],es=Object(g.useState)(0),ts=Object(v.a)(es,2),qi=ts[0],Ho=ts[1],ns=Object(g.useState)(null),ia=Object(v.a)(ns,2),Ki=ia[0],Pa=ia[1],ul=Object(g.useState)(null),Js=Object(v.a)(ul,2),rs=Js[0],xs=Js[1],Ns=Object(g.useState)(0),Us=Object(v.a)(Ns,2),Fs=Us[0],Sl=Us[1],Cl=Object(g.useState)(0),cl=Object(v.a)(Cl,2),Zs=cl[0],js=cl[1],fs=t(new Map),ss=Object(v.a)(fs,2),Tl=ss[0],ws=ss[1],Ss=h(tt,Tl,ha),ps="".concat(je,"-nav-operations-hidden"),ms=0,No=0;gr?Nt?(ms=0,No=Math.max(0,ha-Ki)):(ms=Math.min(0,Ki-ha),No=0):(ms=Math.min(0,rs-Ma),No=0);function Qo(Ui){return Ui<ms?[ms,!1]:Ui>No?[No,!1]:[Ui,!0]}var ls=Object(g.useRef)(),Cs=Object(g.useState)(),gs=Object(v.a)(Cs,2),Bs=gs[0],$s=gs[1];function Ks(){$s(Date.now())}function el(){window.clearTimeout(ls.current)}hr(qr,function(Ui,Se){var qe=!1;function at(Ot,Ct){Ot(function(yt){var Tt=Qo(yt+Ct),Et=Object(v.a)(Tt,2),mt=Et[0],Rt=Et[1];return qe=Rt,mt})}if(gr){if(Ki>=ha)return qe;at(Ai,Ui)}else{if(rs>=Ma)return qe;at(Wi,Se)}return el(),Ks(),qe}),Object(g.useEffect)(function(){return el(),Bs&&(ls.current=window.setTimeout(function(){$s(0)},100)),el},[Bs]);function is(){var Ui=arguments.length>0&&arguments[0]!==void 0?arguments[0]:St,Se=Ss.get(Ui);if(!Se)return;if(gr){var qe=lr;Nt?Se.right<lr?qe=Se.right:Se.right+Se.width>lr+Ki&&(qe=Se.right+Se.width-Ki):Se.left<-lr?qe=-Se.left:Se.left+Se.width>-lr+Ki&&(qe=-(Se.left+Se.width-Ki)),Wi(0),Ai(Qo(qe)[0])}else{var at=Ji;Se.top<-Ji?at=-Se.top:Se.top+Se.height>-Ji+rs&&(at=-(Se.top+Se.height-rs)),Ai(0),Wi(Qo(at)[0])}}var us=E(Ss,{width:Ki,height:rs,left:lr,top:Ji},{width:la,height:qi},{width:Fs,height:Zs},Object(b.a)(Object(b.a)({},st),{},{tabs:tt})),Hs=Object(v.a)(us,2),tl=Hs[0],Al=Hs[1],Ol=tt.map(function(Ui){var Se=Ui.key;return g.createElement(d,{id:pt,prefixCls:je,key:Se,rtl:Nt,tab:Ui,closable:Ui.closable,editable:yn,active:Se===St,tabPosition:Un,tabBarGutter:Sr,renderWrapper:Vr,removeAriaLabel:dn==null?void 0:dn.removeAriaLabel,ref:ci(Se),onClick:function(at){Hr(Se,at)},onRemove:function(){Er(Se)},onFocus:function(){is(Se),Ks(),Nt||(qr.current.scrollLeft=0),qr.current.scrollTop=0}})}),nl=i(function(){var Ui,Se,qe,at,Ot,Ct,yt,Tt,Et,mt=((Ui=qr.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0,Rt=((Se=qr.current)===null||Se===void 0?void 0:Se.offsetHeight)||0,kt=((qe=Ei.current)===null||qe===void 0?void 0:qe.offsetWidth)||0,jt=((at=Ei.current)===null||at===void 0?void 0:at.offsetHeight)||0,Gt=((Ot=Xr.current)===null||Ot===void 0?void 0:Ot.offsetWidth)||0,Bt=((Ct=Xr.current)===null||Ct===void 0?void 0:Ct.offsetHeight)||0;Pa(mt),xs(Rt),Sl(kt),js(jt);var Xt=(((yt=$r.current)===null||yt===void 0?void 0:yt.offsetWidth)||0)-kt,tn=(((Tt=$r.current)===null||Tt===void 0?void 0:Tt.offsetHeight)||0)-jt;oo(Xt),ra(tn);var Tn=(Et=Xr.current)===null||Et===void 0?void 0:Et.className.includes(ps);Ko(Xt-(Tn?0:Gt)),Ho(tn-(Tn?0:Bt)),ws(function(){var Sn=new Map;return tt.forEach(function(Vt){var In=Vt.key,Xn=ci(In).current;Xn&&Sn.set(In,{width:Xn.offsetWidth,height:Xn.offsetHeight,left:Xn.offsetLeft,top:Xn.offsetTop})}),Sn})}),Ws=tt.slice(0,tl),vo=tt.slice(Al+1),Sa=[].concat(Object(a.a)(Ws),Object(a.a)(vo)),eo=Object(g.useState)(),Ca=Object(v.a)(eo,2),Ts=Ca[0],Bl=Ca[1],xo=Ss.get(St),dl=Object(g.useRef)();function Rl(){l.a.cancel(dl.current)}Object(g.useEffect)(function(){var Ui={};return xo&&(gr?(Nt?Ui.right=xo.right:Ui.left=xo.left,Ui.width=xo.width):(Ui.top=xo.top,Ui.height=xo.height)),Rl(),dl.current=l()(function(){Bl(Ui)}),Rl},[xo,gr,Nt]),Object(g.useEffect)(function(){is()},[St,xo,Ss,gr]),Object(g.useEffect)(function(){nl()},[Nt,Sr,St,tt.map(function(Ui){return Ui.key}).join("_")]);var hl=!!Sa.length,cs="".concat(je,"-nav-wrap"),Xs,As,fl,rl;return gr?Nt?(As=lr>0,Xs=lr+Ki<ha):(Xs=lr<0,As=-lr+Ki<ha):(fl=Ji<0,rl=-Ji+rs<Ma),g.createElement("div",{ref:xt,role:"tablist",className:_()("".concat(je,"-nav"),ze),style:lt,onKeyDown:function(){Ks()}},g.createElement(yi,{position:"left",extra:en,prefixCls:je}),g.createElement(r.a,{onResize:nl},g.createElement("div",{className:_()(cs,(At={},Object(I.a)(At,"".concat(cs,"-ping-left"),Xs),Object(I.a)(At,"".concat(cs,"-ping-right"),As),Object(I.a)(At,"".concat(cs,"-ping-top"),fl),Object(I.a)(At,"".concat(cs,"-ping-bottom"),rl),At)),ref:qr},g.createElement(r.a,{onResize:nl},g.createElement("div",{ref:$r,className:"".concat(je,"-nav-list"),style:{transform:"translate(".concat(lr,"px, ").concat(Ji,"px)"),transition:Bs?"none":void 0}},Ol,g.createElement(da,{ref:Ei,prefixCls:je,locale:dn,editable:yn,style:{visibility:hl?"hidden":null}}),g.createElement("div",{className:_()("".concat(je,"-ink-bar"),Object(I.a)({},"".concat(je,"-ink-bar-animated"),It.inkBar)),style:Ts}))))),g.createElement(Wa,Object.assign({},st,{ref:Xr,prefixCls:je,tabs:Sa,className:!hl&&ps})),g.createElement(yi,{position:"right",extra:en,prefixCls:je}))}var Bi=g.forwardRef(aa);function ba(st){var xt=st.id,At=st.activeKey,ht=st.animated,je=st.tabPosition,tt=st.rtl,ze=st.destroyInactiveTabPane,lt=g.useContext(Yo),pt=lt.prefixCls,It=lt.tabs,St=ht.tabPane,Nt=It.findIndex(function(en){return en.key===At});return g.createElement("div",{className:_()("".concat(pt,"-content-holder"))},g.createElement("div",{className:_()("".concat(pt,"-content"),"".concat(pt,"-content-").concat(je),Object(I.a)({},"".concat(pt,"-content-animated"),St)),style:Nt&&St?Object(I.a)({},tt?"marginRight":"marginLeft","-".concat(Nt,"00%")):null},It.map(function(en){return g.cloneElement(en.node,{key:en.key,prefixCls:pt,tabKey:en.key,id:xt,animated:St,active:en.key===At,destroyInactiveTabPane:ze})})))}function Ro(st){var xt=st.prefixCls,At=st.forceRender,ht=st.className,je=st.style,tt=st.id,ze=st.active,lt=st.animated,pt=st.destroyInactiveTabPane,It=st.tabKey,St=st.children,Nt=g.useState(At),en=Object(v.a)(Nt,2),yn=en[0],dn=en[1];g.useEffect(function(){ze?dn(!0):pt&&dn(!1)},[ze,pt]);var Un={};return ze||(lt?(Un.visibility="hidden",Un.height=0,Un.overflowY="hidden"):Un.display="none"),g.createElement("div",{id:tt&&"".concat(tt,"-panel-").concat(It),role:"tabpanel",tabIndex:ze?0:-1,"aria-labelledby":tt&&"".concat(tt,"-tab-").concat(It),"aria-hidden":!ze,style:Object(b.a)(Object(b.a)({},Un),je),className:_()("".concat(xt,"-tabpane"),ze&&"".concat(xt,"-tabpane-active"),ht)},(ze||yn||At)&&St)}var Xa=0;function Ps(st){return Object(p.a)(st).map(function(xt){if(g.isValidElement(xt)){var At=xt.key!==void 0?String(xt.key):void 0;return Object(b.a)(Object(b.a)({key:At},xt.props),{},{node:xt})}return null}).filter(function(xt){return xt})}function za(st,xt){var At,ht=st.id,je=st.prefixCls,tt=je===void 0?"rc-tabs":je,ze=st.className,lt=st.children,pt=st.direction,It=st.activeKey,St=st.defaultActiveKey,Nt=st.editable,en=st.animated,yn=st.tabPosition,dn=yn===void 0?"top":yn,Un=st.tabBarGutter,Sr=st.tabBarStyle,Vr=st.tabBarExtraContent,Hr=st.locale,Yr=st.moreIcon,qr=st.moreTransitionName,$r=st.destroyInactiveTabPane,Xr=st.renderTabBar,Ei=st.onChange,li=st.onTabClick,sa=st.onTabScroll,ci=Object(T.a)(st,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Er=Ps(lt),gr=pt==="rtl",pi;en===!1?pi={inkBar:!1,tabPane:!1}:pi=Object(b.a)({inkBar:!0,tabPane:!1},en!==!0?en:null);var Ti=Object(g.useState)(!1),lr=Object(v.a)(Ti,2),Ai=lr[0],Di=lr[1];Object(g.useEffect)(function(){Di(Dn())},[]);var Ii=Object(e.a)(function(){var qi;return(qi=Er[0])===null||qi===void 0?void 0:qi.key},{value:It,defaultValue:St}),Ji=Object(v.a)(Ii,2),Wi=Ji[0],wa=Ji[1],La=Object(g.useState)(function(){return Er.findIndex(function(qi){return qi.key===Wi})}),ha=Object(v.a)(La,2),oo=ha[0],so=ha[1];Object(g.useEffect)(function(){var qi=Er.findIndex(function(ns){return ns.key===Wi});if(qi===-1){var Ho;qi=Math.max(0,Math.min(oo,Er.length-1)),wa((Ho=Er[qi])===null||Ho===void 0?void 0:Ho.key)}so(qi)},[Er.map(function(qi){return qi.key}).join("_"),Wi,oo]);var go=Object(e.a)(null,{value:ht}),Ma=Object(v.a)(go,2),ra=Ma[0],Zi=Ma[1],fa=dn;Ai&&!["left","right"].includes(dn)&&(fa="top"),Object(g.useEffect)(function(){ht||(Zi("rc-tabs-".concat(Xa)),Xa+=1)},[]);function la(qi,Ho){li==null||li(qi,Ho),wa(qi),Ei==null||Ei(qi)}var Ko={id:ra,activeKey:Wi,animated:pi,tabPosition:fa,rtl:gr,mobile:Ai},es,ts=Object(b.a)(Object(b.a)({},Ko),{},{editable:Nt,locale:Hr,moreIcon:Yr,moreTransitionName:qr,tabBarGutter:Un,onTabClick:la,onTabScroll:sa,extra:Vr,style:Sr,panes:lt});return Xr?es=Xr(ts,Bi):es=g.createElement(Bi,Object.assign({},ts)),g.createElement(Yo.Provider,{value:{tabs:Er,prefixCls:tt}},g.createElement("div",Object.assign({ref:xt,id:ht,className:_()(tt,"".concat(tt,"-").concat(fa),(At={},Object(I.a)(At,"".concat(tt,"-mobile"),Ai),Object(I.a)(At,"".concat(tt,"-editable"),Nt),Object(I.a)(At,"".concat(tt,"-rtl"),gr),At),ze)},ci),es,g.createElement(ba,Object.assign({destroyInactiveTabPane:$r},Ko,{animated:pi}))))}var ka=g.forwardRef(za);ka.TabPane=Ro;var Po=ka,Es=W.b=Po},kPWJ:function(j,W,y){j.exports=y.p+"static/question.cb52bef9.gif"},kPYp:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(j,W,y){},"kaH+":function(j,W,y){"use strict";var I=y("+L6B"),v=y("2/Rp"),T=y("tJVT"),b=y("q1tI"),g=y.n(b),s=y("UZu5"),_=y.n(s),p=y("dhSg"),e=y("rLCj"),a=y("dF/Y"),n=y("4i/N");W.a=function(){var l=Object(b.useState)(""),r=Object(T.a)(l,2),i=r[0],t=r[1],o=Object(b.useState)(0),c=Object(T.a)(o,2),d=c[0],f=c[1],h=Object(b.useRef)("");Object(b.useEffect)(function(){var S=p.a.subscribe("preview-image",function(D){t(D),document.body.style.overflow="hidden"});return S},[]),Object(b.useEffect)(function(){return document.addEventListener("keydown",u),function(){document.removeEventListener("keydown",u)}},[]),Object(b.useEffect)(function(){h.current=i},[i]);function u(S){S.keyCode==27&&h.current&&E()}function E(){document.body.style.overflow="auto",t("")}function x(){f(d+90)}var O=Object(b.useRef)(),C=Object(b.useRef)(),w=function(D){(D.nativeEvent.target===O.current||D.nativeEvent.target===C.current)&&E()};return g.a.createElement(b.Fragment,null,i?g.a.createElement("div",{className:"image-preview-container",ref:O,onClick:w},g.a.createElement("div",{className:"button-group"},g.a.createElement(v.a,{onClick:x},"\u65CB\u8F6C",g.a.createElement(e.a,null)),g.a.createElement(v.a,{href:i},"\u4E0B\u8F7D",g.a.createElement(a.a,null)),g.a.createElement(v.a,{onClick:E},"\u5173\u95ED",g.a.createElement(n.a,null))),g.a.createElement("div",{className:"preview-wrp-group",ref:C},g.a.createElement("img",{className:"image-preview",src:i,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(d,"deg)")}}))):null)}},l2Kq:function(j,W,y){j.exports=y.p+"static/match_ad.24dc22fd.jpg"},l9Ud:function(j,W,y){j.exports={flex_box_center:"flex_box_center___1siF3",flex_space_between:"flex_space_between___1LIBe",flex_box_vertical_center:"flex_box_vertical_center___1SENm",flex_box_center_end:"flex_box_center_end___aKcm8",flex_box_column:"flex_box_column___3xSXM",wrap:"wrap___1JpHn",list:"list___eeGJr",page:"page___2LktT"}},lNSK:function(j,W,y){"use strict";function I(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(dt){return typeof dt}:I=function(dt){return dt&&typeof Symbol=="function"&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt},I(ne)}Object.defineProperty(W,"__esModule",{value:!0}),W.deflateInit=_e,W.deflateInit2=Be,W.deflateReset=Ve,W.deflateResetKeep=Ze,W.deflateSetHeader=Fe,W.deflate=Ae,W.deflateEnd=fe,W.deflateSetDictionary=ke,W.deflateInfo=W.Z_DEFLATED=W.Z_UNKNOWN=W.Z_DEFAULT_STRATEGY=W.Z_FIXED=W.Z_RLE=W.Z_HUFFMAN_ONLY=W.Z_FILTERED=W.Z_DEFAULT_COMPRESSION=W.Z_BUF_ERROR=W.Z_DATA_ERROR=W.Z_STREAM_ERROR=W.Z_STREAM_END=W.Z_OK=W.Z_BLOCK=W.Z_FINISH=W.Z_FULL_FLUSH=W.Z_PARTIAL_FLUSH=W.Z_NO_FLUSH=void 0;var v=e(y("6BzB")),T=e(y("c5fP")),b=_(y("xlC8")),g=_(y("QV2g")),s=_(y("xSIq"));function _(ne){return ne&&ne.__esModule?ne:{default:ne}}function p(){if(typeof WeakMap!="function")return null;var ne=new WeakMap;return p=function(){return ne},ne}function e(ne){if(ne&&ne.__esModule)return ne;if(ne===null||I(ne)!=="object"&&typeof ne!="function")return{default:ne};var Qe=p();if(Qe&&Qe.has(ne))return Qe.get(ne);var dt={},Ke=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var et in ne)if(Object.prototype.hasOwnProperty.call(ne,et)){var rt=Ke?Object.getOwnPropertyDescriptor(ne,et):null;rt&&(rt.get||rt.set)?Object.defineProperty(dt,et,rt):dt[et]=ne[et]}return dt.default=ne,Qe&&Qe.set(ne,dt),dt}var a=0;W.Z_NO_FLUSH=a;var n=1;W.Z_PARTIAL_FLUSH=n;var l=3;W.Z_FULL_FLUSH=l;var r=4;W.Z_FINISH=r;var i=5;W.Z_BLOCK=i;var t=0;W.Z_OK=t;var o=1;W.Z_STREAM_END=o;var c=-2;W.Z_STREAM_ERROR=c;var d=-3;W.Z_DATA_ERROR=d;var f=-5;W.Z_BUF_ERROR=f;var h=-1;W.Z_DEFAULT_COMPRESSION=h;var u=1;W.Z_FILTERED=u;var E=2;W.Z_HUFFMAN_ONLY=E;var x=3;W.Z_RLE=x;var O=4;W.Z_FIXED=O;var C=0;W.Z_DEFAULT_STRATEGY=C;var w=2;W.Z_UNKNOWN=w;var S=8;W.Z_DEFLATED=S;var D=9,R=15,P=8,N=29,M=256,z=M+1+N,X=30,k=19,F=2*z+1,U=15,L=3,B=258,Z=B+L+1,re=32,me=42,Ee=69,De=73,te=91,Ce=103,we=113,ce=666,le=1,oe=2,xe=3,q=4,se=3;function Ne(ne,Qe){return ne.msg=s.default[Qe],Qe}function de(ne){return(ne<<1)-(ne>4?9:0)}function $(ne){for(var Qe=ne.length;--Qe>=0;)ne[Qe]=0}function Q(ne){var Qe=ne.state,dt=Qe.pending;if(dt>ne.avail_out&&(dt=ne.avail_out),dt===0)return;v.arraySet(ne.output,Qe.pending_buf,Qe.pending_out,dt,ne.next_out),ne.next_out+=dt,Qe.pending_out+=dt,ne.total_out+=dt,ne.avail_out-=dt,Qe.pending-=dt,Qe.pending===0&&(Qe.pending_out=0)}function Y(ne,Qe){T._tr_flush_block(ne,ne.block_start>=0?ne.block_start:-1,ne.strstart-ne.block_start,Qe),ne.block_start=ne.strstart,Q(ne.strm)}function ue(ne,Qe){ne.pending_buf[ne.pending++]=Qe}function ae(ne,Qe){ne.pending_buf[ne.pending++]=Qe>>>8&255,ne.pending_buf[ne.pending++]=Qe&255}function be(ne,Qe,dt,Ke){var et=ne.avail_in;return et>Ke&&(et=Ke),et===0?0:(ne.avail_in-=et,v.arraySet(Qe,ne.input,ne.next_in,et,dt),ne.state.wrap===1?ne.adler=(0,b.default)(ne.adler,Qe,et,dt):ne.state.wrap===2&&(ne.adler=(0,g.default)(ne.adler,Qe,et,dt)),ne.next_in+=et,ne.total_in+=et,et)}function Ie(ne,Qe){var dt=ne.max_chain_length,Ke=ne.strstart,et,rt,bt=ne.prev_length,ut=ne.nice_match,ot=ne.strstart>ne.w_size-Z?ne.strstart-(ne.w_size-Z):0,Ue=ne.window,We=ne.w_mask,ft=ne.prev,nt=ne.strstart+B,Dt=Ue[Ke+bt-1],Kt=Ue[Ke+bt];ne.prev_length>=ne.good_match&&(dt>>=2),ut>ne.lookahead&&(ut=ne.lookahead);do{if(et=Qe,Ue[et+bt]!==Kt||Ue[et+bt-1]!==Dt||Ue[et]!==Ue[Ke]||Ue[++et]!==Ue[Ke+1])continue;Ke+=2,et++;do;while(Ue[++Ke]===Ue[++et]&&Ue[++Ke]===Ue[++et]&&Ue[++Ke]===Ue[++et]&&Ue[++Ke]===Ue[++et]&&Ue[++Ke]===Ue[++et]&&Ue[++Ke]===Ue[++et]&&Ue[++Ke]===Ue[++et]&&Ue[++Ke]===Ue[++et]&&Ke<nt);if(rt=B-(nt-Ke),Ke=nt-B,rt>bt){if(ne.match_start=Qe,bt=rt,rt>=ut)break;Dt=Ue[Ke+bt-1],Kt=Ue[Ke+bt]}}while((Qe=ft[Qe&We])>ot&&--dt!==0);return bt<=ne.lookahead?bt:ne.lookahead}function pe(ne){var Qe=ne.w_size,dt,Ke,et,rt,bt;do{if(rt=ne.window_size-ne.lookahead-ne.strstart,ne.strstart>=Qe+(Qe-Z)){v.arraySet(ne.window,ne.window,Qe,Qe,0),ne.match_start-=Qe,ne.strstart-=Qe,ne.block_start-=Qe,Ke=ne.hash_size,dt=Ke;do et=ne.head[--dt],ne.head[dt]=et>=Qe?et-Qe:0;while(--Ke);Ke=Qe,dt=Ke;do et=ne.prev[--dt],ne.prev[dt]=et>=Qe?et-Qe:0;while(--Ke);rt+=Qe}if(ne.strm.avail_in===0)break;if(Ke=be(ne.strm,ne.window,ne.strstart+ne.lookahead,rt),ne.lookahead+=Ke,ne.lookahead+ne.insert>=L)for(bt=ne.strstart-ne.insert,ne.ins_h=ne.window[bt],ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[bt+1])&ne.hash_mask;ne.insert&&!(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[bt+L-1])&ne.hash_mask,ne.prev[bt&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=bt,bt++,ne.insert--,ne.lookahead+ne.insert<L););}while(ne.lookahead<Z&&ne.strm.avail_in!==0)}function Le(ne,Qe){var dt=65535;for(dt>ne.pending_buf_size-5&&(dt=ne.pending_buf_size-5);;){if(ne.lookahead<=1){if(pe(ne),ne.lookahead===0&&Qe===a)return le;if(ne.lookahead===0)break}ne.strstart+=ne.lookahead,ne.lookahead=0;var Ke=ne.block_start+dt;if((ne.strstart===0||ne.strstart>=Ke)&&(ne.lookahead=ne.strstart-Ke,ne.strstart=Ke,Y(ne,!1),ne.strm.avail_out===0))return le;if(ne.strstart-ne.block_start>=ne.w_size-Z&&(Y(ne,!1),ne.strm.avail_out===0))return le}return ne.insert=0,Qe===r?(Y(ne,!0),ne.strm.avail_out===0?xe:q):(ne.strstart>ne.block_start&&(Y(ne,!1),ne.strm.avail_out===0),le)}function ve(ne,Qe){for(var dt,Ke;;){if(ne.lookahead<Z){if(pe(ne),ne.lookahead<Z&&Qe===a)return le;if(ne.lookahead===0)break}if(dt=0,ne.lookahead>=L&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+L-1])&ne.hash_mask,dt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),dt!==0&&ne.strstart-dt<=ne.w_size-Z&&(ne.match_length=Ie(ne,dt)),ne.match_length>=L)if(Ke=T._tr_tally(ne,ne.strstart-ne.match_start,ne.match_length-L),ne.lookahead-=ne.match_length,ne.match_length<=ne.max_lazy_match&&ne.lookahead>=L){ne.match_length--;do ne.strstart++,ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+L-1])&ne.hash_mask,dt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart;while(--ne.match_length!==0);ne.strstart++}else ne.strstart+=ne.match_length,ne.match_length=0,ne.ins_h=ne.window[ne.strstart],ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+1])&ne.hash_mask;else Ke=T._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++;if(Ke&&(Y(ne,!1),ne.strm.avail_out===0))return le}return ne.insert=ne.strstart<L-1?ne.strstart:L-1,Qe===r?(Y(ne,!0),ne.strm.avail_out===0?xe:q):ne.last_lit&&(Y(ne,!1),ne.strm.avail_out===0)?le:oe}function Xe(ne,Qe){for(var dt,Ke,et;;){if(ne.lookahead<Z){if(pe(ne),ne.lookahead<Z&&Qe===a)return le;if(ne.lookahead===0)break}if(dt=0,ne.lookahead>=L&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+L-1])&ne.hash_mask,dt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),ne.prev_length=ne.match_length,ne.prev_match=ne.match_start,ne.match_length=L-1,dt!==0&&ne.prev_length<ne.max_lazy_match&&ne.strstart-dt<=ne.w_size-Z&&(ne.match_length=Ie(ne,dt),ne.match_length<=5&&(ne.strategy===u||ne.match_length===L&&ne.strstart-ne.match_start>4096)&&(ne.match_length=L-1)),ne.prev_length>=L&&ne.match_length<=ne.prev_length){et=ne.strstart+ne.lookahead-L,Ke=T._tr_tally(ne,ne.strstart-1-ne.prev_match,ne.prev_length-L),ne.lookahead-=ne.prev_length-1,ne.prev_length-=2;do++ne.strstart<=et&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+L-1])&ne.hash_mask,dt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart);while(--ne.prev_length!==0);if(ne.match_available=0,ne.match_length=L-1,ne.strstart++,Ke&&(Y(ne,!1),ne.strm.avail_out===0))return le}else if(ne.match_available){if(Ke=T._tr_tally(ne,0,ne.window[ne.strstart-1]),Ke&&Y(ne,!1),ne.strstart++,ne.lookahead--,ne.strm.avail_out===0)return le}else ne.match_available=1,ne.strstart++,ne.lookahead--}return ne.match_available&&(Ke=T._tr_tally(ne,0,ne.window[ne.strstart-1]),ne.match_available=0),ne.insert=ne.strstart<L-1?ne.strstart:L-1,Qe===r?(Y(ne,!0),ne.strm.avail_out===0?xe:q):ne.last_lit&&(Y(ne,!1),ne.strm.avail_out===0)?le:oe}function $e(ne,Qe){for(var dt,Ke,et,rt,bt=ne.window;;){if(ne.lookahead<=B){if(pe(ne),ne.lookahead<=B&&Qe===a)return le;if(ne.lookahead===0)break}if(ne.match_length=0,ne.lookahead>=L&&ne.strstart>0&&(et=ne.strstart-1,Ke=bt[et],Ke===bt[++et]&&Ke===bt[++et]&&Ke===bt[++et])){rt=ne.strstart+B;do;while(Ke===bt[++et]&&Ke===bt[++et]&&Ke===bt[++et]&&Ke===bt[++et]&&Ke===bt[++et]&&Ke===bt[++et]&&Ke===bt[++et]&&Ke===bt[++et]&&et<rt);ne.match_length=B-(rt-et),ne.match_length>ne.lookahead&&(ne.match_length=ne.lookahead)}if(ne.match_length>=L?(dt=T._tr_tally(ne,1,ne.match_length-L),ne.lookahead-=ne.match_length,ne.strstart+=ne.match_length,ne.match_length=0):(dt=T._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++),dt&&(Y(ne,!1),ne.strm.avail_out===0))return le}return ne.insert=0,Qe===r?(Y(ne,!0),ne.strm.avail_out===0?xe:q):ne.last_lit&&(Y(ne,!1),ne.strm.avail_out===0)?le:oe}function Ge(ne,Qe){for(var dt;;){if(ne.lookahead===0&&(pe(ne),ne.lookahead===0)){if(Qe===a)return le;break}if(ne.match_length=0,dt=T._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++,dt&&(Y(ne,!1),ne.strm.avail_out===0))return le}return ne.insert=0,Qe===r?(Y(ne,!0),ne.strm.avail_out===0?xe:q):ne.last_lit&&(Y(ne,!1),ne.strm.avail_out===0)?le:oe}function Me(ne,Qe,dt,Ke,et){this.good_length=ne,this.max_lazy=Qe,this.nice_length=dt,this.max_chain=Ke,this.func=et}var gt;gt=[new Me(0,0,0,0,Le),new Me(4,4,8,4,ve),new Me(4,5,16,8,ve),new Me(4,6,32,32,ve),new Me(4,4,16,16,Xe),new Me(8,16,32,32,Xe),new Me(8,16,128,128,Xe),new Me(8,32,128,256,Xe),new Me(32,128,258,1024,Xe),new Me(32,258,258,4096,Xe)];function Te(ne){ne.window_size=2*ne.w_size,$(ne.head),ne.max_lazy_match=gt[ne.level].max_lazy,ne.good_match=gt[ne.level].good_length,ne.nice_match=gt[ne.level].nice_length,ne.max_chain_length=gt[ne.level].max_chain,ne.strstart=0,ne.block_start=0,ne.lookahead=0,ne.insert=0,ne.match_length=ne.prev_length=L-1,ne.match_available=0,ne.ins_h=0}function Ye(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=S,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new v.Buf16(F*2),this.dyn_dtree=new v.Buf16((2*X+1)*2),this.bl_tree=new v.Buf16((2*k+1)*2),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(U+1),this.heap=new v.Buf16(2*z+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(2*z+1),$(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ze(ne){var Qe;return!ne||!ne.state?Ne(ne,c):(ne.total_in=ne.total_out=0,ne.data_type=w,Qe=ne.state,Qe.pending=0,Qe.pending_out=0,Qe.wrap<0&&(Qe.wrap=-Qe.wrap),Qe.status=Qe.wrap?me:we,ne.adler=Qe.wrap===2?0:1,Qe.last_flush=a,T._tr_init(Qe),t)}function Ve(ne){var Qe=Ze(ne);return Qe===t&&Te(ne.state),Qe}function Fe(ne,Qe){return!ne||!ne.state||ne.state.wrap!==2?c:(ne.state.gzhead=Qe,t)}function Be(ne,Qe,dt,Ke,et,rt){if(!ne)return c;var bt=1;if(Qe===h&&(Qe=6),Ke<0?(bt=0,Ke=-Ke):Ke>15&&(bt=2,Ke-=16),et<1||et>D||dt!==S||Ke<8||Ke>15||Qe<0||Qe>9||rt<0||rt>O)return Ne(ne,c);Ke===8&&(Ke=9);var ut=new Ye;return ne.state=ut,ut.strm=ne,ut.wrap=bt,ut.gzhead=null,ut.w_bits=Ke,ut.w_size=1<<ut.w_bits,ut.w_mask=ut.w_size-1,ut.hash_bits=et+7,ut.hash_size=1<<ut.hash_bits,ut.hash_mask=ut.hash_size-1,ut.hash_shift=~~((ut.hash_bits+L-1)/L),ut.window=new v.Buf8(ut.w_size*2),ut.head=new v.Buf16(ut.hash_size),ut.prev=new v.Buf16(ut.w_size),ut.lit_bufsize=1<<et+6,ut.pending_buf_size=ut.lit_bufsize*4,ut.pending_buf=new v.Buf8(ut.pending_buf_size),ut.d_buf=1*ut.lit_bufsize,ut.l_buf=(1+2)*ut.lit_bufsize,ut.level=Qe,ut.strategy=rt,ut.method=dt,Ve(ne)}function _e(ne,Qe){return Be(ne,Qe,S,R,P,C)}function Ae(ne,Qe){var dt,Ke,et,rt;if(!ne||!ne.state||Qe>i||Qe<0)return ne?Ne(ne,c):c;if(Ke=ne.state,!ne.output||!ne.input&&ne.avail_in!==0||Ke.status===ce&&Qe!==r)return Ne(ne,ne.avail_out===0?f:c);if(Ke.strm=ne,dt=Ke.last_flush,Ke.last_flush=Qe,Ke.status===me)if(Ke.wrap===2)ne.adler=0,ue(Ke,31),ue(Ke,139),ue(Ke,8),Ke.gzhead?(ue(Ke,(Ke.gzhead.text?1:0)+(Ke.gzhead.hcrc?2:0)+(Ke.gzhead.extra?4:0)+(Ke.gzhead.name?8:0)+(Ke.gzhead.comment?16:0)),ue(Ke,Ke.gzhead.time&255),ue(Ke,Ke.gzhead.time>>8&255),ue(Ke,Ke.gzhead.time>>16&255),ue(Ke,Ke.gzhead.time>>24&255),ue(Ke,Ke.level===9?2:Ke.strategy>=E||Ke.level<2?4:0),ue(Ke,Ke.gzhead.os&255),Ke.gzhead.extra&&Ke.gzhead.extra.length&&(ue(Ke,Ke.gzhead.extra.length&255),ue(Ke,Ke.gzhead.extra.length>>8&255)),Ke.gzhead.hcrc&&(ne.adler=(0,g.default)(ne.adler,Ke.pending_buf,Ke.pending,0)),Ke.gzindex=0,Ke.status=Ee):(ue(Ke,0),ue(Ke,0),ue(Ke,0),ue(Ke,0),ue(Ke,0),ue(Ke,Ke.level===9?2:Ke.strategy>=E||Ke.level<2?4:0),ue(Ke,se),Ke.status=we);else{var bt=S+(Ke.w_bits-8<<4)<<8,ut=-1;Ke.strategy>=E||Ke.level<2?ut=0:Ke.level<6?ut=1:Ke.level===6?ut=2:ut=3,bt|=ut<<6,Ke.strstart!==0&&(bt|=re),bt+=31-bt%31,Ke.status=we,ae(Ke,bt),Ke.strstart!==0&&(ae(Ke,ne.adler>>>16),ae(Ke,ne.adler&65535)),ne.adler=1}if(Ke.status===Ee)if(Ke.gzhead.extra){for(et=Ke.pending;Ke.gzindex<(Ke.gzhead.extra.length&65535)&&!(Ke.pending===Ke.pending_buf_size&&(Ke.gzhead.hcrc&&Ke.pending>et&&(ne.adler=(0,g.default)(ne.adler,Ke.pending_buf,Ke.pending-et,et)),Q(ne),et=Ke.pending,Ke.pending===Ke.pending_buf_size));)ue(Ke,Ke.gzhead.extra[Ke.gzindex]&255),Ke.gzindex++;Ke.gzhead.hcrc&&Ke.pending>et&&(ne.adler=(0,g.default)(ne.adler,Ke.pending_buf,Ke.pending-et,et)),Ke.gzindex===Ke.gzhead.extra.length&&(Ke.gzindex=0,Ke.status=De)}else Ke.status=De;if(Ke.status===De)if(Ke.gzhead.name){et=Ke.pending;do{if(Ke.pending===Ke.pending_buf_size&&(Ke.gzhead.hcrc&&Ke.pending>et&&(ne.adler=(0,g.default)(ne.adler,Ke.pending_buf,Ke.pending-et,et)),Q(ne),et=Ke.pending,Ke.pending===Ke.pending_buf_size)){rt=1;break}Ke.gzindex<Ke.gzhead.name.length?rt=Ke.gzhead.name.charCodeAt(Ke.gzindex++)&255:rt=0,ue(Ke,rt)}while(rt!==0);Ke.gzhead.hcrc&&Ke.pending>et&&(ne.adler=(0,g.default)(ne.adler,Ke.pending_buf,Ke.pending-et,et)),rt===0&&(Ke.gzindex=0,Ke.status=te)}else Ke.status=te;if(Ke.status===te)if(Ke.gzhead.comment){et=Ke.pending;do{if(Ke.pending===Ke.pending_buf_size&&(Ke.gzhead.hcrc&&Ke.pending>et&&(ne.adler=(0,g.default)(ne.adler,Ke.pending_buf,Ke.pending-et,et)),Q(ne),et=Ke.pending,Ke.pending===Ke.pending_buf_size)){rt=1;break}Ke.gzindex<Ke.gzhead.comment.length?rt=Ke.gzhead.comment.charCodeAt(Ke.gzindex++)&255:rt=0,ue(Ke,rt)}while(rt!==0);Ke.gzhead.hcrc&&Ke.pending>et&&(ne.adler=(0,g.default)(ne.adler,Ke.pending_buf,Ke.pending-et,et)),rt===0&&(Ke.status=Ce)}else Ke.status=Ce;if(Ke.status===Ce&&(Ke.gzhead.hcrc?(Ke.pending+2>Ke.pending_buf_size&&Q(ne),Ke.pending+2<=Ke.pending_buf_size&&(ue(Ke,ne.adler&255),ue(Ke,ne.adler>>8&255),ne.adler=0,Ke.status=we)):Ke.status=we),Ke.pending!==0){if(Q(ne),ne.avail_out===0)return Ke.last_flush=-1,t}else if(ne.avail_in===0&&de(Qe)<=de(dt)&&Qe!==r)return Ne(ne,f);if(Ke.status===ce&&ne.avail_in!==0)return Ne(ne,f);if(ne.avail_in!==0||Ke.lookahead!==0||Qe!==a&&Ke.status!==ce){var ot=Ke.strategy===E?Ge(Ke,Qe):Ke.strategy===x?$e(Ke,Qe):gt[Ke.level].func(Ke,Qe);if((ot===xe||ot===q)&&(Ke.status=ce),ot===le||ot===xe)return ne.avail_out===0&&(Ke.last_flush=-1),t;if(ot===oe&&(Qe===n?T._tr_align(Ke):Qe!==i&&(T._tr_stored_block(Ke,0,0,!1),Qe===l&&($(Ke.head),Ke.lookahead===0&&(Ke.strstart=0,Ke.block_start=0,Ke.insert=0))),Q(ne),ne.avail_out===0))return Ke.last_flush=-1,t}return Qe!==r?t:Ke.wrap<=0?o:(Ke.wrap===2?(ue(Ke,ne.adler&255),ue(Ke,ne.adler>>8&255),ue(Ke,ne.adler>>16&255),ue(Ke,ne.adler>>24&255),ue(Ke,ne.total_in&255),ue(Ke,ne.total_in>>8&255),ue(Ke,ne.total_in>>16&255),ue(Ke,ne.total_in>>24&255)):(ae(Ke,ne.adler>>>16),ae(Ke,ne.adler&65535)),Q(ne),Ke.wrap>0&&(Ke.wrap=-Ke.wrap),Ke.pending!==0?t:o)}function fe(ne){var Qe;return!ne||!ne.state?c:(Qe=ne.state.status,Qe!==me&&Qe!==Ee&&Qe!==De&&Qe!==te&&Qe!==Ce&&Qe!==we&&Qe!==ce?Ne(ne,c):(ne.state=null,Qe===we?Ne(ne,d):t))}function ke(ne,Qe){var dt=Qe.length,Ke,et,rt,bt,ut,ot,Ue,We;if(!ne||!ne.state)return c;if(Ke=ne.state,bt=Ke.wrap,bt===2||bt===1&&Ke.status!==me||Ke.lookahead)return c;for(bt===1&&(ne.adler=(0,b.default)(ne.adler,Qe,dt,0)),Ke.wrap=0,dt>=Ke.w_size&&(bt===0&&($(Ke.head),Ke.strstart=0,Ke.block_start=0,Ke.insert=0),We=new v.Buf8(Ke.w_size),v.arraySet(We,Qe,dt-Ke.w_size,Ke.w_size,0),Qe=We,dt=Ke.w_size),ut=ne.avail_in,ot=ne.next_in,Ue=ne.input,ne.avail_in=dt,ne.next_in=0,ne.input=Qe,pe(Ke);Ke.lookahead>=L;){et=Ke.strstart,rt=Ke.lookahead-(L-1);do Ke.ins_h=(Ke.ins_h<<Ke.hash_shift^Ke.window[et+L-1])&Ke.hash_mask,Ke.prev[et&Ke.w_mask]=Ke.head[Ke.ins_h],Ke.head[Ke.ins_h]=et,et++;while(--rt);Ke.strstart=et,Ke.lookahead=L-1,pe(Ke)}return Ke.strstart+=Ke.lookahead,Ke.block_start=Ke.strstart,Ke.insert=Ke.lookahead,Ke.lookahead=0,Ke.match_length=Ke.prev_length=L-1,Ke.match_available=0,ne.next_in=ot,ne.input=Ue,ne.avail_in=ut,Ke.wrap=bt,t}var Je="pako deflate (from Nodeca project)";W.deflateInfo=Je},lOMy:function(j,W,y){},lPiR:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(v){var T=I,b=T.lib,g=b.WordArray,s=b.Hasher,_=T.algo,p=[],e=[];(function(){function l(o){for(var c=v.sqrt(o),d=2;d<=c;d++)if(!(o%d))return!1;return!0}function r(o){return(o-(o|0))*4294967296|0}for(var i=2,t=0;t<64;)l(i)&&(t<8&&(p[t]=r(v.pow(i,1/2))),e[t]=r(v.pow(i,1/3)),t++),i++})();var a=[],n=_.SHA256=s.extend({_doReset:function(){this._hash=new g.init(p.slice(0))},_doProcessBlock:function(l,r){for(var i=this._hash.words,t=i[0],o=i[1],c=i[2],d=i[3],f=i[4],h=i[5],u=i[6],E=i[7],x=0;x<64;x++){if(x<16)a[x]=l[r+x]|0;else{var O=a[x-15],C=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,w=a[x-2],S=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;a[x]=C+a[x-7]+S+a[x-16]}var D=f&h^~f&u,R=t&o^t&c^o&c,P=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),N=(f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25),M=E+N+D+e[x]+a[x],z=P+R;E=u,u=h,h=f,f=d+M|0,d=c,c=o,o=t,t=M+z|0}i[0]=i[0]+t|0,i[1]=i[1]+o|0,i[2]=i[2]+c|0,i[3]=i[3]+d|0,i[4]=i[4]+f|0,i[5]=i[5]+h|0,i[6]=i[6]+u|0,i[7]=i[7]+E|0},_doFinalize:function(){var l=this._data,r=l.words,i=this._nDataBytes*8,t=l.sigBytes*8;return r[t>>>5]|=128<<24-t%32,r[(t+64>>>9<<4)+14]=v.floor(i/4294967296),r[(t+64>>>9<<4)+15]=i,l.sigBytes=r.length*4,this._process(),this._hash},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l}});T.SHA256=s._createHelper(n),T.HmacSHA256=s._createHmacHelper(n)}(Math),I.SHA256})},lZu9:function(j,W,y){(function(I){I(y("VrN/"),y("1eCo"),y("8EBN"))})(function(I){"use strict";I.defineMode("markdown",function(v,T){var b=I.getMode(v,"text/html"),g=b.name=="null";function s(U){if(I.findModeByName){var L=I.findModeByName(U);L&&(U=L.mime||L.mimes[0])}var B=I.getMode(v,U);return B.name=="null"?null:B}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var _={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var p in _)_.hasOwnProperty(p)&&T.tokenTypeOverrides[p]&&(_[p]=T.tokenTypeOverrides[p]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,a=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,n=/^\[(x| )\](?=\s)/i,l=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,r=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,o=/^\s*\[[^\]]+?\]:.*$/,c=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,d=" ";function f(U,L,B){return L.f=L.inline=B,B(U,L)}function h(U,L,B){return L.f=L.block=B,B(U,L)}function u(U){return!U||!/\S/.test(U.string)}function E(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==O){var L=g;if(!L){var B=I.innerMode(b,U.htmlState);L=B.mode.name=="xml"&&B.state.tagStart===null&&!B.state.context&&B.state.tokenize.isInText}L&&(U.f=D,U.block=x,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function x(U,L){var B=U.column()===L.indentation,Z=u(L.prevLine.stream),re=L.indentedCode,me=L.prevLine.hr,Ee=L.list!==!1,De=(L.listStack[L.listStack.length-1]||0)+3;L.indentedCode=!1;var te=L.indentation;if(L.indentationDiff===null&&(L.indentationDiff=L.indentation,Ee)){for(L.list=null;te<L.listStack[L.listStack.length-1];)L.listStack.pop(),L.listStack.length?L.indentation=L.listStack[L.listStack.length-1]:L.list=!1;L.list!==!1&&(L.indentationDiff=te-L.listStack[L.listStack.length-1])}var Ce=!Z&&!me&&!L.prevLine.header&&(!Ee||!re)&&!L.prevLine.fencedCodeEnd,we=(L.list===!1||me||Z)&&L.indentation<=De&&U.match(e),ce=null;if(L.indentationDiff>=4&&(re||L.prevLine.fencedCodeEnd||L.prevLine.header||Z))return U.skipToEnd(),L.indentedCode=!0,_.code;if(U.eatSpace())return null;if(B&&L.indentation<=De&&(ce=U.match(l))&&ce[1].length<=6)return L.quote=0,L.header=ce[1].length,L.thisLine.header=!0,T.highlightFormatting&&(L.formatting="header"),L.f=L.inline,w(L);if(L.indentation<=De&&U.eat(">"))return L.quote=B?1:L.quote+1,T.highlightFormatting&&(L.formatting="quote"),U.eatSpace(),w(L);if(!we&&!L.setext&&B&&L.indentation<=De&&(ce=U.match(a))){var le=ce[1]?"ol":"ul";return L.indentation=te+U.current().length,L.list=!0,L.quote=0,L.listStack.push(L.indentation),L.em=!1,L.strong=!1,L.code=!1,L.strikethrough=!1,T.taskLists&&U.match(n,!1)&&(L.taskList=!0),L.f=L.inline,T.highlightFormatting&&(L.formatting=["list","list-"+le]),w(L)}else{if(B&&L.indentation<=De&&(ce=U.match(t,!0)))return L.quote=0,L.fencedEndRE=new RegExp(ce[1]+"+ *$"),L.localMode=T.fencedCodeBlockHighlighting&&s(ce[2]||T.fencedCodeBlockDefaultMode),L.localMode&&(L.localState=I.startState(L.localMode)),L.f=L.block=C,T.highlightFormatting&&(L.formatting="code-block"),L.code=-1,w(L);if(L.setext||(!Ce||!Ee)&&!L.quote&&L.list===!1&&!L.code&&!we&&!o.test(U.string)&&(ce=U.lookAhead(1))&&(ce=ce.match(r)))return L.setext?(L.header=L.setext,L.setext=0,U.skipToEnd(),T.highlightFormatting&&(L.formatting="header")):(L.header=ce[0].charAt(0)=="="?1:2,L.setext=L.header),L.thisLine.header=!0,L.f=L.inline,w(L);if(we)return U.skipToEnd(),L.hr=!0,L.thisLine.hr=!0,_.hr;if(U.peek()==="[")return f(U,L,z)}return f(U,L,L.inline)}function O(U,L){var B=b.token(U,L.htmlState);if(!g){var Z=I.innerMode(b,L.htmlState);(Z.mode.name=="xml"&&Z.state.tagStart===null&&!Z.state.context&&Z.state.tokenize.isInText||L.md_inside&&U.current().indexOf(">")>-1)&&(L.f=D,L.block=x,L.htmlState=null)}return B}function C(U,L){var B=L.listStack[L.listStack.length-1]||0,Z=L.indentation<B,re=B+3;if(L.fencedEndRE&&L.indentation<=re&&(Z||U.match(L.fencedEndRE))){T.highlightFormatting&&(L.formatting="code-block");var me;return Z||(me=w(L)),L.localMode=L.localState=null,L.block=x,L.f=D,L.fencedEndRE=null,L.code=0,L.thisLine.fencedCodeEnd=!0,Z?h(U,L,L.block):me}else return L.localMode?L.localMode.token(U,L.localState):(U.skipToEnd(),_.code)}function w(U){var L=[];if(U.formatting){L.push(_.formatting),typeof U.formatting=="string"&&(U.formatting=[U.formatting]);for(var B=0;B<U.formatting.length;B++)L.push(_.formatting+"-"+U.formatting[B]),U.formatting[B]==="header"&&L.push(_.formatting+"-"+U.formatting[B]+"-"+U.header),U.formatting[B]==="quote"&&(!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=U.quote?L.push(_.formatting+"-"+U.formatting[B]+"-"+U.quote):L.push("error"))}if(U.taskOpen)return L.push("meta"),L.length?L.join(" "):null;if(U.taskClosed)return L.push("property"),L.length?L.join(" "):null;if(U.linkHref?L.push(_.linkHref,"url"):(U.strong&&L.push(_.strong),U.em&&L.push(_.em),U.strikethrough&&L.push(_.strikethrough),U.emoji&&L.push(_.emoji),U.linkText&&L.push(_.linkText),U.code&&L.push(_.code),U.image&&L.push(_.image),U.imageAltText&&L.push(_.imageAltText,"link"),U.imageMarker&&L.push(_.imageMarker)),U.header&&L.push(_.header,_.header+"-"+U.header),U.quote&&(L.push(_.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=U.quote?L.push(_.quote+"-"+U.quote):L.push(_.quote+"-"+T.maxBlockquoteDepth)),U.list!==!1){var Z=(U.listStack.length-1)%3;Z?Z===1?L.push(_.list2):L.push(_.list3):L.push(_.list1)}return U.trailingSpaceNewLine?L.push("trailing-space-new-line"):U.trailingSpace&&L.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),L.length?L.join(" "):null}function S(U,L){return U.match(i,!0)?w(L):void 0}function D(U,L){var B=L.text(U,L);if(typeof B!="undefined")return B;if(L.list)return L.list=null,w(L);if(L.taskList){var Z=U.match(n,!0)[1]===" ";return Z?L.taskOpen=!0:L.taskClosed=!0,T.highlightFormatting&&(L.formatting="task"),L.taskList=!1,w(L)}if(L.taskOpen=!1,L.taskClosed=!1,L.header&&U.match(/^#+$/,!0))return T.highlightFormatting&&(L.formatting="header"),w(L);var re=U.next();if(L.linkTitle){L.linkTitle=!1;var me=re;re==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ee="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(U.match(new RegExp(Ee),!0))return _.linkHref}if(re==="`"){var De=L.formatting;T.highlightFormatting&&(L.formatting="code"),U.eatWhile("`");var te=U.current().length;if(L.code==0&&(!L.quote||te==1))return L.code=te,w(L);if(te==L.code){var Ce=w(L);return L.code=0,Ce}else return L.formatting=De,w(L)}else if(L.code)return w(L);if(re==="\\"&&(U.next(),T.highlightFormatting)){var we=w(L),ce=_.formatting+"-escape";return we?we+" "+ce:ce}if(re==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return L.imageMarker=!0,L.image=!0,T.highlightFormatting&&(L.formatting="image"),w(L);if(re==="["&&L.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return L.imageMarker=!1,L.imageAltText=!0,T.highlightFormatting&&(L.formatting="image"),w(L);if(re==="]"&&L.imageAltText){T.highlightFormatting&&(L.formatting="image");var we=w(L);return L.imageAltText=!1,L.image=!1,L.inline=L.f=P,we}if(re==="["&&!L.image)return L.linkText&&U.match(/^.*?\]/)||(L.linkText=!0,T.highlightFormatting&&(L.formatting="link")),w(L);if(re==="]"&&L.linkText){T.highlightFormatting&&(L.formatting="link");var we=w(L);return L.linkText=!1,L.inline=L.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?P:D,we}if(re==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=R,T.highlightFormatting&&(L.formatting="link");var we=w(L);return we?we+=" ":we="",we+_.linkInline}if(re==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=R,T.highlightFormatting&&(L.formatting="link");var we=w(L);return we?we+=" ":we="",we+_.linkEmail}if(T.xml&&re==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var le=U.string.indexOf(">",U.pos);if(le!=-1){var oe=U.string.substring(U.start,le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(oe)&&(L.md_inside=!0)}return U.backUp(1),L.htmlState=I.startState(b),h(U,L,O)}if(T.xml&&re==="<"&&U.match(/^\/\w*?>/))return L.md_inside=!1,"tag";if(re==="*"||re==="_"){for(var xe=1,q=U.pos==1?" ":U.string.charAt(U.pos-2);xe<3&&U.eat(re);)xe++;var se=U.peek()||" ",Ne=!/\s/.test(se)&&(!c.test(se)||/\s/.test(q)||c.test(q)),de=!/\s/.test(q)&&(!c.test(q)||/\s/.test(se)||c.test(se)),$=null,Q=null;if(xe%2&&(!L.em&&Ne&&(re==="*"||!de||c.test(q))?$=!0:L.em==re&&de&&(re==="*"||!Ne||c.test(se))&&($=!1)),xe>1&&(!L.strong&&Ne&&(re==="*"||!de||c.test(q))?Q=!0:L.strong==re&&de&&(re==="*"||!Ne||c.test(se))&&(Q=!1)),Q!=null||$!=null){T.highlightFormatting&&(L.formatting=$==null?"strong":Q==null?"em":"strong em"),$===!0&&(L.em=re),Q===!0&&(L.strong=re);var Ce=w(L);return $===!1&&(L.em=!1),Q===!1&&(L.strong=!1),Ce}}else if(re===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return w(L);U.backUp(1)}if(T.strikethrough){if(re==="~"&&U.eatWhile(re)){if(L.strikethrough){T.highlightFormatting&&(L.formatting="strikethrough");var Ce=w(L);return L.strikethrough=!1,Ce}else if(U.match(/^[^\s]/,!1))return L.strikethrough=!0,T.highlightFormatting&&(L.formatting="strikethrough"),w(L)}else if(re===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return w(L);U.backUp(2)}}if(T.emoji&&re===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){L.emoji=!0,T.highlightFormatting&&(L.formatting="emoji");var Y=w(L);return L.emoji=!1,Y}return re===" "&&(U.match(/^ +$/,!1)?L.trailingSpace++:L.trailingSpace&&(L.trailingSpaceNewLine=!0)),w(L)}function R(U,L){var B=U.next();if(B===">"){L.f=L.inline=D,T.highlightFormatting&&(L.formatting="link");var Z=w(L);return Z?Z+=" ":Z="",Z+_.linkInline}return U.match(/^[^>]+/,!0),_.linkInline}function P(U,L){if(U.eatSpace())return null;var B=U.next();return B==="("||B==="["?(L.f=L.inline=M(B==="("?")":"]"),T.highlightFormatting&&(L.formatting="link-string"),L.linkHref=!0,w(L)):"error"}var N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function M(U){return function(L,B){var Z=L.next();if(Z===U){B.f=B.inline=D,T.highlightFormatting&&(B.formatting="link-string");var re=w(B);return B.linkHref=!1,re}return L.match(N[U]),B.linkHref=!0,w(B)}}function z(U,L){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(L.f=X,U.next(),T.highlightFormatting&&(L.formatting="link"),L.linkText=!0,w(L)):f(U,L,D)}function X(U,L){if(U.match(/^\]:/,!0)){L.f=L.inline=k,T.highlightFormatting&&(L.formatting="link");var B=w(L);return L.linkText=!1,B}return U.match(/^([^\]\\]|\\.)+/,!0),_.linkText}function k(U,L){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?L.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),L.f=L.inline=D,_.linkHref+" url")}var F={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:D,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&I.copyState(b,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?I.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,L){if(L.formatting=!1,U!=L.thisLine.stream){if(L.header=0,L.hr=!1,U.match(/^\s*$/,!0))return E(L),null;if(L.prevLine=L.thisLine,L.thisLine={stream:U},L.taskList=!1,L.trailingSpace=0,L.trailingSpaceNewLine=!1,!L.localState&&(L.f=L.block,L.f!=O)){var B=U.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(L.indentation=B,L.indentationDiff=null,B>0)return null}}return L.f(U,L)},innerMode:function(U){return U.block==O?{state:U.htmlState,mode:b}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:F}},indent:function(U,L,B){return U.block==O&&b.indent?b.indent(U.htmlState,L,B):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,L,B):I.Pass},blankLine:E,getType:w,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return F},"xml"),I.defineMIME("text/markdown","markdown"),I.defineMIME("text/x-markdown","markdown")})},lzim:function(j,W,y){"use strict";var I=y("E7E6"),v=y.n(I);y.d(W,"w",function(){return v.a});var T=y("/GNS"),b=y.n(T);y.d(W,"v",function(){return b.a});var g=y("FOrL"),s=y.n(g);y.d(W,"q",function(){return s.a});var _=y("HpTS"),p=y.n(_);y.d(W,"x",function(){return p.a});var e=y("tWlo"),a=y.n(e);y.d(W,"a",function(){return a.a});var n=y("7ZXX"),l=y.n(n);y.d(W,"l",function(){return l.a});var r=y("GABl"),i=y.n(r);y.d(W,"e",function(){return i.a});var t=y("onxn"),o=y.n(t);y.d(W,"n",function(){return o.a});var c=y("nKGa"),d=y.n(c);y.d(W,"m",function(){return d.a});var f=y("4qgm"),h=y.n(f);y.d(W,"y",function(){return h.a});var u=y("JeFH"),E=y.n(u);y.d(W,"b",function(){return E.a});var x=y("ji0R"),O=y.n(x);y.d(W,"i",function(){return O.a});var C=y("W6BS"),w=y.n(C);y.d(W,"z",function(){return w.a});var S=y("kPYp"),D=y.n(S);y.d(W,"A",function(){return D.a});var R=y("nukY"),P=y.n(R),N=y("4u4S"),M=y.n(N),z=y("yslc"),X=y.n(z),k=y("l2Kq"),F=y.n(k),U=y("RMFE"),L=y.n(U);y.d(W,"o",function(){return L.a});var B=y("TGq3"),Z=y.n(B),re=y("SMhR"),me=y.n(re),Ee=y("8/bI"),De=y.n(Ee);y.d(W,"j",function(){return De.a});var te=y("JWDV"),Ce=y.n(te),we=y("Xsq0"),ce=y.n(we);y.d(W,"p",function(){return ce.a});var le=y("Ohmc"),oe=y.n(le);y.d(W,"c",function(){return oe.a});var xe=y("csWT"),q=y.n(xe);y.d(W,"d",function(){return q.a});var se=y("7v3h"),Ne=y.n(se);y.d(W,"k",function(){return Ne.a});var de=y("cRFk"),$=y.n(de);y.d(W,"u",function(){return $.a});var Q=y("kPWJ"),Y=y.n(Q);y.d(W,"t",function(){return Y.a});var ue=y("qgvg"),ae=y.n(ue);y.d(W,"r",function(){return ae.a});var be=y("FPkq"),Ie=y.n(be);y.d(W,"s",function(){return Ie.a});var pe=y("A/g1"),Le=y.n(pe);y.d(W,"f",function(){return Le.a});var ve=y("Nmxd"),Xe=y.n(ve);y.d(W,"g",function(){return Xe.a});var $e=y("5D2P"),Ge=y.n($e);y.d(W,"h",function(){return Ge.a});var Me=y("djh8"),gt=y.n(Me),Te=y("Jq4h"),Ye=y.n(Te)},mCJh:function(j,W,y){"use strict";y.d(W,"e",function(){return v}),y.d(W,"k",function(){return T}),y.d(W,"d",function(){return b}),y.d(W,"g",function(){return g}),y.d(W,"f",function(){return s}),y.d(W,"i",function(){return _}),y.d(W,"c",function(){return p}),y.d(W,"h",function(){return e}),y.d(W,"b",function(){return a}),y.d(W,"a",function(){return n}),y.d(W,"j",function(){return l});var I=y("ErOA");function v(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(I.c)("/discusses.json",{container_type:"Shixun",container_identifier:r,page:i-1})}function T(r,i){return Object(I.f)("/discusses/".concat(r,"/top_or_down_discuss.json"),{top:i})}function b(r,i){return Object(I.f)("/discusses/".concat(r,"/disable_or_open_discuss.json"),{is_disable:!!i})}function g(r,i){return Object(I.f)("/discusses/".concat(r,"/plus.json"),{container_type:"Discuss",type:i?1:0})}function s(r,i){return Object(I.f)("/discusses/".concat(r,"/hidden.json"),i)}function _(r,i){return Object(I.f)("/discusses/".concat(r,"/reward_code.json"),i)}function p(r){return Object(I.a)("/api/discusses/".concat(r,".json"),{method:"delete"})}function e(r,i){return Object(I.f)("/discusses/".concat(r,"/reply.json"),{container_type:"Shixun",content:i})}function a(r){return Object(I.f)("/discusses.json",r)}function n(r){return Object(I.f)("/discusses/ai_reply.json",r)}function l(r,i){return Object(I.f)("/discusses/".concat(r,"/turing.json"),i)}},mHUz:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};W.default=I},mTgk:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I=v(y("mHUz"));function v(p){return p&&p.__esModule?p:{default:p}}var T={};function b(p,e){if(e===void 0)throw new Error('Undefined keysym for key "'+p+'"');if(p in T)throw new Error('Duplicate entry for key "'+p+'"');T[p]=[e,e,e,e]}function g(p,e,a){if(e===void 0)throw new Error('Undefined keysym for key "'+p+'"');if(a===void 0)throw new Error('Undefined keysym for key "'+p+'"');if(p in T)throw new Error('Duplicate entry for key "'+p+'"');T[p]=[e,e,a,e]}function s(p,e,a){if(e===void 0)throw new Error('Undefined keysym for key "'+p+'"');if(a===void 0)throw new Error('Undefined keysym for key "'+p+'"');if(p in T)throw new Error('Duplicate entry for key "'+p+'"');T[p]=[e,e,e,a]}g("Alt",I.default.XK_Alt_L,I.default.XK_Alt_R),b("AltGraph",I.default.XK_ISO_Level3_Shift),b("CapsLock",I.default.XK_Caps_Lock),g("Control",I.default.XK_Control_L,I.default.XK_Control_R),g("Meta",I.default.XK_Super_L,I.default.XK_Super_R),b("NumLock",I.default.XK_Num_Lock),b("ScrollLock",I.default.XK_Scroll_Lock),g("Shift",I.default.XK_Shift_L,I.default.XK_Shift_R),s("Enter",I.default.XK_Return,I.default.XK_KP_Enter),b("Tab",I.default.XK_Tab),s(" ",I.default.XK_space,I.default.XK_KP_Space),s("ArrowDown",I.default.XK_Down,I.default.XK_KP_Down),s("ArrowUp",I.default.XK_Up,I.default.XK_KP_Up),s("ArrowLeft",I.default.XK_Left,I.default.XK_KP_Left),s("ArrowRight",I.default.XK_Right,I.default.XK_KP_Right),s("End",I.default.XK_End,I.default.XK_KP_End),s("Home",I.default.XK_Home,I.default.XK_KP_Home),s("PageDown",I.default.XK_Next,I.default.XK_KP_Next),s("PageUp",I.default.XK_Prior,I.default.XK_KP_Prior),b("Backspace",I.default.XK_BackSpace),s("Clear",I.default.XK_Clear,I.default.XK_KP_Begin),b("Copy",I.default.XF86XK_Copy),b("Cut",I.default.XF86XK_Cut),s("Delete",I.default.XK_Delete,I.default.XK_KP_Delete),s("Insert",I.default.XK_Insert,I.default.XK_KP_Insert),b("Paste",I.default.XF86XK_Paste),b("Redo",I.default.XK_Redo),b("Undo",I.default.XK_Undo),b("Cancel",I.default.XK_Cancel),b("ContextMenu",I.default.XK_Menu),b("Escape",I.default.XK_Escape),b("Execute",I.default.XK_Execute),b("Find",I.default.XK_Find),b("Help",I.default.XK_Help),b("Pause",I.default.XK_Pause),b("Select",I.default.XK_Select),b("ZoomIn",I.default.XF86XK_ZoomIn),b("ZoomOut",I.default.XF86XK_ZoomOut),b("BrightnessDown",I.default.XF86XK_MonBrightnessDown),b("BrightnessUp",I.default.XF86XK_MonBrightnessUp),b("Eject",I.default.XF86XK_Eject),b("LogOff",I.default.XF86XK_LogOff),b("Power",I.default.XF86XK_PowerOff),b("PowerOff",I.default.XF86XK_PowerDown),b("PrintScreen",I.default.XK_Print),b("Hibernate",I.default.XF86XK_Hibernate),b("Standby",I.default.XF86XK_Standby),b("WakeUp",I.default.XF86XK_WakeUp),b("AllCandidates",I.default.XK_MultipleCandidate),b("Alphanumeric",I.default.XK_Eisu_Shift),b("CodeInput",I.default.XK_Codeinput),b("Compose",I.default.XK_Multi_key),b("Convert",I.default.XK_Henkan),b("GroupFirst",I.default.XK_ISO_First_Group),b("GroupLast",I.default.XK_ISO_Last_Group),b("GroupNext",I.default.XK_ISO_Next_Group),b("GroupPrevious",I.default.XK_ISO_Prev_Group),b("NonConvert",I.default.XK_Muhenkan),b("PreviousCandidate",I.default.XK_PreviousCandidate),b("SingleCandidate",I.default.XK_SingleCandidate),b("HangulMode",I.default.XK_Hangul),b("HanjaMode",I.default.XK_Hangul_Hanja),b("JunjuaMode",I.default.XK_Hangul_Jeonja),b("Eisu",I.default.XK_Eisu_toggle),b("Hankaku",I.default.XK_Hankaku),b("Hiragana",I.default.XK_Hiragana),b("HiraganaKatakana",I.default.XK_Hiragana_Katakana),b("KanaMode",I.default.XK_Kana_Shift),b("KanjiMode",I.default.XK_Kanji),b("Katakana",I.default.XK_Katakana),b("Romaji",I.default.XK_Romaji),b("Zenkaku",I.default.XK_Zenkaku),b("ZenkakuHanaku",I.default.XK_Zenkaku_Hankaku),b("F1",I.default.XK_F1),b("F2",I.default.XK_F2),b("F3",I.default.XK_F3),b("F4",I.default.XK_F4),b("F5",I.default.XK_F5),b("F6",I.default.XK_F6),b("F7",I.default.XK_F7),b("F8",I.default.XK_F8),b("F9",I.default.XK_F9),b("F10",I.default.XK_F10),b("F11",I.default.XK_F11),b("F12",I.default.XK_F12),b("F13",I.default.XK_F13),b("F14",I.default.XK_F14),b("F15",I.default.XK_F15),b("F16",I.default.XK_F16),b("F17",I.default.XK_F17),b("F18",I.default.XK_F18),b("F19",I.default.XK_F19),b("F20",I.default.XK_F20),b("F21",I.default.XK_F21),b("F22",I.default.XK_F22),b("F23",I.default.XK_F23),b("F24",I.default.XK_F24),b("F25",I.default.XK_F25),b("F26",I.default.XK_F26),b("F27",I.default.XK_F27),b("F28",I.default.XK_F28),b("F29",I.default.XK_F29),b("F30",I.default.XK_F30),b("F31",I.default.XK_F31),b("F32",I.default.XK_F32),b("F33",I.default.XK_F33),b("F34",I.default.XK_F34),b("F35",I.default.XK_F35),b("Close",I.default.XF86XK_Close),b("MailForward",I.default.XF86XK_MailForward),b("MailReply",I.default.XF86XK_Reply),b("MailSend",I.default.XF86XK_Send),b("MediaFastForward",I.default.XF86XK_AudioForward),b("MediaPause",I.default.XF86XK_AudioPause),b("MediaPlay",I.default.XF86XK_AudioPlay),b("MediaRecord",I.default.XF86XK_AudioRecord),b("MediaRewind",I.default.XF86XK_AudioRewind),b("MediaStop",I.default.XF86XK_AudioStop),b("MediaTrackNext",I.default.XF86XK_AudioNext),b("MediaTrackPrevious",I.default.XF86XK_AudioPrev),b("New",I.default.XF86XK_New),b("Open",I.default.XF86XK_Open),b("Print",I.default.XK_Print),b("Save",I.default.XF86XK_Save),b("SpellCheck",I.default.XF86XK_Spell),b("AudioVolumeDown",I.default.XF86XK_AudioLowerVolume),b("AudioVolumeUp",I.default.XF86XK_AudioRaiseVolume),b("AudioVolumeMute",I.default.XF86XK_AudioMute),b("MicrophoneVolumeMute",I.default.XF86XK_AudioMicMute),b("LaunchApplication1",I.default.XF86XK_MyComputer),b("LaunchApplication2",I.default.XF86XK_Calculator),b("LaunchCalendar",I.default.XF86XK_Calendar),b("LaunchMail",I.default.XF86XK_Mail),b("LaunchMediaPlayer",I.default.XF86XK_AudioMedia),b("LaunchMusicPlayer",I.default.XF86XK_Music),b("LaunchPhone",I.default.XF86XK_Phone),b("LaunchScreenSaver",I.default.XF86XK_ScreenSaver),b("LaunchSpreadsheet",I.default.XF86XK_Excel),b("LaunchWebBrowser",I.default.XF86XK_WWW),b("LaunchWebCam",I.default.XF86XK_WebCam),b("LaunchWordProcessor",I.default.XF86XK_Word),b("BrowserBack",I.default.XF86XK_Back),b("BrowserFavorites",I.default.XF86XK_Favorites),b("BrowserForward",I.default.XF86XK_Forward),b("BrowserHome",I.default.XF86XK_HomePage),b("BrowserRefresh",I.default.XF86XK_Refresh),b("BrowserSearch",I.default.XF86XK_Search),b("BrowserStop",I.default.XF86XK_Stop),b("Dimmer",I.default.XF86XK_BrightnessAdjust),b("MediaAudioTrack",I.default.XF86XK_AudioCycleTrack),b("RandomToggle",I.default.XF86XK_AudioRandomPlay),b("SplitScreenToggle",I.default.XF86XK_SplitScreen),b("Subtitle",I.default.XF86XK_Subtitle),b("VideoModeNext",I.default.XF86XK_Next_VMode),s("=",I.default.XK_equal,I.default.XK_KP_Equal),s("+",I.default.XK_plus,I.default.XK_KP_Add),s("-",I.default.XK_minus,I.default.XK_KP_Subtract),s("*",I.default.XK_asterisk,I.default.XK_KP_Multiply),s("/",I.default.XK_slash,I.default.XK_KP_Divide),s(".",I.default.XK_period,I.default.XK_KP_Decimal),s(",",I.default.XK_comma,I.default.XK_KP_Separator),s("0",I.default.XK_0,I.default.XK_KP_0),s("1",I.default.XK_1,I.default.XK_KP_1),s("2",I.default.XK_2,I.default.XK_KP_2),s("3",I.default.XK_3,I.default.XK_KP_3),s("4",I.default.XK_4,I.default.XK_KP_4),s("5",I.default.XK_5,I.default.XK_KP_5),s("6",I.default.XK_6,I.default.XK_KP_6),s("7",I.default.XK_7,I.default.XK_KP_7),s("8",I.default.XK_8,I.default.XK_KP_8),s("9",I.default.XK_9,I.default.XK_KP_9);var _=T;W.default=_},mdZa:function(j,W,y){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(v,T){"use strict";if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(v),g=1;g<arguments.length;g++){var s=arguments[g];if(s!=null)for(var _ in s)Object.prototype.hasOwnProperty.call(s,_)&&(b[_]=s[_])}return b},writable:!0,configurable:!0}),function(){function I(v,T){T=T||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");return b.initCustomEvent(v,T.bubbles,T.cancelable,T.detail),b}I.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=I)}(),Number.isInteger=Number.isInteger||function(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(j){if(!0)module.exports=j();else var W})(function(){var define,module,exports;return function(){function j(W,y,I){function v(g,s){if(!y[g]){if(!W[g]){var _=typeof require=="function"&&require;if(!s&&_)return require(g,!0);if(T)return T(g,!0);var p=new Error("Cannot find module '"+g+"'");throw p.code="MODULE_NOT_FOUND",p}var e=y[g]={exports:{}};W[g][0].call(e.exports,function(a){var n=W[g][1][a];return v(n||a)},e,e.exports,j,W,y,I)}return y[g].exports}for(var T=typeof require=="function"&&require,b=0;b<I.length;b++)v(I[b]);return v}return j}()({1:[function(j,W,y){"use strict";var I=j("./browser/client");I.Buffer=j("buffer").Buffer,I.urllib=j("../shims/xhr"),I.version=j("./browser/version").version,W.exports=I},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(j,W,y){(function(I,v){"use strict";var T=j("babel-runtime/core-js/promise"),b=e(T),g=j("babel-runtime/regenerator"),s=e(g),_=j("babel-runtime/core-js/object/assign"),p=e(_);function e(z){return z&&z.__esModule?z:{default:z}}var a=j("debug")("ali-oss"),n=j("copy-to"),l=j("xml2js"),r=j("agentkeepalive"),i=j("merge-descriptors"),t=j("url"),o=j("is-type-of"),c=j("platform"),d=j("utility"),f=j("urllib"),h=j("./version"),u=j("bowser"),E=j("../common/signUtils"),x=j("../common/utils/isIP"),O=x.isIP,C=j("../common/client/initOptions"),w=j("../common/utils/createRequest"),S=w.createRequest,D=new r;function R(){var z=c.name,X=c.version;z&&z.toLowerCase&&z.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function P(){return location&&location.protocol==="https:"}function N(z,X){if(R(),!(this instanceof N))return new N(z,X);z&&z.inited?this.options=z:this.options=N.initOptions(z),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=f,this.agent=this.options.agent||D),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}W.exports=N,N.initOptions=function(X){X.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var k=(0,p.default)({secure:P(),useFetch:!1},X);return C(k)};var M=N.prototype;M.debug=a,i(M,j("./object")),i(M,j("../common/bucket/getBucketWebsite")),i(M,j("../common/bucket/putBucketWebsite")),i(M,j("../common/bucket/deleteBucketWebsite")),i(M,j("../common/bucket/getBucketLifecycle")),i(M,j("../common/bucket/putBucketLifecycle")),i(M,j("../common/bucket/deleteBucketLifecycle")),i(M,j("../common/bucket/putBucketVersioning")),i(M,j("../common/bucket/getBucketVersioning")),i(M,j("./managed-upload")),i(M,j("../common/multipart")),i(M,j("../common/parallel")),M.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),E.computeSignature(this.options.accessKeySecret,X)},M.authorization=function(X,k,F,U){var L=E.buildCanonicalString(X.toUpperCase(),k,{headers:U,parameters:F});return E.authorization(this.options.accessKeyId,this.options.accessKeySecret,L)},M.request=function(X){var k,F,U,L,B,Z;return s.default.async(function(me){for(;;)switch(me.prev=me.next){case 0:return k=S.call(this,X),this.options.useFetch||(k.params.mode="disable-fetch"),F=void 0,U=void 0,L=!!X.stream,me.prev=5,me.next=8,s.default.awrap(this.urllib.request(k.url,k.params));case 8:F=me.sent,this.debug("response %s %s, got %s, headers: %j",X.method,k.url,F.status,F.headers,"info"),me.next=15;break;case 12:me.prev=12,me.t0=me.catch(5),U=me.t0;case 15:if(B=void 0,!(F&&X.successStatuses&&X.successStatuses.indexOf(F.status)===-1)){me.next=28;break}return me.next=19,s.default.awrap(this.requestError(F));case 19:if(B=me.sent,!(B.code==="RequestTimeTooSkewed"&&!L)){me.next=25;break}return this.options.amendTimeSkewed=+new Date(B.serverTime)-new Date,me.next=24,s.default.awrap(this.request(X));case 24:return me.abrupt("return",me.sent);case 25:B.params=X,me.next=32;break;case 28:if(!U){me.next=32;break}return me.next=31,s.default.awrap(this.requestError(U));case 31:B=me.sent;case 32:if(!B){me.next=34;break}throw B;case 34:if(!X.xmlResponse){me.next=39;break}return me.next=37,s.default.awrap(this.parseXML(F.data));case 37:Z=me.sent,F.data=Z;case 39:return me.abrupt("return",F);case 40:case"end":return me.stop()}},null,this,[[5,12]])},M._getResource=function(X){var k="/";return X.bucket&&(k+=X.bucket+"/"),X.object&&(k+=X.object),k},M._isIP=O,M._escape=function(X){return d.encodeURIComponent(X).replace(/%2F/g,"/")},M._getReqUrl=function(X){var k={};n(this.options.endpoint).to(k);var F=this._isIP(k.hostname),U=this.options.cname;X.bucket&&!U&&!F&&(k.host=X.bucket+"."+k.host);var L="/";X.bucket&&F&&(L+=X.bucket+"/"),X.object&&(L+=this._escape(X.object).replace(/\+/g,"%2B")),k.pathname=L;var B={};if(X.query&&i(B,X.query),X.subres){var Z={};o.string(X.subres)?Z[X.subres]="":o.array(X.subres)?X.subres.forEach(function(re){Z[re]=""}):Z=X.subres,i(B,Z)}return k.query=B,t.format(k)},M._getUserAgent=function(){var X=v&&v.browser?"js":"nodejs",k="aliyun-sdk-"+X+"/"+h.version,F=c.description;return!F&&v&&(F="Node.js "+v.version.slice(1)+" on "+v.platform+" "+v.arch),this._checkUserAgent(k+" "+F)},M._checkUserAgent=function(X){var k=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return k},M.checkBrowserAndVersion=function(X,k){return u.name===X&&u.version.split(".")[0]===k},M.parseXML=function(X){return new b.default(function(k,F){I.isBuffer(X)&&(X=X.toString()),l.parseString(X,{explicitRoot:!1,explicitArray:!1},function(U,L){U?F(U):k(L)})})},M.requestError=function(X){var k,F,U,L;return s.default.async(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(k=null,!(!X.data||!X.data.length)){Z.next=5;break}X.status===-1||X.status===-2?(k=new Error(X.message),k.name=X.name,k.status=X.status,k.code=X.name):(X.status===404?(k=new Error("Object not exists"),k.name="NoSuchKeyError",k.status=404,k.code="NoSuchKey"):X.status===412?(k=new Error("Pre condition failed"),k.name="PreconditionFailedError",k.status=412,k.code="PreconditionFailed"):(k=new Error("Unknow error, status: "+X.status),k.name="UnknowError",k.status=X.status),k.requestId=X.headers["x-oss-request-id"],k.host=""),Z.next=33;break;case 5:return F=String(X.data),this.debug("request response error data: %s",F,"error"),U=void 0,Z.prev=8,Z.next=11,s.default.awrap(this.parseXML(F));case 11:if(Z.t0=Z.sent,Z.t0){Z.next=14;break}Z.t0={};case 14:U=Z.t0,Z.next=24;break;case 17:return Z.prev=17,Z.t1=Z.catch(8),this.debug(F,"error"),Z.t1.message+=`
raw xml: `+F,Z.t1.status=X.status,Z.t1.requestId=X.headers["x-oss-request-id"],Z.abrupt("return",Z.t1);case 24:L=U.Message||"unknow request error, status: "+X.status,U.Condition&&(L+=" (condition: "+U.Condition+")"),k=new Error(L),k.name=U.Code?U.Code+"Error":"UnknowError",k.status=X.status,k.code=U.Code,k.requestId=U.RequestId,k.hostId=U.HostId,k.serverTime=U.ServerTime;case 33:return this.debug("generate error %j",k,"error"),Z.abrupt("return",k);case 35:case"end":return Z.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:j("../../node_modules/is-buffer/index.js")},j("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(j,W,y){(function(I){"use strict";var v=j("babel-runtime/core-js/array/from"),T=p(v),b=j("babel-runtime/core-js/promise"),g=p(b),s=j("babel-runtime/regenerator"),_=p(s);function p(E){return E&&E.__esModule?E:{default:E}}var e=j("is-type-of"),a=j("util"),n=j("path"),l=j("mime"),r=j("copy-to"),i=j("../common/utils/isBlob"),t=i.isBlob,o=j("../common/utils/isFile"),c=o.isFile,d=y;d.multipartUpload=function(x,O,C){var w,S,D,R,P,N,M,z,X;return _.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(this.resetCancelFlag(),C=C||{},!(C.checkpoint&&C.checkpoint.uploadId)){F.next=6;break}return F.next=5,_.default.awrap(this._resumeMultipart(C.checkpoint,C));case 5:return F.abrupt("return",F.sent);case 6:return w=100*1024,C.mime||(c(O)?C.mime=l.getType(n.extname(O.name)):t(O)?C.mime=O.type:C.mime=l.getType(n.extname(O))),C.headers=C.headers||{},this._convertMetaToHeaders(C.meta,C.headers),F.next=12,_.default.awrap(this._getFileSize(O));case 12:if(S=F.sent,!(S<w)){F.next=25;break}return D=this._createStream(O,0,S),C.contentLength=S,F.next=18,_.default.awrap(this.putStream(x,D,C));case 18:if(R=F.sent,!(C&&C.progress)){F.next=22;break}return F.next=22,_.default.awrap(C.progress(1));case 22:return P={res:R.res,bucket:this.options.bucket,name:x,etag:R.res.headers.etag},(C.headers&&C.headers["x-oss-callback"]||C.callback)&&(P.data=R.data),F.abrupt("return",P);case 25:if(!(C.partSize&&!(parseInt(C.partSize,10)===C.partSize))){F.next=27;break}throw new Error("partSize must be int number");case 27:if(!(C.partSize&&C.partSize<w)){F.next=29;break}throw new Error("partSize must not be smaller than "+w);case 29:return F.next=31,_.default.awrap(this.initMultipartUpload(x,C));case 31:if(N=F.sent,M=N.uploadId,z=this._getPartSize(S,C.partSize),X={file:O,name:x,fileSize:S,partSize:z,uploadId:M,doneParts:[]},!(C&&C.progress)){F.next=38;break}return F.next=38,_.default.awrap(C.progress(0,X,N.res));case 38:return F.next=40,_.default.awrap(this._resumeMultipart(X,C));case 40:return F.abrupt("return",F.sent);case 41:case"end":return F.stop()}},null,this)},d._resumeMultipart=function(x,O){var C,w,S,D,R,P,N,M,z,X,k,F,U,L,B,Z,re,me;return _.default.async(function(De){for(;;)switch(De.prev=De.next){case 0:if(C=this,!this.isCancel()){De.next=3;break}throw this._makeCancelEvent();case 3:return w=x.file,S=x.fileSize,D=x.partSize,R=x.uploadId,P=x.doneParts,N=x.name,M=[],P.length>0&&r(P).to(M),z=this._divideParts(S,D),X=z.length,k=!1,F=function(Ce,we){var ce=this;return new g.default(function(oe,xe){var q,se,Ne,de;return _.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Q.prev=0,Ce.isCancel()){Q.next=18;break}return q=z[we-1],se={stream:Ce._createStream(w,q.start,q.end),size:q.end-q.start},Q.next=6,_.default.awrap(Ce._uploadPart(N,R,we,se));case 6:if(Ne=Q.sent,!(!Ce.isCancel()&&!k)){Q.next=15;break}if(x.doneParts.push({number:we,etag:Ne.res.headers.etag}),!O.progress){Q.next=12;break}return Q.next=12,_.default.awrap(O.progress(P.length/X,x,Ne.res));case 12:oe({number:we,etag:Ne.res.headers.etag}),Q.next=16;break;case 15:oe();case 16:Q.next=19;break;case 18:oe();case 19:Q.next=30;break;case 21:Q.prev=21,Q.t0=Q.catch(0),de=new Error,de.name=Q.t0.name,de.message=Q.t0.message,de.stack=Q.t0.stack,de.partNum=we,r(Q.t0).to(de),xe(de);case 30:case"end":return Q.stop()}},null,ce,[[0,21]])})},U=(0,T.default)(new Array(X),function(te,Ce){return Ce+1}),L=M.map(function(te){return te.number}),B=U.filter(function(te){return L.indexOf(te)<0}),Z=5,re=O.parallel||Z,De.next=17,_.default.awrap(this._parallel(B,re,function(te){return new g.default(function(Ce,we){F(C,te).then(function(ce){ce&&M.push(ce),Ce()}).catch(function(ce){we(ce)})})}));case 17:if(me=De.sent,k=!0,!this.isCancel()){De.next=22;break}throw F=null,this._makeCancelEvent();case 22:if(!(me&&me.length>0)){De.next=25;break}throw me[0].message="Failed to upload some parts with error: "+me[0].toString()+" part_num: "+me[0].partNum,me[0];case 25:return De.next=27,_.default.awrap(this.completeMultipartUpload(N,R,M,O));case 27:return De.abrupt("return",De.sent);case 28:case"end":return De.stop()}},null,this)},d._getFileSize=function(x){return _.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!e.buffer(x)){C.next=4;break}return C.abrupt("return",x.length);case 4:if(!(t(x)||c(x))){C.next=6;break}return C.abrupt("return",x.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return C.stop()}},null,this)};var f=j("stream"),h=f.Readable;function u(E,x){if(!(this instanceof u))return new u(E,x);h.call(this,x),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}a.inherits(u,h),u.prototype.readFileAndPush=function(x){if(this.fileBuffer)for(var O=!0;O&&this.fileBuffer&&this.start<this.fileBuffer.length;){var C=this.start,w=C+x;w=w>this.fileBuffer.length?this.fileBuffer.length:w,this.start=w,O=this.push(this.fileBuffer.slice(C,w))}},u.prototype._read=function(x){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var O=16*1024;x=x||O;var C=this;this.reader.onload=function(S){C.fileBuffer=I.from(new Uint8Array(S.target.result)),C.file=null,C.readFileAndPush(x)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(x)},d._createStream=function(x,O,C){if(t(x)||c(x))return new u(x.slice(O,C));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(x,O){var C=10*1e3,w=1024*1024;return O?Math.max(Math.ceil(x/C),O):w},d._divideParts=function(x,O){for(var C=Math.ceil(x/O),w=[],S=0;S<C;S++){var D=O*S,R=Math.min(D+O,x);w.push({start:D,end:R})}return w}}).call(this,j("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/promise"),v=e(I),T=j("babel-runtime/core-js/object/keys"),b=e(T),g=j("babel-runtime/core-js/object/assign"),s=e(g),_=j("babel-runtime/regenerator"),p=e(_);function e(C){return C&&C.__esModule?C:{default:C}}var a=j("utility"),n=j("fs"),l=j("is-type-of"),r=j("url"),i=j("copy-to"),t=j("path"),o=j("mime"),c=j("../common/callback"),d=j("../common/signUtils"),f=j("merge-descriptors"),h=j("../common/utils/isBlob"),u=h.isBlob,E=j("../common/utils/isFile"),x=E.isFile,O=y;O.append=function(w,S,D){var R;return p.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return D=D||{},D.position===void 0&&(D.position="0"),D.subres={append:"",position:D.position},D.method="POST",N.next=6,p.default.awrap(this.put(w,S,D));case 6:return R=N.sent,R.nextAppendPosition=R.res.headers["x-oss-next-append-position"],N.abrupt("return",R);case 9:case"end":return N.stop()}},null,this)},O.put=function(w,S,D){var R,P,N,M,z,X,k;return p.default.async(function(U){for(;;)switch(U.prev=U.next){case 0:if(R=void 0,D=D||{},w=this._objectName(w),!l.buffer(S)){U.next=7;break}R=S,U.next=33;break;case 7:if(!(u(S)||x(S))){U.next=32;break}return D.mime||(x(S)?D.mime=o.getType(t.extname(S.name)):D.mime=S.type),P=this._createStream(S,0,S.size),U.next=12,p.default.awrap(this._getFileSize(S));case 12:return D.contentLength=U.sent,U.prev=13,U.next=16,p.default.awrap(this.putStream(w,P,D));case 16:return N=U.sent,U.abrupt("return",N);case 20:if(U.prev=20,U.t0=U.catch(13),!(U.t0.code==="RequestTimeTooSkewed")){U.next=29;break}return this.options.amendTimeSkewed=+new Date(U.t0.serverTime)-new Date,U.next=26,p.default.awrap(this.put(w,S,D));case 26:return U.abrupt("return",U.sent);case 29:throw U.t0;case 30:U.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return D.headers=D.headers||{},this._convertMetaToHeaders(D.meta,D.headers),M=D.method||"PUT",z=this._objectRequestParams(M,w,D),c.encodeCallback(z,D),z.mime=D.mime,z.content=R,z.successStatuses=[200],U.next=43,p.default.awrap(this.request(z));case 43:return X=U.sent,k={name:w,url:this._objectUrl(w),res:X.res},z.headers&&z.headers["x-oss-callback"]&&(k.data=JSON.parse(X.data.toString())),U.abrupt("return",k);case 47:case"end":return U.stop()}},null,this,[[13,20]])},O.putStream=function(w,S,D){var R,P,N,M;return p.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return D=D||{},D.headers=D.headers||{},w=this._objectName(w),D.contentLength?D.headers["Content-Length"]=D.contentLength:D.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(D.meta,D.headers),R=D.method||"PUT",P=this._objectRequestParams(R,w,D),c.encodeCallback(P,D),P.mime=D.mime,P.stream=S,P.successStatuses=[200],X.next=13,p.default.awrap(this.request(P));case 13:return N=X.sent,M={name:w,url:this._objectUrl(w),res:N.res},P.headers&&P.headers["x-oss-callback"]&&(M.data=JSON.parse(N.data.toString())),X.abrupt("return",M);case 17:case"end":return X.stop()}},null,this)},f(O,j("../common/object/copyObject")),f(O,j("../common/object/getObjectTagging")),f(O,j("../common/object/putObjectTagging")),f(O,j("../common/object/deleteObjectTagging")),f(O,j("../common/image")),f(O,j("../common/object/getBucketVersions")),f(O,j("../common/object/getACL")),f(O,j("../common/object/putACL")),f(O,j("../common/object/head")),f(O,j("../common/object/delete")),f(O,j("../common/object/get")),f(O,j("../common/object/putSymlink")),f(O,j("../common/object/getSymlink")),f(O,j("../common/object/deleteMulti")),f(O,j("../common/object/getObjectMeta")),O.putMeta=function(w,S,D){var R;return p.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,p.default.awrap(this.copy(w,w,{meta:S||{},timeout:D&&D.timeout,ctx:D&&D.ctx}));case 2:return R=N.sent,N.abrupt("return",R);case 4:case"end":return N.stop()}},null,this)},O.list=function(w,S){var D,R,P,N,M;return p.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return D=this._objectRequestParams("GET","",S),D.query=w,D.xmlResponse=!0,D.successStatuses=[200],X.next=6,p.default.awrap(this.request(D));case 6:return R=X.sent,P=R.data.Contents,N=this,P&&(Array.isArray(P)||(P=[P]),P=P.map(function(k){return{name:k.Key,url:N._objectUrl(k.Key),lastModified:k.LastModified,etag:k.ETag,type:k.Type,size:Number(k.Size),storageClass:k.StorageClass,owner:{id:k.Owner.ID,displayName:k.Owner.DisplayName}}})),M=R.data.CommonPrefixes||null,M&&(Array.isArray(M)||(M=[M]),M=M.map(function(k){return k.Prefix})),X.abrupt("return",{res:R.res,objects:P,prefixes:M,nextMarker:R.data.NextMarker||null,isTruncated:R.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},O.restore=function(w,S){var D,R;return p.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return S=S||{},S.subres=(0,s.default)({restore:""},S.subres),S.versionId&&(S.subres.versionId=S.versionId),D=this._objectRequestParams("POST",w,S),D.successStatuses=[202],N.next=7,p.default.awrap(this.request(D));case 7:return R=N.sent,N.abrupt("return",{res:R.res});case 9:case"end":return N.stop()}},null,this)},O.signatureUrl=function(w,S){S=S||{},w=this._objectName(w),S.method=S.method||"GET";var D=a.timestamp()+(S.expires||1800),R={bucket:this.options.bucket,object:w},P=this._getResource(R);this.options.stsToken&&(S["security-token"]=this.options.stsToken);var N=d._signatureForURL(this.options.accessKeySecret,S,P,D),M=r.parse(this._getReqUrl(R));return M.query={OSSAccessKeyId:this.options.accessKeyId,Expires:D,Signature:N.Signature},i(N.subResource).to(M.query),M.format()},O.getObjectUrl=function(w,S){return S?S[S.length-1]!=="/"&&(S+="/"):S=this.options.endpoint.format(),S+this._escape(this._objectName(w))},O._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},O.generateObjectUrl=function(C,w){if(w)w[w.length-1]!=="/"&&(w+="/");else{w=this.options.endpoint.format();var S=r.parse(w),D=this.options.bucket;S.hostname=D+"."+S.hostname,S.host=D+"."+S.host,w=S.format()}return w+this._escape(this._objectName(C))},O._objectRequestParams=function(w,S,D){if(!this.options.bucket)throw new Error("Please create a bucket first");D=D||{},S=this._objectName(S);var R={object:S,bucket:this.options.bucket,method:w,subres:D&&D.subres,timeout:D&&D.timeout,ctx:D&&D.ctx};return D.headers&&(R.headers={},i(D.headers).to(R.headers)),R},O._objectName=function(w){return w.replace(/^\/+/,"")},O._convertMetaToHeaders=function(w,S){if(!w)return;(0,b.default)(w).forEach(function(D){S["x-oss-meta-"+D]=w[D]})},O._deleteFileSafe=function(w){var S=this;return new v.default(function(D){n.exists(w,function(R){R?n.unlink(w,function(P){P&&S.debug("unlink %j error: %s",w,P,"error"),D()}):D()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(j,W,y){"use strict";y.version="6.10.0"},{}],6:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(_){return _&&_.__esModule?_:{default:_}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=y;s.deleteBucketLifecycle=function(p,e){var a,n;return v.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g(p),a=this._bucketRequestParams("DELETE",p,"lifecycle",e),a.successStatuses=[204],r.next=5,v.default.awrap(this.request(a));case 5:return n=r.sent,r.abrupt("return",{res:n.res});case 7:case"end":return r.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(_){return _&&_.__esModule?_:{default:_}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=y;s.deleteBucketWebsite=function(p,e){var a,n;return v.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g(p),a=this._bucketRequestParams("DELETE",p,"website",e),a.successStatuses=[204],r.next=5,v.default.awrap(this.request(a));case 5:return n=r.sent,r.abrupt("return",{res:n.res});case 7:case"end":return r.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(n){return n&&n.__esModule?n:{default:n}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=j("../utils/isArray"),_=s.isArray,p=j("../utils/formatObjKey"),e=p.formatObjKey,a=y;a.getBucketLifecycle=function(l,r){var i,t,o;return v.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return g(l),i=this._bucketRequestParams("GET",l,"lifecycle",r),i.successStatuses=[200],i.xmlResponse=!0,d.next=6,v.default.awrap(this.request(i));case 6:return t=d.sent,o=t.data.Rule||null,o&&(_(o)||(o=[o]),o=o.map(function(f){return f.ID&&(f.id=f.ID,delete f.ID),f.Tag&&!_(f.Tag)&&(f.Tag=[f.Tag]),e(f,"firstLowerCase")})),d.abrupt("return",{rules:o,res:t.res});case 10:case"end":return d.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(_){return _&&_.__esModule?_:{default:_}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=y;s.getBucketVersioning=function(p,e){var a,n,l;return v.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return g(p),a=this._bucketRequestParams("GET",p,"versioning",e),a.xmlResponse=!0,a.successStatuses=[200],i.next=6,v.default.awrap(this.request(a));case 6:return n=i.sent,l=n.data.Status,i.abrupt("return",{status:n.status,versionStatus:l,res:n.res});case 9:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(e){return e&&e.__esModule?e:{default:e}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=j("../utils/isObject"),_=s.isObject,p=y;p.getBucketWebsite=function(a,n){var l,r,i;return v.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return g(a),l=this._bucketRequestParams("GET",a,"website",n),l.successStatuses=[200],l.xmlResponse=!0,o.next=6,v.default.awrap(this.request(l));case 6:return r=o.sent,i=[],r.data.RoutingRules&&r.data.RoutingRules.RoutingRule&&(_(r.data.RoutingRules.RoutingRule)?i=[r.data.RoutingRules.RoutingRule]:i=r.data.RoutingRules.RoutingRule),o.abrupt("return",{index:r.data.IndexDocument&&r.data.IndexDocument.Suffix||"",supportSubDir:r.data.IndexDocument&&r.data.IndexDocument.SupportSubDir||"false",type:r.data.IndexDocument&&r.data.IndexDocument.Type,routingRules:i,error:r.data.ErrorDocument&&r.data.ErrorDocument.Key||null,res:r.res});case 10:case"end":return o.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(x){return x&&x.__esModule?x:{default:x}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=j("../utils/isArray"),_=s.isArray,p=j("../utils/deepCopy"),e=p.deepCopy,a=j("../utils/isObject"),n=a.isObject,l=j("../utils/obj2xml"),r=l.obj2xml,i=j("../utils/checkObjectTag"),t=i.checkObjectTag,o=j("../utils/getStrBytesCount"),c=o.getStrBytesCount,d=y;d.putBucketLifecycle=function(O,C,w){var S,D,R,P,N;return v.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if(g(O),_(C)){z.next=3;break}throw new Error("rules must be Array");case 3:return S=this._bucketRequestParams("PUT",O,"lifecycle",w),D=[],R={LifecycleConfiguration:{Rule:D}},C.forEach(function(X){f(X),E(X),X.id&&(X.ID=X.id,delete X.id),D.push(X)}),P=r(R,{headers:!0,firstUpperCase:!0}),S.content=P,S.mime="xml",S.successStatuses=[200],z.next=13,v.default.awrap(this.request(S));case 13:return N=z.sent,z.abrupt("return",{res:N.res});case 15:case"end":return z.stop()}},null,this)};function f(x){x.days&&(x.expiration={days:x.days}),x.date&&(x.expiration={createdBeforeDate:x.date})}function h(x,O){var C=x.days,w=x.createdBeforeDate;if(!C&&!w)throw new Error(O+" must includes days or createdBeforeDate");if(C&&!/^[1-9][0-9]*$/.test(C))throw new Error("days must be a positive integer");if(w&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(w))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function u(x){if(!_(x)&&!n(x))throw new Error("tag must be Object or Array");x=n(x)?[x]:x;var O={},C=e(x);C.forEach(function(w){O[w.key]=w.value}),t(O)}function E(x){if(x.id&&c(x.id)>255)throw new Error("ID is composed of 255 bytes at most");if(x.prefix===""||x.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(x.status))throw new Error("Status must be Enabled or Disabled");if(x.transition){if(!["IA","Archive"].includes(x.transition.storageClass))throw new Error("StorageClass must be IA or Archive");h(x.transition,"Transition")}if(x.expiration){if(!x.expiration.expiredObjectDeleteMarker)h(x.expiration,"Expiration");else if(x.expiration.days||x.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(x.abortMultipartUpload&&h(x.abortMultipartUpload,"AbortMultipartUpload"),!x.expiration&&!x.abortMultipartUpload&&!x.transition&&!x.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(x.tag){if(x.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");u(x.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(e){return e&&e.__esModule?e:{default:e}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=j("../utils/obj2xml"),_=s.obj2xml,p=y;p.putBucketVersioning=function(a,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,t;return v.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(g(a),["Enabled","Suspended"].includes(n)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return r=this._bucketRequestParams("PUT",a,"versioning",l),i={VersioningConfiguration:{Status:n}},r.mime="xml",r.content=_(i,{headers:!0}),c.next=9,v.default.awrap(this.request(r));case 9:return t=c.sent,c.abrupt("return",{res:t.res,status:t.status});case 11:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(n){return n&&n.__esModule?n:{default:n}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=j("../utils/obj2xml"),_=s.obj2xml,p=j("../utils/isArray"),e=p.isArray,a=y;a.putBucketWebsite=function(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments[2],t,o,c,d,f;return v.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(g(l),t=this._bucketRequestParams("PUT",l,"website",i),o={Suffix:r.index||"index.html"},c={IndexDocument:o},d={WebsiteConfiguration:c},r.supportSubDir&&(o.SupportSubDir=r.supportSubDir),r.type&&(o.Type=r.type),r.error&&(c.ErrorDocument={Key:r.error}),!(r.routingRules!==void 0)){u.next=12;break}if(e(r.routingRules)){u.next=11;break}throw new Error("RoutingRules must be Array");case 11:c.RoutingRules={RoutingRule:r.routingRules};case 12:return d=_(d),t.content=d,t.mime="xml",t.successStatuses=[200],u.next=18,v.default.awrap(this.request(t));case 18:return f=u.sent,u.abrupt("return",{res:f.res});case 20:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(j,W,y){(function(I){"use strict";var v=j("babel-runtime/core-js/object/keys"),T=s(v),b=j("babel-runtime/core-js/json/stringify"),g=s(b);function s(_){return _&&_.__esModule?_:{default:_}}y.encodeCallback=function(p,e){if(p.headers=p.headers||{},!Object.prototype.hasOwnProperty.call(p.headers,"x-oss-callback")&&e.callback){var a={callbackUrl:encodeURI(e.callback.url),callbackBody:e.callback.body};e.callback.host&&(a.callbackHost=e.callback.host),e.callback.contentType&&(a.callbackBodyType=e.callback.contentType);var n=I.from((0,g.default)(a)).toString("base64");if(p.headers["x-oss-callback"]=n,e.callback.customValue){var l={};(0,T.default)(e.callback.customValue).forEach(function(r){l["x:"+r]=e.callback.customValue[r]}),p.headers["x-oss-callback-var"]=I.from((0,g.default)(l)).toString("base64")}}}}).call(this,j("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/assign"),v=T(I);function T(a){return a&&a.__esModule?a:{default:a}}var b=j("humanize-ms"),g=j("url"),s=j("../utils/checkBucketName"),_=s.checkBucketName;function p(a,n){var l=g.parse(a);if(l.protocol||(l=g.parse("http"+(n?"s":"")+"://"+a)),l.protocol!=="http:"&&l.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return l}function e(a,n,l){var r=l?"https://":"http://",i=n?"-internal.aliyuncs.com":".aliyuncs.com",t="vpc100-oss-cn-";return a.substr(0,t.length)===t&&(i=".aliyuncs.com"),g.parse(r+a+i)}W.exports=function(a){if(!a||!a.accessKeyId||!a.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");a.bucket&&_(a.bucket);var n=(0,v.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},a);if(n.accessKeyId=n.accessKeyId.trim(),n.accessKeySecret=n.accessKeySecret.trim(),n.timeout&&(n.timeout=b(n.timeout)),n.endpoint)n.endpoint=p(n.endpoint,n.secure);else if(n.region)n.endpoint=e(n.region,n.internal,n.secure);else throw new Error("require options.endpoint or options.region");return n.inited=!0,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(j,W,y){"use strict";var I=j("merge-descriptors"),v=y;I(v,j("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(n){return n&&n.__esModule?n:{default:n}}var b=j("../utils/checkBucketName"),g=b.checkBucketName,s=j("querystring"),_=j("js-base64"),p=_.Base64.encode,e=y;e.processObjectSave=function(l,r,i,t){var o,c,d,f;return v.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return a(l,"sourceObject"),a(r,"targetObject"),a(i,"process"),r=this._objectName(r),t&&g(t),o=this._objectRequestParams("POST",l,{subres:"x-oss-process"}),c=t?",b_"+p(t):"",r=p(r),d={"x-oss-process":i+"|sys/saveas,o_"+r+c},o.content=s.stringify(d),u.next=12,v.default.awrap(this.request(o));case 12:return f=u.sent,u.abrupt("return",{res:f.res,status:f.res.status});case 14:case"end":return u.stop()}},null,this)};function a(n,l){if(!n)throw new Error(l+" is required");if(typeof n!="string")throw new Error(l+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=T(I);function T(e){return e&&e.__esModule?e:{default:e}}var b=j("copy-to"),g=j("./callback"),s=j("./utils/deepCopy"),_=s.deepCopy,p=y;p.listUploads=function(a,n){var l,r,i,t;return v.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=n||{},l={},b(n).to(l),l.subres="uploads",r=this._objectRequestParams("GET","",l),r.query=a,r.xmlResponse=!0,r.successStatuses=[200],c.next=10,v.default.awrap(this.request(r));case 10:return i=c.sent,t=i.data.Upload||[],Array.isArray(t)||(t=[t]),t=t.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),c.abrupt("return",{res:i.res,uploads:t,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:i.data.IsTruncated==="true"});case 15:case"end":return c.stop()}},null,this)},p.listParts=function(a,n,l,r){var i,t,o;return v.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=r||{},i={},b(r).to(i),i.subres={uploadId:n},t=this._objectRequestParams("GET",a,i),t.query=l,t.xmlResponse=!0,t.successStatuses=[200],d.next=10,v.default.awrap(this.request(t));case 10:return o=d.sent,d.abrupt("return",{res:o.res,uploadId:o.data.UploadId,bucket:o.data.Bucket,name:o.data.Key,partNumberMarker:o.data.PartNumberMarker,nextPartNumberMarker:o.data.NextPartNumberMarker,maxParts:o.data.MaxParts,isTruncated:o.data.IsTruncated,parts:o.data.Part||[]});case 12:case"end":return d.stop()}},null,this)},p.abortMultipartUpload=function(a,n,l){var r,i,t;return v.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),l=l||{},r={},b(l).to(r),r.subres={uploadId:n},i=this._objectRequestParams("DELETE",a,r),i.successStatuses=[204],c.next=9,v.default.awrap(this.request(i));case 9:return t=c.sent,c.abrupt("return",{res:t.res});case 11:case"end":return c.stop()}},null,this)},p.initMultipartUpload=function(a,n){var l,r,i;return v.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=n||{},l={},b(n).to(l),l.headers=l.headers||{},this._convertMetaToHeaders(n.meta,l.headers),l.subres="uploads",r=this._objectRequestParams("POST",a,l),r.mime=n.mime,r.xmlResponse=!0,r.successStatuses=[200],o.next=12,v.default.awrap(this.request(r));case 12:return i=o.sent,o.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return o.stop()}},null,this)},p.uploadPart=function(a,n,l,r,i,t,o){var c;return v.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return c={stream:this._createStream(r,i,t),size:t-i},f.next=3,v.default.awrap(this._uploadPart(a,n,l,c,o));case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},null,this)},p.completeMultipartUpload=function(a,n,l,r){var i,t,o,c,d,f,h,u;return v.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:for(i=l.concat().sort(function(O,C){return O.number-C.number}).filter(function(O,C,w){return!C||O.number!==w[C-1].number}),t=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,o=0;o<i.length;o++)c=i[o],t+=`<Part>
`,t+="<PartNumber>"+c.number+`</PartNumber>
`,t+="<ETag>"+c.etag+`</ETag>
`,t+=`</Part>
`;return t+="</CompleteMultipartUpload>",r=r||{},d={},d=_(r),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:n},f=this._objectRequestParams("POST",a,d),g.encodeCallback(f,d),f.mime="xml",f.content=t,f.headers&&f.headers["x-oss-callback"]||(f.xmlResponse=!0),f.successStatuses=[200],x.next=17,v.default.awrap(this.request(f));case 17:return h=x.sent,u={res:h.res,bucket:f.bucket,name:a,etag:h.res.headers.etag},f.headers&&f.headers["x-oss-callback"]&&(u.data=JSON.parse(h.data.toString())),x.abrupt("return",u);case 21:case"end":return x.stop()}},null,this)},p._uploadPart=function(a,n,l,r,i){var t,o,c;return v.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return i=i||{},t={},b(i).to(t),t.headers={"Content-Length":r.size},t.subres={partNumber:l,uploadId:n},o=this._objectRequestParams("PUT",a,t),o.mime=t.mime,o.stream=r.stream,o.successStatuses=[200],f.next=11,v.default.awrap(this.request(o));case 11:if(c=f.sent,c.res.headers.etag){f.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return r.stream=null,o.stream=null,f.abrupt("return",{name:a,etag:c.res.headers.etag,res:c.res});case 17:case"end":return f.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=_(I),T=j("babel-runtime/core-js/object/keys"),b=_(T),g=j("babel-runtime/helpers/typeof"),s=_(g);function _(n){return n&&n.__esModule?n:{default:n}}var p=j("../utils/checkBucketName"),e=p.checkBucketName,a=y;a.copy=function(l,r,i,t){var o,c,d;return v.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return(typeof i=="undefined"?"undefined":(0,s.default)(i))==="object"&&(t=i),t=t||{},t.headers=t.headers||{},(0,b.default)(t.headers).forEach(function(u){t.headers["x-oss-copy-source-"+u.toLowerCase()]=t.headers[u]}),t.meta&&(t.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(t.meta,t.headers),r=this._getSourceName(r,i),t.versionId&&(r=r+"?versionId="+t.versionId),t.headers["x-oss-copy-source"]=r,o=this._objectRequestParams("PUT",l,t),o.xmlResponse=!0,o.successStatuses=[200,304],h.next=14,v.default.awrap(this.request(o));case 14:return c=h.sent,d=c.data,d&&(d={etag:d.ETag,lastModified:d.LastModified}),h.abrupt("return",{data:d,res:c.res});case 18:case"end":return h.stop()}},null,this)},a._getSourceName=function(l,r){return typeof r=="string"?l=this._objectName(l):l[0]!=="/"?r=this.options.bucket:(r=l.replace(/\/(.+?)(\/.*)/,"$1"),l=l.replace(/(\/.+?\/)(.*)/,"$2")),e(r),l=encodeURI(l),l="/"+r+"/"+l,l}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s.delete=function(p){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n;return v.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e.subres=(0,b.default)({},e.subres),e.versionId&&(e.subres.versionId=e.versionId),a=this._objectRequestParams("DELETE",p,e),a.successStatuses=[204],r.next=6,v.default.awrap(this.request(a));case 6:return n=r.sent,r.abrupt("return",{res:n.res});case 8:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(a){return a&&a.__esModule?a:{default:a}}var s=j("utility"),_=j("../utils/obj2xml"),p=_.obj2xml,e=y;e.deleteMulti=function(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,t,o,c,d,f,h,u,E,x,O;return v.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(r=[],!(!n||!n.length)){w.next=3;break}throw new Error("names is required");case 3:for(i=0;i<n.length;i++)t={},typeof n[i]=="string"?t.Key=s.escape(this._objectName(n[i])):(o=n[i],c=o.key,d=o.versionId,t.Key=s.escape(this._objectName(c)),t.VersionId=d),r.push(t);return f={Delete:{Quiet:!!l.quiet,Object:r}},h=p(f,{headers:!0}),l.subres=(0,b.default)({delete:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),u=this._objectRequestParams("POST","",l),u.mime="xml",u.content=h,u.xmlResponse=!0,u.successStatuses=[200],w.next=15,v.default.awrap(this.request(u));case 15:return E=w.sent,x=E.data,O=x&&x.Deleted||null,O&&(Array.isArray(O)||(O=[O])),w.abrupt("return",{res:E.res,deleted:O||[]});case 20:case"end":return w.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s.deleteObjectTagging=function(p){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n;return v.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e.subres=(0,b.default)({tagging:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),p=this._objectName(p),a=this._objectRequestParams("DELETE",p,e),a.successStatuses=[204],r.next=7,v.default.awrap(this.request(a));case 7:return n=r.sent,r.abrupt("return",{status:n.status,res:n.res});case 9:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(e){return e&&e.__esModule?e:{default:e}}var s=j("fs"),_=j("is-type-of"),p=y;p.get=function(a,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,t,o;return v.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=null,i=!1,_.writableStream(n)?r=n:_.string(n)?(r=s.createWriteStream(n),i=!0):l=n,l=l||{},l.subres=(0,b.default)({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.process&&(l.subres["x-oss-process"]=l.process),t=void 0,d.prev=8,o=this._objectRequestParams("GET",a,l),o.writeStream=r,o.successStatuses=[200,206,304],d.next=14,v.default.awrap(this.request(o));case 14:t=d.sent,i&&r.destroy(),d.next=25;break;case 18:if(d.prev=18,d.t0=d.catch(8),!i){d.next=24;break}return r.destroy(),d.next=24,v.default.awrap(this._deleteFileSafe(n));case 24:throw d.t0;case 25:return d.abrupt("return",{res:t.res,content:t.data});case 26:case"end":return d.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s.getACL=function(p){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n;return v.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e.subres=(0,b.default)({acl:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),p=this._objectName(p),a=this._objectRequestParams("GET",p,e),a.successStatuses=[200],a.xmlResponse=!0,r.next=8,v.default.awrap(this.request(a));case 8:return n=r.sent,r.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 10:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/keys"),v=_(I),T=j("babel-runtime/regenerator"),b=_(T),g=j("babel-runtime/core-js/object/assign"),s=_(g);function _(o){return o&&o.__esModule?o:{default:o}}var p=y,e=j("../utils/isObject"),a=e.isObject,n=j("../utils/isArray"),l=n.isArray;p.getBucketVersions=r,p.listObjectVersions=r;function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,f,h,u,E,x;return b.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(o.versionIdMarker&&o.keyMarker===void 0)){C.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return c.subres=(0,s.default)({versions:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),d=this._objectRequestParams("GET","",c),d.xmlResponse=!0,d.successStatuses=[200],d.query=t(o),C.next=10,b.default.awrap(this.request(d));case 10:return f=C.sent,h=f.data.Version||[],u=f.data.DeleteMarker||[],E=this,h&&(Array.isArray(h)||(h=[h]),h=h.map(function(w){return{name:w.Key,url:E._objectUrl(w.Key),lastModified:w.LastModified,isLatest:w.IsLatest==="true",versionId:w.VersionId,etag:w.ETag,type:w.Type,size:Number(w.Size),storageClass:w.StorageClass,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),u&&(l(u)||(u=[u]),u=u.map(function(w){return{name:w.Key,lastModified:w.LastModified,versionId:w.VersionId,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),x=f.data.CommonPrefixes||null,x&&(l(x)||(x=[x]),x=x.map(function(w){return w.Prefix})),C.abrupt("return",{res:f.res,objects:h,deleteMarker:u,prefixes:x,nextMarker:f.data.NextMarker||null,NextVersionIdMarker:f.data.NextVersionIdMarker||null,isTruncated:f.data.IsTruncated==="true"});case 19:case"end":return C.stop()}},null,this)}function i(o){return o.replace(/([A-Z])/g,"-$1").toLowerCase()}function t(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return a(o)&&(0,v.default)(o).forEach(function(d){c[i(d)]=o[d]}),c}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s.getObjectMeta=function(p,e){var a,n;return v.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e=e||{},p=this._objectName(p),e.subres=(0,b.default)({objectMeta:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),a=this._objectRequestParams("HEAD",p,e),a.successStatuses=[200],r.next=8,v.default.awrap(this.request(a));case 8:return n=r.sent,r.abrupt("return",{status:n.status,res:n.res});case 10:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(e){return e&&e.__esModule?e:{default:e}}var s=y,_=j("../utils/isObject"),p=_.isObject;s.getObjectTagging=function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,r,i,t,o;return v.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n.subres=(0,b.default)({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),a=this._objectName(a),l=this._objectRequestParams("GET",a,n),l.successStatuses=[200],d.next=7,v.default.awrap(this.request(l));case 7:return r=d.sent,d.next=10,v.default.awrap(this.parseXML(r.data));case 10:return i=d.sent,t=i.TagSet.Tag,t=t&&p(t)?[t]:t||[],o={},t.forEach(function(f){o[f.Key]=f.Value}),d.abrupt("return",{status:r.status,res:r.res,tag:o});case 16:case"end":return d.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s.getSymlink=function(p){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n,l;return v.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e.subres=(0,b.default)({symlink:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),p=this._objectName(p),a=this._objectRequestParams("GET",p,e),a.successStatuses=[200],i.next=7,v.default.awrap(this.request(a));case 7:return n=i.sent,l=n.res.headers["x-oss-symlink-target"],i.abrupt("return",{targetName:decodeURIComponent(l),res:n.res});case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=_(I),T=j("babel-runtime/core-js/object/keys"),b=_(T),g=j("babel-runtime/core-js/object/assign"),s=_(g);function _(e){return e&&e.__esModule?e:{default:e}}var p=y;p.head=function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,r,i;return v.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return n.subres=(0,s.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),l=this._objectRequestParams("HEAD",a,n),l.successStatuses=[200,304],o.next=6,v.default.awrap(this.request(l));case 6:return r=o.sent,i={meta:null,res:r.res,status:r.status},r.status===200&&(0,b.default)(r.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(i.meta||(i.meta={}),i.meta[c.substring(11)]=r.headers[c])}),o.abrupt("return",i);case 10:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s.putACL=function(p,e,a){var n,l;return v.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return a=a||{},a.subres=(0,b.default)({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.headers=a.headers||{},a.headers["x-oss-object-acl"]=e,p=this._objectName(p),n=this._objectRequestParams("PUT",p,a),n.successStatuses=[200],i.next=10,v.default.awrap(this.request(n));case 10:return l=i.sent,i.abrupt("return",{res:l.res});case 12:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=_(I),T=j("babel-runtime/core-js/object/keys"),b=_(T),g=j("babel-runtime/core-js/object/assign"),s=_(g);function _(r){return r&&r.__esModule?r:{default:r}}var p=j("../utils/obj2xml"),e=p.obj2xml,a=j("../utils/checkObjectTag"),n=a.checkObjectTag,l=y;l.putObjectTagging=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,d,f;return v.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return n(t),o.subres=(0,s.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),i=this._objectName(i),c=this._objectRequestParams("PUT",i,o),c.successStatuses=[200],t=(0,b.default)(t).map(function(E){return{Key:E,Value:t[E]}}),d={Tagging:{TagSet:{Tag:t}}},c.mime="xml",c.content=e(d),u.next=12,v.default.awrap(this.request(c));case 12:return f=u.sent,u.abrupt("return",{res:f.res,status:f.status});case 14:case"end":return u.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/object/assign"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s.putSymlink=function(p,e,a){var n,l;return v.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return a=a||{},a.headers=a.headers||{},e=this._escape(this._objectName(e)),this._convertMetaToHeaders(a.meta,a.headers),a.headers["x-oss-symlink-target"]=e,a.subres=(0,b.default)({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.storageClass&&(a.headers["x-oss-storage-class"]=a.storageClass),p=this._objectName(p),n=this._objectRequestParams("PUT",p,a),n.successStatuses=[200],i.next=13,v.default.awrap(this.request(n));case 13:return l=i.sent,i.abrupt("return",{res:l.res});case 15:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(j,W,y){"use strict";var I=j("babel-runtime/regenerator"),v=g(I),T=j("babel-runtime/core-js/promise"),b=g(T);function g(_){return _&&_.__esModule?_:{default:_}}var s=y;s._parallelNode=function(p,e,a,n){var l,r,i,t,o,c,d,f;return v.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:l=this,r=[],i=[],t=p.length/e,o=p.length%e,c=o===0?t:(p.length-o)/e+1,d=1,f=0;case 8:if(!(f<p.length)){u.next=26;break}if(!l.isCancel()){u.next=11;break}return u.abrupt("break",26);case 11:if(n?i.push(a(l,p[f],n)):i.push(a(l,p[f])),!(i.length===e||d===c&&f===p.length-1)){u.next=23;break}return u.prev=13,d+=1,u.next=17,v.default.awrap(b.default.all(i));case 17:u.next=22;break;case 19:u.prev=19,u.t0=u.catch(13),r.push(u.t0);case 22:i=[];case 23:f++,u.next=8;break;case 26:return u.abrupt("return",r);case 27:case"end":return u.stop()}},null,this,[[13,19]])},s._parallel=function(p,e,a){var n=this;return new b.default(function(l){var r=[];if(e<=0||!p){l(r);return}function i(x){return function(){if(x===null)throw new Error("Callback was already called.");var O=x;x=null;for(var C=arguments.length,w=Array(C),S=0;S<C;S++)w[S]=arguments[S];O.apply(this,w)}}function t(x){var O=-1,C=x.length;return function(){return++O<C&&!n.isCancel()?{value:x[O],key:O}:null}}var o=t(p),c=!1,d=0,f=!1;function h(x,O){d-=1,x?(c=!0,r.push(x),l(r)):O==={}||c&&d<=0?(c=!0,l(r)):f||(n.isCancel()?l(r):E())}function u(x,O){a(x).then(function(C){O(null,C)}).catch(function(C){O(C)})}function E(){for(f=!0;d<e&&!c&&!n.isCancel();){var x=o();if(x===null||r.length>0){c=!0,d<=0&&l(r);return}d+=1,u(x.value,i(h))}f=!1}E()})},s.cancel=function(p){this.options.cancelFlag=!0,p&&this.abortMultipartUpload(p.name,p.uploadId,p.options)},s.isCancel=function(){return this.options.cancelFlag},s.resetCancelFlag=function(){this.options.cancelFlag=!1},s._stop=function(){this.options.cancelFlag=!0},s._makeCancelEvent=function(){var p={status:0,name:"cancel"};return p}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(j,W,y){(function(I){"use strict";var v=j("babel-runtime/core-js/json/stringify"),T=s(v),b=j("babel-runtime/core-js/object/keys"),g=s(b);function s(e){return e&&e.__esModule?e:{default:e}}var _=j("./../../shims/crypto/crypto.js"),p=j("is-type-of");y.buildCanonicalizedResource=function(a,n){var l=""+a,r="?";if(p.string(n)&&n.trim()!=="")l+=r+n;else if(p.array(n))n.sort(),l+=r+n.join("&");else if(n){var i=function(c,d){return c[0]>d[0]?1:c[0]<d[0]?-1:0},t=function(c){l+=r+c,n[c]&&(l+="="+n[c]),r="&"};(0,g.default)(n).sort(i).forEach(t)}return l},y.buildCanonicalString=function(a,n,l,r){l=l||{};var i=l.headers||{},t="x-oss-",o=[],c={},d=[a.toUpperCase(),i["Content-Md5"]||"",i["Content-Type"]||i["Content-Type".toLowerCase()],r||i["x-oss-date"]];return(0,g.default)(i).forEach(function(f){var h=f.toLowerCase();h.indexOf(t)===0&&(c[h]=String(i[f]).trim())}),(0,g.default)(c).sort().forEach(function(f){o.push(f+":"+c[f])}),d=d.concat(o),d.push(this.buildCanonicalizedResource(n,l.parameters)),d.join(`
`)},y.computeSignature=function(a,n){var l=_.createHmac("sha1",a);return l.update(I.from(n,"utf8")).digest("base64")},y.authorization=function(a,n,l){return"OSS "+a+":"+this.computeSignature(n,l)},y._signatureForURL=function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],r=arguments[3],i={},t=n.subResource,o=t===void 0?{}:t;if(n.process){var c="x-oss-process";o[c]=n.process}if(n.trafficLimit){var d="x-oss-traffic-limit";o[d]=n.trafficLimit}if(n.response&&(0,g.default)(n.response).forEach(function(E){var x="response-"+E.toLowerCase();o[x]=n.response[E]}),(0,g.default)(n).forEach(function(E){var x=E.toLowerCase(),O=n[E];x.indexOf("x-oss-")===0?i[x]=O:(x.indexOf("content-md5")===0||x.indexOf("content-type")===0)&&(i[E]=O)}),Object.prototype.hasOwnProperty.call(n,"security-token")&&(o["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var f={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(f.callbackHost=n.callback.host),n.callback.contentType&&(f.callbackBodyType=n.callback.contentType),o.callback=I.from((0,T.default)(f)).toString("base64"),n.callback.customValue){var h={};(0,g.default)(n.callback.customValue).forEach(function(E){h["x:"+E]=n.callback.customValue[E]}),o["callback-var"]=I.from((0,T.default)(h)).toString("base64")}}var u=this.buildCanonicalString(n.method,l,{headers:i,parameters:o},r.toString());return{Signature:this.computeSignature(a,u),subResource:o}}}).call(this,j("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.checkBucketName=void 0,y.checkBucketName=function(I,v){var T=v?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.test(I))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/entries"),v=T(I);function T(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(y,"__esModule",{value:!0}),y.checkObjectTag=void 0;var b=j("./checkValid"),g=b.checkValid,s=j("./isObject"),_=s.isObject,p=[{validator:function(l){if(typeof l!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],e={key:[].concat(p,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(p,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function a(n){if(!_(n))throw new Error("tag must be Object");var l=(0,v.default)(n);if(l.length>10)throw new Error("maximum of 10 tags for a object");var r=["key","value"];l.forEach(function(i){i.forEach(function(t,o){g(t,e[r[o]])})})}y.checkObjectTag=a},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.checkValid=void 0;function I(v,T){T.forEach(function(b){if(b.validator)b.validator(v);else if(b.pattern&&!b.pattern.test(v))throw new Error(b.msg)})}y.checkValid=I},{}],38:[function(j,W,y){(function(I){"use strict";var v=j("babel-runtime/core-js/object/assign"),T=b(v);function b(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(y,"__esModule",{value:!0}),y.createRequest=void 0;var g=j("./../../../shims/crypto/crypto.js"),s=j("debug")("ali-oss"),_=j("mime"),p=j("dateformat"),e=j("copy-to"),a=j("path");function n(i,t){return i[t]||i[t.toLowerCase()]}function l(i,t){delete i[t],delete i[t.toLowerCase()]}function r(i){var t=new Date;this.options.amendTimeSkewed&&(t=+new Date+this.options.amendTimeSkewed);var o={"x-oss-date":p(t,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(o["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(o,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(o["x-oss-security-token"]=this.options.stsToken),e(i.headers).to(o),n(o,"Content-Type")||(i.mime&&i.mime.indexOf("/")>0?o["Content-Type"]=i.mime:o["Content-Type"]=_.getType(i.mime||a.extname(i.object||""))),n(o,"Content-Type")||l(o,"Content-Type"),i.content&&(o["Content-Md5"]=g.createHash("md5").update(I.from(i.content,"utf8")).digest("base64"),o["Content-Length"]||(o["Content-Length"]=i.content.length));var c=this._getResource(i);o.authorization=this.authorization(i.method,c,i.subres,o);var d=this._getReqUrl(i);s("request %s %s, with headers %j, !!stream: %s",i.method,d,o,!!i.stream);var f=i.timeout||this.options.timeout,h={method:i.method,content:i.content,stream:i.stream,headers:o,timeout:f,writeStream:i.writeStream,customResponse:i.customResponse,ctx:i.ctx||this.ctx};return this.agent&&(h.agent=this.agent),this.httpsAgent&&(h.httpsAgent=this.httpsAgent),{url:d,params:h}}y.createRequest=r}).call(this,j("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/keys"),v=g(I),T=j("babel-runtime/helpers/typeof"),b=g(T);function g(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(y,"__esModule",{value:!0}),y.deepCopy=void 0,y.deepCopy=function(s){if(s===null||(typeof s=="undefined"?"undefined":(0,b.default)(s))!=="object")return s;var _=Array.isArray(s)?[]:{};return(0,v.default)(s).forEach(function(p){_[p]=y.deepCopy(s[p])}),_}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/keys"),v=g(I),T=j("babel-runtime/helpers/typeof"),b=g(T);function g(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(y,"__esModule",{value:!0}),y.formatObjKey=void 0;function s(p,e){if(p===null||(typeof p=="undefined"?"undefined":(0,b.default)(p))!=="object")return p;var a=void 0;if(Array.isArray(p)){a=[];for(var n=0;n<p.length;n++)a.push(s(p[n],e))}else a={},(0,v.default)(p).forEach(function(l){a[_(l,e)]=s(p[l],e)});return a}y.formatObjKey=s;function _(p,e){return e==="firstUpperCase"?p=p.replace(/^./,function(a){return a.toUpperCase()}):e==="firstLowerCase"&&(p=p.replace(/^./,function(a){return a.toLowerCase()})),p}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.getStrBytesCount=void 0;function I(v){for(var T=0,b=0;b<v.length;b++){var g=v.charAt(b);/^[\u00-\uff]$/.test(g)?T+=1:T+=2}return T}y.getStrBytesCount=I},{}],42:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.isArray=void 0,y.isArray=function(I){return Object.prototype.toString.call(I)==="[object Array]"}},{}],43:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.isBlob=void 0;function I(v){return typeof Blob!="undefined"&&v instanceof Blob}y.isBlob=I},{}],44:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.isFile=void 0,y.isFile=function(I){return typeof File!="undefined"&&I instanceof File}},{}],45:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.isIP=void 0,y.isIP=function(I){var v=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,T=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return v.test(I)||T.test(I)}},{}],46:[function(j,W,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.isObject=void 0,y.isObject=function(I){return Object.prototype.toString.call(I)==="[object Object]"}},{}],47:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/keys"),v=T(I);function T(_){return _&&_.__esModule?_:{default:_}}Object.defineProperty(y,"__esModule",{value:!0}),y.obj2xml=void 0;var b=j("./formatObjKey");function g(_){return Object.prototype.toString.call(_).replace(/(.*? |])/g,"").toLowerCase()}function s(_,p){var e="";return p&&p.headers&&(e=`<?xml version="1.0" encoding="UTF-8"?>
`),p&&p.firstUpperCase&&(_=b.formatObjKey(_,"firstUpperCase")),g(_)==="object"?(0,v.default)(_).forEach(function(a){g(_[a])==="string"||g(_[a])==="number"?e+="<"+a+">"+_[a]+"</"+a+">":g(_[a])==="object"?e+="<"+a+">"+s(_[a])+"</"+a+">":g(_[a])==="array"?e+=_[a].map(function(n){return"<"+a+">"+s(n)+"</"+a+">"}).join(""):e+="<"+a+">"+_[a].toString()+"</"+a+">"}):e+=_.toString(),e}y.obj2xml=s},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(j,W,y){W.exports=I,W.exports.HttpsAgent=I;function I(){}},{}],49:[function(j,W,y){W.exports=j("./register")().Promise},{"./register":51}],50:[function(j,W,y){"use strict";var I="@@any-promise/REGISTRATION",v=null;W.exports=function(T,b){return function(s,_){s=s||null,_=_||{};var p=_.global!==!1;if(v===null&&p&&(v=T[I]||null),v!==null&&s!==null&&v.implementation!==s)throw new Error('any-promise already defined as "'+v.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return v===null&&(s!==null&&typeof _.Promise!="undefined"?v={Promise:_.Promise,implementation:s}:v=b(s),p&&(T[I]=v)),v}}},{}],51:[function(j,W,y){"use strict";W.exports=j("./loader")(window,I);function I(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(j,W,y){W.exports={default:j("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(j,W,y){W.exports={default:j("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(j,W,y){W.exports={default:j("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(j,W,y){W.exports={default:j("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(j,W,y){W.exports={default:j("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(j,W,y){W.exports={default:j("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(j,W,y){W.exports={default:j("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(j,W,y){W.exports={default:j("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(j,W,y){W.exports={default:j("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(j,W,y){W.exports={default:j("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(j,W,y){W.exports={default:j("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(j,W,y){W.exports={default:j("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(j,W,y){W.exports={default:j("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(j,W,y){W.exports={default:j("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(j,W,y){W.exports={default:j("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(j,W,y){"use strict";y.__esModule=!0;var I=j("../core-js/symbol/iterator"),v=s(I),T=j("../core-js/symbol"),b=s(T),g=typeof b.default=="function"&&typeof v.default=="symbol"?function(_){return typeof _}:function(_){return _&&typeof b.default=="function"&&_.constructor===b.default&&_!==b.default.prototype?"symbol":typeof _};function s(_){return _&&_.__esModule?_:{default:_}}y.default=typeof b.default=="function"&&g(v.default)==="symbol"?function(_){return typeof _=="undefined"?"undefined":g(_)}:function(_){return _&&typeof b.default=="function"&&_.constructor===b.default&&_!==b.default.prototype?"symbol":typeof _=="undefined"?"undefined":g(_)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(j,W,y){W.exports=j("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(j,W,y){"use strict";y.byteLength=p,y.toByteArray=a,y.fromByteArray=r;for(var I=[],v=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,s=b.length;g<s;++g)I[g]=b[g],v[b.charCodeAt(g)]=g;v["-".charCodeAt(0)]=62,v["_".charCodeAt(0)]=63;function _(i){var t=i.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=i.indexOf("=");o===-1&&(o=t);var c=o===t?0:4-o%4;return[o,c]}function p(i){var t=_(i),o=t[0],c=t[1];return(o+c)*3/4-c}function e(i,t,o){return(t+o)*3/4-o}function a(i){var t,o=_(i),c=o[0],d=o[1],f=new T(e(i,c,d)),h=0,u=d>0?c-4:c,E;for(E=0;E<u;E+=4)t=v[i.charCodeAt(E)]<<18|v[i.charCodeAt(E+1)]<<12|v[i.charCodeAt(E+2)]<<6|v[i.charCodeAt(E+3)],f[h++]=t>>16&255,f[h++]=t>>8&255,f[h++]=t&255;return d===2&&(t=v[i.charCodeAt(E)]<<2|v[i.charCodeAt(E+1)]>>4,f[h++]=t&255),d===1&&(t=v[i.charCodeAt(E)]<<10|v[i.charCodeAt(E+1)]<<4|v[i.charCodeAt(E+2)]>>2,f[h++]=t>>8&255,f[h++]=t&255),f}function n(i){return I[i>>18&63]+I[i>>12&63]+I[i>>6&63]+I[i&63]}function l(i,t,o){for(var c,d=[],f=t;f<o;f+=3)c=(i[f]<<16&16711680)+(i[f+1]<<8&65280)+(i[f+2]&255),d.push(n(c));return d.join("")}function r(i){for(var t,o=i.length,c=o%3,d=[],f=16383,h=0,u=o-c;h<u;h+=f)d.push(l(i,h,h+f>u?u:h+f));return c===1?(t=i[o-1],d.push(I[t>>2]+I[t<<4&63]+"==")):c===2&&(t=(i[o-2]<<8)+i[o-1],d.push(I[t>>10]+I[t>>4&63]+I[t<<2&63]+"=")),d.join("")}},{}],70:[function(j,W,y){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(I,v,T){typeof W!="undefined"&&W.exports?W.exports=T():typeof define=="function"&&define.amd?define(v,T):I[v]=T()}(this,"bowser",function(){var I=!0;function v(e){function a(F){var U=e.match(F);return U&&U.length>1&&U[1]||""}function n(F){var U=e.match(F);return U&&U.length>1&&U[2]||""}var l=a(/(ipod|iphone|ipad)/i).toLowerCase(),r=/like android/i.test(e),i=!r&&/android/i.test(e),t=/nexus\s*[0-6]\s*/i.test(e),o=!t&&/nexus\s*[0-9]+/i.test(e),c=/CrOS/.test(e),d=/silk/i.test(e),f=/sailfish/i.test(e),h=/tizen/i.test(e),u=/(web|hpw)(o|0)s/i.test(e),E=/windows phone/i.test(e),x=/SamsungBrowser/i.test(e),O=!E&&/windows/i.test(e),C=!l&&!d&&/macintosh/i.test(e),w=!i&&!f&&!h&&!u&&/linux/i.test(e),S=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),D=a(/version\/(\d+(\.\d+)?)/i),R=/tablet/i.test(e)&&!/tablet pc/i.test(e),P=!R&&/[^-]mobi/i.test(e),N=/xbox/i.test(e),M;/opera/i.test(e)?M={name:"Opera",opera:I,version:D||a(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?M={name:"Opera",opera:I,version:a(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||D}:/SamsungBrowser/i.test(e)?M={name:"Samsung Internet for Android",samsungBrowser:I,version:D||a(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?M={name:"NAVER Whale browser",whale:I,version:a(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?M={name:"MZ Browser",mzbrowser:I,version:a(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?M={name:"Opera Coast",coast:I,version:D||a(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?M={name:"Focus",focus:I,version:a(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?M={name:"Yandex Browser",yandexbrowser:I,version:D||a(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?M={name:"UC Browser",ucbrowser:I,version:a(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?M={name:"Maxthon",maxthon:I,version:a(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?M={name:"Epiphany",epiphany:I,version:a(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?M={name:"Puffin",puffin:I,version:a(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?M={name:"Sleipnir",sleipnir:I,version:a(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?M={name:"K-Meleon",kMeleon:I,version:a(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:E?(M={name:"Windows Phone",osname:"Windows Phone",windowsphone:I},S?(M.msedge=I,M.version=S):(M.msie=I,M.version=a(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?M={name:"Internet Explorer",msie:I,version:a(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?M={name:"Chrome",osname:"Chrome OS",chromeos:I,chromeBook:I,chrome:I,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?M={name:"Microsoft Edge",msedge:I,version:S}:/vivaldi/i.test(e)?M={name:"Vivaldi",vivaldi:I,version:a(/vivaldi\/(\d+(\.\d+)?)/i)||D}:f?M={name:"Sailfish",osname:"Sailfish OS",sailfish:I,version:a(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?M={name:"SeaMonkey",seamonkey:I,version:a(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(M={name:"Firefox",firefox:I,version:a(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(M.firefoxos=I,M.osname="Firefox OS")):d?M={name:"Amazon Silk",silk:I,version:a(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?M={name:"PhantomJS",phantom:I,version:a(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?M={name:"SlimerJS",slimer:I,version:a(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?M={name:"BlackBerry",osname:"BlackBerry OS",blackberry:I,version:D||a(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:u?(M={name:"WebOS",osname:"WebOS",webos:I,version:D||a(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(M.touchpad=I)):/bada/i.test(e)?M={name:"Bada",osname:"Bada",bada:I,version:a(/dolfin\/(\d+(\.\d+)?)/i)}:h?M={name:"Tizen",osname:"Tizen",tizen:I,version:a(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||D}:/qupzilla/i.test(e)?M={name:"QupZilla",qupzilla:I,version:a(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||D}:/chromium/i.test(e)?M={name:"Chromium",chromium:I,version:a(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||D}:/chrome|crios|crmo/i.test(e)?M={name:"Chrome",chrome:I,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?M={name:"Android",version:D}:/safari|applewebkit/i.test(e)?(M={name:"Safari",safari:I},D&&(M.version=D)):l?(M={name:l=="iphone"?"iPhone":l=="ipad"?"iPad":"iPod"},D&&(M.version=D)):/googlebot/i.test(e)?M={name:"Googlebot",googlebot:I,version:a(/googlebot\/(\d+(\.\d+))/i)||D}:M={name:a(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!M.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(M.name=M.name||"Blink",M.blink=I):(M.name=M.name||"Webkit",M.webkit=I),!M.version&&D&&(M.version=D)):!M.opera&&/gecko\//i.test(e)&&(M.name=M.name||"Gecko",M.gecko=I,M.version=M.version||a(/gecko\/(\d+(\.\d+)?)/i)),!M.windowsphone&&(i||M.silk)?(M.android=I,M.osname="Android"):!M.windowsphone&&l?(M[l]=I,M.ios=I,M.osname="iOS"):C?(M.mac=I,M.osname="macOS"):N?(M.xbox=I,M.osname="Xbox"):O?(M.windows=I,M.osname="Windows"):w&&(M.linux=I,M.osname="Linux");function z(F){switch(F){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var X="";M.windows?X=z(a(/Windows ((NT|XP)( \d\d?.\d)?)/i)):M.windowsphone?X=a(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):M.mac?(X=a(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):l?(X=a(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):i?X=a(/android[ \/-](\d+(\.\d+)*)/i):M.webos?X=a(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):M.blackberry?X=a(/rim\stablet\sos\s(\d+(\.\d+)*)/i):M.bada?X=a(/bada\/(\d+(\.\d+)*)/i):M.tizen&&(X=a(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(M.osversion=X);var k=!M.windows&&X.split(".")[0];return R||o||l=="ipad"||i&&(k==3||k>=4&&!P)||M.silk?M.tablet=I:(P||l=="iphone"||l=="ipod"||i||t||M.blackberry||M.webos||M.bada)&&(M.mobile=I),M.msedge||M.msie&&M.version>=10||M.yandexbrowser&&M.version>=15||M.vivaldi&&M.version>=1||M.chrome&&M.version>=20||M.samsungBrowser&&M.version>=4||M.whale&&s([M.version,"1.0"])===1||M.mzbrowser&&s([M.version,"6.0"])===1||M.focus&&s([M.version,"1.0"])===1||M.firefox&&M.version>=20||M.safari&&M.version>=6||M.opera&&M.version>=10||M.ios&&M.osversion&&M.osversion.split(".")[0]>=6||M.blackberry&&M.version>=10.1||M.chromium&&M.version>=20?M.a=I:M.msie&&M.version<10||M.chrome&&M.version<20||M.firefox&&M.version<20||M.safari&&M.version<6||M.opera&&M.version<10||M.ios&&M.osversion&&M.osversion.split(".")[0]<6||M.chromium&&M.version<20?M.c=I:M.x=I,M}var T=v(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(e){for(var a=0;a<e.length;++a){var n=e[a];if(typeof n=="string"&&n in T)return!0}return!1};function b(e){return e.split(".").length}function g(e,a){var n=[],l;if(Array.prototype.map)return Array.prototype.map.call(e,a);for(l=0;l<e.length;l++)n.push(a(e[l]));return n}function s(e){for(var a=Math.max(b(e[0]),b(e[1])),n=g(e,function(l){var r=a-b(l);return l=l+new Array(r+1).join(".0"),g(l.split("."),function(i){return new Array(20-i.length).join("0")+i}).reverse()});--a>=0;){if(n[0][a]>n[1][a])return 1;if(n[0][a]===n[1][a]){if(a===0)return 0}else return-1}}function _(e,a,n){var l=T;typeof a=="string"&&(n=a,a=void 0),a===void 0&&(a=!1),n&&(l=v(n));var r=""+l.version;for(var i in e)if(e.hasOwnProperty(i)&&l[i]){if(typeof e[i]!="string")throw new Error("Browser version in the minVersion map should be a string: "+i+": "+String(e));return s([r,e[i]])<0}return a}function p(e,a,n){return!_(e,a,n)}return T.isUnsupportedBrowser=_,T.compareVersions=s,T.check=p,T._detect=v,T.detect=v,T})},{}],71:[function(j,W,y){},{}],72:[function(j,W,y){var I=j("buffer").Buffer,v=I.isEncoding||function(p){switch(p&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(p){if(p&&!v(p))throw new Error("Unknown encoding: "+p)}var b=y.StringDecoder=function(p){this.encoding=(p||"utf8").toLowerCase().replace(/[-_]/,""),T(p);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=_;break;default:this.write=g;return}this.charBuffer=new I(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(p){for(var e="";this.charLength;){var a=p.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:p.length;if(p.copy(this.charBuffer,this.charReceived,0,a),this.charReceived+=a,this.charReceived<this.charLength)return"";p=p.slice(a,p.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var l=e.charCodeAt(e.length-1);if(l>=55296&&l<=56319){this.charLength+=this.surrogateSize,e="";continue}if(this.charReceived=this.charLength=0,p.length===0)return e;break}this.detectIncompleteChar(p);var n=p.length;this.charLength&&(p.copy(this.charBuffer,0,p.length-this.charReceived,n),n-=this.charReceived),e+=p.toString(this.encoding,0,n);var n=e.length-1,l=e.charCodeAt(n);if(l>=55296&&l<=56319){var r=this.surrogateSize;return this.charLength+=r,this.charReceived+=r,this.charBuffer.copy(this.charBuffer,r,0,r),p.copy(this.charBuffer,0,0,r),e.substring(0,n)}return e},b.prototype.detectIncompleteChar=function(p){for(var e=p.length>=3?3:p.length;e>0;e--){var a=p[p.length-e];if(e==1&&a>>5==6){this.charLength=2;break}if(e<=2&&a>>4==14){this.charLength=3;break}if(e<=3&&a>>3==30){this.charLength=4;break}}this.charReceived=e},b.prototype.end=function(p){var e="";if(p&&p.length&&(e=this.write(p)),this.charReceived){var a=this.charReceived,n=this.charBuffer,l=this.encoding;e+=n.slice(0,a).toString(l)}return e};function g(p){return p.toString(this.encoding)}function s(p){this.charReceived=p.length%2,this.charLength=this.charReceived?2:0}function _(p){this.charReceived=p.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(j,W,y){(function(I,v){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var T=j("base64-js"),b=j("ieee754"),g=j("isarray");y.Buffer=v,y.SlowBuffer=d,y.INSPECT_MAX_BYTES=50,v.TYPED_ARRAY_SUPPORT=I.TYPED_ARRAY_SUPPORT!==void 0?I.TYPED_ARRAY_SUPPORT:s(),y.kMaxLength=_();function s(){try{var de=new Uint8Array(1);return de.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},de.foo()===42&&typeof de.subarray=="function"&&de.subarray(1,1).byteLength===0}catch($){return!1}}function _(){return v.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function p(de,$){if(_()<$)throw new RangeError("Invalid typed array length");return v.TYPED_ARRAY_SUPPORT?(de=new Uint8Array($),de.__proto__=v.prototype):(de===null&&(de=new v($)),de.length=$),de}function v(de,$,Q){if(!v.TYPED_ARRAY_SUPPORT&&!(this instanceof v))return new v(de,$,Q);if(typeof de=="number"){if(typeof $=="string")throw new Error("If encoding is specified then the first argument must be a string");return l(this,de)}return e(this,de,$,Q)}v.poolSize=8192,v._augment=function(de){return de.__proto__=v.prototype,de};function e(de,$,Q,Y){if(typeof $=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&$ instanceof ArrayBuffer?t(de,$,Q,Y):typeof $=="string"?r(de,$,Q):o(de,$)}v.from=function(de,$,Q){return e(null,de,$,Q)},v.TYPED_ARRAY_SUPPORT&&(v.prototype.__proto__=Uint8Array.prototype,v.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&v[Symbol.species]===v&&Object.defineProperty(v,Symbol.species,{value:null,configurable:!0}));function a(de){if(typeof de!="number")throw new TypeError('"size" argument must be a number');if(de<0)throw new RangeError('"size" argument must not be negative')}function n(de,$,Q,Y){return a($),$<=0?p(de,$):Q!==void 0?typeof Y=="string"?p(de,$).fill(Q,Y):p(de,$).fill(Q):p(de,$)}v.alloc=function(de,$,Q){return n(null,de,$,Q)};function l(de,$){if(a($),de=p(de,$<0?0:c($)|0),!v.TYPED_ARRAY_SUPPORT)for(var Q=0;Q<$;++Q)de[Q]=0;return de}v.allocUnsafe=function(de){return l(null,de)},v.allocUnsafeSlow=function(de){return l(null,de)};function r(de,$,Q){if((typeof Q!="string"||Q==="")&&(Q="utf8"),!v.isEncoding(Q))throw new TypeError('"encoding" must be a valid string encoding');var Y=f($,Q)|0;de=p(de,Y);var ue=de.write($,Q);return ue!==Y&&(de=de.slice(0,ue)),de}function i(de,$){var Q=$.length<0?0:c($.length)|0;de=p(de,Q);for(var Y=0;Y<Q;Y+=1)de[Y]=$[Y]&255;return de}function t(de,$,Q,Y){if($.byteLength,Q<0||$.byteLength<Q)throw new RangeError("'offset' is out of bounds");if($.byteLength<Q+(Y||0))throw new RangeError("'length' is out of bounds");return Q===void 0&&Y===void 0?$=new Uint8Array($):Y===void 0?$=new Uint8Array($,Q):$=new Uint8Array($,Q,Y),v.TYPED_ARRAY_SUPPORT?(de=$,de.__proto__=v.prototype):de=i(de,$),de}function o(de,$){if(v.isBuffer($)){var Q=c($.length)|0;return de=p(de,Q),de.length===0||$.copy(de,0,0,Q),de}if($){if(typeof ArrayBuffer!="undefined"&&$.buffer instanceof ArrayBuffer||"length"in $)return typeof $.length!="number"||Ne($.length)?p(de,0):i(de,$);if($.type==="Buffer"&&g($.data))return i(de,$.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(de){if(de>=_())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_().toString(16)+" bytes");return de|0}function d(de){return+de!=de&&(de=0),v.alloc(+de)}v.isBuffer=function($){return!!($!=null&&$._isBuffer)},v.compare=function($,Q){if(!v.isBuffer($)||!v.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if($===Q)return 0;for(var Y=$.length,ue=Q.length,ae=0,be=Math.min(Y,ue);ae<be;++ae)if($[ae]!==Q[ae]){Y=$[ae],ue=Q[ae];break}return Y<ue?-1:ue<Y?1:0},v.isEncoding=function($){switch(String($).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},v.concat=function($,Q){if(!g($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return v.alloc(0);var Y;if(Q===void 0)for(Q=0,Y=0;Y<$.length;++Y)Q+=$[Y].length;var ue=v.allocUnsafe(Q),ae=0;for(Y=0;Y<$.length;++Y){var be=$[Y];if(!v.isBuffer(be))throw new TypeError('"list" argument must be an Array of Buffers');be.copy(ue,ae),ae+=be.length}return ue};function f(de,$){if(v.isBuffer(de))return de.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(de)||de instanceof ArrayBuffer))return de.byteLength;typeof de!="string"&&(de=""+de);var Q=de.length;if(Q===0)return 0;for(var Y=!1;;)switch($){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":case void 0:return le(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q*2;case"hex":return Q>>>1;case"base64":return q(de).length;default:if(Y)return le(de).length;$=(""+$).toLowerCase(),Y=!0}}v.byteLength=f;function h(de,$,Q){var Y=!1;if(($===void 0||$<0)&&($=0),$>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,$>>>=0,Q<=$)return"";for(de||(de="utf8");;)switch(de){case"hex":return F(this,$,Q);case"utf8":case"utf-8":return N(this,$,Q);case"ascii":return X(this,$,Q);case"latin1":case"binary":return k(this,$,Q);case"base64":return P(this,$,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,$,Q);default:if(Y)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),Y=!0}}v.prototype._isBuffer=!0;function u(de,$,Q){var Y=de[$];de[$]=de[Q],de[Q]=Y}v.prototype.swap16=function(){var $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;Q<$;Q+=2)u(this,Q,Q+1);return this},v.prototype.swap32=function(){var $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Q=0;Q<$;Q+=4)u(this,Q,Q+3),u(this,Q+1,Q+2);return this},v.prototype.swap64=function(){var $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Q=0;Q<$;Q+=8)u(this,Q,Q+7),u(this,Q+1,Q+6),u(this,Q+2,Q+5),u(this,Q+3,Q+4);return this},v.prototype.toString=function(){var $=this.length|0;return $===0?"":arguments.length===0?N(this,0,$):h.apply(this,arguments)},v.prototype.equals=function($){if(!v.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$?!0:v.compare(this,$)===0},v.prototype.inspect=function(){var $="",Q=y.INSPECT_MAX_BYTES;return this.length>0&&($=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&($+=" ... ")),"<Buffer "+$+">"},v.prototype.compare=function($,Q,Y,ue,ae){if(!v.isBuffer($))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),Y===void 0&&(Y=$?$.length:0),ue===void 0&&(ue=0),ae===void 0&&(ae=this.length),Q<0||Y>$.length||ue<0||ae>this.length)throw new RangeError("out of range index");if(ue>=ae&&Q>=Y)return 0;if(ue>=ae)return-1;if(Q>=Y)return 1;if(Q>>>=0,Y>>>=0,ue>>>=0,ae>>>=0,this===$)return 0;for(var be=ae-ue,Ie=Y-Q,pe=Math.min(be,Ie),Le=this.slice(ue,ae),ve=$.slice(Q,Y),Xe=0;Xe<pe;++Xe)if(Le[Xe]!==ve[Xe]){be=Le[Xe],Ie=ve[Xe];break}return be<Ie?-1:Ie<be?1:0};function E(de,$,Q,Y,ue){if(de.length===0)return-1;if(typeof Q=="string"?(Y=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=ue?0:de.length-1),Q<0&&(Q=de.length+Q),Q>=de.length){if(ue)return-1;Q=de.length-1}else if(Q<0)if(ue)Q=0;else return-1;if(typeof $=="string"&&($=v.from($,Y)),v.isBuffer($))return $.length===0?-1:x(de,$,Q,Y,ue);if(typeof $=="number")return $=$&255,v.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(de,$,Q):Uint8Array.prototype.lastIndexOf.call(de,$,Q):x(de,[$],Q,Y,ue);throw new TypeError("val must be string, number or Buffer")}function x(de,$,Q,Y,ue){var ae=1,be=de.length,Ie=$.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(de.length<2||$.length<2)return-1;ae=2,be/=2,Ie/=2,Q/=2}function pe(Ge,Me){return ae===1?Ge[Me]:Ge.readUInt16BE(Me*ae)}var Le;if(ue){var ve=-1;for(Le=Q;Le<be;Le++)if(pe(de,Le)===pe($,ve===-1?0:Le-ve)){if(ve===-1&&(ve=Le),Le-ve+1===Ie)return ve*ae}else ve!==-1&&(Le-=Le-ve),ve=-1}else for(Q+Ie>be&&(Q=be-Ie),Le=Q;Le>=0;Le--){for(var Xe=!0,$e=0;$e<Ie;$e++)if(pe(de,Le+$e)!==pe($,$e)){Xe=!1;break}if(Xe)return Le}return-1}v.prototype.includes=function($,Q,Y){return this.indexOf($,Q,Y)!==-1},v.prototype.indexOf=function($,Q,Y){return E(this,$,Q,Y,!0)},v.prototype.lastIndexOf=function($,Q,Y){return E(this,$,Q,Y,!1)};function O(de,$,Q,Y){Q=Number(Q)||0;var ue=de.length-Q;Y?(Y=Number(Y),Y>ue&&(Y=ue)):Y=ue;var ae=$.length;if(ae%2!==0)throw new TypeError("Invalid hex string");Y>ae/2&&(Y=ae/2);for(var be=0;be<Y;++be){var Ie=parseInt($.substr(be*2,2),16);if(isNaN(Ie))return be;de[Q+be]=Ie}return be}function C(de,$,Q,Y){return se(le($,de.length-Q),de,Q,Y)}function w(de,$,Q,Y){return se(oe($),de,Q,Y)}function S(de,$,Q,Y){return w(de,$,Q,Y)}function D(de,$,Q,Y){return se(q($),de,Q,Y)}function R(de,$,Q,Y){return se(xe($,de.length-Q),de,Q,Y)}v.prototype.write=function($,Q,Y,ue){if(Q===void 0)ue="utf8",Y=this.length,Q=0;else if(Y===void 0&&typeof Q=="string")ue=Q,Y=this.length,Q=0;else if(isFinite(Q))Q=Q|0,isFinite(Y)?(Y=Y|0,ue===void 0&&(ue="utf8")):(ue=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ae=this.length-Q;if((Y===void 0||Y>ae)&&(Y=ae),$.length>0&&(Y<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var be=!1;;)switch(ue){case"hex":return O(this,$,Q,Y);case"utf8":case"utf-8":return C(this,$,Q,Y);case"ascii":return w(this,$,Q,Y);case"latin1":case"binary":return S(this,$,Q,Y);case"base64":return D(this,$,Q,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,$,Q,Y);default:if(be)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),be=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(de,$,Q){return $===0&&Q===de.length?T.fromByteArray(de):T.fromByteArray(de.slice($,Q))}function N(de,$,Q){Q=Math.min(de.length,Q);for(var Y=[],ue=$;ue<Q;){var ae=de[ue],be=null,Ie=ae>239?4:ae>223?3:ae>191?2:1;if(ue+Ie<=Q){var pe,Le,ve,Xe;switch(Ie){case 1:ae<128&&(be=ae);break;case 2:pe=de[ue+1],(pe&192)===128&&(Xe=(ae&31)<<6|pe&63,Xe>127&&(be=Xe));break;case 3:pe=de[ue+1],Le=de[ue+2],(pe&192)===128&&(Le&192)===128&&(Xe=(ae&15)<<12|(pe&63)<<6|Le&63,Xe>2047&&(Xe<55296||Xe>57343)&&(be=Xe));break;case 4:pe=de[ue+1],Le=de[ue+2],ve=de[ue+3],(pe&192)===128&&(Le&192)===128&&(ve&192)===128&&(Xe=(ae&15)<<18|(pe&63)<<12|(Le&63)<<6|ve&63,Xe>65535&&Xe<1114112&&(be=Xe))}}be===null?(be=65533,Ie=1):be>65535&&(be-=65536,Y.push(be>>>10&1023|55296),be=56320|be&1023),Y.push(be),ue+=Ie}return z(Y)}var M=4096;function z(de){var $=de.length;if($<=M)return String.fromCharCode.apply(String,de);for(var Q="",Y=0;Y<$;)Q+=String.fromCharCode.apply(String,de.slice(Y,Y+=M));return Q}function X(de,$,Q){var Y="";Q=Math.min(de.length,Q);for(var ue=$;ue<Q;++ue)Y+=String.fromCharCode(de[ue]&127);return Y}function k(de,$,Q){var Y="";Q=Math.min(de.length,Q);for(var ue=$;ue<Q;++ue)Y+=String.fromCharCode(de[ue]);return Y}function F(de,$,Q){var Y=de.length;(!$||$<0)&&($=0),(!Q||Q<0||Q>Y)&&(Q=Y);for(var ue="",ae=$;ae<Q;++ae)ue+=ce(de[ae]);return ue}function U(de,$,Q){for(var Y=de.slice($,Q),ue="",ae=0;ae<Y.length;ae+=2)ue+=String.fromCharCode(Y[ae]+Y[ae+1]*256);return ue}v.prototype.slice=function($,Q){var Y=this.length;$=~~$,Q=Q===void 0?Y:~~Q,$<0?($+=Y,$<0&&($=0)):$>Y&&($=Y),Q<0?(Q+=Y,Q<0&&(Q=0)):Q>Y&&(Q=Y),Q<$&&(Q=$);var ue;if(v.TYPED_ARRAY_SUPPORT)ue=this.subarray($,Q),ue.__proto__=v.prototype;else{var ae=Q-$;ue=new v(ae,void 0);for(var be=0;be<ae;++be)ue[be]=this[be+$]}return ue};function L(de,$,Q){if(de%1!==0||de<0)throw new RangeError("offset is not uint");if(de+$>Q)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUIntLE=function($,Q,Y){$=$|0,Q=Q|0,Y||L($,Q,this.length);for(var ue=this[$],ae=1,be=0;++be<Q&&(ae*=256);)ue+=this[$+be]*ae;return ue},v.prototype.readUIntBE=function($,Q,Y){$=$|0,Q=Q|0,Y||L($,Q,this.length);for(var ue=this[$+--Q],ae=1;Q>0&&(ae*=256);)ue+=this[$+--Q]*ae;return ue},v.prototype.readUInt8=function($,Q){return Q||L($,1,this.length),this[$]},v.prototype.readUInt16LE=function($,Q){return Q||L($,2,this.length),this[$]|this[$+1]<<8},v.prototype.readUInt16BE=function($,Q){return Q||L($,2,this.length),this[$]<<8|this[$+1]},v.prototype.readUInt32LE=function($,Q){return Q||L($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216},v.prototype.readUInt32BE=function($,Q){return Q||L($,4,this.length),this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])},v.prototype.readIntLE=function($,Q,Y){$=$|0,Q=Q|0,Y||L($,Q,this.length);for(var ue=this[$],ae=1,be=0;++be<Q&&(ae*=256);)ue+=this[$+be]*ae;return ae*=128,ue>=ae&&(ue-=Math.pow(2,8*Q)),ue},v.prototype.readIntBE=function($,Q,Y){$=$|0,Q=Q|0,Y||L($,Q,this.length);for(var ue=Q,ae=1,be=this[$+--ue];ue>0&&(ae*=256);)be+=this[$+--ue]*ae;return ae*=128,be>=ae&&(be-=Math.pow(2,8*Q)),be},v.prototype.readInt8=function($,Q){return Q||L($,1,this.length),this[$]&128?(255-this[$]+1)*-1:this[$]},v.prototype.readInt16LE=function($,Q){Q||L($,2,this.length);var Y=this[$]|this[$+1]<<8;return Y&32768?Y|4294901760:Y},v.prototype.readInt16BE=function($,Q){Q||L($,2,this.length);var Y=this[$+1]|this[$]<<8;return Y&32768?Y|4294901760:Y},v.prototype.readInt32LE=function($,Q){return Q||L($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},v.prototype.readInt32BE=function($,Q){return Q||L($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},v.prototype.readFloatLE=function($,Q){return Q||L($,4,this.length),b.read(this,$,!0,23,4)},v.prototype.readFloatBE=function($,Q){return Q||L($,4,this.length),b.read(this,$,!1,23,4)},v.prototype.readDoubleLE=function($,Q){return Q||L($,8,this.length),b.read(this,$,!0,52,8)},v.prototype.readDoubleBE=function($,Q){return Q||L($,8,this.length),b.read(this,$,!1,52,8)};function B(de,$,Q,Y,ue,ae){if(!v.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if($>ue||$<ae)throw new RangeError('"value" argument is out of bounds');if(Q+Y>de.length)throw new RangeError("Index out of range")}v.prototype.writeUIntLE=function($,Q,Y,ue){if($=+$,Q=Q|0,Y=Y|0,!ue){var ae=Math.pow(2,8*Y)-1;B(this,$,Q,Y,ae,0)}var be=1,Ie=0;for(this[Q]=$&255;++Ie<Y&&(be*=256);)this[Q+Ie]=$/be&255;return Q+Y},v.prototype.writeUIntBE=function($,Q,Y,ue){if($=+$,Q=Q|0,Y=Y|0,!ue){var ae=Math.pow(2,8*Y)-1;B(this,$,Q,Y,ae,0)}var be=Y-1,Ie=1;for(this[Q+be]=$&255;--be>=0&&(Ie*=256);)this[Q+be]=$/Ie&255;return Q+Y},v.prototype.writeUInt8=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,1,255,0),v.TYPED_ARRAY_SUPPORT||($=Math.floor($)),this[Q]=$&255,Q+1};function Z(de,$,Q,Y){$<0&&($=65535+$+1);for(var ue=0,ae=Math.min(de.length-Q,2);ue<ae;++ue)de[Q+ue]=($&255<<8*(Y?ue:1-ue))>>>(Y?ue:1-ue)*8}v.prototype.writeUInt16LE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[Q]=$&255,this[Q+1]=$>>>8):Z(this,$,Q,!0),Q+2},v.prototype.writeUInt16BE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[Q]=$>>>8,this[Q+1]=$&255):Z(this,$,Q,!1),Q+2};function re(de,$,Q,Y){$<0&&($=4294967295+$+1);for(var ue=0,ae=Math.min(de.length-Q,4);ue<ae;++ue)de[Q+ue]=$>>>(Y?ue:3-ue)*8&255}v.prototype.writeUInt32LE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[Q+3]=$>>>24,this[Q+2]=$>>>16,this[Q+1]=$>>>8,this[Q]=$&255):re(this,$,Q,!0),Q+4},v.prototype.writeUInt32BE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[Q]=$>>>24,this[Q+1]=$>>>16,this[Q+2]=$>>>8,this[Q+3]=$&255):re(this,$,Q,!1),Q+4},v.prototype.writeIntLE=function($,Q,Y,ue){if($=+$,Q=Q|0,!ue){var ae=Math.pow(2,8*Y-1);B(this,$,Q,Y,ae-1,-ae)}var be=0,Ie=1,pe=0;for(this[Q]=$&255;++be<Y&&(Ie*=256);)$<0&&pe===0&&this[Q+be-1]!==0&&(pe=1),this[Q+be]=($/Ie>>0)-pe&255;return Q+Y},v.prototype.writeIntBE=function($,Q,Y,ue){if($=+$,Q=Q|0,!ue){var ae=Math.pow(2,8*Y-1);B(this,$,Q,Y,ae-1,-ae)}var be=Y-1,Ie=1,pe=0;for(this[Q+be]=$&255;--be>=0&&(Ie*=256);)$<0&&pe===0&&this[Q+be+1]!==0&&(pe=1),this[Q+be]=($/Ie>>0)-pe&255;return Q+Y},v.prototype.writeInt8=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,1,127,-128),v.TYPED_ARRAY_SUPPORT||($=Math.floor($)),$<0&&($=255+$+1),this[Q]=$&255,Q+1},v.prototype.writeInt16LE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[Q]=$&255,this[Q+1]=$>>>8):Z(this,$,Q,!0),Q+2},v.prototype.writeInt16BE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[Q]=$>>>8,this[Q+1]=$&255):Z(this,$,Q,!1),Q+2},v.prototype.writeInt32LE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,4,2147483647,-2147483648),v.TYPED_ARRAY_SUPPORT?(this[Q]=$&255,this[Q+1]=$>>>8,this[Q+2]=$>>>16,this[Q+3]=$>>>24):re(this,$,Q,!0),Q+4},v.prototype.writeInt32BE=function($,Q,Y){return $=+$,Q=Q|0,Y||B(this,$,Q,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),v.TYPED_ARRAY_SUPPORT?(this[Q]=$>>>24,this[Q+1]=$>>>16,this[Q+2]=$>>>8,this[Q+3]=$&255):re(this,$,Q,!1),Q+4};function me(de,$,Q,Y,ue,ae){if(Q+Y>de.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Ee(de,$,Q,Y,ue){return ue||me(de,$,Q,4,34028234663852886e22,-34028234663852886e22),b.write(de,$,Q,Y,23,4),Q+4}v.prototype.writeFloatLE=function($,Q,Y){return Ee(this,$,Q,!0,Y)},v.prototype.writeFloatBE=function($,Q,Y){return Ee(this,$,Q,!1,Y)};function De(de,$,Q,Y,ue){return ue||me(de,$,Q,8,17976931348623157e292,-17976931348623157e292),b.write(de,$,Q,Y,52,8),Q+8}v.prototype.writeDoubleLE=function($,Q,Y){return De(this,$,Q,!0,Y)},v.prototype.writeDoubleBE=function($,Q,Y){return De(this,$,Q,!1,Y)},v.prototype.copy=function($,Q,Y,ue){if(Y||(Y=0),!ue&&ue!==0&&(ue=this.length),Q>=$.length&&(Q=$.length),Q||(Q=0),ue>0&&ue<Y&&(ue=Y),ue===Y)return 0;if($.length===0||this.length===0)return 0;if(Q<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("sourceStart out of bounds");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),$.length-Q<ue-Y&&(ue=$.length-Q+Y);var ae=ue-Y,be;if(this===$&&Y<Q&&Q<ue)for(be=ae-1;be>=0;--be)$[be+Q]=this[be+Y];else if(ae<1e3||!v.TYPED_ARRAY_SUPPORT)for(be=0;be<ae;++be)$[be+Q]=this[be+Y];else Uint8Array.prototype.set.call($,this.subarray(Y,Y+ae),Q);return ae},v.prototype.fill=function($,Q,Y,ue){if(typeof $=="string"){if(typeof Q=="string"?(ue=Q,Q=0,Y=this.length):typeof Y=="string"&&(ue=Y,Y=this.length),$.length===1){var ae=$.charCodeAt(0);ae<256&&($=ae)}if(ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!v.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue)}else typeof $=="number"&&($=$&255);if(Q<0||this.length<Q||this.length<Y)throw new RangeError("Out of range index");if(Y<=Q)return this;Q=Q>>>0,Y=Y===void 0?this.length:Y>>>0,$||($=0);var be;if(typeof $=="number")for(be=Q;be<Y;++be)this[be]=$;else{var Ie=v.isBuffer($)?$:le(new v($,ue).toString()),pe=Ie.length;for(be=0;be<Y-Q;++be)this[be+Q]=Ie[be%pe]}return this};var te=/[^+\/0-9A-Za-z-_]/g;function Ce(de){if(de=we(de).replace(te,""),de.length<2)return"";for(;de.length%4!==0;)de=de+"=";return de}function we(de){return de.trim?de.trim():de.replace(/^\s+|\s+$/g,"")}function ce(de){return de<16?"0"+de.toString(16):de.toString(16)}function le(de,$){$=$||Infinity;for(var Q,Y=de.length,ue=null,ae=[],be=0;be<Y;++be){if(Q=de.charCodeAt(be),Q>55295&&Q<57344){if(!ue){if(Q>56319){($-=3)>-1&&ae.push(239,191,189);continue}else if(be+1===Y){($-=3)>-1&&ae.push(239,191,189);continue}ue=Q;continue}if(Q<56320){($-=3)>-1&&ae.push(239,191,189),ue=Q;continue}Q=(ue-55296<<10|Q-56320)+65536}else ue&&(($-=3)>-1&&ae.push(239,191,189));if(ue=null,Q<128){if(($-=1)<0)break;ae.push(Q)}else if(Q<2048){if(($-=2)<0)break;ae.push(Q>>6|192,Q&63|128)}else if(Q<65536){if(($-=3)<0)break;ae.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if(($-=4)<0)break;ae.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return ae}function oe(de){for(var $=[],Q=0;Q<de.length;++Q)$.push(de.charCodeAt(Q)&255);return $}function xe(de,$){for(var Q,Y,ue,ae=[],be=0;be<de.length&&!(($-=2)<0);++be)Q=de.charCodeAt(be),Y=Q>>8,ue=Q%256,ae.push(ue),ae.push(Y);return ae}function q(de){return T.toByteArray(Ce(de))}function se(de,$,Q,Y){for(var ue=0;ue<Y&&!(ue+Q>=$.length||ue>=de.length);++ue)$[ue+Q]=de[ue];return ue}function Ne(de){return de!==de}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(j,W,y){W.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(j,W,y){W.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(j,W,y){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var I=Array.prototype.slice;W.exports=v;function v(b,g){if(!(this instanceof v))return new v(b,g);this.src=b,this._withAccess=g}v.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},v.prototype.pick=function(b){return Array.isArray(b)||(b=I.call(arguments)),b.length&&(this.keys=b),this},v.prototype.to=function(b){if(b=b||{},!this.src)return b;var g=this.keys||Object.keys(this.src);if(!this._withAccess){for(var s=0;s<g.length;s++){if(_=g[s],b[_]!==void 0)continue;b[_]=this.src[_]}return b}for(var s=0;s<g.length;s++){var _=g[s];if(!T(b,_))continue;var p=this.src.__lookupGetter__(_),e=this.src.__lookupSetter__(_);p&&b.__defineGetter__(_,p),e&&b.__defineSetter__(_,e),!p&&!e&&(b[_]=this.src[_])}return b},v.prototype.toCover=function(b){for(var g=this.keys||Object.keys(this.src),s=0;s<g.length;s++){var _=g[s];delete b[_];var p=this.src.__lookupGetter__(_),e=this.src.__lookupSetter__(_);p&&b.__defineGetter__(_,p),e&&b.__defineSetter__(_,e),!p&&!e&&(b[_]=this.src[_])}},v.prototype.override=v.prototype.toCover,v.prototype.and=function(b){var g={};return this.to(g),this.src=b,this.to(g),this.src=g,this};function T(b,g){return b[g]===void 0&&b.__lookupGetter__(g)===void 0&&b.__lookupSetter__(g)===void 0}},{}],77:[function(j,W,y){j("../../modules/es6.string.iterator"),j("../../modules/es6.array.from"),W.exports=j("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(j,W,y){var I=j("../../modules/_core"),v=I.JSON||(I.JSON={stringify:JSON.stringify});W.exports=function(b){return v.stringify.apply(v,arguments)}},{"../../modules/_core":99}],79:[function(j,W,y){j("../../modules/es6.object.assign"),W.exports=j("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(j,W,y){j("../../modules/es6.object.create");var I=j("../../modules/_core").Object;W.exports=function(T,b){return I.create(T,b)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(j,W,y){j("../../modules/es6.object.define-property");var I=j("../../modules/_core").Object;W.exports=function(T,b,g){return I.defineProperty(T,b,g)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(j,W,y){j("../../modules/es7.object.entries"),W.exports=j("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(j,W,y){j("../../modules/es6.object.get-own-property-names");var I=j("../../modules/_core").Object;W.exports=function(T){return I.getOwnPropertyNames(T)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(j,W,y){j("../../modules/es6.object.get-prototype-of"),W.exports=j("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(j,W,y){j("../../modules/es6.object.keys"),W.exports=j("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(j,W,y){j("../modules/es6.object.to-string"),j("../modules/es6.string.iterator"),j("../modules/web.dom.iterable"),j("../modules/es6.promise"),j("../modules/es7.promise.finally"),j("../modules/es7.promise.try"),W.exports=j("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(j,W,y){j("../modules/web.immediate"),W.exports=j("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(j,W,y){j("../../modules/es6.string.from-code-point"),W.exports=j("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(j,W,y){j("../../modules/es6.function.has-instance"),W.exports=j("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(j,W,y){j("../../modules/es6.symbol"),j("../../modules/es6.object.to-string"),j("../../modules/es7.symbol.async-iterator"),j("../../modules/es7.symbol.observable"),W.exports=j("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(j,W,y){j("../../modules/es6.string.iterator"),j("../../modules/web.dom.iterable"),W.exports=j("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(j,W,y){W.exports=function(I){if(typeof I!="function")throw TypeError(I+" is not a function!");return I}},{}],93:[function(j,W,y){W.exports=function(){}},{}],94:[function(j,W,y){W.exports=function(I,v,T,b){if(!(I instanceof v)||b!==void 0&&b in I)throw TypeError(T+": incorrect invocation!");return I}},{}],95:[function(j,W,y){var I=j("./_is-object");W.exports=function(v){if(!I(v))throw TypeError(v+" is not an object!");return v}},{"./_is-object":119}],96:[function(j,W,y){var I=j("./_to-iobject"),v=j("./_to-length"),T=j("./_to-absolute-index");W.exports=function(b){return function(g,s,_){var p=I(g),e=v(p.length),a=T(_,e),n;if(b&&s!=s){for(;e>a;)if(n=p[a++],n!=n)return!0}else for(;e>a;a++)if((b||a in p)&&p[a]===s)return b||a||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(j,W,y){var I=j("./_cof"),v=j("./_wks")("toStringTag"),T=I(function(){return arguments}())=="Arguments",b=function(g,s){try{return g[s]}catch(_){}};W.exports=function(g){var s,_,p;return g===void 0?"Undefined":g===null?"Null":typeof(_=b(s=Object(g),v))=="string"?_:T?I(s):(p=I(s))=="Object"&&typeof s.callee=="function"?"Arguments":p}},{"./_cof":98,"./_wks":166}],98:[function(j,W,y){var I={}.toString;W.exports=function(v){return I.call(v).slice(8,-1)}},{}],99:[function(j,W,y){var I=W.exports={version:"2.6.11"};typeof __e=="number"&&(__e=I)},{}],100:[function(j,W,y){"use strict";var I=j("./_object-dp"),v=j("./_property-desc");W.exports=function(T,b,g){b in T?I.f(T,b,v(0,g)):T[b]=g}},{"./_object-dp":132,"./_property-desc":146}],101:[function(j,W,y){var I=j("./_a-function");W.exports=function(v,T,b){if(I(v),T===void 0)return v;switch(b){case 1:return function(g){return v.call(T,g)};case 2:return function(g,s){return v.call(T,g,s)};case 3:return function(g,s,_){return v.call(T,g,s,_)}}return function(){return v.apply(T,arguments)}}},{"./_a-function":92}],102:[function(j,W,y){W.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},{}],103:[function(j,W,y){W.exports=!j("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(j,W,y){var I=j("./_is-object"),v=j("./_global").document,T=I(v)&&I(v.createElement);W.exports=function(b){return T?v.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(j,W,y){W.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(j,W,y){var I=j("./_object-keys"),v=j("./_object-gops"),T=j("./_object-pie");W.exports=function(b){var g=I(b),s=v.f;if(s)for(var _=s(b),p=T.f,e=0,a;_.length>e;)p.call(b,a=_[e++])&&g.push(a);return g}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(j,W,y){var I=j("./_global"),v=j("./_core"),T=j("./_ctx"),b=j("./_hide"),g=j("./_has"),s="prototype",_=function(p,e,a){var n=p&_.F,l=p&_.G,r=p&_.S,i=p&_.P,t=p&_.B,o=p&_.W,c=l?v:v[e]||(v[e]={}),d=c[s],f=l?I:r?I[e]:(I[e]||{})[s],h,u,E;l&&(a=e);for(h in a){if(u=!n&&f&&f[h]!==void 0,u&&g(c,h))continue;E=u?f[h]:a[h],c[h]=l&&typeof f[h]!="function"?a[h]:t&&u?T(E,I):o&&f[h]==E?function(x){var O=function(C,w,S){if(this instanceof x){switch(arguments.length){case 0:return new x;case 1:return new x(C);case 2:return new x(C,w)}return new x(C,w,S)}return x.apply(this,arguments)};return O[s]=x[s],O}(E):i&&typeof E=="function"?T(Function.call,E):E,i&&((c.virtual||(c.virtual={}))[h]=E,p&_.R&&d&&!d[h]&&b(d,h,E))}};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,W.exports=_},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(j,W,y){W.exports=function(I){try{return!!I()}catch(v){return!0}}},{}],109:[function(j,W,y){var I=j("./_ctx"),v=j("./_iter-call"),T=j("./_is-array-iter"),b=j("./_an-object"),g=j("./_to-length"),s=j("./core.get-iterator-method"),_={},p={},y=W.exports=function(e,a,n,l,r){var i=r?function(){return e}:s(e),t=I(n,l,a?2:1),o=0,c,d,f,h;if(typeof i!="function")throw TypeError(e+" is not iterable!");if(T(i)){for(c=g(e.length);c>o;o++)if(h=a?t(b(d=e[o])[0],d[1]):t(e[o]),h===_||h===p)return h}else for(f=i.call(e);!(d=f.next()).done;)if(h=v(f,t,d.value,a),h===_||h===p)return h};y.BREAK=_,y.RETURN=p},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(j,W,y){var I=W.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=I)},{}],111:[function(j,W,y){var I={}.hasOwnProperty;W.exports=function(v,T){return I.call(v,T)}},{}],112:[function(j,W,y){var I=j("./_object-dp"),v=j("./_property-desc");W.exports=j("./_descriptors")?function(T,b,g){return I.f(T,b,v(1,g))}:function(T,b,g){return T[b]=g,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(j,W,y){var I=j("./_global").document;W.exports=I&&I.documentElement},{"./_global":110}],114:[function(j,W,y){W.exports=!j("./_descriptors")&&!j("./_fails")(function(){return Object.defineProperty(j("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(j,W,y){W.exports=function(I,v,T){var b=T===void 0;switch(v.length){case 0:return b?I():I.call(T);case 1:return b?I(v[0]):I.call(T,v[0]);case 2:return b?I(v[0],v[1]):I.call(T,v[0],v[1]);case 3:return b?I(v[0],v[1],v[2]):I.call(T,v[0],v[1],v[2]);case 4:return b?I(v[0],v[1],v[2],v[3]):I.call(T,v[0],v[1],v[2],v[3])}return I.apply(T,v)}},{}],116:[function(j,W,y){var I=j("./_cof");W.exports=Object("z").propertyIsEnumerable(0)?Object:function(v){return I(v)=="String"?v.split(""):Object(v)}},{"./_cof":98}],117:[function(j,W,y){var I=j("./_iterators"),v=j("./_wks")("iterator"),T=Array.prototype;W.exports=function(b){return b!==void 0&&(I.Array===b||T[v]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(j,W,y){var I=j("./_cof");W.exports=Array.isArray||function(T){return I(T)=="Array"}},{"./_cof":98}],119:[function(j,W,y){W.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},{}],120:[function(j,W,y){var I=j("./_an-object");W.exports=function(v,T,b,g){try{return g?T(I(b)[0],b[1]):T(b)}catch(_){var s=v.return;throw s!==void 0&&I(s.call(v)),_}}},{"./_an-object":95}],121:[function(j,W,y){"use strict";var I=j("./_object-create"),v=j("./_property-desc"),T=j("./_set-to-string-tag"),b={};j("./_hide")(b,j("./_wks")("iterator"),function(){return this}),W.exports=function(g,s,_){g.prototype=I(b,{next:v(1,_)}),T(g,s+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(j,W,y){"use strict";var I=j("./_library"),v=j("./_export"),T=j("./_redefine"),b=j("./_hide"),g=j("./_iterators"),s=j("./_iter-create"),_=j("./_set-to-string-tag"),p=j("./_object-gpo"),e=j("./_wks")("iterator"),a=!([].keys&&"next"in[].keys()),n="@@iterator",l="keys",r="values",i=function(){return this};W.exports=function(t,o,c,d,f,h,u){s(c,o,d);var E=function(X){if(!a&&X in w)return w[X];switch(X){case l:return function(){return new c(this,X)};case r:return function(){return new c(this,X)}}return function(){return new c(this,X)}},x=o+" Iterator",O=f==r,C=!1,w=t.prototype,S=w[e]||w[n]||f&&w[f],D=S||E(f),R=f?O?E("entries"):D:void 0,P=o=="Array"&&w.entries||S,N,M,z;if(P&&(z=p(P.call(new t)),z!==Object.prototype&&z.next&&(_(z,x,!0),!I&&typeof z[e]!="function"&&b(z,e,i))),O&&S&&S.name!==r&&(C=!0,D=function(){return S.call(this)}),(!I||u)&&(a||C||!w[e])&&b(w,e,D),g[o]=D,g[x]=i,f)if(N={values:O?D:E(r),keys:h?D:E(l),entries:R},u)for(M in N)M in w||T(w,M,N[M]);else v(v.P+v.F*(a||C),o,N);return N}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(j,W,y){var I=j("./_wks")("iterator"),v=!1;try{var T=[7][I]();T.return=function(){v=!0},Array.from(T,function(){throw 2})}catch(b){}W.exports=function(b,g){if(!g&&!v)return!1;var s=!1;try{var _=[7],p=_[I]();p.next=function(){return{done:s=!0}},_[I]=function(){return p},b(_)}catch(e){}return s}},{"./_wks":166}],124:[function(j,W,y){W.exports=function(I,v){return{value:v,done:!!I}}},{}],125:[function(j,W,y){W.exports={}},{}],126:[function(j,W,y){W.exports=!0},{}],127:[function(j,W,y){var I=j("./_uid")("meta"),v=j("./_is-object"),T=j("./_has"),b=j("./_object-dp").f,g=0,s=Object.isExtensible||function(){return!0},_=!j("./_fails")(function(){return s(Object.preventExtensions({}))}),p=function(r){b(r,I,{value:{i:"O"+ ++g,w:{}}})},e=function(r,i){if(!v(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!T(r,I)){if(!s(r))return"F";if(!i)return"E";p(r)}return r[I].i},a=function(r,i){if(!T(r,I)){if(!s(r))return!0;if(!i)return!1;p(r)}return r[I].w},n=function(r){return _&&l.NEED&&s(r)&&!T(r,I)&&p(r),r},l=W.exports={KEY:I,NEED:!1,fastKey:e,getWeak:a,onFreeze:n}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(j,W,y){var I=j("./_global"),v=j("./_task").set,T=I.MutationObserver||I.WebKitMutationObserver,b=I.process,g=I.Promise,s=j("./_cof")(b)=="process";W.exports=function(){var _,p,e,a=function(){var i,t;for(s&&(i=b.domain)&&i.exit();_;){t=_.fn,_=_.next;try{t()}catch(o){throw _?e():p=void 0,o}}p=void 0,i&&i.enter()};if(s)e=function(){b.nextTick(a)};else if(T&&!(I.navigator&&I.navigator.standalone)){var n=!0,l=document.createTextNode("");new T(a).observe(l,{characterData:!0}),e=function(){l.data=n=!n}}else if(g&&g.resolve){var r=g.resolve(void 0);e=function(){r.then(a)}}else e=function(){v.call(I,a)};return function(i){var t={fn:i,next:void 0};p&&(p.next=t),_||(_=t,e()),p=t}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(j,W,y){"use strict";var I=j("./_a-function");function v(T){var b,g;this.promise=new T(function(s,_){if(b!==void 0||g!==void 0)throw TypeError("Bad Promise constructor");b=s,g=_}),this.resolve=I(b),this.reject=I(g)}W.exports.f=function(T){return new v(T)}},{"./_a-function":92}],130:[function(j,W,y){"use strict";var I=j("./_descriptors"),v=j("./_object-keys"),T=j("./_object-gops"),b=j("./_object-pie"),g=j("./_to-object"),s=j("./_iobject"),_=Object.assign;W.exports=!_||j("./_fails")(function(){var p={},e={},a=Symbol(),n="abcdefghijklmnopqrst";return p[a]=7,n.split("").forEach(function(l){e[l]=l}),_({},p)[a]!=7||Object.keys(_({},e)).join("")!=n})?function(e,a){for(var n=g(e),l=arguments.length,r=1,i=T.f,t=b.f;l>r;)for(var o=s(arguments[r++]),c=i?v(o).concat(i(o)):v(o),d=c.length,f=0,h;d>f;)h=c[f++],(!I||t.call(o,h))&&(n[h]=o[h]);return n}:_},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(j,W,y){var I=j("./_an-object"),v=j("./_object-dps"),T=j("./_enum-bug-keys"),b=j("./_shared-key")("IE_PROTO"),g=function(){},s="prototype",_=function(){var p=j("./_dom-create")("iframe"),e=T.length,a="<",n=">",l;for(p.style.display="none",j("./_html").appendChild(p),p.src="javascript:",l=p.contentWindow.document,l.open(),l.write(a+"script"+n+"document.F=Object"+a+"/script"+n),l.close(),_=l.F;e--;)delete _[s][T[e]];return _()};W.exports=Object.create||function(e,a){var n;return e!==null?(g[s]=I(e),n=new g,g[s]=null,n[b]=e):n=_(),a===void 0?n:v(n,a)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(j,W,y){var I=j("./_an-object"),v=j("./_ie8-dom-define"),T=j("./_to-primitive"),b=Object.defineProperty;y.f=j("./_descriptors")?Object.defineProperty:function(s,_,p){if(I(s),_=T(_,!0),I(p),v)try{return b(s,_,p)}catch(e){}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(s[_]=p.value),s}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(j,W,y){var I=j("./_object-dp"),v=j("./_an-object"),T=j("./_object-keys");W.exports=j("./_descriptors")?Object.defineProperties:function(g,s){v(g);for(var _=T(s),p=_.length,e=0,a;p>e;)I.f(g,a=_[e++],s[a]);return g}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(j,W,y){var I=j("./_object-pie"),v=j("./_property-desc"),T=j("./_to-iobject"),b=j("./_to-primitive"),g=j("./_has"),s=j("./_ie8-dom-define"),_=Object.getOwnPropertyDescriptor;y.f=j("./_descriptors")?_:function(e,a){if(e=T(e),a=b(a,!0),s)try{return _(e,a)}catch(n){}if(g(e,a))return v(!I.f.call(e,a),e[a])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(j,W,y){var I=j("./_to-iobject"),v=j("./_object-gopn").f,T={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],g=function(s){try{return v(s)}catch(_){return b.slice()}};W.exports.f=function(_){return b&&T.call(_)=="[object Window]"?g(_):v(I(_))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(j,W,y){var I=j("./_object-keys-internal"),v=j("./_enum-bug-keys").concat("length","prototype");y.f=Object.getOwnPropertyNames||function(b){return I(b,v)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(j,W,y){y.f=Object.getOwnPropertySymbols},{}],138:[function(j,W,y){var I=j("./_has"),v=j("./_to-object"),T=j("./_shared-key")("IE_PROTO"),b=Object.prototype;W.exports=Object.getPrototypeOf||function(g){return g=v(g),I(g,T)?g[T]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?b:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(j,W,y){var I=j("./_has"),v=j("./_to-iobject"),T=j("./_array-includes")(!1),b=j("./_shared-key")("IE_PROTO");W.exports=function(g,s){var _=v(g),p=0,e=[],a;for(a in _)a!=b&&(I(_,a)&&e.push(a));for(;s.length>p;)I(_,a=s[p++])&&(~T(e,a)||e.push(a));return e}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(j,W,y){var I=j("./_object-keys-internal"),v=j("./_enum-bug-keys");W.exports=Object.keys||function(b){return I(b,v)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(j,W,y){y.f={}.propertyIsEnumerable},{}],142:[function(j,W,y){var I=j("./_export"),v=j("./_core"),T=j("./_fails");W.exports=function(b,g){var s=(v.Object||{})[b]||Object[b],_={};_[b]=g(s),I(I.S+I.F*T(function(){s(1)}),"Object",_)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(j,W,y){var I=j("./_descriptors"),v=j("./_object-keys"),T=j("./_to-iobject"),b=j("./_object-pie").f;W.exports=function(g){return function(s){for(var _=T(s),p=v(_),e=p.length,a=0,n=[],l;e>a;)l=p[a++],(!I||b.call(_,l))&&n.push(g?[l,_[l]]:_[l]);return n}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(j,W,y){W.exports=function(I){try{return{e:!1,v:I()}}catch(v){return{e:!0,v}}}},{}],145:[function(j,W,y){var I=j("./_an-object"),v=j("./_is-object"),T=j("./_new-promise-capability");W.exports=function(b,g){if(I(b),v(g)&&g.constructor===b)return g;var s=T.f(b),_=s.resolve;return _(g),s.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(j,W,y){W.exports=function(I,v){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:v}}},{}],147:[function(j,W,y){var I=j("./_hide");W.exports=function(v,T,b){for(var g in T)b&&v[g]?v[g]=T[g]:I(v,g,T[g]);return v}},{"./_hide":112}],148:[function(j,W,y){W.exports=j("./_hide")},{"./_hide":112}],149:[function(j,W,y){"use strict";var I=j("./_global"),v=j("./_core"),T=j("./_object-dp"),b=j("./_descriptors"),g=j("./_wks")("species");W.exports=function(s){var _=typeof v[s]=="function"?v[s]:I[s];b&&_&&!_[g]&&T.f(_,g,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(j,W,y){var I=j("./_object-dp").f,v=j("./_has"),T=j("./_wks")("toStringTag");W.exports=function(b,g,s){b&&!v(b=s?b:b.prototype,T)&&I(b,T,{configurable:!0,value:g})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(j,W,y){var I=j("./_shared")("keys"),v=j("./_uid");W.exports=function(T){return I[T]||(I[T]=v(T))}},{"./_shared":152,"./_uid":162}],152:[function(j,W,y){var I=j("./_core"),v=j("./_global"),T="__core-js_shared__",b=v[T]||(v[T]={});(W.exports=function(g,s){return b[g]||(b[g]=s!==void 0?s:{})})("versions",[]).push({version:I.version,mode:j("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(j,W,y){var I=j("./_an-object"),v=j("./_a-function"),T=j("./_wks")("species");W.exports=function(b,g){var s=I(b).constructor,_;return s===void 0||(_=I(s)[T])==null?g:v(_)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(j,W,y){var I=j("./_to-integer"),v=j("./_defined");W.exports=function(T){return function(b,g){var s=String(v(b)),_=I(g),p=s.length,e,a;return _<0||_>=p?T?"":void 0:(e=s.charCodeAt(_),e<55296||e>56319||_+1===p||(a=s.charCodeAt(_+1))<56320||a>57343?T?s.charAt(_):e:T?s.slice(_,_+2):(e-55296<<10)+(a-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(j,W,y){var I=j("./_ctx"),v=j("./_invoke"),T=j("./_html"),b=j("./_dom-create"),g=j("./_global"),s=g.process,_=g.setImmediate,p=g.clearImmediate,e=g.MessageChannel,a=g.Dispatch,n=0,l={},r="onreadystatechange",i,t,o,c=function(){var f=+this;if(l.hasOwnProperty(f)){var h=l[f];delete l[f],h()}},d=function(f){c.call(f.data)};(!_||!p)&&(_=function(h){for(var u=[],E=1;arguments.length>E;)u.push(arguments[E++]);return l[++n]=function(){v(typeof h=="function"?h:Function(h),u)},i(n),n},p=function(h){delete l[h]},j("./_cof")(s)=="process"?i=function(f){s.nextTick(I(c,f,1))}:a&&a.now?i=function(f){a.now(I(c,f,1))}:e?(t=new e,o=t.port2,t.port1.onmessage=d,i=I(o.postMessage,o,1)):g.addEventListener&&typeof postMessage=="function"&&!g.importScripts?(i=function(f){g.postMessage(f+"","*")},g.addEventListener("message",d,!1)):r in b("script")?i=function(f){T.appendChild(b("script"))[r]=function(){T.removeChild(this),c.call(f)}}:i=function(f){setTimeout(I(c,f,1),0)}),W.exports={set:_,clear:p}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(j,W,y){var I=j("./_to-integer"),v=Math.max,T=Math.min;W.exports=function(b,g){return b=I(b),b<0?v(b+g,0):T(b,g)}},{"./_to-integer":157}],157:[function(j,W,y){var I=Math.ceil,v=Math.floor;W.exports=function(T){return isNaN(T=+T)?0:(T>0?v:I)(T)}},{}],158:[function(j,W,y){var I=j("./_iobject"),v=j("./_defined");W.exports=function(T){return I(v(T))}},{"./_defined":102,"./_iobject":116}],159:[function(j,W,y){var I=j("./_to-integer"),v=Math.min;W.exports=function(T){return T>0?v(I(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(j,W,y){var I=j("./_defined");W.exports=function(v){return Object(I(v))}},{"./_defined":102}],161:[function(j,W,y){var I=j("./_is-object");W.exports=function(v,T){if(!I(v))return v;var b,g;if(T&&typeof(b=v.toString)=="function"&&!I(g=b.call(v)))return g;if(typeof(b=v.valueOf)=="function"&&!I(g=b.call(v)))return g;if(!T&&typeof(b=v.toString)=="function"&&!I(g=b.call(v)))return g;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(j,W,y){var I=0,v=Math.random();W.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++I+v).toString(36))}},{}],163:[function(j,W,y){var I=j("./_global"),v=I.navigator;W.exports=v&&v.userAgent||""},{"./_global":110}],164:[function(j,W,y){var I=j("./_global"),v=j("./_core"),T=j("./_library"),b=j("./_wks-ext"),g=j("./_object-dp").f;W.exports=function(s){var _=v.Symbol||(v.Symbol=T?{}:I.Symbol||{});s.charAt(0)!="_"&&!(s in _)&&g(_,s,{value:b.f(s)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(j,W,y){y.f=j("./_wks")},{"./_wks":166}],166:[function(j,W,y){var I=j("./_shared")("wks"),v=j("./_uid"),T=j("./_global").Symbol,b=typeof T=="function",g=W.exports=function(s){return I[s]||(I[s]=b&&T[s]||(b?T:v)("Symbol."+s))};g.store=I},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(j,W,y){var I=j("./_classof"),v=j("./_wks")("iterator"),T=j("./_iterators");W.exports=j("./_core").getIteratorMethod=function(b){if(b!=null)return b[v]||b["@@iterator"]||T[I(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(j,W,y){"use strict";var I=j("./_ctx"),v=j("./_export"),T=j("./_to-object"),b=j("./_iter-call"),g=j("./_is-array-iter"),s=j("./_to-length"),_=j("./_create-property"),p=j("./core.get-iterator-method");v(v.S+v.F*!j("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(a){var n=T(a),l=typeof this=="function"?this:Array,r=arguments.length,i=r>1?arguments[1]:void 0,t=i!==void 0,o=0,c=p(n),d,f,h,u;if(t&&(i=I(i,r>2?arguments[2]:void 0,2)),c!=null&&!(l==Array&&g(c)))for(u=c.call(n),f=new l;!(h=u.next()).done;o++)_(f,o,t?b(u,i,[h.value,o],!0):h.value);else for(d=s(n.length),f=new l(d);d>o;o++)_(f,o,t?i(n[o],o):n[o]);return f.length=o,f}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(j,W,y){"use strict";var I=j("./_add-to-unscopables"),v=j("./_iter-step"),T=j("./_iterators"),b=j("./_to-iobject");W.exports=j("./_iter-define")(Array,"Array",function(g,s){this._t=b(g),this._i=0,this._k=s},function(){var g=this._t,s=this._k,_=this._i++;return!g||_>=g.length?(this._t=void 0,v(1)):s=="keys"?v(0,_):s=="values"?v(0,g[_]):v(0,[_,g[_]])},"values"),T.Arguments=T.Array,I("keys"),I("values"),I("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(j,W,y){"use strict";var I=j("./_is-object"),v=j("./_object-gpo"),T=j("./_wks")("hasInstance"),b=Function.prototype;T in b||j("./_object-dp").f(b,T,{value:function(g){if(typeof this!="function"||!I(g))return!1;if(!I(this.prototype))return g instanceof this;for(;g=v(g);)if(this.prototype===g)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(j,W,y){var I=j("./_export");I(I.S+I.F,"Object",{assign:j("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(j,W,y){var I=j("./_export");I(I.S,"Object",{create:j("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(j,W,y){var I=j("./_export");I(I.S+I.F*!j("./_descriptors"),"Object",{defineProperty:j("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(j,W,y){j("./_object-sap")("getOwnPropertyNames",function(){return j("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(j,W,y){var I=j("./_to-object"),v=j("./_object-gpo");j("./_object-sap")("getPrototypeOf",function(){return function(b){return v(I(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(j,W,y){var I=j("./_to-object"),v=j("./_object-keys");j("./_object-sap")("keys",function(){return function(b){return v(I(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(j,W,y){arguments[4][71][0].apply(y,arguments)},{dup:71}],178:[function(j,W,y){"use strict";var I=j("./_library"),v=j("./_global"),T=j("./_ctx"),b=j("./_classof"),g=j("./_export"),s=j("./_is-object"),_=j("./_a-function"),p=j("./_an-instance"),e=j("./_for-of"),a=j("./_species-constructor"),n=j("./_task").set,l=j("./_microtask")(),r=j("./_new-promise-capability"),i=j("./_perform"),t=j("./_user-agent"),o=j("./_promise-resolve"),c="Promise",d=v.TypeError,f=v.process,h=f&&f.versions,u=h&&h.v8||"",E=v[c],x=b(f)=="process",O=function(){},C,w,S,D,R=w=r.f,P=!!function(){try{var L=E.resolve(1),B=(L.constructor={})[j("./_wks")("species")]=function(Z){Z(O,O)};return(x||typeof PromiseRejectionEvent=="function")&&L.then(O)instanceof B&&u.indexOf("6.6")!==0&&t.indexOf("Chrome/66")===-1}catch(Z){}}(),N=function(L){var B;return s(L)&&typeof(B=L.then)=="function"?B:!1},M=function(L,B){if(L._n)return;L._n=!0;var Z=L._c;l(function(){for(var re=L._v,me=L._s==1,Ee=0,De=function(te){var Ce=me?te.ok:te.fail,we=te.resolve,ce=te.reject,le=te.domain,oe,xe,q;try{Ce?(me||(L._h==2&&k(L),L._h=1),Ce===!0?oe=re:(le&&le.enter(),oe=Ce(re),le&&(le.exit(),q=!0)),oe===te.promise?ce(d("Promise-chain cycle")):(xe=N(oe))?xe.call(oe,we,ce):we(oe)):ce(re)}catch(se){le&&!q&&le.exit(),ce(se)}};Z.length>Ee;)De(Z[Ee++]);L._c=[],L._n=!1,B&&!L._h&&z(L)})},z=function(L){n.call(v,function(){var B=L._v,Z=X(L),re,me,Ee;if(Z&&(re=i(function(){x?f.emit("unhandledRejection",B,L):(me=v.onunhandledrejection)?me({promise:L,reason:B}):(Ee=v.console)&&Ee.error&&Ee.error("Unhandled promise rejection",B)}),L._h=x||X(L)?2:1),L._a=void 0,Z&&re.e)throw re.v})},X=function(L){return L._h!==1&&(L._a||L._c).length===0},k=function(L){n.call(v,function(){var B;x?f.emit("rejectionHandled",L):(B=v.onrejectionhandled)&&B({promise:L,reason:L._v})})},F=function(L){var B=this;if(B._d)return;B._d=!0,B=B._w||B,B._v=L,B._s=2,B._a||(B._a=B._c.slice()),M(B,!0)},U=function(L){var B=this,Z;if(B._d)return;B._d=!0,B=B._w||B;try{if(B===L)throw d("Promise can't be resolved itself");(Z=N(L))?l(function(){var re={_w:B,_d:!1};try{Z.call(L,T(U,re,1),T(F,re,1))}catch(me){F.call(re,me)}}):(B._v=L,B._s=1,M(B,!1))}catch(re){F.call({_w:B,_d:!1},re)}};P||(E=function(B){p(this,E,c,"_h"),_(B),C.call(this);try{B(T(U,this,1),T(F,this,1))}catch(Z){F.call(this,Z)}},C=function(B){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=j("./_redefine-all")(E.prototype,{then:function(B,Z){var re=R(a(this,E));return re.ok=typeof B=="function"?B:!0,re.fail=typeof Z=="function"&&Z,re.domain=x?f.domain:void 0,this._c.push(re),this._a&&this._a.push(re),this._s&&M(this,!1),re.promise},catch:function(L){return this.then(void 0,L)}}),S=function(){var L=new C;this.promise=L,this.resolve=T(U,L,1),this.reject=T(F,L,1)},r.f=R=function(L){return L===E||L===D?new S(L):w(L)}),g(g.G+g.W+g.F*!P,{Promise:E}),j("./_set-to-string-tag")(E,c),j("./_set-species")(c),D=j("./_core")[c],g(g.S+g.F*!P,c,{reject:function(B){var Z=R(this),re=Z.reject;return re(B),Z.promise}}),g(g.S+g.F*(I||!P),c,{resolve:function(B){return o(I&&this===D?E:this,B)}}),g(g.S+g.F*!(P&&j("./_iter-detect")(function(L){E.all(L).catch(O)})),c,{all:function(B){var Z=this,re=R(Z),me=re.resolve,Ee=re.reject,De=i(function(){var te=[],Ce=0,we=1;e(B,!1,function(ce){var le=Ce++,oe=!1;te.push(void 0),we++,Z.resolve(ce).then(function(xe){if(oe)return;oe=!0,te[le]=xe,--we||me(te)},Ee)}),--we||me(te)});return De.e&&Ee(De.v),re.promise},race:function(B){var Z=this,re=R(Z),me=re.reject,Ee=i(function(){e(B,!1,function(De){Z.resolve(De).then(re.resolve,me)})});return Ee.e&&me(Ee.v),re.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(j,W,y){var I=j("./_export"),v=j("./_to-absolute-index"),T=String.fromCharCode,b=String.fromCodePoint;I(I.S+I.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(s){for(var _=[],p=arguments.length,e=0,a;p>e;){if(a=+arguments[e++],v(a,1114111)!==a)throw RangeError(a+" is not a valid code point");_.push(a<65536?T(a):T(((a-=65536)>>10)+55296,a%1024+56320))}return _.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(j,W,y){"use strict";var I=j("./_string-at")(!0);j("./_iter-define")(String,"String",function(v){this._t=String(v),this._i=0},function(){var v=this._t,T=this._i,b;return T>=v.length?{value:void 0,done:!0}:(b=I(v,T),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(j,W,y){"use strict";var I=j("./_global"),v=j("./_has"),T=j("./_descriptors"),b=j("./_export"),g=j("./_redefine"),s=j("./_meta").KEY,_=j("./_fails"),p=j("./_shared"),e=j("./_set-to-string-tag"),a=j("./_uid"),n=j("./_wks"),l=j("./_wks-ext"),r=j("./_wks-define"),i=j("./_enum-keys"),t=j("./_is-array"),o=j("./_an-object"),c=j("./_is-object"),d=j("./_to-object"),f=j("./_to-iobject"),h=j("./_to-primitive"),u=j("./_property-desc"),E=j("./_object-create"),x=j("./_object-gopn-ext"),O=j("./_object-gopd"),C=j("./_object-gops"),w=j("./_object-dp"),S=j("./_object-keys"),D=O.f,R=w.f,P=x.f,N=I.Symbol,M=I.JSON,z=M&&M.stringify,X="prototype",k=n("_hidden"),F=n("toPrimitive"),U={}.propertyIsEnumerable,L=p("symbol-registry"),B=p("symbols"),Z=p("op-symbols"),re=Object[X],me=typeof N=="function"&&!!C.f,Ee=I.QObject,De=!Ee||!Ee[X]||!Ee[X].findChild,te=T&&_(function(){return E(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a!=7})?function(ae,be,Ie){var pe=D(re,be);pe&&delete re[be],R(ae,be,Ie),pe&&ae!==re&&R(re,be,pe)}:R,Ce=function(ae){var be=B[ae]=E(N[X]);return be._k=ae,be},we=me&&typeof N.iterator=="symbol"?function(ae){return typeof ae=="symbol"}:function(ae){return ae instanceof N},ce=function(be,Ie,pe){return be===re&&ce(Z,Ie,pe),o(be),Ie=h(Ie,!0),o(pe),v(B,Ie)?(pe.enumerable?(v(be,k)&&be[k][Ie]&&(be[k][Ie]=!1),pe=E(pe,{enumerable:u(0,!1)})):(v(be,k)||R(be,k,u(1,{})),be[k][Ie]=!0),te(be,Ie,pe)):R(be,Ie,pe)},le=function(be,Ie){o(be);for(var pe=i(Ie=f(Ie)),Le=0,ve=pe.length,Xe;ve>Le;)ce(be,Xe=pe[Le++],Ie[Xe]);return be},oe=function(be,Ie){return Ie===void 0?E(be):le(E(be),Ie)},xe=function(be){var Ie=U.call(this,be=h(be,!0));return this===re&&v(B,be)&&!v(Z,be)?!1:Ie||!v(this,be)||!v(B,be)||v(this,k)&&this[k][be]?Ie:!0},q=function(be,Ie){if(be=f(be),Ie=h(Ie,!0),be===re&&v(B,Ie)&&!v(Z,Ie))return;var pe=D(be,Ie);return pe&&v(B,Ie)&&!(v(be,k)&&be[k][Ie])&&(pe.enumerable=!0),pe},se=function(be){for(var Ie=P(f(be)),pe=[],Le=0,ve;Ie.length>Le;)!v(B,ve=Ie[Le++])&&ve!=k&&ve!=s&&pe.push(ve);return pe},Ne=function(be){for(var Ie=be===re,pe=P(Ie?Z:f(be)),Le=[],ve=0,Xe;pe.length>ve;)v(B,Xe=pe[ve++])&&(Ie?v(re,Xe):!0)&&Le.push(B[Xe]);return Le};me||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var be=a(arguments.length>0?arguments[0]:void 0),Ie=function(pe){this===re&&Ie.call(Z,pe),v(this,k)&&v(this[k],be)&&(this[k][be]=!1),te(this,be,u(1,pe))};return T&&De&&te(re,be,{configurable:!0,set:Ie}),Ce(be)},g(N[X],"toString",function(){return this._k}),O.f=q,w.f=ce,j("./_object-gopn").f=x.f=se,j("./_object-pie").f=xe,C.f=Ne,T&&!j("./_library")&&g(re,"propertyIsEnumerable",xe,!0),l.f=function(ae){return Ce(n(ae))}),b(b.G+b.W+b.F*!me,{Symbol:N});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$=0;de.length>$;)n(de[$++]);for(var Q=S(n.store),Y=0;Q.length>Y;)r(Q[Y++]);b(b.S+b.F*!me,"Symbol",{for:function(ae){return v(L,ae+="")?L[ae]:L[ae]=N(ae)},keyFor:function(be){if(!we(be))throw TypeError(be+" is not a symbol!");for(var Ie in L)if(L[Ie]===be)return Ie},useSetter:function(){De=!0},useSimple:function(){De=!1}}),b(b.S+b.F*!me,"Object",{create:oe,defineProperty:ce,defineProperties:le,getOwnPropertyDescriptor:q,getOwnPropertyNames:se,getOwnPropertySymbols:Ne});var ue=_(function(){C.f(1)});b(b.S+b.F*ue,"Object",{getOwnPropertySymbols:function(be){return C.f(d(be))}}),M&&b(b.S+b.F*(!me||_(function(){var ae=N();return z([ae])!="[null]"||z({a:ae})!="{}"||z(Object(ae))!="{}"})),"JSON",{stringify:function(be){for(var Ie=[be],pe=1,Le,ve;arguments.length>pe;)Ie.push(arguments[pe++]);return ve=Le=Ie[1],!c(Le)&&be===void 0||we(be)?void 0:(t(Le)||(Le=function(Xe,$e){if(typeof ve=="function"&&($e=ve.call(this,Xe,$e)),!we($e))return $e}),Ie[1]=Le,z.apply(M,Ie))}}),N[X][F]||j("./_hide")(N[X],F,N[X].valueOf),e(N,"Symbol"),e(Math,"Math",!0),e(I.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(j,W,y){var I=j("./_export"),v=j("./_object-to-array")(!0);I(I.S,"Object",{entries:function(b){return v(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(j,W,y){"use strict";var I=j("./_export"),v=j("./_core"),T=j("./_global"),b=j("./_species-constructor"),g=j("./_promise-resolve");I(I.P+I.R,"Promise",{finally:function(s){var _=b(this,v.Promise||T.Promise),p=typeof s=="function";return this.then(p?function(e){return g(_,s()).then(function(){return e})}:s,p?function(e){return g(_,s()).then(function(){throw e})}:s)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(j,W,y){"use strict";var I=j("./_export"),v=j("./_new-promise-capability"),T=j("./_perform");I(I.S,"Promise",{try:function(b){var g=v.f(this),s=T(b);return(s.e?g.reject:g.resolve)(s.v),g.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(j,W,y){j("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(j,W,y){j("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(j,W,y){j("./es6.array.iterator");for(var I=j("./_global"),v=j("./_hide"),T=j("./_iterators"),b=j("./_wks")("toStringTag"),g="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<g.length;s++){var _=g[s],p=I[_],e=p&&p.prototype;e&&!e[b]&&v(e,b,_),T[_]=T.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(j,W,y){var I=j("./_export"),v=j("./_task");I(I.G+I.B,{setImmediate:v.set,clearImmediate:v.clear})},{"./_export":107,"./_task":155}],189:[function(j,W,y){(function(I){"use strict";var v=j("babel-runtime/helpers/typeof"),T=b(v);function b(h){return h&&h.__esModule?h:{default:h}}function g(h){return Array.isArray?Array.isArray(h):f(h)==="[object Array]"}y.isArray=g;function s(h){return typeof h=="boolean"}y.isBoolean=s;function _(h){return h===null}y.isNull=_;function p(h){return h==null}y.isNullOrUndefined=p;function e(h){return typeof h=="number"}y.isNumber=e;function a(h){return typeof h=="string"}y.isString=a;function n(h){return(typeof h=="undefined"?"undefined":(0,T.default)(h))==="symbol"}y.isSymbol=n;function l(h){return h===void 0}y.isUndefined=l;function r(h){return f(h)==="[object RegExp]"}y.isRegExp=r;function i(h){return(typeof h=="undefined"?"undefined":(0,T.default)(h))==="object"&&h!==null}y.isObject=i;function t(h){return f(h)==="[object Date]"}y.isDate=t;function o(h){return f(h)==="[object Error]"||h instanceof Error}y.isError=o;function c(h){return typeof h=="function"}y.isFunction=c;function d(h){return h===null||typeof h=="boolean"||typeof h=="number"||typeof h=="string"||(typeof h=="undefined"?"undefined":(0,T.default)(h))==="symbol"||typeof h=="undefined"}y.isPrimitive=d,y.isBuffer=I.isBuffer;function f(h){return Object.prototype.toString.call(h)}}).call(this,{isBuffer:j("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(j,W,y){"use strict";var I=j("babel-runtime/helpers/typeof"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(b){"use strict";var g=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g;return function(r,i,t,o){if(arguments.length===1&&e(r)==="string"&&!/\d/.test(r)&&(i=r,r=void 0),r=r||new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError("Invalid date");i=String(g.masks[i]||i||g.masks.default);var c=i.slice(0,4);(c==="UTC:"||c==="GMT:")&&(i=i.slice(4),t=!0,c==="GMT:"&&(o=!0));var d=t?"getUTC":"get",f=r[d+"Date"](),h=r[d+"Day"](),u=r[d+"Month"](),E=r[d+"FullYear"](),x=r[d+"Hours"](),O=r[d+"Minutes"](),C=r[d+"Seconds"](),w=r[d+"Milliseconds"](),S=t?0:r.getTimezoneOffset(),D=_(r),R=p(r),P={d:f,dd:s(f),ddd:g.i18n.dayNames[h],dddd:g.i18n.dayNames[h+7],m:u+1,mm:s(u+1),mmm:g.i18n.monthNames[u],mmmm:g.i18n.monthNames[u+12],yy:String(E).slice(2),yyyy:E,h:x%12||12,hh:s(x%12||12),H:x,HH:s(x),M:O,MM:s(O),s:C,ss:s(C),l:s(w,3),L:s(Math.round(w/10)),t:x<12?"a":"p",tt:x<12?"am":"pm",T:x<12?"A":"P",TT:x<12?"AM":"PM",Z:o?"GMT":t?"UTC":(String(r).match(n)||[""]).pop().replace(l,""),o:(S>0?"-":"+")+s(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:D,N:R};return i.replace(a,function(N){return N in P?P[N]:N.slice(1,N.length-1)})}}();g.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},g.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function s(a,n){for(a=String(a),n=n||2;a.length<n;)a="0"+a;return a}function _(a){var n=new Date(a.getFullYear(),a.getMonth(),a.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var l=new Date(n.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);var r=n.getTimezoneOffset()-l.getTimezoneOffset();n.setHours(n.getHours()-r);var i=(n-l)/(864e5*7);return 1+Math.floor(i)}function p(a){var n=a.getDay();return n===0&&(n=7),n}function e(a){return a===null?"null":a===void 0?"undefined":(typeof a=="undefined"?"undefined":(0,v.default)(a))!=="object"?typeof a=="undefined"?"undefined":(0,v.default)(a):Array.isArray(a)?"array":{}.toString.call(a).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return g}):(typeof y=="undefined"?"undefined":(0,v.default)(y))==="object"?W.exports=g:b.dateFormat=g})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(j,W,y){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var I=/["'&<>]/;W.exports=v;function v(T){var b=""+T,g=I.exec(b);if(!g)return b;var s,_="",p=0,e=0;for(p=g.index;p<b.length;p++){switch(b.charCodeAt(p)){case 34:s="&quot;";break;case 38:s="&amp;";break;case 39:s="&#39;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;default:continue}e!==p&&(_+=b.substring(e,p)),e=p+1,_+=s}return e!==p?_+b.substring(e,p):_}},{}],192:[function(j,W,y){function I(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}W.exports=I,I.EventEmitter=I,I.prototype._events=void 0,I.prototype._maxListeners=void 0,I.defaultMaxListeners=10,I.prototype.setMaxListeners=function(s){if(!T(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},I.prototype.emit=function(s){var _,p,e,a,n,l;if(this._events||(this._events={}),s==="error"&&(!this._events.error||b(this._events.error)&&!this._events.error.length)){if(_=arguments[1],_ instanceof Error)throw _;var r=new Error('Uncaught, unspecified "error" event. ('+_+")");throw r.context=_,r}if(p=this._events[s],g(p))return!1;if(v(p))switch(arguments.length){case 1:p.call(this);break;case 2:p.call(this,arguments[1]);break;case 3:p.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),p.apply(this,a)}else if(b(p))for(a=Array.prototype.slice.call(arguments,1),l=p.slice(),e=l.length,n=0;n<e;n++)l[n].apply(this,a);return!0},I.prototype.addListener=function(s,_){var p;if(!v(_))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,v(_.listener)?_.listener:_),this._events[s]?b(this._events[s])?this._events[s].push(_):this._events[s]=[this._events[s],_]:this._events[s]=_,b(this._events[s])&&!this._events[s].warned&&(g(this._maxListeners)?p=I.defaultMaxListeners:p=this._maxListeners,p&&p>0&&this._events[s].length>p&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace())),this},I.prototype.on=I.prototype.addListener,I.prototype.once=function(s,_){if(!v(_))throw TypeError("listener must be a function");var p=!1;function e(){this.removeListener(s,e),p||(p=!0,_.apply(this,arguments))}return e.listener=_,this.on(s,e),this},I.prototype.removeListener=function(s,_){var p,e,a,n;if(!v(_))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(p=this._events[s],a=p.length,e=-1,p===_||v(p.listener)&&p.listener===_)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,_);else if(b(p)){for(n=a;n-- >0;)if(p[n]===_||p[n].listener&&p[n].listener===_){e=n;break}if(e<0)return this;p.length===1?(p.length=0,delete this._events[s]):p.splice(e,1),this._events.removeListener&&this.emit("removeListener",s,_)}return this},I.prototype.removeAllListeners=function(s){var _,p;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(_ in this._events){if(_==="removeListener")continue;this.removeAllListeners(_)}return this.removeAllListeners("removeListener"),this._events={},this}if(p=this._events[s],v(p))this.removeListener(s,p);else if(p)for(;p.length;)this.removeListener(s,p[p.length-1]);return delete this._events[s],this},I.prototype.listeners=function(s){var _;return!this._events||!this._events[s]?_=[]:v(this._events[s])?_=[this._events[s]]:_=this._events[s].slice(),_},I.prototype.listenerCount=function(s){if(this._events){var _=this._events[s];if(v(_))return 1;if(_)return _.length}return 0},I.listenerCount=function(s,_){return s.listenerCount(_)};function v(s){return typeof s=="function"}function T(s){return typeof s=="number"}function b(s){return typeof s=="object"&&s!==null}function g(s){return s===void 0}},{}],193:[function(j,W,y){var I=j("http"),v=W.exports;for(var T in I)I.hasOwnProperty(T)&&(v[T]=I[T]);v.request=function(b,g){return b||(b={}),b.scheme="https",b.protocol="https:",I.request.call(this,b,g)}},{http:231}],194:[function(j,W,y){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var I=j("util"),v=j("ms");W.exports=function(T){if(typeof T=="number")return T;var b=v(T);if(b===void 0){var g=new Error(I.format("humanize-ms(%j) result undefined",T));console.warn(g.stack)}return b}},{ms:204,util:243}],195:[function(j,W,y){y.read=function(I,v,T,b,g){var s,_,p=g*8-b-1,e=(1<<p)-1,a=e>>1,n=-7,l=T?g-1:0,r=T?-1:1,i=I[v+l];for(l+=r,s=i&(1<<-n)-1,i>>=-n,n+=p;n>0;s=s*256+I[v+l],l+=r,n-=8);for(_=s&(1<<-n)-1,s>>=-n,n+=b;n>0;_=_*256+I[v+l],l+=r,n-=8);if(s===0)s=1-a;else{if(s===e)return _?NaN:(i?-1:1)*Infinity;_=_+Math.pow(2,b),s=s-a}return(i?-1:1)*_*Math.pow(2,s-b)},y.write=function(I,v,T,b,g,s){var _,p,e,a=s*8-g-1,n=(1<<a)-1,l=n>>1,r=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=b?0:s-1,t=b?1:-1,o=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===Infinity?(p=isNaN(v)?1:0,_=n):(_=Math.floor(Math.log(v)/Math.LN2),v*(e=Math.pow(2,-_))<1&&(_--,e*=2),_+l>=1?v+=r/e:v+=r*Math.pow(2,1-l),v*e>=2&&(_++,e/=2),_+l>=n?(p=0,_=n):_+l>=1?(p=(v*e-1)*Math.pow(2,g),_=_+l):(p=v*Math.pow(2,l-1)*Math.pow(2,g),_=0));g>=8;I[T+i]=p&255,i+=t,p/=256,g-=8);for(_=_<<g|p,a+=g;a>0;I[T+i]=_&255,i+=t,_/=256,a-=8);I[T+i-t]|=o*128}},{}],196:[function(j,W,y){typeof Object.create=="function"?W.exports=function(v,T){T&&(v.super_=T,v.prototype=Object.create(T.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(v,T){if(T){v.super_=T;var b=function(){};b.prototype=T.prototype,v.prototype=new b,v.prototype.constructor=v}}},{}],197:[function(j,W,y){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/W.exports=function(T){return T!=null&&(I(T)||v(T)||!!T._isBuffer)};function I(T){return!!T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T)}function v(T){return typeof T.readFloatLE=="function"&&typeof T.slice=="function"&&I(T.slice(0,0))}},{}],198:[function(j,W,y){var I={}.toString;W.exports=Array.isArray||function(v){return I.call(v)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(j,W){typeof exports=="object"&&typeof module!="undefined"?module.exports=W(j):typeof define=="function"&&define.amd?define(W):W(j)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(j){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(j){for(var W={},y=0,I=j.length;y<I;y++)W[j.charAt(y)]=y;return W}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(j){if(j.length<2){var W=j.charCodeAt(0);return W<128?j:W<2048?fromCharCode(192|W>>>6)+fromCharCode(128|W&63):fromCharCode(224|W>>>12&15)+fromCharCode(128|W>>>6&63)+fromCharCode(128|W&63)}else{var W=65536+(j.charCodeAt(0)-55296)*1024+(j.charCodeAt(1)-56320);return fromCharCode(240|W>>>18&7)+fromCharCode(128|W>>>12&63)+fromCharCode(128|W>>>6&63)+fromCharCode(128|W&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(j){return j.replace(re_utob,cb_utob)},cb_encode=function(j){var W=[0,2,1][j.length%3],y=j.charCodeAt(0)<<16|(j.length>1?j.charCodeAt(1):0)<<8|(j.length>2?j.charCodeAt(2):0),I=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),W>=2?"=":b64chars.charAt(y>>>6&63),W>=1?"=":b64chars.charAt(y&63)];return I.join("")},btoa=global.btoa?function(j){return global.btoa(j)}:function(j){return j.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(j){var W=Object.prototype.toString.call(j)==="[object Uint8Array]";return W?j.toString("base64"):btoa(utob(String(j)))},encode=function(j,W){return W?_encode(String(j)).replace(/[+\/]/g,function(y){return y=="+"?"-":"_"}).replace(/=/g,""):_encode(j)},encodeURI=function(j){return encode(j,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(j){switch(j.length){case 4:var W=(7&j.charCodeAt(0))<<18|(63&j.charCodeAt(1))<<12|(63&j.charCodeAt(2))<<6|63&j.charCodeAt(3),y=W-65536;return fromCharCode((y>>>10)+55296)+fromCharCode((y&1023)+56320);case 3:return fromCharCode((15&j.charCodeAt(0))<<12|(63&j.charCodeAt(1))<<6|63&j.charCodeAt(2));default:return fromCharCode((31&j.charCodeAt(0))<<6|63&j.charCodeAt(1))}},btou=function(j){return j.replace(re_btou,cb_btou)},cb_decode=function(j){var W=j.length,y=W%4,I=(W>0?b64tab[j.charAt(0)]<<18:0)|(W>1?b64tab[j.charAt(1)]<<12:0)|(W>2?b64tab[j.charAt(2)]<<6:0)|(W>3?b64tab[j.charAt(3)]:0),v=[fromCharCode(I>>>16),fromCharCode(I>>>8&255),fromCharCode(I&255)];return v.length-=[0,0,2,1][y],v.join("")},_atob=global.atob?function(j){return global.atob(j)}:function(j){return j.replace(/\S{1,4}/g,cb_decode)},atob=function(j){return _atob(String(j).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(j){return(j.constructor===buffer.constructor?j:buffer.from(j,"base64")).toString()}:function(j){return(j.constructor===buffer.constructor?j:new buffer(j,"base64")).toString()}:function(j){return btou(_atob(j))},decode=function(j){return _decode(String(j).replace(/[-_]/g,function(W){return W=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var j=global.Base64;return global.Base64=_Base64,j};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(j){return{value:j,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(j){return encode(this,j)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(j,W,y){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";W.exports=v;var I=Object.prototype.hasOwnProperty;function v(T,b,g){if(!T)throw new TypeError("argument dest is required");if(!b)throw new TypeError("argument src is required");return g===void 0&&(g=!0),Object.getOwnPropertyNames(b).forEach(function(_){if(!g&&I.call(T,_))return;var p=Object.getOwnPropertyDescriptor(b,_);Object.defineProperty(T,_,p)}),T}},{}],201:[function(j,W,y){"use strict";function I(){this._types=Object.create(null),this._extensions=Object.create(null);for(var v=0;v<arguments.length;v++)this.define(arguments[v]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}I.prototype.define=function(v,T){for(var b in v){var g=v[b].map(function(p){return p.toLowerCase()});b=b.toLowerCase();for(var s=0;s<g.length;s++){var _=g[s];if(_[0]=="*")continue;if(!T&&_ in this._types)throw new Error('Attempt to change mapping for "'+_+'" extension from "'+this._types[_]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+_+'" from the list of extensions for "'+b+'".');this._types[_]=b}if(T||!this._extensions[b]){var _=g[0];this._extensions[b]=_[0]!="*"?_:_.substr(1)}}},I.prototype.getType=function(v){v=String(v);var T=v.replace(/^.*[/\\]/,"").toLowerCase(),b=T.replace(/^.*\./,"").toLowerCase(),g=T.length<v.length,s=b.length<T.length-1;return(s||!g)&&this._types[b]||null},I.prototype.getExtension=function(v){return v=/^\s*([^;\s]*)/.test(v)&&RegExp.$1,v&&this._extensions[v.toLowerCase()]||null},W.exports=I},{}],202:[function(j,W,y){"use strict";var I=j("./Mime");W.exports=new I(j("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(j,W,y){W.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(j,W,y){var I=1e3,v=I*60,T=v*60,b=T*24,g=b*7,s=b*365.25;W.exports=function(n,l){l=l||{};var r=typeof n;if(r==="string"&&n.length>0)return _(n);if(r==="number"&&isFinite(n))return l.long?e(n):p(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function _(n){if(n=String(n),n.length>100)return;var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(!l)return;var r=parseFloat(l[1]),i=(l[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*s;case"weeks":case"week":case"w":return r*g;case"days":case"day":case"d":return r*b;case"hours":case"hour":case"hrs":case"hr":case"h":return r*T;case"minutes":case"minute":case"mins":case"min":case"m":return r*v;case"seconds":case"second":case"secs":case"sec":case"s":return r*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}function p(n){var l=Math.abs(n);return l>=b?Math.round(n/b)+"d":l>=T?Math.round(n/T)+"h":l>=v?Math.round(n/v)+"m":l>=I?Math.round(n/I)+"s":n+"ms"}function e(n){var l=Math.abs(n);return l>=b?a(n,l,b,"day"):l>=T?a(n,l,T,"hour"):l>=v?a(n,l,v,"minute"):l>=I?a(n,l,I,"second"):n+" ms"}function a(n,l,r,i){var t=l>=r*1.5;return Math.round(n/r)+" "+i+(t?"s":"")}},{}],205:[function(j,W,y){(function(I){function v(s,_){for(var p=0,e=s.length-1;e>=0;e--){var a=s[e];a==="."?s.splice(e,1):a===".."?(s.splice(e,1),p++):p&&(s.splice(e,1),p--)}if(_)for(;p--;p)s.unshift("..");return s}y.resolve=function(){for(var s="",_=!1,p=arguments.length-1;p>=-1&&!_;p--){var e=p>=0?arguments[p]:I.cwd();if(typeof e!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!e)continue;s=e+"/"+s,_=e.charAt(0)==="/"}return s=v(b(s.split("/"),function(a){return!!a}),!_).join("/"),(_?"/":"")+s||"."},y.normalize=function(s){var _=y.isAbsolute(s),p=g(s,-1)==="/";return s=v(b(s.split("/"),function(e){return!!e}),!_).join("/"),!s&&!_&&(s="."),s&&p&&(s+="/"),(_?"/":"")+s},y.isAbsolute=function(s){return s.charAt(0)==="/"},y.join=function(){var s=Array.prototype.slice.call(arguments,0);return y.normalize(b(s,function(_,p){if(typeof _!="string")throw new TypeError("Arguments to path.join must be strings");return _}).join("/"))},y.relative=function(s,_){s=y.resolve(s).substr(1),_=y.resolve(_).substr(1);function p(t){for(var o=0;o<t.length&&!(t[o]!=="");o++);for(var c=t.length-1;c>=0&&!(t[c]!=="");c--);return o>c?[]:t.slice(o,c-o+1)}for(var e=p(s.split("/")),a=p(_.split("/")),n=Math.min(e.length,a.length),l=n,r=0;r<n;r++)if(e[r]!==a[r]){l=r;break}for(var i=[],r=l;r<e.length;r++)i.push("..");return i=i.concat(a.slice(l)),i.join("/")},y.sep="/",y.delimiter=":",y.dirname=function(s){if(typeof s!="string"&&(s=s+""),s.length===0)return".";for(var _=s.charCodeAt(0),p=_===47,e=-1,a=!0,n=s.length-1;n>=1;--n)if(_=s.charCodeAt(n),_===47){if(!a){e=n;break}}else a=!1;return e===-1?p?"/":".":p&&e===1?"/":s.slice(0,e)};function T(s){typeof s!="string"&&(s=s+"");var _=0,p=-1,e=!0,a;for(a=s.length-1;a>=0;--a)if(s.charCodeAt(a)===47){if(!e){_=a+1;break}}else p===-1&&(e=!1,p=a+1);return p===-1?"":s.slice(_,p)}y.basename=function(s,_){var p=T(s);return _&&p.substr(-1*_.length)===_&&(p=p.substr(0,p.length-_.length)),p},y.extname=function(s){typeof s!="string"&&(s=s+"");for(var _=-1,p=0,e=-1,a=!0,n=0,l=s.length-1;l>=0;--l){var r=s.charCodeAt(l);if(r===47){if(!a){p=l+1;break}continue}e===-1&&(a=!1,e=l+1),r===46?_===-1?_=l:n!==1&&(n=1):_!==-1&&(n=-1)}return _===-1||e===-1||n===0||n===1&&_===e-1&&_===p+1?"":s.slice(_,e)};function b(s,_){if(s.filter)return s.filter(_);for(var p=[],e=0;e<s.length;e++)_(s[e],e,s)&&p.push(s[e]);return p}var g="ab".substr(-1)==="b"?function(s,_,p){return s.substr(_,p)}:function(s,_,p){return _<0&&(_=s.length+_),s.substr(_,p)}}).call(this,j("_process"))},{_process:208}],206:[function(j,W,y){(function(I){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var v={function:!0,object:!0},T=v[typeof window]&&window||this,b=T,g=v[typeof y]&&y,s=v[typeof W]&&W&&!W.nodeType&&W,_=g&&s&&typeof I=="object"&&I;_&&(_.global===_||_.window===_||_.self===_)&&(T=_);var p=Math.pow(2,53)-1,e=/\bOpera/,a=this,n=Object.prototype,l=n.hasOwnProperty,r=n.toString;function i(w){return w=String(w),w.charAt(0).toUpperCase()+w.slice(1)}function t(w,S,D){var R={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return S&&D&&/^Win/i.test(w)&&!/^Windows Phone /i.test(w)&&(R=R[/[\d.]+$/.exec(w)])&&(w="Windows "+R),w=String(w),S&&D&&(w=w.replace(RegExp(S,"i"),D)),w=c(w.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),w}function o(w,S){var D=-1,R=w?w.length:0;if(typeof R=="number"&&R>-1&&R<=p)for(;++D<R;)S(w[D],D,w);else d(w,S)}function c(w){return w=x(w),/^(?:webOS|i(?:OS|P))/.test(w)?w:i(w)}function d(w,S){for(var D in w)l.call(w,D)&&S(w[D],D,w)}function f(w){return w==null?i(w):r.call(w).slice(8,-1)}function h(w,S){var D=w!=null?typeof w[S]:"number";return!/^(?:boolean|number|string|undefined)$/.test(D)&&(D=="object"?!!w[S]:!0)}function u(w){return String(w).replace(/([ -])(?!$)/g,"$1?")}function E(w,S){var D=null;return o(w,function(R,P){D=S(D,R,P,w)}),D}function x(w){return String(w).replace(/^ +| +$/g,"")}function O(w){var S=T,D=w&&typeof w=="object"&&f(w)!="String";D&&(S=w,w=null);var R=S.navigator||{},P=R.userAgent||"";w||(w=P);var N=D||a==b,M=D?!!R.likeChrome:/\bChrome\b/.test(w)&&!/internal|\n/i.test(r.toString()),z="Object",X=D?z:"ScriptBridgingProxyObject",k=D?z:"Environment",F=D&&S.java?"JavaPackage":f(S.java),U=D?z:"RuntimeObject",L=/\bJava/.test(F)&&S.java,B=L&&f(S.environment)==k,Z=L?"a":"\u03B1",re=L?"b":"\u03B2",me=S.document||{},Ee=S.operamini||S.opera,De=e.test(De=D&&Ee?Ee["[[Class]]"]:f(Ee))?De:Ee=null,te,Ce=w,we=[],ce=null,le=w==P,oe=le&&Ee&&typeof Ee.version=="function"&&Ee.version(),xe,q=Q([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),se=ue(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ne=be([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),de=Y({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),$=ae(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Q(ve){return E(ve,function(Xe,$e){return Xe||RegExp("\\b"+($e.pattern||u($e))+"\\b","i").exec(w)&&($e.label||$e)})}function Y(ve){return E(ve,function(Xe,$e,Ge){return Xe||($e[Ne]||$e[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ne)]||RegExp("\\b"+u(Ge)+"(?:\\b|\\w*\\d)","i").exec(w))&&Ge})}function ue(ve){return E(ve,function(Xe,$e){return Xe||RegExp("\\b"+($e.pattern||u($e))+"\\b","i").exec(w)&&($e.label||$e)})}function ae(ve){return E(ve,function(Xe,$e){var Ge=$e.pattern||u($e);return!Xe&&(Xe=RegExp("\\b"+Ge+"(?:/[\\d.]+|[ \\w.]*)","i").exec(w))&&(Xe=t(Xe,Ge,$e.label||$e)),Xe})}function be(ve){return E(ve,function(Xe,$e){var Ge=$e.pattern||u($e);return!Xe&&(Xe=RegExp("\\b"+Ge+" *\\d+[.\\w_]*","i").exec(w)||RegExp("\\b"+Ge+" *\\w+-[\\w]*","i").exec(w)||RegExp("\\b"+Ge+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(w))&&((Xe=String($e.label&&!RegExp(Ge,"i").test($e.label)?$e.label:Xe).split("/"))[1]&&!/[\d.]+/.test(Xe[0])&&(Xe[0]+=" "+Xe[1]),$e=$e.label||$e,Xe=c(Xe[0].replace(RegExp(Ge,"i"),$e).replace(RegExp("; *(?:"+$e+"[_-])?","i")," ").replace(RegExp("("+$e+")[-_.]?(\\w)","i"),"$1 $2"))),Xe})}function Ie(ve){return E(ve,function(Xe,$e){return Xe||(RegExp($e+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(w)||0)[1]||null})}function pe(){return this.description||""}if(q&&(q=[q]),de&&!Ne&&(Ne=be([de])),(te=/\bGoogle TV\b/.exec(Ne))&&(Ne=te[0]),/\bSimulator\b/i.test(w)&&(Ne=(Ne?Ne+" ":"")+"Simulator"),se=="Opera Mini"&&/\bOPiOS\b/.test(w)&&we.push("running in Turbo/Uncompressed mode"),se=="IE"&&/\blike iPhone OS\b/.test(w)?(te=O(w.replace(/like iPhone OS/,"")),de=te.manufacturer,Ne=te.product):/^iP/.test(Ne)?(se||(se="Safari"),$="iOS"+((te=/ OS ([\d_]+)/i.exec(w))?" "+te[1].replace(/_/g,"."):"")):se=="Konqueror"&&!/buntu/i.test($)?$="Kubuntu":de&&de!="Google"&&(/Chrome/.test(se)&&!/\bMobile Safari\b/i.test(w)||/\bVita\b/.test(Ne))||/\bAndroid\b/.test($)&&/^Chrome/.test(se)&&/\bVersion\//i.test(w)?(se="Android Browser",$=/\bAndroid\b/.test($)?$:"Android"):se=="Silk"?(/\bMobi/i.test(w)||($="Android",we.unshift("desktop mode")),/Accelerated *= *true/i.test(w)&&we.unshift("accelerated")):se=="PaleMoon"&&(te=/\bFirefox\/([\d.]+)\b/.exec(w))?we.push("identifying as Firefox "+te[1]):se=="Firefox"&&(te=/\b(Mobile|Tablet|TV)\b/i.exec(w))?($||($="Firefox OS"),Ne||(Ne=te[1])):!se||(te=!/\bMinefield\b/i.test(w)&&/\b(?:Firefox|Safari)\b/.exec(se))?(se&&!Ne&&/[\/,]|^[^(]+?\)/.test(w.slice(w.indexOf(te+"/")+8))&&(se=null),(te=Ne||de||$)&&(Ne||de||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test($))&&(se=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test($)?$:te)+" Browser")):se=="Electron"&&(te=(/\bChrome\/([\d.]+)\b/.exec(w)||0)[1])&&we.push("Chromium "+te),oe||(oe=Ie(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",u(se),"(?:Firefox|Minefield|NetFront)"])),(te=q=="iCab"&&parseFloat(oe)>3&&"WebKit"||/\bOpera\b/.test(se)&&(/\bOPR\b/.test(w)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(w)&&!/^(?:Trident|EdgeHTML)$/.test(q)&&"WebKit"||!q&&/\bMSIE\b/i.test(w)&&($=="Mac OS"?"Tasman":"Trident")||q=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(se)&&"NetFront")&&(q=[te]),se=="IE"&&(te=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(w)||0)[1])?(se+=" Mobile",$="Windows Phone "+(/\+$/.test(te)?te:te+".x"),we.unshift("desktop mode")):/\bWPDesktop\b/i.test(w)?(se="IE Mobile",$="Windows Phone 8.x",we.unshift("desktop mode"),oe||(oe=(/\brv:([\d.]+)/.exec(w)||0)[1])):se!="IE"&&q=="Trident"&&(te=/\brv:([\d.]+)/.exec(w))&&(se&&we.push("identifying as "+se+(oe?" "+oe:"")),se="IE",oe=te[1]),le){if(h(S,"global"))if(L&&(te=L.lang.System,Ce=te.getProperty("os.arch"),$=$||te.getProperty("os.name")+" "+te.getProperty("os.version")),B){try{oe=S.require("ringo/engine").version.join("."),se="RingoJS"}catch(ve){(te=S.system)&&te.global.system==S.system&&(se="Narwhal",$||($=te[0].os||null))}se||(se="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(te=S.process)&&(typeof te.versions=="object"&&(typeof te.versions.electron=="string"?(we.push("Node "+te.versions.node),se="Electron",oe=te.versions.electron):typeof te.versions.nw=="string"&&(we.push("Chromium "+oe,"Node "+te.versions.node),se="NW.js",oe=te.versions.nw)),se||(se="Node.js",Ce=te.arch,$=te.platform,oe=/[\d.]+/.exec(te.version),oe=oe?oe[0]:null));else f(te=S.runtime)==X?(se="Adobe AIR",$=te.flash.system.Capabilities.os):f(te=S.phantom)==U?(se="PhantomJS",oe=(te=te.version||null)&&te.major+"."+te.minor+"."+te.patch):typeof me.documentMode=="number"&&(te=/\bTrident\/(\d+)/i.exec(w))?(oe=[oe,me.documentMode],(te=+te[1]+4)!=oe[1]&&(we.push("IE "+oe[1]+" mode"),q&&(q[1]=""),oe[1]=te),oe=se=="IE"?String(oe[1].toFixed(1)):oe[0]):typeof me.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(se)&&(we.push("masking as "+se+" "+oe),se="IE",oe="11.0",q=["Trident"],$="Windows");$=$&&c($)}if(oe&&(te=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(oe)||/(?:alpha|beta)(?: ?\d)?/i.exec(w+";"+(le&&R.appMinorVersion))||/\bMinefield\b/i.test(w)&&"a")&&(ce=/b/i.test(te)?"beta":"alpha",oe=oe.replace(RegExp(te+"\\+?$"),"")+(ce=="beta"?re:Z)+(/\d+\+?/.exec(te)||"")),se=="Fennec"||se=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test($))se="Firefox Mobile";else if(se=="Maxthon"&&oe)oe=oe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ne))Ne=="Xbox 360"&&($=null),Ne=="Xbox 360"&&/\bIEMobile\b/.test(w)&&we.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(se)||se&&!Ne&&!/Browser|Mobi/.test(se))&&($=="Windows CE"||/Mobi/i.test(w)))se+=" Mobile";else if(se=="IE"&&le)try{S.external===null&&we.unshift("platform preview")}catch(ve){we.unshift("embedded")}else(/\bBlackBerry\b/.test(Ne)||/\bBB10\b/.test(w))&&(te=(RegExp(Ne.replace(/ +/g," *")+"/([.\\d]+)","i").exec(w)||0)[1]||oe)?(te=[te,/BB10/.test(w)],$=(te[1]?(Ne=null,de="BlackBerry"):"Device Software")+" "+te[0],oe=null):this!=d&&Ne!="Wii"&&(le&&Ee||/Opera/.test(se)&&/\b(?:MSIE|Firefox)\b/i.test(w)||se=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test($)||se=="IE"&&($&&!/^Win/.test($)&&oe>5.5||/\bWindows XP\b/.test($)&&oe>8||oe==8&&!/\bTrident\b/.test(w)))&&!e.test(te=O.call(d,w.replace(e,"")+";"))&&te.name&&(te="ing as "+te.name+((te=te.version)?" "+te:""),e.test(se)?(/\bIE\b/.test(te)&&$=="Mac OS"&&($=null),te="identify"+te):(te="mask"+te,De?se=c(De.replace(/([a-z])([A-Z])/g,"$1 $2")):se="Opera",/\bIE\b/.test(te)&&($=null),le||(oe=null)),q=["Presto"],we.push(te));(te=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(w)||0)[1])&&(te=[parseFloat(te.replace(/\.(\d)$/,".0$1")),te],se=="Safari"&&te[1].slice(-1)=="+"?(se="WebKit Nightly",ce="alpha",oe=te[1].slice(0,-1)):(oe==te[1]||oe==(te[2]=(/\bSafari\/([\d.]+\+?)/i.exec(w)||0)[1]))&&(oe=null),te[1]=(/\bChrome\/([\d.]+)/i.exec(w)||0)[1],te[0]==537.36&&te[2]==537.36&&parseFloat(te[1])>=28&&q=="WebKit"&&(q=["Blink"]),!le||!M&&!te[1]?(q&&(q[1]="like Safari"),te=(te=te[0],te<400?1:te<500?2:te<526?3:te<533?4:te<534?"4+":te<535?5:te<537?6:te<538?7:te<601?8:"8")):(q&&(q[1]="like Chrome"),te=te[1]||(te=te[0],te<530?1:te<532?2:te<532.05?3:te<533?4:te<534.03?5:te<534.07?6:te<534.1?7:te<534.13?8:te<534.16?9:te<534.24?10:te<534.3?11:te<535.01?12:te<535.02?"13+":te<535.07?15:te<535.11?16:te<535.19?17:te<536.05?18:te<536.1?19:te<537.01?20:te<537.11?"21+":te<537.13?23:te<537.18?24:te<537.24?25:te<537.36?26:q!="Blink"?"27":"28")),q&&(q[1]+=" "+(te+=typeof te=="number"?".x":/[.+]/.test(te)?"":"+")),se=="Safari"&&(!oe||parseInt(oe)>45)&&(oe=te)),se=="Opera"&&(te=/\bzbov|zvav$/.exec($))?(se+=" ",we.unshift("desktop mode"),te=="zvav"?(se+="Mini",oe=null):se+="Mobile",$=$.replace(RegExp(" *"+te+"$"),"")):se=="Safari"&&/\bChrome\b/.exec(q&&q[1])&&(we.unshift("desktop mode"),se="Chrome Mobile",oe=null,/\bOS X\b/.test($)?(de="Apple",$="iOS 4.3+"):$=null),oe&&oe.indexOf(te=/[\d.]+$/.exec($))==0&&w.indexOf("/"+te+"-")>-1&&($=x($.replace(te,""))),q&&!/\b(?:Avant|Nook)\b/.test(se)&&(/Browser|Lunascape|Maxthon/.test(se)||se!="Safari"&&/^iOS/.test($)&&/\bSafari\b/.test(q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(se)&&q[1])&&((te=q[q.length-1])&&we.push(te)),we.length&&(we=["("+we.join("; ")+")"]),de&&Ne&&Ne.indexOf(de)<0&&we.push("on "+de),Ne&&we.push((/^on /.test(we[we.length-1])?"":"on ")+Ne),$&&(te=/ ([\d.+]+)$/.exec($),xe=te&&$.charAt($.length-te[0].length-1)=="/",$={architecture:32,family:te&&!xe?$.replace(te[0],""):$,version:te?te[1]:null,toString:function(){var ve=this.version;return this.family+(ve&&!xe?" "+ve:"")+(this.architecture==64?" 64-bit":"")}}),(te=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ce))&&!/\bi686\b/i.test(Ce)?($&&($.architecture=64,$.family=$.family.replace(RegExp(" *"+te),"")),se&&(/\bWOW64\b/i.test(w)||le&&/\w(?:86|32)$/.test(R.cpuClass||R.platform)&&!/\bWin64; x64\b/i.test(w))&&we.unshift("32-bit")):$&&/^OS X/.test($.family)&&se=="Chrome"&&parseFloat(oe)>=39&&($.architecture=64),w||(w=null);var Le={};return Le.description=w,Le.layout=q&&q[0],Le.manufacturer=de,Le.name=se,Le.prerelease=ce,Le.product=Ne,Le.ua=w,Le.version=se&&oe,Le.os=$||{architecture:null,family:null,version:null,toString:function(){return"null"}},Le.parse=O,Le.toString=pe,Le.version&&we.unshift(oe),Le.name&&we.unshift(se),$&&se&&!($==String($).split(" ")[0]&&($==se.split(" ")[0]||Ne))&&we.push(Ne?"("+$+")":"on "+$),we.length&&(Le.description=we.join(" ")),Le}var C=O();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=C,define(function(){return C})):g&&s?d(C,function(w,S){g[S]=w}):T.platform=C}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(j,W,y){(function(I){"use strict";typeof I=="undefined"||!I.version||I.version.indexOf("v0.")===0||I.version.indexOf("v1.")===0&&I.version.indexOf("v1.8.")!==0?W.exports={nextTick:v}:W.exports=I;function v(T,b,g,s){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var _=arguments.length,p,e;switch(_){case 0:case 1:return I.nextTick(T);case 2:return I.nextTick(function(){T.call(null,b)});case 3:return I.nextTick(function(){T.call(null,b,g)});case 4:return I.nextTick(function(){T.call(null,b,g,s)});default:for(p=new Array(_-1),e=0;e<p.length;)p[e++]=arguments[e];return I.nextTick(function(){T.apply(null,p)})}}}).call(this,j("_process"))},{_process:208}],208:[function(j,W,y){var I=W.exports={},v,T;function b(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=b}catch(o){v=b}try{typeof clearTimeout=="function"?T=clearTimeout:T=g}catch(o){T=g}})();function s(o){if(v===setTimeout)return setTimeout(o,0);if((v===b||!v)&&setTimeout)return v=setTimeout,setTimeout(o,0);try{return v(o,0)}catch(c){try{return v.call(null,o,0)}catch(d){return v.call(this,o,0)}}}function _(o){if(T===clearTimeout)return clearTimeout(o);if((T===g||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(o);try{return T(o)}catch(c){try{return T.call(null,o)}catch(d){return T.call(this,o)}}}var p=[],e=!1,a,n=-1;function l(){if(!e||!a)return;e=!1,a.length?p=a.concat(p):n=-1,p.length&&r()}function r(){if(e)return;var o=s(l);e=!0;for(var c=p.length;c;){for(a=p,p=[];++n<c;)a&&a[n].run();n=-1,c=p.length}a=null,e=!1,_(o)}I.nextTick=function(o){var c=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)c[d-1]=arguments[d];p.push(new i(o,c)),p.length===1&&!e&&s(r)};function i(o,c){this.fun=o,this.array=c}i.prototype.run=function(){this.fun.apply(null,this.array)},I.title="browser",I.browser=!0,I.env={},I.argv=[],I.version="",I.versions={};function t(){}I.on=t,I.addListener=t,I.once=t,I.off=t,I.removeListener=t,I.removeAllListeners=t,I.emit=t,I.prependListener=t,I.prependOnceListener=t,I.listeners=function(o){return[]},I.binding=function(o){throw new Error("process.binding is not supported")},I.cwd=function(){return"/"},I.chdir=function(o){throw new Error("process.chdir is not supported")},I.umask=function(){return 0}},{}],209:[function(j,W,y){(function(I){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(v){var T=typeof y=="object"&&y&&!y.nodeType&&y,b=typeof W=="object"&&W&&!W.nodeType&&W,g=typeof I=="object"&&I;(g.global===g||g.window===g||g.self===g)&&(v=g);var s,_=2147483647,p=36,e=1,a=26,n=38,l=700,r=72,i=128,t="-",o=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=p-e,u=Math.floor,E=String.fromCharCode,x;function O(F){throw new RangeError(f[F])}function C(F,U){for(var L=F.length,B=[];L--;)B[L]=U(F[L]);return B}function w(F,U){var L=F.split("@"),B="";L.length>1&&(B=L[0]+"@",F=L[1]),F=F.replace(d,".");var Z=F.split("."),re=C(Z,U).join(".");return B+re}function S(F){for(var U=[],L=0,B=F.length,Z,re;L<B;)Z=F.charCodeAt(L++),Z>=55296&&Z<=56319&&L<B?(re=F.charCodeAt(L++),(re&64512)==56320?U.push(((Z&1023)<<10)+(re&1023)+65536):(U.push(Z),L--)):U.push(Z);return U}function D(F){return C(F,function(U){var L="";return U>65535&&(U-=65536,L+=E(U>>>10&1023|55296),U=56320|U&1023),L+=E(U),L}).join("")}function R(F){return F-48<10?F-22:F-65<26?F-65:F-97<26?F-97:p}function P(F,U){return F+22+75*(F<26)-((U!=0)<<5)}function N(F,U,L){var B=0;for(F=L?u(F/l):F>>1,F+=u(F/U);F>h*a>>1;B+=p)F=u(F/h);return u(B+(h+1)*F/(F+n))}function M(F){var U=[],L=F.length,B,Z=0,re=i,me=r,Ee,De,te,Ce,we,ce,le,oe,xe;for(Ee=F.lastIndexOf(t),Ee<0&&(Ee=0),De=0;De<Ee;++De)F.charCodeAt(De)>=128&&O("not-basic"),U.push(F.charCodeAt(De));for(te=Ee>0?Ee+1:0;te<L;){for(Ce=Z,we=1,ce=p;!(te>=L&&O("invalid-input"),le=R(F.charCodeAt(te++)),(le>=p||le>u((_-Z)/we))&&O("overflow"),Z+=le*we,oe=ce<=me?e:ce>=me+a?a:ce-me,le<oe);ce+=p)xe=p-oe,we>u(_/xe)&&O("overflow"),we*=xe;B=U.length+1,me=N(Z-Ce,B,Ce==0),u(Z/B)>_-re&&O("overflow"),re+=u(Z/B),Z%=B,U.splice(Z++,0,re)}return D(U)}function z(F){var U,L,B,Z,re,me,Ee,De,te,Ce,we,ce=[],le,oe,xe,q;for(F=S(F),le=F.length,U=i,L=0,re=r,me=0;me<le;++me)we=F[me],we<128&&ce.push(E(we));for(B=Z=ce.length,Z&&ce.push(t);B<le;){for(Ee=_,me=0;me<le;++me)we=F[me],we>=U&&we<Ee&&(Ee=we);for(oe=B+1,Ee-U>u((_-L)/oe)&&O("overflow"),L+=(Ee-U)*oe,U=Ee,me=0;me<le;++me)if(we=F[me],we<U&&++L>_&&O("overflow"),we==U){for(De=L,te=p;!(Ce=te<=re?e:te>=re+a?a:te-re,De<Ce);te+=p)q=De-Ce,xe=p-Ce,ce.push(E(P(Ce+q%xe,0))),De=u(q/xe);ce.push(E(P(De,0))),re=N(L,oe,B==Z),L=0,++B}++L,++U}return ce.join("")}function X(F){return w(F,function(U){return o.test(U)?M(U.slice(4).toLowerCase()):U})}function k(F){return w(F,function(U){return c.test(U)?"xn--"+z(U):U})}if(s={version:"1.4.1",ucs2:{decode:S,encode:D},decode:M,encode:z,toASCII:k,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return s});else if(T&&b)if(W.exports==T)b.exports=s;else for(x in s)s.hasOwnProperty(x)&&(T[x]=s[x]);else v.punycode=s})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(j,W,y){"use strict";function I(T,b){return Object.prototype.hasOwnProperty.call(T,b)}W.exports=function(T,b,g,s){b=b||"&",g=g||"=";var _={};if(typeof T!="string"||T.length===0)return _;var p=/\+/g;T=T.split(b);var e=1e3;s&&typeof s.maxKeys=="number"&&(e=s.maxKeys);var a=T.length;e>0&&a>e&&(a=e);for(var n=0;n<a;++n){var l=T[n].replace(p,"%20"),r=l.indexOf(g),i,t,o,c;r>=0?(i=l.substr(0,r),t=l.substr(r+1)):(i=l,t=""),o=decodeURIComponent(i),c=decodeURIComponent(t),I(_,o)?v(_[o])?_[o].push(c):_[o]=[_[o],c]:_[o]=c}return _};var v=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(j,W,y){"use strict";var I=function(g){switch(typeof g){case"string":return g;case"boolean":return g?"true":"false";case"number":return isFinite(g)?g:"";default:return""}};W.exports=function(g,s,_,p){return s=s||"&",_=_||"=",g===null&&(g=void 0),typeof g=="object"?T(b(g),function(e){var a=encodeURIComponent(I(e))+_;return v(g[e])?T(g[e],function(n){return a+encodeURIComponent(I(n))}).join(s):a+encodeURIComponent(I(g[e]))}).join(s):p?encodeURIComponent(I(p))+_+encodeURIComponent(I(g)):""};var v=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"};function T(g,s){if(g.map)return g.map(s);for(var _=[],p=0;p<g.length;p++)_.push(s(g[p],p));return _}var b=Object.keys||function(g){var s=[];for(var _ in g)Object.prototype.hasOwnProperty.call(g,_)&&s.push(_);return s}},{}],212:[function(j,W,y){"use strict";y.decode=y.parse=j("./decode"),y.encode=y.stringify=j("./encode")},{"./decode":210,"./encode":211}],213:[function(j,W,y){W.exports=j("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=g(I),T=j("babel-runtime/core-js/object/keys"),b=g(T);function g(c){return c&&c.__esModule?c:{default:c}}var s=j("process-nextick-args"),_=b.default||function(c){var d=[];for(var f in c)d.push(f);return d};W.exports=i;var p=(0,v.default)(j("core-util-is"));p.inherits=j("inherits");var e=j("./_stream_readable"),a=j("./_stream_writable");p.inherits(i,e);for(var n=_(a.prototype),l=0;l<n.length;l++){var r=n[l];i.prototype[r]||(i.prototype[r]=a.prototype[r])}function i(c){if(!(this instanceof i))return new i(c);e.call(this,c),a.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",t)}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t(){if(this.allowHalfOpen||this._writableState.ended)return;s.nextTick(o,this)}function o(c){c.end()}Object.defineProperty(i.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=d,this._writableState.destroyed=d}}),i.prototype._destroy=function(c,d){this.push(null),this.end(),s.nextTick(d,c)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(_){return _&&_.__esModule?_:{default:_}}W.exports=s;var b=j("./_stream_transform"),g=(0,v.default)(j("core-util-is"));g.inherits=j("inherits"),g.inherits(s,b);function s(_){if(!(this instanceof s))return new s(_);b.call(this,_)}s.prototype._transform=function(_,p,e){e(null,_)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(j,W,y){(function(I,v){"use strict";var T=j("babel-runtime/core-js/object/get-prototype-of"),b=_(T),g=j("babel-runtime/core-js/object/create"),s=_(g);function _(q){return q&&q.__esModule?q:{default:q}}var p=j("process-nextick-args");W.exports=S;var e=j("isarray"),a;S.ReadableState=w;var n=j("events").EventEmitter,l=function(se,Ne){return se.listeners(Ne).length},r=j("./internal/streams/stream"),i=j("safe-buffer").Buffer,t=v.Uint8Array||function(){};function o(q){return i.from(q)}function c(q){return i.isBuffer(q)||q instanceof t}var d=(0,s.default)(j("core-util-is"));d.inherits=j("inherits");var f=j("util"),h=void 0;f&&f.debuglog?h=f.debuglog("stream"):h=function(){};var u=j("./internal/streams/BufferList"),E=j("./internal/streams/destroy"),x;d.inherits(S,r);var O=["error","close","destroy","pause","resume"];function C(q,se,Ne){if(typeof q.prependListener=="function")return q.prependListener(se,Ne);!q._events||!q._events[se]?q.on(se,Ne):e(q._events[se])?q._events[se].unshift(Ne):q._events[se]=[Ne,q._events[se]]}function w(q,se){a=a||j("./_stream_duplex"),q=q||{};var Ne=se instanceof a;this.objectMode=!!q.objectMode,Ne&&(this.objectMode=this.objectMode||!!q.readableObjectMode);var de=q.highWaterMark,$=q.readableHighWaterMark,Q=this.objectMode?16:16*1024;de||de===0?this.highWaterMark=de:Ne&&($||$===0)?this.highWaterMark=$:this.highWaterMark=Q,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(x||(x=j("string_decoder/").StringDecoder),this.decoder=new x(q.encoding),this.encoding=q.encoding)}function S(q){if(a=a||j("./_stream_duplex"),!(this instanceof S))return new S(q);this._readableState=new w(q,this),this.readable=!0,q&&(typeof q.read=="function"&&(this._read=q.read),typeof q.destroy=="function"&&(this._destroy=q.destroy)),r.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(se){if(!this._readableState)return;this._readableState.destroyed=se}}),S.prototype.destroy=E.destroy,S.prototype._undestroy=E.undestroy,S.prototype._destroy=function(q,se){this.push(null),se(q)},S.prototype.push=function(q,se){var Ne=this._readableState,de;return Ne.objectMode?de=!0:typeof q=="string"&&(se=se||Ne.defaultEncoding,se!==Ne.encoding&&(q=i.from(q,se),se=""),de=!0),D(this,q,se,!1,de)},S.prototype.unshift=function(q){return D(this,q,null,!0,!1)};function D(q,se,Ne,de,$){var Q=q._readableState;if(se===null)Q.reading=!1,k(q,Q);else{var Y;$||(Y=P(Q,se)),Y?q.emit("error",Y):Q.objectMode||se&&se.length>0?(typeof se!="string"&&!Q.objectMode&&(0,b.default)(se)!==i.prototype&&(se=o(se)),de?Q.endEmitted?q.emit("error",new Error("stream.unshift() after end event")):R(q,Q,se,!0):Q.ended?q.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!Ne?(se=Q.decoder.write(se),Q.objectMode||se.length!==0?R(q,Q,se,!1):L(q,Q)):R(q,Q,se,!1))):de||(Q.reading=!1)}return N(Q)}function R(q,se,Ne,de){se.flowing&&se.length===0&&!se.sync?(q.emit("data",Ne),q.read(0)):(se.length+=se.objectMode?1:Ne.length,de?se.buffer.unshift(Ne):se.buffer.push(Ne),se.needReadable&&F(q)),L(q,se)}function P(q,se){var Ne;return!c(se)&&typeof se!="string"&&se!==void 0&&!q.objectMode&&(Ne=new TypeError("Invalid non-string/buffer chunk")),Ne}function N(q){return!q.ended&&(q.needReadable||q.length<q.highWaterMark||q.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(q){return x||(x=j("string_decoder/").StringDecoder),this._readableState.decoder=new x(q),this._readableState.encoding=q,this};var M=8388608;function z(q){return q>=M?q=M:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}function X(q,se){return q<=0||se.length===0&&se.ended?0:se.objectMode?1:q!==q?se.flowing&&se.length?se.buffer.head.data.length:se.length:(q>se.highWaterMark&&(se.highWaterMark=z(q)),q<=se.length?q:se.ended?se.length:(se.needReadable=!0,0))}S.prototype.read=function(q){h("read",q),q=parseInt(q,10);var se=this._readableState,Ne=q;if(q!==0&&(se.emittedReadable=!1),q===0&&se.needReadable&&(se.length>=se.highWaterMark||se.ended))return h("read: emitReadable",se.length,se.ended),se.length===0&&se.ended?le(this):F(this),null;if(q=X(q,se),q===0&&se.ended)return se.length===0&&le(this),null;var de=se.needReadable;h("need readable",de),(se.length===0||se.length-q<se.highWaterMark)&&(de=!0,h("length less than watermark",de)),se.ended||se.reading?(de=!1,h("reading or ended",de)):de&&(h("do read"),se.reading=!0,se.sync=!0,se.length===0&&(se.needReadable=!0),this._read(se.highWaterMark),se.sync=!1,se.reading||(q=X(Ne,se)));var $;return q>0?$=te(q,se):$=null,$===null?(se.needReadable=!0,q=0):se.length-=q,se.length===0&&(se.ended||(se.needReadable=!0),Ne!==q&&se.ended&&le(this)),$!==null&&this.emit("data",$),$};function k(q,se){if(se.ended)return;if(se.decoder){var Ne=se.decoder.end();Ne&&Ne.length&&(se.buffer.push(Ne),se.length+=se.objectMode?1:Ne.length)}se.ended=!0,F(q)}function F(q){var se=q._readableState;se.needReadable=!1,se.emittedReadable||(h("emitReadable",se.flowing),se.emittedReadable=!0,se.sync?p.nextTick(U,q):U(q))}function U(q){h("emit readable"),q.emit("readable"),De(q)}function L(q,se){se.readingMore||(se.readingMore=!0,p.nextTick(B,q,se))}function B(q,se){for(var Ne=se.length;!se.reading&&!se.flowing&&!se.ended&&se.length<se.highWaterMark&&!(h("maybeReadMore read 0"),q.read(0),Ne===se.length);)Ne=se.length;se.readingMore=!1}S.prototype._read=function(q){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(q,se){var Ne=this,de=this._readableState;switch(de.pipesCount){case 0:de.pipes=q;break;case 1:de.pipes=[de.pipes,q];break;default:de.pipes.push(q);break}de.pipesCount+=1,h("pipe count=%d opts=%j",de.pipesCount,se);var $=(!se||se.end!==!1)&&q!==I.stdout&&q!==I.stderr,Q=$?ue:Ge;de.endEmitted?p.nextTick(Q):Ne.once("end",Q),q.on("unpipe",Y);function Y(Me,gt){h("onunpipe"),Me===Ne&&(gt&&gt.hasUnpiped===!1&&(gt.hasUnpiped=!0,Ie()))}function ue(){h("onend"),q.end()}var ae=Z(Ne);q.on("drain",ae);var be=!1;function Ie(){h("cleanup"),q.removeListener("close",Xe),q.removeListener("finish",$e),q.removeListener("drain",ae),q.removeListener("error",ve),q.removeListener("unpipe",Y),Ne.removeListener("end",ue),Ne.removeListener("end",Ge),Ne.removeListener("data",Le),be=!0,de.awaitDrain&&(!q._writableState||q._writableState.needDrain)&&ae()}var pe=!1;Ne.on("data",Le);function Le(Me){h("ondata"),pe=!1;var gt=q.write(Me);gt===!1&&!pe&&((de.pipesCount===1&&de.pipes===q||de.pipesCount>1&&xe(de.pipes,q)!==-1)&&!be&&(h("false write response, pause",Ne._readableState.awaitDrain),Ne._readableState.awaitDrain++,pe=!0),Ne.pause())}function ve(Me){h("onerror",Me),Ge(),q.removeListener("error",ve),l(q,"error")===0&&q.emit("error",Me)}C(q,"error",ve);function Xe(){q.removeListener("finish",$e),Ge()}q.once("close",Xe);function $e(){h("onfinish"),q.removeListener("close",Xe),Ge()}q.once("finish",$e);function Ge(){h("unpipe"),Ne.unpipe(q)}return q.emit("pipe",Ne),de.flowing||(h("pipe resume"),Ne.resume()),q};function Z(q){return function(){var se=q._readableState;h("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&l(q,"data")&&(se.flowing=!0,De(q))}}S.prototype.unpipe=function(q){var se=this._readableState,Ne={hasUnpiped:!1};if(se.pipesCount===0)return this;if(se.pipesCount===1)return q&&q!==se.pipes?this:(q||(q=se.pipes),se.pipes=null,se.pipesCount=0,se.flowing=!1,q&&q.emit("unpipe",this,Ne),this);if(!q){var de=se.pipes,$=se.pipesCount;se.pipes=null,se.pipesCount=0,se.flowing=!1;for(var Q=0;Q<$;Q++)de[Q].emit("unpipe",this,Ne);return this}var Y=xe(se.pipes,q);return Y===-1?this:(se.pipes.splice(Y,1),se.pipesCount-=1,se.pipesCount===1&&(se.pipes=se.pipes[0]),q.emit("unpipe",this,Ne),this)},S.prototype.on=function(q,se){var Ne=r.prototype.on.call(this,q,se);if(q==="data")this._readableState.flowing!==!1&&this.resume();else if(q==="readable"){var de=this._readableState;!de.endEmitted&&!de.readableListening&&(de.readableListening=de.needReadable=!0,de.emittedReadable=!1,de.reading?de.length&&F(this):p.nextTick(re,this))}return Ne},S.prototype.addListener=S.prototype.on;function re(q){h("readable nexttick read 0"),q.read(0)}S.prototype.resume=function(){var q=this._readableState;return q.flowing||(h("resume"),q.flowing=!0,me(this,q)),this};function me(q,se){se.resumeScheduled||(se.resumeScheduled=!0,p.nextTick(Ee,q,se))}function Ee(q,se){se.reading||(h("resume read 0"),q.read(0)),se.resumeScheduled=!1,se.awaitDrain=0,q.emit("resume"),De(q),se.flowing&&!se.reading&&q.read(0)}S.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function De(q){var se=q._readableState;for(h("flow",se.flowing);se.flowing&&q.read()!==null;);}S.prototype.wrap=function(q){var se=this,Ne=this._readableState,de=!1;q.on("end",function(){if(h("wrapped end"),Ne.decoder&&!Ne.ended){var Y=Ne.decoder.end();Y&&Y.length&&se.push(Y)}se.push(null)}),q.on("data",function(Y){if(h("wrapped data"),Ne.decoder&&(Y=Ne.decoder.write(Y)),Ne.objectMode&&Y==null)return;if(!Ne.objectMode&&(!Y||!Y.length))return;var ue=se.push(Y);ue||(de=!0,q.pause())});for(var $ in q)this[$]===void 0&&typeof q[$]=="function"&&(this[$]=function(Y){return function(){return q[Y].apply(q,arguments)}}($));for(var Q=0;Q<O.length;Q++)q.on(O[Q],this.emit.bind(this,O[Q]));return this._read=function(Y){h("wrapped _read",Y),de&&(de=!1,q.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=te;function te(q,se){if(se.length===0)return null;var Ne;return se.objectMode?Ne=se.buffer.shift():!q||q>=se.length?(se.decoder?Ne=se.buffer.join(""):se.buffer.length===1?Ne=se.buffer.head.data:Ne=se.buffer.concat(se.length),se.buffer.clear()):Ne=Ce(q,se.buffer,se.decoder),Ne}function Ce(q,se,Ne){var de;return q<se.head.data.length?(de=se.head.data.slice(0,q),se.head.data=se.head.data.slice(q)):q===se.head.data.length?de=se.shift():de=Ne?we(q,se):ce(q,se),de}function we(q,se){var Ne=se.head,de=1,$=Ne.data;for(q-=$.length;Ne=Ne.next;){var Q=Ne.data,Y=q>Q.length?Q.length:q;if(Y===Q.length?$+=Q:$+=Q.slice(0,q),q-=Y,q===0){Y===Q.length?(++de,Ne.next?se.head=Ne.next:se.head=se.tail=null):(se.head=Ne,Ne.data=Q.slice(Y));break}++de}return se.length-=de,$}function ce(q,se){var Ne=i.allocUnsafe(q),de=se.head,$=1;for(de.data.copy(Ne),q-=de.data.length;de=de.next;){var Q=de.data,Y=q>Q.length?Q.length:q;if(Q.copy(Ne,Ne.length-q,0,Y),q-=Y,q===0){Y===Q.length?(++$,de.next?se.head=de.next:se.head=se.tail=null):(se.head=de,de.data=Q.slice(Y));break}++$}return se.length-=$,Ne}function le(q){var se=q._readableState;if(se.length>0)throw new Error('"endReadable()" called on non-empty stream');se.endEmitted||(se.ended=!0,p.nextTick(oe,se,q))}function oe(q,se){!q.endEmitted&&q.length===0&&(q.endEmitted=!0,se.readable=!1,se.emit("end"))}function xe(q,se){for(var Ne=0,de=q.length;Ne<de;Ne++)if(q[Ne]===se)return Ne;return-1}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(a){return a&&a.__esModule?a:{default:a}}W.exports=_;var b=j("./_stream_duplex"),g=(0,v.default)(j("core-util-is"));g.inherits=j("inherits"),g.inherits(_,b);function s(a,n){var l=this._transformState;l.transforming=!1;var r=l.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,n!=null&&this.push(n),r(a);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function _(a){if(!(this instanceof _))return new _(a);b.call(this,a),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",p)}function p(){var a=this;typeof this._flush=="function"?this._flush(function(n,l){e(a,n,l)}):e(this,null,null)}_.prototype.push=function(a,n){return this._transformState.needTransform=!1,b.prototype.push.call(this,a,n)},_.prototype._transform=function(a,n,l){throw new Error("_transform() is not implemented")},_.prototype._write=function(a,n,l){var r=this._transformState;if(r.writecb=l,r.writechunk=a,r.writeencoding=n,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},_.prototype._read=function(a){var n=this._transformState;n.writechunk!==null&&n.writecb&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0},_.prototype._destroy=function(a,n){var l=this;b.prototype._destroy.call(this,a,function(r){n(r),l.emit("close")})};function e(a,n,l){if(n)return a.emit("error",n);if(l!=null&&a.push(l),a._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(a._transformState.transforming)throw new Error("Calling transform done when still transforming");return a.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(j,W,y){(function(I,v){"use strict";var T=j("babel-runtime/core-js/object/define-property"),b=r(T),g=j("babel-runtime/core-js/symbol/has-instance"),s=r(g),_=j("babel-runtime/core-js/symbol"),p=r(_),e=j("babel-runtime/core-js/object/create"),a=r(e),n=j("babel-runtime/core-js/set-immediate"),l=r(n);function r(ce){return ce&&ce.__esModule?ce:{default:ce}}var i=j("process-nextick-args");W.exports=P;function t(ce,le,oe){this.chunk=ce,this.encoding=le,this.callback=oe,this.next=null}function o(ce){var le=this;this.next=null,this.entry=null,this.finish=function(){we(le,ce)}}var c=!I.browser&&["v0.10","v0.9."].indexOf(I.version.slice(0,5))>-1?l.default:i.nextTick,d;P.WritableState=D;var f=(0,a.default)(j("core-util-is"));f.inherits=j("inherits");var h={deprecate:j("util-deprecate")},u=j("./internal/streams/stream"),E=j("safe-buffer").Buffer,x=v.Uint8Array||function(){};function O(ce){return E.from(ce)}function C(ce){return E.isBuffer(ce)||ce instanceof x}var w=j("./internal/streams/destroy");f.inherits(P,u);function S(){}function D(ce,le){d=d||j("./_stream_duplex"),ce=ce||{};var oe=le instanceof d;this.objectMode=!!ce.objectMode,oe&&(this.objectMode=this.objectMode||!!ce.writableObjectMode);var xe=ce.highWaterMark,q=ce.writableHighWaterMark,se=this.objectMode?16:16*1024;xe||xe===0?this.highWaterMark=xe:oe&&(q||q===0)?this.highWaterMark=q:this.highWaterMark=se,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ne=ce.decodeStrings===!1;this.decodeStrings=!Ne,this.defaultEncoding=ce.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(de){L(le,de)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}D.prototype.getBuffer=function(){for(var le=this.bufferedRequest,oe=[];le;)oe.push(le),le=le.next;return oe},function(){try{Object.defineProperty(D.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ce){}}();var R;typeof p.default=="function"&&s.default&&typeof Function.prototype[s.default]=="function"?(R=Function.prototype[s.default],(0,b.default)(P,s.default,{value:function(le){return R.call(this,le)?!0:this!==P?!1:le&&le._writableState instanceof D}})):R=function(le){return le instanceof this};function P(ce){if(d=d||j("./_stream_duplex"),!R.call(P,this)&&!(this instanceof d))return new P(ce);this._writableState=new D(ce,this),this.writable=!0,ce&&(typeof ce.write=="function"&&(this._write=ce.write),typeof ce.writev=="function"&&(this._writev=ce.writev),typeof ce.destroy=="function"&&(this._destroy=ce.destroy),typeof ce.final=="function"&&(this._final=ce.final)),u.call(this)}P.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function N(ce,le){var oe=new Error("write after end");ce.emit("error",oe),i.nextTick(le,oe)}function M(ce,le,oe,xe){var q=!0,se=!1;return oe===null?se=new TypeError("May not write null values to stream"):typeof oe!="string"&&oe!==void 0&&!le.objectMode&&(se=new TypeError("Invalid non-string/buffer chunk")),se&&(ce.emit("error",se),i.nextTick(xe,se),q=!1),q}P.prototype.write=function(ce,le,oe){var xe=this._writableState,q=!1,se=!xe.objectMode&&C(ce);return se&&!E.isBuffer(ce)&&(ce=O(ce)),typeof le=="function"&&(oe=le,le=null),se?le="buffer":le||(le=xe.defaultEncoding),typeof oe!="function"&&(oe=S),xe.ended?N(this,oe):(se||M(this,xe,ce,oe))&&(xe.pendingcb++,q=X(this,xe,se,ce,le,oe)),q},P.prototype.cork=function(){var ce=this._writableState;ce.corked++},P.prototype.uncork=function(){var ce=this._writableState;ce.corked&&(ce.corked--,!ce.writing&&!ce.corked&&!ce.finished&&!ce.bufferProcessing&&ce.bufferedRequest&&re(this,ce))},P.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+le);return this._writableState.defaultEncoding=le,this};function z(ce,le,oe){return!ce.objectMode&&ce.decodeStrings!==!1&&typeof le=="string"&&(le=E.from(le,oe)),le}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(ce,le,oe,xe,q,se){if(!oe){var Ne=z(le,xe,q);xe!==Ne&&(oe=!0,q="buffer",xe=Ne)}var de=le.objectMode?1:xe.length;le.length+=de;var $=le.length<le.highWaterMark;if($||(le.needDrain=!0),le.writing||le.corked){var Q=le.lastBufferedRequest;le.lastBufferedRequest={chunk:xe,encoding:q,isBuf:oe,callback:se,next:null},Q?Q.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else k(ce,le,!1,de,xe,q,se);return $}function k(ce,le,oe,xe,q,se,Ne){le.writelen=xe,le.writecb=Ne,le.writing=!0,le.sync=!0,oe?ce._writev(q,le.onwrite):ce._write(q,se,le.onwrite),le.sync=!1}function F(ce,le,oe,xe,q){--le.pendingcb,oe?(i.nextTick(q,xe),i.nextTick(te,ce,le),ce._writableState.errorEmitted=!0,ce.emit("error",xe)):(q(xe),ce._writableState.errorEmitted=!0,ce.emit("error",xe),te(ce,le))}function U(ce){ce.writing=!1,ce.writecb=null,ce.length-=ce.writelen,ce.writelen=0}function L(ce,le){var oe=ce._writableState,xe=oe.sync,q=oe.writecb;if(U(oe),le)F(ce,oe,xe,le,q);else{var se=me(oe);!se&&!oe.corked&&!oe.bufferProcessing&&oe.bufferedRequest&&re(ce,oe),xe?c(B,ce,oe,se,q):B(ce,oe,se,q)}}function B(ce,le,oe,xe){oe||Z(ce,le),le.pendingcb--,xe(),te(ce,le)}function Z(ce,le){le.length===0&&le.needDrain&&(le.needDrain=!1,ce.emit("drain"))}function re(ce,le){le.bufferProcessing=!0;var oe=le.bufferedRequest;if(ce._writev&&oe&&oe.next){var xe=le.bufferedRequestCount,q=new Array(xe),se=le.corkedRequestsFree;se.entry=oe;for(var Ne=0,de=!0;oe;)q[Ne]=oe,oe.isBuf||(de=!1),oe=oe.next,Ne+=1;q.allBuffers=de,k(ce,le,!0,le.length,q,"",se.finish),le.pendingcb++,le.lastBufferedRequest=null,se.next?(le.corkedRequestsFree=se.next,se.next=null):le.corkedRequestsFree=new o(le),le.bufferedRequestCount=0}else{for(;oe;){var $=oe.chunk,Q=oe.encoding,Y=oe.callback,ue=le.objectMode?1:$.length;if(k(ce,le,!1,ue,$,Q,Y),oe=oe.next,le.bufferedRequestCount--,le.writing)break}oe===null&&(le.lastBufferedRequest=null)}le.bufferedRequest=oe,le.bufferProcessing=!1}P.prototype._write=function(ce,le,oe){oe(new Error("_write() is not implemented"))},P.prototype._writev=null,P.prototype.end=function(ce,le,oe){var xe=this._writableState;typeof ce=="function"?(oe=ce,ce=null,le=null):typeof le=="function"&&(oe=le,le=null),ce!=null&&this.write(ce,le),xe.corked&&(xe.corked=1,this.uncork()),!xe.ending&&!xe.finished&&Ce(this,xe,oe)};function me(ce){return ce.ending&&ce.length===0&&ce.bufferedRequest===null&&!ce.finished&&!ce.writing}function Ee(ce,le){ce._final(function(oe){le.pendingcb--,oe&&ce.emit("error",oe),le.prefinished=!0,ce.emit("prefinish"),te(ce,le)})}function De(ce,le){!le.prefinished&&!le.finalCalled&&(typeof ce._final=="function"?(le.pendingcb++,le.finalCalled=!0,i.nextTick(Ee,ce,le)):(le.prefinished=!0,ce.emit("prefinish")))}function te(ce,le){var oe=me(le);return oe&&(De(ce,le),le.pendingcb===0&&(le.finished=!0,ce.emit("finish"))),oe}function Ce(ce,le,oe){le.ending=!0,te(ce,le),oe&&(le.finished?i.nextTick(oe):ce.once("finish",oe)),le.ended=!0,ce.writable=!1}function we(ce,le,oe){var xe=ce.entry;for(ce.entry=null;xe;){var q=xe.callback;le.pendingcb--,q(oe),xe=xe.next}le.corkedRequestsFree?le.corkedRequestsFree.next=ce:le.corkedRequestsFree=ce}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(le){if(!this._writableState)return;this._writableState.destroyed=le}}),P.prototype.destroy=w.destroy,P.prototype._undestroy=w.undestroy,P.prototype._destroy=function(ce,le){this.end(),le(ce)}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(j,W,y){"use strict";function I(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}var v=j("safe-buffer").Buffer,T=j("util");function b(g,s,_){g.copy(s,_)}W.exports=function(){function g(){I(this,g),this.head=null,this.tail=null,this.length=0}return g.prototype.push=function(_){var p={data:_,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length},g.prototype.unshift=function(_){var p={data:_,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length},g.prototype.shift=function(){if(this.length===0)return;var _=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,_},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(_){if(this.length===0)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=_+p.data;return e},g.prototype.concat=function(_){if(this.length===0)return v.alloc(0);if(this.length===1)return this.head.data;for(var p=v.allocUnsafe(_>>>0),e=this.head,a=0;e;)b(e.data,p,a),a+=e.data.length,e=e.next;return p},g}(),T&&T.inspect&&T.inspect.custom&&(W.exports.prototype[T.inspect.custom]=function(){var g=T.inspect({length:this.length});return this.constructor.name+" "+g})},{"safe-buffer":228,util:71}],220:[function(j,W,y){"use strict";var I=j("process-nextick-args");function v(g,s){var _=this,p=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return p||e?(s?s(g):g&&(!this._writableState||!this._writableState.errorEmitted)&&I.nextTick(b,this,g),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(a){!s&&a?(I.nextTick(b,_,a),_._writableState&&(_._writableState.errorEmitted=!0)):s&&s(a)}),this)}function T(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function b(g,s){g.emit("error",s)}W.exports={destroy:v,undestroy:T}},{"process-nextick-args":207}],221:[function(j,W,y){"use strict";W.exports=j("events").EventEmitter},{events:192}],222:[function(j,W,y){W.exports=j("./readable").PassThrough},{"./readable":223}],223:[function(j,W,y){y=W.exports=j("./lib/_stream_readable.js"),y.Stream=y,y.Readable=y,y.Writable=j("./lib/_stream_writable.js"),y.Duplex=j("./lib/_stream_duplex.js"),y.Transform=j("./lib/_stream_transform.js"),y.PassThrough=j("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(j,W,y){W.exports=j("./readable").Transform},{"./readable":223}],225:[function(j,W,y){W.exports=j("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(j,W,y){var I=function(){return this}()||Function("return this")(),v=I.regeneratorRuntime&&Object.getOwnPropertyNames(I).indexOf("regeneratorRuntime")>=0,T=v&&I.regeneratorRuntime;if(I.regeneratorRuntime=void 0,W.exports=j("./runtime"),v)I.regeneratorRuntime=T;else try{delete I.regeneratorRuntime}catch(b){I.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(j,W,y){!function(I){"use strict";var v=Object.prototype,T=v.hasOwnProperty,b,g=typeof Symbol=="function"?Symbol:{},s=g.iterator||"@@iterator",_=g.asyncIterator||"@@asyncIterator",p=g.toStringTag||"@@toStringTag",e=typeof W=="object",a=I.regeneratorRuntime;if(a){e&&(W.exports=a);return}a=I.regeneratorRuntime=e?W.exports:{};function n(X,k,F,U){var L=k&&k.prototype instanceof d?k:d,B=Object.create(L.prototype),Z=new N(U||[]);return B._invoke=S(X,F,Z),B}a.wrap=n;function l(X,k,F){try{return{type:"normal",arg:X.call(k,F)}}catch(U){return{type:"throw",arg:U}}}var r="suspendedStart",i="suspendedYield",t="executing",o="completed",c={};function d(){}function f(){}function h(){}var u={};u[s]=function(){return this};var E=Object.getPrototypeOf,x=E&&E(E(M([])));x&&x!==v&&T.call(x,s)&&(u=x);var O=h.prototype=d.prototype=Object.create(u);f.prototype=O.constructor=h,h.constructor=f,h[p]=f.displayName="GeneratorFunction";function C(X){["next","throw","return"].forEach(function(k){X[k]=function(F){return this._invoke(k,F)}})}a.isGeneratorFunction=function(X){var k=typeof X=="function"&&X.constructor;return k?k===f||(k.displayName||k.name)==="GeneratorFunction":!1},a.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,h):(X.__proto__=h,p in X||(X[p]="GeneratorFunction")),X.prototype=Object.create(O),X},a.awrap=function(X){return{__await:X}};function w(X){function k(L,B,Z,re){var me=l(X[L],X,B);if(me.type==="throw")re(me.arg);else{var Ee=me.arg,De=Ee.value;return De&&typeof De=="object"&&T.call(De,"__await")?Promise.resolve(De.__await).then(function(te){k("next",te,Z,re)},function(te){k("throw",te,Z,re)}):Promise.resolve(De).then(function(te){Ee.value=te,Z(Ee)},re)}}var F;function U(L,B){function Z(){return new Promise(function(re,me){k(L,B,re,me)})}return F=F?F.then(Z,Z):Z()}this._invoke=U}C(w.prototype),w.prototype[_]=function(){return this},a.AsyncIterator=w,a.async=function(X,k,F,U){var L=new w(n(X,k,F,U));return a.isGeneratorFunction(k)?L:L.next().then(function(B){return B.done?B.value:L.next()})};function S(X,k,F){var U=r;return function(B,Z){if(U===t)throw new Error("Generator is already running");if(U===o){if(B==="throw")throw Z;return z()}for(F.method=B,F.arg=Z;;){var re=F.delegate;if(re){var me=D(re,F);if(me){if(me===c)continue;return me}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(U===r)throw U=o,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);U=t;var Ee=l(X,k,F);if(Ee.type==="normal"){if(U=F.done?o:i,Ee.arg===c)continue;return{value:Ee.arg,done:F.done}}else Ee.type==="throw"&&(U=o,F.method="throw",F.arg=Ee.arg)}}}function D(X,k){var F=X.iterator[k.method];if(F===b){if(k.delegate=null,k.method==="throw"){if(X.iterator.return&&(k.method="return",k.arg=b,D(X,k),k.method==="throw"))return c;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var U=l(F,X.iterator,k.arg);if(U.type==="throw")return k.method="throw",k.arg=U.arg,k.delegate=null,c;var L=U.arg;if(!L)return k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,c;if(L.done)k[X.resultName]=L.value,k.next=X.nextLoc,k.method!=="return"&&(k.method="next",k.arg=b);else return L;return k.delegate=null,c}C(O),O[p]="Generator",O[s]=function(){return this},O.toString=function(){return"[object Generator]"};function R(X){var k={tryLoc:X[0]};1 in X&&(k.catchLoc=X[1]),2 in X&&(k.finallyLoc=X[2],k.afterLoc=X[3]),this.tryEntries.push(k)}function P(X){var k=X.completion||{};k.type="normal",delete k.arg,X.completion=k}function N(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(R,this),this.reset(!0)}a.keys=function(X){var k=[];for(var F in X)k.push(F);return k.reverse(),function U(){for(;k.length;){var L=k.pop();if(L in X)return U.value=L,U.done=!1,U}return U.done=!0,U}};function M(X){if(X){var k=X[s];if(k)return k.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var F=-1,U=function L(){for(;++F<X.length;)if(T.call(X,F))return L.value=X[F],L.done=!1,L;return L.value=b,L.done=!0,L};return U.next=U}}return{next:z}}a.values=M;function z(){return{value:b,done:!0}}N.prototype={constructor:N,reset:function(X){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(P),!X)for(var k in this)k.charAt(0)==="t"&&T.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=b)},stop:function(){this.done=!0;var X=this.tryEntries[0],k=X.completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(X){if(this.done)throw X;var k=this;function F(me,Ee){return B.type="throw",B.arg=X,k.next=me,Ee&&(k.method="next",k.arg=b),!!Ee}for(var U=this.tryEntries.length-1;U>=0;--U){var L=this.tryEntries[U],B=L.completion;if(L.tryLoc==="root")return F("end");if(L.tryLoc<=this.prev){var Z=T.call(L,"catchLoc"),re=T.call(L,"finallyLoc");if(Z&&re){if(this.prev<L.catchLoc)return F(L.catchLoc,!0);if(this.prev<L.finallyLoc)return F(L.finallyLoc)}else if(Z){if(this.prev<L.catchLoc)return F(L.catchLoc,!0)}else if(re){if(this.prev<L.finallyLoc)return F(L.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(X,k){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&T.call(U,"finallyLoc")&&this.prev<U.finallyLoc){var L=U;break}}L&&(X==="break"||X==="continue")&&L.tryLoc<=k&&k<=L.finallyLoc&&(L=null);var B=L?L.completion:{};return B.type=X,B.arg=k,L?(this.method="next",this.next=L.finallyLoc,c):this.complete(B)},complete:function(X,k){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&k&&(this.next=k),c},finish:function(X){for(var k=this.tryEntries.length-1;k>=0;--k){var F=this.tryEntries[k];if(F.finallyLoc===X)return this.complete(F.completion,F.afterLoc),P(F),c}},catch:function(X){for(var k=this.tryEntries.length-1;k>=0;--k){var F=this.tryEntries[k];if(F.tryLoc===X){var U=F.completion;if(U.type==="throw"){var L=U.arg;P(F)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(X,k,F){return this.delegate={iterator:M(X),resultName:k,nextLoc:F},this.method==="next"&&(this.arg=b),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(j,W,y){var I=j("buffer"),v=I.Buffer;function T(g,s){for(var _ in g)s[_]=g[_]}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?W.exports=I:(T(I,y),y.Buffer=b);function b(g,s,_){return v(g,s,_)}T(v,b),b.from=function(g,s,_){if(typeof g=="number")throw new TypeError("Argument must not be a number");return v(g,s,_)},b.alloc=function(g,s,_){if(typeof g!="number")throw new TypeError("Argument must be a number");var p=v(g);return s!==void 0?typeof _=="string"?p.fill(s,_):p.fill(s):p.fill(0),p},b.allocUnsafe=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return v(g)},b.allocUnsafeSlow=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return I.SlowBuffer(g)}},{buffer:73}],229:[function(j,W,y){(function(I){"use strict";var v=j("babel-runtime/core-js/string/from-code-point"),T=i(v),b=j("babel-runtime/core-js/json/stringify"),g=i(b),s=j("babel-runtime/helpers/typeof"),_=i(s),p=j("babel-runtime/core-js/object/define-property"),e=i(p),a=j("babel-runtime/core-js/object/keys"),n=i(a),l=j("babel-runtime/core-js/object/create"),r=i(l);function i(t){return t&&t.__esModule?t:{default:t}}(function(t){t.parser=function(Q,Y){return new c(Q,Y)},t.SAXParser=c,t.SAXStream=O,t.createStream=x,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Q,Y){if(!(this instanceof c))return new c(Q,Y);var ue=this;f(ue),ue.q=ue.c="",ue.bufferCheckPosition=t.MAX_BUFFER_LENGTH,ue.opt=Y||{},ue.opt.lowercase=ue.opt.lowercase||ue.opt.lowercasetags,ue.looseCase=ue.opt.lowercase?"toLowerCase":"toUpperCase",ue.tags=[],ue.closed=ue.closedRoot=ue.sawRoot=!1,ue.tag=ue.error=null,ue.strict=!!Q,ue.noscript=!!(Q||ue.opt.noscript),ue.state=B.BEGIN,ue.strictEntities=ue.opt.strictEntities,ue.ENTITIES=ue.strictEntities?(0,r.default)(t.XML_ENTITIES):(0,r.default)(t.ENTITIES),ue.attribList=[],ue.opt.xmlns&&(ue.ns=(0,r.default)(R)),ue.trackPosition=ue.opt.position!==!1,ue.trackPosition&&(ue.position=ue.line=ue.column=0),re(ue,"onready")}r.default||(Object.create=function(Q){function Y(){}Y.prototype=Q;var ue=new Y;return ue}),n.default||(Object.keys=function(Q){var Y=[];for(var ue in Q)Q.hasOwnProperty(ue)&&Y.push(ue);return Y});function d(Q){for(var Y=Math.max(t.MAX_BUFFER_LENGTH,10),ue=0,ae=0,be=o.length;ae<be;ae++){var Ie=Q[o[ae]].length;if(Ie>Y)switch(o[ae]){case"textNode":Ee(Q);break;case"cdata":me(Q,"oncdata",Q.cdata),Q.cdata="";break;case"script":me(Q,"onscript",Q.script),Q.script="";break;default:te(Q,"Max buffer length exceeded: "+o[ae])}ue=Math.max(ue,Ie)}var pe=t.MAX_BUFFER_LENGTH-ue;Q.bufferCheckPosition=pe+Q.position}function f(Q){for(var Y=0,ue=o.length;Y<ue;Y++)Q[o[Y]]=""}function h(Q){Ee(Q),Q.cdata!==""&&(me(Q,"oncdata",Q.cdata),Q.cdata=""),Q.script!==""&&(me(Q,"onscript",Q.script),Q.script="")}c.prototype={end:function(){Ce(this)},write:$,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){h(this)}};var u;try{u=j("stream").Stream}catch(Q){u=function(){}}var E=t.EVENTS.filter(function(Q){return Q!=="error"&&Q!=="end"});function x(Q,Y){return new O(Q,Y)}function O(Q,Y){if(!(this instanceof O))return new O(Q,Y);u.apply(this),this._parser=new c(Q,Y),this.writable=!0,this.readable=!0;var ue=this;this._parser.onend=function(){ue.emit("end")},this._parser.onerror=function(ae){ue.emit("error",ae),ue._parser.error=null},this._decoder=null,E.forEach(function(ae){(0,e.default)(ue,"on"+ae,{get:function(){return ue._parser["on"+ae]},set:function(Ie){if(!Ie)return ue.removeAllListeners(ae),ue._parser["on"+ae]=Ie,Ie;ue.on(ae,Ie)},enumerable:!0,configurable:!1})})}O.prototype=(0,r.default)(u.prototype,{constructor:{value:O}}),O.prototype.write=function(Q){if(typeof I=="function"&&typeof I.isBuffer=="function"&&I.isBuffer(Q)){if(!this._decoder){var Y=j("string_decoder").StringDecoder;this._decoder=new Y("utf8")}Q=this._decoder.write(Q)}return this._parser.write(Q.toString()),this.emit("data",Q),!0},O.prototype.end=function(Q){return Q&&Q.length&&this.write(Q),this._parser.end(),!0},O.prototype.on=function(Q,Y){var ue=this;return!ue._parser["on"+Q]&&E.indexOf(Q)!==-1&&(ue._parser["on"+Q]=function(){var ae=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ae.splice(0,0,Q),ue.emit.apply(ue,ae)}),u.prototype.on.call(ue,Q,Y)};var C="[CDATA[",w="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",D="http://www.w3.org/2000/xmlns/",R={xml:S,xmlns:D},P=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,N=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,M=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function X(Q){return Q===" "||Q===`
`||Q==="\r"||Q===" "}function k(Q){return Q==='"'||Q==="'"}function F(Q){return Q===">"||X(Q)}function U(Q,Y){return Q.test(Y)}function L(Q,Y){return!U(Q,Y)}var B=0;t.STATE={BEGIN:B++,BEGIN_WHITESPACE:B++,TEXT:B++,TEXT_ENTITY:B++,OPEN_WAKA:B++,SGML_DECL:B++,SGML_DECL_QUOTED:B++,DOCTYPE:B++,DOCTYPE_QUOTED:B++,DOCTYPE_DTD:B++,DOCTYPE_DTD_QUOTED:B++,COMMENT_STARTING:B++,COMMENT:B++,COMMENT_ENDING:B++,COMMENT_ENDED:B++,CDATA:B++,CDATA_ENDING:B++,CDATA_ENDING_2:B++,PROC_INST:B++,PROC_INST_BODY:B++,PROC_INST_ENDING:B++,OPEN_TAG:B++,OPEN_TAG_SLASH:B++,ATTRIB:B++,ATTRIB_NAME:B++,ATTRIB_NAME_SAW_WHITE:B++,ATTRIB_VALUE:B++,ATTRIB_VALUE_QUOTED:B++,ATTRIB_VALUE_CLOSED:B++,ATTRIB_VALUE_UNQUOTED:B++,ATTRIB_VALUE_ENTITY_Q:B++,ATTRIB_VALUE_ENTITY_U:B++,CLOSE_TAG:B++,CLOSE_TAG_SAW_WHITE:B++,SCRIPT:B++,SCRIPT_ENDING:B++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,n.default)(t.ENTITIES).forEach(function(Q){var Y=t.ENTITIES[Q],ue=typeof Y=="number"?String.fromCharCode(Y):Y;t.ENTITIES[Q]=ue});for(var Z in t.STATE)t.STATE[t.STATE[Z]]=Z;B=t.STATE;function re(Q,Y,ue){Q[Y]&&Q[Y](ue)}function me(Q,Y,ue){Q.textNode&&Ee(Q),re(Q,Y,ue)}function Ee(Q){Q.textNode=De(Q.opt,Q.textNode),Q.textNode&&re(Q,"ontext",Q.textNode),Q.textNode=""}function De(Q,Y){return Q.trim&&(Y=Y.trim()),Q.normalize&&(Y=Y.replace(/\s+/g," ")),Y}function te(Q,Y){return Ee(Q),Q.trackPosition&&(Y+=`
Line: `+Q.line+`
Column: `+Q.column+`
Char: `+Q.c),Y=new Error(Y),Q.error=Y,re(Q,"onerror",Y),Q}function Ce(Q){return Q.sawRoot&&!Q.closedRoot&&we(Q,"Unclosed root tag"),Q.state!==B.BEGIN&&Q.state!==B.BEGIN_WHITESPACE&&Q.state!==B.TEXT&&te(Q,"Unexpected end"),Ee(Q),Q.c="",Q.closed=!0,re(Q,"onend"),c.call(Q,Q.strict,Q.opt),Q}function we(Q,Y){if((typeof Q=="undefined"?"undefined":(0,_.default)(Q))!=="object"||!(Q instanceof c))throw new Error("bad call to strictFail");Q.strict&&te(Q,Y)}function ce(Q){Q.strict||(Q.tagName=Q.tagName[Q.looseCase]());var Y=Q.tags[Q.tags.length-1]||Q,ue=Q.tag={name:Q.tagName,attributes:{}};Q.opt.xmlns&&(ue.ns=Y.ns),Q.attribList.length=0,me(Q,"onopentagstart",ue)}function le(Q,Y){var ue=Q.indexOf(":"),ae=ue<0?["",Q]:Q.split(":"),be=ae[0],Ie=ae[1];return Y&&Q==="xmlns"&&(be="xmlns",Ie=""),{prefix:be,local:Ie}}function oe(Q){if(Q.strict||(Q.attribName=Q.attribName[Q.looseCase]()),Q.attribList.indexOf(Q.attribName)!==-1||Q.tag.attributes.hasOwnProperty(Q.attribName)){Q.attribName=Q.attribValue="";return}if(Q.opt.xmlns){var Y=le(Q.attribName,!0),ue=Y.prefix,ae=Y.local;if(ue==="xmlns")if(ae==="xml"&&Q.attribValue!==S)we(Q,"xml: prefix must be bound to "+S+`
Actual: `+Q.attribValue);else if(ae==="xmlns"&&Q.attribValue!==D)we(Q,"xmlns: prefix must be bound to "+D+`
Actual: `+Q.attribValue);else{var be=Q.tag,Ie=Q.tags[Q.tags.length-1]||Q;be.ns===Ie.ns&&(be.ns=(0,r.default)(Ie.ns)),be.ns[ae]=Q.attribValue}Q.attribList.push([Q.attribName,Q.attribValue])}else Q.tag.attributes[Q.attribName]=Q.attribValue,me(Q,"onattribute",{name:Q.attribName,value:Q.attribValue});Q.attribName=Q.attribValue=""}function xe(Q,Y){if(Q.opt.xmlns){var ue=Q.tag,ae=le(Q.tagName);ue.prefix=ae.prefix,ue.local=ae.local,ue.uri=ue.ns[ae.prefix]||"",ue.prefix&&!ue.uri&&(we(Q,"Unbound namespace prefix: "+(0,g.default)(Q.tagName)),ue.uri=ae.prefix);var be=Q.tags[Q.tags.length-1]||Q;ue.ns&&be.ns!==ue.ns&&(0,n.default)(ue.ns).forEach(function(Ye){me(Q,"onopennamespace",{prefix:Ye,uri:ue.ns[Ye]})});for(var Ie=0,pe=Q.attribList.length;Ie<pe;Ie++){var Le=Q.attribList[Ie],ve=Le[0],Xe=Le[1],$e=le(ve,!0),Ge=$e.prefix,Me=$e.local,gt=Ge===""?"":ue.ns[Ge]||"",Te={name:ve,value:Xe,prefix:Ge,local:Me,uri:gt};Ge&&Ge!=="xmlns"&&!gt&&(we(Q,"Unbound namespace prefix: "+(0,g.default)(Ge)),Te.uri=Ge),Q.tag.attributes[ve]=Te,me(Q,"onattribute",Te)}Q.attribList.length=0}Q.tag.isSelfClosing=!!Y,Q.sawRoot=!0,Q.tags.push(Q.tag),me(Q,"onopentag",Q.tag),Y||(!Q.noscript&&Q.tagName.toLowerCase()==="script"?Q.state=B.SCRIPT:Q.state=B.TEXT,Q.tag=null,Q.tagName=""),Q.attribName=Q.attribValue="",Q.attribList.length=0}function q(Q){if(!Q.tagName){we(Q,"Weird empty close tag."),Q.textNode+="</>",Q.state=B.TEXT;return}if(Q.script){if(Q.tagName!=="script"){Q.script+="</"+Q.tagName+">",Q.tagName="",Q.state=B.SCRIPT;return}me(Q,"onscript",Q.script),Q.script=""}var Y=Q.tags.length,ue=Q.tagName;Q.strict||(ue=ue[Q.looseCase]());for(var ae=ue;Y--;){var be=Q.tags[Y];if(be.name!==ae)we(Q,"Unexpected close tag");else break}if(Y<0){we(Q,"Unmatched closing tag: "+Q.tagName),Q.textNode+="</"+Q.tagName+">",Q.state=B.TEXT;return}Q.tagName=ue;for(var Ie=Q.tags.length;Ie-- >Y;){var pe=Q.tag=Q.tags.pop();Q.tagName=Q.tag.name,me(Q,"onclosetag",Q.tagName);var Le={};for(var ve in pe.ns)Le[ve]=pe.ns[ve];var Xe=Q.tags[Q.tags.length-1]||Q;Q.opt.xmlns&&pe.ns!==Xe.ns&&(0,n.default)(pe.ns).forEach(function($e){var Ge=pe.ns[$e];me(Q,"onclosenamespace",{prefix:$e,uri:Ge})})}Y===0&&(Q.closedRoot=!0),Q.tagName=Q.attribValue=Q.attribName="",Q.attribList.length=0,Q.state=B.TEXT}function se(Q){var Y=Q.entity,ue=Y.toLowerCase(),ae,be="";return Q.ENTITIES[Y]?Q.ENTITIES[Y]:Q.ENTITIES[ue]?Q.ENTITIES[ue]:(Y=ue,Y.charAt(0)==="#"&&(Y.charAt(1)==="x"?(Y=Y.slice(2),ae=parseInt(Y,16),be=ae.toString(16)):(Y=Y.slice(1),ae=parseInt(Y,10),be=ae.toString(10))),Y=Y.replace(/^0+/,""),isNaN(ae)||be.toLowerCase()!==Y?(we(Q,"Invalid character entity"),"&"+Q.entity+";"):(0,T.default)(ae))}function Ne(Q,Y){Y==="<"?(Q.state=B.OPEN_WAKA,Q.startTagPosition=Q.position):X(Y)||(we(Q,"Non-whitespace before first tag."),Q.textNode=Y,Q.state=B.TEXT)}function de(Q,Y){var ue="";return Y<Q.length&&(ue=Q.charAt(Y)),ue}function $(Q){var Y=this;if(this.error)throw this.error;if(Y.closed)return te(Y,"Cannot write after close. Assign an onready handler.");if(Q===null)return Ce(Y);(typeof Q=="undefined"?"undefined":(0,_.default)(Q))==="object"&&(Q=Q.toString());for(var ue=0,ae="";!(ae=de(Q,ue++),Y.c=ae,!ae);){Y.trackPosition&&(Y.position++,ae===`
`?(Y.line++,Y.column=0):Y.column++);switch(Y.state){case B.BEGIN:if(Y.state=B.BEGIN_WHITESPACE,ae==="\uFEFF")continue;Ne(Y,ae);continue;case B.BEGIN_WHITESPACE:Ne(Y,ae);continue;case B.TEXT:if(Y.sawRoot&&!Y.closedRoot){for(var be=ue-1;ae&&ae!=="<"&&ae!=="&";)ae=de(Q,ue++),ae&&Y.trackPosition&&(Y.position++,ae===`
`?(Y.line++,Y.column=0):Y.column++);Y.textNode+=Q.substring(be,ue-1)}ae==="<"&&!(Y.sawRoot&&Y.closedRoot&&!Y.strict)?(Y.state=B.OPEN_WAKA,Y.startTagPosition=Y.position):(!X(ae)&&(!Y.sawRoot||Y.closedRoot)&&we(Y,"Text data outside of root node."),ae==="&"?Y.state=B.TEXT_ENTITY:Y.textNode+=ae);continue;case B.SCRIPT:ae==="<"?Y.state=B.SCRIPT_ENDING:Y.script+=ae;continue;case B.SCRIPT_ENDING:ae==="/"?Y.state=B.CLOSE_TAG:(Y.script+="<"+ae,Y.state=B.SCRIPT);continue;case B.OPEN_WAKA:if(ae==="!")Y.state=B.SGML_DECL,Y.sgmlDecl="";else if(!X(ae))if(U(P,ae))Y.state=B.OPEN_TAG,Y.tagName=ae;else if(ae==="/")Y.state=B.CLOSE_TAG,Y.tagName="";else if(ae==="?")Y.state=B.PROC_INST,Y.procInstName=Y.procInstBody="";else{if(we(Y,"Unencoded <"),Y.startTagPosition+1<Y.position){var Ie=Y.position-Y.startTagPosition;ae=new Array(Ie).join(" ")+ae}Y.textNode+="<"+ae,Y.state=B.TEXT}continue;case B.SGML_DECL:(Y.sgmlDecl+ae).toUpperCase()===C?(me(Y,"onopencdata"),Y.state=B.CDATA,Y.sgmlDecl="",Y.cdata=""):Y.sgmlDecl+ae==="--"?(Y.state=B.COMMENT,Y.comment="",Y.sgmlDecl=""):(Y.sgmlDecl+ae).toUpperCase()===w?(Y.state=B.DOCTYPE,(Y.doctype||Y.sawRoot)&&we(Y,"Inappropriately located doctype declaration"),Y.doctype="",Y.sgmlDecl=""):ae===">"?(me(Y,"onsgmldeclaration",Y.sgmlDecl),Y.sgmlDecl="",Y.state=B.TEXT):(k(ae)&&(Y.state=B.SGML_DECL_QUOTED),Y.sgmlDecl+=ae);continue;case B.SGML_DECL_QUOTED:ae===Y.q&&(Y.state=B.SGML_DECL,Y.q=""),Y.sgmlDecl+=ae;continue;case B.DOCTYPE:ae===">"?(Y.state=B.TEXT,me(Y,"ondoctype",Y.doctype),Y.doctype=!0):(Y.doctype+=ae,ae==="["?Y.state=B.DOCTYPE_DTD:k(ae)&&(Y.state=B.DOCTYPE_QUOTED,Y.q=ae));continue;case B.DOCTYPE_QUOTED:Y.doctype+=ae,ae===Y.q&&(Y.q="",Y.state=B.DOCTYPE);continue;case B.DOCTYPE_DTD:Y.doctype+=ae,ae==="]"?Y.state=B.DOCTYPE:k(ae)&&(Y.state=B.DOCTYPE_DTD_QUOTED,Y.q=ae);continue;case B.DOCTYPE_DTD_QUOTED:Y.doctype+=ae,ae===Y.q&&(Y.state=B.DOCTYPE_DTD,Y.q="");continue;case B.COMMENT:ae==="-"?Y.state=B.COMMENT_ENDING:Y.comment+=ae;continue;case B.COMMENT_ENDING:ae==="-"?(Y.state=B.COMMENT_ENDED,Y.comment=De(Y.opt,Y.comment),Y.comment&&me(Y,"oncomment",Y.comment),Y.comment=""):(Y.comment+="-"+ae,Y.state=B.COMMENT);continue;case B.COMMENT_ENDED:ae!==">"?(we(Y,"Malformed comment"),Y.comment+="--"+ae,Y.state=B.COMMENT):Y.state=B.TEXT;continue;case B.CDATA:ae==="]"?Y.state=B.CDATA_ENDING:Y.cdata+=ae;continue;case B.CDATA_ENDING:ae==="]"?Y.state=B.CDATA_ENDING_2:(Y.cdata+="]"+ae,Y.state=B.CDATA);continue;case B.CDATA_ENDING_2:ae===">"?(Y.cdata&&me(Y,"oncdata",Y.cdata),me(Y,"onclosecdata"),Y.cdata="",Y.state=B.TEXT):ae==="]"?Y.cdata+="]":(Y.cdata+="]]"+ae,Y.state=B.CDATA);continue;case B.PROC_INST:ae==="?"?Y.state=B.PROC_INST_ENDING:X(ae)?Y.state=B.PROC_INST_BODY:Y.procInstName+=ae;continue;case B.PROC_INST_BODY:if(!Y.procInstBody&&X(ae))continue;ae==="?"?Y.state=B.PROC_INST_ENDING:Y.procInstBody+=ae;continue;case B.PROC_INST_ENDING:ae===">"?(me(Y,"onprocessinginstruction",{name:Y.procInstName,body:Y.procInstBody}),Y.procInstName=Y.procInstBody="",Y.state=B.TEXT):(Y.procInstBody+="?"+ae,Y.state=B.PROC_INST_BODY);continue;case B.OPEN_TAG:U(N,ae)?Y.tagName+=ae:(ce(Y),ae===">"?xe(Y):ae==="/"?Y.state=B.OPEN_TAG_SLASH:(X(ae)||we(Y,"Invalid character in tag name"),Y.state=B.ATTRIB));continue;case B.OPEN_TAG_SLASH:ae===">"?(xe(Y,!0),q(Y)):(we(Y,"Forward-slash in opening tag not followed by >"),Y.state=B.ATTRIB);continue;case B.ATTRIB:if(X(ae))continue;ae===">"?xe(Y):ae==="/"?Y.state=B.OPEN_TAG_SLASH:U(P,ae)?(Y.attribName=ae,Y.attribValue="",Y.state=B.ATTRIB_NAME):we(Y,"Invalid attribute name");continue;case B.ATTRIB_NAME:ae==="="?Y.state=B.ATTRIB_VALUE:ae===">"?(we(Y,"Attribute without value"),Y.attribValue=Y.attribName,oe(Y),xe(Y)):X(ae)?Y.state=B.ATTRIB_NAME_SAW_WHITE:U(N,ae)?Y.attribName+=ae:we(Y,"Invalid attribute name");continue;case B.ATTRIB_NAME_SAW_WHITE:if(ae==="=")Y.state=B.ATTRIB_VALUE;else{if(X(ae))continue;we(Y,"Attribute without value"),Y.tag.attributes[Y.attribName]="",Y.attribValue="",me(Y,"onattribute",{name:Y.attribName,value:""}),Y.attribName="",ae===">"?xe(Y):U(P,ae)?(Y.attribName=ae,Y.state=B.ATTRIB_NAME):(we(Y,"Invalid attribute name"),Y.state=B.ATTRIB)}continue;case B.ATTRIB_VALUE:if(X(ae))continue;k(ae)?(Y.q=ae,Y.state=B.ATTRIB_VALUE_QUOTED):(we(Y,"Unquoted attribute value"),Y.state=B.ATTRIB_VALUE_UNQUOTED,Y.attribValue=ae);continue;case B.ATTRIB_VALUE_QUOTED:if(ae!==Y.q){ae==="&"?Y.state=B.ATTRIB_VALUE_ENTITY_Q:Y.attribValue+=ae;continue}oe(Y),Y.q="",Y.state=B.ATTRIB_VALUE_CLOSED;continue;case B.ATTRIB_VALUE_CLOSED:X(ae)?Y.state=B.ATTRIB:ae===">"?xe(Y):ae==="/"?Y.state=B.OPEN_TAG_SLASH:U(P,ae)?(we(Y,"No whitespace between attributes"),Y.attribName=ae,Y.attribValue="",Y.state=B.ATTRIB_NAME):we(Y,"Invalid attribute name");continue;case B.ATTRIB_VALUE_UNQUOTED:if(!F(ae)){ae==="&"?Y.state=B.ATTRIB_VALUE_ENTITY_U:Y.attribValue+=ae;continue}oe(Y),ae===">"?xe(Y):Y.state=B.ATTRIB;continue;case B.CLOSE_TAG:if(Y.tagName)ae===">"?q(Y):U(N,ae)?Y.tagName+=ae:Y.script?(Y.script+="</"+Y.tagName,Y.tagName="",Y.state=B.SCRIPT):(X(ae)||we(Y,"Invalid tagname in closing tag"),Y.state=B.CLOSE_TAG_SAW_WHITE);else{if(X(ae))continue;L(P,ae)?Y.script?(Y.script+="</"+ae,Y.state=B.SCRIPT):we(Y,"Invalid tagname in closing tag."):Y.tagName=ae}continue;case B.CLOSE_TAG_SAW_WHITE:if(X(ae))continue;ae===">"?q(Y):we(Y,"Invalid characters in closing tag");continue;case B.TEXT_ENTITY:case B.ATTRIB_VALUE_ENTITY_Q:case B.ATTRIB_VALUE_ENTITY_U:var pe,Le;switch(Y.state){case B.TEXT_ENTITY:pe=B.TEXT,Le="textNode";break;case B.ATTRIB_VALUE_ENTITY_Q:pe=B.ATTRIB_VALUE_QUOTED,Le="attribValue";break;case B.ATTRIB_VALUE_ENTITY_U:pe=B.ATTRIB_VALUE_UNQUOTED,Le="attribValue";break}ae===";"?(Y[Le]+=se(Y),Y.entity="",Y.state=pe):U(Y.entity.length?z:M,ae)?Y.entity+=ae:(we(Y,"Invalid character in entity name"),Y[Le]+="&"+Y.entity+ae,Y.entity="",Y.state=pe);continue;default:throw new Error(Y,"Unknown state: "+Y.state)}}return Y.position>=Y.bufferCheckPosition&&d(Y),Y}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var Q=String.fromCharCode,Y=Math.floor,ue=function(){var be=16384,Ie=[],pe,Le,ve=-1,Xe=arguments.length;if(!Xe)return"";for(var $e="";++ve<Xe;){var Ge=Number(arguments[ve]);if(!isFinite(Ge)||Ge<0||Ge>1114111||Y(Ge)!==Ge)throw RangeError("Invalid code point: "+Ge);Ge<=65535?Ie.push(Ge):(Ge-=65536,pe=(Ge>>10)+55296,Le=Ge%1024+56320,Ie.push(pe,Le)),(ve+1===Xe||Ie.length>be)&&($e+=Q.apply(null,Ie),Ie.length=0)}return $e};e.default?Object.defineProperty(String,"fromCodePoint",{value:ue,configurable:!0,writable:!0}):String.fromCodePoint=ue}()})(typeof y=="undefined"?(void 0).sax={}:y)}).call(this,j("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(j,W,y){W.exports=T;var I=j("events").EventEmitter,v=j("inherits");v(T,I),T.Readable=j("readable-stream/readable.js"),T.Writable=j("readable-stream/writable.js"),T.Duplex=j("readable-stream/duplex.js"),T.Transform=j("readable-stream/transform.js"),T.PassThrough=j("readable-stream/passthrough.js"),T.Stream=T;function T(){I.call(this)}T.prototype.pipe=function(b,g){var s=this;function _(i){b.writable&&(b.write(i)===!1&&s.pause&&s.pause())}s.on("data",_);function p(){s.readable&&s.resume&&s.resume()}b.on("drain",p),!b._isStdio&&(!g||g.end!==!1)&&(s.on("end",a),s.on("close",n));var e=!1;function a(){if(e)return;e=!0,b.end()}function n(){if(e)return;e=!0,typeof b.destroy=="function"&&b.destroy()}function l(i){if(r(),I.listenerCount(this,"error")===0)throw i}s.on("error",l),b.on("error",l);function r(){s.removeListener("data",_),b.removeListener("drain",p),s.removeListener("end",a),s.removeListener("close",n),s.removeListener("error",l),b.removeListener("error",l),s.removeListener("end",r),s.removeListener("close",r),b.removeListener("close",r)}return s.on("end",r),s.on("close",r),b.on("close",r),b.emit("pipe",s),b}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(j,W,y){(function(I){var v=j("./lib/request"),T=j("./lib/response"),b=j("xtend"),g=j("builtin-status-codes"),s=j("url"),_=y;_.request=function(p,e){typeof p=="string"?p=s.parse(p):p=b(p);var a=I.location.protocol.search(/^https?:$/)===-1?"http:":"",n=p.protocol||a,l=p.hostname||p.host,r=p.port,i=p.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),p.url=(l?n+"//"+l:"")+(r?":"+r:"")+i,p.method=(p.method||"GET").toUpperCase(),p.headers=p.headers||{};var t=new v(p);return e&&t.on("response",e),t},_.get=function(e,a){var n=_.request(e,a);return n.end(),n},_.ClientRequest=v,_.IncomingMessage=T.IncomingMessage,_.Agent=function(){},_.Agent.defaultMaxSockets=4,_.globalAgent=new _.Agent,_.STATUS_CODES=g,_.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(j,W,y){(function(I){"use strict";y.fetch=_(I.fetch)&&_(I.ReadableStream),y.writableStream=_(I.WritableStream),y.abortController=_(I.AbortController),y.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),y.blobConstructor=!0}catch(p){}var v;function T(){if(v!==void 0)return v;if(I.XMLHttpRequest){v=new I.XMLHttpRequest;try{v.open("GET",I.XDomainRequest?"/":"https://example.com")}catch(p){v=null}}else v=null;return v}function b(p){var e=T();if(!e)return!1;try{return e.responseType=p,e.responseType===p}catch(a){}return!1}var g=typeof I.ArrayBuffer!="undefined",s=g&&_(I.ArrayBuffer.prototype.slice);y.arraybuffer=y.fetch||g&&b("arraybuffer"),y.msstream=!y.fetch&&s&&b("ms-stream"),y.mozchunkedarraybuffer=!y.fetch&&g&&b("moz-chunked-arraybuffer"),y.overrideMimeType=y.fetch||(T()?_(T().overrideMimeType):!1),y.vbArray=_(I.VBArray);function _(p){return typeof p=="function"}v=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(j,W,y){(function(I,v,T){"use strict";var b=j("babel-runtime/core-js/object/keys"),g=s(b);function s(d){return d&&d.__esModule?d:{default:d}}var _=j("./capability"),p=j("inherits"),e=j("./response"),a=j("readable-stream"),n=j("to-arraybuffer"),l=e.IncomingMessage,r=e.readyStates;function i(d,f){return _.fetch&&f?"fetch":_.mozchunkedarraybuffer?"moz-chunked-arraybuffer":_.msstream?"ms-stream":_.arraybuffer&&d?"arraybuffer":_.vbArray&&d?"text:vbarray":"text"}var t=W.exports=function(d){var f=this;a.Writable.call(f),f._opts=d,f._body=[],f._headers={},d.auth&&f.setHeader("Authorization","Basic "+new T(d.auth).toString("base64")),(0,g.default)(d.headers).forEach(function(E){f.setHeader(E,d.headers[E])});var h,u=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!_.abortController)u=!1,h=!0;else if(d.mode==="prefer-streaming")h=!1;else if(d.mode==="allow-wrong-content-type")h=!_.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");f._mode=i(h,u),f._fetchTimer=null,f.on("finish",function(){f._onFinish()})};p(t,a.Writable),t.prototype.setHeader=function(d,f){var h=this,u=d.toLowerCase();if(c.indexOf(u)!==-1)return;h._headers[u]={name:d,value:f}},t.prototype.getHeader=function(d){var f=this._headers[d.toLowerCase()];return f?f.value:null},t.prototype.removeHeader=function(d){var f=this;delete f._headers[d.toLowerCase()]},t.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var f=d._opts,h=d._headers,u=null;f.method!=="GET"&&f.method!=="HEAD"&&(_.arraybuffer?u=n(T.concat(d._body)):_.blobConstructor?u=new v.Blob(d._body.map(function(S){return n(S)}),{type:(h["content-type"]||{}).value||""}):u=T.concat(d._body).toString());var E=[];if((0,g.default)(h).forEach(function(S){var D=h[S].name,R=h[S].value;Array.isArray(R)?R.forEach(function(P){E.push([D,P])}):E.push([D,R])}),d._mode==="fetch"){var x=null,O=null;if(_.abortController){var C=new AbortController;x=C.signal,d._fetchAbortController=C,"requestTimeout"in f&&f.requestTimeout!==0&&(d._fetchTimer=v.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},f.requestTimeout))}v.fetch(d._opts.url,{method:d._opts.method,headers:E,body:u||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:x}).then(function(S){d._fetchResponse=S,d._connect()},function(S){v.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",S)})}else{var w=d._xhr=new v.XMLHttpRequest;try{w.open(d._opts.method,d._opts.url,!0)}catch(S){I.nextTick(function(){d.emit("error",S)});return}"responseType"in w&&(w.responseType=d._mode.split(":")[0]),"withCredentials"in w&&(w.withCredentials=!!f.withCredentials),d._mode==="text"&&"overrideMimeType"in w&&w.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(w.timeout=f.requestTimeout,w.ontimeout=function(){d.emit("requestTimeout")}),E.forEach(function(S){w.setRequestHeader(S[0],S[1])}),d._response=null,w.onreadystatechange=function(){switch(w.readyState){case r.LOADING:case r.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(w.onprogress=function(){d._onXHRProgress()}),w.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{w.send(u)}catch(S){I.nextTick(function(){d.emit("error",S)});return}}};function o(d){try{var f=d.status;return f!==null&&f!==0}catch(h){return!1}}t.prototype._onXHRProgress=function(){var d=this;if(!o(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},t.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new l(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(f){d.emit("error",f)}),d.emit("response",d._response)},t.prototype._write=function(d,f,h){var u=this;u._body.push(d),h()},t.prototype.abort=t.prototype.destroy=function(){var d=this;d._destroyed=!0,v.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},t.prototype.end=function(d,f,h){var u=this;typeof d=="function"&&(h=d,d=void 0),a.Writable.prototype.end.call(u,d,f,h)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(j,W,y){(function(I,v,T){"use strict";var b=j("babel-runtime/core-js/promise"),g=s(b);function s(l){return l&&l.__esModule?l:{default:l}}var _=j("./capability"),p=j("inherits"),e=j("readable-stream"),a=y.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=y.IncomingMessage=function(l,r,i,t){var o=this;if(e.Readable.call(o),o._mode=i,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){I.nextTick(function(){o.emit("close")})}),i==="fetch"){var c=function x(){f.read().then(function(O){if(o._destroyed)return;if(O.done){v.clearTimeout(t),o.push(null);return}o.push(new T(O.value)),x()}).catch(function(O){v.clearTimeout(t),o._destroyed||o.emit("error",O)})};if(o._fetchResponse=r,o.url=r.url,o.statusCode=r.status,o.statusMessage=r.statusText,r.headers.forEach(function(x,O){o.headers[O.toLowerCase()]=x,o.rawHeaders.push(O,x)}),_.writableStream){var d=new WritableStream({write:function(O){return new g.default(function(C,w){o._destroyed?w():o.push(new T(O))?C():o._resumeFetch=C})},close:function(){v.clearTimeout(t),o._destroyed||o.push(null)},abort:function(O){o._destroyed||o.emit("error",O)}});try{r.body.pipeTo(d).catch(function(x){v.clearTimeout(t),o._destroyed||o.emit("error",x)});return}catch(x){}}var f=r.body.getReader();c()}else{o._xhr=l,o._pos=0,o.url=l.responseURL,o.statusCode=l.status,o.statusMessage=l.statusText;var h=l.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(x){var O=x.match(/^([^:]+):\s*(.*)/);if(O){var C=O[1].toLowerCase();C==="set-cookie"?(o.headers[C]===void 0&&(o.headers[C]=[]),o.headers[C].push(O[2])):o.headers[C]!==void 0?o.headers[C]+=", "+O[2]:o.headers[C]=O[2],o.rawHeaders.push(O[1],O[2])}}),o._charset="x-user-defined",!_.overrideMimeType){var u=o.rawHeaders["mime-type"];if(u){var E=u.match(/;\s*charset=([^;])(;|$)/);E&&(o._charset=E[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};p(n,e.Readable),n.prototype._read=function(){var l=this,r=l._resumeFetch;r&&(l._resumeFetch=null,r())},n.prototype._onXHRProgress=function(){var l=this,r=l._xhr,i=null;switch(l._mode){case"text:vbarray":if(r.readyState!==a.DONE)break;try{i=new v.VBArray(r.responseBody).toArray()}catch(f){}if(i!==null){l.push(new T(i));break}case"text":try{i=r.responseText}catch(f){l._mode="text:vbarray";break}if(i.length>l._pos){var t=i.substr(l._pos);if(l._charset==="x-user-defined"){for(var o=new T(t.length),c=0;c<t.length;c++)o[c]=t.charCodeAt(c)&255;l.push(o)}else l.push(t,l._charset);l._pos=i.length}break;case"arraybuffer":if(r.readyState!==a.DONE||!r.response)break;i=r.response,l.push(new T(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=r.response,r.readyState!==a.LOADING||!i)break;l.push(new T(new Uint8Array(i)));break;case"ms-stream":if(i=r.response,r.readyState!==a.LOADING)break;var d=new v.MSStreamReader;d.onprogress=function(){d.result.byteLength>l._pos&&(l.push(new T(new Uint8Array(d.result.slice(l._pos)))),l._pos=d.result.byteLength)},d.onload=function(){l.push(null)},d.readAsArrayBuffer(i);break}l._xhr.readyState===a.DONE&&l._mode!=="ms-stream"&&l.push(null)}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(j,W,y){"use strict";var I=j("safe-buffer").Buffer,v=I.isEncoding||function(d){d=""+d;switch(d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(d){if(!d)return"utf8";for(var f;;)switch(d){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return d;default:if(f)return;d=(""+d).toLowerCase(),f=!0}}function b(d){var f=T(d);if(typeof f!="string"&&(I.isEncoding===v||!v(d)))throw new Error("Unknown encoding: "+d);return f||d}y.StringDecoder=g;function g(d){this.encoding=b(d);var f;switch(this.encoding){case"utf16le":this.text=l,this.end=r,f=4;break;case"utf8":this.fillLast=e,f=4;break;case"base64":this.text=i,this.end=t,f=3;break;default:this.write=o,this.end=c;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(f)}g.prototype.write=function(d){if(d.length===0)return"";var f,h;if(this.lastNeed){if(f=this.fillLast(d),f===void 0)return"";h=this.lastNeed,this.lastNeed=0}else h=0;return h<d.length?f?f+this.text(d,h):this.text(d,h):f||""},g.prototype.end=n,g.prototype.text=a,g.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function s(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function _(d,f,h){var u=f.length-1;if(u<h)return 0;var E=s(f[u]);return E>=0?(E>0&&(d.lastNeed=E-1),E):--u<h||E===-2?0:(E=s(f[u]),E>=0?(E>0&&(d.lastNeed=E-2),E):--u<h||E===-2?0:(E=s(f[u]),E>=0?(E>0&&(E===2?E=0:d.lastNeed=E-3),E):0))}function p(d,f,h){if((f[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&f.length>2&&(f[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function e(d){var f=this.lastTotal-this.lastNeed,h=p(this,d,f);if(h!==void 0)return h;if(this.lastNeed<=d.length)return d.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,f,0,d.length),this.lastNeed-=d.length}function a(d,f){var h=_(this,d,f);if(!this.lastNeed)return d.toString("utf8",f);this.lastTotal=h;var u=d.length-(h-this.lastNeed);return d.copy(this.lastChar,0,u),d.toString("utf8",f,u)}function n(d){var f=d&&d.length?this.write(d):"";return this.lastNeed?f+"\uFFFD":f}function l(d,f){if((d.length-f)%2===0){var h=d.toString("utf16le",f);if(h){var u=h.charCodeAt(h.length-1);if(u>=55296&&u<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],h.slice(0,-1)}return h}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",f,d.length-1)}function r(d){var f=d&&d.length?this.write(d):"";if(this.lastNeed){var h=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,h)}return f}function i(d,f){var h=(d.length-f)%3;return h===0?d.toString("base64",f):(this.lastNeed=3-h,this.lastTotal=3,h===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",f,d.length-h))}function t(d){var f=d&&d.length?this.write(d):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function o(d){return d.toString(this.encoding)}function c(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(j,W,y){(function(I,v){var T=j("process/browser.js").nextTick,b=Function.prototype.apply,g=Array.prototype.slice,s={},_=0;y.setTimeout=function(){return new p(b.call(setTimeout,window,arguments),clearTimeout)},y.setInterval=function(){return new p(b.call(setInterval,window,arguments),clearInterval)},y.clearTimeout=y.clearInterval=function(e){e.close()};function p(e,a){this._id=e,this._clearFn=a}p.prototype.unref=p.prototype.ref=function(){},p.prototype.close=function(){this._clearFn.call(window,this._id)},y.enroll=function(e,a){clearTimeout(e._idleTimeoutId),e._idleTimeout=a},y.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},y._unrefActive=y.active=function(e){clearTimeout(e._idleTimeoutId);var a=e._idleTimeout;a>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},a))},y.setImmediate=typeof I=="function"?I:function(e){var a=_++,n=arguments.length<2?!1:g.call(arguments,1);return s[a]=!0,T(function(){s[a]&&(n?e.apply(null,n):e.call(null),y.clearImmediate(a))}),a},y.clearImmediate=typeof v=="function"?v:function(e){delete s[e]}}).call(this,j("timers").setImmediate,j("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(j,W,y){var I=j("buffer").Buffer;W.exports=function(v){if(v instanceof Uint8Array){if(v.byteOffset===0&&v.byteLength===v.buffer.byteLength)return v.buffer;if(typeof v.buffer.slice=="function")return v.buffer.slice(v.byteOffset,v.byteOffset+v.byteLength)}if(I.isBuffer(v)){for(var T=new Uint8Array(v.length),b=v.length,g=0;g<b;g++)T[g]=v[g];return T.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(j,W,y){"use strict";var I=j("punycode"),v=j("./util");y.parse=f,y.resolve=u,y.resolveObject=E,y.format=h,y.Url=T;function T(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var b=/^([a-z0-9.+-]+:)/i,g=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_=["<",">",'"',"`"," ","\r",`
`," "],p=["{","}","|","\\","^","`"].concat(_),e=["'"].concat(p),a=["%","/","?",";","#"].concat(e),n=["/","?","#"],l=255,r=/^[+a-z0-9A-Z_-]{0,63}$/,i=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},o={javascript:!0,"javascript:":!0},c={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},d=j("querystring");function f(x,O,C){if(x&&v.isObject(x)&&x instanceof T)return x;var w=new T;return w.parse(x,O,C),w}T.prototype.parse=function(x,O,C){if(!v.isString(x))throw new TypeError("Parameter 'url' must be a string, not "+typeof x);var w=x.indexOf("?"),S=w!==-1&&w<x.indexOf("#")?"?":"#",D=x.split(S),R=/\\/g;D[0]=D[0].replace(R,"/"),x=D.join(S);var P=x;if(P=P.trim(),!C&&x.split("#").length===1){var N=s.exec(P);if(N)return this.path=P,this.href=P,this.pathname=N[1],N[2]?(this.search=N[2],O?this.query=d.parse(this.search.substr(1)):this.query=this.search.substr(1)):O&&(this.search="",this.query={}),this}var M=b.exec(P);if(M){M=M[0];var z=M.toLowerCase();this.protocol=z,P=P.substr(M.length)}if(C||M||P.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=P.substr(0,2)==="//";X&&!(M&&o[M])&&(P=P.substr(2),this.slashes=!0)}if(!o[M]&&(X||M&&!c[M])){for(var k=-1,F=0;F<n.length;F++){var U=P.indexOf(n[F]);U!==-1&&(k===-1||U<k)&&(k=U)}var L,B;k===-1?B=P.lastIndexOf("@"):B=P.lastIndexOf("@",k),B!==-1&&(L=P.slice(0,B),P=P.slice(B+1),this.auth=decodeURIComponent(L)),k=-1;for(var F=0;F<a.length;F++){var U=P.indexOf(a[F]);U!==-1&&(k===-1||U<k)&&(k=U)}k===-1&&(k=P.length),this.host=P.slice(0,k),P=P.slice(k),this.parseHost(),this.hostname=this.hostname||"";var Z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Z)for(var re=this.hostname.split(/\./),F=0,me=re.length;F<me;F++){var Ee=re[F];if(!Ee)continue;if(!Ee.match(r)){for(var De="",te=0,Ce=Ee.length;te<Ce;te++)Ee.charCodeAt(te)>127?De+="x":De+=Ee[te];if(!De.match(r)){var we=re.slice(0,F),ce=re.slice(F+1),le=Ee.match(i);le&&(we.push(le[1]),ce.unshift(le[2])),ce.length&&(P="/"+ce.join(".")+P),this.hostname=we.join(".");break}}}this.hostname.length>l?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=I.toASCII(this.hostname));var oe=this.port?":"+this.port:"",xe=this.hostname||"";this.host=xe+oe,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),P[0]!=="/"&&(P="/"+P))}if(!t[z])for(var F=0,me=e.length;F<me;F++){var q=e[F];if(P.indexOf(q)===-1)continue;var se=encodeURIComponent(q);se===q&&(se=escape(q)),P=P.split(q).join(se)}var Ne=P.indexOf("#");Ne!==-1&&(this.hash=P.substr(Ne),P=P.slice(0,Ne));var de=P.indexOf("?");if(de!==-1?(this.search=P.substr(de),this.query=P.substr(de+1),O&&(this.query=d.parse(this.query)),P=P.slice(0,de)):O&&(this.search="",this.query={}),P&&(this.pathname=P),c[z]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var oe=this.pathname||"",$=this.search||"";this.path=oe+$}return this.href=this.format(),this};function h(x){return v.isString(x)&&(x=f(x)),x instanceof T?x.format():T.prototype.format.call(x)}T.prototype.format=function(){var x=this.auth||"";x&&(x=encodeURIComponent(x),x=x.replace(/%3A/i,":"),x+="@");var O=this.protocol||"",C=this.pathname||"",w=this.hash||"",S=!1,D="";this.host?S=x+this.host:this.hostname&&(S=x+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&v.isObject(this.query)&&Object.keys(this.query).length&&(D=d.stringify(this.query));var R=this.search||D&&"?"+D||"";return O&&O.substr(-1)!==":"&&(O+=":"),this.slashes||(!O||c[O])&&S!==!1?(S="//"+(S||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):S||(S=""),w&&w.charAt(0)!=="#"&&(w="#"+w),R&&R.charAt(0)!=="?"&&(R="?"+R),C=C.replace(/[?#]/g,function(P){return encodeURIComponent(P)}),R=R.replace("#","%23"),O+S+C+R+w};function u(x,O){return f(x,!1,!0).resolve(O)}T.prototype.resolve=function(x){return this.resolveObject(f(x,!1,!0)).format()};function E(x,O){return x?f(x,!1,!0).resolveObject(O):O}T.prototype.resolveObject=function(x){if(v.isString(x)){var O=new T;O.parse(x,!1,!0),x=O}for(var C=new T,w=Object.keys(this),S=0;S<w.length;S++){var D=w[S];C[D]=this[D]}if(C.hash=x.hash,x.href==="")return C.href=C.format(),C;if(x.slashes&&!x.protocol){for(var R=Object.keys(x),P=0;P<R.length;P++){var N=R[P];N!=="protocol"&&(C[N]=x[N])}return c[C.protocol]&&C.hostname&&!C.pathname&&(C.path=C.pathname="/"),C.href=C.format(),C}if(x.protocol&&x.protocol!==C.protocol){if(!c[x.protocol]){for(var M=Object.keys(x),z=0;z<M.length;z++){var X=M[z];C[X]=x[X]}return C.href=C.format(),C}if(C.protocol=x.protocol,!x.host&&!o[x.protocol]){for(var me=(x.pathname||"").split("/");me.length&&!(x.host=me.shift()););x.host||(x.host=""),x.hostname||(x.hostname=""),me[0]!==""&&me.unshift(""),me.length<2&&me.unshift(""),C.pathname=me.join("/")}else C.pathname=x.pathname;if(C.search=x.search,C.query=x.query,C.host=x.host||"",C.auth=x.auth,C.hostname=x.hostname||x.host,C.port=x.port,C.pathname||C.search){var k=C.pathname||"",F=C.search||"";C.path=k+F}return C.slashes=C.slashes||x.slashes,C.href=C.format(),C}var U=C.pathname&&C.pathname.charAt(0)==="/",L=x.host||x.pathname&&x.pathname.charAt(0)==="/",B=L||U||C.host&&x.pathname,Z=B,re=C.pathname&&C.pathname.split("/")||[],me=x.pathname&&x.pathname.split("/")||[],Ee=C.protocol&&!c[C.protocol];if(Ee&&(C.hostname="",C.port=null,C.host&&(re[0]===""?re[0]=C.host:re.unshift(C.host)),C.host="",x.protocol&&(x.hostname=null,x.port=null,x.host&&(me[0]===""?me[0]=x.host:me.unshift(x.host)),x.host=null),B=B&&(me[0]===""||re[0]==="")),L)C.host=x.host||x.host===""?x.host:C.host,C.hostname=x.hostname||x.hostname===""?x.hostname:C.hostname,C.search=x.search,C.query=x.query,re=me;else if(me.length)re||(re=[]),re.pop(),re=re.concat(me),C.search=x.search,C.query=x.query;else if(!v.isNullOrUndefined(x.search)){if(Ee){C.hostname=C.host=re.shift();var De=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;De&&(C.auth=De.shift(),C.host=C.hostname=De.shift())}return C.search=x.search,C.query=x.query,(!v.isNull(C.pathname)||!v.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!re.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var te=re.slice(-1)[0],Ce=(C.host||x.host||re.length>1)&&(te==="."||te==="..")||te==="",we=0,ce=re.length;ce>=0;ce--)te=re[ce],te==="."?re.splice(ce,1):te===".."?(re.splice(ce,1),we++):we&&(re.splice(ce,1),we--);if(!B&&!Z)for(;we--;we)re.unshift("..");B&&re[0]!==""&&(!re[0]||re[0].charAt(0)!=="/")&&re.unshift(""),Ce&&re.join("/").substr(-1)!=="/"&&re.push("");var le=re[0]===""||re[0]&&re[0].charAt(0)==="/";if(Ee){C.hostname=C.host=le?"":re.length?re.shift():"";var De=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;De&&(C.auth=De.shift(),C.host=C.hostname=De.shift())}return B=B||C.host&&re.length,B&&!le&&re.unshift(""),re.length?C.pathname=re.join("/"):(C.pathname=null,C.path=null),(!v.isNull(C.pathname)||!v.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=x.auth||C.auth,C.slashes=C.slashes||x.slashes,C.href=C.format(),C},T.prototype.parseHost=function(){var x=this.host,O=g.exec(x);O&&(O=O[0],O!==":"&&(this.port=O.substr(1)),x=x.substr(0,x.length-O.length)),x&&(this.hostname=x)}},{"./util":239,punycode:209,querystring:212}],239:[function(j,W,y){"use strict";W.exports={isString:function(I){return typeof I=="string"},isObject:function(I){return typeof I=="object"&&I!==null},isNull:function(I){return I===null},isNullOrUndefined:function(I){return I==null}}},{}],240:[function(j,W,y){(function(I){W.exports=v;function v(b,g){if(T("noDeprecation"))return b;var s=!1;function _(){if(!s){if(T("throwDeprecation"))throw new Error(g);T("traceDeprecation")?console.trace(g):console.warn(g),s=!0}return b.apply(this,arguments)}return _}function T(b){try{if(!I.localStorage)return!1}catch(s){return!1}var g=I.localStorage[b];return g==null?!1:String(g).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(j,W,y){typeof Object.create=="function"?W.exports=function(v,T){v.super_=T,v.prototype=Object.create(T.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}})}:W.exports=function(v,T){v.super_=T;var b=function(){};b.prototype=T.prototype,v.prototype=new b,v.prototype.constructor=v}},{}],242:[function(j,W,y){W.exports=function(v){return v&&typeof v=="object"&&typeof v.copy=="function"&&typeof v.fill=="function"&&typeof v.readUInt8=="function"}},{}],243:[function(j,W,y){(function(I,v){var T=/%[sdj%]/g;y.format=function(k){if(!u(k)){for(var F=[],U=0;U<arguments.length;U++)F.push(s(arguments[U]));return F.join(" ")}for(var U=1,L=arguments,B=L.length,Z=String(k).replace(T,function(me){if(me==="%%")return"%";if(U>=B)return me;switch(me){case"%s":return String(L[U++]);case"%d":return Number(L[U++]);case"%j":try{return JSON.stringify(L[U++])}catch(Ee){return"[Circular]"}default:return me}}),re=L[U];U<B;re=L[++U])d(re)||!C(re)?Z+=" "+re:Z+=" "+s(re);return Z},y.deprecate=function(k,F){if(x(v.process))return function(){return y.deprecate(k,F).apply(this,arguments)};if(I.noDeprecation===!0)return k;var U=!1;function L(){if(!U){if(I.throwDeprecation)throw new Error(F);I.traceDeprecation?console.trace(F):console.error(F),U=!0}return k.apply(this,arguments)}return L};var b={},g;y.debuglog=function(k){if(x(g)&&(g=I.env.NODE_DEBUG||""),k=k.toUpperCase(),!b[k])if(new RegExp("\\b"+k+"\\b","i").test(g)){var F=I.pid;b[k]=function(){var U=y.format.apply(y,arguments);console.error("%s %d: %s",k,F,U)}}else b[k]=function(){};return b[k]};function s(k,F){var U={seen:[],stylize:p};return arguments.length>=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),c(F)?U.showHidden=F:F&&y._extend(U,F),x(U.showHidden)&&(U.showHidden=!1),x(U.depth)&&(U.depth=2),x(U.colors)&&(U.colors=!1),x(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=_),a(U,k,U.depth)}y.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function _(k,F){var U=s.styles[F];return U?"["+s.colors[U][0]+"m"+k+"["+s.colors[U][1]+"m":k}function p(k,F){return k}function e(k){var F={};return k.forEach(function(U,L){F[U]=!0}),F}function a(k,F,U){if(k.customInspect&&F&&D(F.inspect)&&F.inspect!==y.inspect&&!(F.constructor&&F.constructor.prototype===F)){var L=F.inspect(U,k);return u(L)||(L=a(k,L,U)),L}var B=n(k,F);if(B)return B;var Z=Object.keys(F),re=e(Z);if(k.showHidden&&(Z=Object.getOwnPropertyNames(F)),S(F)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return l(F);if(Z.length===0){if(D(F)){var me=F.name?": "+F.name:"";return k.stylize("[Function"+me+"]","special")}if(O(F))return k.stylize(RegExp.prototype.toString.call(F),"regexp");if(w(F))return k.stylize(Date.prototype.toString.call(F),"date");if(S(F))return l(F)}var Ee="",De=!1,te=["{","}"];if(o(F)&&(De=!0,te=["[","]"]),D(F)){var Ce=F.name?": "+F.name:"";Ee=" [Function"+Ce+"]"}if(O(F)&&(Ee=" "+RegExp.prototype.toString.call(F)),w(F)&&(Ee=" "+Date.prototype.toUTCString.call(F)),S(F)&&(Ee=" "+l(F)),Z.length===0&&(!De||F.length==0))return te[0]+Ee+te[1];if(U<0)return O(F)?k.stylize(RegExp.prototype.toString.call(F),"regexp"):k.stylize("[Object]","special");k.seen.push(F);var we;return De?we=r(k,F,U,re,Z):we=Z.map(function(ce){return i(k,F,U,re,ce,De)}),k.seen.pop(),t(we,Ee,te)}function n(k,F){if(x(F))return k.stylize("undefined","undefined");if(u(F)){var U="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return k.stylize(U,"string")}if(h(F))return k.stylize(""+F,"number");if(c(F))return k.stylize(""+F,"boolean");if(d(F))return k.stylize("null","null")}function l(k){return"["+Error.prototype.toString.call(k)+"]"}function r(k,F,U,L,B){for(var Z=[],re=0,me=F.length;re<me;++re)X(F,String(re))?Z.push(i(k,F,U,L,String(re),!0)):Z.push("");return B.forEach(function(Ee){Ee.match(/^\d+$/)||Z.push(i(k,F,U,L,Ee,!0))}),Z}function i(k,F,U,L,B,Z){var re,me,Ee;if(Ee=Object.getOwnPropertyDescriptor(F,B)||{value:F[B]},Ee.get?Ee.set?me=k.stylize("[Getter/Setter]","special"):me=k.stylize("[Getter]","special"):Ee.set&&(me=k.stylize("[Setter]","special")),X(L,B)||(re="["+B+"]"),me||(k.seen.indexOf(Ee.value)<0?(d(U)?me=a(k,Ee.value,null):me=a(k,Ee.value,U-1),me.indexOf(`
`)>-1&&(Z?me=me.split(`
`).map(function(De){return" "+De}).join(`
`).substr(2):me=`
`+me.split(`
`).map(function(De){return" "+De}).join(`
`))):me=k.stylize("[Circular]","special")),x(re)){if(Z&&B.match(/^\d+$/))return me;re=JSON.stringify(""+B),re.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(re=re.substr(1,re.length-2),re=k.stylize(re,"name")):(re=re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),re=k.stylize(re,"string"))}return re+": "+me}function t(k,F,U){var L=0,B=k.reduce(function(Z,re){return L++,re.indexOf(`
`)>=0&&L++,Z+re.replace(/\u001b\[\d\d?m/g,"").length+1},0);return B>60?U[0]+(F===""?"":F+`
`)+" "+k.join(`,
`)+" "+U[1]:U[0]+F+" "+k.join(", ")+" "+U[1]}function o(k){return Array.isArray(k)}y.isArray=o;function c(k){return typeof k=="boolean"}y.isBoolean=c;function d(k){return k===null}y.isNull=d;function f(k){return k==null}y.isNullOrUndefined=f;function h(k){return typeof k=="number"}y.isNumber=h;function u(k){return typeof k=="string"}y.isString=u;function E(k){return typeof k=="symbol"}y.isSymbol=E;function x(k){return k===void 0}y.isUndefined=x;function O(k){return C(k)&&P(k)==="[object RegExp]"}y.isRegExp=O;function C(k){return typeof k=="object"&&k!==null}y.isObject=C;function w(k){return C(k)&&P(k)==="[object Date]"}y.isDate=w;function S(k){return C(k)&&(P(k)==="[object Error]"||k instanceof Error)}y.isError=S;function D(k){return typeof k=="function"}y.isFunction=D;function R(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||typeof k=="symbol"||typeof k=="undefined"}y.isPrimitive=R,y.isBuffer=j("./support/isBuffer");function P(k){return Object.prototype.toString.call(k)}function N(k){return k<10?"0"+k.toString(10):k.toString(10)}var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var k=new Date,F=[N(k.getHours()),N(k.getMinutes()),N(k.getSeconds())].join(":");return[k.getDate(),M[k.getMonth()],F].join(" ")}y.log=function(){console.log("%s - %s",z(),y.format.apply(y,arguments))},y.inherits=j("inherits"),y._extend=function(k,F){if(!F||!C(F))return k;for(var U=Object.keys(F),L=U.length;L--;)k[U[L]]=F[U[L]];return k};function X(k,F){return Object.prototype.hasOwnProperty.call(k,F)}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(j,W,y){"use strict";(function(){"use strict";y.stripBOM=function(I){return I[0]==="\uFEFF"?I.substring(1):I}}).call(void 0)},{}],245:[function(j,W,y){"use strict";var I=j("babel-runtime/helpers/typeof"),v=g(I),T=j("babel-runtime/core-js/object/keys"),b=g(T);function g(s){return s&&s.__esModule?s:{default:s}}(function(){"use strict";var s,_,p,e,a,n={}.hasOwnProperty;s=j("xmlbuilder"),_=j("./defaults").defaults,e=function(r){return typeof r=="string"&&(r.indexOf("&")>=0||r.indexOf(">")>=0||r.indexOf("<")>=0)},a=function(r){return"<![CDATA["+p(r)+"]]>"},p=function(r){return r.replace("]]>","]]]]><![CDATA[>")},y.Builder=function(){function l(r){var i,t,o;this.options={},t=_["0.2"];for(i in t){if(!n.call(t,i))continue;o=t[i],this.options[i]=o}for(i in r){if(!n.call(r,i))continue;o=r[i],this.options[i]=o}}return l.prototype.buildObject=function(r){var i,t,o,c,d;return i=this.options.attrkey,t=this.options.charkey,(0,b.default)(r).length===1&&this.options.rootName===_["0.2"].rootName?(d=(0,b.default)(r)[0],r=r[d]):d=this.options.rootName,o=function(f){return function(h,u){var E,x,O,C,w,S;if((typeof u=="undefined"?"undefined":(0,v.default)(u))!=="object")f.options.cdata&&e(u)?h.raw(a(u)):h.txt(u);else if(Array.isArray(u))for(C in u){if(!n.call(u,C))continue;x=u[C];for(w in x)O=x[w],h=o(h.ele(w),O).up()}else for(w in u){if(!n.call(u,w))continue;if(x=u[w],w===i){if((typeof x=="undefined"?"undefined":(0,v.default)(x))==="object")for(E in x)S=x[E],h=h.att(E,S)}else if(w===t)f.options.cdata&&e(x)?h=h.raw(a(x)):h=h.txt(x);else if(Array.isArray(x))for(C in x){if(!n.call(x,C))continue;O=x[C],typeof O=="string"?f.options.cdata&&e(O)?h=h.ele(w).raw(a(O)).up():h=h.ele(w,O).up():h=o(h.ele(w),O).up()}else(typeof x=="undefined"?"undefined":(0,v.default)(x))==="object"?h=o(h.ele(w),x).up():typeof x=="string"&&f.options.cdata&&e(x)?h=h.ele(w).raw(a(x)).up():(x==null&&(x=""),h=h.ele(w,x.toString()).up())}return h}}(this),c=s.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),o(c,r).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(j,W,y){"use strict";(function(){y.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/promise"),v=e(I),T=j("babel-runtime/core-js/object/get-own-property-names"),b=e(T),g=j("babel-runtime/core-js/object/keys"),s=e(g),_=j("babel-runtime/helpers/typeof"),p=e(_);function e(a){return a&&a.__esModule?a:{default:a}}(function(){"use strict";var a,n,l,r,i,t,o,c,d=function(E,x){return function(){return E.apply(x,arguments)}},f=function(E,x){for(var O in x)h.call(x,O)&&(E[O]=x[O]);function C(){this.constructor=E}return C.prototype=x.prototype,E.prototype=new C,E.__super__=x.prototype,E},h={}.hasOwnProperty;o=j("sax"),l=j("events"),a=j("./bom"),t=j("./processors"),c=j("timers").setImmediate,n=j("./defaults").defaults,r=function(E){return(typeof E=="undefined"?"undefined":(0,p.default)(E))==="object"&&E!=null&&(0,s.default)(E).length===0},i=function(E,x,O){var C,w,S;for(C=0,w=E.length;C<w;C++)S=E[C],x=S(x,O);return x},y.Parser=function(u){f(E,u);function E(x){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var O,C,w;if(!(this instanceof y.Parser))return new y.Parser(x);this.options={},C=n["0.2"];for(O in C){if(!h.call(C,O))continue;w=C[O],this.options[O]=w}for(O in x){if(!h.call(x,O))continue;w=x[O],this.options[O]=w}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(t.normalize)),this.reset()}return E.prototype.processAsync=function(){var x,O;try{return this.remaining.length<=this.options.chunkSize?(x=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(x),this.saxParser.close()):(x=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(x),c(this.processAsync))}catch(C){if(O=C,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(O)}},E.prototype.assignOrPush=function(x,O,C){return O in x?(x[O]instanceof Array||(x[O]=[x[O]]),x[O].push(C)):this.options.explicitArray?x[O]=[C]:x[O]=C},E.prototype.reset=function(){var x,O,C,w;return this.removeAllListeners(),this.saxParser=o.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(S){return function(D){if(S.saxParser.resume(),!S.saxParser.errThrown)return S.saxParser.errThrown=!0,S.emit("error",D)}}(this),this.saxParser.onend=function(S){return function(){if(!S.saxParser.ended)return S.saxParser.ended=!0,S.emit("end",S.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,w=[],x=this.options.attrkey,O=this.options.charkey,this.saxParser.onopentag=function(S){return function(D){var R,P,N,M,z;if(N={},N[O]="",!S.options.ignoreAttrs){z=D.attributes;for(R in z){if(!h.call(z,R))continue;!(x in N)&&!S.options.mergeAttrs&&(N[x]={}),P=S.options.attrValueProcessors?i(S.options.attrValueProcessors,D.attributes[R],R):D.attributes[R],M=S.options.attrNameProcessors?i(S.options.attrNameProcessors,R):R,S.options.mergeAttrs?S.assignOrPush(N,M,P):N[x][M]=P}}return N["#name"]=S.options.tagNameProcessors?i(S.options.tagNameProcessors,D.name):D.name,S.options.xmlns&&(N[S.options.xmlnskey]={uri:D.uri,local:D.local}),w.push(N)}}(this),this.saxParser.onclosetag=function(S){return function(){var D,R,P,N,M,z,X,k,F,U;if(z=w.pop(),M=z["#name"],(!S.options.explicitChildren||!S.options.preserveChildrenOrder)&&delete z["#name"],z.cdata===!0&&(D=z.cdata,delete z.cdata),F=w[w.length-1],z[O].match(/^\s*$/)&&!D?(R=z[O],delete z[O]):(S.options.trim&&(z[O]=z[O].trim()),S.options.normalize&&(z[O]=z[O].replace(/\s{2,}/g," ").trim()),z[O]=S.options.valueProcessors?i(S.options.valueProcessors,z[O],M):z[O],(0,s.default)(z).length===1&&O in z&&!S.EXPLICIT_CHARKEY&&(z=z[O])),r(z)&&(z=S.options.emptyTag!==""?S.options.emptyTag:R),S.options.validator!=null&&(U="/"+function(){var L,B,Z;for(Z=[],L=0,B=w.length;L<B;L++)N=w[L],Z.push(N["#name"]);return Z}().concat(M).join("/"),function(){var L;try{return z=S.options.validator(U,F&&F[M],z)}catch(B){return L=B,S.emit("error",L)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof z=="undefined"?"undefined":(0,p.default)(z))==="object"){if(!S.options.preserveChildrenOrder)N={},S.options.attrkey in z&&(N[S.options.attrkey]=z[S.options.attrkey],delete z[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in z&&(N[S.options.charkey]=z[S.options.charkey],delete z[S.options.charkey]),(0,b.default)(z).length>0&&(N[S.options.childkey]=z),z=N;else if(F){F[S.options.childkey]=F[S.options.childkey]||[],X={};for(P in z){if(!h.call(z,P))continue;X[P]=z[P]}F[S.options.childkey].push(X),delete z["#name"],(0,s.default)(z).length===1&&O in z&&!S.EXPLICIT_CHARKEY&&(z=z[O])}}return w.length>0?S.assignOrPush(F,M,z):(S.options.explicitRoot&&(k=z,z={},z[M]=k),S.resultObject=z,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),C=function(S){return function(D){var R,P;if(P=w[w.length-1],P)return P[O]+=D,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||D.replace(/\\n/g,"").trim()!=="")&&(P[S.options.childkey]=P[S.options.childkey]||[],R={"#name":"__text__"},R[O]=D,S.options.normalize&&(R[O]=R[O].replace(/\s{2,}/g," ").trim()),P[S.options.childkey].push(R)),P}}(this),this.saxParser.ontext=C,this.saxParser.oncdata=function(S){return function(D){var R;if(R=C(D),R)return R.cdata=!0}}(this)},E.prototype.parseString=function(x,O){var C;O!=null&&typeof O=="function"&&(this.on("end",function(w){return this.reset(),O(null,w)}),this.on("error",function(w){return this.reset(),O(w)}));try{return x=x.toString(),x.trim()===""?(this.emit("end",null),!0):(x=a.stripBOM(x),this.options.async?(this.remaining=x,c(this.processAsync),this.saxParser):this.saxParser.write(x).close())}catch(w){if(C=w,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw C}else return this.emit("error",C),this.saxParser.errThrown=!0}},E.prototype.parseStringPromise=function(x){return new v.default(function(O){return function(C,w){return O.parseString(x,function(S,D){return S?w(S):C(D)})}}(this))},E}(l),y.parseString=function(u,E,x){var O,C,w;return x!=null?(typeof x=="function"&&(O=x),(typeof E=="undefined"?"undefined":(0,p.default)(E))==="object"&&(C=E)):(typeof E=="function"&&(O=E),C={}),w=new y.Parser(C),w.parseString(u,O)},y.parseStringPromise=function(u,E){var x,O;return(typeof E=="undefined"?"undefined":(0,p.default)(E))==="object"&&(x=E),O=new y.Parser(x),O.parseStringPromise(u)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(j,W,y){"use strict";(function(){"use strict";var I;I=new RegExp(/(?!xmlns)^.*:/),y.normalize=function(v){return v.toLowerCase()},y.firstCharLowerCase=function(v){return v.charAt(0).toLowerCase()+v.slice(1)},y.stripPrefix=function(v){return v.replace(I,"")},y.parseNumbers=function(v){return isNaN(v)||(v=v%1===0?parseInt(v,10):parseFloat(v)),v},y.parseBooleans=function(v){return/^(?:true|false)$/i.test(v)&&(v=v.toLowerCase()==="true"),v}}).call(void 0)},{}],249:[function(j,W,y){"use strict";(function(){"use strict";var I,v,T,b,g=function(p,e){for(var a in e)s.call(e,a)&&(p[a]=e[a]);function n(){this.constructor=p}return n.prototype=e.prototype,p.prototype=new n,p.__super__=e.prototype,p},s={}.hasOwnProperty;v=j("./defaults"),I=j("./builder"),T=j("./parser"),b=j("./processors"),y.defaults=v.defaults,y.processors=b,y.ValidationError=function(_){g(p,_);function p(e){this.message=e}return p}(Error),y.Builder=I.Builder,y.Parser=T.Parser,y.parseString=T.parseString,y.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(j,W,y){"use strict";(function(){W.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(j,W,y){"use strict";(function(){W.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/get-prototype-of"),v=_(I),T=j("babel-runtime/helpers/typeof"),b=_(T),g=j("babel-runtime/core-js/object/assign"),s=_(g);function _(p){return p&&p.__esModule?p:{default:p}}(function(){var p,e,a,n,l,r,i,t=[].slice,o={}.hasOwnProperty;p=function(){var d,f,h,u,E,x;if(x=arguments[0],E=2<=arguments.length?t.call(arguments,1):[],l(s.default))s.default.apply(null,arguments);else for(d=0,h=E.length;d<h;d++)if(u=E[d],u!=null)for(f in u){if(!o.call(u,f))continue;x[f]=u[f]}return x},l=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},r=function(d){var f;return!!d&&((f=typeof d=="undefined"?"undefined":(0,b.default)(d))==="function"||f==="object")},a=function(d){return l(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},n=function(d){var f;if(a(d))return!d.length;for(f in d){if(!o.call(d,f))continue;return!1}return!0},i=function(d){var f,h;return r(d)&&(h=(0,v.default)(d))&&(f=h.constructor)&&typeof f=="function"&&f instanceof f&&Function.prototype.toString.call(f)===Function.prototype.toString.call(Object)},e=function(d){return l(d.valueOf)?d.valueOf():d},W.exports.assign=p,W.exports.isFunction=l,W.exports.isObject=r,W.exports.isArray=a,W.exports.isEmpty=n,W.exports.isPlainObject=i,W.exports.getValue=e}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(j,W,y){"use strict";(function(){W.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s;b=j("./NodeType"),s=j("./XMLNode"),W.exports=g=function(){function _(p,e,a){if(this.parent=p,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),e==null)throw new Error("Missing attribute name. "+this.debugInfo(e));this.name=this.stringify.name(e),this.value=this.stringify.attValue(a),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(_.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(_.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(_.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(_.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(_.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(_.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(_.prototype,"specified",{get:function(){return!0}}),_.prototype.clone=function(){return(0,v.default)(this)},_.prototype.toString=function(p){return this.options.writer.attribute(this,this.options.writer.filterOptions(p))},_.prototype.debugInfo=function(p){return p=p||this.name,p==null?"parent: <"+this.parent.name+">":"attribute: {"+p+"}, parent: <"+this.parent.name+">"},_.prototype.isEqualNode=function(p){return p.namespaceURI!==this.namespaceURI||(p.prefix!==this.prefix||p.localName!==this.localName)?!1:!(p.value!==this.value)},_}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s,_=function(a,n){for(var l in n)p.call(n,l)&&(a[l]=n[l]);function r(){this.constructor=a}return r.prototype=n.prototype,a.prototype=new r,a.__super__=n.prototype,a},p={}.hasOwnProperty;b=j("./NodeType"),s=j("./XMLCharacterData"),W.exports=g=function(e){_(a,e);function a(n,l){if(a.__super__.constructor.call(this,n),l==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(l)}return a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))},a}(s)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s=function(e,a){for(var n in a)_.call(a,n)&&(e[n]=a[n]);function l(){this.constructor=e}return l.prototype=a.prototype,e.prototype=new l,e.__super__=a.prototype,e},_={}.hasOwnProperty;g=j("./XMLNode"),W.exports=b=function(p){s(e,p);function e(a){e.__super__.constructor.call(this,a),this.value=""}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.substringData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(a,n,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(a){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?!(a.data!==this.data):!1},e}(g)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s,_=function(a,n){for(var l in n)p.call(n,l)&&(a[l]=n[l]);function r(){this.constructor=a}return r.prototype=n.prototype,a.prototype=new r,a.__super__=n.prototype,a},p={}.hasOwnProperty;b=j("./NodeType"),g=j("./XMLCharacterData"),W.exports=s=function(e){_(a,e);function a(n,l){if(a.__super__.constructor.call(this,n),l==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(l)}return a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))},a}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/keys"),v=g(I),T=j("babel-runtime/core-js/object/create"),b=g(T);function g(s){return s&&s.__esModule?s:{default:s}}(function(){var s,_,p;_=j("./XMLDOMErrorHandler"),p=j("./XMLDOMStringList"),W.exports=s=function(){function e(){var a;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new _,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=a=(0,b.default)(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new p((0,v.default)(this.defaultParams))}}),e.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},e.prototype.canSetParameter=function(a,n){return!0},e.prototype.setParameter=function(a,n){return n!=null?this.params[a]=n:delete this.params[a]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(j,W,y){"use strict";(function(){var I;W.exports=I=function(){function v(){}return v.prototype.handleError=function(T){throw new Error(T)},v}()}).call(void 0)},{}],260:[function(j,W,y){"use strict";(function(){var I;W.exports=I=function(){function v(){}return v.prototype.hasFeature=function(T,b){return!0},v.prototype.createDocumentType=function(T,b,g){throw new Error("This DOM method is not implemented.")},v.prototype.createDocument=function(T,b,g){throw new Error("This DOM method is not implemented.")},v.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},v.prototype.getFeature=function(T,b){throw new Error("This DOM method is not implemented.")},v}()}).call(void 0)},{}],261:[function(j,W,y){"use strict";(function(){var I;W.exports=I=function(){function v(T){this.arr=T||[]}return Object.defineProperty(v.prototype,"length",{get:function(){return this.arr.length}}),v.prototype.item=function(T){return this.arr[T]||null},v.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},v}()}).call(void 0)},{}],262:[function(j,W,y){"use strict";(function(){var I,v,T,b=function(_,p){for(var e in p)g.call(p,e)&&(_[e]=p[e]);function a(){this.constructor=_}return a.prototype=p.prototype,_.prototype=new a,_.__super__=p.prototype,_},g={}.hasOwnProperty;T=j("./XMLNode"),I=j("./NodeType"),W.exports=v=function(s){b(_,s);function _(p,e,a,n,l,r){if(_.__super__.constructor.call(this,p),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(e));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(e));if(!l)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(e));if(r&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(e));this.elementName=this.stringify.name(e),this.type=I.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(n),r&&(this.defaultValue=this.stringify.dtdAttDefault(r)),this.defaultValueType=l}return _.prototype.toString=function(p){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(p))},_}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(j,W,y){"use strict";(function(){var I,v,T,b=function(_,p){for(var e in p)g.call(p,e)&&(_[e]=p[e]);function a(){this.constructor=_}return a.prototype=p.prototype,_.prototype=new a,_.__super__=p.prototype,_},g={}.hasOwnProperty;T=j("./XMLNode"),I=j("./NodeType"),W.exports=v=function(s){b(_,s);function _(p,e,a){if(_.__super__.constructor.call(this,p),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(e),this.type=I.ElementDeclaration,this.value=this.stringify.dtdElementValue(a)}return _.prototype.toString=function(p){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(p))},_}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(j,W,y){"use strict";(function(){var I,v,T,b,g=function(p,e){for(var a in e)s.call(e,a)&&(p[a]=e[a]);function n(){this.constructor=p}return n.prototype=e.prototype,p.prototype=new n,p.__super__=e.prototype,p},s={}.hasOwnProperty;b=j("./Utility").isObject,T=j("./XMLNode"),I=j("./NodeType"),W.exports=v=function(_){g(p,_);function p(e,a,n,l){if(p.__super__.constructor.call(this,e),n==null)throw new Error("Missing DTD entity name. "+this.debugInfo(n));if(l==null)throw new Error("Missing DTD entity value. "+this.debugInfo(n));if(this.pe=!!a,this.name=this.stringify.name(n),this.type=I.EntityDeclaration,!b(l))this.value=this.stringify.dtdEntityValue(l),this.internal=!0;else{if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(n));if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(n));if(this.internal=!1,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(n))}}return Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(p.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(p.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(p.prototype,"xmlVersion",{get:function(){return null}}),p.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},p}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(j,W,y){"use strict";(function(){var I,v,T,b=function(_,p){for(var e in p)g.call(p,e)&&(_[e]=p[e]);function a(){this.constructor=_}return a.prototype=p.prototype,_.prototype=new a,_.__super__=p.prototype,_},g={}.hasOwnProperty;T=j("./XMLNode"),I=j("./NodeType"),W.exports=v=function(s){b(_,s);function _(p,e,a){if(_.__super__.constructor.call(this,p),e==null)throw new Error("Missing DTD notation name. "+this.debugInfo(e));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(e));this.name=this.stringify.name(e),this.type=I.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return Object.defineProperty(_.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(_.prototype,"systemId",{get:function(){return this.sysID}}),_.prototype.toString=function(p){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(p))},_}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(j,W,y){"use strict";(function(){var I,v,T,b,g=function(p,e){for(var a in e)s.call(e,a)&&(p[a]=e[a]);function n(){this.constructor=p}return n.prototype=e.prototype,p.prototype=new n,p.__super__=e.prototype,p},s={}.hasOwnProperty;b=j("./Utility").isObject,T=j("./XMLNode"),I=j("./NodeType"),W.exports=v=function(_){g(p,_);function p(e,a,n,l){var r;p.__super__.constructor.call(this,e),b(a)&&(r=a,a=r.version,n=r.encoding,l=r.standalone),a||(a="1.0"),this.type=I.Declaration,this.version=this.stringify.xmlVersion(a),n!=null&&(this.encoding=this.stringify.xmlEncoding(n)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return p.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},p}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(j,W,y){"use strict";(function(){var I,v,T,b,g,s,_,p,e,a=function(r,i){for(var t in i)n.call(i,t)&&(r[t]=i[t]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=j("./Utility").isObject,p=j("./XMLNode"),I=j("./NodeType"),v=j("./XMLDTDAttList"),b=j("./XMLDTDEntity"),T=j("./XMLDTDElement"),g=j("./XMLDTDNotation"),_=j("./XMLNamedNodeMap"),W.exports=s=function(l){a(r,l);function r(i,t,o){var c,d,f,h,u,E;if(r.__super__.constructor.call(this,i),this.type=I.DocType,i.children){for(h=i.children,d=0,f=h.length;d<f;d++)if(c=h[d],c.type===I.Element){this.name=c.name;break}}this.documentObject=i,e(t)&&(u=t,t=u.pubID,o=u.sysID),o==null&&(E=[t,o],o=E[0],t=E[1]),t!=null&&(this.pubID=this.stringify.dtdPubID(t)),o!=null&&(this.sysID=this.stringify.dtdSysID(o))}return Object.defineProperty(r.prototype,"entities",{get:function(){var t,o,c,d,f;for(d={},f=this.children,o=0,c=f.length;o<c;o++)t=f[o],t.type===I.EntityDeclaration&&!t.pe&&(d[t.name]=t);return new _(d)}}),Object.defineProperty(r.prototype,"notations",{get:function(){var t,o,c,d,f;for(d={},f=this.children,o=0,c=f.length;o<c;o++)t=f[o],t.type===I.NotationDeclaration&&(d[t.name]=t);return new _(d)}}),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),r.prototype.element=function(i,t){var o;return o=new T(this,i,t),this.children.push(o),this},r.prototype.attList=function(i,t,o,c,d){var f;return f=new v(this,i,t,o,c,d),this.children.push(f),this},r.prototype.entity=function(i,t){var o;return o=new b(this,!1,i,t),this.children.push(o),this},r.prototype.pEntity=function(i,t){var o;return o=new b(this,!0,i,t),this.children.push(o),this},r.prototype.notation=function(i,t){var o;return o=new g(this,i,t),this.children.push(o),this},r.prototype.toString=function(i){return this.options.writer.docType(this,this.options.writer.filterOptions(i))},r.prototype.ele=function(i,t){return this.element(i,t)},r.prototype.att=function(i,t,o,c,d){return this.attList(i,t,o,c,d)},r.prototype.ent=function(i,t){return this.entity(i,t)},r.prototype.pent=function(i,t){return this.pEntity(i,t)},r.prototype.not=function(i,t){return this.notation(i,t)},r.prototype.up=function(){return this.root()||this.documentObject},r.prototype.isEqualNode=function(i){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?i.name!==this.name||i.publicId!==this.publicId?!1:!(i.systemId!==this.systemId):!1},r}(p)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(j,W,y){"use strict";(function(){var I,v,T,b,g,s,_,p,e=function(l,r){for(var i in r)a.call(r,i)&&(l[i]=r[i]);function t(){this.constructor=l}return t.prototype=r.prototype,l.prototype=new t,l.__super__=r.prototype,l},a={}.hasOwnProperty;p=j("./Utility").isPlainObject,T=j("./XMLDOMImplementation"),v=j("./XMLDOMConfiguration"),g=j("./XMLNode"),I=j("./NodeType"),_=j("./XMLStringifier"),s=j("./XMLStringWriter"),W.exports=b=function(n){e(l,n);function l(r){l.__super__.constructor.call(this,null),this.name="#document",this.type=I.Document,this.documentURI=null,this.domConfig=new v,r||(r={}),r.writer||(r.writer=new s),this.options=r,this.stringify=new _(r)}return Object.defineProperty(l.prototype,"implementation",{value:new T}),Object.defineProperty(l.prototype,"doctype",{get:function(){var i,t,o,c;for(c=this.children,t=0,o=c.length;t<o;t++)if(i=c[t],i.type===I.DocType)return i;return null}}),Object.defineProperty(l.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(l.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(l.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===I.Declaration?this.children[0].encoding:null}}),Object.defineProperty(l.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===I.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(l.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===I.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(l.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(l.prototype,"origin",{get:function(){return null}}),Object.defineProperty(l.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(l.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(l.prototype,"contentType",{get:function(){return null}}),l.prototype.end=function(r){var i;return i={},r?p(r)&&(i=r,r=this.options.writer):r=this.options.writer,r.document(this,r.filterOptions(i))},l.prototype.toString=function(r){return this.options.writer.document(this,this.options.writer.filterOptions(r))},l.prototype.createElement=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTextNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createComment=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createCDATASection=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createProcessingInstruction=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttribute=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEntityReference=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.importNode=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createElementNS=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttributeNS=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementById=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.adoptNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.renameNode=function(r,i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByClassName=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEvent=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createNodeIterator=function(r,i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTreeWalker=function(r,i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},l}(g)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(j,W,y){"use strict";(function(){var I,v,T,b,g,s,_,p,e,a,n,l,r,i,t,o,c,d,f,h,u,E,x,O,C={}.hasOwnProperty;O=j("./Utility"),E=O.isObject,u=O.isFunction,x=O.isPlainObject,h=O.getValue,I=j("./NodeType"),l=j("./XMLDocument"),i=j("./XMLElement"),b=j("./XMLCData"),g=j("./XMLComment"),o=j("./XMLRaw"),f=j("./XMLText"),t=j("./XMLProcessingInstruction"),a=j("./XMLDeclaration"),n=j("./XMLDocType"),s=j("./XMLDTDAttList"),p=j("./XMLDTDEntity"),_=j("./XMLDTDElement"),e=j("./XMLDTDNotation"),T=j("./XMLAttribute"),d=j("./XMLStringifier"),c=j("./XMLStringWriter"),v=j("./WriterState"),W.exports=r=function(){function w(S,D,R){var P;this.name="?xml",this.type=I.Document,S||(S={}),P={},S.writer?x(S.writer)&&(P=S.writer,S.writer=new c):S.writer=new c,this.options=S,this.writer=S.writer,this.writerOptions=this.writer.filterOptions(P),this.stringify=new d(S),this.onDataCallback=D||function(){},this.onEndCallback=R||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return w.prototype.createChildNode=function(S){var D,R,P,N,M,z,X,k;switch(S.type){case I.CData:this.cdata(S.value);break;case I.Comment:this.comment(S.value);break;case I.Element:P={},X=S.attribs;for(R in X){if(!C.call(X,R))continue;D=X[R],P[R]=D.value}this.node(S.name,P);break;case I.Dummy:this.dummy();break;case I.Raw:this.raw(S.value);break;case I.Text:this.text(S.value);break;case I.ProcessingInstruction:this.instruction(S.target,S.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+S.constructor.name)}for(k=S.children,M=0,z=k.length;M<z;M++)N=k[M],this.createChildNode(N),N.type===I.Element&&this.up();return this},w.prototype.dummy=function(){return this},w.prototype.node=function(S,D,R){var P;if(S==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(S));return this.openCurrent(),S=h(S),D==null&&(D={}),D=h(D),E(D)||(P=[D,R],R=P[0],D=P[1]),this.currentNode=new i(this,S,D),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,R!=null&&this.text(R),this},w.prototype.element=function(S,D,R){var P,N,M,z,X,k;if(this.currentNode&&this.currentNode.type===I.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(S)||E(S)||u(S))for(z=this.options.noValidation,this.options.noValidation=!0,k=new l(this.options).element("TEMP_ROOT"),k.element(S),this.options.noValidation=z,X=k.children,N=0,M=X.length;N<M;N++)P=X[N],this.createChildNode(P),P.type===I.Element&&this.up();else this.node(S,D,R);return this},w.prototype.attribute=function(S,D){var R,P;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null&&(S=h(S)),E(S))for(R in S){if(!C.call(S,R))continue;P=S[R],this.attribute(R,P)}else u(D)&&(D=D.apply()),this.options.keepNullAttributes&&D==null?this.currentNode.attribs[S]=new T(this,S,""):D!=null&&(this.currentNode.attribs[S]=new T(this,S,D));return this},w.prototype.text=function(S){var D;return this.openCurrent(),D=new f(this,S),this.onData(this.writer.text(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.cdata=function(S){var D;return this.openCurrent(),D=new b(this,S),this.onData(this.writer.cdata(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.comment=function(S){var D;return this.openCurrent(),D=new g(this,S),this.onData(this.writer.comment(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.raw=function(S){var D;return this.openCurrent(),D=new o(this,S),this.onData(this.writer.raw(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.instruction=function(S,D){var R,P,N,M,z;if(this.openCurrent(),S!=null&&(S=h(S)),D!=null&&(D=h(D)),Array.isArray(S))for(R=0,M=S.length;R<M;R++)P=S[R],this.instruction(P);else if(E(S))for(P in S){if(!C.call(S,P))continue;N=S[P],this.instruction(P,N)}else u(D)&&(D=D.apply()),z=new t(this,S,D),this.onData(this.writer.processingInstruction(z,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},w.prototype.declaration=function(S,D,R){var P;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return P=new a(this,S,D,R),this.onData(this.writer.declaration(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.doctype=function(S,D,R){if(this.openCurrent(),S==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new n(this,D,R),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},w.prototype.dtdElement=function(S,D){var R;return this.openCurrent(),R=new _(this,S,D),this.onData(this.writer.dtdElement(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.attList=function(S,D,R,P,N){var M;return this.openCurrent(),M=new s(this,S,D,R,P,N),this.onData(this.writer.dtdAttList(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.entity=function(S,D){var R;return this.openCurrent(),R=new p(this,!1,S,D),this.onData(this.writer.dtdEntity(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.pEntity=function(S,D){var R;return this.openCurrent(),R=new p(this,!0,S,D),this.onData(this.writer.dtdEntity(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.notation=function(S,D){var R;return this.openCurrent(),R=new e(this,S,D),this.onData(this.writer.dtdNotation(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},w.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},w.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},w.prototype.openNode=function(S){var D,R,P,N;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===I.Element&&(this.root=S),R="",S.type===I.Element){this.writerOptions.state=v.OpenTag,R=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,N=S.attribs;for(P in N){if(!C.call(N,P))continue;D=N[P],R+=this.writer.attribute(D,this.writerOptions,this.currentLevel)}R+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=v.InsideTag}else this.writerOptions.state=v.OpenTag,R=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+S.rootNodeName,S.pubID&&S.sysID?R+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(R+=' SYSTEM "'+S.sysID+'"'),S.children?(R+=" [",this.writerOptions.state=v.InsideTag):(this.writerOptions.state=v.CloseTag,R+=">"),R+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(R,this.currentLevel),S.isOpen=!0}},w.prototype.closeNode=function(S){var D;if(!S.isClosed)return D="",this.writerOptions.state=v.CloseTag,S.type===I.Element?D=this.writer.indent(S,this.writerOptions,this.currentLevel)+"</"+S.name+">"+this.writer.endline(S,this.writerOptions,this.currentLevel):D=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=v.None,this.onData(D,this.currentLevel),S.isClosed=!0},w.prototype.onData=function(S,D){return this.documentStarted=!0,this.onDataCallback(S,D+1)},w.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},w.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},w.prototype.ele=function(){return this.element.apply(this,arguments)},w.prototype.nod=function(S,D,R){return this.node(S,D,R)},w.prototype.txt=function(S){return this.text(S)},w.prototype.dat=function(S){return this.cdata(S)},w.prototype.com=function(S){return this.comment(S)},w.prototype.ins=function(S,D){return this.instruction(S,D)},w.prototype.dec=function(S,D,R){return this.declaration(S,D,R)},w.prototype.dtd=function(S,D,R){return this.doctype(S,D,R)},w.prototype.e=function(S,D,R){return this.element(S,D,R)},w.prototype.n=function(S,D,R){return this.node(S,D,R)},w.prototype.t=function(S){return this.text(S)},w.prototype.d=function(S){return this.cdata(S)},w.prototype.c=function(S){return this.comment(S)},w.prototype.r=function(S){return this.raw(S)},w.prototype.i=function(S,D){return this.instruction(S,D)},w.prototype.att=function(){return this.currentNode&&this.currentNode.type===I.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.a=function(){return this.currentNode&&this.currentNode.type===I.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.ent=function(S,D){return this.entity(S,D)},w.prototype.pent=function(S,D){return this.pEntity(S,D)},w.prototype.not=function(S,D){return this.notation(S,D)},w}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s,_=function(a,n){for(var l in n)p.call(n,l)&&(a[l]=n[l]);function r(){this.constructor=a}return r.prototype=n.prototype,a.prototype=new r,a.__super__=n.prototype,a},p={}.hasOwnProperty;s=j("./XMLNode"),b=j("./NodeType"),W.exports=g=function(e){_(a,e);function a(n){a.__super__.constructor.call(this,n),this.type=b.Dummy}return a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(n){return""},a}(s)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s,_,p,e,a,n,l,r=function(o,c){for(var d in c)i.call(c,d)&&(o[d]=c[d]);function f(){this.constructor=o}return f.prototype=c.prototype,o.prototype=new f,o.__super__=c.prototype,o},i={}.hasOwnProperty;l=j("./Utility"),n=l.isObject,a=l.isFunction,e=l.getValue,p=j("./XMLNode"),b=j("./NodeType"),g=j("./XMLAttribute"),_=j("./XMLNamedNodeMap"),W.exports=s=function(t){r(o,t);function o(c,d,f){var h,u,E,x;if(o.__super__.constructor.call(this,c),d==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,f!=null&&this.attribute(f),c.type===b.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(x=c.children,u=0,E=x.length;u<E;u++)if(h=x[u],h.type===b.DocType){h.name=this.name;break}}}return Object.defineProperty(o.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(o.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(o.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(o.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(o.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new _(this.attribs)),this.attributeMap}}),o.prototype.clone=function(){var c,d,f,h;f=(0,v.default)(this),f.isRoot&&(f.documentObject=null),f.attribs={},h=this.attribs;for(d in h){if(!i.call(h,d))continue;c=h[d],f.attribs[d]=c.clone()}return f.children=[],this.children.forEach(function(u){var E;return E=u.clone(),E.parent=f,f.children.push(E)}),f},o.prototype.attribute=function(c,d){var f,h;if(c!=null&&(c=e(c)),n(c))for(f in c){if(!i.call(c,f))continue;h=c[f],this.attribute(f,h)}else a(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[c]=new g(this,c,""):d!=null&&(this.attribs[c]=new g(this,c,d));return this},o.prototype.removeAttribute=function(c){var d,f,h;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=e(c),Array.isArray(c))for(f=0,h=c.length;f<h;f++)d=c[f],delete this.attribs[d];else delete this.attribs[c];return this},o.prototype.toString=function(c){return this.options.writer.element(this,this.options.writer.filterOptions(c))},o.prototype.att=function(c,d){return this.attribute(c,d)},o.prototype.a=function(c,d){return this.attribute(c,d)},o.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},o.prototype.setAttribute=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNode=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c]:null},o.prototype.setAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.removeAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setAttributeNS=function(c,d,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.removeAttributeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNodeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setAttributeNodeNS=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.hasAttribute=function(c){return this.attribs.hasOwnProperty(c)},o.prototype.hasAttributeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setIdAttribute=function(c,d){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:d},o.prototype.setIdAttributeNS=function(c,d,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setIdAttributeNode=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByClassName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(c){var d,f,h;if(!o.__super__.isEqualNode.apply(this,arguments).isEqualNode(c))return!1;if(c.namespaceURI!==this.namespaceURI)return!1;if(c.prefix!==this.prefix)return!1;if(c.localName!==this.localName)return!1;if(c.attribs.length!==this.attribs.length)return!1;for(d=f=0,h=this.attribs.length-1;0<=h?f<=h:f>=h;d=0<=h?++f:--f)if(!this.attribs[d].isEqualNode(c.attribs[d]))return!1;return!0},o}(p)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/keys"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b;W.exports=b=function(){function g(s){this.nodes=s}return Object.defineProperty(g.prototype,"length",{get:function(){return(0,v.default)(this.nodes).length||0}}),g.prototype.clone=function(){return this.nodes=null},g.prototype.getNamedItem=function(s){return this.nodes[s]},g.prototype.setNamedItem=function(s){var _;return _=this.nodes[s.nodeName],this.nodes[s.nodeName]=s,_||null},g.prototype.removeNamedItem=function(s){var _;return _=this.nodes[s],delete this.nodes[s],_||null},g.prototype.item=function(s){return this.nodes[(0,v.default)(this.nodes)[s]]||null},g.prototype.getNamedItemNS=function(s,_){throw new Error("This DOM method is not implemented.")},g.prototype.setNamedItemNS=function(s){throw new Error("This DOM method is not implemented.")},g.prototype.removeNamedItemNS=function(s,_){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(j,W,y){"use strict";(function(){var I,v,T,b,g,s,_,p,e,a,n,l,r,i,t,o,c,d,f,h={}.hasOwnProperty;f=j("./Utility"),d=f.isObject,c=f.isFunction,o=f.isEmpty,t=f.getValue,p=null,T=null,b=null,g=null,s=null,r=null,i=null,l=null,_=null,v=null,n=null,e=null,I=null,W.exports=a=function(){function u(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,p||(p=j("./XMLElement"),T=j("./XMLCData"),b=j("./XMLComment"),g=j("./XMLDeclaration"),s=j("./XMLDocType"),r=j("./XMLRaw"),i=j("./XMLText"),l=j("./XMLProcessingInstruction"),_=j("./XMLDummy"),v=j("./NodeType"),n=j("./XMLNodeList"),e=j("./XMLNamedNodeMap"),I=j("./DocumentPosition"))}return Object.defineProperty(u.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(u.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(u.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(u.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(u.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new n(this.children)),this.childNodeList}}),Object.defineProperty(u.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(u.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(u.prototype,"previousSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(u.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(u.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(u.prototype,"textContent",{get:function(){var x,O,C,w,S;if(this.nodeType===v.Element||this.nodeType===v.DocumentFragment){for(S="",w=this.children,O=0,C=w.length;O<C;O++)x=w[O],x.textContent&&(S+=x.textContent);return S}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),u.prototype.setParent=function(E){var x,O,C,w,S;for(this.parent=E,E&&(this.options=E.options,this.stringify=E.stringify),w=this.children,S=[],O=0,C=w.length;O<C;O++)x=w[O],S.push(x.setParent(this));return S},u.prototype.element=function(E,x,O){var C,w,S,D,R,P,N,M,z,X,k;if(P=null,x===null&&O==null&&(z=[{},null],x=z[0],O=z[1]),x==null&&(x={}),x=t(x),d(x)||(X=[x,O],O=X[0],x=X[1]),E!=null&&(E=t(E)),Array.isArray(E))for(S=0,N=E.length;S<N;S++)w=E[S],P=this.element(w);else if(c(E))P=this.element(E.apply());else if(d(E))for(R in E){if(!h.call(E,R))continue;if(k=E[R],c(k)&&(k=k.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&R.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(R.substr(this.stringify.convertAttKey.length),k);else if(!this.options.separateArrayItems&&Array.isArray(k)&&o(k))P=this.dummy();else if(d(k)&&o(k))P=this.element(R);else if(!this.options.keepNullNodes&&k==null)P=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(k))for(D=0,M=k.length;D<M;D++)w=k[D],C={},C[R]=w,P=this.element(C);else d(k)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&R.indexOf(this.stringify.convertTextKey)===0?P=this.element(k):(P=this.element(R),P.element(k)):P=this.element(R,k)}else!this.options.keepNullNodes&&O===null?P=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&E.indexOf(this.stringify.convertTextKey)===0?P=this.text(O):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&E.indexOf(this.stringify.convertCDataKey)===0?P=this.cdata(O):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&E.indexOf(this.stringify.convertCommentKey)===0?P=this.comment(O):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&E.indexOf(this.stringify.convertRawKey)===0?P=this.raw(O):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&E.indexOf(this.stringify.convertPIKey)===0?P=this.instruction(E.substr(this.stringify.convertPIKey.length),O):P=this.node(E,x,O);if(P==null)throw new Error("Could not create any elements with: "+E+". "+this.debugInfo());return P},u.prototype.insertBefore=function(E,x,O){var C,w,S,D,R;if(E!=null?E.type:void 0)return S=E,D=x,S.setParent(this),D?(w=children.indexOf(D),R=children.splice(w),children.push(S),Array.prototype.push.apply(children,R)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return w=this.parent.children.indexOf(this),R=this.parent.children.splice(w),C=this.parent.element(E,x,O),Array.prototype.push.apply(this.parent.children,R),C},u.prototype.insertAfter=function(E,x,O){var C,w,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return w=this.parent.children.indexOf(this),S=this.parent.children.splice(w+1),C=this.parent.element(E,x,O),Array.prototype.push.apply(this.parent.children,S),C},u.prototype.remove=function(){var E,x;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return E=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[E,E-E+1].concat(x=[])),this.parent},u.prototype.node=function(E,x,O){var C,w;return E!=null&&(E=t(E)),x||(x={}),x=t(x),d(x)||(w=[x,O],O=w[0],x=w[1]),C=new p(this,E,x),O!=null&&C.text(O),this.children.push(C),C},u.prototype.text=function(E){var x;return d(E)&&this.element(E),x=new i(this,E),this.children.push(x),this},u.prototype.cdata=function(E){var x;return x=new T(this,E),this.children.push(x),this},u.prototype.comment=function(E){var x;return x=new b(this,E),this.children.push(x),this},u.prototype.commentBefore=function(E){var x,O,C;return O=this.parent.children.indexOf(this),C=this.parent.children.splice(O),x=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,C),this},u.prototype.commentAfter=function(E){var x,O,C;return O=this.parent.children.indexOf(this),C=this.parent.children.splice(O+1),x=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,C),this},u.prototype.raw=function(E){var x;return x=new r(this,E),this.children.push(x),this},u.prototype.dummy=function(){var E;return E=new _(this),E},u.prototype.instruction=function(E,x){var O,C,w,S,D;if(E!=null&&(E=t(E)),x!=null&&(x=t(x)),Array.isArray(E))for(S=0,D=E.length;S<D;S++)O=E[S],this.instruction(O);else if(d(E))for(O in E){if(!h.call(E,O))continue;C=E[O],this.instruction(O,C)}else c(x)&&(x=x.apply()),w=new l(this,E,x),this.children.push(w);return this},u.prototype.instructionBefore=function(E,x){var O,C,w;return C=this.parent.children.indexOf(this),w=this.parent.children.splice(C),O=this.parent.instruction(E,x),Array.prototype.push.apply(this.parent.children,w),this},u.prototype.instructionAfter=function(E,x){var O,C,w;return C=this.parent.children.indexOf(this),w=this.parent.children.splice(C+1),O=this.parent.instruction(E,x),Array.prototype.push.apply(this.parent.children,w),this},u.prototype.declaration=function(E,x,O){var C,w;return C=this.document(),w=new g(C,E,x,O),C.children.length===0?C.children.unshift(w):C.children[0].type===v.Declaration?C.children[0]=w:C.children.unshift(w),C.root()||C},u.prototype.dtd=function(E,x){var O,C,w,S,D,R,P,N,M,z;for(C=this.document(),w=new s(C,E,x),M=C.children,S=D=0,P=M.length;D<P;S=++D)if(O=M[S],O.type===v.DocType)return C.children[S]=w,w;for(z=C.children,S=R=0,N=z.length;R<N;S=++R)if(O=z[S],O.isRoot)return C.children.splice(S,0,w),w;return C.children.push(w),w},u.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},u.prototype.root=function(){var E;for(E=this;E;){if(E.type===v.Document)return E.rootObject;if(E.isRoot)return E;E=E.parent}},u.prototype.document=function(){var E;for(E=this;E;){if(E.type===v.Document)return E;E=E.parent}},u.prototype.end=function(E){return this.document().end(E)},u.prototype.prev=function(){var E;if(E=this.parent.children.indexOf(this),E<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[E-1]},u.prototype.next=function(){var E;if(E=this.parent.children.indexOf(this),E===-1||E===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[E+1]},u.prototype.importDocument=function(E){var x;return x=E.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this},u.prototype.debugInfo=function(E){var x,O;return E=E||this.name,E==null&&!((x=this.parent)!=null?x.name:void 0)?"":E==null?"parent: <"+this.parent.name+">":((O=this.parent)!=null?O.name:void 0)?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},u.prototype.ele=function(E,x,O){return this.element(E,x,O)},u.prototype.nod=function(E,x,O){return this.node(E,x,O)},u.prototype.txt=function(E){return this.text(E)},u.prototype.dat=function(E){return this.cdata(E)},u.prototype.com=function(E){return this.comment(E)},u.prototype.ins=function(E,x){return this.instruction(E,x)},u.prototype.doc=function(){return this.document()},u.prototype.dec=function(E,x,O){return this.declaration(E,x,O)},u.prototype.e=function(E,x,O){return this.element(E,x,O)},u.prototype.n=function(E,x,O){return this.node(E,x,O)},u.prototype.t=function(E){return this.text(E)},u.prototype.d=function(E){return this.cdata(E)},u.prototype.c=function(E){return this.comment(E)},u.prototype.r=function(E){return this.raw(E)},u.prototype.i=function(E,x){return this.instruction(E,x)},u.prototype.u=function(){return this.up()},u.prototype.importXMLBuilder=function(E){return this.importDocument(E)},u.prototype.replaceChild=function(E,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.hasChildNodes=function(){return this.children.length!==0},u.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.isSupported=function(E,x){return!0},u.prototype.hasAttributes=function(){return this.attribs.length!==0},u.prototype.compareDocumentPosition=function(E){var x,O;return x=this,x===E?0:this.document()!==E.document()?(O=I.Disconnected|I.ImplementationSpecific,Math.random()<.5?O|=I.Preceding:O|=I.Following,O):x.isAncestor(E)?I.Contains|I.Preceding:x.isDescendant(E)?I.Contains|I.Following:x.isPreceding(E)?I.Preceding:I.Following},u.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.isEqualNode=function(E){var x,O,C;if(E.nodeType!==this.nodeType)return!1;if(E.children.length!==this.children.length)return!1;for(x=O=0,C=this.children.length-1;0<=C?O<=C:O>=C;x=0<=C?++O:--O)if(!this.children[x].isEqualNode(E.children[x]))return!1;return!0},u.prototype.getFeature=function(E,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.setUserData=function(E,x,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},u.prototype.isDescendant=function(E){var x,O,C,w,S;for(S=this.children,C=0,w=S.length;C<w;C++){if(x=S[C],E===x)return!0;if(O=x.isDescendant(E),O)return!0}return!1},u.prototype.isAncestor=function(E){return E.isDescendant(this)},u.prototype.isPreceding=function(E){var x,O;return x=this.treePosition(E),O=this.treePosition(this),x===-1||O===-1?!1:x<O},u.prototype.isFollowing=function(E){var x,O;return x=this.treePosition(E),O=this.treePosition(this),x===-1||O===-1?!1:x>O},u.prototype.treePosition=function(E){var x,O;return O=0,x=!1,this.foreachTreeNode(this.document(),function(C){if(O++,!x&&C===E)return x=!0}),x?O:-1},u.prototype.foreachTreeNode=function(E,x){var O,C,w,S,D;for(E||(E=this.document()),S=E.children,C=0,w=S.length;C<w;C++){if(O=S[C],D=x(O))return D;if(D=this.foreachTreeNode(O,x),D)return D}},u}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(j,W,y){"use strict";(function(){var I;W.exports=I=function(){function v(T){this.nodes=T}return Object.defineProperty(v.prototype,"length",{get:function(){return this.nodes.length||0}}),v.prototype.clone=function(){return this.nodes=null},v.prototype.item=function(T){return this.nodes[T]||null},v}()}).call(void 0)},{}],275:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s,_=function(a,n){for(var l in n)p.call(n,l)&&(a[l]=n[l]);function r(){this.constructor=a}return r.prototype=n.prototype,a.prototype=new r,a.__super__=n.prototype,a},p={}.hasOwnProperty;b=j("./NodeType"),g=j("./XMLCharacterData"),W.exports=s=function(e){_(a,e);function a(n,l,r){if(a.__super__.constructor.call(this,n),l==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(l),this.name=this.target,r&&(this.value=this.stringify.insValue(r))}return a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(n){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(n))},a.prototype.isEqualNode=function(n){return a.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)?!(n.target!==this.target):!1},a}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s,_=function(a,n){for(var l in n)p.call(n,l)&&(a[l]=n[l]);function r(){this.constructor=a}return r.prototype=n.prototype,a.prototype=new r,a.__super__=n.prototype,a},p={}.hasOwnProperty;b=j("./NodeType"),g=j("./XMLNode"),W.exports=s=function(e){_(a,e);function a(n,l){if(a.__super__.constructor.call(this,n),l==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(l)}return a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(n){return this.options.writer.raw(this,this.options.writer.filterOptions(n))},a}(g)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(j,W,y){"use strict";(function(){var I,v,T,b,g=function(p,e){for(var a in e)s.call(e,a)&&(p[a]=e[a]);function n(){this.constructor=p}return n.prototype=e.prototype,p.prototype=new n,p.__super__=e.prototype,p},s={}.hasOwnProperty;I=j("./NodeType"),b=j("./XMLWriterBase"),v=j("./WriterState"),W.exports=T=function(_){g(p,_);function p(e,a){this.stream=e,p.__super__.constructor.call(this,a)}return p.prototype.endline=function(e,a,n){return e.isLastRootNode&&a.state===v.CloseTag?"":p.__super__.endline.call(this,e,a,n)},p.prototype.document=function(e,a){var n,l,r,i,t,o,c,d,f;for(c=e.children,l=r=0,t=c.length;r<t;l=++r)n=c[l],n.isLastRootNode=l===e.children.length-1;for(a=this.filterOptions(a),d=e.children,f=[],i=0,o=d.length;i<o;i++)n=d[i],f.push(this.writeChildNode(n,a,0));return f},p.prototype.attribute=function(e,a,n){return this.stream.write(p.__super__.attribute.call(this,e,a,n))},p.prototype.cdata=function(e,a,n){return this.stream.write(p.__super__.cdata.call(this,e,a,n))},p.prototype.comment=function(e,a,n){return this.stream.write(p.__super__.comment.call(this,e,a,n))},p.prototype.declaration=function(e,a,n){return this.stream.write(p.__super__.declaration.call(this,e,a,n))},p.prototype.docType=function(e,a,n){var l,r,i,t;if(n||(n=0),this.openNode(e,a,n),a.state=v.OpenTag,this.stream.write(this.indent(e,a,n)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,a,n)),a.state=v.InsideTag,t=e.children,r=0,i=t.length;r<i;r++)l=t[r],this.writeChildNode(l,a,n+1);a.state=v.CloseTag,this.stream.write("]")}return a.state=v.CloseTag,this.stream.write(a.spaceBeforeSlash+">"),this.stream.write(this.endline(e,a,n)),a.state=v.None,this.closeNode(e,a,n)},p.prototype.element=function(e,a,n){var l,r,i,t,o,c,d,f,h,u;n||(n=0),this.openNode(e,a,n),a.state=v.OpenTag,this.stream.write(this.indent(e,a,n)+"<"+e.name),h=e.attribs;for(d in h){if(!s.call(h,d))continue;l=h[d],this.attribute(l,a,n)}if(i=e.children.length,t=i===0?null:e.children[0],i===0||e.children.every(function(E){return(E.type===I.Text||E.type===I.Raw)&&E.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=v.CloseTag,this.stream.write("</"+e.name+">")):(a.state=v.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&i===1&&(t.type===I.Text||t.type===I.Raw)&&t.value!=null)this.stream.write(">"),a.state=v.InsideTag,a.suppressPrettyCount++,f=!0,this.writeChildNode(t,a,n+1),a.suppressPrettyCount--,f=!1,a.state=v.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,a,n)),a.state=v.InsideTag,u=e.children,o=0,c=u.length;o<c;o++)r=u[o],this.writeChildNode(r,a,n+1);a.state=v.CloseTag,this.stream.write(this.indent(e,a,n)+"</"+e.name+">")}return this.stream.write(this.endline(e,a,n)),a.state=v.None,this.closeNode(e,a,n)},p.prototype.processingInstruction=function(e,a,n){return this.stream.write(p.__super__.processingInstruction.call(this,e,a,n))},p.prototype.raw=function(e,a,n){return this.stream.write(p.__super__.raw.call(this,e,a,n))},p.prototype.text=function(e,a,n){return this.stream.write(p.__super__.text.call(this,e,a,n))},p.prototype.dtdAttList=function(e,a,n){return this.stream.write(p.__super__.dtdAttList.call(this,e,a,n))},p.prototype.dtdElement=function(e,a,n){return this.stream.write(p.__super__.dtdElement.call(this,e,a,n))},p.prototype.dtdEntity=function(e,a,n){return this.stream.write(p.__super__.dtdEntity.call(this,e,a,n))},p.prototype.dtdNotation=function(e,a,n){return this.stream.write(p.__super__.dtdNotation.call(this,e,a,n))},p}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(j,W,y){"use strict";(function(){var I,v,T=function(s,_){for(var p in _)b.call(_,p)&&(s[p]=_[p]);function e(){this.constructor=s}return e.prototype=_.prototype,s.prototype=new e,s.__super__=_.prototype,s},b={}.hasOwnProperty;v=j("./XMLWriterBase"),W.exports=I=function(g){T(s,g);function s(_){s.__super__.constructor.call(this,_)}return s.prototype.document=function(_,p){var e,a,n,l,r;for(p=this.filterOptions(p),l="",r=_.children,a=0,n=r.length;a<n;a++)e=r[a],l+=this.writeChildNode(e,p,0);return p.pretty&&l.slice(-p.newline.length)===p.newline&&(l=l.slice(0,-p.newline.length)),l},s}(v)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(j,W,y){"use strict";(function(){var I,v=function(g,s){return function(){return g.apply(s,arguments)}},T={}.hasOwnProperty;W.exports=I=function(){function b(g){this.assertLegalName=v(this.assertLegalName,this),this.assertLegalChar=v(this.assertLegalChar,this);var s,_,p;g||(g={}),this.options=g,this.options.version||(this.options.version="1.0"),_=g.stringify||{};for(s in _){if(!T.call(_,s))continue;p=_[s],this[s]=p}}return b.prototype.name=function(g){return this.options.noValidation?g:this.assertLegalName(""+g||"")},b.prototype.text=function(g){return this.options.noValidation?g:this.assertLegalChar(this.textEscape(""+g||""))},b.prototype.cdata=function(g){return this.options.noValidation?g:(g=""+g||"",g=g.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(g))},b.prototype.comment=function(g){if(this.options.noValidation)return g;if(g=""+g||"",g.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+g);return this.assertLegalChar(g)},b.prototype.raw=function(g){return this.options.noValidation?g:""+g||""},b.prototype.attValue=function(g){return this.options.noValidation?g:this.assertLegalChar(this.attEscape(g=""+g||""))},b.prototype.insTarget=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.insValue=function(g){if(this.options.noValidation)return g;if(g=""+g||"",g.match(/\?>/))throw new Error("Invalid processing instruction value: "+g);return this.assertLegalChar(g)},b.prototype.xmlVersion=function(g){if(this.options.noValidation)return g;if(g=""+g||"",!g.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+g);return g},b.prototype.xmlEncoding=function(g){if(this.options.noValidation)return g;if(g=""+g||"",!g.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+g);return this.assertLegalChar(g)},b.prototype.xmlStandalone=function(g){return this.options.noValidation?g:g?"yes":"no"},b.prototype.dtdPubID=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.dtdSysID=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.dtdElementValue=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.dtdAttType=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.dtdAttDefault=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.dtdEntityValue=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.dtdNData=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},b.prototype.convertAttKey="@",b.prototype.convertPIKey="?",b.prototype.convertTextKey="#text",b.prototype.convertCDataKey="#cdata",b.prototype.convertCommentKey="#comment",b.prototype.convertRawKey="#raw",b.prototype.assertLegalChar=function(g){var s,_;if(this.options.noValidation)return g;if(s="",this.options.version==="1.0"){if(s=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=g.match(s))throw new Error("Invalid character in string: "+g+" at index "+_.index)}else if(this.options.version==="1.1"&&(s=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=g.match(s)))throw new Error("Invalid character in string: "+g+" at index "+_.index);return g},b.prototype.assertLegalName=function(g){var s;if(this.options.noValidation)return g;if(this.assertLegalChar(g),s=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!g.match(s))throw new Error("Invalid character in name");return g},b.prototype.textEscape=function(g){var s;return this.options.noValidation?g:(s=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,g.replace(s,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},b.prototype.attEscape=function(g){var s;return this.options.noValidation?g:(s=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,g.replace(s,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},b}()}).call(void 0)},{}],280:[function(j,W,y){"use strict";var I=j("babel-runtime/core-js/object/create"),v=T(I);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,g,s,_=function(a,n){for(var l in n)p.call(n,l)&&(a[l]=n[l]);function r(){this.constructor=a}return r.prototype=n.prototype,a.prototype=new r,a.__super__=n.prototype,a},p={}.hasOwnProperty;b=j("./NodeType"),g=j("./XMLCharacterData"),W.exports=s=function(e){_(a,e);function a(n,l){if(a.__super__.constructor.call(this,n),l==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(l)}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var l,r,i;for(i="",r=this.previousSibling;r;)i=r.data+i,r=r.previousSibling;for(i+=this.data,l=this.nextSibling;l;)i=i+l.data,l=l.nextSibling;return i}}),a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(n){return this.options.writer.text(this,this.options.writer.filterOptions(n))},a.prototype.splitText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceWholeText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(j,W,y){"use strict";(function(){var I,v,T,b,g,s,_,p,e,a,n,l,r,i,t,o,c,d={}.hasOwnProperty;c=j("./Utility").assign,I=j("./NodeType"),e=j("./XMLDeclaration"),a=j("./XMLDocType"),T=j("./XMLCData"),b=j("./XMLComment"),l=j("./XMLElement"),i=j("./XMLRaw"),t=j("./XMLText"),r=j("./XMLProcessingInstruction"),n=j("./XMLDummy"),g=j("./XMLDTDAttList"),s=j("./XMLDTDElement"),_=j("./XMLDTDEntity"),p=j("./XMLDTDNotation"),v=j("./WriterState"),W.exports=o=function(){function f(h){var u,E,x;h||(h={}),this.options=h,E=h.writer||{};for(u in E){if(!d.call(E,u))continue;x=E[u],this["_"+u]=this[u],this[u]=x}}return f.prototype.filterOptions=function(h){var u,E,x,O,C,w,S,D;return h||(h={}),h=c({},this.options,h),u={writer:this},u.pretty=h.pretty||!1,u.allowEmpty=h.allowEmpty||!1,u.indent=(E=h.indent)!=null?E:" ",u.newline=(x=h.newline)!=null?x:`
`,u.offset=(O=h.offset)!=null?O:0,u.dontPrettyTextNodes=(C=(w=h.dontPrettyTextNodes)!=null?w:h.dontprettytextnodes)!=null?C:0,u.spaceBeforeSlash=(S=(D=h.spaceBeforeSlash)!=null?D:h.spacebeforeslash)!=null?S:"",u.spaceBeforeSlash===!0&&(u.spaceBeforeSlash=" "),u.suppressPrettyCount=0,u.user={},u.state=v.None,u},f.prototype.indent=function(h,u,E){var x;return!u.pretty||u.suppressPrettyCount?"":u.pretty&&(x=(E||0)+u.offset+1,x>0)?new Array(x).join(u.indent):""},f.prototype.endline=function(h,u,E){return!u.pretty||u.suppressPrettyCount?"":u.newline},f.prototype.attribute=function(h,u,E){var x;return this.openAttribute(h,u,E),x=" "+h.name+'="'+h.value+'"',this.closeAttribute(h,u,E),x},f.prototype.cdata=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<![CDATA[",u.state=v.InsideTag,x+=h.value,u.state=v.CloseTag,x+="]]>"+this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.comment=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<!-- ",u.state=v.InsideTag,x+=h.value,u.state=v.CloseTag,x+=" -->"+this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.declaration=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<?xml",u.state=v.InsideTag,x+=' version="'+h.version+'"',h.encoding!=null&&(x+=' encoding="'+h.encoding+'"'),h.standalone!=null&&(x+=' standalone="'+h.standalone+'"'),u.state=v.CloseTag,x+=u.spaceBeforeSlash+"?>",x+=this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.docType=function(h,u,E){var x,O,C,w,S;if(E||(E=0),this.openNode(h,u,E),u.state=v.OpenTag,w=this.indent(h,u,E),w+="<!DOCTYPE "+h.root().name,h.pubID&&h.sysID?w+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(w+=' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(w+=" [",w+=this.endline(h,u,E),u.state=v.InsideTag,S=h.children,O=0,C=S.length;O<C;O++)x=S[O],w+=this.writeChildNode(x,u,E+1);u.state=v.CloseTag,w+="]"}return u.state=v.CloseTag,w+=u.spaceBeforeSlash+">",w+=this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),w},f.prototype.element=function(h,u,E){var x,O,C,w,S,D,R,P,N,M,z,X,k,F;E||(E=0),M=!1,z="",this.openNode(h,u,E),u.state=v.OpenTag,z+=this.indent(h,u,E)+"<"+h.name,X=h.attribs;for(N in X){if(!d.call(X,N))continue;x=X[N],z+=this.attribute(x,u,E)}if(C=h.children.length,w=C===0?null:h.children[0],C===0||h.children.every(function(U){return(U.type===I.Text||U.type===I.Raw)&&U.value===""}))u.allowEmpty?(z+=">",u.state=v.CloseTag,z+="</"+h.name+">"+this.endline(h,u,E)):(u.state=v.CloseTag,z+=u.spaceBeforeSlash+"/>"+this.endline(h,u,E));else if(u.pretty&&C===1&&(w.type===I.Text||w.type===I.Raw)&&w.value!=null)z+=">",u.state=v.InsideTag,u.suppressPrettyCount++,M=!0,z+=this.writeChildNode(w,u,E+1),u.suppressPrettyCount--,M=!1,u.state=v.CloseTag,z+="</"+h.name+">"+this.endline(h,u,E);else{if(u.dontPrettyTextNodes){for(k=h.children,S=0,R=k.length;S<R;S++)if(O=k[S],(O.type===I.Text||O.type===I.Raw)&&O.value!=null){u.suppressPrettyCount++,M=!0;break}}for(z+=">"+this.endline(h,u,E),u.state=v.InsideTag,F=h.children,D=0,P=F.length;D<P;D++)O=F[D],z+=this.writeChildNode(O,u,E+1);u.state=v.CloseTag,z+=this.indent(h,u,E)+"</"+h.name+">",M&&u.suppressPrettyCount--,z+=this.endline(h,u,E),u.state=v.None}return this.closeNode(h,u,E),z},f.prototype.writeChildNode=function(h,u,E){switch(h.type){case I.CData:return this.cdata(h,u,E);case I.Comment:return this.comment(h,u,E);case I.Element:return this.element(h,u,E);case I.Raw:return this.raw(h,u,E);case I.Text:return this.text(h,u,E);case I.ProcessingInstruction:return this.processingInstruction(h,u,E);case I.Dummy:return"";case I.Declaration:return this.declaration(h,u,E);case I.DocType:return this.docType(h,u,E);case I.AttributeDeclaration:return this.dtdAttList(h,u,E);case I.ElementDeclaration:return this.dtdElement(h,u,E);case I.EntityDeclaration:return this.dtdEntity(h,u,E);case I.NotationDeclaration:return this.dtdNotation(h,u,E);default:throw new Error("Unknown XML node type: "+h.constructor.name)}},f.prototype.processingInstruction=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<?",u.state=v.InsideTag,x+=h.target,h.value&&(x+=" "+h.value),u.state=v.CloseTag,x+=u.spaceBeforeSlash+"?>",x+=this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.raw=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E),u.state=v.InsideTag,x+=h.value,u.state=v.CloseTag,x+=this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.text=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E),u.state=v.InsideTag,x+=h.value,u.state=v.CloseTag,x+=this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.dtdAttList=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<!ATTLIST",u.state=v.InsideTag,x+=" "+h.elementName+" "+h.attributeName+" "+h.attributeType,h.defaultValueType!=="#DEFAULT"&&(x+=" "+h.defaultValueType),h.defaultValue&&(x+=' "'+h.defaultValue+'"'),u.state=v.CloseTag,x+=u.spaceBeforeSlash+">"+this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.dtdElement=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<!ELEMENT",u.state=v.InsideTag,x+=" "+h.name+" "+h.value,u.state=v.CloseTag,x+=u.spaceBeforeSlash+">"+this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.dtdEntity=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<!ENTITY",u.state=v.InsideTag,h.pe&&(x+=" %"),x+=" "+h.name,h.value?x+=' "'+h.value+'"':(h.pubID&&h.sysID?x+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(x+=' SYSTEM "'+h.sysID+'"'),h.nData&&(x+=" NDATA "+h.nData)),u.state=v.CloseTag,x+=u.spaceBeforeSlash+">"+this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.dtdNotation=function(h,u,E){var x;return this.openNode(h,u,E),u.state=v.OpenTag,x=this.indent(h,u,E)+"<!NOTATION",u.state=v.InsideTag,x+=" "+h.name,h.pubID&&h.sysID?x+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.pubID?x+=' PUBLIC "'+h.pubID+'"':h.sysID&&(x+=' SYSTEM "'+h.sysID+'"'),u.state=v.CloseTag,x+=u.spaceBeforeSlash+">"+this.endline(h,u,E),u.state=v.None,this.closeNode(h,u,E),x},f.prototype.openNode=function(h,u,E){},f.prototype.closeNode=function(h,u,E){},f.prototype.openAttribute=function(h,u,E){},f.prototype.closeAttribute=function(h,u,E){},f}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(j,W,y){"use strict";(function(){var I,v,T,b,g,s,_,p,e,a;a=j("./Utility"),p=a.assign,e=a.isFunction,T=j("./XMLDOMImplementation"),b=j("./XMLDocument"),g=j("./XMLDocumentCB"),_=j("./XMLStringWriter"),s=j("./XMLStreamWriter"),I=j("./NodeType"),v=j("./WriterState"),W.exports.create=function(n,l,r,i){var t,o;if(n==null)throw new Error("Root element needs a name.");return i=p({},l,r,i),t=new b(i),o=t.element(n),i.headless||(t.declaration(i),(i.pubID!=null||i.sysID!=null)&&t.dtd(i)),o},W.exports.begin=function(n,l,r){var i;return e(n)&&(i=[n,l],l=i[0],r=i[1],n={}),l?new g(n,l,r):new b(n)},W.exports.stringWriter=function(n){return new _(n)},W.exports.streamWriter=function(n,l){return new s(n,l)},W.exports.implementation=new T,W.exports.nodeType=I,W.exports.writerState=v}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(j,W,y){W.exports=v;var I=Object.prototype.hasOwnProperty;function v(){for(var T={},b=0;b<arguments.length;b++){var g=arguments[b];for(var s in g)I.call(g,s)&&(T[s]=g[s])}return T}},{}],284:[function(j,W,y){"use strict";var I=j("buffer").Buffer,v=j("./sha"),T=j("./md5"),b={sha1:v,md5:T},g=64,s=I.alloc(g);s.fill(0);function _(a,n,l){I.isBuffer(n)||(n=I.from(n)),I.isBuffer(l)||(l=I.from(l)),n.length>g?n=a(n):n.length<g&&(n=I.concat([n,s],g));for(var r=I.alloc(g),i=I.alloc(g),t=0;t<g;t++)r[t]=n[t]^54,i[t]=n[t]^92;var o=a(I.concat([r,l]));return a(I.concat([i,o]))}function p(a,n){a=a||"sha1";var l=b[a],r=[],i=0;return l||e("algorithm:",a,"is not yet supported"),{update:function(o){return I.isBuffer(o)||(o=I.from(o)),r.push(o),i+=o.length,this},digest:function(o){var c=I.concat(r),d=n?_(l,n,c):l(c);return r=null,o?d.toString(o):d}}}function e(){var a=[].slice.call(arguments).join(" ");throw new Error([a,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}y.createHash=function(a){return p(a)},y.createHmac=function(a,n){return p(a,n)},y.createCredentials=function(){e("sorry,createCredentials is not implemented yet")},y.createCipher=function(){e("sorry,createCipher is not implemented yet")},y.createCipheriv=function(){e("sorry,createCipheriv is not implemented yet")},y.createDecipher=function(){e("sorry,createDecipher is not implemented yet")},y.createDecipheriv=function(){e("sorry,createDecipheriv is not implemented yet")},y.createSign=function(){e("sorry,createSign is not implemented yet")},y.createVerify=function(){e("sorry,createVerify is not implemented yet")},y.createDiffieHellman=function(){e("sorry,createDiffieHellman is not implemented yet")},y.pbkdf2=function(){e("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(j,W,y){"use strict";var I=j("buffer").Buffer,v=4,T=I.alloc(v);T.fill(0);var b=8;function g(p,e){if(p.length%v!==0){var a=p.length+(v-p.length%v);p=I.concat([p,T],a)}for(var n=[],l=e?p.readInt32BE:p.readInt32LE,r=0;r<p.length;r+=v)n.push(l.call(p,r));return n}function s(p,e,a){for(var n=I.alloc(e),l=a?n.writeInt32BE:n.writeInt32LE,r=0;r<p.length;r++)l.call(n,p[r],r*4,!0);return n}function _(p,e,a,n){I.isBuffer(p)||(p=I.from(p));var l=e(g(p,n),p.length*b);return s(l,a,n)}W.exports={hash:_}},{buffer:73}],286:[function(j,W,y){"use strict";var I=j("./helpers");function v(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function T(n,l){n[l>>5]|=128<<l%32,n[(l+64>>>9<<4)+14]=l;for(var r=1732584193,i=-271733879,t=-1732584194,o=271733878,c=0;c<n.length;c+=16){var d=r,f=i,h=t,u=o;r=g(r,i,t,o,n[c+0],7,-680876936),o=g(o,r,i,t,n[c+1],12,-389564586),t=g(t,o,r,i,n[c+2],17,606105819),i=g(i,t,o,r,n[c+3],22,-1044525330),r=g(r,i,t,o,n[c+4],7,-176418897),o=g(o,r,i,t,n[c+5],12,1200080426),t=g(t,o,r,i,n[c+6],17,-1473231341),i=g(i,t,o,r,n[c+7],22,-45705983),r=g(r,i,t,o,n[c+8],7,1770035416),o=g(o,r,i,t,n[c+9],12,-1958414417),t=g(t,o,r,i,n[c+10],17,-42063),i=g(i,t,o,r,n[c+11],22,-1990404162),r=g(r,i,t,o,n[c+12],7,1804603682),o=g(o,r,i,t,n[c+13],12,-40341101),t=g(t,o,r,i,n[c+14],17,-1502002290),i=g(i,t,o,r,n[c+15],22,1236535329),r=s(r,i,t,o,n[c+1],5,-165796510),o=s(o,r,i,t,n[c+6],9,-1069501632),t=s(t,o,r,i,n[c+11],14,643717713),i=s(i,t,o,r,n[c+0],20,-373897302),r=s(r,i,t,o,n[c+5],5,-701558691),o=s(o,r,i,t,n[c+10],9,38016083),t=s(t,o,r,i,n[c+15],14,-660478335),i=s(i,t,o,r,n[c+4],20,-405537848),r=s(r,i,t,o,n[c+9],5,568446438),o=s(o,r,i,t,n[c+14],9,-1019803690),t=s(t,o,r,i,n[c+3],14,-187363961),i=s(i,t,o,r,n[c+8],20,1163531501),r=s(r,i,t,o,n[c+13],5,-1444681467),o=s(o,r,i,t,n[c+2],9,-51403784),t=s(t,o,r,i,n[c+7],14,1735328473),i=s(i,t,o,r,n[c+12],20,-1926607734),r=_(r,i,t,o,n[c+5],4,-378558),o=_(o,r,i,t,n[c+8],11,-2022574463),t=_(t,o,r,i,n[c+11],16,1839030562),i=_(i,t,o,r,n[c+14],23,-35309556),r=_(r,i,t,o,n[c+1],4,-1530992060),o=_(o,r,i,t,n[c+4],11,1272893353),t=_(t,o,r,i,n[c+7],16,-155497632),i=_(i,t,o,r,n[c+10],23,-1094730640),r=_(r,i,t,o,n[c+13],4,681279174),o=_(o,r,i,t,n[c+0],11,-358537222),t=_(t,o,r,i,n[c+3],16,-722521979),i=_(i,t,o,r,n[c+6],23,76029189),r=_(r,i,t,o,n[c+9],4,-640364487),o=_(o,r,i,t,n[c+12],11,-421815835),t=_(t,o,r,i,n[c+15],16,530742520),i=_(i,t,o,r,n[c+2],23,-995338651),r=p(r,i,t,o,n[c+0],6,-198630844),o=p(o,r,i,t,n[c+7],10,1126891415),t=p(t,o,r,i,n[c+14],15,-1416354905),i=p(i,t,o,r,n[c+5],21,-57434055),r=p(r,i,t,o,n[c+12],6,1700485571),o=p(o,r,i,t,n[c+3],10,-1894986606),t=p(t,o,r,i,n[c+10],15,-1051523),i=p(i,t,o,r,n[c+1],21,-2054922799),r=p(r,i,t,o,n[c+8],6,1873313359),o=p(o,r,i,t,n[c+15],10,-30611744),t=p(t,o,r,i,n[c+6],15,-1560198380),i=p(i,t,o,r,n[c+13],21,1309151649),r=p(r,i,t,o,n[c+4],6,-145523070),o=p(o,r,i,t,n[c+11],10,-1120210379),t=p(t,o,r,i,n[c+2],15,718787259),i=p(i,t,o,r,n[c+9],21,-343485551),r=e(r,d),i=e(i,f),t=e(t,h),o=e(o,u)}return Array(r,i,t,o)}function b(n,l,r,i,t,o){return e(a(e(e(l,n),e(i,o)),t),r)}function g(n,l,r,i,t,o,c){return b(l&r|~l&i,n,l,t,o,c)}function s(n,l,r,i,t,o,c){return b(l&i|r&~i,n,l,t,o,c)}function _(n,l,r,i,t,o,c){return b(l^r^i,n,l,t,o,c)}function p(n,l,r,i,t,o,c){return b(r^(l|~i),n,l,t,o,c)}function e(n,l){var r=(n&65535)+(l&65535),i=(n>>16)+(l>>16)+(r>>16);return i<<16|r&65535}function a(n,l){return n<<l|n>>>32-l}W.exports=function(l){return I.hash(l,T,16)}},{"./helpers":285}],287:[function(j,W,y){"use strict";var I=j("./helpers");function v(_,p){_[p>>5]|=128<<24-p%32,_[(p+64>>9<<4)+15]=p;for(var e=Array(80),a=1732584193,n=-271733879,l=-1732584194,r=271733878,i=-1009589776,t=0;t<_.length;t+=16){for(var o=a,c=n,d=l,f=r,h=i,u=0;u<80;u++){u<16?e[u]=_[t+u]:e[u]=s(e[u-3]^e[u-8]^e[u-14]^e[u-16],1);var E=g(g(s(a,5),T(u,n,l,r)),g(g(i,e[u]),b(u)));i=r,r=l,l=s(n,30),n=a,a=E}a=g(a,o),n=g(n,c),l=g(l,d),r=g(r,f),i=g(i,h)}return Array(a,n,l,r,i)}function T(_,p,e,a){return _<20?p&e|~p&a:_<40?p^e^a:_<60?p&e|p&a|e&a:p^e^a}function b(_){return _<20?1518500249:_<40?1859775393:_<60?-1894007588:-899497514}function g(_,p){var e=(_&65535)+(p&65535),a=(_>>16)+(p>>16)+(e>>16);return a<<16|e&65535}function s(_,p){return _<<p|_>>>32-p}W.exports=function(p){return I.hash(p,v,20,!0)}},{"./helpers":285}],288:[function(j,W,y){"use strict";W.exports=function(){return function(){}}},{}],289:[function(j,W,y){(function(I){"use strict";var v=j("babel-runtime/helpers/typeof"),T=b(v);function b(a){return a&&a.__esModule?a:{default:a}}var g=j("stream"),s=g.Stream,_=j("../lib/common/utils/isArray"),p=_.isArray;W.exports.string=function(n){return typeof n=="string"},W.exports.array=p,W.exports.buffer=I.isBuffer;function e(a){return a instanceof s}W.exports.writableStream=function(n){return e(n)&&typeof n._write=="function"&&(0,T.default)(n._writableState)==="object"}}).call(this,{isBuffer:j("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(j,W,y){"use strict";y.encodeURIComponent=function(I){try{return encodeURIComponent(I)}catch(v){return I}},y.escape=j("escape-html"),y.timestamp=function(v){if(v){var T=v;return typeof T=="string"&&(T=Number(T)),String(v).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(j,W,y){(function(I,v){"use strict";var T=j("babel-runtime/core-js/json/stringify"),b=_(T),g=j("babel-runtime/helpers/typeof"),s=_(g);function _(u){return u&&u.__esModule?u:{default:u}}var p=j("util"),e=j("url"),a=j("http"),n=j("https"),l=j("debug")("urllib"),r=j("humanize-ms"),i,t=0,o=Math.pow(2,31)-10,c=/^https?:\/\//i;function d(u,E){return u===void 0?E:u}function f(u,E){return function(x,O,C){if(x)return E(x);u({data:O,status:C.statusCode,headers:C.headers,res:C})}}y.TIMEOUTS=[r("300s"),r("300s")];var h=["json","text"];y.request=function(E,x,O){return arguments.length===2&&typeof x=="function"&&(O=x,x=null),typeof O=="function"?y.requestWithCallback(E,x,O):(i||(i=j("any-promise")),new i(function(C,w){y.requestWithCallback(E,x,f(C,w))}))},y.requestWithCallback=function(E,x,O){if(!E||typeof E!="string"&&(typeof E=="undefined"?"undefined":(0,s.default)(E))!=="object"){var C=p.format("expect request url to be a string or a http request options, but got %j",E);throw new Error(C)}arguments.length===2&&typeof x=="function"&&(O=x,x=null),x=x||{},t>=o&&(t=0);var w=++t;x.requestUrls=x.requestUrls||[];var S={requestId:w,url:E,args:x,ctx:x.ctx};x.emitter&&x.emitter.emit("request",S),x.timeout=x.timeout||y.TIMEOUTS,x.maxRedirects=x.maxRedirects||10,x.streaming=x.streaming||x.customResponse;var D=Date.now(),R;typeof E=="string"?(c.test(E)||(E="http://"+E),R=e.parse(E)):R=E;var P=(x.type||x.method||R.method||"GET").toUpperCase(),N=R.port||80,M=a,z=d(x.agent,y.agent),X=x.fixJSONCtlChars;R.protocol==="https:"&&(M=n,z=d(x.httpsAgent,y.httpsAgent),R.port||(N=443));var k={host:R.hostname||R.host||"localhost",path:R.path||"/",method:P,port:N,agent:z,headers:x.headers||{},lookup:x.lookup};Array.isArray(x.timeout)?k.requestTimeout=x.timeout[x.timeout.length-1]:typeof x.timeout!="undefined"&&(k.requestTimeout=x.timeout);for(var F=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],U=0;U<F.length;U++){var L=F[U];x.hasOwnProperty(L)&&(k[L]=x[L])}k.rejectUnauthorized===!1&&!k.hasOwnProperty("secureOptions")&&(k.secureOptions=j("constants").SSL_OP_NO_TLSv1_2);var B=x.auth||R.auth;B&&(k.auth=B);var Z=x.content||x.data,re=P==="GET"||P==="HEAD"||x.dataAsQueryString;if(!x.content&&(Z&&!(typeof Z=="string"||v.isBuffer(Z))))if(re)Z=x.nestedQuerystring?qs.stringify(Z):querystring.stringify(Z);else{var me=k.headers["Content-Type"]||k.headers["content-type"];me||(x.contentType==="json"?me="application/json":me="application/x-www-form-urlencoded",k.headers["Content-Type"]=me),parseContentType(me).type==="application/json"?Z=(0,b.default)(Z):Z=x.nestedQuerystring?qs.stringify(Z):querystring.stringify(Z)}re&&Z&&(k.path+=(R.query?"&":"?")+Z,Z=null);var Ee=0;if(Z){var De=Z.length;v.isBuffer(Z)||(De=v.byteLength(Z)),Ee=k.headers["Content-Length"]=De}x.dataType==="json"&&(k.headers.Accept="application/json"),typeof x.beforeRequest=="function"&&x.beforeRequest(k);var te=null,Ce=null,we=null,ce=!1,le=!1,oe=0,xe=-1,q=!1,se="",Ne="",de=null;x.timing&&(de={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function $(){te&&(clearTimeout(te),te=null)}function Q(){Ce&&(clearTimeout(Ce),Ce=null)}function Y(Me,gt,Te){if(Q(),!O){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),w,I.pid,k.method,E),Me&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),w,I.pid,Me.name,Me.message,Me.stack);return}var Ye=O;O=null;var Ze={};if(Te&&(xe=Te.statusCode,Ze=Te.headers),xe===401&&Ze["www-authenticate"]&&(!x.headers||!x.headers.Authorization)&&x.digestAuth){var Ve=Ze["www-authenticate"];if(Ve.indexOf("Digest ")>=0)return l("Request#%d %s: got digest auth header WWW-Authenticate: %s",w,E,Ve),x.headers=x.headers||{},x.headers.Authorization=digestAuthHeader(k.method,k.path,Ve,x.digestAuth),l("Request#%d %s: auth with digest header: %s",w,E,x.headers.Authorization),Te.headers["set-cookie"]&&(x.headers.Cookie=Te.headers["set-cookie"].join(";")),y.requestWithCallback(E,x,Ye)}var Fe=Date.now()-D;de&&(de.contentDownload=Fe),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Fe,oe,xe,k.method,k.host,k.path,le,de);var Be={status:xe,statusCode:xe,headers:Ze,size:oe,aborted:q,rt:Fe,keepAliveSocket:le,data:gt,requestUrls:x.requestUrls,timing:de,remoteAddress:se,remotePort:Ne};if(Me){var _e="";z&&typeof z.getCurrentStatus=="function"&&(_e=", agent status: "+(0,b.default)(z.getCurrentStatus())),Me.message+=", "+k.method+" "+E+" "+xe+" (connected: "+ce+", keepalive socket: "+le+_e+`)
headers: `+(0,b.default)(Ze),Me.data=gt,Me.path=k.path,Me.status=xe,Me.headers=Ze,Me.res=Be}Ye(Me,gt,x.streaming?Te:Be),x.emitter&&(S.url=E,S.socket=$e&&$e.connection,S.options=k,S.size=Ee,x.emitter.emit("response",{requestId:w,error:Me,ctx:x.ctx,req:S,res:Be}))}function ue(Me){var gt=null;if(x.followRedirect&&statuses.redirect[Me.statusCode]){x._followRedirectCount=(x._followRedirectCount||0)+1;var Te=Me.headers.location;if(!Te)gt=new Error("Got statusCode "+Me.statusCode+" but cannot resolve next location from headers"),gt.name="FollowRedirectError";else if(x._followRedirectCount>x.maxRedirects)gt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),gt.name="MaxRedirectError";else{var Ye=x.formatRedirectUrl?x.formatRedirectUrl(E,Te):e.resolve(E,Te);l("Request#%d %s: `redirected` from %s to %s",w,k.path,E,Ye),Q(),x.headers&&x.headers.Host&&c.test(Te)&&(x.headers.Host=null);var Ze=O;return O=null,y.requestWithCallback(Ye,x,Ze),{redirect:!0,error:null}}}return{redirect:!1,error:gt}}!k.headers["User-Agent"]&&!k.headers["user-agent"]&&(k.headers["User-Agent"]=navigator.userAgent),x.gzip&&(!k.headers["Accept-Encoding"]&&!k.headers["accept-encoding"]&&(k.headers["Accept-Encoding"]="gzip"));function ae(Me,gt,Te){var Ye=Me.headers["content-encoding"];return Te(null,gt,Ye)}var be=x.writeStream;l("Request#%d %s %s with headers %j, options.path: %s",w,P,E,k.headers,k.path),x.requestUrls.push(E);function Ie(Me){if(de&&(de.waiting=Date.now()-D),l("Request#%d %s `req response` event emit: status %d, headers: %j",w,E,Me.statusCode,Me.headers),x.streaming){var gt=ue(Me);if(gt.redirect){Me.resume();return}return gt.error?(Me.resume(),Y(gt.error,null,Me)):Y(null,null,Me)}if(Me.on("close",function(){l("Request#%d %s: `res close` event emit, total size %d",w,E,oe)}),Me.on("error",function(){l("Request#%d %s: `res error` event emit, total size %d",w,E,oe)}),Me.on("aborted",function(){q=!0,l("Request#%d %s: `res aborted` event emit, total size %d",w,E,oe)}),be){var gt=ue(Me);if(gt.redirect){Me.resume();return}return gt.error?(Me.resume(),be.end(),Y(gt.error,null,Me)):(x.consumeWriteStream===!1?Me.on("end",Y.bind(null,null,null,Me)):isNode010||isNode012?first([[be,"close"],[Me,"aborted"]],function(Ze,Ve,Fe){l("Request#%d %s: writeStream or res %s event emitted",w,E,Fe),Y(we||null,null,Me)}):be.on("close",function(){l("Request#%d %s: writeStream close event emitted",w,E),Y(we||null,null,Me)}),Me.pipe(be))}var Te=[];Me.on("data",function(Ye){l("Request#%d %s: `res data` event emit, size %d",w,E,Ye.length),oe+=Ye.length,Te.push(Ye)}),Me.on("end",function(){var Ye=v.concat(Te,oe);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",w,E,oe,Me._dumped),we)return Y(we,Ye,Me);var Ze=ue(Me);if(Ze.error)return Y(Ze.error,Ye,Me);if(Ze.redirect)return;ae(Me,Ye,function(Ve,Fe,Be){if(Ve)return Y(Ve,Ye,Me);if(!Be&&h.indexOf(x.dataType)>=0){try{Fe=decodeBodyByCharset(Fe,Me)}catch(Ae){return l("decodeBodyByCharset error: %s",Ae),Y(null,Fe,Me)}if(x.dataType==="json")if(oe===0)Fe=null;else{var _e=parseJSON(Fe,X);_e.error?Ve=_e.error:Fe=_e.data}}q&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",w,E),Y(Ve,Fe,Me)})})}var pe,Le;Array.isArray(x.timeout)?(pe=r(x.timeout[0]),Le=r(x.timeout[1])):pe=Le=r(x.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",pe,Le);function ve(){l("Connect timer ticking, timeout: %d",pe),te=setTimeout(function(){te=null,xe===-1&&(xe=-2);var Me="Connect timeout for "+pe+"ms",gt="ConnectionTimeoutError";$e.socket||(gt="SocketAssignTimeoutError",Me+=", working sockets is full"),we=new Error(Me),we.name=gt,we.requestId=w,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",w,E,we.name,Me,ce),Ge()},pe)}function Xe(){l("Response timer ticking, timeout: %d",Le),Ce=setTimeout(function(){Ce=null;var Me="Response timeout for "+Le+"ms",gt="ResponseTimeoutError";we=new Error(Me),we.name=gt,we.requestId=w,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",w,E,we.name,Me,ce),Ge()},Le)}var $e;k.mode=x.mode?x.mode:"";try{$e=M.request(k,Ie)}catch(Me){return Y(Me)}typeof window=="undefined"?ve():$e.on("requestTimeout",function(){xe===-1&&(xe=-2);var Me="Connect timeout for "+pe+"ms",gt="ConnectionTimeoutError";we=new Error(Me),we.name=gt,we.requestId=w,Ge()});function Ge(){l("Request#%d %s abort, connected: %s",w,E,ce),$e.socket||(we.noSocket=!0,Y(we)),$e.abort()}return de&&$e.on("finish",function(){de.requestSent=Date.now()-D}),$e.once("socket",function(Me){de&&(de.queuing=Date.now()-D),isNode010&&Me.socket&&(Me=Me.socket);var gt=Me.readyState;if(gt==="opening"){Me.once("lookup",function(Te,Ye,Ze){l("Request#%d %s lookup: %s, %s, %s",w,E,Te,Ye,Ze),de&&(de.dnslookup=Date.now()-D),Ye&&(se=Ye)}),Me.once("connect",function(){de&&(de.connected=Date.now()-D),$(),Xe(),l("Request#%d %s new socket connected",w,E),ce=!0,se||(se=Me.remoteAddress),Ne=Me.remotePort});return}l("Request#%d %s reuse socket connected, readyState: %s",w,E,gt),ce=!0,le=!0,se||(se=Me.remoteAddress),Ne=Me.remotePort,$(),Xe()}),$e.on("error",function(Me){(Me.name==="Error"||Me.name==="TypeError")&&(Me.name=ce?"ResponseError":"RequestError"),Me.message+=' (req "error")',l("Request#%d %s `req error` event emit, %s: %s",w,E,Me.name,Me.message),Y(we||Me)}),be&&be.once("error",function(Me){Me.message+=' (writeStream "error")',we=Me,l("Request#%d %s `writeStream error` event emit, %s: %s",w,E,Me.name,Me.message),Ge()}),x.stream?(x.stream.pipe($e),x.stream.once("error",function(Me){Me.message+=' (stream "error")',we=Me,l("Request#%d %s `readStream error` event emit, %s: %s",w,E,Me.name,Me.message),Ge()})):$e.end(Z),$e.requestId=w,$e}}).call(this,j("_process"),j("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n0Id:function(j,W,y){j.exports=y.p+"static/disappoint2.7a4bdf92.svg"},n6Qo:function(j,W,y){"use strict";y.d(W,"a",function(){return p});var I=y("q1tI"),v=y("biw7"),T=y("fyJ8");function b(e){var a=e.className,n=e.index,l=e.children,r=e.colSpan,i=e.rowSpan,t=I.useContext(v.a),o=t.prefixCls,c=t.fixedInfoList,d=c[n];return I.createElement(T.a,Object.assign({className:a,index:n,component:"td",prefixCls:o,record:null,dataIndex:null,render:function(){return{children:l,props:{colSpan:r,rowSpan:i}}}},d))}function g(e){return I.createElement("tr",Object.assign({},e))}function s(e){var a=e.children,n=I.useContext(v.a),l=n.prefixCls;return I.createElement("tfoot",{className:"".concat(l,"-summary")},a)}var _=W.b=s,p={Cell:b,Row:g}},nEHx:function(j,W,y){"use strict";y.d(W,"a",function(){return I});var I;(function(v){v.DARK="dark",v.LIGHT="light",v.HIGH_CONTRAST="hc"})(I||(I={}))},nKGa:function(j,W,y){j.exports=y.p+"static/export_exercise-template.f7655c19.png"},nWbc:function(j,W,y){},nnTU:function(j,W,y){"use strict";y.d(W,"b",function(){return _}),y.d(W,"a",function(){return p});var I=y("MI8n"),v=y("JYp7"),T=y("pmY6"),b=y("24hK"),g=y("746U"),s=y("Cg/j");const _=Object(s.c)("commandService"),p=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new I.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,a){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!a)throw new Error("invalid command");return this.registerCommand({id:e,handler:a})}if(e.description){const t=[];for(let c of e.description.args)t.push(c.constraint);const o=e.handler;e.handler=function(c,...d){return Object(g.o)(d,t),o(c,...d)}}const{id:n}=e;let l=this._commands.get(n);l||(l=new b.a,this._commands.set(n,l));let r=l.unshift(e),i=Object(T.i)(()=>{r();const t=this._commands.get(n);(t==null?void 0:t.isEmpty())&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),i}registerCommandAlias(e,a){return p.registerCommand(e,(n,...l)=>n.get(_).executeCommand(a,...l))}getCommand(e){const a=this._commands.get(e);return!a||a.isEmpty()?void 0:v.a.first(a)}getCommands(){const e=new Map;for(const a of this._commands.keys()){const n=this.getCommand(a);n&&e.set(a,n)}return e}};p.registerCommand("noop",()=>{})},nukY:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtXSkX5mJrUHRh0SCml/CIzn8D+mJpInYKHNDY20p49e2hoaIguX75MIyMjrrRatWoVLVu2jJ48eUJnzpxxVcZPpunTp9POnTvNot3d3TQ8POynmsSUCQ1MIcSrzPx6YjSrIMiSJUvM3jCK9PTpU3r48KHrqhcvXkxr166lQqFAp06dMn+7SRp0N1Z6Nk+orS6E+Bkzf8WfKNGX2rdvH6EnjSINDAxQb2+v66p37NhBM2bMoNu3b9PVq1ddl9OguzbVpIyhgs7MTUKIvxDR8/7EibbU1q1byfI7w3pSc3MzTZkyhbyADsABOnzsrq4uwmhgJYw406ZVn+4sXbqUFi1aZLo8fX19VdUYHR2dNEqsWbOG5sxxf0ISckydOtWsH/J5mQ88ePCArl+/HpaJQ6knVNAhkRBiLjP/m4jedfBSntatW2eC5wV0QAc3CkBcuHBhkoWslyCo2S5dukT37t2bqGbTpk00b968oNW6Ko/n4vlJSqGDDuXy+fza4tbeZUlSNgpZvIKOSMvu3btNF+rs2bP0+PHjmoA+e/Zsc+RxmzBSwU1CunbtGmGEcJswAgwODrrNXpN8kYBehP29SincFTOjJprE9BCvoK9evZrgfgBwgG4lRDkA4/37923dhJUrV5qjAUA6d+5cVa0REvTibpRXpKMuHoDK5XKfMQzj17gNzEOxSLMi2oFGBCj9/f2Bn+UFdPSSu3btMiM/PT09pp9tpS1btpg+NEC/ePFiVbn0ZNRfk0XWo1viSCm/oZT6gT/xwi+1ceNGmj9/vum/huFHegHdylv+bPTkmCijF8bk1M5NCAo63Be87E4JLhZGDqQ7d+64WtiCXl5cHCcZwvz/kYMOYXO53DEiag1TcL91xQU6IilYgLFgHhsbM1VA775t2zaaOXMm3bp1y/SH7VJQ0MOa7FaSsdKcw287hV2uJqAzc6OU8nfM/KmwFfBaXxygoxcFzAjXwWXCD/4G/HBnADu2AnR2dpohQfw33KtKCf79woULzZXKauFF9KrVthaUgo4Frmp+PCbLVjjy0aNHtgtaGCGRMg86jNDV1TVreHj4bSLa5xXOMPPHBfrevXtt1cA2gLt375p58BIgMuM3YVTA6FAplYLe0dFB1shSntftZBTrEvv379eglxown8+vKBQKuMj03bhVDMkCHT1ntUb2IhZ6a/R+TnF0PBe9J0Jv2NeC3wsWLJiIoGByaiUNupcWcJe3Jq5LGex7C4XCP4lotjsRw81lgR5ureQIeqUec/v27aabgs1Z5XHnICu4drsNdY8edsvb1CelfEkp9fsaPnLiURboiGNbrkIYcmB0KF/8sasXkGMC6nWvS1BZNehBLeihvJTy+0qpb3ooElrWsH10P4JhQomFI7gwp0+frul+71LQ8aJX6/0RXsSkFwnrDXb75qEPkp6MltAgpXxZKYXD1bGkuEFHL46YOVwWgIF95aUJ/jn8d4AGWb0mLDjZjVQ6vOjVoj7ySymfU0rhQwOxnUaKE3RMXOGyIKRoRUbwN8J41g8gx8QU/46DGV6TUyweMlg9cKW6EfLE5i+EKCEDkvU3wpF2B0TwgpXuxPQqe5T5azYZ7ejoWDI6Oiri/nRMXKADGjwbPTr8eUADuK2tsFYj49/Pnz8/CfQbN244Roiw2one2gl0O5gwiuBFxG/E6LHjEQn77NevX2/G0vESej3+FyXAbuuuCehCCGybe4uZP+xWsKjyRQ06lvkBK8KNpYsxGzZsMMOJ5Qk+MtwX5Ec5q0cs7dGxkOTUU1rbcP2CDlcK+22wHQFbIxAFKj1Kh7g6dMCEG5vJgmwYi6pt7eqtFeg/YubDcShY/swoQUc8HaeYkDDJLN20hYkdXgIAi3/HyiZ+A5xKE8Jago5QJiCGy2KNKJUWjHD0DyMHZMao4/b4XxLaPXLQpZRfVUr9NAnKQoYoQS9d6ClfdbRO77s9UV8r0OGmbN682XSpADDcFMhYbWUULgxeWvjqyOs00iSl3SMFHVdhFAoFfEggMTfwRgn63LlzTWgwrEspfbWxdXgbk0ZrMhqV6zJr1izT98YLCvcJLon1ItptAbBsCF/9ypUr5tbipKfIQC8u96O1E3XKKErQcQ0FdhfCLcEVEW4TelW8JHAdMEHFSincgqhAh4sFOXEEEC9WJVfEDnSUwXFAa7sv3B3s1QljS4Vbm3nNFwnovb29UwcGBt5m5vd7FSjq/NbQiyEXPWWYCfFxTOawwGJ3cBm9NVwFREkANv4uvYYDL0kUoOMZmBDjlJIVOqw2eXWzqQsvCoCHj4/e/ebNm+be9SROVCMBXQjxc2b+cpgQhVXX8uXLzYZGQiMDyqCHBQCFtUEL9QLy0tNL6EFxiAFA46fS2U1MTHFYGr0jRoRSHx2ugdPEzwpVVgIXgANKjDhWOBNgIrpS7S4aN6BDV7ysGCWtemFLAI9DGEkCPnTQhRBfZ+YfhgVm2PWgQRA2C7Jpyk4mDN84JVQKJsAu36aLfPCL4TYAtvKXLcwFoxUrVhB+kAAfXhwsWNm5Gm5BR52wJerHQpQ1MiH2j5+kpFBBx+dfiAjXSSf6q9PwhzHkli/WBGkUAARocRlRpevbcPDCOnQBwJ1GkVLQnfaaQG7499CnUo8OEPFyA2zI5+aEvhfQLbuhDEKQSNjekMoeHVdcKKVEPd2sC5cCvW3Qa+qsfeZhNmzY4UXo6WWy6Ad0C3jY1cnVCtKp+CkbSo8uhJhRvLToPX6E0GUqW8Dy5d0ACrjQcwMwt7F6O7sHuakrie0ZCui5XO4EEX0piQpqmbQFYIHAoOdyuW8R0fe0ObUFkmyBQKBLKT/JzH9O0gVFSTa2li0+C/gGXUq5iZn/p78mHV/j6Se7t4Av0ItXV5zMyo257s2pcybVAp5Bx+dbpJS4T/GzSVVKy6UtUG4Bz6BLKV9TSuHr0TppC9SNBTyBXrwd9zf6o1x1075a0KIFXIMupdyulMItW7FcPKRbTFsgiAVcgd7e3j6vUCggwrI5yMN0WW2BuCzgCDpi5EKIPxLRi3EJqZ+rLRDUAo6gCyFeZ+ZXgz5Il9cWiNMCtqBLKb+glPplnALqZ2sLhGGBqqDn8/m9Sql30v6xrTCMqOtIvgUqgt7T07NwcHAQe8vXJV8FLaG2gLMFngEdX3+WUr7JzB9zLq5zaAvUhwWeAV0I8QYzv1If4msptQXcWWAS6Llc7gARtbkrqnNpC9SPBSZAb29vf9/4+Dg+phXblc71YzYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},oRuE:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.pad.Iso10126={pad:function(v,T){var b=T*4,g=b-v.sigBytes%b;v.concat(I.lib.WordArray.random(g-1)).concat(I.lib.WordArray.create([g<<24],1))},unpad:function(v){var T=v.words[v.sigBytes-1>>>2]&255;v.sigBytes-=T}},I.pad.Iso10126})},onxn:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(j,W,y){(function(I){I(y("VrN/"))})(function(I){"use strict";var v=I.Pos;function T(c,d){return c.line-d.line||c.ch-d.ch}var b="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",g=b+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",s=new RegExp("<(/?)(["+b+"]["+g+"]*)","g");function _(c,d,f,h){this.line=d,this.ch=f,this.cm=c,this.text=c.getLine(d),this.min=h?Math.max(h.from,c.firstLine()):c.firstLine(),this.max=h?Math.min(h.to-1,c.lastLine()):c.lastLine()}function p(c,d){var f=c.cm.getTokenTypeAt(v(c.line,d));return f&&/\btag\b/.test(f)}function e(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function a(c){return c.line<=c.min?void 0:(c.text=c.cm.getLine(--c.line),c.ch=c.text.length,!0)}function n(c){for(;;){var d=c.text.indexOf(">",c.ch);if(d==-1){if(e(c))continue;return}if(!p(c,d+1)){c.ch=d+1;continue}var f=c.text.lastIndexOf("/",d),h=f>-1&&!/\S/.test(c.text.slice(f+1,d));return c.ch=d+1,h?"selfClose":"regular"}}function l(c){for(;;){var d=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(d==-1){if(a(c))continue;return}if(!p(c,d+1)){c.ch=d;continue}s.lastIndex=d,c.ch=d;var f=s.exec(c.text);if(f&&f.index==d)return f}}function r(c){for(;;){s.lastIndex=c.ch;var d=s.exec(c.text);if(!d){if(e(c))continue;return}if(!p(c,d.index+1)){c.ch=d.index+1;continue}return c.ch=d.index+d[0].length,d}}function i(c){for(;;){var d=c.ch?c.text.lastIndexOf(">",c.ch-1):-1;if(d==-1){if(a(c))continue;return}if(!p(c,d+1)){c.ch=d;continue}var f=c.text.lastIndexOf("/",d),h=f>-1&&!/\S/.test(c.text.slice(f+1,d));return c.ch=d+1,h?"selfClose":"regular"}}function t(c,d){for(var f=[];;){var h=r(c),u,E=c.line,x=c.ch-(h?h[0].length:0);if(!h||!(u=n(c)))return;if(u=="selfClose")continue;if(h[1]){for(var O=f.length-1;O>=0;--O)if(f[O]==h[2]){f.length=O;break}if(O<0&&(!d||d==h[2]))return{tag:h[2],from:v(E,x),to:v(c.line,c.ch)}}else f.push(h[2])}}function o(c,d){for(var f=[];;){var h=i(c);if(!h)return;if(h=="selfClose"){l(c);continue}var u=c.line,E=c.ch,x=l(c);if(!x)return;if(x[1])f.push(x[2]);else{for(var O=f.length-1;O>=0;--O)if(f[O]==x[2]){f.length=O;break}if(O<0&&(!d||d==x[2]))return{tag:x[2],from:v(c.line,c.ch),to:v(u,E)}}}}I.registerHelper("fold","xml",function(c,d){for(var f=new _(c,d.line,0);;){var h=r(f);if(!h||f.line!=d.line)return;var u=n(f);if(!u)return;if(!h[1]&&u!="selfClose"){var E=v(f.line,f.ch),x=t(f,h[2]);return x&&T(x.from,E)>0?{from:E,to:x.from}:null}}}),I.findMatchingTag=function(c,d,f){var h=new _(c,d.line,d.ch,f);if(h.text.indexOf(">")==-1&&h.text.indexOf("<")==-1)return;var u=n(h),E=u&&v(h.line,h.ch),x=u&&l(h);if(!u||!x||T(h,d)>0)return;var O={from:v(h.line,h.ch),to:E,tag:x[2]};return u=="selfClose"?{open:O,close:null,at:"open"}:x[1]?{open:o(h,x[2]),close:O,at:"close"}:(h=new _(c,E.line,E.ch,f),{open:O,close:t(h,x[2]),at:"open"})},I.findEnclosingTag=function(c,d,f,h){for(var u=new _(c,d.line,d.ch,f);;){var E=o(u,h);if(!E)break;var x=new _(c,d.line,d.ch,f),O=t(x,E.tag);if(O)return{open:E,close:O}}},I.scanForClosingTag=function(c,d,f,h){var u=new _(c,d.line,d.ch,h?{from:0,to:h}:null);return t(u,f)}})},p4vh:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAA8CAMAAADygAyiAAAAaVBMVEUAAAD/vwD/vwD/ugD/ugD/uwD/vAD8vAP8ugP9uwL9uwL9uwL9ugL9ugL9ugL8uwP8uwP8ugP9ugL9ugL9ugL9uwL9uwL9uwL9uwP9zkn+1WT+34r+45n/7bz/8s//9+D/+/D//fj///8yardZAAAAGHRSTlMAECAwP0BQX2BwgI+Qn6Cwv8DP0N/g7/D8rFP8AAABpUlEQVRYw+3XwXKDIBAG4AVKoiRBDSq0adrG93/ImphSWwV2jYce+t+SGb5RWBcAmEQeji6acicgHVE6RA4s5cjWoVInHkognV6KP1Pt0NExJ3OE8AhUUKB9BKI4rpoM3+7KWzaMBLWwGcbttsNC+QlWcn7Eqesz8z+ocTHw7wUPQKdLEnItB+3i0PO569JQXwxtFHo5f3QoqB4v1BR663wSkItD738O6vN6WQlyZyRk1oGq8Xf6CFSMO8cjUAbMrgHZvl+qNSDVf/3MT7cSSyFza+DcepYEGQ/Ze9cVzSKo+oIavzUxfYeaJZAeb0xC2ytUUKD9FbJ6slMKySGnQBK4DO23ggJFd1qLh4oopPBQFoU4GmoSxxqNhbIExJHbbJM8aSkcJNNnv+rRk4h/OZt2DAPMcdSu46Qli3RSkhGADovMuGZASagK7AaI4XqOUQzo4ftfDdPkS5jByr1lssXKzzpXAP/QpLyfrvGXycPtJyczMnDhOgri44RvILQqiNy3aJPVUm5XsOziRoOaMFSQIB2GchLEgj3SEOuI6dm3M8E1+wTzvvO4HPYw7wAAAABJRU5ErkJggg=="},p5ED:function(j,W,y){"use strict";var I=y("+L6B"),v=y("2/Rp"),T=y("5Dmo"),b=y("3S7+"),g=y("k1fw"),s=y("9og8"),_=y("tJVT"),p=y("WmNS"),e=y.n(p),a=y("q1tI"),n=y.n(a),l=y("vHTk"),r=y.n(l),i=y("yEEn"),t=y("ZW9T"),o=y("1vsH"),c=y("V0Rq"),d=y("m3rI");W.a=function(f){var h,u,E,x,O,C,w,S=f.editOffice,D=S===void 0?"view":S,R=f.data,P=f.theme,N=f.type,M=f.filename,z=f.monacoEditor,X=f.className,k=f.style,F=f.close,U=f.onClose,L=f.hasMask,B=f.disabledDownload,Z=Object(a.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),re=Object(_.a)(Z,2),me=re[0],Ee=re[1],De=Object(a.useState)(""),te=Object(_.a)(De,2),Ce=te[0],we=te[1],ce=Object(a.useState)(),le=Object(_.a)(ce,2),oe=le[0],xe=le[1],q=window.ENV==="build"?"/react/build":"",se=d.a.PROXY_SERVER||location.origin,Ne,de=1024*1024,$=10*de,Q=Object(a.useRef)();(h=R)!==null&&h!==void 0&&h.startsWith("/api")&&N!=="txt"&&(R=d.a.API_SERVER+R),N==="office"&&(Ne=Object(o.U)(R).filesize,Ne>$&&(N="other")),M&&z&&(z.filename=M),Object(a.useEffect)(function(){var be,Ie,pe=(be=document.cookie)===null||be===void 0||((Ie=be.replace(/\s/g,""))===null||Ie===void 0)?void 0:Ie.split(";");pe==null||pe.map(function(Le){var ve=Le.split("=");ve[0]==="_educoder_session"&&we(ve[1])})},[]),Object(a.useEffect)(function(){N==="office"&&Y()},[N,R]);var Y=function(){var be=Object(s.a)(e.a.mark(function Ie(){var pe,Le,ve;return e.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return console.log("data:",R),pe=R,R.startsWith("http")||(pe=location.origin+pe),Le=new URL(pe).pathname.split("/").pop(),$e.next=6,Object(c.V)({attachment_id:Le});case 6:ve=$e.sent,xe(ve);case 8:case"end":return $e.stop()}},Ie)}));return function(){return be.apply(this,arguments)}}(),ue=function(){if(R.startsWith("http")||R.startsWith("blob:")){ae();return}Object(o.z)(M||"educoder",R,M)},ae=function(){Object(o.x)(M||"educoder",decodeURIComponent(R))};return n.a.createElement("div",{style:Object(g.a)({},k||{}),className:"".concat(L&&r.a.bgBlack," ").concat(N?r.a.wrp:"hide")},F&&n.a.createElement("div",{className:r.a.close,ref:Q},!B&&n.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Q.current}},n.a.createElement("span",{onClick:ae},n.a.createElement("i",{className:"icon-quxiaozhiding"}))),n.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Q.current}},n.a.createElement("span",{className:"",onClick:U},n.a.createElement("i",{className:"icon-guanbi1"})))),n.a.createElement("div",{className:"".concat(r.a[X]," ").concat(X," ").concat(r.a.monaco," ").concat(N==="txt"?"show":"hide")},N==="txt"&&n.a.createElement(t.b,z)),N==="audio"&&n.a.createElement("audio",{src:"".concat(((u=R)===null||u===void 0?void 0:u.indexOf("http://"))>-1||((E=R)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(R),autoPlay:!0}),N==="video"&&n.a.createElement(n.a.Fragment,null,((x=R)===null||x===void 0?void 0:x.indexOf("http"))>-1?n.a.createElement("video",{controls:!0,src:"".concat(R),autoPlay:!0}):n.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(R),autoPlay:!0})),N==="office"&&oe&&n.a.createElement("iframe",{src:"".concat(q,"/office.html?key=").concat(oe.key,"&url=").concat(se+oe.url,"&callbackUrl=").concat(se+oe.callbackUrl,"&fileType=").concat(oe.fileType,"&title=").concat(oe.title,"&model=").concat(D,"&officeServer=").concat(d.a.OFFICE_SERVER,"&disabledDownload=").concat(!!B)}),N==="html"&&n.a.createElement("iframe",{src:R+"&disposition=inline"}),N==="pdf"&&n.a.createElement("iframe",{src:"".concat(q,"/js/pdfview/index.html?url=").concat(R,"&disabledDownload=").concat(!!B)}),N==="image"&&n.a.createElement("img",{src:"".concat(((O=R)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((C=R)===null||C===void 0?void 0:C.indexOf("https://"))>-1||(w=R)!==null&&w!==void 0&&w.startsWith("/api")?"":"data:image/png;base64,").concat(R)}),N==="other"&&n.a.createElement("div",null,n.a.createElement(v.a,{type:"primary",size:"large",onClick:ue},n.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),N==="download"&&n.a.createElement(v.a,{type:"primary",size:"large",onClick:ue},n.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(j,W,y){},pA7S:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.WordArray,g=T.BlockCipher,s=v.algo,_=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],p=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],a=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],n=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=s.DES=g.extend({_doReset:function(){for(var o=this._key,c=o.words,d=[],f=0;f<56;f++){var h=_[f]-1;d[f]=c[h>>>5]>>>31-h%32&1}for(var u=this._subKeys=[],E=0;E<16;E++){for(var x=u[E]=[],O=e[E],f=0;f<24;f++)x[f/6|0]|=d[(p[f]-1+O)%28]<<31-f%6,x[4+(f/6|0)]|=d[28+(p[f+24]-1+O)%28]<<31-f%6;x[0]=x[0]<<1|x[0]>>>31;for(var f=1;f<7;f++)x[f]=x[f]>>>(f-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var C=this._invSubKeys=[],f=0;f<16;f++)C[f]=u[15-f]},encryptBlock:function(o,c){this._doCryptBlock(o,c,this._subKeys)},decryptBlock:function(o,c){this._doCryptBlock(o,c,this._invSubKeys)},_doCryptBlock:function(o,c,d){this._lBlock=o[c],this._rBlock=o[c+1],r.call(this,4,252645135),r.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),r.call(this,1,1431655765);for(var f=0;f<16;f++){for(var h=d[f],u=this._lBlock,E=this._rBlock,x=0,O=0;O<8;O++)x|=a[O][((E^h[O])&n[O])>>>0];this._lBlock=E,this._rBlock=u^x}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,r.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),o[c]=this._lBlock,o[c+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function r(o,c){var d=(this._lBlock>>>o^this._rBlock)&c;this._rBlock^=d,this._lBlock^=d<<o}function i(o,c){var d=(this._rBlock>>>o^this._lBlock)&c;this._lBlock^=d,this._rBlock^=d<<o}v.DES=g._createHelper(l);var t=s.TripleDES=g.extend({_doReset:function(){var o=this._key,c=o.words;if(c.length!==2&&c.length!==4&&c.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var d=c.slice(0,2),f=c.length<4?c.slice(0,2):c.slice(2,4),h=c.length<6?c.slice(0,2):c.slice(4,6);this._des1=l.createEncryptor(b.create(d)),this._des2=l.createEncryptor(b.create(f)),this._des3=l.createEncryptor(b.create(h))},encryptBlock:function(o,c){this._des1.encryptBlock(o,c),this._des2.decryptBlock(o,c),this._des3.encryptBlock(o,c)},decryptBlock:function(o,c){this._des3.decryptBlock(o,c),this._des2.encryptBlock(o,c),this._des1.decryptBlock(o,c)},keySize:192/32,ivSize:64/32,blockSize:64/32});v.TripleDES=g._createHelper(t)}(),I.TripleDES})},pmY6:function(j,W,y){"use strict";y.d(W,"h",function(){return a}),y.d(W,"g",function(){return l}),y.d(W,"f",function(){return r}),y.d(W,"e",function(){return i}),y.d(W,"i",function(){return t}),y.d(W,"b",function(){return o}),y.d(W,"a",function(){return c}),y.d(W,"d",function(){return d}),y.d(W,"c",function(){return f});var I=y("C/vA"),v=y("JYp7");const T=!1;let b=null;function g(h){b=h}if(T){const h="__is_disposable_tracked__";g(new class{trackDisposable(u){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{u[h]||console.log(E)},3e3)}setParent(u,E){if(u&&u!==c.None)try{u[h]=!0}catch(x){}}markAsDisposed(u){if(u&&u!==c.None)try{u[h]=!0}catch(E){}}markAsSingleton(u){}})}function s(h){return b==null||b.trackDisposable(h),h}function _(h){b==null||b.markAsDisposed(h)}function p(h,u){b==null||b.setParent(h,u)}function e(h,u){if(!b)return;for(const E of h)b.setParent(E,u)}function a(h){return b==null||b.markAsSingleton(h),h}class n extends Error{constructor(h){super(`Encountered errors while disposing of store. Errors: [${h.join(", ")}]`);this.errors=h}}function l(h){return typeof h.dispose=="function"&&h.dispose.length===0}function r(h){if(v.a.is(h)){let u=[];for(const E of h)if(E)try{E.dispose()}catch(x){u.push(x)}if(u.length===1)throw u[0];if(u.length>1)throw new n(u);return Array.isArray(h)?[]:h}else if(h)return h.dispose(),h}function i(...h){const u=t(()=>r(h));return e(h,u),u}function t(h){const u=s({dispose:Object(I.a)(()=>{_(u),h()})});return u}class o{constructor(){this._toDispose=new Set,this._isDisposed=!1,s(this)}dispose(){if(this._isDisposed)return;_(this),this._isDisposed=!0,this.clear()}clear(){try{r(this._toDispose.values())}finally{this._toDispose.clear()}}add(h){if(!h)return h;if(h===this)throw new Error("Cannot register a disposable on itself!");return p(h,this),this._isDisposed?o.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(h),h}}o.DISABLE_DISPOSED_WARNING=!1;class c{constructor(){this._store=new o,s(this),p(this._store,this)}dispose(){_(this),this._store.dispose()}_register(h){if(h===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(h)}}c.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,s(this)}get value(){return this._isDisposed?void 0:this._value}set value(h){var u;if(this._isDisposed||h===this._value)return;(u=this._value)===null||u===void 0||u.dispose(),h&&p(h,this),this._value=h}clear(){this.value=void 0}dispose(){var h;this._isDisposed=!0,_(this),(h=this._value)===null||h===void 0||h.dispose(),this._value=void 0}clearAndLeak(){const h=this._value;return this._value=void 0,h&&p(h,null),h}}class f{constructor(h){this.object=h}dispose(){}}},popq:function(j,W,y){},psGv:function(j,W,y){var I,v;(function(){var T;(function(){"use strict";var _=[,,function(n){function l(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var t=new l(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},l.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},l.prototype.has_match=function(t){for(var o=this.__items.length-1;o>=0;o--)if(this.__items[o].match(t))return!0;return!1},l.prototype.set_indent=function(t,o){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=o||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},l.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(t){this.__items.push(t);var o=t.lastIndexOf(`
`);o!==-1?this.__character_count=t.length-o:this.__character_count+=t.length},l.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function r(t,o){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),o=o||"",t.indent_level>0&&(o=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=o,this.__base_string_length=o.length}r.prototype.get_indent_size=function(t,o){var c=this.__base_string_length;return o=o||0,t<0&&(c=0),c+=t*this.__indent_size,c+=o,c},r.prototype.get_indent_string=function(t,o){var c=this.__base_string;return o=o||0,t<0&&(t=0,c=""),o+=t*this.__indent_size,this.__ensure_cache(o),c+=this.__cache[o],c},r.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,o=0,c="";this.__indent_size&&t>=this.__indent_size&&(o=Math.floor(t/this.__indent_size),t-=o*this.__indent_size,c=new Array(o+1).join(this.__indent_string)),t&&(c+=new Array(t+1).join(" ")),this.__cache.push(c)};function i(t,o){this.__indent_cache=new r(t,o),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,o){return this.__indent_cache.get_indent_string(t,o)},i.prototype.get_indent_size=function(t,o){return this.__indent_cache.get_indent_size(t,o)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var o=this.current_line.pop();o&&(o[o.length-1]===`
`&&(o=o.replace(/\n+$/g,"")),this.current_line.push(o)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(`
`);return t!==`
`&&(c=c.replace(/[\n]/g,t)),c},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,o){return t=t||0,o=o||0,this.next_line.set_indent(t,o),this.__lines.length>1?(this.current_line.set_indent(t,o),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var o=0;o<t.newlines;o++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(t){for(var o=this.__lines.length;t<o;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,o){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(t)!==0&&d.item(-1)!==o){this.__lines.splice(c+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},n.exports.Output=i},function(n){function l(r,i,t,o){this.type=r,this.text=i,this.comments_before=null,this.newlines=t||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}n.exports.Token=l},,,function(n){function l(t,o){this.raw_options=r(t,o),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}l.prototype._get_array=function(t,o){var c=this.raw_options[t],d=o||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},l.prototype._get_boolean=function(t,o){var c=this.raw_options[t],d=c===void 0?!!o:!!c;return d},l.prototype._get_characters=function(t,o){var c=this.raw_options[t],d=o||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},l.prototype._get_number=function(t,o){var c=this.raw_options[t];o=parseInt(o,10),isNaN(o)&&(o=0);var d=parseInt(c,10);return isNaN(d)&&(d=o),d},l.prototype._get_selection=function(t,o,c){var d=this._get_selection_list(t,o,c);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
`+o+`
You passed in: '`+this.raw_options[t]+"'");return d[0]},l.prototype._get_selection_list=function(t,o,c){if(!o||o.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[o[0]],!this._is_valid_selection(c,o))throw new Error("Invalid Default Value!");var d=this._get_array(t,c);if(!this._is_valid_selection(d,o))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
`+o+`
You passed in: '`+this.raw_options[t]+"'");return d},l.prototype._is_valid_selection=function(t,o){return t.length&&o.length&&!t.some(function(c){return o.indexOf(c)===-1})};function r(t,o){var c={};t=i(t);var d;for(d in t)d!==o&&(c[d]=t[d]);if(o&&t[o])for(d in t[o])c[d]=t[o][d];return c}function i(t){var o={},c;for(c in t){var d=c.replace(/-/g,"_");o[d]=t[c]}return o}n.exports.Options=l,n.exports.normalizeOpts=i,n.exports.mergeOpts=r},,function(n){var l=RegExp.prototype.hasOwnProperty("sticky");function r(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},r.prototype.peek=function(i){var t=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(t=this.__input.charAt(i)),t},r.prototype.__match=function(i,t){i.lastIndex=t;var o=i.exec(this.__input);return o&&!(l&&i.sticky)&&(o.index!==t&&(o=null)),o},r.prototype.test=function(i,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(i,t):!1},r.prototype.testChar=function(i,t){var o=this.peek(t);return i.lastIndex=0,o!==null&&i.test(o)},r.prototype.match=function(i){var t=this.__match(i,this.__position);return t?this.__position+=t[0].length:t=null,t},r.prototype.read=function(i,t,o){var c="",d;return i&&(d=this.match(i),d&&(c+=d[0])),t&&(d||!i)&&(c+=this.readUntil(t,o)),c},r.prototype.readUntil=function(i,t){var o="",c=this.__position;i.lastIndex=this.__position;var d=i.exec(this.__input);return d?(c=d.index,t&&(c+=d[0].length)):c=this.__input_length,o=this.__input.substring(this.__position,c),this.__position=c,o},r.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},r.prototype.get_regexp=function(i,t){var o=null,c="g";return t&&l&&(c="y"),typeof i=="string"&&i!==""?o=new RegExp(i,c):i&&(o=new RegExp(i.source,c)),o},r.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(i){var t=this.__position,o=this.readUntilAfter(i);return this.__position=t,o},r.prototype.lookBack=function(i){var t=this.__position-1;return t>=i.length&&this.__input.substring(t-i.length,t).toLowerCase()===i},n.exports.InputScanner=r},function(n,l,r){var i=r(8).InputScanner,t=r(3).Token,o=r(10).TokenStream,c=r(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},f=function(h,u){this._input=new i(h),this._options=u||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new c(this._input)};f.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var h,u=new t(d.START,""),E=null,x=[],O=new o;u.type!==d.EOF;){for(h=this._get_next_token(u,E);this._is_comment(h);)O.add(h),h=this._get_next_token(u,E);O.isEmpty()||(h.comments_before=O,O=new o),h.parent=E,this._is_opening(h)?(x.push(E),E=h):E&&this._is_closing(h,E)&&(h.opened=E,E.closed=h,E=x.pop(),h.parent=E),h.previous=u,u.next=h,this.__tokens.add(h),u=h}return this.__tokens},f.prototype._is_first_token=function(){return this.__tokens.isEmpty()},f.prototype._reset=function(){},f.prototype._get_next_token=function(h,u){this._readWhitespace();var E=this._input.read(/.+/g);return E?this._create_token(d.RAW,E):this._create_token(d.EOF,"")},f.prototype._is_comment=function(h){return!1},f.prototype._is_opening=function(h){return!1},f.prototype._is_closing=function(h,u){return!1},f.prototype._create_token=function(h,u){var E=new t(h,u,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return E},f.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},n.exports.Tokenizer=f,n.exports.TOKEN=d},function(n){function l(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},l.prototype.peek=function(r){var i=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(i=this.__tokens[r]),i},l.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},n.exports.TokenStream=l},function(n,l,r){var i=r(12).Pattern;function t(o,c){i.call(this,o,c),c?this._line_regexp=this._input.get_regexp(c._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}t.prototype=new i,t.prototype.__set_whitespace_patterns=function(o,c){o+="\\t ",c+="\\n\\r",this._match_pattern=this._input.get_regexp("["+o+c+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+c+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var o=this._input.read(this._match_pattern);if(o===" ")this.whitespace_before_token=" ";else if(o){var c=this.__split(this._newline_regexp,o);this.newline_count=c.length-1,this.whitespace_before_token=c[this.newline_count]}return o},t.prototype.matching=function(o,c){var d=this._create();return d.__set_whitespace_patterns(o,c),d._update(),d},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(o,c){o.lastIndex=0;for(var d=0,f=[],h=o.exec(c);h;)f.push(c.substring(d,h.index)),d=h.index+h[0].length,h=o.exec(c);return d<c.length?f.push(c.substring(d,c.length)):f.push(""),f},n.exports.WhitespacePattern=t},function(n){function l(r,i){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}l.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.prototype.until_after=function(r){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(r),i._update(),i},l.prototype.until=function(r){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(r),i._update(),i},l.prototype.starting_with=function(r){var i=this._create();return i._starting_pattern=this._input.get_regexp(r,!0),i._update(),i},l.prototype.matching=function(r){var i=this._create();return i._match_pattern=this._input.get_regexp(r,!0),i._update(),i},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},n.exports.Pattern=l},function(n){function l(r,i){r=typeof r=="string"?r:r.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+i,"g")}l.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(r);t;)i[t[1]]=t[2],t=this.__directive_pattern.exec(r);return i},l.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},n.exports.Directives=l},function(n,l,r){var i=r(12).Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function o(c,d){i.call(this,c,d),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var f=new i(c);this.__patterns={handlebars_comment:f.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:f.starting_with(/{{{/).until_after(/}}}/),handlebars:f.starting_with(/{{/).until_after(/}}/),php:f.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:f.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:f.starting_with(/{%/).until_after(/%}/),django_value:f.starting_with(/{{/).until_after(/}}/),django_comment:f.starting_with(/{#/).until_after(/#}/),smarty:f.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:f.starting_with(/{\*/).until_after(/\*}/),smarty_literal:f.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(c){var d=this._create();return d._disabled[c]=!0,d._update(),d},o.prototype.read_options=function(c){var d=this._create();for(var f in t)d._disabled[f]=c.templating.indexOf(f)===-1;return d._update(),d},o.prototype.exclude=function(c){var d=this._create();return d._excluded[c]=!0,d._update(),d},o.prototype.read=function(){var c="";this._match_pattern?c=this._input.read(this._starting_pattern):c=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),c+=d,d=this._read_template();return this._until_after&&(c+=this._input.readUntilAfter(this._until_pattern)),c},o.prototype.__set_templated_pattern=function(){var c=[];this._disabled.php||c.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||c.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||c.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(c.push(this.__patterns.django._starting_pattern.source),c.push(this.__patterns.django_value._starting_pattern.source),c.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||c.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&c.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+c.join("|")+")")},o.prototype._read_template=function(){var c="",d=this._input.peek();if(d==="<"){var f=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&f==="?"&&(c=c||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&f==="%"&&(c=c||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(c=c||this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars_unescaped.read(),c=c||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(c=c||this.__patterns.django_value.read()),this._excluded.django||(c=c||this.__patterns.django_comment.read(),c=c||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(c=c||this.__patterns.smarty_comment.read(),c=c||this.__patterns.smarty_literal.read(),c=c||this.__patterns.smarty.read()));return c},n.exports.TemplatablePattern=o},,,,function(n,l,r){var i=r(19).Beautifier,t=r(20).Options;function o(c,d,f,h){var u=new i(c,d,f,h);return u.beautify()}n.exports=o,n.exports.defaultOptions=function(){return new t}},function(n,l,r){var i=r(20).Options,t=r(2).Output,o=r(21).Tokenizer,c=r(21).TOKEN,d=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,h=function(P,N){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=P.max_preserve_newlines,this.preserve_newlines=P.preserve_newlines,this._output=new t(P,N)};h.prototype.current_line_has_match=function(P){return this._output.current_line.has_match(P)},h.prototype.set_space_before_token=function(P,N){this._output.space_before_token=P,this._output.non_breaking_space=N},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(P){this._output.add_raw_token(P)},h.prototype.print_preserved_newlines=function(P){var N=0;P.type!==c.TEXT&&P.previous.type!==c.TEXT&&(N=P.newlines?1:0),this.preserve_newlines&&(N=P.newlines<this.max_preserve_newlines+1?P.newlines:this.max_preserve_newlines+1);for(var M=0;M<N;M++)this.print_newline(M>0);return N!==0},h.prototype.traverse_whitespace=function(P){return P.whitespace_before||P.newlines?(this.print_preserved_newlines(P)||(this._output.space_before_token=!0),!0):!1},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(P){this._output.add_new_line(P)},h.prototype.print_token=function(P){P.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(P.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.get_full_indent=function(P){return P=this.indent_level+(P||0),P<1?"":this._output.get_indent_string(P)};var u=function(P){for(var N=null,M=P.next;M.type!==c.EOF&&P.closed!==M;){if(M.type===c.ATTRIBUTE&&M.text==="type"){M.next&&M.next.type===c.EQUALS&&M.next.next&&M.next.next.type===c.VALUE&&(N=M.next.next.text);break}M=M.next}return N},E=function(P,N){var M=null,z=null;return N.closed?(P==="script"?M="text/javascript":P==="style"&&(M="text/css"),M=u(N)||M,M.search("text/css")>-1?z="css":M.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?z="javascript":M.search(/(text|application|dojo)\/(x-)?(html)/)>-1?z="html":M.search(/test\/null/)>-1&&(z="null"),z):null};function x(P,N){return N.indexOf(P)!==-1}function O(P,N,M){this.parent=P||null,this.tag=N?N.tag_name:"",this.indent_level=M||0,this.parser_token=N||null}function C(P){this._printer=P,this._current_frame=null}C.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},C.prototype.record_tag=function(P){var N=new O(this._current_frame,P,this._printer.indent_level);this._current_frame=N},C.prototype._try_pop_frame=function(P){var N=null;return P&&(N=P.parser_token,this._printer.indent_level=P.indent_level,this._current_frame=P.parent),N},C.prototype._get_frame=function(P,N){for(var M=this._current_frame;M&&!(P.indexOf(M.tag)!==-1);){if(N&&N.indexOf(M.tag)!==-1){M=null;break}M=M.parent}return M},C.prototype.try_pop=function(P,N){var M=this._get_frame([P],N);return this._try_pop_frame(M)},C.prototype.indent_to_tag=function(P){var N=this._get_frame(P);N&&(this._printer.indent_level=N.indent_level)};function w(P,N,M,z){this._source_text=P||"",N=N||{},this._js_beautify=M,this._css_beautify=z,this._tag_stack=null;var X=new i(N,"html");this._options=X,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,N=this._options.eol;this._options.eol==="auto"&&(N=`
`,P&&d.test(P)&&(N=P.match(d)[0])),P=P.replace(f,`
`);var M=P.match(/^[\t ]*/)[0],z={text:"",type:""},X=new S,k=new h(this._options,M),F=new o(P,this._options).tokenize();this._tag_stack=new C(k);for(var U=null,L=F.next();L.type!==c.EOF;)L.type===c.TAG_OPEN||L.type===c.COMMENT?(U=this._handle_tag_open(k,L,X,z),X=U):L.type===c.ATTRIBUTE||L.type===c.EQUALS||L.type===c.VALUE||L.type===c.TEXT&&!X.tag_complete?U=this._handle_inside_tag(k,L,X,F):L.type===c.TAG_CLOSE?U=this._handle_tag_close(k,L,X):L.type===c.TEXT?U=this._handle_text(k,L,X):k.add_raw_token(L),z=U,L=F.next();var B=k._output.get_code(N);return B},w.prototype._handle_tag_close=function(P,N,M){var z={text:N.text,type:N.type};return P.alignment_size=0,M.tag_complete=!0,P.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),M.is_unformatted?P.add_raw_token(N):(M.tag_start_char==="<"&&(P.set_space_before_token(N.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&M.has_wrapped_attrs&&P.print_newline(!1)),P.print_token(N)),M.indent_content&&!(M.is_unformatted||M.is_content_unformatted)&&(P.indent(),M.indent_content=!1),!M.is_inline_element&&!(M.is_unformatted||M.is_content_unformatted)&&P.set_wrap_point(),z},w.prototype._handle_inside_tag=function(P,N,M,z){var X=M.has_wrapped_attrs,k={text:N.text,type:N.type};if(P.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),M.is_unformatted)P.add_raw_token(N);else if(M.tag_start_char==="{"&&N.type===c.TEXT)P.print_preserved_newlines(N)?(N.newlines=0,P.add_raw_token(N)):P.print_token(N);else{if(N.type===c.ATTRIBUTE?(P.set_space_before_token(!0),M.attr_count+=1):(N.type===c.EQUALS||N.type===c.VALUE&&N.previous.type===c.EQUALS)&&P.set_space_before_token(!1),N.type===c.ATTRIBUTE&&M.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(P.traverse_whitespace(N),X=X||N.newlines!==0),this._is_wrap_attributes_force)){var F=M.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&M.attr_count===1){var U=!0,L=0,B;do{if(B=z.peek(L),B.type===c.ATTRIBUTE){U=!1;break}L+=1}while(L<4&&B.type!==c.EOF&&B.type!==c.TAG_CLOSE);F=!U}F&&(P.print_newline(!1),X=!0)}P.print_token(N),X=X||P.previous_token_wrapped(),M.has_wrapped_attrs=X}return k},w.prototype._handle_text=function(P,N,M){var z={text:N.text,type:"TK_CONTENT"};return M.custom_beautifier_name?this._print_custom_beatifier_text(P,N,M):M.is_unformatted||M.is_content_unformatted?P.add_raw_token(N):(P.traverse_whitespace(N),P.print_token(N)),z},w.prototype._print_custom_beatifier_text=function(P,N,M){var z=this;if(N.text!==""){var X=N.text,k,F=1,U="",L="";M.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?k=this._js_beautify:M.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?k=this._css_beautify:M.custom_beautifier_name==="html"&&(k=function(De,te){var Ce=new w(De,te,z._js_beautify,z._css_beautify);return Ce.beautify()}),this._options.indent_scripts==="keep"?F=0:this._options.indent_scripts==="separate"&&(F=-P.indent_level);var B=P.get_full_indent(F);if(X=X.replace(/\n[ \t]*$/,""),M.custom_beautifier_name!=="html"&&X[0]==="<"&&X.match(/^(<!--|<!\[CDATA\[)/)){var Z=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(X);if(!Z){P.add_raw_token(N);return}U=B+Z[1]+`
`,X=Z[4],Z[5]&&(L=B+Z[5]),X=X.replace(/\n[ \t]*$/,""),(Z[2]||Z[3].indexOf(`
`)!==-1)&&(Z=Z[3].match(/[ \t]+$/),Z&&(N.whitespace_before=Z[0]))}if(X)if(k){var re=function(){this.eol=`
`};re.prototype=this._options.raw_options;var me=new re;X=k(B+X,me)}else{var Ee=N.whitespace_before;Ee&&(X=X.replace(new RegExp(`
(`+Ee+")?","g"),`
`)),X=B+X.replace(/\n/g,`
`+B)}U&&(X?X=U+X+`
`+L:X=U+L),P.print_newline(!1),X&&(N.text=X,N.whitespace_before="",N.newlines=0,P.add_raw_token(N),P.print_newline(!0))}},w.prototype._handle_tag_open=function(P,N,M,z){var X=this._get_tag_open_token(N);return(M.is_unformatted||M.is_content_unformatted)&&!M.is_empty_element&&N.type===c.TAG_OPEN&&N.text.indexOf("</")===0?(P.add_raw_token(N),X.start_tag_token=this._tag_stack.try_pop(X.tag_name)):(P.traverse_whitespace(N),this._set_tag_position(P,N,X,M,z),X.is_inline_element||P.set_wrap_point(),P.print_token(N)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(X.alignment_size=N.text.length+1),!X.tag_complete&&!X.is_unformatted&&(P.alignment_size=X.alignment_size),X};var S=function(P,N){if(this.parent=P||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!N)this.tag_complete=!0;else{var M;this.tag_start_char=N.text[0],this.text=N.text,this.tag_start_char==="<"?(M=N.text.match(/^<([^\s>]*)/),this.tag_check=M?M[1]:""):(M=N.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=M?M[1]:"",(N.text.startsWith("{{#>")||N.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&N.next!==null?this.tag_check=N.next.text.split(" ")[0]:this.tag_check=N.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),N.type===c.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||N.closed&&N.closed.text==="/>";var z=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(z=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(z)))}};w.prototype._get_tag_open_token=function(P){var N=new S(this._tag_stack.get_parser_token(),P);return N.alignment_size=this._options.wrap_attributes_indent_size,N.is_end_tag=N.is_end_tag||x(N.tag_check,this._options.void_elements),N.is_empty_element=N.tag_complete||N.is_start_tag&&N.is_end_tag,N.is_unformatted=!N.tag_complete&&x(N.tag_check,this._options.unformatted),N.is_content_unformatted=!N.is_empty_element&&x(N.tag_check,this._options.content_unformatted),N.is_inline_element=x(N.tag_name,this._options.inline)||N.tag_name.includes("-")||N.tag_start_char==="{",N},w.prototype._set_tag_position=function(P,N,M,z,X){if(M.is_empty_element||(M.is_end_tag?M.start_tag_token=this._tag_stack.try_pop(M.tag_name):(this._do_optional_end_element(M)&&(M.is_inline_element||P.print_newline(!1)),this._tag_stack.record_tag(M),(M.tag_name==="script"||M.tag_name==="style")&&!(M.is_unformatted||M.is_content_unformatted)&&(M.custom_beautifier_name=E(M.tag_check,N)))),x(M.tag_check,this._options.extra_liners)&&(P.print_newline(!1),P._output.just_added_blankline()||P.print_newline(!0)),M.is_empty_element){if(M.tag_start_char==="{"&&M.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),M.indent_content=!0;var k=P.current_line_has_match(/{{#if/);k||P.print_newline(!1)}M.tag_name==="!--"&&X.type===c.TAG_CLOSE&&z.is_end_tag&&M.text.indexOf(`
`)===-1||(M.is_inline_element||M.is_unformatted||P.print_newline(!1),this._calcluate_parent_multiline(P,M))}else if(M.is_end_tag){var F=!1;F=M.start_tag_token&&M.start_tag_token.multiline_content,F=F||!M.is_inline_element&&!(z.is_inline_element||z.is_unformatted)&&!(X.type===c.TAG_CLOSE&&M.start_tag_token===z)&&X.type!=="TK_CONTENT",(M.is_content_unformatted||M.is_unformatted)&&(F=!1),F&&P.print_newline(!1)}else M.indent_content=!M.custom_beautifier_name,M.tag_start_char==="<"&&(M.tag_name==="html"?M.indent_content=this._options.indent_inner_html:M.tag_name==="head"?M.indent_content=this._options.indent_head_inner_html:M.tag_name==="body"&&(M.indent_content=this._options.indent_body_inner_html)),!(M.is_inline_element||M.is_unformatted)&&(X.type!=="TK_CONTENT"||M.is_content_unformatted)&&P.print_newline(!1),this._calcluate_parent_multiline(P,M)},w.prototype._calcluate_parent_multiline=function(P,N){N.parent&&P._output.just_added_newline()&&!((N.is_inline_element||N.is_unformatted)&&N.parent.is_inline_element)&&(N.parent.multiline_content=!0)};var D=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],R=["a","audio","del","ins","map","noscript","video"];w.prototype._do_optional_end_element=function(P){var N=null;if(P.is_empty_element||!P.is_start_tag||!P.parent)return;if(P.tag_name==="body")N=N||this._tag_stack.try_pop("head");else if(P.tag_name==="li")N=N||this._tag_stack.try_pop("li",["ol","ul"]);else if(P.tag_name==="dd"||P.tag_name==="dt")N=N||this._tag_stack.try_pop("dt",["dl"]),N=N||this._tag_stack.try_pop("dd",["dl"]);else if(P.parent.tag_name==="p"&&D.indexOf(P.tag_name)!==-1){var M=P.parent.parent;(!M||R.indexOf(M.tag_name)===-1)&&(N=N||this._tag_stack.try_pop("p"))}else P.tag_name==="rp"||P.tag_name==="rt"?(N=N||this._tag_stack.try_pop("rt",["ruby","rtc"]),N=N||this._tag_stack.try_pop("rp",["ruby","rtc"])):P.tag_name==="optgroup"?N=N||this._tag_stack.try_pop("optgroup",["select"]):P.tag_name==="option"?N=N||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):P.tag_name==="colgroup"?N=N||this._tag_stack.try_pop("caption",["table"]):P.tag_name==="thead"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"])):P.tag_name==="tbody"||P.tag_name==="tfoot"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"]),N=N||this._tag_stack.try_pop("thead",["table"]),N=N||this._tag_stack.try_pop("tbody",["table"])):P.tag_name==="tr"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"]),N=N||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(P.tag_name==="th"||P.tag_name==="td")&&(N=N||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),N=N||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return P.parent=this._tag_stack.get_parser_token(),N},n.exports.Beautifier=w},function(n,l,r){var i=r(6).Options;function t(o){i.call(this,o,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}t.prototype=new i,n.exports.Options=t},function(n,l,r){var i=r(9).Tokenizer,t=r(9).TOKEN,o=r(13).Directives,c=r(14).TemplatablePattern,d=r(12).Pattern,f={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},h=new o(/<\!--/,/-->/),u=function(E,x){i.call(this,E,x),this._current_tag_name="";var O=new c(this._input).read_options(this._options),C=new d(this._input);if(this.__patterns={word:O.until(/[\n\r\t <]/),single_quote:O.until_after(/'/),double_quote:O.until_after(/"/),attribute:O.until(/[\n\r\t =>]|\/>/),element_name:O.until(/[\n\r\t >\/]/),handlebars_comment:C.starting_with(/{{!--/).until_after(/--}}/),handlebars:C.starting_with(/{{/).until_after(/}}/),handlebars_open:C.until(/[\n\r\t }]/),handlebars_raw_close:C.until(/}}/),comment:C.starting_with(/<!--/).until_after(/-->/),cdata:C.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:C.starting_with(/<!\[/).until_after(/]>/),processing:C.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var w=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=C.matching(w).until_after(w)}};u.prototype=new i,u.prototype._is_comment=function(E){return!1},u.prototype._is_opening=function(E){return E.type===f.TAG_OPEN},u.prototype._is_closing=function(E,x){return E.type===f.TAG_CLOSE&&x&&((E.text===">"||E.text==="/>")&&x.text[0]==="<"||E.text==="}}"&&x.text[0]==="{"&&x.text[1]==="{")},u.prototype._reset=function(){this._current_tag_name=""},u.prototype._get_next_token=function(E,x){var O=null;this._readWhitespace();var C=this._input.peek();return C===null?this._create_token(f.EOF,""):(O=O||this._read_open_handlebars(C,x),O=O||this._read_attribute(C,E,x),O=O||this._read_close(C,x),O=O||this._read_raw_content(C,E,x),O=O||this._read_content_word(C),O=O||this._read_comment_or_cdata(C),O=O||this._read_processing(C),O=O||this._read_open(C,x),O=O||this._create_token(f.UNKNOWN,this._input.next()),O)},u.prototype._read_comment_or_cdata=function(E){var x=null,O=null,C=null;if(E==="<"){var w=this._input.peek(1);w==="!"&&(O=this.__patterns.comment.read(),O?(C=h.get_directives(O),C&&C.ignore==="start"&&(O+=h.readIgnored(this._input))):O=this.__patterns.cdata.read()),O&&(x=this._create_token(f.COMMENT,O),x.directives=C)}return x},u.prototype._read_processing=function(E){var x=null,O=null,C=null;if(E==="<"){var w=this._input.peek(1);(w==="!"||w==="?")&&(O=this.__patterns.conditional_comment.read(),O=O||this.__patterns.processing.read()),O&&(x=this._create_token(f.COMMENT,O),x.directives=C)}return x},u.prototype._read_open=function(E,x){var O=null,C=null;return x||E==="<"&&(O=this._input.next(),this._input.peek()==="/"&&(O+=this._input.next()),O+=this.__patterns.element_name.read(),C=this._create_token(f.TAG_OPEN,O)),C},u.prototype._read_open_handlebars=function(E,x){var O=null,C=null;return x||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(O=this.__patterns.handlebars_comment.read(),O=O||this.__patterns.handlebars.read(),C=this._create_token(f.COMMENT,O)):(O=this.__patterns.handlebars_open.read(),C=this._create_token(f.TAG_OPEN,O))),C},u.prototype._read_close=function(E,x){var O=null,C=null;return x&&(x.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(O=this._input.next(),E==="/"&&(O+=this._input.next()),C=this._create_token(f.TAG_CLOSE,O)):x.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),C=this._create_token(f.TAG_CLOSE,"}}"))),C},u.prototype._read_attribute=function(E,x,O){var C=null,w="";if(O&&O.text[0]==="<")if(E==="=")C=this._create_token(f.EQUALS,this._input.next());else if(E==='"'||E==="'"){var S=this._input.next();E==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),C=this._create_token(f.VALUE,S)}else w=this.__patterns.attribute.read(),w&&(x.type===f.EQUALS?C=this._create_token(f.VALUE,w):C=this._create_token(f.ATTRIBUTE,w));return C},u.prototype._is_content_unformatted=function(E){return this._options.void_elements.indexOf(E)===-1&&(this._options.content_unformatted.indexOf(E)!==-1||this._options.unformatted.indexOf(E)!==-1)},u.prototype._read_raw_content=function(E,x,O){var C="";if(O&&O.text[0]==="{")C=this.__patterns.handlebars_raw_close.read();else if(x.type===f.TAG_CLOSE&&x.opened.text[0]==="<"&&x.text[0]!=="/"){var w=x.opened.text.substr(1).toLowerCase();if(w==="script"||w==="style"){var S=this._read_comment_or_cdata(E);if(S)return S.type=f.TEXT,S;C=this._input.readUntil(new RegExp("</"+w+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(w)&&(C=this._input.readUntil(new RegExp("</"+w+"[\\n\\r\\t ]*?>","ig")))}return C?this._create_token(f.TEXT,C):null},u.prototype._read_content_word=function(E){var x="";if(this._options.unformatted_content_delimiter&&(E===this._options.unformatted_content_delimiter[0]&&(x=this.__patterns.unformatted_content_delimiter.read())),x||(x=this.__patterns.word.read()),x)return this._create_token(f.TEXT,x)},n.exports.Tokenizer=u,n.exports.TOKEN=f}],p={};function e(n){var l=p[n];if(l!==void 0)return l.exports;var r=p[n]={exports:{}};return _[n](r,r.exports,e),r.exports}var a=e(18);T=a})();var b=T;if(!0)!(I=[y,y("6UM0"),y("TXwP")],v=function(_){var p=y("6UM0"),e=y("TXwP");return{html_beautify:function(a,n){return b(a,n,p.js_beautify,e.css_beautify)}}}.apply(W,I),v!==void 0&&(j.exports=v));else var g,s})()},q7KB:function(j,W,y){},qBft:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.pad.AnsiX923={pad:function(v,T){var b=v.sigBytes,g=T*4,s=g-b%g,_=b+s-1;v.clamp(),v.words[_>>>2]|=s<<24-_%4*8,v.sigBytes+=s},unpad:function(v){var T=v.words[v.sigBytes-1>>>2]&255;v.sigBytes-=T}},I.pad.Ansix923})},qM6L:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.WordArray,g=v.enc,s=g.Utf16=g.Utf16BE={stringify:function(p){for(var e=p.words,a=p.sigBytes,n=[],l=0;l<a;l+=2){var r=e[l>>>2]>>>16-l%4*8&65535;n.push(String.fromCharCode(r))}return n.join("")},parse:function(p){for(var e=p.length,a=[],n=0;n<e;n++)a[n>>>1]|=p.charCodeAt(n)<<16-n%2*16;return b.create(a,e*2)}};g.Utf16LE={stringify:function(p){for(var e=p.words,a=p.sigBytes,n=[],l=0;l<a;l+=2){var r=_(e[l>>>2]>>>16-l%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(p){for(var e=p.length,a=[],n=0;n<e;n++)a[n>>>1]|=_(p.charCodeAt(n)<<16-n%2*16);return b.create(a,e*2)}};function _(p){return p<<8&4278255360|p>>>8&16711935}}(),I.enc.Utf16})},qZJd:function(j,W,y){"use strict";var I=y("miYZ"),v=y("tsqr"),T=y("2qtc"),b=y("kLXV"),g=y("9og8"),s=y("rAM+"),_=y("tJVT"),p=y("k1fw"),e=y("WmNS"),a=y.n(e),n=y("q1tI"),l=y.n(n),r=y("IxHN"),i=y("bdgK"),t=y("M8RZ"),o=y("Ty5D"),c=y("1vsH"),d=y("+L6B"),f=y("2/Rp"),h=y("5NDa"),u=y("5rEg"),E=y("AKST"),x=u.a.TextArea,O=function(U){var L=U.onCancel,B=U.onSave,Z=U.content,re=Object(n.useState)(Z),me=Object(_.a)(re,2),Ee=me[0],De=me[1];function te(we){De(we.target.value)}function Ce(){B(Ee)}return Object(n.useEffect)(function(){De(Z)},[Z]),l.a.createElement("div",{className:"clipboard-box"},l.a.createElement("h3",null,"\u5B9E\u9A8C\u73AF\u5883\u526A\u5207\u677F\uFF1A"),l.a.createElement(x,{value:Ee,onChange:te,className:"clipboard"}),l.a.createElement("p",null," ",l.a.createElement("b",null," 1.\u4ECE\u5916\u90E8\u590D\u5236\u5185\u5BB9\u5230\u5B9E\u9A8C\u73AF\u5883\u5185\uFF1A ")," \u7C98\u8D34\u5185\u5BB9\u5230\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u70B9\u51FB\u4FDD\u5B58\uFF0C\u7136\u540E\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u8FDB\u884C\u7C98\u8D34\u3002 "),l.a.createElement("p",null," ",l.a.createElement("b",null," 2.\u83B7\u53D6\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7684\u5185\u5BB9\uFF1A ")," \u8BF7\u5148\u5728\u73AF\u5883\u4E2D\u590D\u5236\u5185\u5BB9\uFF0C\u590D\u5236\u52A8\u4F5C\u5B8C\u6210\u540E\u5185\u5BB9\u4F1A\u663E\u793A\u5728\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u7136\u540E\u5728\u4E0A\u9762\u6587\u672C\u6846\u4E2D\u518D\u6B21\u590D\u5236\u3002 "),l.a.createElement("div",{className:"btn-action-container"},l.a.createElement(f.a,{type:"ghost",onClick:L,style:{marginRight:10}},"\u53D6\u6D88"),l.a.createElement(f.a,{type:"primary",onClick:Ce},"\u4FDD\u5B58")))},C=y("bntm"),w=y("IZBM"),S=y("1dTM"),D=y.n(S),R=y("dhSg"),P=y("ErOA");function N(U){return U.replace(/\\u([\dA-Za-z]{4})/g,function(L,B){return String.fromCharCode(parseInt("0x"+B))})}function M(U){U||(U=window.location.search);var L=U.substr(1),B={};return L.split("&").forEach(function(Z){var re=Z.split("=");B[re[0]]=decodeURIComponent(re[1])}),B}var z={loading:!0,isLarge:!1,showClipBoardBox:!1,transferContent:"",mes:"\u5B9E\u9A8C\u73AF\u5883\u51C6\u5907\u4E2D"},X;(function(U){U[U.SET_LOADING=0]="SET_LOADING",U[U.SET_IS_LARGE=1]="SET_IS_LARGE",U[U.SET_MES=2]="SET_MES",U[U.SET_STATE=3]="SET_STATE",U[U.SHOW_CLIPBOARD_BOX=4]="SHOW_CLIPBOARD_BOX",U[U.SET_TRANSFER_CONTENT=5]="SET_TRANSFER_CONTENT",U[U.UPDATE_ALL=6]="UPDATE_ALL"})(X||(X={}));function k(U,L){switch(L.type){case X.SET_LOADING:return Object(p.a)(Object(p.a)({},U),{},{loading:L.payload});case X.SET_IS_LARGE:return Object(p.a)({},Object(p.a)(Object(p.a)({},U),{},{isLarge:L.payload}));case X.SET_MES:return Object(p.a)(Object(p.a)({},U),{},{mes:L.payload});case X.SET_STATE:return Object(p.a)(Object(p.a)({},U),L.payload);case X.SET_TRANSFER_CONTENT:return Object(p.a)(Object(p.a)({},U),{},{transferContent:L.payload});case X.SHOW_CLIPBOARD_BOX:return Object(p.a)(Object(p.a)({},U),{},{showClipBoardBox:L.payload});case X.UPDATE_ALL:return Object(p.a)({loading:U.loading},L.payload);default:throw new Error}}var F=W.a=function(U){var L=U.vnc_url,B=U.window_vnc_url,Z=U.linux_vnc,re=U.virtual_machine,me=U.taskData,Ee=U.shixun_environment_id,De=U.tab_type,te=U.instance_startup_type,Ce=U.index_tab,we=U.tpi_type,ce=Object(n.useRef)(),le=Object(n.useRef)(),oe=Object(n.useRef)(),xe=Object(n.useRef)(),q=Object(n.useRef)(),se=Object(n.useRef)(),Ne=Object(n.useRef)(),de=Object(n.useRef)(),$=Object(n.useReducer)(k,z),Q=Object(_.a)($,2),Y=Q[0],ue=Q[1],ae=Object(n.useState)(0),be=Object(_.a)(ae,2),Ie=be[0],pe=be[1],Le=Y.mes,ve=Y.loading,Xe=Y.showClipBoardBox,$e=Y.isLarge,Ge=Y.transferContent,Me=Object(n.useState)(0),gt=Object(_.a)(Me,2),Te=gt[0],Ye=gt[1],Ze=Object(n.useRef)(),Ve=Object(o.i)();Object(n.useEffect)(function(){return function(){var ut,ot;(ut=le.current)===null||ut===void 0||((ot=ut.disconnect)===null||ot===void 0)||ot.call(ut),clearTimeout(de.current)}},[]);var Fe=function(){var ot;te===2?setTimeout(function(){et()},1500):(oe==null||((ot=oe.current)===null||ot===void 0)?void 0:ot.resizeSession)!==void 0&&(Object(C.a)()?oe.current.resizeSession=!0:setTimeout(function(){oe.current.resizeSession=!1},900))};Object(n.useEffect)(function(){return document.addEventListener(Object(C.c)(),Fe),function(){document.removeEventListener(Object(C.c)(),Fe)}},[]);function Be(){ue({type:X.SHOW_CLIPBOARD_BOX,payload:!1})}function _e(){ue({type:X.SET_IS_LARGE,payload:!$e})}function Ae(ut){return ce.current&&(xe.current=new i.default(function(ot){var Ue=Object(s.a)(ot),We;try{for(Ue.s();!(We=Ue.n()).done;){var ft=We.value;if(te===2&&et(),ft.target.offsetHeight>0||ft.target.offsetWidth>0){var nt;ut==null||((nt=ut._eventHandlers)===null||nt===void 0)||nt.windowResize()}}}catch(Dt){Ue.e(Dt)}finally{Ue.f()}}),xe.current.observe(ce.current)),xe.current}var fe=function(){var ut=Object(g.a)(a.a.mark(function ot(){var Ue,We,ft,nt,Dt,Kt,vt,Ht;return a.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,Object(w.F)((Ue=me.myshixun)===null||Ue===void 0?void 0:Ue.identifier,Object(p.a)(Object(p.a)({},Ve),{},{taskId:Ve.taskId,shixun_environment_id:Ee,tab_type:De}));case 2:if(nt=Lt.sent,!(nt!=null&&(We=nt.data)!==null&&We!==void 0&&(ft=We.data_list)!==null&&ft!==void 0&&ft.length)){Lt.next=6;break}return R.a.publish("pod-restrict-data",{identifier:nt==null||((Dt=nt.data)===null||Dt===void 0)?void 0:Dt.identifier,data_list:nt==null||((Kt=nt.data)===null||Kt===void 0)?void 0:Kt.data_list}),Lt.abrupt("return",Promise.reject());case 6:if(!((nt==null?void 0:nt.status)===-3)){Lt.next=8;break}return Lt.abrupt("return",new Promise(function(){var zt=Object(g.a)(a.a.mark(function Qt(bn,Zt){return a.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:b.a.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var Fn=Object(g.a)(a.a.mark(function Yn(){return a.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return clearTimeout(Ze.current),Ye(0),or.next=4,Object(w.c)(Ve.taskId,nt==null?void 0:nt.message);case 4:return pe(Ie+1),or.abrupt("return");case 6:case"end":return or.stop()}},Yn)}));function Hn(){return Fn.apply(this,arguments)}return Hn}()});case 1:case"end":return Zn.stop()}},Qt)}));return function(Qt,bn){return zt.apply(this,arguments)}}()));case 8:if(!((nt==null?void 0:nt.status)===-1)){Lt.next=10;break}throw new String(nt==null?void 0:nt.message);case 10:if(!((nt==null?void 0:nt.status)===0)){Lt.next=15;break}return re&&(Object(c.Y)("PVEAuthCookie",nt==null||((vt=nt.data)===null||vt===void 0||((Ht=vt.cookie_options)===null||Ht===void 0))?void 0:Ht.cookies_value,1),Object(c.Y)("PVELangCookie","zh_CN",1)),R.a.publish("update-windows-time",nt==null?void 0:nt.data),R.a.publish("send-tabs-result-data",Object(p.a)(Object(p.a)({},nt==null?void 0:nt.data),{},{index_tab:Ce})),Lt.abrupt("return",nt);case 15:case"end":return Lt.stop()}},ot)}));return function(){return ut.apply(this,arguments)}}();function ke(){Ye(100),clearTimeout(Ze.current),setTimeout(function(){oe.current.resizeSession=!1,ue({type:X.SET_LOADING,payload:!1})},1300)}var Je=function(){oe.current=new D.a(ce.current,Ne.current,{credentials:{password:se.current},wsProtocols:["binary"],resize:"scale",show_dot:!0}),oe.current.removeEventListener("disconnect",Qe),oe.current.removeEventListener("connect",ke),oe.current.removeEventListener("clipboard",ne),xe.current=Ae(oe.current),oe.current.viewOnly=Ve.view_only||!1,B?oe.current.scaleViewport=!0:oe.current.scaleViewport=Ve.scale||!1,oe.current.scaleViewport=Ve.scale||!0,oe.current.showDotCursor=!0,oe.current.resizeSession=!0,oe.current.addEventListener("disconnect",Qe),oe.current.addEventListener("connect",ke),oe.current.addEventListener("clipboard",ne)};function ne(ut){var ot=N(ut.detail.text);ue({type:X.SET_TRANSFER_CONTENT,payload:ot})}function Qe(){if(B)ue({type:X.SET_LOADING,payload:!0}),pe(Ie+1);else{if(clearTimeout(de.current),ve)return;de.current=setTimeout(function(){pe(Ie+1)},6e3)}}Object(n.useEffect)(function(){if(R.a.subscribe("reset-linux-windows-vnc-".concat(Ce),function(){pe(Ie+1)}),(B||L||Z||re)&&ce.current){clearTimeout(Ze.current),te===2&&et(),new Promise(Object(g.a)(a.a.mark(function We(){var ft,nt,Dt,Kt,vt,Ht,Ft,Lt,zt,Qt,bn;return a.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return ft=M(),$t.next=3,fe();case 3:if(nt=$t.sent,!(Z||re)){$t.next=10;break}return q.current.src=(nt==null||((Dt=nt.data)===null||Dt===void 0)?void 0:Dt.link_url)+"&time="+Date.now(),ue({type:X.SET_LOADING,payload:!1}),$t.abrupt("return");case 10:B?(se.current="Edu123",Ne.current=decodeURIComponent(nt==null||((Kt=nt.data)===null||Kt===void 0)?void 0:Kt.link_url)):(Ht=new URL(decodeURIComponent(nt==null||((vt=nt.data)===null||vt===void 0)?void 0:vt.link_url)),Ft=Ht.protocol,Lt=Ht.searchParams,zt=Ht.host,Qt=Ht.search,bn=Object(c.U)(Qt),se.current=Lt.get("password"),Ne.current="".concat(Ft==="https:"?"wss":"ws","://").concat(zt,"/").concat(bn.path||"websockify"));case 11:if(!(te===2)){$t.next=14;break}return setTimeout(function(){var Zn;Ae(),q.current.style.cssText=q.current.style.cssText+"width:1920px;height:1080px;position:initial",q.current.src="/rdp.html?tpiId=".concat(me==null||((Zn=me.myshixun)===null||Zn===void 0)?void 0:Zn.id,"&envId=").concat(Ee,"&tpiType=").concat(we),ue({type:X.SET_LOADING,payload:!1})},5e3),$t.abrupt("return");case 14:Je();case 15:case"end":return $t.stop()}},We)})));var ut=R.a.subscribe("vnc-reset-".concat(Ce),function(We){if(We==="\u53D6\u6D88"){ue({type:X.SET_LOADING,payload:!1});return}Ye(0),ue({type:X.SET_STATE,payload:{loading:!0,mes:We||"\u5B9E\u9A8C\u73AF\u5883\u91CD\u7F6E\u4E2D"}})}),ot=R.a.subscribe("send-ctrl-alt-delete-".concat(Ce),function(){var We;(We=oe.current)===null||We===void 0||We.sendCtrlAltDel(),v.b.success("\u53D1\u9001\u6210\u529F")}),Ue=R.a.subscribe("show-clipboard-box-".concat(Ce),function(){ue({type:X.SHOW_CLIPBOARD_BOX,payload:!0})});return Ye(0),function(){var We,ft,nt,Dt;(We=oe.current)===null||We===void 0||We.removeEventListener("disconnect",Qe),(ft=oe.current)===null||ft===void 0||ft.removeEventListener("connect",ke),(nt=oe.current)===null||nt===void 0||nt.removeEventListener("clipboard",ne),ut(),ot(),Ue(),ce.current&&((Dt=xe.current)===null||Dt===void 0||Dt.unobserve(ce.current))}}},[L,B,Z,Ie,Ee,De]);function dt(ut){return Ke.apply(this,arguments)}function Ke(){return Ke=Object(g.a)(a.a.mark(function ut(ot){var Ue,We,ft;return a.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(!L){Dt.next=8;break}return Ue=ot,Dt.next=4,Object(P.a)("/api/tasks/".concat(Ve.taskId,"/vnc_paste.json"),{method:"post",body:{content:Base64.encode(Ue),shixun_environment_id:Ee}});case 4:We=Dt.sent,(We==null?void 0:We.status)===0&&(ue({type:X.SET_TRANSFER_CONTENT,payload:ot}),v.b.success("\u4FDD\u5B58\u6210\u529F\uFF01\u4F60\u53EF\u4EE5\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7C98\u8D34\u8BE5\u5185\u5BB9"),Be()),Dt.next=12;break;case 8:(ft=oe.current)===null||ft===void 0||ft.clipboardPasteFrom(ot),ue({type:X.SET_TRANSFER_CONTENT,payload:ot}),v.b.success("\u4FDD\u5B58\u6210\u529F\uFF01\u4F60\u53EF\u4EE5\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7C98\u8D34\u8BE5\u5185\u5BB9"),Be();case 12:case"end":return Dt.stop()}},ut)})),Ke.apply(this,arguments)}function et(){var ut,ot;ut=Math.min(document.getElementById("task-right-panel").clientWidth/1920,document.getElementById("task-right-panel").clientHeight/1260),q.current.parentElement.className="wh1080p",q.current.parentElement.style.cssText="transform:scale(".concat(ut,");transform-origin:center center"),ce.current.style.cssText="translate(-50%, -50%) scale("+ut+")"}Object(n.useEffect)(function(){Te==0&&(clearTimeout(Ze.current),rt())},[Te]);var rt=function ut(){Te>99?Te=99:(Te=Te+1,Ze.current=setTimeout(function(){ut()},1500)),Te<100&&Ye(Te)},bt=Object(n.useMemo)(function(){return ve?"none":Z||re||B&&te===2?"block":"none"},[Z,ve,re,B]);return l.a.createElement(n.Fragment,null,$e&&l.a.createElement("a",{className:"btn-vnc-resize",onClick:_e},l.a.createElement("i",{className:"iconfont icon-tuichuquanping"})),l.a.createElement("div",{style:{width:"100%",height:"100%",overflow:"hidden",position:"absolute",display:bt==="block"?"flex":"none",alignItems:"center",justifyContent:"center",zIndex:6}},l.a.createElement("div",null,l.a.createElement("iframe",{style:{position:$e?"fixed":"absolute",left:0,top:$e?40:0,width:"100%",height:"calc(100% - ".concat($e?"100px":"0px",")")},frameBorder:"0",ref:q,allowFullScreen:!0}))),l.a.createElement("div",{style:{position:$e?"fixed":"absolute",left:0,top:$e?40:0,zIndex:5,width:"100%",height:"calc(100% - ".concat($e?"100px":"0px",")")},className:"".concat(B?"vnc-panel-wrapper-windows":"vnc-panel-wrapper"," ").concat($e?"full-screen":"")},ve?l.a.createElement(r.a,{message:Le,style:{color:"#0152d9"}}):null,l.a.createElement("div",{ref:ce,className:"vnc-panel ".concat(ve?"hidden zIndexf1":"animated fadeIn")})),l.a.createElement(t.a,null,l.a.createElement(b.a,{title:"\u590D\u5236\u7C98\u8D34",centered:!0,maskClosable:!1,visible:Xe,onCancel:Be,footer:null},l.a.createElement(O,{onCancel:Be,onSave:dt,content:Ge}))))}},qgvg:function(j,W){j.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0U3Nzk1NkY5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0U3Nzk1NzA5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RTc3OTU2RDlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},qu8F:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return I.mode.CTRGladman=function(){var v=I.lib.BlockCipherMode.extend();function T(s){if((s>>24&255)===255){var _=s>>16&255,p=s>>8&255,e=s&255;_===255?(_=0,p===255?(p=0,e===255?e=0:++e):++p):++_,s=0,s+=_<<16,s+=p<<8,s+=e}else s+=1<<24;return s}function b(s){return(s[0]=T(s[0]))===0&&(s[1]=T(s[1])),s}var g=v.Encryptor=v.extend({processBlock:function(s,_){var p=this._cipher,e=p.blockSize,a=this._iv,n=this._counter;a&&(n=this._counter=a.slice(0),this._iv=void 0),b(n);var l=n.slice(0);p.encryptBlock(l,0);for(var r=0;r<e;r++)s[_+r]^=l[r]}});return v.Decryptor=g,v}(),I.mode.CTRGladman})},"rAM+":function(j,W,y){"use strict";y.d(W,"a",function(){return v});var I=y("Qw5x");function v(T,b){var g;if(typeof Symbol=="undefined"||T[Symbol.iterator]==null){if(Array.isArray(T)||(g=Object(I.a)(T))||b&&T&&typeof T.length=="number"){g&&(T=g);var s=0,_=function(){};return{s:_,n:function(){return s>=T.length?{done:!0}:{done:!1,value:T[s++]}},e:function(l){throw l},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,e=!1,a;return{s:function(){g=T[Symbol.iterator]()},n:function(){var l=g.next();return p=l.done,l},e:function(l){e=!0,a=l},f:function(){try{!p&&g.return!=null&&g.return()}finally{if(e)throw a}}}}},rHrb:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.CopyToClipboard=void 0;var I=T(y("q1tI")),v=T(y("+QRC"));function T(f){return f&&f.__esModule?f:{default:f}}function b(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(u){return typeof u}:b=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},b(f)}function g(f,h){var u=Object.keys(f);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(f);h&&(E=E.filter(function(x){return Object.getOwnPropertyDescriptor(f,x).enumerable})),u.push.apply(u,E)}return u}function s(f){for(var h=1;h<arguments.length;h++){var u=arguments[h]!=null?arguments[h]:{};h%2?g(u,!0).forEach(function(E){c(f,E,u[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(u)):g(u).forEach(function(E){Object.defineProperty(f,E,Object.getOwnPropertyDescriptor(u,E))})}return f}function _(f,h){if(f==null)return{};var u=p(f,h),E,x;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(f);for(x=0;x<O.length;x++){if(E=O[x],h.indexOf(E)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,E))continue;u[E]=f[E]}}return u}function p(f,h){if(f==null)return{};var u={},E=Object.keys(f),x,O;for(O=0;O<E.length;O++){if(x=E[O],h.indexOf(x)>=0)continue;u[x]=f[x]}return u}function e(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function a(f,h){for(var u=0;u<h.length;u++){var E=h[u];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function n(f,h,u){return h&&a(f.prototype,h),u&&a(f,u),f}function l(f,h){return h&&(b(h)==="object"||typeof h=="function")?h:i(f)}function r(f){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},r(f)}function i(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function t(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&o(f,h)}function o(f,h){return o=Object.setPrototypeOf||function(E,x){return E.__proto__=x,E},o(f,h)}function c(f,h,u){return h in f?Object.defineProperty(f,h,{value:u,enumerable:!0,configurable:!0,writable:!0}):f[h]=u,f}var d=function(f){t(h,f);function h(){var u,E;e(this,h);for(var x=arguments.length,O=new Array(x),C=0;C<x;C++)O[C]=arguments[C];return E=l(this,(u=r(h)).call.apply(u,[this].concat(O))),c(i(E),"onClick",function(w){var S=E.props,D=S.text,R=S.onCopy,P=S.children,N=S.options,M=I.default.Children.only(P),z=(0,v.default)(D,N);R&&R(D,z),M&&M.props&&typeof M.props.onClick=="function"&&M.props.onClick(w)}),E}return n(h,[{key:"render",value:function(){var E=this.props,x=E.text,O=E.onCopy,C=E.options,w=E.children,S=_(E,["text","onCopy","options","children"]),D=I.default.Children.only(w);return I.default.cloneElement(D,s({},S,{onClick:this.onClick}))}}]),h}(I.default.PureComponent);W.CopyToClipboard=d,c(d,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(j,W){const y=/[&<>"']/,I=/[&<>"']/g,v=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},g=C=>b[C];function s(C,w){if(w){if(y.test(C))return C.replace(I,g)}else if(v.test(C))return C.replace(T,g);return C}const _=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function p(C){return C.replace(_,(w,S)=>(S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""))}const e=/(^|[^\[])\^/g;function a(C,w){C=C.source||C,w=w||"";const S={replace:(D,R)=>(R=R.source||R,R=R.replace(e,"$1"),C=C.replace(D,R),S),getRegex:()=>new RegExp(C,w)};return S}const n=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function r(C,w,S){if(C){let D;try{D=decodeURIComponent(p(S)).replace(n,"").toLowerCase()}catch(R){return null}if(D.indexOf("javascript:")===0||D.indexOf("vbscript:")===0||D.indexOf("data:")===0)return null}w&&!l.test(S)&&(S=d(w,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(D){return null}return S}const i={},t=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(C,w){i[" "+C]||(t.test(C)?i[" "+C]=C+"/":i[" "+C]=E(C,"/",!0)),C=i[" "+C];const S=C.indexOf(":")===-1;return w.substring(0,2)==="//"?S?w:C.replace(o,"$1")+w:w.charAt(0)==="/"?S?w:C.replace(c,"$1")+w:C+w}const f={exec:function(){}};function h(C){let w=1,S,D;for(;w<arguments.length;w++){S=arguments[w];for(D in S)Object.prototype.hasOwnProperty.call(S,D)&&(C[D]=S[D])}return C}function u(C,w){const S=C.replace(/\|/g,(P,N,M)=>{let z=!1,X=N;for(;--X>=0&&M[X]==="\\";)z=!z;return z?"|":" |"}),D=S.split(/ \|/);let R=0;if(D.length>w)D.splice(w);else for(;D.length<w;)D.push("");for(;R<D.length;R++)D[R]=D[R].trim().replace(/\\\|/g,"|");return D}function E(C,w,S){const D=C.length;if(D===0)return"";let R=0;for(;R<D;){const P=C.charAt(D-R-1);if(P===w&&!S)R++;else if(P!==w&&S)R++;else break}return C.substr(0,D-R)}function x(C,w){if(C.indexOf(w[1])===-1)return-1;const S=C.length;let D=0,R=0;for(;R<S;R++)if(C[R]==="\\")R++;else if(C[R]===w[0])D++;else if(C[R]===w[1]&&(D--,D<0))return R;return-1}function O(C){C&&C.sanitize&&!C.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}j.exports={escape:s,unescape:p,edit:a,cleanUrl:r,resolveUrl:d,noopTest:f,merge:h,splitCells:u,rtrim:E,findClosingBracket:x,checkSanitizeDeprecation:O}},rdUC:function(j,W,y){var I=y("MFOe"),v=I.Global;j.exports={name:"localStorage",read:b,write:g,each:s,remove:_,clearAll:p};function T(){return v.localStorage}function b(e){return T().getItem(e)}function g(e,a){return T().setItem(e,a)}function s(e){for(var a=T().length-1;a>=0;a--){var n=T().key(a);e(b(n),n)}}function _(e){return T().removeItem(e)}function p(){return T().clear()}},rwxt:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I=y("GdRQ");function v(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}function T(_,p){for(var e=0;e<p.length;e++){var a=p[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(_,a.key,a)}}function b(_,p,e){return p&&T(_.prototype,p),e&&T(_,e),_}var g=!I.supportsCursorURIs||I.isTouchDevice,s=function(){function _(){v(this,_),this._target=null,this._canvas=document.createElement("canvas"),g&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return b(_,[{key:"attach",value:function(e){if(this._target&&this.detach(),this._target=e,g){document.body.appendChild(this._canvas);var a={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,a),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,a),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,a),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,a)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(g){var e={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,e),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,e),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,e),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,e),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(e,a,n,l,r){if(l===0||r===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-a,this._position.y=this._position.y+this._hotSpot.y-n,this._hotSpot.x=a,this._hotSpot.y=n;var i=this._canvas.getContext("2d");this._canvas.width=l,this._canvas.height=r;var t;try{t=new ImageData(new Uint8ClampedArray(e),l,r)}catch(c){t=i.createImageData(l,r),t.data.set(new Uint8ClampedArray(e))}if(i.clearRect(0,0,l,r),i.putImageData(t,0,0),g)this._updatePosition();else{var o=this._canvas.toDataURL();this._target.style.cursor="url("+o+")"+a+" "+n+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(e,a){if(!g)return;window.visualViewport?(this._position.x=e+window.visualViewport.offsetLeft,this._position.y=a+window.visualViewport.offsetTop):(this._position.x=e,this._position.y=a),this._updatePosition();var n=document.elementFromPoint(e,a);this._updateVisibility(n)}},{key:"_handleMouseOver",value:function(e){this._handleMouseMove(e)}},{key:"_handleMouseLeave",value:function(e){this._updateVisibility(e.relatedTarget)}},{key:"_handleMouseMove",value:function(e){this._updateVisibility(e.target),this._position.x=e.clientX-this._hotSpot.x,this._position.y=e.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(e){var a=this,n=document.elementFromPoint(e.clientX,e.clientY);this._updateVisibility(n),this._captureIsActive()&&window.setTimeout(function(){if(!a._target)return;n=document.elementFromPoint(e.clientX,e.clientY),a._updateVisibility(n)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(e){return e?e===this._target?!0:this._target.contains(e)?!(window.getComputedStyle(e).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(e){this._captureIsActive()&&(e=document.captureElement),this._shouldShowCursor(e)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),_}();W.default=s},sR1s:function(j,W,y){"use strict";y.d(W,"b",function(){return b}),y.d(W,"a",function(){return g}),y.d(W,"c",function(){return s}),y.d(W,"d",function(){return _});var I=y("U8pU"),v="RC_TABLE_KEY";function T(p){return p==null?[]:Array.isArray(p)?p:[p]}function b(p,e){if(!e&&typeof e!="number")return p;for(var a=T(e),n=p,l=0;l<a.length;l+=1){if(!n)return null;var r=a[l];n=n[r]}return n}function g(p){var e=[],a={};return p.forEach(function(n){for(var l=n||{},r=l.key,i=l.dataIndex,t=r||T(i).join("-")||v;a[t];)t="".concat(t,"_next");a[t]=!0,e.push(t)}),e}function s(){var p={};function e(r,i){i&&Object.keys(i).forEach(function(t){var o=i[t];o&&Object(I.a)(o)==="object"?(r[t]=r[t]||{},e(r[t],o)):r[t]=o})}for(var a=arguments.length,n=new Array(a),l=0;l<a;l++)n[l]=arguments[l];return n.forEach(function(r){e(p,r)}),p}function _(p){return p!=null}},sboe:function(j,W,y){"use strict";y.d(W,"a",function(){return T});var I=y("q1tI"),v=y.n(I),T=I.createContext(null)},sjKO:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=T;var I=30,v=12;function T(b,g){var s,_,p,e,a,n,l,r,i,t,o,c,d,f,h,u,E,x,O,C,w,S,D,R,P;s=b.state,_=b.next_in,R=b.input,p=_+(b.avail_in-5),e=b.next_out,P=b.output,a=e-(g-b.avail_out),n=e+(b.avail_out-257),l=s.dmax,r=s.wsize,i=s.whave,t=s.wnext,o=s.window,c=s.hold,d=s.bits,f=s.lencode,h=s.distcode,u=(1<<s.lenbits)-1,E=(1<<s.distbits)-1;e:do{d<15&&(c+=R[_++]<<d,d+=8,c+=R[_++]<<d,d+=8),x=f[c&u];t:for(;;){if(O=x>>>24,c>>>=O,d-=O,O=x>>>16&255,O===0)P[e++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(d<O&&(c+=R[_++]<<d,d+=8),C+=c&(1<<O)-1,c>>>=O,d-=O),d<15&&(c+=R[_++]<<d,d+=8,c+=R[_++]<<d,d+=8),x=h[c&E];n:for(;;){if(O=x>>>24,c>>>=O,d-=O,O=x>>>16&255,O&16){if(w=x&65535,O&=15,d<O&&(c+=R[_++]<<d,d+=8,d<O&&(c+=R[_++]<<d,d+=8)),w+=c&(1<<O)-1,w>l){b.msg="invalid distance too far back",s.mode=I;break e}if(c>>>=O,d-=O,O=e-a,w>O){if(O=w-O,O>i&&s.sane){b.msg="invalid distance too far back",s.mode=I;break e}if(S=0,D=o,t===0){if(S+=r-O,O<C){C-=O;do P[e++]=o[S++];while(--O);S=e-w,D=P}}else if(t<O){if(S+=r+t-O,O-=t,O<C){C-=O;do P[e++]=o[S++];while(--O);if(S=0,t<C){O=t,C-=O;do P[e++]=o[S++];while(--O);S=e-w,D=P}}}else if(S+=t-O,O<C){C-=O;do P[e++]=o[S++];while(--O);S=e-w,D=P}for(;C>2;)P[e++]=D[S++],P[e++]=D[S++],P[e++]=D[S++],C-=3;C&&(P[e++]=D[S++],C>1&&(P[e++]=D[S++]))}else{S=e-w;do P[e++]=P[S++],P[e++]=P[S++],P[e++]=P[S++],C-=3;while(C>2);C&&(P[e++]=P[S++],C>1&&(P[e++]=P[S++]))}}else if((O&64)===0){x=h[(x&65535)+(c&(1<<O)-1)];continue n}else{b.msg="invalid distance code",s.mode=I;break e}break}}else if((O&64)===0){x=f[(x&65535)+(c&(1<<O)-1)];continue t}else if(O&32){s.mode=v;break e}else{b.msg="invalid literal/length code",s.mode=I;break e}break}}while(_<p&&e<n);C=d>>3,_-=C,d-=C<<3,c&=(1<<d)-1,b.next_in=_,b.next_out=e,b.avail_in=_<p?5+(p-_):5-(_-p),b.avail_out=e<n?257+(n-e):257-(e-n),s.hold=c,s.bits=d;return}},t23M:function(j,W,y){"use strict";var I=y("VTBJ"),v=y("1OyB"),T=y("vuIU"),b=y("Ji7U"),g=y("LK+K"),s=y("q1tI"),_=y.n(s),p=y("m+aA"),e=y("Zm9Q"),a=y("Kwbf"),n=y("c+Xe"),l=y("bdgK"),r="rc-observer-key",i=function(t){Object(b.a)(c,t);var o=Object(g.a)(c);function c(){var d;return Object(v.a)(this,c),d=o.apply(this,arguments),d.resizeObserver=null,d.childNode=null,d.currentElement=null,d.state={width:0,height:0,offsetHeight:0,offsetWidth:0},d.onResize=function(f){var h=d.props.onResize,u=f[0].target,E=u.getBoundingClientRect(),x=E.width,O=E.height,C=u.offsetWidth,w=u.offsetHeight,S=Math.floor(x),D=Math.floor(O);if(d.state.width!==S||d.state.height!==D||d.state.offsetWidth!==C||d.state.offsetHeight!==w){var R={width:S,height:D,offsetWidth:C,offsetHeight:w};d.setState(R),h&&Promise.resolve().then(function(){h(Object(I.a)(Object(I.a)({},R),{},{offsetWidth:C,offsetHeight:w}))})}},d.setChildNode=function(f){d.childNode=f},d}return Object(T.a)(c,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var f=this.props.disabled;if(f){this.destroyObserver();return}var h=Object(p.a)(this.childNode||this),u=h!==this.currentElement;u&&(this.destroyObserver(),this.currentElement=h),!this.resizeObserver&&h&&(this.resizeObserver=new l.default(this.onResize),this.resizeObserver.observe(h))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var f=this.props.children,h=Object(e.a)(f);if(h.length>1)Object(a.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(h.length===0)return Object(a.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var u=h[0];if(s.isValidElement(u)&&Object(n.c)(u)){var E=u.ref;h[0]=s.cloneElement(u,{ref:Object(n.a)(E,this.setChildNode)})}return h.length===1?h[0]:h.map(function(x,O){return!s.isValidElement(x)||"key"in x&&x.key!==null?x:s.cloneElement(x,{key:"".concat(r,"-").concat(O)})})}}]),c}(s.Component);i.displayName="ResizeObserver",W.a=i},t9D7:function(j,W,y){"use strict";y.d(W,"b",function(){return _}),y.d(W,"g",function(){return e}),y.d(W,"d",function(){return a}),y.d(W,"e",function(){return n}),y.d(W,"a",function(){return l}),y.d(W,"f",function(){return t}),y.d(W,"c",function(){return o});var I=y("Vhoy"),v=y("MI8n"),T=y("pmY6"),b=y("Cg/j"),g=y("ic2d"),s=y("nEHx");const _=Object(b.c)("themeService");var p;(function(c){function d(f){return f&&typeof f=="object"&&typeof f.id=="string"}c.isThemeColor=d})(p||(p={}));function e(c){return{id:c}}var a;(function(c){function d(O){return O&&typeof O=="object"&&typeof O.id=="string"&&(typeof O.color=="undefined"||p.isThemeColor(O.color))}c.isThemeIcon=d;const f=new RegExp(`^\\$\\((${I.a.iconNameExpression}(?:${I.a.iconModifierExpression})?)\\)$`);function h(O){const C=f.exec(O);if(!C)return;let[,w]=C;return{id:w}}c.fromString=h;function u(O,C){let w=O.id;const S=w.lastIndexOf("~");return S!==-1&&(w=w.substring(0,S)),C&&(w=`${w}~${C}`),{id:w}}c.modify=u;function E(O,C){var w,S;return O.id===C.id&&((w=O.color)===null||w===void 0?void 0:w.id)===((S=C.color)===null||S===void 0?void 0:S.id)}c.isEqual=E;function x(O,C){return{id:O.id,color:C?e(C):void 0}}c.asThemeIcon=x,c.asClassNameArray=I.a.asClassNameArray,c.asClassName=I.a.asClassName,c.asCSSSelector=I.a.asCSSSelector})(a||(a={}));function n(c){switch(c){case s.a.DARK:return"vs-dark";case s.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const l={ThemingContribution:"base.contributions.theming"};class r{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new v.b}onColorThemeChange(c){return this.themingParticipants.push(c),this.onThemingParticipantAddedEmitter.fire(c),Object(T.i)(()=>{const d=this.themingParticipants.indexOf(c);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new r;g.a.add(l.ThemingContribution,i);function t(c){return i.onColorThemeChange(c)}class o extends T.a{constructor(c){super();this.themeService=c,this.theme=c.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(d=>this.onThemeChange(d)))}onThemeChange(c){this.theme=c,this.updateStyles()}updateStyles(){}}},tUsH:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAHGUlEQVRYR7WZW2xcVxWGv3XOjMfj8f2a2ImTNklpCoKASB9aQELNDCBuohJQKA+IkgohUYGEuLy0RUJQUUERSCAaXngAoT5QtaUqiluJB5KWFmgatcq1Nk0c2zO5NLFrezxzZi+0z4xn5sw54xlHYUkjWXuvvdd/1n1tC9dJxWzmDox+WFx5v1F9l8AEMAi4giyBZlXkLHBMSuYf7pY7nxP5kdmsONnMgbW5zK2Oy30ieo8q2zZzFlgW5E/GlA51bH3hlXbPtgVQL2S2l+L6oCpfb/fijfgsUE/04c7RqTOt7msJsJBNf0PgF0Cy1WWb2hdKavQ7HVue//XGH7PBbmEh87iIHmwpuFSCov154DgQdyHmlv9uQSL8PjY61VRGpAZVEe9i+imUTze9/51VuPoO5N6GghfNluqEkX7o74bOjuZQhWdiI1OfFUEbmSIBFnPpp5uCu3QN7M+C2wxZoMN90JeKPiU8Ex+d+kxLgE3NurgMb+VgeXUzsMK8gz1wy/bIO6LMHdBgJSB+GzptwZ04BxqyQI3VdZFEh//zfW/d/4wBY1Drn56HFoqQiMP7dkWCVNUH6gOnCtCmEi9mToEEozVfgGM23zaxTCIBnYkyMLFBIaCl5lo2iubzaH4NPnhLmE+wIbd3PQVVAXq59KFQnisZeO1sZBCIBZVMQjxWFSJbbUwJOvskuG5LV1AUvXksxGfzZGzs8L12wwdYrhB6IsR5ehauLIYvSHUhqa7gupPAee9j/lrpyEEkFW8J0DKoK+iOkRCvGnO7rTg+wGI28yjodwNcuaswPdceOPul43cjowd8fvPWs3DxKYjVtLsRWjOYgv5gdAtyKDZ2+H4foJdLnw/UVq8Eb8zAaiFwryQSSF9PWFasG+c9Pwusl45+E2lQcjOQqgbdtaVxezk2ekev+F0JeiSovbdher49cFZ72+5Bhj8S4DezU+jcE0hHe6Y2/UmwKaiOxOinpDif/j4OjwR2zl4oJ+M6cgb6AwFR3eoYxLntx5HK8V58ACfZpMo0nFAHdOdocFXkEfFymT+r6hcDO6+egbVidSlgWnEhOYF0jkPnBCTHkZ69kQD18nHwLoN3CV2dheUZ0CaAVTG7GiJa5G9SyKZfFdhXlWAT68snAwLd274CPTuRrkmI92/k7633vCV05TyszKALzwbdYksfdCVqioGzUsymc0Atzq3mrAbXKebiDA4gE59HRj7aGkAbHDp/GF14EiTYCpjhHuit1QnbmVuAVue1rGq7lNdnal9Rl/Nk/F5k9M42IDRnMRdewLzxO5/BL429PVWgZqALBrqDgVLMpoMFdiUPx6erTM5AH8QrkSgOsu1ryNAHrgukZl+idPyXoMaPbh9cXc9ohlKhbke8bGZR0Vp82xz4r1M1gEMDwbLlppDJ+5C+WzcFUq+8Tum1n0Nx2c8GjgXXUA7N+AB01tKSb2Ivmz6jsDsg7d+ny90x4IwMhXyF+CCy436ke7ItkLr0X0rHHoXViz4oxyb7iCpjbhoJyBI/SHKZ51D9eECS9UHri80AWv/Z+jlkLN0WQFv6zKk/gCM4fb01l6k/rQbTWE1sminmMj9F9QcBSeeyMHe5DLDRxBVG2fFVZOD2tgBq9p++eaWvt9yWRVDzRD1/4JPqyF8DZ+oiORAkdUzO7m9Dd0Q/FyV88U1KL/0w2l0q/NrfhQ42RLAtdaoPOV7uqO2pgu3EyXP+3CE93UiyMyTWefdP2k/ahWt4fz/o51N/2guRYsJ9YblZsLxeNvO40jBeXrwKb8754CzIRnL2/SawpCvzZT8rFXD2fAnp2xPY9w5/AenvRTrCJtbuBDraF+APtFuF+bv2i+O8HEJx+jwsruIMhstbFWD+Emb2ecz0X2rH43FkaD/OzXdXI90HGGENtRPCTQ1Ngm1k6xvWihb/qOiXQyBfOeV3z7bFr5Kbwtn7IJo9Sun0E1BcKm9ZYJa3I+4PR5o3OFsP4Ex+DO/F7yFxL9iJ2wZh5wi4wQE/1PLbu/O59B4XTqB1Zc9urOSRk7O+eaqUnACnE73wHx+I3/Mlk5ERqmsFkGEwCoV5pLfmLmZioDzh1VOzocnyFBYOfEtEfhXSYtFDZnJIQ3LVa4uVia5OuxEhYJf8KS6fR/qtrylmcjgyYJqOnev3Rk53lU1n2jY+FbLDYRuTWyNef0jaPuwn7UZqObivH9jo6UPmriCrxXD5a6K52rKiqQQ61qSfbPfpwzdHq8cjY5BLS8jymrXWhqRWUz2dqJ3aGoKhenCzj0ftmLt6uX0OKXjImlcZExRs0MRd1AZAM1CVC67r+a1eJX7gOPJYKLpbmrQFw414wFwXYVNQTOXhyDx5HUBv6BNwQJvzd+13HPdgBWiTh76miP9/j+ihVKEPOaWFI59Q1/kQsE9Ud4OMrXfmN/LfEP8D/KDA5doYpwkAAAAASUVORK5CYII="},tWlo:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},taB1:function(j,W,y){j.exports={flex_box_center:"flex_box_center___ERnuX",flex_space_between:"flex_space_between___1CjDP",flex_box_vertical_center:"flex_box_vertical_center___71N1n",flex_box_center_end:"flex_box_center_end___3etWq",flex_box_column:"flex_box_column___26rae",files:"files___2Jd2C"}},uGsb:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("MlIO"),y("1uat"))})(this,function(I){return function(){var v=I,T=v.x64,b=T.Word,g=T.WordArray,s=v.algo,_=s.SHA512,p=s.SHA384=_.extend({_doReset:function(){this._hash=new g.init([new b.init(3418070365,3238371032),new b.init(1654270250,914150663),new b.init(2438529370,812702999),new b.init(355462360,4144912697),new b.init(1731405415,4290775857),new b.init(2394180231,1750603025),new b.init(3675008525,1694076839),new b.init(1203062813,3204075428)])},_doFinalize:function(){var e=_._doFinalize.call(this);return e.sigBytes-=16,e}});v.SHA384=_._createHelper(p),v.HmacSHA384=_._createHmacHelper(p)}(),I.SHA384})},uGxW:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("OLod"))})(this,function(I){return I.pad.NoPadding={pad:function(){},unpad:function(){}},I.pad.NoPadding})},uHBg:function(j,W,y){j.exports={iconWrapper:"iconWrapper___uMJuL",minusIcon:"minusIcon___2jSd-",arrowIcon:"arrowIcon___17ecB"}},uQRt:function(j,W,y){j.exports=I;function I(){return y("gaXo"),{}}},ulZh:function(j,W,y){typeof window!="undefined"&&function(v,T){j.exports=T()}(this,function(){return function(I){var v={};function T(b){if(v[b])return v[b].exports;var g=v[b]={i:b,l:!1,exports:{}};return I[b].call(g.exports,g,g.exports,T),g.l=!0,g.exports}return T.m=I,T.c=v,T.d=function(b,g,s){T.o(b,g)||Object.defineProperty(b,g,{enumerable:!0,get:s})},T.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},T.t=function(b,g){if(g&1&&(b=T(b)),g&8)return b;if(g&4&&typeof b=="object"&&b&&b.__esModule)return b;var s=Object.create(null);if(T.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:b}),g&2&&typeof b!="string")for(var _ in b)T.d(s,_,function(p){return b[p]}.bind(null,_));return s},T.n=function(b){var g=b&&b.__esModule?function(){return b.default}:function(){return b};return T.d(g,"a",g),g},T.o=function(b,g){return Object.prototype.hasOwnProperty.call(b,g)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(I,v,T){"use strict";var b=Object.prototype.hasOwnProperty,g="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(g=!1));function _(n,l,r){this.fn=n,this.context=l,this.once=r||!1}function p(n,l,r,i,t){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new _(r,i||n,t),c=g?g+l:l;return n._events[c]?n._events[c].fn?n._events[c]=[n._events[c],o]:n._events[c].push(o):(n._events[c]=o,n._eventsCount++),n}function e(n,l){--n._eventsCount===0?n._events=new s:delete n._events[l]}function a(){this._events=new s,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],r,i;if(this._eventsCount===0)return l;for(i in r=this._events)b.call(r,i)&&l.push(g?i.slice(1):i);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(r)):l},a.prototype.listeners=function(l){var r=g?g+l:l,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var t=0,o=i.length,c=new Array(o);t<o;t++)c[t]=i[t].fn;return c},a.prototype.listenerCount=function(l){var r=g?g+l:l,i=this._events[r];return i?i.fn?1:i.length:0},a.prototype.emit=function(l,r,i,t,o,c){var d=g?g+l:l;if(!this._events[d])return!1;var f=this._events[d],h=arguments.length,u,E;if(f.fn){f.once&&this.removeListener(l,f.fn,void 0,!0);switch(h){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,r),!0;case 3:return f.fn.call(f.context,r,i),!0;case 4:return f.fn.call(f.context,r,i,t),!0;case 5:return f.fn.call(f.context,r,i,t,o),!0;case 6:return f.fn.call(f.context,r,i,t,o,c),!0}for(E=1,u=new Array(h-1);E<h;E++)u[E-1]=arguments[E];f.fn.apply(f.context,u)}else{var x=f.length,O;for(E=0;E<x;E++){f[E].once&&this.removeListener(l,f[E].fn,void 0,!0);switch(h){case 1:f[E].fn.call(f[E].context);break;case 2:f[E].fn.call(f[E].context,r);break;case 3:f[E].fn.call(f[E].context,r,i);break;case 4:f[E].fn.call(f[E].context,r,i,t);break;default:if(!u)for(O=1,u=new Array(h-1);O<h;O++)u[O-1]=arguments[O];f[E].fn.apply(f[E].context,u)}}}return!0},a.prototype.on=function(l,r,i){return p(this,l,r,i,!1)},a.prototype.once=function(l,r,i){return p(this,l,r,i,!0)},a.prototype.removeListener=function(l,r,i,t){var o=g?g+l:l;if(!this._events[o])return this;if(!r)return e(this,o),this;var c=this._events[o];if(c.fn)c.fn===r&&(!t||c.once)&&(!i||c.context===i)&&e(this,o);else{for(var d=0,f=[],h=c.length;d<h;d++)(c[d].fn!==r||t&&!c[d].once||i&&c[d].context!==i)&&f.push(c[d]);f.length?this._events[o]=f.length===1?f[0]:f:e(this,o)}return this},a.prototype.removeAllListeners=function(l){var r;return l?(r=g?g+l:l,this._events[r]&&e(this,r)):(this._events=new s,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=g,a.EventEmitter=a,I.exports=a},"./node_modules/url-toolkit/src/url-toolkit.js":function(I,v,T){(function(b){var g=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,s=/^([^\/?#]*)([^]*)$/,_=/(?:\/|^)\.(?=\/)/g,p=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(a,n,l){if(l=l||{},a=a.trim(),n=n.trim(),!n){if(!l.alwaysNormalize)return a;var r=e.parseURL(a);if(!r)throw new Error("Error trying to parse base URL.");return r.path=e.normalizePath(r.path),e.buildURLFromParts(r)}var i=e.parseURL(n);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return l.alwaysNormalize?(i.path=e.normalizePath(i.path),e.buildURLFromParts(i)):n;var t=e.parseURL(a);if(!t)throw new Error("Error trying to parse base URL.");if(!t.netLoc&&t.path&&t.path[0]!=="/"){var o=s.exec(t.path);t.netLoc=o[1],t.path=o[2]}t.netLoc&&!t.path&&(t.path="/");var c={scheme:t.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(c.netLoc=t.netLoc,i.path[0]!=="/"))if(!i.path)c.path=t.path,i.params||(c.params=t.params,i.query||(c.query=t.query));else{var d=t.path,f=d.substring(0,d.lastIndexOf("/")+1)+i.path;c.path=e.normalizePath(f)}return c.path===null&&(c.path=l.alwaysNormalize?e.normalizePath(i.path):i.path),e.buildURLFromParts(c)},parseURL:function(a){var n=g.exec(a);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(a){for(a=a.split("").reverse().join("").replace(_,"");a.length!==(a=a.replace(p,"")).length;);return a.split("").reverse().join("")},buildURLFromParts:function(a){return a.scheme+a.netLoc+a.path+a.params+a.query+a.fragment}};I.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(I,v,T){function b(l){var r={};function i(o){if(r[o])return r[o].exports;var c=r[o]={i:o,l:!1,exports:{}};return l[o].call(c.exports,c,c.exports,i),c.l=!0,c.exports}i.m=l,i.c=r,i.i=function(o){return o},i.d=function(o,c,d){i.o(o,c)||Object.defineProperty(o,c,{configurable:!1,enumerable:!0,get:d})},i.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},i.n=function(o){var c=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(c,"a",c),c},i.o=function(o,c){return Object.prototype.hasOwnProperty.call(o,c)},i.p="/",i.oe=function(o){throw console.error(o),o};var t=i(i.s=ENTRY_MODULE);return t.default||t}var g="[\\.|\\-|\\+|\\w|/|@]+",s="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+g+").*?\\)";function _(l){return(l+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function p(l){return!isNaN(1*l)}function e(l,r,i){var t={};t[i]=[];var o=r.toString(),c=o.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!c)return t;for(var d=c[1],f=new RegExp("(\\\\n|\\W)"+_(d)+s,"g"),h;h=f.exec(o);){if(h[3]==="dll-reference")continue;t[i].push(h[3])}for(f=new RegExp("\\("+_(d)+'\\("(dll-reference\\s('+g+'))"\\)\\)'+s,"g");h=f.exec(o);)l[h[2]]||(t[i].push(h[1]),l[h[2]]=T(h[1]).m),t[h[2]]=t[h[2]]||[],t[h[2]].push(h[4]);for(var u=Object.keys(t),E=0;E<u.length;E++)for(var x=0;x<t[u[E]].length;x++)p(t[u[E]][x])&&(t[u[E]][x]=1*t[u[E]][x]);return t}function a(l){var r=Object.keys(l);return r.reduce(function(i,t){return i||l[t].length>0},!1)}function n(l,r){for(var i={main:[r]},t={main:[]},o={main:{}};a(i);)for(var c=Object.keys(i),d=0;d<c.length;d++){var f=c[d],h=i[f],u=h.pop();if(o[f]=o[f]||{},o[f][u]||!l[f][u])continue;o[f][u]=!0,t[f]=t[f]||[],t[f].push(u);for(var E=e(l,l[f][u],f),x=Object.keys(E),O=0;O<x.length;O++)i[x[O]]=i[x[O]]||[],i[x[O]]=i[x[O]].concat(E[x[O]])}return t}I.exports=function(l,r){r=r||{};var i={main:T.m},t=r.all?{main:Object.keys(i.main)}:n(i,l),o="";Object.keys(t).filter(function(u){return u!=="main"}).forEach(function(u){for(var E=0;t[u][E];)E++;t[u].push(E),i[u][E]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",o=o+"var "+u+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(E))+")({"+t[u].map(function(x){return""+JSON.stringify(x)+": "+i[u][x].toString()}).join(",")+`});
`}),o=o+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(l))+")({"+t.main.map(function(u){return""+JSON.stringify(u)+": "+i.main[u].toString()}).join(",")+"}))(self);";var c=new window.Blob([o],{type:"text/javascript"});if(r.bare)return c;var d=window.URL||window.webkitURL||window.mozURL||window.msURL,f=d.createObjectURL(c),h=new window.Worker(f);return h.objectURL=f,h}},"./src/config.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"hlsDefaultConfig",function(){return O}),T.d(v,"mergeConfig",function(){return w}),T.d(v,"enableStreamingMode",function(){return S});var b=T("./src/controller/abr-controller.ts"),g=T("./src/controller/audio-stream-controller.ts"),s=T("./src/controller/audio-track-controller.ts"),_=T("./src/controller/subtitle-stream-controller.ts"),p=T("./src/controller/subtitle-track-controller.ts"),e=T("./src/controller/buffer-controller.ts"),a=T("./src/controller/timeline-controller.ts"),n=T("./src/controller/cap-level-controller.ts"),l=T("./src/controller/fps-controller.ts"),r=T("./src/controller/eme-controller.ts"),i=T("./src/controller/cmcd-controller.ts"),t=T("./src/utils/xhr-loader.ts"),o=T("./src/utils/fetch-loader.ts"),c=T("./src/utils/cues.ts"),d=T("./src/utils/mediakeys-helper.ts"),f=T("./src/utils/logger.ts");function h(){return h=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var N in P)Object.prototype.hasOwnProperty.call(P,N)&&(D[N]=P[N])}return D},h.apply(this,arguments)}function u(D,R){var P=Object.keys(D);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(D);R&&(N=N.filter(function(M){return Object.getOwnPropertyDescriptor(D,M).enumerable})),P.push.apply(P,N)}return P}function E(D){for(var R=1;R<arguments.length;R++){var P=arguments[R]!=null?arguments[R]:{};R%2?u(Object(P),!0).forEach(function(N){x(D,N,P[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(N){Object.defineProperty(D,N,Object.getOwnPropertyDescriptor(P,N))})}return D}function x(D,R,P){return R in D?Object.defineProperty(D,R,{value:P,enumerable:!0,configurable:!0,writable:!0}):D[R]=P,D}var O=E(E({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:t.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:b.default,bufferController:e.default,capLevelController:n.default,fpsController:l.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:d.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},C()),{},{subtitleStreamController:_.SubtitleStreamController,subtitleTrackController:p.default,timelineController:a.TimelineController,audioStreamController:g.default,audioTrackController:s.default,emeController:r.default,cmcdController:i.default});function C(){return{cueHandler:c.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function w(D,R){if((R.liveSyncDurationCount||R.liveMaxLatencyDurationCount)&&(R.liveSyncDuration||R.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(R.liveMaxLatencyDurationCount!==void 0&&(R.liveSyncDurationCount===void 0||R.liveMaxLatencyDurationCount<=R.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(R.liveMaxLatencyDuration!==void 0&&(R.liveSyncDuration===void 0||R.liveMaxLatencyDuration<=R.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return h({},D,R)}function S(D){var R=D.loader;if(R!==o.default&&R!==t.default)f.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),D.progressive=!1;else{var P=Object(o.fetchSupported)();P&&(D.loader=o.default,D.progressive=!0,D.enableSoftwareAES=!0,f.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/polyfills/number.ts"),g=T("./src/utils/ewma-bandwidth-estimator.ts"),s=T("./src/events.ts"),_=T("./src/utils/buffer-helper.ts"),p=T("./src/errors.ts"),e=T("./src/types/loader.ts"),a=T("./src/utils/logger.ts");function n(i,t){for(var o=0;o<t.length;o++){var c=t[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}function l(i,t,o){return t&&n(i.prototype,t),o&&n(i,o),i}var r=function(){function i(o){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=o;var c=o.config;this.bwEstimator=new g.default(c.abrEwmaSlowVoD,c.abrEwmaFastVoD,c.abrEwmaDefaultEstimate),this.registerListeners()}var t=i.prototype;return t.registerListeners=function(){var c=this.hls;c.on(s.Events.FRAG_LOADING,this.onFragLoading,this),c.on(s.Events.FRAG_LOADED,this.onFragLoaded,this),c.on(s.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.on(s.Events.LEVEL_LOADED,this.onLevelLoaded,this),c.on(s.Events.ERROR,this.onError,this)},t.unregisterListeners=function(){var c=this.hls;c.off(s.Events.FRAG_LOADING,this.onFragLoading,this),c.off(s.Events.FRAG_LOADED,this.onFragLoaded,this),c.off(s.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.off(s.Events.LEVEL_LOADED,this.onLevelLoaded,this),c.off(s.Events.ERROR,this.onError,this)},t.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},t.onFragLoading=function(c,d){var f=d.frag;if(f.type===e.PlaylistLevelType.MAIN&&!this.timer){var h;this.fragCurrent=f,this.partCurrent=(h=d.part)!=null?h:null,this.timer=self.setInterval(this.onCheck,100)}},t.onLevelLoaded=function(c,d){var f=this.hls.config;d.details.live?this.bwEstimator.update(f.abrEwmaSlowLive,f.abrEwmaFastLive):this.bwEstimator.update(f.abrEwmaSlowVoD,f.abrEwmaFastVoD)},t._abandonRulesCheck=function(){var c=this.fragCurrent,d=this.partCurrent,f=this.hls,h=f.autoLevelEnabled,u=f.config,E=f.media;if(!c||!E)return;var x=d?d.stats:c.stats,O=d?d.duration:c.duration;if(x.aborted){a.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!h||E.paused||!E.playbackRate||!E.readyState)return;var C=performance.now()-x.loading.start,w=Math.abs(E.playbackRate);if(C<=500*O/w)return;var S=f.levels,D=f.minAutoLevel,R=S[c.level],P=x.total||Math.max(x.loaded,Math.round(O*R.maxBitrate/8)),N=Math.max(1,x.bwEstimate?x.bwEstimate/8:x.loaded*1e3/C),M=(P-x.loaded)/N,z=E.currentTime,X=(_.BufferHelper.bufferInfo(E,z,u.maxBufferHole).end-z)/w;if(X>=2*O/w||M<=X)return;var k=Number.POSITIVE_INFINITY,F;for(F=c.level-1;F>D;F--){var U=S[F].maxBitrate;if(k=O*U/(8*.8*N),k<X)break}if(k>=M)return;var L=this.bwEstimator.getEstimate();a.logger.warn("Fragment "+c.sn+(d?" part "+d.index:"")+" of level "+c.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+F+`
Current BW estimate: `+(Object(b.isFiniteNumber)(L)?(L/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+M.toFixed(3)+` s
Estimated load time for the next fragment: `+k.toFixed(3)+` s
Time to underbuffer: `+X.toFixed(3)+" s"),f.nextLoadLevel=F,this.bwEstimator.sample(C,x.loaded),this.clearTimer(),c.loader&&(this.fragCurrent=this.partCurrent=null,c.loader.abort()),f.trigger(s.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:c,part:d,stats:x})},t.onFragLoaded=function(c,d){var f=d.frag,h=d.part;if(f.type===e.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(f.sn)){var u=h?h.stats:f.stats,E=h?h.duration:f.duration;if(this.clearTimer(),this.lastLoadedFragLevel=f.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var x=this.hls.levels[f.level],O=(x.loaded?x.loaded.bytes:0)+u.loaded,C=(x.loaded?x.loaded.duration:0)+E;x.loaded={bytes:O,duration:C},x.realBitrate=Math.round(8*O/C)}if(f.bitrateTest){var w={stats:u,frag:f,part:h,id:f.type};this.onFragBuffered(s.Events.FRAG_BUFFERED,w),f.bitrateTest=!1}}},t.onFragBuffered=function(c,d){var f=d.frag,h=d.part,u=h?h.stats:f.stats;if(u.aborted)return;if(f.type!==e.PlaylistLevelType.MAIN||f.sn==="initSegment")return;var E=u.parsing.end-u.loading.start;this.bwEstimator.sample(E,u.loaded),u.bwEstimate=this.bwEstimator.getEstimate(),f.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},t.onError=function(c,d){switch(d.details){case p.ErrorDetails.FRAG_LOAD_ERROR:case p.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},t.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},t.getNextABRAutoLevel=function(){var c=this.fragCurrent,d=this.partCurrent,f=this.hls,h=f.maxAutoLevel,u=f.config,E=f.minAutoLevel,x=f.media,O=d?d.duration:c?c.duration:0,C=x?x.currentTime:0,w=x&&x.playbackRate!==0?Math.abs(x.playbackRate):1,S=this.bwEstimator?this.bwEstimator.getEstimate():u.abrEwmaDefaultEstimate,D=(_.BufferHelper.bufferInfo(x,C,u.maxBufferHole).end-C)/w,R=this.findBestLevel(S,E,h,D,u.abrBandWidthFactor,u.abrBandWidthUpFactor);if(R>=0)return R;a.logger.trace((D?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var P=O?Math.min(O,u.maxStarvationDelay):u.maxStarvationDelay,N=u.abrBandWidthFactor,M=u.abrBandWidthUpFactor;if(!D){var z=this.bitrateTestDelay;if(z){var X=O?Math.min(O,u.maxLoadingDelay):u.maxLoadingDelay;P=X-z,a.logger.trace("bitrate test took "+Math.round(1e3*z)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*P)+" ms"),N=M=1}}return R=this.findBestLevel(S,E,h,D+P,N,M),Math.max(R,0)},t.findBestLevel=function(c,d,f,h,u,E){for(var x,O=this.fragCurrent,C=this.partCurrent,w=this.lastLoadedFragLevel,S=this.hls.levels,D=S[w],R=!!(D!=null&&(x=D.details)!==null&&x!==void 0&&x.live),P=D==null?void 0:D.codecSet,N=C?C.duration:O?O.duration:0,M=f;M>=d;M--){var z=S[M];if(!z||P&&z.codecSet!==P)continue;var X=z.details,k=(C?X==null?void 0:X.partTarget:X==null?void 0:X.averagetargetduration)||N,F=void 0;M<=w?F=u*c:F=E*c;var U=S[M].maxBitrate,L=U*k/F;if(a.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+M+"/"+Math.round(F)+"/"+U+"/"+k+"/"+h+"/"+L),F>U&&(!L||R&&!this.bitrateTestDelay||L<h))return M}return-1},l(i,[{key:"nextAutoLevel",get:function(){var c=this._nextAutoLevel,d=this.bwEstimator;if(c!==-1&&(!d||!d.canEstimate()))return c;var f=this.getNextABRAutoLevel();return c!==-1&&(f=Math.min(c,f)),f},set:function(c){this._nextAutoLevel=c}}]),i}();v.default=r},"./src/controller/audio-stream-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/polyfills/number.ts"),g=T("./src/controller/base-stream-controller.ts"),s=T("./src/events.ts"),_=T("./src/utils/buffer-helper.ts"),p=T("./src/controller/fragment-tracker.ts"),e=T("./src/types/level.ts"),a=T("./src/types/loader.ts"),n=T("./src/loader/fragment.ts"),l=T("./src/demux/chunk-cache.ts"),r=T("./src/demux/transmuxer-interface.ts"),i=T("./src/types/transmuxer.ts"),t=T("./src/controller/fragment-finders.ts"),o=T("./src/utils/discontinuities.ts"),c=T("./src/errors.ts"),d=T("./src/utils/logger.ts");function f(){return f=Object.assign||function(O){for(var C=1;C<arguments.length;C++){var w=arguments[C];for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(O[S]=w[S])}return O},f.apply(this,arguments)}function h(O,C){O.prototype=Object.create(C.prototype),O.prototype.constructor=O,u(O,C)}function u(O,C){return u=Object.setPrototypeOf||function(S,D){return S.__proto__=D,S},u(O,C)}var E=100,x=function(O){h(C,O);function C(S,D){var R;return R=O.call(this,S,D,"[audio-stream-controller]")||this,R.videoBuffer=null,R.videoTrackCC=-1,R.waitingVideoCC=-1,R.audioSwitch=!1,R.trackId=-1,R.waitingData=null,R.mainDetails=null,R.bufferFlushed=!1,R._registerListeners(),R}var w=C.prototype;return w.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},w._registerListeners=function(){var D=this.hls;D.on(s.Events.MEDIA_ATTACHED,this.onMediaAttached,this),D.on(s.Events.MEDIA_DETACHING,this.onMediaDetaching,this),D.on(s.Events.MANIFEST_LOADING,this.onManifestLoading,this),D.on(s.Events.LEVEL_LOADED,this.onLevelLoaded,this),D.on(s.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),D.on(s.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),D.on(s.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),D.on(s.Events.ERROR,this.onError,this),D.on(s.Events.BUFFER_RESET,this.onBufferReset,this),D.on(s.Events.BUFFER_CREATED,this.onBufferCreated,this),D.on(s.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),D.on(s.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),D.on(s.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var D=this.hls;D.off(s.Events.MEDIA_ATTACHED,this.onMediaAttached,this),D.off(s.Events.MEDIA_DETACHING,this.onMediaDetaching,this),D.off(s.Events.MANIFEST_LOADING,this.onManifestLoading,this),D.off(s.Events.LEVEL_LOADED,this.onLevelLoaded,this),D.off(s.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),D.off(s.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),D.off(s.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),D.off(s.Events.ERROR,this.onError,this),D.off(s.Events.BUFFER_RESET,this.onBufferReset,this),D.off(s.Events.BUFFER_CREATED,this.onBufferCreated,this),D.off(s.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),D.off(s.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),D.off(s.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onInitPtsFound=function(D,R){var P=R.frag,N=R.id,M=R.initPTS;if(N==="main"){var z=P.cc;this.initPTS[P.cc]=M,this.log("InitPTS for cc: "+z+" found from main: "+M),this.videoTrackCC=z,this.state===g.State.WAITING_INIT_PTS&&this.tick()}},w.startLoad=function(D){if(!this.levels){this.startPosition=D,this.state=g.State.STOPPED;return}var R=this.lastCurrentTime;this.stopLoad(),this.setInterval(E),this.fragLoadError=0,R>0&&D===-1?(this.log("Override startPosition with lastCurrentTime @"+R.toFixed(3)),this.state=g.State.IDLE):(this.loadedmetadata=!1,this.state=g.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=D,this.tick()},w.doTick=function(){switch(this.state){case g.State.IDLE:this.doTickIdle();break;case g.State.WAITING_TRACK:{var D,R=this.levels,P=this.trackId,N=R==null||((D=R[P])===null||D===void 0)?void 0:D.details;if(N){if(this.waitForCdnTuneIn(N))break;this.state=g.State.WAITING_INIT_PTS}break}case g.State.FRAG_LOADING_WAITING_RETRY:{var M,z=performance.now(),X=this.retryDate;(!X||z>=X||(M=this.media)!==null&&M!==void 0&&M.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=g.State.IDLE);break}case g.State.WAITING_INIT_PTS:{var k=this.waitingData;if(k){var F=k.frag,U=k.part,L=k.cache,B=k.complete;if(this.initPTS[F.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=g.State.FRAG_LOADING;var Z=L.flush(),re={frag:F,part:U,payload:Z,networkDetails:null};this._handleFragmentLoadProgress(re),B&&O.prototype._handleFragmentLoadComplete.call(this,re)}else if(this.videoTrackCC!==this.waitingVideoCC)d.logger.log("Waiting fragment cc ("+F.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var me=this.getLoadPosition(),Ee=_.BufferHelper.bufferInfo(this.mediaBuffer,me,this.config.maxBufferHole),De=Object(t.fragmentWithinToleranceTest)(Ee.end,this.config.maxFragLookUpTolerance,F);De<0&&(d.logger.log("Waiting fragment cc ("+F.cc+") @ "+F.start+" cancelled because another fragment at "+Ee.end+" is needed"),this.clearWaitingFragment())}}else this.state=g.State.IDLE}}this.onTickEnd()},w.clearWaitingFragment=function(){var D=this.waitingData;D&&(this.fragmentTracker.removeFragment(D.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=g.State.IDLE)},w.onTickEnd=function(){var D=this.media;if(!D||!D.readyState)return;var R=this.mediaBuffer?this.mediaBuffer:D,P=R.buffered;!this.loadedmetadata&&P.length&&(this.loadedmetadata=!0),this.lastCurrentTime=D.currentTime},w.doTickIdle=function(){var D,R,P=this.hls,N=this.levels,M=this.media,z=this.trackId,X=P.config;if(!N||!N[z])return;if(!M&&(this.startFragRequested||!X.startFragPrefetch))return;var k=N[z],F=k.details;if(!F||F.live&&this.levelLastLoaded!==z||this.waitForCdnTuneIn(F)){this.state=g.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,a.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,a.PlaylistLevelType.AUDIO);if(U===null)return;var L=U.len,B=this.getMaxBufferLength(),Z=this.audioSwitch;if(L>=B&&!Z)return;if(!Z&&this._streamEnded(U,F)){P.trigger(s.Events.BUFFER_EOS,{type:"audio"}),this.state=g.State.ENDED;return}var re=F.fragments,me=re[0].start,Ee=U.end;if(Z){var De=this.getLoadPosition();Ee=De,F.PTSKnown&&De<me&&((U.end>me||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),M.currentTime=me+.05))}var te=this.getNextFragment(Ee,F);if(!te){this.bufferFlushed=!0;return}((D=te.decryptdata)===null||D===void 0?void 0:D.keyFormat)==="identity"&&!((R=te.decryptdata)!==null&&R!==void 0&&R.key)?this.loadKey(te,F):this.loadFragment(te,F,Ee)},w.getMaxBufferLength=function(){var D=O.prototype.getMaxBufferLength.call(this),R=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,a.PlaylistLevelType.MAIN);return R===null?D:Math.max(D,R.len)},w.onMediaDetaching=function(){this.videoBuffer=null,O.prototype.onMediaDetaching.call(this)},w.onAudioTracksUpdated=function(D,R){var P=R.audioTracks;this.resetTransmuxer(),this.levels=P.map(function(N){return new e.Level(N)})},w.onAudioTrackSwitching=function(D,R){var P=!!R.url;this.trackId=R.id;var N=this.fragCurrent;N!=null&&N.loader&&N.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),P?this.setInterval(E):this.resetTransmuxer(),P?(this.audioSwitch=!0,this.state=g.State.IDLE):this.state=g.State.STOPPED,this.tick()},w.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},w.onLevelLoaded=function(D,R){this.mainDetails=R.details},w.onAudioTrackLoaded=function(D,R){var P,N=this.levels,M=R.details,z=R.id;if(!N){this.warn("Audio tracks were reset while loading level "+z);return}this.log("Track "+z+" loaded ["+M.startSN+","+M.endSN+"],duration:"+M.totalduration);var X=N[z],k=0;if(M.live||(P=X.details)!==null&&P!==void 0&&P.live){var F=this.mainDetails;if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed||!F)return;!X.details&&M.hasProgramDateTime&&F.hasProgramDateTime?(Object(o.alignMediaPlaylistByPDT)(M,F),k=M.fragments[0].start):k=this.alignPlaylists(M,X.details)}X.details=M,this.levelLastLoaded=z,!this.startFragRequested&&(this.mainDetails||!M.live)&&this.setStartPosition(X.details,k),this.state===g.State.WAITING_TRACK&&!this.waitForCdnTuneIn(M)&&(this.state=g.State.IDLE),this.tick()},w._handleFragmentLoadProgress=function(D){var R,P=D.frag,N=D.part,M=D.payload,z=this.config,X=this.trackId,k=this.levels;if(!k){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+P.sn+" of level "+P.level+" will not be buffered");return}var F=k[X];console.assert(F,"Audio track is defined on fragment load progress");var U=F.details;console.assert(U,"Audio track details are defined on fragment load progress");var L=z.defaultAudioCodec||F.audioCodec||"mp4a.40.2",B=this.transmuxer;B||(B=this.transmuxer=new r.default(this.hls,a.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Z=this.initPTS[P.cc],re=(R=P.initSegment)===null||R===void 0?void 0:R.data;if(Z!==void 0){var me=!1,Ee=N?N.index:-1,De=Ee!==-1,te=new i.ChunkMetadata(P.level,P.sn,P.stats.chunkCount,M.byteLength,Ee,De);B.push(M,re,L,"",P,N,U.totalduration,me,te,Z)}else{d.logger.log("Unknown video PTS for cc "+P.cc+", waiting for video PTS before demuxing audio frag "+P.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+X);var Ce=this.waitingData=this.waitingData||{frag:P,part:N,cache:new l.default,complete:!1},we=Ce.cache;we.push(new Uint8Array(M)),this.waitingVideoCC=this.videoTrackCC,this.state=g.State.WAITING_INIT_PTS}},w._handleFragmentLoadComplete=function(D){if(this.waitingData){this.waitingData.complete=!0;return}O.prototype._handleFragmentLoadComplete.call(this,D)},w.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},w.onBufferCreated=function(D,R){var P=R.tracks.audio;P&&(this.mediaBuffer=P.buffer),R.tracks.video&&(this.videoBuffer=R.tracks.video.buffer)},w.onFragBuffered=function(D,R){var P=R.frag,N=R.part;if(P.type!==a.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(P)){this.warn("Fragment "+P.sn+(N?" p: "+N.index:"")+" of level "+P.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}P.sn!=="initSegment"&&(this.fragPrevious=P,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(s.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(P,N)},w.onError=function(D,R){switch(R.details){case c.ErrorDetails.FRAG_LOAD_ERROR:case c.ErrorDetails.FRAG_LOAD_TIMEOUT:case c.ErrorDetails.KEY_LOAD_ERROR:case c.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(a.PlaylistLevelType.AUDIO,R);break;case c.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case c.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==g.State.ERROR&&this.state!==g.State.STOPPED&&(this.state=R.fatal?g.State.ERROR:g.State.IDLE,this.warn(R.details+" while loading frag, switching to "+this.state+" state"));break;case c.ErrorDetails.BUFFER_FULL_ERROR:if(R.parent==="audio"&&(this.state===g.State.PARSING||this.state===g.State.PARSED)){var P=!0,N=this.getFwdBufferInfo(this.mediaBuffer,a.PlaylistLevelType.AUDIO);N&&N.len>.5&&(P=!this.reduceMaxBufferLength(N.len)),P&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},w.onBufferFlushed=function(D,R){var P=R.type;P===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},w._handleTransmuxComplete=function(D){var R,P="audio",N=this.hls,M=D.remuxResult,z=D.chunkMeta,X=this.getCurrentContext(z);if(!X){this.warn("The loading context changed while buffering fragment "+z.sn+" of level "+z.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(z.level);return}var k=X.frag,F=X.part,U=M.audio,L=M.text,B=M.id3,Z=M.initSegment;if(this.fragContextChanged(k))return;if(this.state=g.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),Z!=null&&Z.tracks&&(this._bufferInitSegment(Z.tracks,k,z),N.trigger(s.Events.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:P,tracks:Z.tracks})),U){var re=U.startPTS,me=U.endPTS,Ee=U.startDTS,De=U.endDTS;F&&(F.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:re,endPTS:me,startDTS:Ee,endDTS:De}),k.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,re,me,Ee,De),this.bufferFragmentData(U,k,F,z)}if(B!=null&&(R=B.samples)!==null&&R!==void 0&&R.length){var te=f({frag:k,id:P},B);N.trigger(s.Events.FRAG_PARSING_METADATA,te)}if(L){var Ce=f({frag:k,id:P},L);N.trigger(s.Events.FRAG_PARSING_USERDATA,Ce)}},w._bufferInitSegment=function(D,R,P){if(this.state!==g.State.PARSING)return;D.video&&delete D.video;var N=D.audio;if(!N)return;N.levelCodec=N.codec,N.id="audio",this.log("Init audio buffer, container:"+N.container+", codecs[parsed]=["+N.codec+"]"),this.hls.trigger(s.Events.BUFFER_CODECS,D);var M=N.initSegment;if(M!=null&&M.byteLength){var z={type:"audio",frag:R,part:null,chunkMeta:P,parent:R.type,data:M};this.hls.trigger(s.Events.BUFFER_APPENDING,z)}this.tick()},w.loadFragment=function(D,R,P){var N=this.fragmentTracker.getState(D);this.fragCurrent=D,(this.audioSwitch||N===p.FragmentState.NOT_LOADED||N===p.FragmentState.PARTIAL)&&(D.sn==="initSegment"?this._loadInitSegment(D):R.live&&!Object(b.isFiniteNumber)(this.initPTS[D.cc])?(this.log("Waiting for video PTS in continuity counter "+D.cc+" of live stream before loading audio fragment "+D.sn+" of level "+this.trackId),this.state=g.State.WAITING_INIT_PTS):(this.startFragRequested=!0,O.prototype.loadFragment.call(this,D,R,P)))},w.completeAudioSwitch=function(){var D=this.hls,R=this.media,P=this.trackId;R&&(this.log("Switching audio track : flushing all audio"),O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,D.trigger(s.Events.AUDIO_TRACK_SWITCHED,{id:P})},C}(g.default);v.default=x},"./src/controller/audio-track-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/events.ts"),g=T("./src/errors.ts"),s=T("./src/controller/base-playlist-controller.ts"),_=T("./src/types/loader.ts");function p(r,i){for(var t=0;t<i.length;t++){var o=i[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function e(r,i,t){return i&&p(r.prototype,i),t&&p(r,t),r}function a(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,n(r,i)}function n(r,i){return n=Object.setPrototypeOf||function(o,c){return o.__proto__=c,o},n(r,i)}var l=function(r){a(i,r);function i(o){var c;return c=r.call(this,o,"[audio-track-controller]")||this,c.tracks=[],c.groupId=null,c.tracksInGroup=[],c.trackId=-1,c.trackName="",c.selectDefaultTrack=!0,c.registerListeners(),c}var t=i.prototype;return t.registerListeners=function(){var c=this.hls;c.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),c.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),c.on(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),c.on(b.Events.ERROR,this.onError,this)},t.unregisterListeners=function(){var c=this.hls;c.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),c.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),c.off(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),c.off(b.Events.ERROR,this.onError,this)},t.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,r.prototype.destroy.call(this)},t.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},t.onManifestParsed=function(c,d){this.tracks=d.audioTracks||[]},t.onAudioTrackLoaded=function(c,d){var f=d.id,h=d.details,u=this.tracksInGroup[f];if(!u){this.warn("Invalid audio track id "+f);return}var E=u.details;u.details=d.details,this.log("audioTrack "+f+" loaded ["+h.startSN+"-"+h.endSN+"]"),f===this.trackId&&(this.retryCount=0,this.playlistLoaded(f,d,E))},t.onLevelLoading=function(c,d){this.switchLevel(d.level)},t.onLevelSwitching=function(c,d){this.switchLevel(d.level)},t.switchLevel=function(c){var d=this.hls.levels[c];if(!(d!=null&&d.audioGroupIds))return;var f=d.audioGroupIds[d.urlId];if(this.groupId!==f){this.groupId=f;var h=this.tracks.filter(function(E){return!f||E.groupId===f});this.selectDefaultTrack&&!h.some(function(E){return E.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=h;var u={audioTracks:h};this.log("Updating audio tracks, "+h.length+' track(s) found in "'+f+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,u),this.selectInitialTrack()}},t.onError=function(c,d){if(r.prototype.onError.call(this,c,d),d.fatal||!d.context)return;d.context.type===_.PlaylistContextType.AUDIO_TRACK&&d.context.id===this.trackId&&d.context.groupId===this.groupId&&this.retryLoadingOrFail(d)},t.setAudioTrack=function(c){var d=this.tracksInGroup;if(c<0||c>=d.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var f=d[this.trackId];this.log("Now switching to audio-track index "+c);var h=d[c],u=h.id,E=h.groupId,x=E===void 0?"":E,O=h.name,C=h.type,w=h.url;if(this.trackId=c,this.trackName=O,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:u,groupId:x,name:O,type:C,url:w}),h.details&&!h.details.live)return;var S=this.switchParams(h.url,f==null?void 0:f.details);this.loadPlaylist(S)},t.selectInitialTrack=function(){var c=this.tracksInGroup;console.assert(c.length,"Initial audio track should be selected when tracks are known");var d=this.trackName,f=this.findTrackId(d)||this.findTrackId();f!==-1?this.setAudioTrack(f):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},t.findTrackId=function(c){for(var d=this.tracksInGroup,f=0;f<d.length;f++){var h=d[f];if((!this.selectDefaultTrack||h.default)&&(!c||c===h.name))return h.id}return-1},t.loadPlaylist=function(c){var d=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(d)){var f=d.id,h=d.groupId,u=d.url;if(c)try{u=c.addDirectives(u)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("loading audio-track playlist for id: "+f),this.clearTimer(),this.hls.trigger(b.Events.AUDIO_TRACK_LOADING,{url:u,id:f,groupId:h,deliveryDirectives:c||null})}},e(i,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(c){this.selectDefaultTrack=!1,this.setAudioTrack(c)}}]),i}(s.default);v.default=l},"./src/controller/base-playlist-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return e});var b=T("./src/polyfills/number.ts"),g=T("./src/types/level.ts"),s=T("./src/controller/level-helper.ts"),_=T("./src/utils/logger.ts"),p=T("./src/errors.ts"),e=function(){function a(l,r){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=_.logger.log.bind(_.logger,r+":"),this.warn=_.logger.warn.bind(_.logger,r+":"),this.hls=l}var n=a.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(r,i){i.fatal&&i.type===p.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},n.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},n.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},n.stopLoad=function(){this.canLoad=!1,this.clearTimer()},n.switchParams=function(r,i){var t=i==null?void 0:i.renditionReports;if(t)for(var o=0;o<t.length;o++){var c=t[o],d=""+c.URI;if(d===r.substr(-d.length)){var f=parseInt(c["LAST-MSN"]),h=parseInt(c["LAST-PART"]);if(i&&this.hls.config.lowLatencyMode){var u=Math.min(i.age-i.partTarget,i.targetduration);h!==void 0&&u>i.partTarget&&(h+=1)}if(Object(b.isFiniteNumber)(f))return new g.HlsUrlParameters(f,Object(b.isFiniteNumber)(h)?h:void 0,g.HlsSkip.No)}}},n.loadPlaylist=function(r){},n.shouldLoadTrack=function(r){return this.canLoad&&r&&!!r.url&&(!r.details||r.details.live)},n.playlistLoaded=function(r,i,t){var o=this,c=i.details,d=i.stats,f=d.loading.end?Math.max(0,self.performance.now()-d.loading.end):0;if(c.advancedDateTime=Date.now()-f,c.live||t!=null&&t.live){if(c.reloaded(t),t&&this.log("live playlist "+r+" "+(c.advanced?"REFRESHED "+c.lastPartSn+"-"+c.lastPartIndex:"MISSED")),t&&c.fragments.length>0&&Object(s.mergeDetails)(t,c),!this.canLoad||!c.live)return;var h,u=void 0,E=void 0;if(c.canBlockReload&&c.endSN&&c.advanced){var x=this.hls.config.lowLatencyMode,O=c.lastPartSn,C=c.endSN,w=c.lastPartIndex,S=w!==-1,D=O===C,R=x?0:w;S?(u=D?C+1:O,E=D?R:w+1):u=C+1;var P=c.age,N=P+c.ageHeader,M=Math.min(N-c.partTarget,c.targetduration*1.5);if(M>0){if(t&&M>t.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+t.tuneInGoal+" to: "+M+" with playlist age: "+c.age),M=0;else{var z=Math.floor(M/c.targetduration);if(u+=z,E!==void 0){var X=Math.round(M%c.targetduration/c.partTarget);E+=X}this.log("CDN Tune-in age: "+c.ageHeader+"s last advanced "+P.toFixed(2)+"s goal: "+M+" skip sn "+z+" to part "+E)}c.tuneInGoal=M}if(h=this.getDeliveryDirectives(c,i.deliveryDirectives,u,E),x||!D){this.loadPlaylist(h);return}}else h=this.getDeliveryDirectives(c,i.deliveryDirectives,u,E);var k=Object(s.computeReloadInterval)(c,d);u!==void 0&&c.canBlockReload&&(k-=c.partTarget||1),this.log("reload live playlist "+r+" in "+Math.round(k)+" ms"),this.timer=self.setTimeout(function(){return o.loadPlaylist(h)},k)}else this.clearTimer()},n.getDeliveryDirectives=function(r,i,t,o){var c=Object(g.getSkipValue)(r,t);return i!=null&&i.skip&&r.deltaUpdateFailed&&(t=i.msn,o=i.part,c=g.HlsSkip.No),new g.HlsUrlParameters(t,o,c)},n.retryLoadingOrFail=function(r){var i=this,t=this.hls.config,o=this.retryCount<t.levelLoadingMaxRetry;if(o){var c;if(this.retryCount++,r.details.indexOf("LoadTimeOut")>-1&&(c=r.context)!==null&&c!==void 0&&c.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+r.details+'"'),this.loadPlaylist();else{var d=Math.min(Math.pow(2,this.retryCount)*t.levelLoadingRetryDelay,t.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return i.loadPlaylist()},d),this.warn("retry playlist loading #"+this.retryCount+" in "+d+' ms after "'+r.details+'"')}}else this.warn('cannot recover from error "'+r.details+'"'),this.clearTimer(),r.fatal=!0;return o},a}()},"./src/controller/base-stream-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"State",function(){return C}),T.d(v,"default",function(){return w});var b=T("./src/polyfills/number.ts"),g=T("./src/task-loop.ts"),s=T("./src/controller/fragment-tracker.ts"),_=T("./src/utils/buffer-helper.ts"),p=T("./src/utils/logger.ts"),e=T("./src/events.ts"),a=T("./src/errors.ts"),n=T("./src/types/transmuxer.ts"),l=T("./src/utils/mp4-tools.ts"),r=T("./src/utils/discontinuities.ts"),i=T("./src/controller/fragment-finders.ts"),t=T("./src/controller/level-helper.ts"),o=T("./src/loader/fragment-loader.ts"),c=T("./src/crypt/decrypter.ts"),d=T("./src/utils/time-ranges.ts"),f=T("./src/types/loader.ts");function h(S,D){for(var R=0;R<D.length;R++){var P=D[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(S,P.key,P)}}function u(S,D,R){return D&&h(S.prototype,D),R&&h(S,R),S}function E(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function x(S,D){S.prototype=Object.create(D.prototype),S.prototype.constructor=S,O(S,D)}function O(S,D){return O=Object.setPrototypeOf||function(P,N){return P.__proto__=N,P},O(S,D)}var C={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},w=function(S){x(D,S);function D(P,N,M){var z;return z=S.call(this)||this,z.hls=void 0,z.fragPrevious=null,z.fragCurrent=null,z.fragmentTracker=void 0,z.transmuxer=null,z._state=C.STOPPED,z.media=void 0,z.mediaBuffer=void 0,z.config=void 0,z.bitrateTest=!1,z.lastCurrentTime=0,z.nextLoadPosition=0,z.startPosition=0,z.loadedmetadata=!1,z.fragLoadError=0,z.retryDate=0,z.levels=null,z.fragmentLoader=void 0,z.levelLastLoaded=null,z.startFragRequested=!1,z.decrypter=void 0,z.initPTS=[],z.onvseeking=null,z.onvended=null,z.logPrefix="",z.log=void 0,z.warn=void 0,z.logPrefix=M,z.log=p.logger.log.bind(p.logger,M+":"),z.warn=p.logger.warn.bind(p.logger,M+":"),z.hls=P,z.fragmentLoader=new o.default(P.config),z.fragmentTracker=N,z.config=P.config,z.decrypter=new c.default(P,P.config),P.on(e.Events.KEY_LOADED,z.onKeyLoaded,E(z)),z}var R=D.prototype;return R.doTick=function(){this.onTickEnd()},R.onTickEnd=function(){},R.startLoad=function(N){},R.stopLoad=function(){this.fragmentLoader.abort();var N=this.fragCurrent;N&&this.fragmentTracker.removeFragment(N),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=C.STOPPED},R._streamEnded=function(N,M){var z=this.fragCurrent,X=this.fragmentTracker;if(!M.live&&z&&z.sn===M.endSN&&!N.nextStart){var k=X.getState(z);return k===s.FragmentState.PARTIAL||k===s.FragmentState.OK}return!1},R.onMediaAttached=function(N,M){var z=this.media=this.mediaBuffer=M.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),z.addEventListener("seeking",this.onvseeking),z.addEventListener("ended",this.onvended);var X=this.config;this.levels&&X.autoStartLoad&&this.state===C.STOPPED&&this.startLoad(X.startPosition)},R.onMediaDetaching=function(){var N=this.media;N!=null&&N.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),N&&(N.removeEventListener("seeking",this.onvseeking),N.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},R.onMediaSeeking=function(){var N=this.config,M=this.fragCurrent,z=this.media,X=this.mediaBuffer,k=this.state,F=z?z.currentTime:0,U=_.BufferHelper.bufferInfo(X||z,F,N.maxBufferHole);if(this.log("media seeking to "+(Object(b.isFiniteNumber)(F)?F.toFixed(3):F)+", state: "+k),k===C.ENDED)this.resetLoadingState();else if(M&&!U.len){var L=N.maxFragLookUpTolerance,B=M.start-L,Z=M.start+M.duration+L,re=F>Z;(F<B||re)&&(re&&M.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),M.loader.abort()),this.resetLoadingState())}z&&(this.lastCurrentTime=F),!this.loadedmetadata&&!U.len&&(this.nextLoadPosition=this.startPosition=F),this.tickImmediate()},R.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},R.onKeyLoaded=function(N,M){if(this.state!==C.KEY_LOADING||M.frag!==this.fragCurrent||!this.levels)return;this.state=C.IDLE;var z=this.levels[M.frag.level].details;z&&this.loadFragment(M.frag,z,M.frag.start)},R.onHandlerDestroying=function(){this.stopLoad(),S.prototype.onHandlerDestroying.call(this)},R.onHandlerDestroyed=function(){this.state=C.STOPPED,this.hls.off(e.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,S.prototype.onHandlerDestroyed.call(this)},R.loadKey=function(N,M){this.log("Loading key for "+N.sn+" of ["+M.startSN+"-"+M.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+N.level),this.state=C.KEY_LOADING,this.fragCurrent=N,this.hls.trigger(e.Events.KEY_LOADING,{frag:N})},R.loadFragment=function(N,M,z){this._loadFragForPlayback(N,M,z)},R._loadFragForPlayback=function(N,M,z){var X=this,k=function(U){if(X.fragContextChanged(N)){X.warn("Fragment "+N.sn+(U.part?" p: "+U.part.index:"")+" of level "+N.level+" was dropped during download."),X.fragmentTracker.removeFragment(N);return}N.stats.chunkCount++,X._handleFragmentLoadProgress(U)};this._doFragLoad(N,M,z,k).then(function(F){if(!F)return;X.fragLoadError=0;var U=X.state;if(X.fragContextChanged(N)){(U===C.FRAG_LOADING||U===C.BACKTRACKING||!X.fragCurrent&&U===C.PARSING)&&(X.fragmentTracker.removeFragment(N),X.state=C.IDLE);return}if("payload"in F&&(X.log("Loaded fragment "+N.sn+" of level "+N.level),X.hls.trigger(e.Events.FRAG_LOADED,F),X.state===C.BACKTRACKING)){X.fragmentTracker.backtrack(N,F),X.resetFragmentLoading(N);return}X._handleFragmentLoadComplete(F)}).catch(function(F){X.warn(F),X.resetFragmentLoading(N)})},R.flushMainBuffer=function(N,M,z){if(z===void 0&&(z=null),!(N-M))return;var X={startOffset:N,endOffset:M,type:z};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,X)},R._loadInitSegment=function(N){var M=this;this._doFragLoad(N).then(function(z){if(!z||M.fragContextChanged(N)||!M.levels)throw new Error("init load aborted");return z}).then(function(z){var X=M.hls,k=z.payload,F=N.decryptdata;if(k&&k.byteLength>0&&F&&F.key&&F.iv&&F.method==="AES-128"){var U=self.performance.now();return M.decrypter.webCryptoDecrypt(new Uint8Array(k),F.key.buffer,F.iv.buffer).then(function(L){var B=self.performance.now();return X.trigger(e.Events.FRAG_DECRYPTED,{frag:N,payload:L,stats:{tstart:U,tdecrypt:B}}),z.payload=L,z})}return z}).then(function(z){var X=M.fragCurrent,k=M.hls,F=M.levels;if(!F)throw new Error("init load aborted, missing levels");var U=F[N.level].details;console.assert(U,"Level details are defined when init segment is loaded");var L=N.stats;M.state=C.IDLE,M.fragLoadError=0,N.data=new Uint8Array(z.payload),L.parsing.start=L.buffering.start=self.performance.now(),L.parsing.end=L.buffering.end=self.performance.now(),z.frag===X&&k.trigger(e.Events.FRAG_BUFFERED,{stats:L,frag:X,part:null,id:N.type}),M.tick()}).catch(function(z){M.warn(z),M.resetFragmentLoading(N)})},R.fragContextChanged=function(N){var M=this.fragCurrent;return!N||!M||N.level!==M.level||N.sn!==M.sn||N.urlId!==M.urlId},R.fragBufferedComplete=function(N,M){var z=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+N.type+" sn: "+N.sn+(M?" part: "+M.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+N.level+" "+d.default.toString(_.BufferHelper.getBuffered(z))),this.state=C.IDLE,this.tick()},R._handleFragmentLoadComplete=function(N){var M=this.transmuxer;if(!M)return;var z=N.frag,X=N.part,k=N.partsLoaded,F=!k||k.length===0||k.some(function(L){return!L}),U=new n.ChunkMetadata(z.level,z.sn,z.stats.chunkCount+1,0,X?X.index:-1,!F);M.flush(U)},R._handleFragmentLoadProgress=function(N){},R._doFragLoad=function(N,M,z,X){var k=this;if(z===void 0&&(z=null),!this.levels)throw new Error("frag load aborted, missing levels");if(z=Math.max(N.start,z||0),this.config.lowLatencyMode&&M){var F=M.partList;if(F&&X){z>N.end&&M.fragmentHint&&(N=M.fragmentHint);var U=this.getNextPart(F,N,z);if(U>-1){var L=F[U];return this.log("Loading part sn: "+N.sn+" p: "+L.index+" cc: "+N.cc+" of playlist ["+M.startSN+"-"+M.endSN+"] parts [0-"+U+"-"+(F.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+N.level+", target: "+parseFloat(z.toFixed(3))),this.nextLoadPosition=L.start+L.duration,this.state=C.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:N,part:F[U],targetBufferTime:z}),this.doFragPartsLoad(N,F,U,X).catch(function(B){return k.handleFragLoadError(B)})}else if(!N.url||this.loadedEndOfParts(F,z))return Promise.resolve(null)}}return this.log("Loading fragment "+N.sn+" cc: "+N.cc+" "+(M?"of ["+M.startSN+"-"+M.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+N.level+", target: "+parseFloat(z.toFixed(3))),Object(b.isFiniteNumber)(N.sn)&&!this.bitrateTest&&(this.nextLoadPosition=N.start+N.duration),this.state=C.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:N,targetBufferTime:z}),this.fragmentLoader.load(N,X).catch(function(B){return k.handleFragLoadError(B)})},R.doFragPartsLoad=function(N,M,z,X){var k=this;return new Promise(function(F,U){var L=[],B=function Z(re){var me=M[re];k.fragmentLoader.loadPart(N,me,X).then(function(Ee){L[me.index]=Ee;var De=Ee.part;k.hls.trigger(e.Events.FRAG_LOADED,Ee);var te=M[re+1];if(te&&te.fragment===N)Z(re+1);else return F({frag:N,part:De,partsLoaded:L})}).catch(U)};B(z)})},R.handleFragLoadError=function(N){var M=N.data;return M&&M.details===a.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(M.frag,M.part):this.hls.trigger(e.Events.ERROR,M),null},R._handleTransmuxerFlush=function(N){var M=this.getCurrentContext(N);if(!M||this.state!==C.PARSING){this.fragCurrent||(this.state=C.IDLE);return}var z=M.frag,X=M.part,k=M.level,F=self.performance.now();z.stats.parsing.end=F,X&&(X.stats.parsing.end=F),this.updateLevelTiming(z,X,k,N.partial)},R.getCurrentContext=function(N){var M=this.levels,z=N.level,X=N.sn,k=N.part;if(!M||!M[z])return this.warn("Levels object was unset while buffering fragment "+X+" of level "+z+". The current chunk will not be buffered."),null;var F=M[z],U=k>-1?Object(t.getPartWith)(F,X,k):null,L=U?U.fragment:Object(t.getFragmentWithSN)(F,X,this.fragCurrent);return L?{frag:L,part:U,level:F}:null},R.bufferFragmentData=function(N,M,z,X){if(!N||this.state!==C.PARSING)return;var k=N.data1,F=N.data2,U=k;if(k&&F&&(U=Object(l.appendUint8Array)(k,F)),!U||!U.length)return;var L={type:N.type,frag:M,part:z,chunkMeta:X,parent:M.type,data:U};this.hls.trigger(e.Events.BUFFER_APPENDING,L),N.dropped&&N.independent&&!z&&this.flushBufferGap(M)},R.flushBufferGap=function(N){var M=this.media;if(!M)return;if(!_.BufferHelper.isBuffered(M,M.currentTime)){this.flushMainBuffer(0,N.start);return}var z=M.currentTime,X=_.BufferHelper.bufferInfo(M,z,0),k=N.duration,F=Math.min(this.config.maxFragLookUpTolerance*2,k*.25),U=Math.max(Math.min(N.start-F,X.end-F),z+F);N.start-U>F&&this.flushMainBuffer(U,N.start)},R.getFwdBufferInfo=function(N,M){var z=this.config,X=this.getLoadPosition();if(!Object(b.isFiniteNumber)(X))return null;var k=_.BufferHelper.bufferInfo(N,X,z.maxBufferHole);if(k.len===0&&k.nextStart!==void 0){var F=this.fragmentTracker.getBufferedFrag(X,M);if(F&&k.nextStart<F.end)return _.BufferHelper.bufferInfo(N,X,Math.max(k.nextStart,z.maxBufferHole))}return k},R.getMaxBufferLength=function(N){var M=this.config,z;return N?z=Math.max(8*M.maxBufferSize/N,M.maxBufferLength):z=M.maxBufferLength,Math.min(z,M.maxMaxBufferLength)},R.reduceMaxBufferLength=function(N){var M=this.config,z=N||M.maxBufferLength;return M.maxMaxBufferLength>=z?(M.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+M.maxMaxBufferLength+"s"),!0):!1},R.getNextFragment=function(N,M){var z,X,k=M.fragments,F=k.length;if(!F)return null;var U=this.config,L=k[0].start,B;if(M.live){var Z=U.initialLiveManifestSize;if(F<Z)return this.warn("Not enough fragments to start playback (have: "+F+", need: "+Z+")"),null;!M.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(B=this.getInitialLiveFragment(M,k),this.startPosition=B?this.hls.liveSyncPosition||B.start:N)}else N<=L&&(B=k[0]);if(!B){var re=U.lowLatencyMode?M.partEnd:M.fragmentEnd;B=this.getFragmentAtPosition(N,re,M)}return(z=B)!==null&&z!==void 0&&z.initSegment&&!((X=B)!==null&&X!==void 0&&X.initSegment.data)&&!this.bitrateTest&&(B=B.initSegment),B},R.getNextPart=function(N,M,z){for(var X=-1,k=!1,F=!0,U=0,L=N.length;U<L;U++){var B=N[U];if(F=F&&!B.independent,X>-1&&z<B.start)break;var Z=B.loaded;!Z&&(k||B.independent||F)&&B.fragment===M&&(X=U),k=Z}return X},R.loadedEndOfParts=function(N,M){var z=N[N.length-1];return z&&M>z.start&&z.loaded},R.getInitialLiveFragment=function(N,M){var z=this.fragPrevious,X=null;if(z){if(N.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+z.programDateTime),X=Object(i.findFragmentByPDT)(M,z.endProgramDateTime,this.config.maxFragLookUpTolerance)),!X){var k=z.sn+1;if(k>=N.startSN&&k<=N.endSN){var F=M[k-N.startSN];z.cc===F.cc&&(X=F,this.log("Live playlist, switching playlist, load frag with next SN: "+X.sn))}X||(X=Object(i.findFragWithCC)(M,z.cc),X&&this.log("Live playlist, switching playlist, load frag with same CC: "+X.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(X=this.getFragmentAtPosition(U,this.bitrateTest?N.fragmentEnd:N.edge,N))}return X},R.getFragmentAtPosition=function(N,M,z){var X=this.config,k=this.fragPrevious,F=z.fragments,U=z.endSN,L=z.fragmentHint,B=X.maxFragLookUpTolerance,Z=!!(X.lowLatencyMode&&z.partList&&L);Z&&L&&!this.bitrateTest&&(F=F.concat(L),U=L.sn);var re;if(N<M){var me=N>M-B?0:B;re=Object(i.findFragmentByPTS)(k,F,N,me)}else re=F[F.length-1];if(re){var Ee=re.sn-z.startSN,De=k&&re.level===k.level,te=F[Ee+1],Ce=this.fragmentTracker.getState(re);if(Ce===s.FragmentState.BACKTRACKED){re=null;for(var we=Ee;F[we]&&this.fragmentTracker.getState(F[we])===s.FragmentState.BACKTRACKED;)k?re=F[we--]:re=F[--we];re||(re=te)}else k&&re.sn===k.sn&&!Z&&(De&&(re.sn<U&&this.fragmentTracker.getState(te)!==s.FragmentState.OK?(this.log("SN "+re.sn+" just loaded, load next one: "+te.sn),re=te):re=null))}return re},R.synchronizeToLiveEdge=function(N){var M=this.config,z=this.media;if(!z)return;var X=this.hls.liveSyncPosition,k=z.currentTime,F=N.fragments[0].start,U=N.edge,L=k>=F-M.maxFragLookUpTolerance&&k<=U;if(X!==null&&z.duration>X&&(k<X||!L)){var B=M.liveMaxLatencyDuration!==void 0?M.liveMaxLatencyDuration:M.liveMaxLatencyDurationCount*N.targetduration;(!L&&z.readyState<4||k<U-B)&&(this.loadedmetadata||(this.nextLoadPosition=X),z.readyState&&(this.warn("Playback: "+k.toFixed(3)+" is located too far from the end of live sliding playlist: "+U+", reset currentTime to : "+X.toFixed(3)),z.currentTime=X))}},R.alignPlaylists=function(N,M){var z=this.levels,X=this.levelLastLoaded,k=this.fragPrevious,F=X!==null?z[X]:null,U=N.fragments.length;if(!U)return this.warn("No fragments in live playlist"),0;var L=N.fragments[0].start,B=!M,Z=N.alignedSliding&&Object(b.isFiniteNumber)(L);if(B||!Z&&!L){Object(r.alignStream)(k,F,N);var re=N.fragments[0].start;return this.log("Live playlist sliding: "+re.toFixed(2)+" start-sn: "+(M?M.startSN:"na")+"->"+N.startSN+" prev-sn: "+(k?k.sn:"na")+" fragments: "+U),re}return L},R.waitForCdnTuneIn=function(N){var M=3;return N.live&&N.canBlockReload&&N.tuneInGoal>Math.max(N.partHoldBack,N.partTarget*M)},R.setStartPosition=function(N,M){var z=this.startPosition;if(z<M&&(z=-1),z===-1||this.lastCurrentTime===-1){var X=N.startTimeOffset;Object(b.isFiniteNumber)(X)?(z=M+X,X<0&&(z+=N.totalduration),z=Math.min(Math.max(M,z),M+N.totalduration),this.log("Start time offset "+X+" found in playlist, adjust startPosition to "+z),this.startPosition=z):N.live?z=this.hls.liveSyncPosition||M:this.startPosition=z=0,this.lastCurrentTime=z}this.nextLoadPosition=z},R.getLoadPosition=function(){var N=this.media,M=0;return this.loadedmetadata&&N?M=N.currentTime:this.nextLoadPosition&&(M=this.nextLoadPosition),M},R.handleFragLoadAborted=function(N,M){this.transmuxer&&N.sn!=="initSegment"&&N.stats.aborted&&(this.warn("Fragment "+N.sn+(M?" part"+M.index:"")+" of level "+N.level+" was aborted"),this.resetFragmentLoading(N))},R.resetFragmentLoading=function(N){(!this.fragCurrent||!this.fragContextChanged(N))&&(this.state=C.IDLE)},R.onFragmentOrKeyLoadError=function(N,M){if(M.fatal)return;var z=M.frag;if(!z||z.type!==N)return;var X=this.fragCurrent;console.assert(X&&z.sn===X.sn&&z.level===X.level&&z.urlId===X.urlId,"Frag load error must match current frag to retry");var k=this.config;if(this.fragLoadError+1<=k.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(z.level))return;var F=Math.min(Math.pow(2,this.fragLoadError)*k.fragLoadingRetryDelay,k.fragLoadingMaxRetryTimeout);this.warn("Fragment "+z.sn+" of "+N+" "+z.level+" failed to load, retrying in "+F+"ms"),this.retryDate=self.performance.now()+F,this.fragLoadError++,this.state=C.FRAG_LOADING_WAITING_RETRY}else M.levelRetry?(N===f.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=C.IDLE):(p.logger.error(M.details+" reaches max retry, redispatch as fatal ..."),M.fatal=!0,this.hls.stopLoad(),this.state=C.ERROR)},R.afterBufferFlushed=function(N,M,z){if(!N)return;var X=_.BufferHelper.getBuffered(N);this.fragmentTracker.detectEvictedFragments(M,X,z),this.state===C.ENDED&&this.resetLoadingState()},R.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=C.IDLE},R.resetLiveStartWhenNotLoaded=function(N){if(!this.loadedmetadata){this.startFragRequested=!1;var M=this.levels?this.levels[N].details:null;if(M!=null&&M.live)return this.startPosition=-1,this.setStartPosition(M,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},R.updateLevelTiming=function(N,M,z,X){var k=this,F=z.details;console.assert(!!F,"level.details must be defined");var U=Object.keys(N.elementaryStreams).reduce(function(L,B){var Z=N.elementaryStreams[B];if(Z){var re=Z.endPTS-Z.startPTS;if(re<=0)return k.warn("Could not parse fragment "+N.sn+" "+B+" duration reliably ("+re+") resetting transmuxer to fallback to playlist timing"),k.resetTransmuxer(),L||!1;var me=X?0:Object(t.updateFragPTSDTS)(F,N,Z.startPTS,Z.endPTS,Z.startDTS,Z.endDTS);return k.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:F,level:z,drift:me,type:B,frag:N,start:Z.startPTS,end:Z.endPTS}),!0}return L},!1);U?(this.state=C.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:N,part:M})):this.resetLoadingState()},R.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},u(D,[{key:"state",get:function(){return this._state},set:function(N){var M=this._state;M!==N&&(this._state=N,this.log(M+"->"+N))}}]),D}(g.default)},"./src/controller/buffer-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return i});var b=T("./src/polyfills/number.ts"),g=T("./src/events.ts"),s=T("./src/utils/logger.ts"),_=T("./src/errors.ts"),p=T("./src/utils/buffer-helper.ts"),e=T("./src/utils/mediasource-helper.ts"),a=T("./src/loader/fragment.ts"),n=T("./src/controller/buffer-operation-queue.ts"),l=Object(e.getMediaSource)(),r=/([ha]vc.)(?:\.[^.,]+)+/,i=function(){function t(c){var d=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var f=d.hls,h=d.media,u=d.mediaSource;s.logger.log("[buffer-controller]: Media source opened"),h&&(d.updateMediaElementDuration(),f.trigger(g.Events.MEDIA_ATTACHED,{media:h})),u&&u.removeEventListener("sourceopen",d._onMediaSourceOpen),d.checkPendingTracks()},this._onMediaSourceClose=function(){s.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){s.logger.log("[buffer-controller]: Media source ended")},this.hls=c,this._initSourceBuffer(),this.registerListeners()}var o=t.prototype;return o.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},o.destroy=function(){this.unregisterListeners(),this.details=null},o.registerListeners=function(){var d=this.hls;d.on(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(g.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(g.Events.BUFFER_RESET,this.onBufferReset,this),d.on(g.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.on(g.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.on(g.Events.BUFFER_EOS,this.onBufferEos,this),d.on(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.on(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.on(g.Events.FRAG_PARSED,this.onFragParsed,this),d.on(g.Events.FRAG_CHANGED,this.onFragChanged,this)},o.unregisterListeners=function(){var d=this.hls;d.off(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(g.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(g.Events.BUFFER_RESET,this.onBufferReset,this),d.off(g.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.off(g.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.off(g.Events.BUFFER_EOS,this.onBufferEos,this),d.off(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.off(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.off(g.Events.FRAG_PARSED,this.onFragParsed,this),d.off(g.Events.FRAG_CHANGED,this.onFragChanged,this)},o._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},o.onManifestParsed=function(d,f){var h=2;(f.audio&&!f.video||!f.altAudio)&&(h=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=h,this.details=null,s.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},o.onMediaAttaching=function(d,f){var h=this.media=f.media;if(h&&l){var u=this.mediaSource=new l;u.addEventListener("sourceopen",this._onMediaSourceOpen),u.addEventListener("sourceended",this._onMediaSourceEnded),u.addEventListener("sourceclose",this._onMediaSourceClose),h.src=self.URL.createObjectURL(u),this._objectUrl=h.src}},o.onMediaDetaching=function(){var d=this.media,f=this.mediaSource,h=this._objectUrl;if(f){if(s.logger.log("[buffer-controller]: media source detaching"),f.readyState==="open")try{f.endOfStream()}catch(u){s.logger.warn("[buffer-controller]: onMediaDetaching: "+u.message+" while calling endOfStream")}this.onBufferReset(),f.removeEventListener("sourceopen",this._onMediaSourceOpen),f.removeEventListener("sourceended",this._onMediaSourceEnded),f.removeEventListener("sourceclose",this._onMediaSourceClose),d&&(h&&self.URL.revokeObjectURL(h),d.src===h?(d.removeAttribute("src"),d.load()):s.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(g.Events.MEDIA_DETACHED,void 0)},o.onBufferReset=function(){var d=this;this.getSourceBufferTypes().forEach(function(f){var h=d.sourceBuffer[f];try{h&&(d.removeBufferListeners(f),d.mediaSource&&d.mediaSource.removeSourceBuffer(h),d.sourceBuffer[f]=void 0)}catch(u){s.logger.warn("[buffer-controller]: Failed to reset the "+f+" buffer",u)}}),this._initSourceBuffer()},o.onBufferCodecs=function(d,f){var h=this,u=this.getSourceBufferTypes().length;if(Object.keys(f).forEach(function(E){if(u){var x=h.tracks[E];if(x&&typeof x.buffer.changeType=="function"){var O=f[E],C=O.codec,w=O.levelCodec,S=O.container,D=(x.levelCodec||x.codec).replace(r,"$1"),R=(w||C).replace(r,"$1");if(D!==R){var P=S+";codecs="+(w||C);h.appendChangeType(E,P)}}}else h.pendingTracks[E]=f[E]}),u)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},o.appendChangeType=function(d,f){var h=this,u=this.operationQueue,E={execute:function(){var O=h.sourceBuffer[d];O&&(s.logger.log("[buffer-controller]: changing "+d+" sourceBuffer type to "+f),O.changeType(f)),u.shiftAndExecuteNext(d)},onStart:function(){},onComplete:function(){},onError:function(O){s.logger.warn("[buffer-controller]: Failed to change "+d+" SourceBuffer type",O)}};u.append(E,d)},o.onBufferAppending=function(d,f){var h=this,u=this.hls,E=this.operationQueue,x=this.tracks,O=f.data,C=f.type,w=f.frag,S=f.part,D=f.chunkMeta,R=D.buffering[C],P=self.performance.now();R.start=P;var N=w.stats.buffering,M=S?S.stats.buffering:null;N.start===0&&(N.start=P),M&&M.start===0&&(M.start=P);var z=x.audio,X=C==="audio"&&D.id===1&&(z==null?void 0:z.container)==="audio/mpeg",k={execute:function(){if(R.executeStart=self.performance.now(),X){var U=h.sourceBuffer[C];if(U){var L=w.start-U.timestampOffset;Math.abs(L)>=.1&&(s.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+w.start+" (delta: "+L+") sn: "+w.sn+")"),U.timestampOffset=w.start)}}h.appendExecutor(O,C)},onStart:function(){},onComplete:function(){var U=self.performance.now();R.executeEnd=R.end=U,N.first===0&&(N.first=U),M&&M.first===0&&(M.first=U);var L=h.sourceBuffer,B={};for(var Z in L)B[Z]=p.BufferHelper.getBuffered(L[Z]);h.appendError=0,h.hls.trigger(g.Events.BUFFER_APPENDED,{type:C,frag:w,part:S,chunkMeta:D,parent:w.type,timeRanges:B})},onError:function(U){s.logger.error("[buffer-controller]: Error encountered while trying to append to the "+C+" SourceBuffer",U);var L={type:_.ErrorTypes.MEDIA_ERROR,parent:w.type,details:_.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?L.details=_.ErrorDetails.BUFFER_FULL_ERROR:(h.appendError++,L.details=_.ErrorDetails.BUFFER_APPEND_ERROR,h.appendError>u.config.appendErrorMaxRetry&&(s.logger.error("[buffer-controller]: Failed "+u.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),L.fatal=!0)),u.trigger(g.Events.ERROR,L)}};E.append(k,C)},o.onBufferFlushing=function(d,f){var h=this,u=this.operationQueue,E=function(O){return{execute:h.removeExecutor.bind(h,O,f.startOffset,f.endOffset),onStart:function(){},onComplete:function(){h.hls.trigger(g.Events.BUFFER_FLUSHED,{type:O})},onError:function(w){s.logger.warn("[buffer-controller]: Failed to remove from "+O+" SourceBuffer",w)}}};f.type?u.append(E(f.type),f.type):this.getSourceBufferTypes().forEach(function(x){u.append(E(x),x)})},o.onFragParsed=function(d,f){var h=this,u=f.frag,E=f.part,x=[],O=E?E.elementaryStreams:u.elementaryStreams;O[a.ElementaryStreamTypes.AUDIOVIDEO]?x.push("audiovideo"):(O[a.ElementaryStreamTypes.AUDIO]&&x.push("audio"),O[a.ElementaryStreamTypes.VIDEO]&&x.push("video"));var C=function(){var S=self.performance.now();u.stats.buffering.end=S,E&&(E.stats.buffering.end=S);var D=E?E.stats:u.stats;h.hls.trigger(g.Events.FRAG_BUFFERED,{frag:u,part:E,stats:D,id:u.type})};x.length===0&&s.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+u.type+" level: "+u.level+" sn: "+u.sn),this.blockBuffers(C,x)},o.onFragChanged=function(d,f){this.flushBackBuffer()},o.onBufferEos=function(d,f){var h=this,u=this.getSourceBufferTypes().reduce(function(E,x){var O=h.sourceBuffer[x];return(!f.type||f.type===x)&&(O&&!O.ended&&(O.ended=!0,s.logger.log("[buffer-controller]: "+x+" sourceBuffer now EOS"))),E&&!!(!O||O.ended)},!0);u&&this.blockBuffers(function(){var E=h.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},o.onLevelUpdated=function(d,f){var h=f.details;if(!h.fragments.length)return;this.details=h,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},o.flushBackBuffer=function(){var d=this.hls,f=this.details,h=this.media,u=this.sourceBuffer;if(!h||f===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var x=f.live&&d.config.liveBackBufferLength!==null?d.config.liveBackBufferLength:d.config.backBufferLength;if(!Object(b.isFiniteNumber)(x)||x<0)return;var O=h.currentTime,C=f.levelTargetDuration,w=Math.max(x,C),S=Math.floor(O/C)*C-w;E.forEach(function(D){var R=u[D];if(R){var P=p.BufferHelper.getBuffered(R);P.length>0&&S>P.start(0)&&(d.trigger(g.Events.BACK_BUFFER_REACHED,{bufferEnd:S}),f.live&&d.trigger(g.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:S}),d.trigger(g.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:S,type:D}))}})},o.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var d=this.details,f=this.hls,h=this.media,u=this.mediaSource,E=d.fragments[0].start+d.totalduration,x=h.duration,O=Object(b.isFiniteNumber)(u.duration)?u.duration:0;d.live&&f.config.liveDurationInfinity?(s.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),u.duration=Infinity,this.updateSeekableRange(d)):(E>O&&E>x||!Object(b.isFiniteNumber)(x))&&(s.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),u.duration=E)},o.updateSeekableRange=function(d){var f=this.mediaSource,h=d.fragments,u=h.length;if(u&&d.live&&f!==null&&f!==void 0&&f.setLiveSeekableRange){var E=Math.max(0,h[0].start),x=Math.max(E,E+d.totalduration);f.setLiveSeekableRange(E,x)}},o.checkPendingTracks=function(){var d=this.bufferCodecEventsExpected,f=this.operationQueue,h=this.pendingTracks,u=Object.keys(h).length;if(u&&!d||u===2){this.createSourceBuffers(h),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(g.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(x){f.executeNext(x)})}},o.createSourceBuffers=function(d){var f=this.sourceBuffer,h=this.mediaSource;if(!h)throw Error("createSourceBuffers called when mediaSource was null");var u=0;for(var E in d)if(!f[E]){var x=d[E];if(!x)throw Error("source buffer exists for track "+E+", however track does not");var O=x.levelCodec||x.codec,C=x.container+";codecs="+O;s.logger.log("[buffer-controller]: creating sourceBuffer("+C+")");try{var w=f[E]=h.addSourceBuffer(C),S=E;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.tracks[E]={buffer:w,codec:O,container:x.container,levelCodec:x.levelCodec,id:x.id},u++}catch(D){s.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+D.message),this.hls.trigger(g.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:D,mimeType:C})}}u&&this.hls.trigger(g.Events.BUFFER_CREATED,{tracks:this.tracks})},o._onSBUpdateStart=function(d){var f=this.operationQueue,h=f.current(d);h.onStart()},o._onSBUpdateEnd=function(d){var f=this.operationQueue,h=f.current(d);h.onComplete(),f.shiftAndExecuteNext(d)},o._onSBUpdateError=function(d,f){s.logger.error("[buffer-controller]: "+d+" SourceBuffer error",f),this.hls.trigger(g.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var h=this.operationQueue.current(d);h&&h.onError(f)},o.removeExecutor=function(d,f,h){var u=this.media,E=this.mediaSource,x=this.operationQueue,O=this.sourceBuffer,C=O[d];if(!u||!E||!C){s.logger.warn("[buffer-controller]: Attempting to remove from the "+d+" SourceBuffer, but it does not exist"),x.shiftAndExecuteNext(d);return}var w=Object(b.isFiniteNumber)(u.duration)?u.duration:Infinity,S=Object(b.isFiniteNumber)(E.duration)?E.duration:Infinity,D=Math.max(0,f),R=Math.min(h,w,S);R>D?(s.logger.log("[buffer-controller]: Removing ["+D+","+R+"] from the "+d+" SourceBuffer"),console.assert(!C.updating,d+" sourceBuffer must not be updating"),C.remove(D,R)):x.shiftAndExecuteNext(d)},o.appendExecutor=function(d,f){var h=this.operationQueue,u=this.sourceBuffer,E=u[f];if(!E){s.logger.warn("[buffer-controller]: Attempting to append to the "+f+" SourceBuffer, but it does not exist"),h.shiftAndExecuteNext(f);return}E.ended=!1,console.assert(!E.updating,f+" sourceBuffer must not be updating"),E.appendBuffer(d)},o.blockBuffers=function(d,f){var h=this;if(f===void 0&&(f=this.getSourceBufferTypes()),!f.length){s.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(d);return}var u=this.operationQueue,E=f.map(function(x){return u.appendBlocker(x)});Promise.all(E).then(function(){d(),f.forEach(function(x){var O=h.sourceBuffer[x];(!O||!O.updating)&&u.shiftAndExecuteNext(x)})})},o.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},o.addBufferListener=function(d,f,h){var u=this.sourceBuffer[d];if(!u)return;var E=h.bind(this,d);this.listeners[d].push({event:f,listener:E}),u.addEventListener(f,E)},o.removeBufferListeners=function(d){var f=this.sourceBuffer[d];if(!f)return;this.listeners[d].forEach(function(h){f.removeEventListener(h.event,h.listener)})},t}()},"./src/controller/buffer-operation-queue.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return g});var b=T("./src/utils/logger.ts"),g=function(){function s(p){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=p}var _=s.prototype;return _.append=function(e,a){var n=this.queues[a];n.push(e),n.length===1&&this.buffers[a]&&this.executeNext(a)},_.insertAbort=function(e,a){var n=this.queues[a];n.unshift(e),this.executeNext(a)},_.appendBlocker=function(e){var a,n=new Promise(function(r){a=r}),l={execute:a,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(l,e),n},_.executeNext=function(e){var a=this.buffers,n=this.queues,l=a[e],r=n[e];if(r.length){var i=r[0];try{i.execute()}catch(t){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),i.onError(t),(!l||!l.updating)&&(r.shift(),this.executeNext(e))}}},_.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},_.current=function(e){return this.queues[e][0]},s}()},"./src/controller/cap-level-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/events.ts");function g(p,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(p,n.key,n)}}function s(p,e,a){return e&&g(p.prototype,e),a&&g(p,a),p}var _=function(){function p(a){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=a,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=p.prototype;return e.setStreamController=function(n){this.streamController=n},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var n=this.hls;n.on(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var n=this.hls;n.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(n,l){p.isLevelAllowed(l.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(l.droppedLevel)},e.onMediaAttaching=function(n,l){this.media=l.media instanceof HTMLVideoElement?l.media:null},e.onManifestParsed=function(n,l){var r=this.hls;this.restrictedLevels=[],this.firstLevel=l.firstLevel,r.config.capLevelToPlayerSize&&l.video&&this.startCapping()},e.onBufferCodecs=function(n,l){var r=this.hls;r.config.capLevelToPlayerSize&&l.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var l=this.hls;l.autoLevelCapping=this.getMaxLevel(n.length-1),l.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=l.autoLevelCapping}}},e.getMaxLevel=function(n){var l=this,r=this.hls.levels;if(!r.length)return-1;var i=r.filter(function(t,o){return p.isLevelAllowed(o,l.restrictedLevels)&&o<=n});return this.clientRect=null,p.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,l={width:0,height:0};if(n){var r=n.getBoundingClientRect();l.width=r.width,l.height=r.height,!l.width&&!l.height&&(l.width=r.right-r.left||n.width||0,l.height=r.bottom-r.top||n.height||0)}return this.clientRect=l,l},p.isLevelAllowed=function(n,l){return l===void 0&&(l=[]),l.indexOf(n)===-1},p.getMaxLevelByMediaSize=function(n,l,r){if(!n||!n.length)return-1;for(var i=function(f,h){return h?f.width!==h.width||f.height!==h.height:!0},t=n.length-1,o=0;o<n.length;o+=1){var c=n[o];if((c.width>=l||c.height>=r)&&i(c,n[o+1])){t=o;break}}return t},s(p,[{key:"mediaWidth",get:function(){return this.getDimensions().width*p.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*p.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(l){}return n}}]),p}();v.default=_},"./src/controller/cmcd-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return i});var b=T("./src/events.ts"),g=T("./src/types/cmcd.ts"),s=T("./src/utils/buffer-helper.ts"),_=T("./src/utils/logger.ts");function p(t,o){for(var c=0;c<o.length;c++){var d=o[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,d.key,d)}}function e(t,o,c){return o&&p(t.prototype,o),c&&p(t,c),t}function a(t,o){var c=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(c)return(c=c.call(t)).next.bind(c);if(Array.isArray(t)||(c=n(t))||o&&t&&typeof t.length=="number"){c&&(t=c);var d=0;return function(){return d>=t.length?{done:!0}:{done:!1,value:t[d++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(t,o){if(!t)return;if(typeof t=="string")return l(t,o);var c=Object.prototype.toString.call(t).slice(8,-1);if(c==="Object"&&t.constructor&&(c=t.constructor.name),c==="Map"||c==="Set")return Array.from(t);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return l(t,o)}function l(t,o){(o==null||o>t.length)&&(o=t.length);for(var c=0,d=new Array(o);c<o;c++)d[c]=t[c];return d}function r(){return r=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var c=arguments[o];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(t[d]=c[d])}return t},r.apply(this,arguments)}var i=function(){function t(c){var d=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){d.initialized&&(d.starved=!0),d.buffering=!0},this.onPlaying=function(){d.initialized||(d.initialized=!0),d.buffering=!1},this.applyPlaylistData=function(u){try{d.apply(u,{ot:g.CMCDObjectType.MANIFEST,su:!d.initialized})}catch(E){_.logger.warn("Could not generate manifest CMCD data.",E)}},this.applyFragmentData=function(u){try{var E=u.frag,x=d.hls.levels[E.level],O=d.getObjectType(E),C={d:E.duration*1e3,ot:O};(O===g.CMCDObjectType.VIDEO||O===g.CMCDObjectType.AUDIO||O==g.CMCDObjectType.MUXED)&&(C.br=x.bitrate/1e3,C.tb=d.getTopBandwidth(O),C.bl=d.getBufferLength(O)),d.apply(u,C)}catch(w){_.logger.warn("Could not generate segment CMCD data.",w)}},this.hls=c;var f=this.config=c.config,h=f.cmcd;h!=null&&(f.pLoader=this.createPlaylistLoader(),f.fLoader=this.createFragmentLoader(),this.sid=h.sessionId||t.uuid(),this.cid=h.contentId,this.useHeaders=h.useHeaders===!0,this.registerListeners())}var o=t.prototype;return o.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this)},o.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},o.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},o.onMediaAttached=function(d,f){this.media=f.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},o.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},o.onBufferCreated=function(d,f){var h,u;this.audioBuffer=(h=f.tracks.audio)===null||h===void 0?void 0:h.buffer,this.videoBuffer=(u=f.tracks.video)===null||u===void 0?void 0:u.buffer},o.createData=function(){var d;return{v:g.CMCDVersion,sf:g.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(d=this.media)===null||d===void 0?void 0:d.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},o.apply=function(d,f){f===void 0&&(f={}),r(f,this.createData());var h=f.ot===g.CMCDObjectType.INIT||f.ot===g.CMCDObjectType.VIDEO||f.ot===g.CMCDObjectType.MUXED;if(this.starved&&h&&(f.bs=!0,f.su=!0,this.starved=!1),f.su==null&&(f.su=this.buffering),this.useHeaders){var u=t.toHeaders(f);if(!Object.keys(u).length)return;d.headers||(d.headers={}),r(d.headers,u)}else{var E=t.toQuery(f);if(!E)return;d.url=t.appendQueryToUri(d.url,E)}},o.getObjectType=function(d){var f=d.type;return f==="subtitle"?g.CMCDObjectType.TIMED_TEXT:d.sn==="initSegment"?g.CMCDObjectType.INIT:f==="audio"?g.CMCDObjectType.AUDIO:f==="main"?this.hls.audioTracks.length?g.CMCDObjectType.VIDEO:g.CMCDObjectType.MUXED:void 0},o.getTopBandwidth=function(d){for(var f=0,h=d===g.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,u=a(h),E;!(E=u()).done;){var x=E.value;x.bitrate>f&&(f=x.bitrate)}return f>0?f:NaN},o.getBufferLength=function(d){var f=this.hls.media,h=d===g.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!h||!f)return NaN;var u=s.BufferHelper.bufferInfo(h,f.currentTime,this.config.maxBufferHole);return u.len*1e3},o.createPlaylistLoader=function(){var d=this.config.pLoader,f=this.applyPlaylistData,h=d||this.config.loader;return function(){function u(x){this.loader=void 0,this.loader=new h(x)}var E=u.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,C,w){f(O),this.loader.load(O,C,w)},e(u,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),u}()},o.createFragmentLoader=function(){var d=this.config.fLoader,f=this.applyFragmentData,h=d||this.config.loader;return function(){function u(x){this.loader=void 0,this.loader=new h(x)}var E=u.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,C,w){f(O),this.loader.load(O,C,w)},e(u,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),u}()},t.uuid=function(){var d=URL.createObjectURL(new Blob),f=d.toString();return URL.revokeObjectURL(d),f.substr(f.lastIndexOf("/")+1)},t.serialize=function(d){for(var f=[],h=function(X){return!Number.isNaN(X)&&X!=null&&X!==""&&X!==!1},u=function(X){return Math.round(X)},E=function(X){return u(X/100)*100},x=function(X){return encodeURIComponent(X)},O={br:u,d:u,bl:E,dl:E,mtp:E,nor:x,rtp:E,tb:u},C=Object.keys(d||{}).sort(),w=a(C),S;!(S=w()).done;){var D=S.value,R=d[D];if(!h(R))continue;if(D==="v"&&R===1)continue;if(D=="pr"&&R===1)continue;var P=O[D];P&&(R=P(R));var N=typeof R,M=void 0;D==="ot"||D==="sf"||D==="st"?M=D+"="+R:N==="boolean"?M=D:N==="number"?M=D+"="+R:M=D+"="+JSON.stringify(R),f.push(M)}return f.join(",")},t.toHeaders=function(d){for(var f=Object.keys(d),h={},u=["Object","Request","Session","Status"],E=[{},{},{},{}],x={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},O=0,C=f;O<C.length;O++){var w=C[O],S=x[w]!=null?x[w]:1;E[S][w]=d[w]}for(var D=0;D<E.length;D++){var R=t.serialize(E[D]);R&&(h["CMCD-"+u[D]]=R)}return h},t.toQuery=function(d){return"CMCD="+encodeURIComponent(t.serialize(d))},t.appendQueryToUri=function(d,f){if(!f)return d;var h=d.includes("?")?"&":"?";return""+d+h+f},t}()},"./src/controller/eme-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/events.ts"),g=T("./src/errors.ts"),s=T("./src/utils/logger.ts"),_=T("./src/utils/mediakeys-helper.ts");function p(i,t){for(var o=0;o<t.length;o++){var c=t[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}function e(i,t,o){return t&&p(i.prototype,t),o&&p(i,o),i}var a=3,n=function(t,o,c){var d={audioCapabilities:[],videoCapabilities:[]};return t.forEach(function(f){d.audioCapabilities.push({contentType:'audio/mp4; codecs="'+f+'"',robustness:c.audioRobustness||""})}),o.forEach(function(f){d.videoCapabilities.push({contentType:'video/mp4; codecs="'+f+'"',robustness:c.videoRobustness||""})}),[d]},l=function(t,o,c,d){switch(t){case _.KeySystems.WIDEVINE:return n(o,c,d);default:throw new Error("Unknown key-system: "+t)}},r=function(){function i(o){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=o,this._config=o.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var t=i.prototype;return t.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},t._registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},t._unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},t.getLicenseServerUrl=function(c){switch(c){case _.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+c+'"')},t._attemptKeySystemAccess=function(c,d,f){var h=this,u=l(c,d,f,this._drmSystemOptions);s.logger.log("Requesting encrypted media key-system access");var E=this.requestMediaKeySystemAccess(c,u);this.mediaKeysPromise=E.then(function(x){return h._onMediaKeySystemAccessObtained(c,x)}),E.catch(function(x){s.logger.error('Failed to obtain key-system "'+c+'" access:',x)})},t._onMediaKeySystemAccessObtained=function(c,d){var f=this;s.logger.log('Access for key-system "'+c+'" obtained');var h={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:d,mediaKeySystemDomain:c};this._mediaKeysList.push(h);var u=Promise.resolve().then(function(){return d.createMediaKeys()}).then(function(E){return h.mediaKeys=E,s.logger.log('Media-keys created for key-system "'+c+'"'),f._onMediaKeysCreated(),E});return u.catch(function(E){s.logger.error("Failed to create media-keys:",E)}),u},t._onMediaKeysCreated=function(){var c=this;this._mediaKeysList.forEach(function(d){d.mediaKeysSession||(d.mediaKeysSession=d.mediaKeys.createSession(),c._onNewMediaKeySession(d.mediaKeysSession))})},t._onNewMediaKeySession=function(c){var d=this;s.logger.log("New key-system session "+c.sessionId),c.addEventListener("message",function(f){d._onKeySessionMessage(c,f.message)},!1)},t._onKeySessionMessage=function(c,d){s.logger.log("Got EME message event, creating license request"),this._requestLicense(d,function(f){s.logger.log("Received license data (length: "+(f&&f.byteLength)+"), updating key-session"),c.update(f)})},t.onMediaEncrypted=function(c){var d=this;if(s.logger.log('Media is encrypted using "'+c.initDataType+'" init data type'),!this.mediaKeysPromise){s.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var f=function(u){if(!d._media)return;d._attemptSetMediaKeys(u),d._generateRequestWithPreferredKeySession(c.initDataType,c.initData)};this.mediaKeysPromise.then(f).catch(f)},t._attemptSetMediaKeys=function(c){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var d=this._mediaKeysList[0];if(!d||!d.mediaKeys){s.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}s.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(d.mediaKeys),this._hasSetMediaKeys=!0}},t._generateRequestWithPreferredKeySession=function(c,d){var f=this,h=this._mediaKeysList[0];if(!h){s.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(h.mediaKeysSessionInitialized){s.logger.warn("Key-Session already initialized but requested again");return}var u=h.mediaKeysSession;if(!u){s.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!d){s.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}s.logger.log('Generating key-session request for "'+c+'" init data type'),h.mediaKeysSessionInitialized=!0,u.generateRequest(c,d).then(function(){s.logger.debug("Key-session generation succeeded")}).catch(function(E){s.logger.error("Error generating key-session request:",E),f.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},t._createLicenseXhr=function(c,d,f){var h=new XMLHttpRequest;h.responseType="arraybuffer",h.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,h,c,d,f);var u=this._licenseXhrSetup;if(u)try{u.call(this.hls,h,c),u=void 0}catch(E){s.logger.error(E)}try{h.readyState||h.open("POST",c,!0),u&&u.call(this.hls,h,c)}catch(E){throw new Error("issue setting up KeySystem license XHR "+E)}return h},t._onLicenseRequestReadyStageChange=function(c,d,f,h){switch(c.readyState){case 4:if(c.status===200){this._requestLicenseFailureCount=0,s.logger.log("License request succeeded");var u=c.response,E=this._licenseResponseCallback;if(E)try{u=E.call(this.hls,c,d)}catch(O){s.logger.error(O)}h(u)}else{if(s.logger.error("License Request XHR failed ("+d+"). Status: "+c.status+" ("+c.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>a){this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var x=a-this._requestLicenseFailureCount+1;s.logger.warn("Retrying license request, "+x+" attempts left"),this._requestLicense(f,h)}break}},t._generateLicenseRequestChallenge=function(c,d){switch(c.mediaKeySystemDomain){case _.KeySystems.WIDEVINE:return d}throw new Error("unsupported key-system: "+c.mediaKeySystemDomain)},t._requestLicense=function(c,d){s.logger.log("Requesting content license for key-system");var f=this._mediaKeysList[0];if(!f){s.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var h=this.getLicenseServerUrl(f.mediaKeySystemDomain),u=this._createLicenseXhr(h,c,d);s.logger.log("Sending license request to URL: "+h);var E=this._generateLicenseRequestChallenge(f,c);u.send(E)}catch(x){s.logger.error("Failure requesting DRM license: "+x),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},t.onMediaAttached=function(c,d){if(!this._emeEnabled)return;var f=d.media;this._media=f,f.addEventListener("encrypted",this._onMediaEncrypted)},t.onMediaDetached=function(){var c=this._media,d=this._mediaKeysList;if(!c)return;c.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(d.map(function(f){if(f.mediaKeysSession)return f.mediaKeysSession.close().catch(function(){})})).then(function(){return c.setMediaKeys(null)}).catch(function(){})},t.onManifestParsed=function(c,d){if(!this._emeEnabled)return;var f=d.levels.map(function(u){return u.audioCodec}).filter(function(u){return!!u}),h=d.levels.map(function(u){return u.videoCodec}).filter(function(u){return!!u});this._attemptKeySystemAccess(_.KeySystems.WIDEVINE,f,h)},e(i,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),i}();v.default=r},"./src/controller/fps-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/events.ts"),g=T("./src/utils/logger.ts"),s=function(){function _(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var p=_.prototype;return p.setStreamController=function(a){this.streamController=a},p.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},p.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},p.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},p.onMediaAttaching=function(a,n){var l=this.hls.config;if(l.capLevelOnFPSDrop){var r=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),l.fpsDroppedMonitoringPeriod)}},p.checkFPS=function(a,n,l){var r=performance.now();if(n){if(this.lastTime){var i=r-this.lastTime,t=l-this.lastDroppedFrames,o=n-this.lastDecodedFrames,c=1e3*t/i,d=this.hls;if(d.trigger(b.Events.FPS_DROP,{currentDropped:t,currentDecoded:o,totalDroppedFrames:l}),c>0&&t>d.config.fpsDroppedMonitoringThreshold*o){var f=d.currentLevel;g.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=f)&&(f=f-1,d.trigger(b.Events.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:d.currentLevel}),d.autoLevelCapping=f,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=l,this.lastDecodedFrames=n}},p.checkFPSInterval=function(){var a=this.media;if(a)if(this.isVideoPlaybackQualityAvailable){var n=a.getVideoPlaybackQuality();this.checkFPS(a,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(a,a.webkitDecodedFrameCount,a.webkitDroppedFrameCount)},_}();v.default=s},"./src/controller/fragment-finders.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"findFragmentByPDT",function(){return s}),T.d(v,"findFragmentByPTS",function(){return _}),T.d(v,"fragmentWithinToleranceTest",function(){return p}),T.d(v,"pdtWithinToleranceTest",function(){return e}),T.d(v,"findFragWithCC",function(){return a});var b=T("./src/polyfills/number.ts"),g=T("./src/utils/binary-search.ts");function s(n,l,r){if(l===null||!Array.isArray(n)||!n.length||!Object(b.isFiniteNumber)(l))return null;var i=n[0].programDateTime;if(l<(i||0))return null;var t=n[n.length-1].endProgramDateTime;if(l>=(t||0))return null;r=r||0;for(var o=0;o<n.length;++o){var c=n[o];if(e(l,r,c))return c}return null}function _(n,l,r,i){r===void 0&&(r=0),i===void 0&&(i=0);var t=null;if(n?t=l[n.sn-l[0].sn+1]||null:r===0&&l[0].start===0&&(t=l[0]),t&&p(r,i,t)===0)return t;var o=g.default.search(l,p.bind(null,r,i));return o||t}function p(n,l,r){n===void 0&&(n=0),l===void 0&&(l=0);var i=Math.min(l,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=n?1:r.start-i>n&&r.start?-1:0}function e(n,l,r){var i=Math.min(l,r.duration+(r.deltaPTS?r.deltaPTS:0))*1e3,t=r.endProgramDateTime||0;return t-i>n}function a(n,l){return g.default.search(n,function(r){return r.cc<l?1:r.cc>l?-1:0})}},"./src/controller/fragment-tracker.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"FragmentState",function(){return s}),T.d(v,"FragmentTracker",function(){return _});var b=T("./src/events.ts"),g=T("./src/types/loader.ts"),s;(function(a){a.NOT_LOADED="NOT_LOADED",a.BACKTRACKED="BACKTRACKED",a.APPENDING="APPENDING",a.PARTIAL="PARTIAL",a.OK="OK"})(s||(s={}));var _=function(){function a(l){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=l,this._registerListeners()}var n=a.prototype;return n._registerListeners=function(){var r=this.hls;r.on(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),r.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),r.on(b.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var r=this.hls;r.off(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),r.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),r.off(b.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(r,i){if(i===g.PlaylistLevelType.MAIN){var t=this.activeFragment,o=this.activeParts;if(!t)return null;if(o)for(var c=o.length;c--;){var d=o[c],f=d?d.end:t.appendedPTS;if(d.start<=r&&f!==void 0&&r<=f)return c>9&&(this.activeParts=o.slice(c-9)),d}else if(t.start<=r&&t.appendedPTS!==void 0&&r<=t.appendedPTS)return t}return this.getBufferedFrag(r,i)},n.getBufferedFrag=function(r,i){for(var t=this.fragments,o=Object.keys(t),c=o.length;c--;){var d=t[o[c]];if((d==null?void 0:d.body.type)===i&&d.buffered){var f=d.body;if(f.start<=r&&r<=f.end)return f}}return null},n.detectEvictedFragments=function(r,i,t){var o=this;Object.keys(this.fragments).forEach(function(c){var d=o.fragments[c];if(!d)return;if(!d.buffered){d.body.type===t&&o.removeFragment(d.body);return}var f=d.range[r];if(!f)return;f.time.some(function(h){var u=!o.isTimeBuffered(h.startPTS,h.endPTS,i);return u&&o.removeFragment(d.body),u})})},n.detectPartialFragments=function(r){var i=this,t=this.timeRanges,o=r.frag,c=r.part;if(!t||o.sn==="initSegment")return;var d=e(o),f=this.fragments[d];if(!f)return;Object.keys(t).forEach(function(h){var u=o.elementaryStreams[h];if(!u)return;var E=t[h],x=c!==null||u.partial===!0;f.range[h]=i.getBufferedTimes(o,c,x,E)}),f.backtrack=f.loaded=null,Object.keys(f.range).length?f.buffered=!0:this.removeFragment(f.body)},n.fragBuffered=function(r){var i=e(r),t=this.fragments[i];t&&(t.backtrack=t.loaded=null,t.buffered=!0)},n.getBufferedTimes=function(r,i,t,o){for(var c={time:[],partial:t},d=i?i.start:r.start,f=i?i.end:r.end,h=r.minEndPTS||f,u=r.maxStartPTS||d,E=0;E<o.length;E++){var x=o.start(E)-this.bufferPadding,O=o.end(E)+this.bufferPadding;if(u>=x&&h<=O){c.time.push({startPTS:Math.max(d,o.start(E)),endPTS:Math.min(f,o.end(E))});break}else if(d<O&&f>x)c.partial=!0,c.time.push({startPTS:Math.max(d,o.start(E)),endPTS:Math.min(f,o.end(E))});else if(f<=x)break}return c},n.getPartialFragment=function(r){var i=null,t,o,c,d=0,f=this.bufferPadding,h=this.fragments;return Object.keys(h).forEach(function(u){var E=h[u];if(!E)return;p(E)&&(o=E.body.start-f,c=E.body.end+f,r>=o&&r<=c&&(t=Math.min(r-o,c-r),d<=t&&(i=E.body,d=t)))}),i},n.getState=function(r){var i=e(r),t=this.fragments[i];return t?t.buffered?p(t)?s.PARTIAL:s.OK:t.backtrack?s.BACKTRACKED:s.APPENDING:s.NOT_LOADED},n.backtrack=function(r,i){var t=e(r),o=this.fragments[t];if(!o||o.backtrack)return null;var c=o.backtrack=i||o.loaded;return o.loaded=null,c},n.getBacktrackData=function(r){var i=e(r),t=this.fragments[i];if(t){var o,c=t.backtrack;if(c!=null&&(o=c.payload)!==null&&o!==void 0&&o.byteLength)return c;this.removeFragment(r)}return null},n.isTimeBuffered=function(r,i,t){for(var o,c,d=0;d<t.length;d++){if(o=t.start(d)-this.bufferPadding,c=t.end(d)+this.bufferPadding,r>=o&&i<=c)return!0;if(i<=o)return!1}return!1},n.onFragLoaded=function(r,i){var t=i.frag,o=i.part;if(t.sn==="initSegment"||t.bitrateTest||o)return;var c=e(t);this.fragments[c]={body:t,loaded:i,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(r,i){var t=this,o=i.frag,c=i.part,d=i.timeRanges;if(o.type===g.PlaylistLevelType.MAIN)if(this.activeFragment=o,c){var f=this.activeParts;f||(this.activeParts=f=[]),f.push(c)}else this.activeParts=null;this.timeRanges=d,Object.keys(d).forEach(function(h){var u=d[h];if(t.detectEvictedFragments(h,u),!c)for(var E=0;E<u.length;E++)o.appendedPTS=Math.max(u.end(E),o.appendedPTS||0)})},n.onFragBuffered=function(r,i){this.detectPartialFragments(i)},n.hasFragment=function(r){var i=e(r);return!!this.fragments[i]},n.removeFragmentsInRange=function(r,i,t){var o=this;Object.keys(this.fragments).forEach(function(c){var d=o.fragments[c];if(!d)return;if(d.buffered){var f=d.body;f.type===t&&f.start<i&&f.end>r&&o.removeFragment(f)}})},n.removeFragment=function(r){var i=e(r);r.stats.loaded=0,r.clearElementaryStreamInfo(),delete this.fragments[i]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},a}();function p(a){var n,l;return a.buffered&&(((n=a.range.video)===null||n===void 0?void 0:n.partial)||((l=a.range.audio)===null||l===void 0?void 0:l.partial))}function e(a){return a.type+"_"+a.level+"_"+a.urlId+"_"+a.sn}},"./src/controller/gap-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"STALL_MINIMUM_DURATION_MS",function(){return p}),T.d(v,"MAX_START_GAP_JUMP",function(){return e}),T.d(v,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return a}),T.d(v,"SKIP_BUFFER_RANGE_START",function(){return n}),T.d(v,"default",function(){return l});var b=T("./src/utils/buffer-helper.ts"),g=T("./src/errors.ts"),s=T("./src/events.ts"),_=T("./src/utils/logger.ts"),p=250,e=2,a=.1,n=.05,l=function(){function r(t,o,c,d){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=o,this.fragmentTracker=c,this.hls=d}var i=r.prototype;return i.destroy=function(){this.hls=this.fragmentTracker=this.media=null},i.poll=function(o){var c=this.config,d=this.media,f=this.stalled,h=d.currentTime,u=d.seeking,E=this.seeking&&!u,x=!this.seeking&&u;if(this.seeking=u,h!==o){if(this.moved=!0,f!==null){if(this.stallReported){var O=self.performance.now()-f;_.logger.warn("playback not stuck anymore @"+h+", after "+Math.round(O)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((x||E)&&(this.stalled=null),d.paused||d.ended||d.playbackRate===0||!b.BufferHelper.getBuffered(d).length)return;var C=b.BufferHelper.bufferInfo(d,h,0),w=C.len>0,S=C.nextStart||0;if(!w&&!S)return;if(u){var D=C.len>e,R=!S||S-h>e&&!this.fragmentTracker.getPartialFragment(h);if(D||R)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var P,N=Math.max(S,C.start||0)-h,M=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,z=M==null||((P=M.details)===null||P===void 0)?void 0:P.live,X=z?M.details.targetduration*2:e;if(N>0&&N<=X){this._trySkipBufferHole(null);return}}var k=self.performance.now();if(f===null){this.stalled=k;return}var F=k-f;!u&&F>=p&&this._reportStall(C.len);var U=b.BufferHelper.bufferInfo(d,h,c.maxBufferHole);this._tryFixBufferStall(U,F)},i._tryFixBufferStall=function(o,c){var d=this.config,f=this.fragmentTracker,h=this.media,u=h.currentTime,E=f.getPartialFragment(u);if(E){var x=this._trySkipBufferHole(E);if(x)return}o.len>d.maxBufferHole&&c>d.highBufferWatchdogPeriod*1e3&&(_.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},i._reportStall=function(o){var c=this.hls,d=this.media,f=this.stallReported;f||(this.stallReported=!0,_.logger.warn("Playback stalling at @"+d.currentTime+" due to low buffer (buffer="+o+")"),c.trigger(s.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:o}))},i._trySkipBufferHole=function(o){for(var c=this.config,d=this.hls,f=this.media,h=f.currentTime,u=0,E=b.BufferHelper.getBuffered(f),x=0;x<E.length;x++){var O=E.start(x);if(h+c.maxBufferHole>=u&&h<O){var C=Math.max(O+n,f.currentTime+a);return _.logger.warn("skipping hole, adjusting currentTime from "+h+" to "+C),this.moved=!0,this.stalled=null,f.currentTime=C,o&&d.trigger(s.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+h+" to "+C,frag:o}),C}u=E.end(x)}return 0},i._tryNudgeBuffer=function(){var o=this.config,c=this.hls,d=this.media,f=d.currentTime,h=(this.nudgeRetry||0)+1;if(this.nudgeRetry=h,h<o.nudgeMaxRetry){var u=f+h*o.nudgeOffset;_.logger.warn("Nudging 'currentTime' from "+f+" to "+u),d.currentTime=u,c.trigger(s.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else _.logger.error("Playhead still not moving while enough data buffered @"+f+" after "+o.nudgeMaxRetry+" nudges"),c.trigger(s.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},r}()},"./src/controller/id3-track-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/events.ts"),g=T("./src/utils/texttrack-utils.ts"),s=T("./src/demux/id3.ts"),_=.25,p=function(){function e(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var a=e.prototype;return a.destroy=function(){this._unregisterListeners()},a._registerListeners=function(){var l=this.hls;l.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),l.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},a._unregisterListeners=function(){var l=this.hls;l.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),l.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},a.onMediaAttached=function(l,r){this.media=r.media},a.onMediaDetaching=function(){if(!this.id3Track)return;Object(g.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},a.getID3Track=function(l){if(!this.media)return;for(var r=0;r<l.length;r++){var i=l[r];if(i.kind==="metadata"&&i.label==="id3")return Object(g.sendAddTrackEvent)(i,this.media),i}return this.media.addTextTrack("metadata","id3")},a.onFragParsingMetadata=function(l,r){if(!this.media)return;var i=r.frag,t=r.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var o=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,c=0;c<t.length;c++){var d=s.getID3Frames(t[c].data);if(d){var f=t[c].pts,h=c<t.length-1?t[c+1].pts:i.end,u=h-f;u<=0&&(h=f+_);for(var E=0;E<d.length;E++){var x=d[E];if(!s.isTimeStampFrame(x)){var O=new o(f,h,"");O.value=x,this.id3Track.addCue(O)}}}}},a.onBufferFlushing=function(l,r){var i=r.startOffset,t=r.endOffset,o=r.type;if(!o||o==="audio"){var c=this.id3Track;c&&Object(g.removeCuesInRange)(c,i,t)}},e}();v.default=p},"./src/controller/latency-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return e});var b=T("./src/errors.ts"),g=T("./src/events.ts"),s=T("./src/utils/logger.ts");function _(a,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(a,r.key,r)}}function p(a,n,l){return n&&_(a.prototype,n),l&&_(a,l),a}var e=function(){function a(l){var r=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return r.timeupdate()},this.hls=l,this.config=l.config,this.registerListeners()}var n=a.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(g.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(g.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(g.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(g.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(g.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(g.Events.ERROR,this.onError)},n.onMediaAttached=function(r,i){this.media=i.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},n.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},n.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},n.onLevelUpdated=function(r,i){var t=i.details;this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(r,i){if(i.details!==b.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,s.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var r=this.media,i=this.levelDetails;if(!r||!i)return;this.currentTime=r.currentTime;var t=this.computeLatency();if(t===null)return;this._latency=t;var o=this.config,c=o.lowLatencyMode,d=o.maxLiveSyncPlaybackRate;if(!c||d===1)return;var f=this.targetLatency;if(f===null)return;var h=t-f,u=Math.min(this.maxLatency,f+i.targetduration),E=h<u;if(i.live&&E&&h>.05&&this.forwardBufferLength>1){var x=Math.min(2,Math.max(1,d)),O=Math.round(2/(1+Math.exp(-.75*h-this.edgeStalled))*20)/20;r.playbackRate=Math.min(x,Math.max(1,O))}else r.playbackRate!==1&&r.playbackRate!==0&&(r.playbackRate=1)},n.estimateLiveEdge=function(){var r=this.levelDetails;return r===null?null:r.edge+r.age},n.computeLatency=function(){var r=this.estimateLiveEdge();return r===null?null:r-this.currentTime},p(a,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var r=this.config,i=this.levelDetails;return r.liveMaxLatencyDuration!==void 0?r.liveMaxLatencyDuration:i?r.liveMaxLatencyDurationCount*i.targetduration:0}},{key:"targetLatency",get:function(){var r=this.levelDetails;if(r===null)return null;var i=r.holdBack,t=r.partHoldBack,o=r.targetduration,c=this.config,d=c.liveSyncDuration,f=c.liveSyncDurationCount,h=c.lowLatencyMode,u=this.hls.userConfig,E=h&&t||i;(u.liveSyncDuration||u.liveSyncDurationCount||E===0)&&(E=d!==void 0?d:f*o);var x=o,O=1;return E+Math.min(this.stallCount*O,x)}},{key:"liveSyncPosition",get:function(){var r=this.estimateLiveEdge(),i=this.targetLatency,t=this.levelDetails;if(r===null||i===null||t===null)return null;var o=t.edge,c=r-i-this.edgeStalled,d=o-t.totalduration,f=o-(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.min(Math.max(d,c),f)}},{key:"drift",get:function(){var r=this.levelDetails;return r===null?1:r.drift}},{key:"edgeStalled",get:function(){var r=this.levelDetails;if(r===null)return 0;var i=(this.config.lowLatencyMode&&r.partTarget||r.targetduration)*3;return Math.max(r.age-i,0)}},{key:"forwardBufferLength",get:function(){var r=this.media,i=this.levelDetails;if(!r||!i)return 0;var t=r.buffered.length;return t?r.buffered.end(t-1):i.edge-this.currentTime}}]),a}()},"./src/controller/level-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return c});var b=T("./src/types/level.ts"),g=T("./src/events.ts"),s=T("./src/errors.ts"),_=T("./src/utils/codecs.ts"),p=T("./src/controller/level-helper.ts"),e=T("./src/controller/base-playlist-controller.ts"),a=T("./src/types/loader.ts");function n(){return n=Object.assign||function(d){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(d[u]=h[u])}return d},n.apply(this,arguments)}function l(d,f){for(var h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}function r(d,f,h){return f&&l(d.prototype,f),h&&l(d,h),d}function i(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,t(d,f)}function t(d,f){return t=Object.setPrototypeOf||function(u,E){return u.__proto__=E,u},t(d,f)}var o=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),c=function(d){i(f,d);function f(u){var E;return E=d.call(this,u,"[level-controller]")||this,E._levels=[],E._firstLevel=-1,E._startLevel=void 0,E.currentLevelIndex=-1,E.manualLevelIndex=-1,E.onParsedComplete=void 0,E._registerListeners(),E}var h=f.prototype;return h._registerListeners=function(){var E=this.hls;E.on(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.on(g.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(g.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.on(g.Events.FRAG_LOADED,this.onFragLoaded,this),E.on(g.Events.ERROR,this.onError,this)},h._unregisterListeners=function(){var E=this.hls;E.off(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.off(g.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(g.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.off(g.Events.FRAG_LOADED,this.onFragLoaded,this),E.off(g.Events.ERROR,this.onError,this)},h.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,d.prototype.destroy.call(this)},h.startLoad=function(){var E=this._levels;E.forEach(function(x){x.loadError=0}),d.prototype.startLoad.call(this)},h.onManifestLoaded=function(E,x){var O=[],C=[],w=[],S,D={},R,P=!1,N=!1,M=!1;if(x.levels.forEach(function(F){var U=F.attrs;P=P||!!(F.width&&F.height),N=N||!!F.videoCodec,M=M||!!F.audioCodec,o&&F.audioCodec&&F.audioCodec.indexOf("mp4a.40.34")!==-1&&(F.audioCodec=void 0);var L=F.bitrate+"-"+F.attrs.RESOLUTION+"-"+F.attrs.CODECS;R=D[L],R?R.url.push(F.url):(R=new b.Level(F),D[L]=R,O.push(R)),U&&(U.AUDIO&&Object(p.addGroupId)(R,"audio",U.AUDIO),U.SUBTITLES&&Object(p.addGroupId)(R,"text",U.SUBTITLES))}),(P||N)&&M&&(O=O.filter(function(F){var U=F.videoCodec,L=F.width,B=F.height;return!!U||!!(L&&B)})),O=O.filter(function(F){var U=F.audioCodec,L=F.videoCodec;return(!U||Object(_.isCodecSupportedInMp4)(U,"audio"))&&(!L||Object(_.isCodecSupportedInMp4)(L,"video"))}),x.audioTracks&&(C=x.audioTracks.filter(function(F){return!F.audioCodec||Object(_.isCodecSupportedInMp4)(F.audioCodec,"audio")}),Object(p.assignTrackIdsByGroup)(C)),x.subtitles&&(w=x.subtitles,Object(p.assignTrackIdsByGroup)(w)),O.length>0){S=O[0].bitrate,O.sort(function(F,U){return F.bitrate-U.bitrate}),this._levels=O;for(var z=0;z<O.length;z++)if(O[z].bitrate===S){this._firstLevel=z,this.log("manifest loaded, "+O.length+" level(s) found, first bitrate: "+S);break}var X=M&&!N,k={levels:O,audioTracks:C,subtitleTracks:w,firstLevel:this._firstLevel,stats:x.stats,audio:M,video:N,altAudio:!X&&C.some(function(F){return!!F.url})};this.hls.trigger(g.Events.MANIFEST_PARSED,k),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(g.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:x.url,reason:"no level with compatible codecs found in manifest"})},h.onError=function(E,x){if(d.prototype.onError.call(this,E,x),x.fatal)return;var O=x.context,C=this._levels[this.currentLevelIndex];if(O&&(O.type===a.PlaylistContextType.AUDIO_TRACK&&C.audioGroupIds&&O.groupId===C.audioGroupIds[C.urlId]||O.type===a.PlaylistContextType.SUBTITLE_TRACK&&C.textGroupIds&&O.groupId===C.textGroupIds[C.urlId])){this.redundantFailover(this.currentLevelIndex);return}var w=!1,S=!0,D;switch(x.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:if(x.frag){var R=this._levels[x.frag.level];R?(R.fragmentError++,R.fragmentError>this.hls.config.fragLoadingMaxRetry&&(D=x.frag.level)):D=x.frag.level}break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:O&&(O.deliveryDirectives&&(S=!1),D=O.level),w=!0;break;case s.ErrorDetails.REMUX_ALLOC_ERROR:D=x.level,w=!0;break}D!==void 0&&this.recoverLevel(x,D,w,S)},h.recoverLevel=function(E,x,O,C){var w=E.details,S=this._levels[x];if(S.loadError++,O){var D=this.retryLoadingOrFail(E);if(D)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(C){var R=S.url.length;if(R>1&&S.loadError<R)E.levelRetry=!0,this.redundantFailover(x);else if(this.manualLevelIndex===-1){var P=x===0?this._levels.length-1:x-1;this.currentLevelIndex!==P&&this._levels[P].loadError===0&&(this.warn(w+": switch to "+P),E.levelRetry=!0,this.hls.nextAutoLevel=P)}}},h.redundantFailover=function(E){var x=this._levels[E],O=x.url.length;if(O>1){var C=(x.urlId+1)%O;this.warn("Switching to redundant URL-id "+C),this._levels.forEach(function(w){w.urlId=C}),this.level=E}},h.onFragLoaded=function(E,x){var O=x.frag;if(O!==void 0&&O.type===a.PlaylistLevelType.MAIN){var C=this._levels[O.level];C!==void 0&&(C.fragmentError=0,C.loadError=0)}},h.onLevelLoaded=function(E,x){var O,C=x.level,w=x.details,S=this._levels[C];if(!S){var D;this.warn("Invalid level index "+C),(D=x.deliveryDirectives)!==null&&D!==void 0&&D.skip&&(w.deltaUpdateFailed=!0);return}C===this.currentLevelIndex?(S.fragmentError===0&&(S.loadError=0,this.retryCount=0),this.playlistLoaded(C,x,S.details)):(O=x.deliveryDirectives)!==null&&O!==void 0&&O.skip&&(w.deltaUpdateFailed=!0)},h.onAudioTrackSwitched=function(E,x){var O=this.hls.levels[this.currentLevelIndex];if(!O)return;if(O.audioGroupIds){for(var C=-1,w=this.hls.audioTracks[x.id].groupId,S=0;S<O.audioGroupIds.length;S++)if(O.audioGroupIds[S]===w){C=S;break}C!==O.urlId&&(O.urlId=C,this.startLoad())}},h.loadPlaylist=function(E){var x=this.currentLevelIndex,O=this._levels[x];if(this.canLoad&&O&&O.url.length>0){var C=O.urlId,w=O.url[C];if(E)try{w=E.addDirectives(w)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("Attempt loading level index "+x+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+C+" "+w),this.clearTimer(),this.hls.trigger(g.Events.LEVEL_LOADING,{url:w,level:x,id:C,deliveryDirectives:E||null})}},h.removeLevel=function(E,x){var O=function(S,D){return D!==x},C=this._levels.filter(function(w,S){return S!==E?!0:w.url.length>1&&x!==void 0?(w.url=w.url.filter(O),w.audioGroupIds&&(w.audioGroupIds=w.audioGroupIds.filter(O)),w.textGroupIds&&(w.textGroupIds=w.textGroupIds.filter(O)),w.urlId=0,!0):!1}).map(function(w,S){var D=w.details;return D!=null&&D.fragments&&D.fragments.forEach(function(R){R.level=S}),w});this._levels=C,this.hls.trigger(g.Events.LEVELS_UPDATED,{levels:C})},r(f,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var x,O=this._levels;if(O.length===0)return;if(this.currentLevelIndex===E&&(x=O[E])!==null&&x!==void 0&&x.details)return;if(E<0||E>=O.length){var C=E<0;if(this.hls.trigger(g.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:C,reason:"invalid level idx"}),C)return;E=Math.min(E,O.length-1)}this.clearTimer();var w=this.currentLevelIndex,S=O[w],D=O[E];this.log("switching to level "+E+" from "+w),this.currentLevelIndex=E;var R=n({},D,{level:E,maxBitrate:D.maxBitrate,uri:D.uri,urlId:D.urlId});delete R._urlId,this.hls.trigger(g.Events.LEVEL_SWITCHING,R);var P=D.details;if(!P||P.live){var N=this.switchParams(D.uri,S==null?void 0:S.details);this.loadPlaylist(N)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),f}(e.default)},"./src/controller/level-helper.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"addGroupId",function(){return s}),T.d(v,"assignTrackIdsByGroup",function(){return _}),T.d(v,"updatePTS",function(){return p}),T.d(v,"updateFragPTSDTS",function(){return a}),T.d(v,"mergeDetails",function(){return n}),T.d(v,"mapPartIntersection",function(){return l}),T.d(v,"mapFragmentIntersection",function(){return r}),T.d(v,"adjustSliding",function(){return i}),T.d(v,"addSliding",function(){return t}),T.d(v,"computeReloadInterval",function(){return o}),T.d(v,"getFragmentWithSN",function(){return c}),T.d(v,"getPartWith",function(){return d});var b=T("./src/polyfills/number.ts"),g=T("./src/utils/logger.ts");function s(f,h,u){switch(h){case"audio":f.audioGroupIds||(f.audioGroupIds=[]),f.audioGroupIds.push(u);break;case"text":f.textGroupIds||(f.textGroupIds=[]),f.textGroupIds.push(u);break}}function _(f){var h={};f.forEach(function(u){var E=u.groupId||"";u.id=h[E]=h[E]||0,h[E]++})}function p(f,h,u){var E=f[h],x=f[u];e(E,x)}function e(f,h){var u=h.startPTS;if(Object(b.isFiniteNumber)(u)){var E=0,x;h.sn>f.sn?(E=u-f.start,x=f):(E=f.start-u,x=h),x.duration!==E&&(x.duration=E)}else if(h.sn>f.sn){var O=f.cc===h.cc;O&&f.minEndPTS?h.start=f.start+(f.minEndPTS-f.start):h.start=f.start+f.duration}else h.start=Math.max(f.start-h.duration,0)}function a(f,h,u,E,x,O){var C=E-u;C<=0&&(g.logger.warn("Fragment should have a positive duration",h),E=u+h.duration,O=x+h.duration);var w=u,S=E,D=h.startPTS,R=h.endPTS;if(Object(b.isFiniteNumber)(D)){var P=Math.abs(D-u);Object(b.isFiniteNumber)(h.deltaPTS)?h.deltaPTS=Math.max(P,h.deltaPTS):h.deltaPTS=P,w=Math.max(u,D),u=Math.min(u,D),x=Math.min(x,h.startDTS),S=Math.min(E,R),E=Math.max(E,R),O=Math.max(O,h.endDTS)}h.duration=E-u;var N=u-h.start;h.appendedPTS=E,h.start=h.startPTS=u,h.maxStartPTS=w,h.startDTS=x,h.endPTS=E,h.minEndPTS=S,h.endDTS=O;var M=h.sn;if(!f||M<f.startSN||M>f.endSN)return 0;var z,X=M-f.startSN,k=f.fragments;for(k[X]=h,z=X;z>0;z--)e(k[z],k[z-1]);for(z=X;z<k.length-1;z++)e(k[z],k[z+1]);return f.fragmentHint&&e(k[k.length-1],f.fragmentHint),f.PTSKnown=f.alignedSliding=!0,N}function n(f,h){for(var u=null,E=f.fragments,x=E.length-1;x>=0;x--){var O=E[x].initSegment;if(O){u=O;break}}f.fragmentHint&&delete f.fragmentHint.endPTS;var C=0,w;if(r(f,h,function(z,X){z.relurl&&(C=z.cc-X.cc),Object(b.isFiniteNumber)(z.startPTS)&&Object(b.isFiniteNumber)(z.endPTS)&&(X.start=X.startPTS=z.startPTS,X.startDTS=z.startDTS,X.appendedPTS=z.appendedPTS,X.maxStartPTS=z.maxStartPTS,X.endPTS=z.endPTS,X.endDTS=z.endDTS,X.minEndPTS=z.minEndPTS,X.duration=z.endPTS-z.startPTS,X.duration&&(w=X),h.PTSKnown=h.alignedSliding=!0),X.elementaryStreams=z.elementaryStreams,X.loader=z.loader,X.stats=z.stats,X.urlId=z.urlId,z.initSegment&&(X.initSegment=z.initSegment,u=z.initSegment)}),u){var S=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments;S.forEach(function(z){var X;(!z.initSegment||z.initSegment.relurl===((X=u)===null||X===void 0?void 0:X.relurl))&&(z.initSegment=u)})}if(h.skippedSegments&&(h.deltaUpdateFailed=h.fragments.some(function(z){return!z}),h.deltaUpdateFailed)){g.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var D=h.skippedSegments;D--;)h.fragments.shift();h.startSN=h.fragments[0].sn,h.startCC=h.fragments[0].cc}var R=h.fragments;if(C){g.logger.warn("discontinuity sliding from playlist, take drift into account");for(var P=0;P<R.length;P++)R[P].cc+=C}h.skippedSegments&&(h.startCC=h.fragments[0].cc),l(f.partList,h.partList,function(z,X){X.elementaryStreams=z.elementaryStreams,X.stats=z.stats}),w?a(h,w,w.startPTS,w.endPTS,w.startDTS,w.endDTS):i(f,h),R.length&&(h.totalduration=h.edge-R[0].start),h.driftStartTime=f.driftStartTime,h.driftStart=f.driftStart;var N=h.advancedDateTime;if(h.advanced&&N){var M=h.edge;h.driftStart||(h.driftStartTime=N,h.driftStart=M),h.driftEndTime=N,h.driftEnd=M}else h.driftEndTime=f.driftEndTime,h.driftEnd=f.driftEnd,h.advancedDateTime=f.advancedDateTime}function l(f,h,u){if(f&&h)for(var E=0,x=0,O=f.length;x<=O;x++){var C=f[x],w=h[x+E];C&&w&&C.index===w.index&&C.fragment.sn===w.fragment.sn?u(C,w):E--}}function r(f,h,u){for(var E=h.skippedSegments,x=Math.max(f.startSN,h.startSN)-h.startSN,O=(f.fragmentHint?1:0)+(E?h.endSN:Math.min(f.endSN,h.endSN))-h.startSN,C=h.startSN-f.startSN,w=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments,S=f.fragmentHint?f.fragments.concat(f.fragmentHint):f.fragments,D=x;D<=O;D++){var R=S[C+D],P=w[D];E&&!P&&D<E&&(P=h.fragments[D]=R),R&&P&&u(R,P)}}function i(f,h){var u=h.startSN+h.skippedSegments-f.startSN,E=f.fragments;if(u<0||u>=E.length)return;t(h,E[u].start)}function t(f,h){if(h){for(var u=f.fragments,E=f.skippedSegments;E<u.length;E++)u[E].start+=h;f.fragmentHint&&(f.fragmentHint.start+=h)}}function o(f,h){var u=1e3*f.levelTargetDuration,E=u/2,x=f.age,O=x>0&&x<u*3,C=h.loading.end-h.loading.start,w,S=f.availabilityDelay;if(f.updated===!1)if(O){var D=333*f.misses;w=Math.max(Math.min(E,C*2),D),f.availabilityDelay=(f.availabilityDelay||0)+w}else w=E;else O?(S=Math.min(S||u/2,x),f.availabilityDelay=S,w=S+u-x):w=u-C;return Math.round(w)}function c(f,h,u){if(!f||!f.details)return null;var E=f.details,x=E.fragments[h-E.startSN];return x||(x=E.fragmentHint,x&&x.sn===h?x:h<E.startSN&&u&&u.sn===h?u:null)}function d(f,h,u){if(!f||!f.details)return null;var E=f.details.partList;if(E)for(var x=E.length;x--;){var O=E[x];if(O.index===u&&O.fragment.sn===h)return O}return null}},"./src/controller/stream-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return E});var b=T("./src/polyfills/number.ts"),g=T("./src/controller/base-stream-controller.ts"),s=T("./src/is-supported.ts"),_=T("./src/events.ts"),p=T("./src/utils/buffer-helper.ts"),e=T("./src/controller/fragment-tracker.ts"),a=T("./src/types/loader.ts"),n=T("./src/loader/fragment.ts"),l=T("./src/demux/transmuxer-interface.ts"),r=T("./src/types/transmuxer.ts"),i=T("./src/controller/gap-controller.ts"),t=T("./src/errors.ts"),o=T("./src/utils/logger.ts");function c(x,O){for(var C=0;C<O.length;C++){var w=O[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(x,w.key,w)}}function d(x,O,C){return O&&c(x.prototype,O),C&&c(x,C),x}function f(x,O){x.prototype=Object.create(O.prototype),x.prototype.constructor=x,h(x,O)}function h(x,O){return h=Object.setPrototypeOf||function(w,S){return w.__proto__=S,w},h(x,O)}var u=100,E=function(x){f(O,x);function O(w,S){var D;return D=x.call(this,w,S,"[stream-controller]")||this,D.audioCodecSwap=!1,D.gapController=null,D.level=-1,D._forceStartLoad=!1,D.altAudio=!1,D.audioOnly=!1,D.fragPlaying=null,D.onvplaying=null,D.onvseeked=null,D.fragLastKbps=0,D.stalled=!1,D.couldBacktrack=!1,D.audioCodecSwitch=!1,D.videoBuffer=null,D._registerListeners(),D}var C=O.prototype;return C._registerListeners=function(){var S=this.hls;S.on(_.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.on(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.on(_.Events.LEVEL_LOADING,this.onLevelLoading,this),S.on(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(_.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.on(_.Events.ERROR,this.onError,this),S.on(_.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.on(_.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(_.Events.BUFFER_CREATED,this.onBufferCreated,this),S.on(_.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.on(_.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.on(_.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C._unregisterListeners=function(){var S=this.hls;S.off(_.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.off(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.off(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.off(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(_.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.off(_.Events.ERROR,this.onError,this),S.off(_.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.off(_.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(_.Events.BUFFER_CREATED,this.onBufferCreated,this),S.off(_.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.off(_.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.off(_.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},C.startLoad=function(S){if(this.levels){var D=this.lastCurrentTime,R=this.hls;if(this.stopLoad(),this.setInterval(u),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var P=R.startLevel;P===-1&&(R.config.testBandwidth?(P=0,this.bitrateTest=!0):P=R.nextAutoLevel),this.level=R.nextLoadLevel=P,this.loadedmetadata=!1}D>0&&S===-1&&(this.log("Override startPosition with lastCurrentTime @"+D.toFixed(3)),S=D),this.state=g.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=S,this.tick()}else this._forceStartLoad=!0,this.state=g.State.STOPPED},C.stopLoad=function(){this._forceStartLoad=!1,x.prototype.stopLoad.call(this)},C.doTick=function(){switch(this.state){case g.State.IDLE:this.doTickIdle();break;case g.State.WAITING_LEVEL:{var S,D=this.levels,R=this.level,P=D==null||((S=D[R])===null||S===void 0)?void 0:S.details;if(P&&(!P.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(P))break;this.state=g.State.IDLE;break}break}case g.State.FRAG_LOADING_WAITING_RETRY:{var N,M=self.performance.now(),z=this.retryDate;(!z||M>=z||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=g.State.IDLE)}break;default:break}this.onTickEnd()},C.onTickEnd=function(){x.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},C.doTickIdle=function(){var S,D,R=this.hls,P=this.levelLastLoaded,N=this.levels,M=this.media,z=R.config,X=R.nextLoadLevel;if(P===null||!M&&(this.startFragRequested||!z.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!N||!N[X])return;var k=N[X];this.level=R.nextLoadLevel=X;var F=k.details;if(!F||this.state===g.State.WAITING_LEVEL||F.live&&this.levelLastLoaded!==X){this.state=g.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:M,a.PlaylistLevelType.MAIN);if(U===null)return;var L=U.len,B=this.getMaxBufferLength(k.maxBitrate);if(L>=B)return;if(this._streamEnded(U,F)){var Z={};this.altAudio&&(Z.type="video"),this.hls.trigger(_.Events.BUFFER_EOS,Z),this.state=g.State.ENDED;return}var re=U.end,me=this.getNextFragment(re,F);if(this.couldBacktrack&&!this.fragPrevious&&me&&me.sn!=="initSegment"){var Ee=me.sn-F.startSN;Ee>1&&(me=F.fragments[Ee-1],this.fragmentTracker.removeFragment(me))}if(me&&this.fragmentTracker.getState(me)===e.FragmentState.OK&&this.nextLoadPosition>re){var De=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(M,De,a.PlaylistLevelType.MAIN),me=this.getNextFragment(this.nextLoadPosition,F)}if(!me)return;me.initSegment&&!me.initSegment.data&&!this.bitrateTest&&(me=me.initSegment),((S=me.decryptdata)===null||S===void 0?void 0:S.keyFormat)==="identity"&&!((D=me.decryptdata)!==null&&D!==void 0&&D.key)?this.loadKey(me,F):this.loadFragment(me,F,re)},C.loadFragment=function(S,D,R){var P,N=this.fragmentTracker.getState(S);if(this.fragCurrent=S,N===e.FragmentState.BACKTRACKED){var M=this.fragmentTracker.getBacktrackData(S);if(M){this._handleFragmentLoadProgress(M),this._handleFragmentLoadComplete(M);return}else N=e.FragmentState.NOT_LOADED}N===e.FragmentState.NOT_LOADED||N===e.FragmentState.PARTIAL?S.sn==="initSegment"?this._loadInitSegment(S):this.bitrateTest?(S.bitrateTest=!0,this.log("Fragment "+S.sn+" of level "+S.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(S)):(this.startFragRequested=!0,x.prototype.loadFragment.call(this,S,D,R)):N===e.FragmentState.APPENDING?this.reduceMaxBufferLength(S.duration)&&this.fragmentTracker.removeFragment(S):((P=this.media)===null||P===void 0?void 0:P.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},C.getAppendedFrag=function(S){var D=this.fragmentTracker.getAppendedFrag(S,a.PlaylistLevelType.MAIN);return D&&"fragment"in D?D.fragment:D},C.getBufferedFrag=function(S){return this.fragmentTracker.getBufferedFrag(S,a.PlaylistLevelType.MAIN)},C.followingBufferedFrag=function(S){return S?this.getBufferedFrag(S.end+.5):null},C.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},C.nextLevelSwitch=function(){var S=this.levels,D=this.media;if(D!=null&&D.readyState){var R,P=this.getAppendedFrag(D.currentTime);if(P&&P.start>1&&this.flushMainBuffer(0,P.start-1),!D.paused&&S){var N=this.hls.nextLoadLevel,M=S[N],z=this.fragLastKbps;z&&this.fragCurrent?R=this.fragCurrent.duration*M.maxBitrate/(1e3*z)+1:R=0}else R=0;var X=this.getBufferedFrag(D.currentTime+R);if(X){var k=this.followingBufferedFrag(X);if(k){this.abortCurrentFrag();var F=k.maxStartPTS?k.maxStartPTS:k.start,U=k.duration,L=Math.max(X.end,F+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(L,Number.POSITIVE_INFINITY)}}}},C.abortCurrentFrag=function(){var S=this.fragCurrent;this.fragCurrent=null,S!=null&&S.loader&&S.loader.abort(),this.state===g.State.KEY_LOADING&&(this.state=g.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},C.flushMainBuffer=function(S,D){x.prototype.flushMainBuffer.call(this,S,D,this.altAudio?"video":null)},C.onMediaAttached=function(S,D){x.prototype.onMediaAttached.call(this,S,D);var R=D.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),R.addEventListener("playing",this.onvplaying),R.addEventListener("seeked",this.onvseeked),this.gapController=new i.default(this.config,R,this.fragmentTracker,this.hls)},C.onMediaDetaching=function(){var S=this.media;S&&(S.removeEventListener("playing",this.onvplaying),S.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),x.prototype.onMediaDetaching.call(this)},C.onMediaPlaying=function(){this.tick()},C.onMediaSeeked=function(){var S=this.media,D=S?S.currentTime:null;Object(b.isFiniteNumber)(D)&&this.log("Media seeked to "+D.toFixed(3)),this.tick()},C.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(_.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},C.onManifestParsed=function(S,D){var R=!1,P=!1,N;D.levels.forEach(function(M){N=M.audioCodec,N&&(N.indexOf("mp4a.40.2")!==-1&&(R=!0),N.indexOf("mp4a.40.5")!==-1&&(P=!0))}),this.audioCodecSwitch=R&&P&&!Object(s.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=D.levels,this.startFragRequested=!1},C.onLevelLoading=function(S,D){var R=this.levels;if(!R||this.state!==g.State.IDLE)return;var P=R[D.level];(!P.details||P.details.live&&this.levelLastLoaded!==D.level||this.waitForCdnTuneIn(P.details))&&(this.state=g.State.WAITING_LEVEL)},C.onLevelLoaded=function(S,D){var R,P=this.levels,N=D.level,M=D.details,z=M.totalduration;if(!P){this.warn("Levels were reset while loading level "+N);return}this.log("Level "+N+" loaded ["+M.startSN+","+M.endSN+"], cc ["+M.startCC+", "+M.endCC+"] duration:"+z);var X=this.fragCurrent;X&&(this.state===g.State.FRAG_LOADING||this.state===g.State.FRAG_LOADING_WAITING_RETRY)&&(X.level!==D.level&&X.loader&&(this.state=g.State.IDLE,X.loader.abort()));var k=P[N],F=0;if(M.live||(R=k.details)!==null&&R!==void 0&&R.live){if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed)return;F=this.alignPlaylists(M,k.details)}if(k.details=M,this.levelLastLoaded=N,this.hls.trigger(_.Events.LEVEL_UPDATED,{details:M,level:N}),this.state===g.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(M))return;this.state=g.State.IDLE}this.startFragRequested?M.live&&this.synchronizeToLiveEdge(M):this.setStartPosition(M,F),this.tick()},C._handleFragmentLoadProgress=function(S){var D,R=S.frag,P=S.part,N=S.payload,M=this.levels;if(!M){this.warn("Levels were reset while fragment load was in progress. Fragment "+R.sn+" of level "+R.level+" will not be buffered");return}var z=M[R.level],X=z.details;if(!X){this.warn("Dropping fragment "+R.sn+" of level "+R.level+" after level details were reset");return}var k=z.videoCodec,F=X.PTSKnown||!X.live,U=(D=R.initSegment)===null||D===void 0?void 0:D.data,L=this._getAudioCodec(z),B=this.transmuxer=this.transmuxer||new l.default(this.hls,a.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Z=P?P.index:-1,re=Z!==-1,me=new r.ChunkMetadata(R.level,R.sn,R.stats.chunkCount,N.byteLength,Z,re),Ee=this.initPTS[R.cc];B.push(N,U,L,k,R,P,X.totalduration,F,me,Ee)},C.onAudioTrackSwitching=function(S,D){var R=this.altAudio,P=!!D.url,N=D.id;if(!P){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var M=this.fragCurrent;M!=null&&M.loader&&(this.log("Switching to main audio track, cancel main fragment load"),M.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var z=this.hls;R&&z.trigger(_.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),z.trigger(_.Events.AUDIO_TRACK_SWITCHED,{id:N})}},C.onAudioTrackSwitched=function(S,D){var R=D.id,P=!!this.hls.audioTracks[R].url;if(P){var N=this.videoBuffer;N&&this.mediaBuffer!==N&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=N)}this.altAudio=P,this.tick()},C.onBufferCreated=function(S,D){var R=D.tracks,P,N,M=!1;for(var z in R){var X=R[z];if(X.id==="main"){if(N=z,P=X,z==="video"){var k=R[z];k&&(this.videoBuffer=k.buffer)}}else M=!0}M&&P?(this.log("Alternate track found, use "+N+".buffered to schedule main fragment loading"),this.mediaBuffer=P.buffer):this.mediaBuffer=this.media},C.onFragBuffered=function(S,D){var R=D.frag,P=D.part;if(R&&R.type!==a.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(R)){this.warn("Fragment "+R.sn+(P?" p: "+P.index:"")+" of level "+R.level+" finished buffering, but was aborted. state: "+this.state),this.state===g.State.PARSED&&(this.state=g.State.IDLE);return}var N=P?P.stats:R.stats;this.fragLastKbps=Math.round(8*N.total/(N.buffering.end-N.loading.first)),R.sn!=="initSegment"&&(this.fragPrevious=R),this.fragBufferedComplete(R,P)},C.onError=function(S,D){switch(D.details){case t.ErrorDetails.FRAG_LOAD_ERROR:case t.ErrorDetails.FRAG_LOAD_TIMEOUT:case t.ErrorDetails.KEY_LOAD_ERROR:case t.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(a.PlaylistLevelType.MAIN,D);break;case t.ErrorDetails.LEVEL_LOAD_ERROR:case t.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==g.State.ERROR&&(D.fatal?(this.warn(""+D.details),this.state=g.State.ERROR):!D.levelRetry&&this.state===g.State.WAITING_LEVEL&&(this.state=g.State.IDLE));break;case t.ErrorDetails.BUFFER_FULL_ERROR:if(D.parent==="main"&&(this.state===g.State.PARSING||this.state===g.State.PARSED)){var R=!0,P=this.getFwdBufferInfo(this.media,a.PlaylistLevelType.MAIN);P&&P.len>.5&&(R=!this.reduceMaxBufferLength(P.len)),R&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},C.checkBuffer=function(){var S=this.media,D=this.gapController;if(!S||!D||!S.readyState)return;var R=p.BufferHelper.getBuffered(S);!this.loadedmetadata&&R.length?(this.loadedmetadata=!0,this.seekToStartPos()):D.poll(this.lastCurrentTime),this.lastCurrentTime=S.currentTime},C.onFragLoadEmergencyAborted=function(){this.state=g.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},C.onBufferFlushed=function(S,D){var R=D.type;if(R!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var P=(R===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(P,R,a.PlaylistLevelType.MAIN)}},C.onLevelsUpdated=function(S,D){this.levels=D.levels},C.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},C.seekToStartPos=function(){var S=this.media,D=S.currentTime,R=this.startPosition;if(R>=0&&D<R){if(S.seeking){o.logger.log("could not seek to "+R+", already seeking at "+D);return}var P=p.BufferHelper.getBuffered(S),N=P.length?P.start(0):0,M=N-R;M>0&&(M<this.config.maxBufferHole||M<this.config.maxFragLookUpTolerance)&&(o.logger.log("adjusting start position by "+M+" to match buffer start"),R+=M,this.startPosition=R),this.log("seek to target start position "+R+" from current time "+D),S.currentTime=R}},C._getAudioCodec=function(S){var D=this.config.defaultAudioCodec||S.audioCodec;return this.audioCodecSwap&&D&&(this.log("Swapping audio codec"),D.indexOf("mp4a.40.5")!==-1?D="mp4a.40.2":D="mp4a.40.5"),D},C._loadBitrateTestFrag=function(S){var D=this;this._doFragLoad(S).then(function(R){var P=D.hls;if(!R||P.nextLoadLevel||D.fragContextChanged(S))return;D.fragLoadError=0,D.state=g.State.IDLE,D.startFragRequested=!1,D.bitrateTest=!1;var N=S.stats;N.parsing.start=N.parsing.end=N.buffering.start=N.buffering.end=self.performance.now(),P.trigger(_.Events.FRAG_LOADED,R)})},C._handleTransmuxComplete=function(S){var D,R="main",P=this.hls,N=S.remuxResult,M=S.chunkMeta,z=this.getCurrentContext(M);if(!z){this.warn("The loading context changed while buffering fragment "+M.sn+" of level "+M.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(M.level);return}var X=z.frag,k=z.part,F=z.level,U=N.video,L=N.text,B=N.id3,Z=N.initSegment,re=this.altAudio?void 0:N.audio;if(this.fragContextChanged(X))return;if(this.state=g.State.PARSING,Z){Z.tracks&&(this._bufferInitSegment(F,Z.tracks,X,M),P.trigger(_.Events.FRAG_PARSING_INIT_SEGMENT,{frag:X,id:R,tracks:Z.tracks}));var me=Z.initPTS,Ee=Z.timescale;Object(b.isFiniteNumber)(me)&&(this.initPTS[X.cc]=me,P.trigger(_.Events.INIT_PTS_FOUND,{frag:X,id:R,initPTS:me,timescale:Ee}))}if(U&&N.independent!==!1){if(F.details){var De=U.startPTS,te=U.endPTS,Ce=U.startDTS,we=U.endDTS;if(k)k.elementaryStreams[U.type]={startPTS:De,endPTS:te,startDTS:Ce,endDTS:we};else if(U.firstKeyFrame&&U.independent&&(this.couldBacktrack=!0),U.dropped&&U.independent){var ce=this.getLoadPosition()+this.config.maxBufferHole;if(ce<De){this.backtrack(X);return}X.setElementaryStreamInfo(U.type,X.start,te,X.start,we,!0)}X.setElementaryStreamInfo(U.type,De,te,Ce,we),this.bufferFragmentData(U,X,k,M)}}else if(N.independent===!1){this.backtrack(X);return}if(re){var le=re.startPTS,oe=re.endPTS,xe=re.startDTS,q=re.endDTS;k&&(k.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:le,endPTS:oe,startDTS:xe,endDTS:q}),X.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,le,oe,xe,q),this.bufferFragmentData(re,X,k,M)}if(B!=null&&(D=B.samples)!==null&&D!==void 0&&D.length){var se={frag:X,id:R,samples:B.samples};P.trigger(_.Events.FRAG_PARSING_METADATA,se)}if(L){var Ne={frag:X,id:R,samples:L.samples};P.trigger(_.Events.FRAG_PARSING_USERDATA,Ne)}},C._bufferInitSegment=function(S,D,R,P){var N=this;if(this.state!==g.State.PARSING)return;this.audioOnly=!!D.audio&&!D.video,this.altAudio&&!this.audioOnly&&delete D.audio;var M=D.audio,z=D.video,X=D.audiovideo;if(M){var k=S.audioCodec,F=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(k&&(k.indexOf("mp4a.40.5")!==-1?k="mp4a.40.2":k="mp4a.40.5"),M.metadata.channelCount!==1&&F.indexOf("firefox")===-1&&(k="mp4a.40.5")),F.indexOf("android")!==-1&&M.container!=="audio/mpeg"&&(k="mp4a.40.2",this.log("Android: force audio codec to "+k)),S.audioCodec&&S.audioCodec!==k&&this.log('Swapping manifest audio codec "'+S.audioCodec+'" for "'+k+'"'),M.levelCodec=k,M.id="main",this.log("Init audio buffer, container:"+M.container+", codecs[selected/level/parsed]=["+(k||"")+"/"+(S.audioCodec||"")+"/"+M.codec+"]")}z&&(z.levelCodec=S.videoCodec,z.id="main",this.log("Init video buffer, container:"+z.container+", codecs[level/parsed]=["+(S.videoCodec||"")+"/"+z.codec+"]")),X&&this.log("Init audiovideo buffer, container:"+X.container+", codecs[level/parsed]=["+(S.attrs.CODECS||"")+"/"+X.codec+"]"),this.hls.trigger(_.Events.BUFFER_CODECS,D),Object.keys(D).forEach(function(U){var L=D[U],B=L.initSegment;B!=null&&B.byteLength&&N.hls.trigger(_.Events.BUFFER_APPENDING,{type:U,data:B,frag:R,part:null,chunkMeta:P,parent:R.type})}),this.tick()},C.backtrack=function(S){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(S);var D=this.fragmentTracker.backtrack(S);this.fragPrevious=null,this.nextLoadPosition=S.start,D?this.resetFragmentLoading(S):this.state=g.State.BACKTRACKING},C.checkFragmentChanged=function(){var S=this.media,D=null;if(S&&S.readyState>1&&S.seeking===!1){var R=S.currentTime;if(p.BufferHelper.isBuffered(S,R)?D=this.getAppendedFrag(R):p.BufferHelper.isBuffered(S,R+.1)&&(D=this.getAppendedFrag(R+.1)),D){var P=this.fragPlaying,N=D.level;(!P||D.sn!==P.sn||P.level!==N||D.urlId!==P.urlId)&&(this.hls.trigger(_.Events.FRAG_CHANGED,{frag:D}),(!P||P.level!==N)&&this.hls.trigger(_.Events.LEVEL_SWITCHED,{level:N}),this.fragPlaying=D)}}},d(O,[{key:"nextLevel",get:function(){var S=this.nextBufferedFrag;return S?S.level:-1}},{key:"currentLevel",get:function(){var S=this.media;if(S){var D=this.getAppendedFrag(S.currentTime);if(D)return D.level}return-1}},{key:"nextBufferedFrag",get:function(){var S=this.media;if(S){var D=this.getAppendedFrag(S.currentTime);return this.followingBufferedFrag(D)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),O}(g.default)},"./src/controller/subtitle-stream-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"SubtitleStreamController",function(){return f});var b=T("./src/events.ts"),g=T("./src/utils/logger.ts"),s=T("./src/utils/buffer-helper.ts"),_=T("./src/controller/fragment-finders.ts"),p=T("./src/utils/discontinuities.ts"),e=T("./src/controller/level-helper.ts"),a=T("./src/controller/fragment-tracker.ts"),n=T("./src/controller/base-stream-controller.ts"),l=T("./src/types/loader.ts"),r=T("./src/types/level.ts");function i(h,u){for(var E=0;E<u.length;E++){var x=u[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(h,x.key,x)}}function t(h,u,E){return u&&i(h.prototype,u),E&&i(h,E),h}function o(h,u){h.prototype=Object.create(u.prototype),h.prototype.constructor=h,c(h,u)}function c(h,u){return c=Object.setPrototypeOf||function(x,O){return x.__proto__=O,x},c(h,u)}var d=500,f=function(h){o(u,h);function u(x,O){var C;return C=h.call(this,x,O,"[subtitle-stream-controller]")||this,C.levels=[],C.currentTrackId=-1,C.tracksBuffered=[],C.mainDetails=null,C._registerListeners(),C}var E=u.prototype;return E.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},E._registerListeners=function(){var O=this.hls;O.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),O.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),O.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),O.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),O.on(b.Events.ERROR,this.onError,this),O.on(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),O.on(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),O.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),O.on(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),O.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},E._unregisterListeners=function(){var O=this.hls;O.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),O.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),O.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),O.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),O.off(b.Events.ERROR,this.onError,this),O.off(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),O.off(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),O.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),O.off(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),O.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},E.startLoad=function(){this.stopLoad(),this.state=n.State.IDLE,this.setInterval(d),this.tick()},E.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},E.onLevelLoaded=function(O,C){this.mainDetails=C.details},E.onSubtitleFragProcessed=function(O,C){var w=C.frag,S=C.success;if(this.fragPrevious=w,this.state=n.State.IDLE,!S)return;var D=this.tracksBuffered[this.currentTrackId];if(!D)return;for(var R,P=w.start,N=0;N<D.length;N++)if(P>=D[N].start&&P<=D[N].end){R=D[N];break}var M=w.start+w.duration;R?R.end=M:(R={start:P,end:M},D.push(R)),this.fragmentTracker.fragBuffered(w)},E.onBufferFlushing=function(O,C){var w=C.startOffset,S=C.endOffset;if(w===0&&S!==Number.POSITIVE_INFINITY){var D=this.currentTrackId,R=this.levels;if(!R.length||!R[D]||!R[D].details)return;var P=R[D].details,N=P.targetduration,M=S-N;if(M<=0)return;C.endOffsetSubtitles=Math.max(0,M),this.tracksBuffered.forEach(function(z){for(var X=0;X<z.length;){if(z[X].end<=M){z.shift();continue}else if(z[X].start<M)z[X].start=M;else break;X++}}),this.fragmentTracker.removeFragmentsInRange(w,M,l.PlaylistLevelType.SUBTITLE)}},E.onError=function(O,C){var w,S=C.frag;if(!S||S.type!==l.PlaylistLevelType.SUBTITLE)return;(w=this.fragCurrent)!==null&&w!==void 0&&w.loader&&this.fragCurrent.loader.abort(),this.state=n.State.IDLE},E.onSubtitleTracksUpdated=function(O,C){var w=this,S=C.subtitleTracks;this.tracksBuffered=[],this.levels=S.map(function(D){return new r.Level(D)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(D){w.tracksBuffered[D.id]=[]}),this.mediaBuffer=null},E.onSubtitleTrackSwitch=function(O,C){if(this.currentTrackId=C.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var w=this.levels[this.currentTrackId];w!=null&&w.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,w&&this.setInterval(d)},E.onSubtitleTrackLoaded=function(O,C){var w,S=C.details,D=C.id,R=this.currentTrackId,P=this.levels;if(!P.length)return;var N=P[R];if(D>=P.length||D!==R||!N)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(w=N.details)!==null&&w!==void 0&&w.live){var M=this.mainDetails;if(S.deltaUpdateFailed||!M)return;var z=M.fragments[0];if(!N.details)S.hasProgramDateTime&&M.hasProgramDateTime?Object(p.alignMediaPlaylistByPDT)(S,M):z&&Object(e.addSliding)(S,z.start);else{var X=this.alignPlaylists(S,N.details);X===0&&z&&Object(e.addSliding)(S,z.start)}}if(N.details=S,this.levelLastLoaded=D,this.tick(),S.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var k=Object(_.findFragmentByPTS)(null,S.fragments,this.media.currentTime,0);k||(this.warn("Subtitle playlist not aligned with playback"),N.details=void 0)}},E._handleFragmentLoadComplete=function(O){var C=O.frag,w=O.payload,S=C.decryptdata,D=this.hls;if(this.fragContextChanged(C))return;if(w&&w.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var R=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(w),S.key.buffer,S.iv.buffer).then(function(P){var N=performance.now();D.trigger(b.Events.FRAG_DECRYPTED,{frag:C,payload:P,stats:{tstart:R,tdecrypt:N}})})}},E.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var O,C=this.currentTrackId,w=this.levels;if(!w.length||!w[C]||!w[C].details)return;var S=w[C].details,D=S.targetduration,R=this.config,P=this.media,N=s.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,P.currentTime-D,R.maxBufferHole),M=N.end,z=N.len,X=this.getMaxBufferLength()+D;if(z>X)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var k=S.fragments,F=k.length,U=S.edge,L,B=this.fragPrevious;if(M<U){var Z=R.maxFragLookUpTolerance;B&&S.hasProgramDateTime&&(L=Object(_.findFragmentByPDT)(k,B.endProgramDateTime,Z)),L||(L=Object(_.findFragmentByPTS)(B,k,M,Z),!L&&B&&B.start<k[0].start&&(L=k[0]))}else L=k[F-1];(O=L)!==null&&O!==void 0&&O.encrypted?(g.logger.log("Loading key for "+L.sn),this.state=n.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:L})):L&&this.fragmentTracker.getState(L)===a.FragmentState.NOT_LOADED&&this.loadFragment(L,S,M)}},E.loadFragment=function(O,C,w){this.fragCurrent=O,h.prototype.loadFragment.call(this,O,C,w)},t(u,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),u}(n.default)},"./src/controller/subtitle-track-controller.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/events.ts"),g=T("./src/utils/texttrack-utils.ts"),s=T("./src/controller/base-playlist-controller.ts"),_=T("./src/types/loader.ts");function p(i,t){for(var o=0;o<t.length;o++){var c=t[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}function e(i,t,o){return t&&p(i.prototype,t),o&&p(i,o),i}function a(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,n(i,t)}function n(i,t){return n=Object.setPrototypeOf||function(c,d){return c.__proto__=d,c},n(i,t)}var l=function(i){a(t,i);function t(c){var d;return d=i.call(this,c,"[subtitle-track-controller]")||this,d.media=null,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.selectDefaultTrack=!0,d.queuedDefaultTrack=-1,d.trackChangeListener=function(){return d.onTextTracksChanged()},d.asyncPollTrackChange=function(){return d.pollTrackChange(0)},d.useTextTrackPolling=!1,d.subtitlePollingInterval=-1,d.subtitleDisplay=!0,d.registerListeners(),d}var o=t.prototype;return o.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,i.prototype.destroy.call(this)},o.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.on(b.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.off(b.Events.ERROR,this.onError,this)},o.onMediaAttached=function(d,f){if(this.media=f.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},o.pollTrackChange=function(d){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,d)},o.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var d=r(this.media.textTracks);d.forEach(function(f){Object(g.clearCurrentCues)(f)}),this.subtitleTrack=-1,this.media=null},o.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},o.onManifestParsed=function(d,f){this.tracks=f.subtitleTracks},o.onSubtitleTrackLoaded=function(d,f){var h=f.id,u=f.details,E=this.trackId,x=this.tracksInGroup[E];if(!x){this.warn("Invalid subtitle track id "+h);return}var O=x.details;x.details=f.details,this.log("subtitle track "+h+" loaded ["+u.startSN+"-"+u.endSN+"]"),h===this.trackId&&(this.retryCount=0,this.playlistLoaded(h,f,O))},o.onLevelLoading=function(d,f){this.switchLevel(f.level)},o.onLevelSwitching=function(d,f){this.switchLevel(f.level)},o.switchLevel=function(d){var f=this.hls.levels[d];if(!(f!=null&&f.textGroupIds))return;var h=f.textGroupIds[f.urlId];if(this.groupId!==h){var u=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(C){return!h||C.groupId===h});this.tracksInGroup=E;var x=this.findTrackId(u==null?void 0:u.name)||this.findTrackId();this.groupId=h;var O={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+h+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,O),x!==-1&&this.setSubtitleTrack(x,u)}},o.findTrackId=function(d){for(var f=this.tracksInGroup,h=0;h<f.length;h++){var u=f[h];if((!this.selectDefaultTrack||u.default)&&(!d||d===u.name))return u.id}return-1},o.onError=function(d,f){if(i.prototype.onError.call(this,d,f),f.fatal||!f.context)return;f.context.type===_.PlaylistContextType.SUBTITLE_TRACK&&f.context.id===this.trackId&&f.context.groupId===this.groupId&&this.retryLoadingOrFail(f)},o.loadPlaylist=function(d){var f=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(f)){var h=f.id,u=f.groupId,E=f.url;if(d)try{E=d.addDirectives(E)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("Loading subtitle playlist for id "+h),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:E,id:h,groupId:u,deliveryDirectives:d||null})}},o.toggleTrackModes=function(d){var f=this,h=this.media,u=this.subtitleDisplay,E=this.trackId;if(!h)return;var x=r(h.textTracks),O=x.filter(function(S){return S.groupId===f.groupId});if(d===-1)[].slice.call(x).forEach(function(S){S.mode="disabled"});else{var C=O[E];C&&(C.mode="disabled")}var w=O[d];w&&(w.mode=u?"showing":"hidden")},o.setSubtitleTrack=function(d,f){var h,u=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=d;return}if(this.trackId!==d&&this.toggleTrackModes(d),this.trackId===d&&(d===-1||(h=u[d])!==null&&h!==void 0&&h.details)||d<-1||d>=u.length)return;this.clearTimer();var E=u[d];if(this.log("Switching to subtitle track "+d),this.trackId=d,E){var x=E.id,O=E.groupId,C=O===void 0?"":O,w=E.name,S=E.type,D=E.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:x,groupId:C,name:w,type:S,url:D});var R=this.switchParams(E.url,f==null?void 0:f.details);this.loadPlaylist(R)}else this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:d})},o.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var d=-1,f=r(this.media.textTracks),h=0;h<f.length;h++)if(f[h].mode==="hidden")d=h;else if(f[h].mode==="showing"){d=h;break}this.subtitleTrack!==d&&(this.subtitleTrack=d)},e(t,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1;var f=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(d,f)}}]),t}(s.default);function r(i){for(var t=[],o=0;o<i.length;o++){var c=i[o];c.kind==="subtitles"&&c.label&&t.push(i[o])}return t}v.default=l},"./src/controller/timeline-controller.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"TimelineController",function(){return r});var b=T("./src/polyfills/number.ts"),g=T("./src/events.ts"),s=T("./src/utils/cea-608-parser.ts"),_=T("./src/utils/output-filter.ts"),p=T("./src/utils/webvtt-parser.ts"),e=T("./src/utils/texttrack-utils.ts"),a=T("./src/utils/imsc1-ttml-parser.ts"),n=T("./src/types/loader.ts"),l=T("./src/utils/logger.ts"),r=function(){function c(f){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=o(),this.captionsProperties=void 0,this.hls=f,this.config=f.config,this.Cues=f.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var h=new _.default(this,"textTrack1"),u=new _.default(this,"textTrack2"),E=new _.default(this,"textTrack3"),x=new _.default(this,"textTrack4");this.cea608Parser1=new s.default(1,h,u),this.cea608Parser2=new s.default(3,E,x)}f.on(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),f.on(g.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),f.on(g.Events.FRAG_LOADING,this.onFragLoading,this),f.on(g.Events.FRAG_LOADED,this.onFragLoaded,this),f.on(g.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),f.on(g.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),f.on(g.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),f.on(g.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),f.on(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var d=c.prototype;return d.destroy=function(){var h=this.hls;h.off(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),h.off(g.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),h.off(g.Events.FRAG_LOADING,this.onFragLoading,this),h.off(g.Events.FRAG_LOADED,this.onFragLoaded,this),h.off(g.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),h.off(g.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),h.off(g.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),h.off(g.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),h.off(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},d.addCues=function(h,u,E,x,O){for(var C=!1,w=O.length;w--;){var S=O[w],D=t(S[0],S[1],u,E);if(D>=0&&(S[0]=Math.min(S[0],u),S[1]=Math.max(S[1],E),C=!0,D/(E-u)>.5))return}if(C||O.push([u,E]),this.config.renderTextTracksNatively){var R=this.captionsTracks[h];this.Cues.newCue(R,u,E,x)}else{var P=this.Cues.newCue(null,u,E,x);this.hls.trigger(g.Events.CUES_PARSED,{type:"captions",cues:P,track:h})}},d.onInitPtsFound=function(h,u){var E=this,x=u.frag,O=u.id,C=u.initPTS,w=u.timescale,S=this.unparsedVttFrags;O==="main"&&(this.initPTS[x.cc]=C,this.timescale[x.cc]=w),S.length&&(this.unparsedVttFrags=[],S.forEach(function(D){E.onFragLoaded(g.Events.FRAG_LOADED,D)}))},d.getExistingTrack=function(h){var u=this.media;if(u)for(var E=0;E<u.textTracks.length;E++){var x=u.textTracks[E];if(x[h])return x}return null},d.createCaptionsTrack=function(h){this.config.renderTextTracksNatively?this.createNativeTrack(h):this.createNonNativeTrack(h)},d.createNativeTrack=function(h){if(this.captionsTracks[h])return;var u=this.captionsProperties,E=this.captionsTracks,x=this.media,O=u[h],C=O.label,w=O.languageCode,S=this.getExistingTrack(h);if(S)E[h]=S,Object(e.clearCurrentCues)(E[h]),Object(e.sendAddTrackEvent)(E[h],x);else{var D=this.createTextTrack("captions",C,w);D&&(D[h]=!0,E[h]=D)}},d.createNonNativeTrack=function(h){if(this.nonNativeCaptionsTracks[h])return;var u=this.captionsProperties[h];if(!u)return;var E=u.label,x={_id:h,label:E,kind:"captions",default:u.media?!!u.media.default:!1,closedCaptions:u.media};this.nonNativeCaptionsTracks[h]=x,this.hls.trigger(g.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[x]})},d.createTextTrack=function(h,u,E){var x=this.media;return x?x.addTextTrack(h,u,E):void 0},d.onMediaAttaching=function(h,u){this.media=u.media,this._cleanTracks()},d.onMediaDetaching=function(){var h=this.captionsTracks;Object.keys(h).forEach(function(u){Object(e.clearCurrentCues)(h[u]),delete h[u]}),this.nonNativeCaptionsTracks={}},d.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=o(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},d._cleanTracks=function(){var h=this.media;if(!h)return;var u=h.textTracks;if(u)for(var E=0;E<u.length;E++)Object(e.clearCurrentCues)(u[E])},d.onSubtitleTracksUpdated=function(h,u){var E=this;this.textTracks=[];var x=u.subtitleTracks||[],O=x.some(function(D){return D.textCodec===a.IMSC1_CODEC});if(this.config.enableWebVTT||O&&this.config.enableIMSC1){var C=this.tracks&&x&&this.tracks.length===x.length;if(this.tracks=x||[],this.config.renderTextTracksNatively){var w=this.media?this.media.textTracks:[];this.tracks.forEach(function(D,R){var P;if(R<w.length){for(var N=null,M=0;M<w.length;M++)if(i(w[M],D)){N=w[M];break}N&&(P=N)}P?Object(e.clearCurrentCues)(P):(P=E.createTextTrack("subtitles",D.name,D.lang),P&&(P.mode="disabled")),P&&(P.groupId=D.groupId,E.textTracks.push(P))})}else if(!C&&this.tracks&&this.tracks.length){var S=this.tracks.map(function(D){return{label:D.name,kind:D.type.toLowerCase(),default:D.default,subtitleTrack:D}});this.hls.trigger(g.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:S})}}},d.onManifestLoaded=function(h,u){var E=this;this.config.enableCEA708Captions&&u.captions&&u.captions.forEach(function(x){var O=/(?:CC|SERVICE)([1-4])/.exec(x.instreamId);if(!O)return;var C="textTrack"+O[1],w=E.captionsProperties[C];if(!w)return;w.label=x.name,x.lang&&(w.languageCode=x.lang),w.media=x})},d.onFragLoading=function(h,u){var E=this.cea608Parser1,x=this.cea608Parser2,O=this.lastSn,C=this.lastPartIndex;if(!this.enabled||!(E&&x))return;if(u.frag.type===n.PlaylistLevelType.MAIN){var w,S,D=u.frag.sn,R=(w=u==null||((S=u.part)===null||S===void 0)?void 0:S.index)!=null?w:-1;D===O+1||D===O&&R===C+1||(E.reset(),x.reset()),this.lastSn=D,this.lastPartIndex=R}},d.onFragLoaded=function(h,u){var E=u.frag,x=u.payload,O=this.initPTS,C=this.unparsedVttFrags;if(E.type===n.PlaylistLevelType.SUBTITLE)if(x.byteLength){if(!Object(b.isFiniteNumber)(O[E.cc])){C.push(u),O.length&&this.hls.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Missing initial subtitle PTS")});return}var w=E.decryptdata;if(w==null||w.key==null||w.method!=="AES-128"){var S=this.tracks[E.level],D=this.vttCCs;D[E.cc]||(D[E.cc]={start:E.start,prevCC:this.prevCC,new:!0},this.prevCC=E.cc),S&&S.textCodec===a.IMSC1_CODEC?this._parseIMSC1(E,x):this._parseVTTs(E,x,D)}}else this.hls.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Empty subtitle payload")})},d._parseIMSC1=function(h,u){var E=this,x=this.hls;Object(a.parseIMSC1)(u,this.initPTS[h.cc],this.timescale[h.cc],function(O){E._appendCues(O,h.level),x.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:h})},function(O){l.logger.log("Failed to parse IMSC1: "+O),x.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:h,error:O})})},d._parseVTTs=function(h,u,E){var x=this,O=this.hls;Object(p.parseWebVTT)(u,this.initPTS[h.cc],this.timescale[h.cc],E,h.cc,h.start,function(C){x._appendCues(C,h.level),O.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:h})},function(C){x._fallbackToIMSC1(h,u),l.logger.log("Failed to parse VTT cue: "+C),O.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:h,error:C})})},d._fallbackToIMSC1=function(h,u){var E=this,x=this.tracks[h.level];x.textCodec||Object(a.parseIMSC1)(u,this.initPTS[h.cc],this.timescale[h.cc],function(){x.textCodec=a.IMSC1_CODEC,E._parseIMSC1(h,u)},function(){x.textCodec="wvtt"})},d._appendCues=function(h,u){var E=this.hls;if(this.config.renderTextTracksNatively){var x=this.textTracks[u];if(x.mode==="disabled")return;h.forEach(function(w){return Object(e.addCueToTrack)(x,w)})}else{var O=this.tracks[u],C=O.default?"default":"subtitles"+u;E.trigger(g.Events.CUES_PARSED,{type:"subtitles",cues:h,track:C})}},d.onFragDecrypted=function(h,u){var E=u.frag;if(E.type===n.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[E.cc])){this.unparsedVttFrags.push(u);return}this.onFragLoaded(g.Events.FRAG_LOADED,u)}},d.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},d.onFragParsingUserdata=function(h,u){var E=this.cea608Parser1,x=this.cea608Parser2;if(!this.enabled||!(E&&x))return;for(var O=0;O<u.samples.length;O++){var C=u.samples[O].bytes;if(C){var w=this.extractCea608Data(C);E.addData(u.samples[O].pts,w[0]),x.addData(u.samples[O].pts,w[1])}}},d.onBufferFlushing=function(h,u){var E=u.startOffset,x=u.endOffset,O=u.endOffsetSubtitles,C=u.type,w=this.media;if(!w||w.currentTime<x)return;if(!C||C==="video"){var S=this.captionsTracks;Object.keys(S).forEach(function(R){return Object(e.removeCuesInRange)(S[R],E,x)})}if(this.config.renderTextTracksNatively&&(E===0&&O!==void 0)){var D=this.textTracks;Object.keys(D).forEach(function(R){return Object(e.removeCuesInRange)(D[R],E,O)})}},d.extractCea608Data=function(h){for(var u=h[0]&31,E=2,x=[[],[]],O=0;O<u;O++){var C=h[E++],w=127&h[E++],S=127&h[E++],D=(4&C)!==0,R=3&C;if(w===0&&S===0)continue;D&&((R===0||R===1)&&(x[R].push(w),x[R].push(S)))}return x},c}();function i(c,d){return c&&c.label===d.name&&!(c.textTrack1||c.textTrack2)}function t(c,d,f,h){return Math.min(d,h)-Math.max(c,f)}function o(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return b});var b=function(){function g(_,p){this.subtle=void 0,this.aesIV=void 0,this.subtle=_,this.aesIV=p}var s=g.prototype;return s.decrypt=function(p,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,p)},g}()},"./src/crypt/aes-decryptor.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"removePadding",function(){return g}),T.d(v,"default",function(){return s});var b=T("./src/utils/typed-array.ts");function g(_){var p=_.byteLength,e=p&&new DataView(_.buffer).getUint8(p-1);return e?Object(b.sliceUint8)(_,0,p-e):_}var s=function(){function _(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var p=_.prototype;return p.uint8ArrayToUint32Array_=function(a){for(var n=new DataView(a),l=new Uint32Array(4),r=0;r<4;r++)l[r]=n.getUint32(r*4);return l},p.initTable=function(){var a=this.sBox,n=this.invSBox,l=this.subMix,r=l[0],i=l[1],t=l[2],o=l[3],c=this.invSubMix,d=c[0],f=c[1],h=c[2],u=c[3],E=new Uint32Array(256),x=0,O=0,C=0;for(C=0;C<256;C++)C<128?E[C]=C<<1:E[C]=C<<1^283;for(C=0;C<256;C++){var w=O^O<<1^O<<2^O<<3^O<<4;w=w>>>8^w&255^99,a[x]=w,n[w]=x;var S=E[x],D=E[S],R=E[D],P=E[w]*257^w*16843008;r[x]=P<<24|P>>>8,i[x]=P<<16|P>>>16,t[x]=P<<8|P>>>24,o[x]=P,P=R*16843009^D*65537^S*257^x*16843008,d[w]=P<<24|P>>>8,f[w]=P<<16|P>>>16,h[w]=P<<8|P>>>24,u[w]=P,x?(x=S^E[E[E[R^S]]],O^=E[E[O]]):x=O=1}},p.expandKey=function(a){for(var n=this.uint8ArrayToUint32Array_(a),l=!0,r=0;r<n.length&&l;)l=n[r]===this.key[r],r++;if(l)return;this.key=n;var i=this.keySize=n.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);var t=this.ksRows=(i+6+1)*4,o,c,d=this.keySchedule=new Uint32Array(t),f=this.invKeySchedule=new Uint32Array(t),h=this.sBox,u=this.rcon,E=this.invSubMix,x=E[0],O=E[1],C=E[2],w=E[3],S,D;for(o=0;o<t;o++){if(o<i){S=d[o]=n[o];continue}D=S,o%i===0?(D=D<<8|D>>>24,D=h[D>>>24]<<24|h[D>>>16&255]<<16|h[D>>>8&255]<<8|h[D&255],D^=u[o/i|0]<<24):i>6&&o%i===4&&(D=h[D>>>24]<<24|h[D>>>16&255]<<16|h[D>>>8&255]<<8|h[D&255]),d[o]=S=(d[o-i]^D)>>>0}for(c=0;c<t;c++)o=t-c,c&3?D=d[o]:D=d[o-4],c<4||o<=4?f[c]=D:f[c]=x[h[D>>>24]]^O[h[D>>>16&255]]^C[h[D>>>8&255]]^w[h[D&255]],f[c]=f[c]>>>0},p.networkToHostOrderSwap=function(a){return a<<24|(a&65280)<<8|(a&16711680)>>8|a>>>24},p.decrypt=function(a,n,l){for(var r=this.keySize+6,i=this.invKeySchedule,t=this.invSBox,o=this.invSubMix,c=o[0],d=o[1],f=o[2],h=o[3],u=this.uint8ArrayToUint32Array_(l),E=u[0],x=u[1],O=u[2],C=u[3],w=new Int32Array(a),S=new Int32Array(w.length),D,R,P,N,M,z,X,k,F,U,L,B,Z,re,me=this.networkToHostOrderSwap;n<w.length;){for(F=me(w[n]),U=me(w[n+1]),L=me(w[n+2]),B=me(w[n+3]),M=F^i[0],z=B^i[1],X=L^i[2],k=U^i[3],Z=4,re=1;re<r;re++)D=c[M>>>24]^d[z>>16&255]^f[X>>8&255]^h[k&255]^i[Z],R=c[z>>>24]^d[X>>16&255]^f[k>>8&255]^h[M&255]^i[Z+1],P=c[X>>>24]^d[k>>16&255]^f[M>>8&255]^h[z&255]^i[Z+2],N=c[k>>>24]^d[M>>16&255]^f[z>>8&255]^h[X&255]^i[Z+3],M=D,z=R,X=P,k=N,Z=Z+4;D=t[M>>>24]<<24^t[z>>16&255]<<16^t[X>>8&255]<<8^t[k&255]^i[Z],R=t[z>>>24]<<24^t[X>>16&255]<<16^t[k>>8&255]<<8^t[M&255]^i[Z+1],P=t[X>>>24]<<24^t[k>>16&255]<<16^t[M>>8&255]<<8^t[z&255]^i[Z+2],N=t[k>>>24]<<24^t[M>>16&255]<<16^t[z>>8&255]<<8^t[X&255]^i[Z+3],S[n]=me(D^E),S[n+1]=me(N^x),S[n+2]=me(P^O),S[n+3]=me(R^C),E=F,x=U,O=L,C=B,n=n+4}return S.buffer},_}()},"./src/crypt/decrypter.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return n});var b=T("./src/crypt/aes-crypto.ts"),g=T("./src/crypt/fast-aes-key.ts"),s=T("./src/crypt/aes-decryptor.ts"),_=T("./src/utils/logger.ts"),p=T("./src/utils/mp4-tools.ts"),e=T("./src/utils/typed-array.ts"),a=16,n=function(){function l(i,t,o){var c=o===void 0?{}:o,d=c.removePKCS7Padding,f=d===void 0?!0:d;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=i,this.config=t,this.removePKCS7Padding=f,f)try{var h=self.crypto;h&&(this.subtle=h.subtle||h.webkitSubtle)}catch(u){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var r=l.prototype;return r.destroy=function(){this.observer=null},r.isSync=function(){return this.config.enableSoftwareAES},r.flush=function(){var t=this.currentResult;if(!t){this.reset();return}var o=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?Object(s.removePadding)(o):o},r.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},r.decrypt=function(t,o,c,d){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(t),o,c);var f=this.flush();f&&d(f.buffer)}else this.webCryptoDecrypt(new Uint8Array(t),o,c).then(d)},r.softwareDecrypt=function(t,o,c){var d=this.currentIV,f=this.currentResult,h=this.remainderData;this.logOnce("JS AES decrypt"),h&&(t=Object(p.appendUint8Array)(h,t),this.remainderData=null);var u=this.getValidChunk(t);if(!u.length)return null;d&&(c=d);var E=this.softwareDecrypter;E||(E=this.softwareDecrypter=new s.default),E.expandKey(o);var x=f;return this.currentResult=E.decrypt(u.buffer,0,c),this.currentIV=Object(e.sliceUint8)(u,-16).buffer,x||null},r.webCryptoDecrypt=function(t,o,c){var d=this,f=this.subtle;return(this.key!==o||!this.fastAesKey)&&(this.key=o,this.fastAesKey=new g.default(f,o)),this.fastAesKey.expandKey().then(function(h){if(!f)return Promise.reject(new Error("web crypto not initialized"));var u=new b.default(f,c);return u.decrypt(t.buffer,h)}).catch(function(h){return d.onWebCryptoError(h,t,o,c)})},r.onWebCryptoError=function(t,o,c,d){return _.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",t),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(o,c,d)},r.getValidChunk=function(t){var o=t,c=t.length-t.length%a;return c!==t.length&&(o=Object(e.sliceUint8)(t,0,c),this.remainderData=Object(e.sliceUint8)(t,c)),o},r.logOnce=function(t){if(!this.logEnabled)return;_.logger.log("[decrypter.ts]: "+t),this.logEnabled=!1},l}()},"./src/crypt/fast-aes-key.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return b});var b=function(){function g(_,p){this.subtle=void 0,this.key=void 0,this.subtle=_,this.key=p}var s=g.prototype;return s.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},g}()},"./src/demux/aacdemuxer.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/demux/base-audio-demuxer.ts"),g=T("./src/demux/adts.ts"),s=T("./src/utils/logger.ts"),_=T("./src/demux/id3.ts");function p(n,l){n.prototype=Object.create(l.prototype),n.prototype.constructor=n,e(n,l)}function e(n,l){return e=Object.setPrototypeOf||function(i,t){return i.__proto__=t,i},e(n,l)}var a=function(n){p(l,n);function l(i,t){var o;return o=n.call(this)||this,o.observer=void 0,o.config=void 0,o.observer=i,o.config=t,o}var r=l.prototype;return r.resetInitSegment=function(t,o,c){n.prototype.resetInitSegment.call(this,t,o,c),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:t,duration:c,inputTimeScale:9e4,dropped:0}},l.probe=function(t){if(!t)return!1;for(var o=_.getID3Data(t,0)||[],c=o.length,d=t.length;c<d;c++)if(g.probe(t,c))return s.logger.log("ADTS sync word found !"),!0;return!1},r.canParse=function(t,o){return g.canParse(t,o)},r.appendFrame=function(t,o,c){g.initTrackConfig(t,this.observer,o,c,t.manifestCodec);var d=g.appendFrame(t,o,c,this.initPTS,this.frameIndex);if(d&&d.missing===0)return d},l}(b.default);a.minProbeByteLength=9,v.default=a},"./src/demux/adts.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"getAudioConfig",function(){return _}),T.d(v,"isHeaderPattern",function(){return p}),T.d(v,"getHeaderLength",function(){return e}),T.d(v,"getFullFrameLength",function(){return a}),T.d(v,"canGetFrameLength",function(){return n}),T.d(v,"isHeader",function(){return l}),T.d(v,"canParse",function(){return r}),T.d(v,"probe",function(){return i}),T.d(v,"initTrackConfig",function(){return t}),T.d(v,"getFrameDuration",function(){return o}),T.d(v,"parseFrameHeader",function(){return c}),T.d(v,"appendFrame",function(){return d});var b=T("./src/utils/logger.ts"),g=T("./src/errors.ts"),s=T("./src/events.ts");function _(f,h,u,E){var x,O,C,w,S=navigator.userAgent.toLowerCase(),D=E,R=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];x=((h[u+2]&192)>>>6)+1;var P=(h[u+2]&60)>>>2;if(P>R.length-1){f.trigger(s.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+P});return}return C=(h[u+2]&1)<<2,C|=(h[u+3]&192)>>>6,b.logger.log("manifest codec:"+E+", ADTS type:"+x+", samplingIndex:"+P),/firefox/i.test(S)?P>=6?(x=5,w=new Array(4),O=P-3):(x=2,w=new Array(2),O=P):S.indexOf("android")!==-1?(x=2,w=new Array(2),O=P):(x=5,w=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&P>=6?O=P-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(P>=6&&C===1||/vivaldi/i.test(S))||!E&&C===1)&&(x=2,w=new Array(2)),O=P)),w[0]=x<<3,w[0]|=(P&14)>>1,w[1]|=(P&1)<<7,w[1]|=C<<3,x===5&&(w[1]|=(O&14)>>1,w[2]=(O&1)<<7,w[2]|=2<<2,w[3]=0),{config:w,samplerate:R[P],channelCount:C,codec:"mp4a.40."+x,manifestCodec:D}}function p(f,h){return f[h]===255&&(f[h+1]&246)===240}function e(f,h){return f[h+1]&1?7:9}function a(f,h){return(f[h+3]&3)<<11|f[h+4]<<3|(f[h+5]&224)>>>5}function n(f,h){return h+5<f.length}function l(f,h){return h+1<f.length&&p(f,h)}function r(f,h){return n(f,h)&&p(f,h)&&a(f,h)<=f.length-h}function i(f,h){if(l(f,h)){var u=e(f,h);if(h+u>=f.length)return!1;var E=a(f,h);if(E<=u)return!1;var x=h+E;return x===f.length||l(f,x)}return!1}function t(f,h,u,E,x){if(!f.samplerate){var O=_(h,u,E,x);if(!O)return;f.config=O.config,f.samplerate=O.samplerate,f.channelCount=O.channelCount,f.codec=O.codec,f.manifestCodec=O.manifestCodec,b.logger.log("parsed codec:"+f.codec+", rate:"+O.samplerate+", channels:"+O.channelCount)}}function o(f){return 1024*9e4/f}function c(f,h,u,E,x){var O=e(f,h),C=a(f,h);if(C-=O,C>0){var w=u+E*x;return{headerLength:O,frameLength:C,stamp:w}}}function d(f,h,u,E,x){var O=o(f.samplerate),C=c(h,u,E,x,O);if(C){var w=C.frameLength,S=C.headerLength,D=C.stamp,R=S+w,P=Math.max(0,u+R-h.length),N;P?(N=new Uint8Array(R-S),N.set(h.subarray(u+S,h.length),0)):N=h.subarray(u+S,u+R);var M={unit:N,pts:D};return P||f.samples.push(M),{sample:M,length:R,missing:P}}}},"./src/demux/base-audio-demuxer.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"initPTSFn",function(){return a});var b=T("./src/polyfills/number.ts"),g=T("./src/demux/id3.ts"),s=T("./src/demux/dummy-demuxed-track.ts"),_=T("./src/utils/mp4-tools.ts"),p=T("./src/utils/typed-array.ts"),e=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var l=n.prototype;return l.resetInitSegment=function(i,t,o){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},l.resetTimeStamp=function(){},l.resetContiguity=function(){},l.canParse=function(i,t){return!1},l.appendFrame=function(i,t,o){},l.demux=function(i,t){this.cachedData&&(i=Object(_.appendUint8Array)(this.cachedData,i),this.cachedData=null);var o=g.getID3Data(i,0),c=o?o.length:0,d,f,h=this._audioTrack,u=this._id3Track,E=o?g.getTimeStamp(o):void 0,x=i.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=a(E,t)),o&&o.length>0&&u.samples.push({pts:this.initPTS,dts:this.initPTS,data:o}),f=this.initPTS;c<x;){if(this.canParse(i,c)){var O=this.appendFrame(h,i,c);O?(this.frameIndex++,f=O.sample.pts,c+=O.length,d=c):c=x}else g.canParse(i,c)?(o=g.getID3Data(i,c),u.samples.push({pts:f,dts:f,data:o}),c+=o.length,d=c):c++;if(c===x&&d!==x){var C=Object(p.sliceUint8)(i,d);this.cachedData?this.cachedData=Object(_.appendUint8Array)(this.cachedData,C):this.cachedData=C}}return{audioTrack:h,avcTrack:Object(s.dummyTrack)(),id3Track:u,textTrack:Object(s.dummyTrack)()}},l.demuxSampleAes=function(i,t,o){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},l.flush=function(i){var t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(s.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(s.dummyTrack)()}},l.destroy=function(){},n}(),a=function(l,r){return Object(b.isFiniteNumber)(l)?l*90:r*9e4};v.default=e},"./src/demux/chunk-cache.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return b});var b=function(){function s(){this.chunks=[],this.dataLength=0}var _=s.prototype;return _.push=function(e){this.chunks.push(e),this.dataLength+=e.length},_.flush=function(){var e=this.chunks,a=this.dataLength,n;if(e.length)e.length===1?n=e[0]:n=g(e,a);else return new Uint8Array(0);return this.reset(),n},_.reset=function(){this.chunks.length=0,this.dataLength=0},s}();function g(s,_){for(var p=new Uint8Array(_),e=0,a=0;a<s.length;a++){var n=s[a];p.set(n,e),e+=n.length}return p}},"./src/demux/dummy-demuxed-track.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"dummyTrack",function(){return b});function b(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/utils/logger.ts"),g=function(){function s(p){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=p,this.bytesAvailable=p.byteLength,this.word=0,this.bitsAvailable=0}var _=s.prototype;return _.loadWord=function(){var e=this.data,a=this.bytesAvailable,n=e.byteLength-a,l=new Uint8Array(4),r=Math.min(4,a);if(r===0)throw new Error("no bytes available");l.set(e.subarray(n,n+r)),this.word=new DataView(l.buffer).getUint32(0),this.bitsAvailable=r*8,this.bytesAvailable-=r},_.skipBits=function(e){var a;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,a=e>>3,e-=a>>3,this.bytesAvailable-=a,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},_.readBits=function(e){var a=Math.min(this.bitsAvailable,e),n=this.word>>>32-a;return e>32&&b.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=a,this.bitsAvailable>0?this.word<<=a:this.bytesAvailable>0&&this.loadWord(),a=e-a,a>0&&this.bitsAvailable?n<<a|this.readBits(a):n},_.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},_.skipUEG=function(){this.skipBits(1+this.skipLZ())},_.skipEG=function(){this.skipBits(1+this.skipLZ())},_.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},_.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},_.readBoolean=function(){return this.readBits(1)===1},_.readUByte=function(){return this.readBits(8)},_.readUShort=function(){return this.readBits(16)},_.readUInt=function(){return this.readBits(32)},_.skipScalingList=function(e){for(var a=8,n=8,l,r=0;r<e;r++)n!==0&&(l=this.readEG(),n=(a+l+256)%256),a=n===0?a:n},_.readSPS=function(){var e=0,a=0,n=0,l=0,r,i,t,o=this.readUByte.bind(this),c=this.readBits.bind(this),d=this.readUEG.bind(this),f=this.readBoolean.bind(this),h=this.skipBits.bind(this),u=this.skipEG.bind(this),E=this.skipUEG.bind(this),x=this.skipScalingList.bind(this);o();var O=o();if(c(5),h(3),o(),E(),O===100||O===110||O===122||O===244||O===44||O===83||O===86||O===118||O===128){var C=d();if(C===3&&h(1),E(),E(),h(1),f())for(i=C!==3?8:12,t=0;t<i;t++)f()&&(t<6?x(16):x(64))}E();var w=d();if(w===0)d();else if(w===1)for(h(1),u(),u(),r=d(),t=0;t<r;t++)u();E(),h(1);var S=d(),D=d(),R=c(1);R===0&&h(1),h(1),f()&&(e=d(),a=d(),n=d(),l=d());var P=[1,1];if(f()&&f()){var N=o();switch(N){case 1:P=[1,1];break;case 2:P=[12,11];break;case 3:P=[10,11];break;case 4:P=[16,11];break;case 5:P=[40,33];break;case 6:P=[24,11];break;case 7:P=[20,11];break;case 8:P=[32,11];break;case 9:P=[80,33];break;case 10:P=[18,11];break;case 11:P=[15,11];break;case 12:P=[64,33];break;case 13:P=[160,99];break;case 14:P=[4,3];break;case 15:P=[3,2];break;case 16:P=[2,1];break;case 255:{P=[o()<<8|o(),o()<<8|o()];break}}}return{width:Math.ceil((S+1)*16-e*2-a*2),height:(2-R)*(D+1)*16-(R?2:4)*(n+l),pixelRatio:P}},_.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},s}();v.default=g},"./src/demux/id3.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"isHeader",function(){return b}),T.d(v,"isFooter",function(){return g}),T.d(v,"getID3Data",function(){return s}),T.d(v,"canParse",function(){return p}),T.d(v,"getTimeStamp",function(){return e}),T.d(v,"isTimeStampFrame",function(){return a}),T.d(v,"getID3Frames",function(){return l}),T.d(v,"decodeFrame",function(){return r}),T.d(v,"utf8ArrayToStr",function(){return d}),T.d(v,"testables",function(){return f});var b=function(x,O){return O+10<=x.length&&(x[O]===73&&x[O+1]===68&&x[O+2]===51&&(x[O+3]<255&&x[O+4]<255&&(x[O+6]<128&&x[O+7]<128&&x[O+8]<128&&x[O+9]<128)))},g=function(x,O){return O+10<=x.length&&(x[O]===51&&x[O+1]===68&&x[O+2]===73&&(x[O+3]<255&&x[O+4]<255&&(x[O+6]<128&&x[O+7]<128&&x[O+8]<128&&x[O+9]<128)))},s=function(x,O){for(var C=O,w=0;b(x,O);){w+=10;var S=_(x,O+6);w+=S,g(x,O+10)&&(w+=10),O+=w}return w>0?x.subarray(C,C+w):void 0},_=function(x,O){var C=0;return C=(x[O]&127)<<21,C|=(x[O+1]&127)<<14,C|=(x[O+2]&127)<<7,C|=x[O+3]&127,C},p=function(x,O){return b(x,O)&&_(x,O+6)+10<=x.length-O},e=function(x){for(var O=l(x),C=0;C<O.length;C++){var w=O[C];if(a(w))return c(w)}return},a=function(x){return x&&x.key==="PRIV"&&x.info==="com.apple.streaming.transportStreamTimestamp"},n=function(x){var O=String.fromCharCode(x[0],x[1],x[2],x[3]),C=_(x,4),w=10;return{type:O,size:C,data:x.subarray(w,w+C)}},l=function(x){for(var O=0,C=[];b(x,O);){var w=_(x,O+6);O+=10;for(var S=O+w;O+8<S;){var D=n(x.subarray(O)),R=r(D);R&&C.push(R),O+=D.size+10}g(x,O)&&(O+=10)}return C},r=function(x){return x.type==="PRIV"?i(x):x.type[0]==="W"?o(x):t(x)},i=function(x){if(x.size<2)return;var O=d(x.data,!0),C=new Uint8Array(x.data.subarray(O.length+1));return{key:x.type,info:O,data:C.buffer}},t=function(x){if(x.size<2)return;if(x.type==="TXXX"){var O=1,C=d(x.data.subarray(O),!0);O+=C.length+1;var w=d(x.data.subarray(O));return{key:x.type,info:C,data:w}}var S=d(x.data.subarray(1));return{key:x.type,data:S}},o=function(x){if(x.type==="WXXX"){if(x.size<2)return;var O=1,C=d(x.data.subarray(O),!0);O+=C.length+1;var w=d(x.data.subarray(O));return{key:x.type,info:C,data:w}}var S=d(x.data);return{key:x.type,data:S}},c=function(x){if(x.data.byteLength===8){var O=new Uint8Array(x.data),C=O[3]&1,w=(O[4]<<23)+(O[5]<<15)+(O[6]<<7)+O[7];return w/=45,C&&(w+=4772185884e-2),Math.round(w)}return},d=function(x,O){O===void 0&&(O=!1);var C=u();if(C){var w=C.decode(x);if(O){var S=w.indexOf("\0");return S!==-1?w.substring(0,S):w}return w.replace(/\0/g,"")}for(var D=x.length,R,P,N,M="",z=0;z<D;){if(R=x[z++],R===0&&O)return M;if(R===0||R===3)continue;switch(R>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:M+=String.fromCharCode(R);break;case 12:case 13:P=x[z++],M+=String.fromCharCode((R&31)<<6|P&63);break;case 14:P=x[z++],N=x[z++],M+=String.fromCharCode((R&15)<<12|(P&63)<<6|(N&63)<<0);break;default:}}return M},f={decodeTextFrame:t},h;function u(){return!h&&typeof self.TextDecoder!="undefined"&&(h=new self.TextDecoder("utf-8")),h}},"./src/demux/mp3demuxer.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/demux/base-audio-demuxer.ts"),g=T("./src/demux/id3.ts"),s=T("./src/utils/logger.ts"),_=T("./src/demux/mpegaudio.ts");function p(n,l){n.prototype=Object.create(l.prototype),n.prototype.constructor=n,e(n,l)}function e(n,l){return e=Object.setPrototypeOf||function(i,t){return i.__proto__=t,i},e(n,l)}var a=function(n){p(l,n);function l(){return n.apply(this,arguments)||this}var r=l.prototype;return r.resetInitSegment=function(t,o,c){n.prototype.resetInitSegment.call(this,t,o,c),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:t,duration:c,inputTimeScale:9e4,dropped:0}},l.probe=function(t){if(!t)return!1;for(var o=g.getID3Data(t,0)||[],c=o.length,d=t.length;c<d;c++)if(_.probe(t,c))return s.logger.log("MPEG Audio sync word found !"),!0;return!1},r.canParse=function(t,o){return _.canParse(t,o)},r.appendFrame=function(t,o,c){return this.initPTS===null?void 0:_.appendFrame(t,o,c,this.initPTS,this.frameIndex)},l}(b.default);a.minProbeByteLength=4,v.default=a},"./src/demux/mp4demuxer.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/utils/mp4-tools.ts"),g=T("./src/demux/dummy-demuxed-track.ts"),s=function(){function _(e,a){this.remainderData=null,this.config=void 0,this.config=a}var p=_.prototype;return p.resetTimeStamp=function(){},p.resetInitSegment=function(){},p.resetContiguity=function(){},_.probe=function(a){return Object(b.findBox)({data:a,start:0,end:Math.min(a.length,16384)},["moof"]).length>0},p.demux=function(a){var n=a,l=Object(g.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(b.appendUint8Array)(this.remainderData,a));var r=Object(b.segmentValidRange)(n);this.remainderData=r.remainder,l.samples=r.valid||new Uint8Array}else l.samples=n;return{audioTrack:Object(g.dummyTrack)(),avcTrack:l,id3Track:Object(g.dummyTrack)(),textTrack:Object(g.dummyTrack)()}},p.flush=function(){var a=Object(g.dummyTrack)();return a.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(g.dummyTrack)(),avcTrack:a,id3Track:Object(g.dummyTrack)(),textTrack:Object(g.dummyTrack)()}},p.demuxSampleAes=function(a,n,l){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},p.destroy=function(){},_}();s.minProbeByteLength=1024,v.default=s},"./src/demux/mpegaudio.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"appendFrame",function(){return e}),T.d(v,"parseHeader",function(){return a}),T.d(v,"isHeaderPattern",function(){return n}),T.d(v,"isHeader",function(){return l}),T.d(v,"canParse",function(){return r}),T.d(v,"probe",function(){return i});var b=null,g=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],s=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],_=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],p=[0,1,1,4];function e(t,o,c,d,f){if(c+24>o.length)return;var h=a(o,c);if(h&&c+h.frameLength<=o.length){var u=h.samplesPerFrame*9e4/h.sampleRate,E=d+f*u,x={unit:o.subarray(c,c+h.frameLength),pts:E,dts:E};return t.config=[],t.channelCount=h.channelCount,t.samplerate=h.sampleRate,t.samples.push(x),{sample:x,length:h.frameLength,missing:0}}}function a(t,o){var c=t[o+1]>>3&3,d=t[o+1]>>1&3,f=t[o+2]>>4&15,h=t[o+2]>>2&3;if(c!==1&&f!==0&&f!==15&&h!==3){var u=t[o+2]>>1&1,E=t[o+3]>>6,x=c===3?3-d:d===3?3:4,O=g[x*14+f-1]*1e3,C=c===3?0:c===2?1:2,w=s[C*3+h],S=E===3?1:2,D=_[c][d],R=p[d],P=D*8*R,N=Math.floor(D*O/w+u)*R;if(b===null){var M=navigator.userAgent||"",z=M.match(/Chrome\/(\d+)/i);b=z?parseInt(z[1]):0}var X=!!b&&b<=87;return X&&d===2&&O>=224e3&&E===0&&(t[o+3]=t[o+3]|128),{sampleRate:w,channelCount:S,frameLength:N,samplesPerFrame:P}}}function n(t,o){return t[o]===255&&(t[o+1]&224)===224&&(t[o+1]&6)!==0}function l(t,o){return o+1<t.length&&n(t,o)}function r(t,o){var c=4;return n(t,o)&&c<=t.length-o}function i(t,o){if(o+1<t.length&&n(t,o)){var c=4,d=a(t,o),f=c;d!=null&&d.frameLength&&(f=d.frameLength);var h=o+f;return h===t.length||l(t,h)}return!1}},"./src/demux/sample-aes.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/crypt/decrypter.ts"),g=T("./src/demux/tsdemuxer.ts"),s=function(){function _(e,a,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new b.default(e,a,{removePKCS7Padding:!1})}var p=_.prototype;return p.decryptBuffer=function(a,n){this.decrypter.decrypt(a,this.keyData.key.buffer,this.keyData.iv.buffer,n)},p.decryptAacSample=function(a,n,l,r){var i=a[n].unit,t=i.subarray(16,i.length-i.length%16),o=t.buffer.slice(t.byteOffset,t.byteOffset+t.length),c=this;this.decryptBuffer(o,function(d){var f=new Uint8Array(d);i.set(f,16),r||c.decryptAacSamples(a,n+1,l)})},p.decryptAacSamples=function(a,n,l){for(;;n++){if(n>=a.length){l();return}if(a[n].unit.length<32)continue;var r=this.decrypter.isSync();if(this.decryptAacSample(a,n,l,r),!r)return}},p.getAvcEncryptedData=function(a){for(var n=Math.floor((a.length-48)/160)*16+16,l=new Int8Array(n),r=0,i=32;i<=a.length-16;i+=160,r+=16)l.set(a.subarray(i,i+16),r);return l},p.getAvcDecryptedUnit=function(a,n){for(var l=new Uint8Array(n),r=0,i=32;i<=a.length-16;i+=160,r+=16)a.set(l.subarray(r,r+16),i);return a},p.decryptAvcSample=function(a,n,l,r,i,t){var o=Object(g.discardEPB)(i.data),c=this.getAvcEncryptedData(o),d=this;this.decryptBuffer(c.buffer,function(f){i.data=d.getAvcDecryptedUnit(o,f),t||d.decryptAvcSamples(a,n,l+1,r)})},p.decryptAvcSamples=function(a,n,l,r){if(a instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,l=0){if(n>=a.length){r();return}for(var i=a[n].units;!(l>=i.length);l++){var t=i[l];if(t.data.length<=48||t.type!==1&&t.type!==5)continue;var o=this.decrypter.isSync();if(this.decryptAvcSample(a,n,l,r,t,o),!o)return}}},_}();v.default=s},"./src/demux/transmuxer-interface.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return i});var b=T("./node_modules/webworkify-webpack/index.js"),g=T.n(b),s=T("./src/events.ts"),_=T("./src/demux/transmuxer.ts"),p=T("./src/utils/logger.ts"),e=T("./src/errors.ts"),a=T("./src/utils/mediasource-helper.ts"),n=T("./node_modules/eventemitter3/index.js"),l=T.n(n),r=Object(a.getMediaSource)()||{isTypeSupported:function(){return!1}},i=function(){function t(c,d,f,h){var u=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=c,this.id=d,this.onTransmuxComplete=f,this.onFlush=h;var E=c.config,x=function(D,R){R=R||{},R.frag=u.frag,R.id=u.id,c.trigger(D,R)};this.observer=new n.EventEmitter,this.observer.on(s.Events.FRAG_DECRYPTED,x),this.observer.on(s.Events.ERROR,x);var O={mp4:r.isTypeSupported("video/mp4"),mpeg:r.isTypeSupported("audio/mpeg"),mp3:r.isTypeSupported('audio/mp4; codecs="mp3"')},C=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){p.logger.log("demuxing in webworker");var w;try{w=this.worker=b("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),w.addEventListener("message",this.onwmsg),w.onerror=function(S){c.trigger(s.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(S.message+" ("+S.filename+":"+S.lineno+")")})},w.postMessage({cmd:"init",typeSupported:O,vendor:C,id:d,config:JSON.stringify(E)})}catch(S){p.logger.warn("Error in worker:",S),p.logger.error("Error while initializing DemuxerWorker, fallback to inline"),w&&self.URL.revokeObjectURL(w.objectURL),this.transmuxer=new _.default(this.observer,O,E,C,d),this.worker=null}}else this.transmuxer=new _.default(this.observer,O,E,C,d)}var o=t.prototype;return o.destroy=function(){var d=this.worker;if(d)d.removeEventListener("message",this.onwmsg),d.terminate(),this.worker=null;else{var f=this.transmuxer;f&&(f.destroy(),this.transmuxer=null)}var h=this.observer;h&&h.removeAllListeners(),this.observer=null},o.push=function(d,f,h,u,E,x,O,C,w,S){var D=this;w.transmuxing.start=self.performance.now();var R=this.transmuxer,P=this.worker,N=x?x.start:E.start,M=E.decryptdata,z=this.frag,X=!(z&&E.cc===z.cc),k=!(z&&w.level===z.level),F=z?w.sn-z.sn:-1,U=this.part?w.part-this.part.index:1,L=!k&&(F===1||F===0&&U===1),B=self.performance.now();(k||F||E.stats.parsing.start===0)&&(E.stats.parsing.start=B),x&&(U||!L)&&(x.stats.parsing.start=B);var Z=new _.TransmuxState(X,L,C,k,N);if(!L||X){p.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+w.sn+" p: "+w.part+" level: "+w.level+" id: "+w.id+`
discontinuity: `+X+`
trackSwitch: `+k+`
contiguous: `+L+`
accurateTimeOffset: `+C+`
timeOffset: `+N);var re=new _.TransmuxConfig(h,u,f,O,S);this.configureTransmuxer(re)}if(this.frag=E,this.part=x,P)P.postMessage({cmd:"demux",data:d,decryptdata:M,chunkMeta:w,state:Z},d instanceof ArrayBuffer?[d]:[]);else if(R){var me=R.push(d,M,w,Z);Object(_.isPromise)(me)?me.then(function(Ee){D.handleTransmuxComplete(Ee)}):this.handleTransmuxComplete(me)}},o.flush=function(d){var f=this;d.transmuxing.start=self.performance.now();var h=this.transmuxer,u=this.worker;if(u)u.postMessage({cmd:"flush",chunkMeta:d});else if(h){var E=h.flush(d);Object(_.isPromise)(E)?E.then(function(x){f.handleFlushResult(x,d)}):this.handleFlushResult(E,d)}},o.handleFlushResult=function(d,f){var h=this;d.forEach(function(u){h.handleTransmuxComplete(u)}),this.onFlush(f)},o.onWorkerMessage=function(d){var f=d.data,h=this.hls;switch(f.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(f.data);break}case"flush":{this.onFlush(f.data);break}default:{f.data=f.data||{},f.data.frag=this.frag,f.data.id=this.id,h.trigger(f.event,f.data);break}}},o.configureTransmuxer=function(d){var f=this.worker,h=this.transmuxer;f?f.postMessage({cmd:"configure",config:d}):h&&h.configure(d)},o.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},t}()},"./src/demux/transmuxer-worker.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return e});var b=T("./src/demux/transmuxer.ts"),g=T("./src/events.ts"),s=T("./src/utils/logger.ts"),_=T("./node_modules/eventemitter3/index.js"),p=T.n(_);function e(i){var t=new _.EventEmitter,o=function(d,f){i.postMessage({event:d,data:f})};t.on(g.Events.FRAG_DECRYPTED,o),t.on(g.Events.ERROR,o),i.addEventListener("message",function(c){var d=c.data;switch(d.cmd){case"init":{var f=JSON.parse(d.config);i.transmuxer=new b.default(t,d.typeSupported,f,d.vendor,d.id),Object(s.enableLogs)(f.debug),o("init",null);break}case"configure":{i.transmuxer.configure(d.config);break}case"demux":{var h=i.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(b.isPromise)(h)?h.then(function(x){a(i,x)}):a(i,h);break}case"flush":{var u=d.chunkMeta,E=i.transmuxer.flush(u);Object(b.isPromise)(E)?E.then(function(x){l(i,x,u)}):l(i,E,u);break}default:break}})}function a(i,t){if(r(t.remuxResult))return;var o=[],c=t.remuxResult,d=c.audio,f=c.video;d&&n(o,d),f&&n(o,f),i.postMessage({event:"transmuxComplete",data:t},o)}function n(i,t){t.data1&&i.push(t.data1.buffer),t.data2&&i.push(t.data2.buffer)}function l(i,t,o){t.forEach(function(c){a(i,c)}),i.postMessage({event:"flush",data:o})}function r(i){return!i.audio&&!i.video&&!i.text&&!i.id3&&!i.initSegment}},"./src/demux/transmuxer.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return f}),T.d(v,"isPromise",function(){return E}),T.d(v,"TransmuxConfig",function(){return x}),T.d(v,"TransmuxState",function(){return O});var b=T("./src/events.ts"),g=T("./src/errors.ts"),s=T("./src/crypt/decrypter.ts"),_=T("./src/demux/aacdemuxer.ts"),p=T("./src/demux/mp4demuxer.ts"),e=T("./src/demux/tsdemuxer.ts"),a=T("./src/demux/mp3demuxer.ts"),n=T("./src/remux/mp4-remuxer.ts"),l=T("./src/remux/passthrough-remuxer.ts"),r=T("./src/demux/chunk-cache.ts"),i=T("./src/utils/mp4-tools.ts"),t=T("./src/utils/logger.ts"),o;try{o=self.performance.now.bind(self.performance)}catch(C){t.logger.debug("Unable to use Performance API on this environment"),o=self.Date.now}var c=[{demux:e.default,remux:n.default},{demux:p.default,remux:l.default},{demux:_.default,remux:n.default},{demux:a.default,remux:n.default}],d=1024;c.forEach(function(C){var w=C.demux;d=Math.max(d,w.minProbeByteLength)});var f=function(){function C(S,D,R,P,N){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new r.default,this.observer=S,this.typeSupported=D,this.config=R,this.vendor=P,this.id=N}var w=C.prototype;return w.configure=function(D){this.transmuxConfig=D,this.decrypter&&this.decrypter.reset()},w.push=function(D,R,P,N){var M=this,z=P.transmuxing;z.executeStart=o();var X=new Uint8Array(D),k=this.cache,F=this.config,U=this.currentTransmuxState,L=this.transmuxConfig;N&&(this.currentTransmuxState=N);var B=h(X,R);if(B&&B.method==="AES-128"){var Z=this.getDecrypter();if(F.enableSoftwareAES){var re=Z.softwareDecrypt(X,B.key.buffer,B.iv.buffer);if(!re)return z.executeEnd=o(),u(P);X=new Uint8Array(re)}else return this.decryptionPromise=Z.webCryptoDecrypt(X,B.key.buffer,B.iv.buffer).then(function($){var Q=M.push($,null,P);return M.decryptionPromise=null,Q}),this.decryptionPromise}var me=N||U,Ee=me.contiguous,De=me.discontinuity,te=me.trackSwitch,Ce=me.accurateTimeOffset,we=me.timeOffset,ce=L.audioCodec,le=L.videoCodec,oe=L.defaultInitPts,xe=L.duration,q=L.initSegmentData;if((De||te)&&this.resetInitSegment(q,ce,le,xe),De&&this.resetInitialTimestamp(oe),Ee||this.resetContiguity(),this.needsProbing(X,De,te)){if(k.dataLength){var se=k.flush();X=Object(i.appendUint8Array)(se,X)}this.configureTransmuxer(X,L)}var Ne=this.transmux(X,B,we,Ce,P),de=this.currentTransmuxState;return de.contiguous=!0,de.discontinuity=!1,de.trackSwitch=!1,z.executeEnd=o(),Ne},w.flush=function(D){var R=this,P=D.transmuxing;P.executeStart=o();var N=this.decrypter,M=this.cache,z=this.currentTransmuxState,X=this.decryptionPromise;if(X)return X.then(function(){return R.flush(D)});var k=[],F=z.timeOffset;if(N){var U=N.flush();U&&k.push(this.push(U,null,D))}var L=M.dataLength;M.reset();var B=this.demuxer,Z=this.remuxer;if(!B||!Z)return L>=d&&this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),P.executeEnd=o(),[u(D)];var re=B.flush(F);return E(re)?re.then(function(me){return R.flushRemux(k,me,D),k}):(this.flushRemux(k,re,D),k)},w.flushRemux=function(D,R,P){var N=R.audioTrack,M=R.avcTrack,z=R.id3Track,X=R.textTrack,k=this.currentTransmuxState,F=k.accurateTimeOffset,U=k.timeOffset;t.logger.log("[transmuxer.ts]: Flushed fragment "+P.sn+(P.part>-1?" p: "+P.part:"")+" of level "+P.level);var L=this.remuxer.remux(N,M,z,X,U,F,!0,this.id);D.push({remuxResult:L,chunkMeta:P}),P.transmuxing.executeEnd=o()},w.resetInitialTimestamp=function(D){var R=this.demuxer,P=this.remuxer;if(!R||!P)return;R.resetTimeStamp(D),P.resetTimeStamp(D)},w.resetContiguity=function(){var D=this.demuxer,R=this.remuxer;if(!D||!R)return;D.resetContiguity(),R.resetNextTimestamp()},w.resetInitSegment=function(D,R,P,N){var M=this.demuxer,z=this.remuxer;if(!M||!z)return;M.resetInitSegment(R,P,N),z.resetInitSegment(D,R,P)},w.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},w.transmux=function(D,R,P,N,M){var z;return R&&R.method==="SAMPLE-AES"?z=this.transmuxSampleAes(D,R,P,N,M):z=this.transmuxUnencrypted(D,P,N,M),z},w.transmuxUnencrypted=function(D,R,P,N){var M=this.demuxer.demux(D,R,!1,!this.config.progressive),z=M.audioTrack,X=M.avcTrack,k=M.id3Track,F=M.textTrack,U=this.remuxer.remux(z,X,k,F,R,P,!1,this.id);return{remuxResult:U,chunkMeta:N}},w.transmuxSampleAes=function(D,R,P,N,M){var z=this;return this.demuxer.demuxSampleAes(D,R,P).then(function(X){var k=z.remuxer.remux(X.audioTrack,X.avcTrack,X.id3Track,X.textTrack,P,N,!1,z.id);return{remuxResult:k,chunkMeta:M}})},w.configureTransmuxer=function(D,R){for(var P=this.config,N=this.observer,M=this.typeSupported,z=this.vendor,X=R.audioCodec,k=R.defaultInitPts,F=R.duration,U=R.initSegmentData,L=R.videoCodec,B,Z=0,re=c.length;Z<re;Z++)if(c[Z].demux.probe(D)){B=c[Z];break}B||(t.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),B={demux:p.default,remux:l.default});var me=this.demuxer,Ee=this.remuxer,De=B.remux,te=B.demux;(!Ee||!(Ee instanceof De))&&(this.remuxer=new De(N,P,M,z)),(!me||!(me instanceof te))&&(this.demuxer=new te(N,P,M),this.probe=te.probe),this.resetInitSegment(U,X,L,F),this.resetInitialTimestamp(k)},w.needsProbing=function(D,R,P){return!this.demuxer||!this.remuxer||R||P},w.getDecrypter=function(){var D=this.decrypter;return D||(D=this.decrypter=new s.default(this.observer,this.config)),D},C}();function h(C,w){var S=null;return C.byteLength>0&&w!=null&&w.key!=null&&w.iv!==null&&w.method!=null&&(S=w),S}var u=function(w){return{remuxResult:{},chunkMeta:w}};function E(C){return"then"in C&&C.then instanceof Function}var x=function(w,S,D,R,P){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=w,this.videoCodec=S,this.initSegmentData=D,this.duration=R,this.defaultInitPts=P},O=function(w,S,D,R,P){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=w,this.contiguous=S,this.accurateTimeOffset=D,this.trackSwitch=R,this.timeOffset=P}},"./src/demux/tsdemuxer.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"discardEPB",function(){return u});var b=T("./src/demux/adts.ts"),g=T("./src/demux/mpegaudio.ts"),s=T("./src/demux/exp-golomb.ts"),_=T("./src/demux/id3.ts"),p=T("./src/demux/sample-aes.ts"),e=T("./src/events.ts"),a=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/logger.ts"),l=T("./src/errors.ts"),r={video:1,audio:2,id3:3,text:4},i=function(){function E(O,C,w){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=O,this.config=C,this.typeSupported=w}E.probe=function(C){var w=E.syncOffset(C);return w<0?!1:(w&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+w+", junk ahead ?"),!0)},E.syncOffset=function(C){for(var w=Math.min(1e3,C.length-3*188),S=0;S<w;){if(C[S]===71&&C[S+188]===71&&C[S+2*188]===71)return S;S++}return-1},E.createTrack=function(C,w){return{container:C==="video"||C==="audio"?"video/mp2t":void 0,type:C,id:r[C],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:C==="audio"?w:void 0}};var x=E.prototype;return x.resetInitSegment=function(C,w,S){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=E.createTrack("video",S),this._audioTrack=E.createTrack("audio",S),this._id3Track=E.createTrack("id3",S),this._txtTrack=E.createTrack("text",S),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=C,this.videoCodec=w,this._duration=S},x.resetTimeStamp=function(){},x.resetContiguity=function(){var C=this._audioTrack,w=this._avcTrack,S=this._id3Track;C&&(C.pesData=null),w&&(w.pesData=null),S&&(S.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},x.demux=function(C,w,S,D){S===void 0&&(S=!1),D===void 0&&(D=!1),S||(this.sampleAes=null);var R,P=this._avcTrack,N=this._audioTrack,M=this._id3Track,z=P.pid,X=P.pesData,k=N.pid,F=M.pid,U=N.pesData,L=M.pesData,B=!1,Z=this.pmtParsed,re=this._pmtId,me=C.length;if(this.remainderData&&(C=Object(a.appendUint8Array)(this.remainderData,C),me=C.length,this.remainderData=null),me<188&&!D)return this.remainderData=C,{audioTrack:N,avcTrack:P,id3Track:M,textTrack:this._txtTrack};var Ee=Math.max(0,E.syncOffset(C));me-=(me+Ee)%188,me<C.byteLength&&!D&&(this.remainderData=new Uint8Array(C.buffer,me,C.buffer.byteLength-me));for(var De=Ee;De<me;De+=188)if(C[De]===71){var te=!!(C[De+1]&64),Ce=((C[De+1]&31)<<8)+C[De+2],we=(C[De+3]&48)>>4,ce=void 0;if(we>1){if(ce=De+5+C[De+4],ce===De+188)continue}else ce=De+4;switch(Ce){case z:te&&(X&&(R=d(X))&&this.parseAVCPES(R,!1),X={data:[],size:0}),X&&(X.data.push(C.subarray(ce,De+188)),X.size+=De+188-ce);break;case k:te&&(U&&(R=d(U))&&(N.isAAC?this.parseAACPES(R):this.parseMPEGPES(R)),U={data:[],size:0}),U&&(U.data.push(C.subarray(ce,De+188)),U.size+=De+188-ce);break;case F:te&&(L&&(R=d(L))&&this.parseID3PES(R),L={data:[],size:0}),L&&(L.data.push(C.subarray(ce,De+188)),L.size+=De+188-ce);break;case 0:te&&(ce+=C[ce]+1),re=this._pmtId=o(C,ce);break;case re:{te&&(ce+=C[ce]+1);var le=c(C,ce,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);z=le.avc,z>0&&(P.pid=z),k=le.audio,k>0&&(N.pid=k,N.isAAC=le.isAAC),F=le.id3,F>0&&(M.pid=F),B&&!Z&&(n.logger.log("reparse from beginning"),B=!1,De=Ee-188),Z=this.pmtParsed=!0;break}case 17:case 8191:break;default:B=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});P.pesData=X,N.pesData=U,M.pesData=L;var oe={audioTrack:N,avcTrack:P,id3Track:M,textTrack:this._txtTrack};return D&&this.extractRemainingSamples(oe),oe},x.flush=function(){var C=this.remainderData;this.remainderData=null;var w;return C?w=this.demux(C,-1,!1,!0):w={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(w),this.sampleAes?this.decrypt(w,this.sampleAes):w},x.extractRemainingSamples=function(C){var w=C.audioTrack,S=C.avcTrack,D=C.id3Track,R=S.pesData,P=w.pesData,N=D.pesData,M;R&&(M=d(R))?(this.parseAVCPES(M,!0),S.pesData=null):S.pesData=R,P&&(M=d(P))?(w.isAAC?this.parseAACPES(M):this.parseMPEGPES(M),w.pesData=null):(P!=null&&P.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),w.pesData=P),N&&(M=d(N))?(this.parseID3PES(M),D.pesData=null):D.pesData=N},x.demuxSampleAes=function(C,w,S){var D=this.demux(C,S,!0,!this.config.progressive),R=this.sampleAes=new p.default(this.observer,this.config,w);return this.decrypt(D,R)},x.decrypt=function(C,w){return new Promise(function(S){var D=C.audioTrack,R=C.avcTrack;D.samples&&D.isAAC?w.decryptAacSamples(D.samples,0,function(){R.samples?w.decryptAvcSamples(R.samples,0,0,function(){S(C)}):S(C)}):R.samples&&w.decryptAvcSamples(R.samples,0,0,function(){S(C)})})},x.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},x.parseAVCPES=function(C,w){var S=this,D=this._avcTrack,R=this.parseAVCNALu(C.data),P=!1,N=this.avcSample,M,z=!1;C.data=null,N&&R.length&&!D.audFound&&(f(N,D),N=this.avcSample=t(!1,C.pts,C.dts,"")),R.forEach(function(X){switch(X.type){case 1:{M=!0,N||(N=S.avcSample=t(!0,C.pts,C.dts,"")),P&&(N.debug+="NDR "),N.frame=!0;var k=X.data;if(z&&k.length>4){var F=new s.default(k).readSliceType();(F===2||F===4||F===7||F===9)&&(N.key=!0)}break}case 5:M=!0,N||(N=S.avcSample=t(!0,C.pts,C.dts,"")),P&&(N.debug+="IDR "),N.key=!0,N.frame=!0;break;case 6:{M=!0,P&&N&&(N.debug+="SEI ");var U=new s.default(u(X.data));U.readUByte();for(var L=0,B=0,Z=!1,re=0;!Z&&U.bytesAvailable>1;){L=0;do re=U.readUByte(),L+=re;while(re===255);B=0;do re=U.readUByte(),B+=re;while(re===255);if(L===4&&U.bytesAvailable!==0){Z=!0;var me=U.readUByte();if(me===181){var Ee=U.readUShort();if(Ee===49){var De=U.readUInt();if(De===1195456820){var te=U.readUByte();if(te===3){for(var Ce=U.readUByte(),we=U.readUByte(),ce=31&Ce,le=[Ce,we],oe=0;oe<ce;oe++)le.push(U.readUByte()),le.push(U.readUByte()),le.push(U.readUByte());h(S._txtTrack.samples,{type:3,pts:C.pts,bytes:le})}}}}}else if(L===5&&U.bytesAvailable!==0){if(Z=!0,B>16){for(var xe=[],q=0;q<16;q++)xe.push(U.readUByte().toString(16)),(q===3||q===5||q===7||q===9)&&xe.push("-");for(var se=B-16,Ne=new Uint8Array(se),de=0;de<se;de++)Ne[de]=U.readUByte();h(S._txtTrack.samples,{pts:C.pts,payloadType:L,uuid:xe.join(""),userData:Object(_.utf8ArrayToStr)(Ne),userDataBytes:Ne})}}else if(B<U.bytesAvailable)for(var $=0;$<B;$++)U.readUByte()}break}case 7:if(M=!0,z=!0,P&&N&&(N.debug+="SPS "),!D.sps){var Q=new s.default(X.data),Y=Q.readSPS();D.width=Y.width,D.height=Y.height,D.pixelRatio=Y.pixelRatio,D.sps=[X.data],D.duration=S._duration;for(var ue=X.data.subarray(1,4),ae="avc1.",be=0;be<3;be++){var Ie=ue[be].toString(16);Ie.length<2&&(Ie="0"+Ie),ae+=Ie}D.codec=ae}break;case 8:M=!0,P&&N&&(N.debug+="PPS "),D.pps||(D.pps=[X.data]);break;case 9:M=!1,D.audFound=!0,N&&f(N,D),N=S.avcSample=t(!1,C.pts,C.dts,P?"AUD ":"");break;case 12:M=!1;break;default:M=!1,N&&(N.debug+="unknown NAL "+X.type+" ");break}if(N&&M){var pe=N.units;pe.push(X)}}),w&&N&&(f(N,D),this.avcSample=null)},x.getLastNalUnit=function(){var C,w=this.avcSample,S;if(!w||w.units.length===0){var D=this._avcTrack.samples;w=D[D.length-1]}if((C=w)!==null&&C!==void 0&&C.units){var R=w.units;S=R[R.length-1]}return S},x.parseAVCNALu=function(C){var w=C.byteLength,S=this._avcTrack,D=S.naluState||0,R=D,P=[],N=0,M,z,X,k=-1,F=0;for(D===-1&&(k=0,F=C[0]&31,D=0,N=1);N<w;){if(M=C[N++],!D){D=M?0:1;continue}if(D===1){D=M?0:2;continue}if(!M)D=3;else if(M===1){if(k>=0){var U={data:C.subarray(k,N-D-1),type:F};P.push(U)}else{var L=this.getLastNalUnit();if(L&&(R&&N<=4-R&&(L.state&&(L.data=L.data.subarray(0,L.data.byteLength-R))),z=N-D-1,z>0)){var B=new Uint8Array(L.data.byteLength+z);B.set(L.data,0),B.set(C.subarray(0,z),L.data.byteLength),L.data=B,L.state=0}}N<w?(X=C[N]&31,k=N,F=X,D=0):D=-1}else D=0}if(k>=0&&D>=0){var Z={data:C.subarray(k,w),type:F,state:D};P.push(Z)}if(P.length===0){var re=this.getLastNalUnit();if(re){var me=new Uint8Array(re.data.byteLength+C.byteLength);me.set(re.data,0),me.set(C,re.data.byteLength),re.data=me}}return S.naluState=D,P},x.parseAACPES=function(C){var w=0,S=this._audioTrack,D=this.aacOverFlow,R=C.data;if(D){this.aacOverFlow=null;var P=D.sample.unit.byteLength,N=Math.min(D.missing,P),M=P-N;D.sample.unit.set(R.subarray(0,N),M),S.samples.push(D.sample),w=D.missing}var z,X;for(z=w,X=R.length;z<X-1&&!b.isHeader(R,z);z++);if(z!==w){var k,F;if(z<X-1?(k="AAC PES did not start with ADTS header,offset:"+z,F=!1):(k="no ADTS header found in AAC PES",F=!0),n.logger.warn("parsing error:"+k),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:F,reason:k}),F)return}b.initTrackConfig(S,this.observer,R,z,this.audioCodec);var U;if(C.pts!==void 0)U=C.pts;else if(D){var L=b.getFrameDuration(S.samplerate);U=D.sample.pts+L}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var B=0;z<X;)if(b.isHeader(R,z)){if(z+5<X){var Z=b.appendFrame(S,R,z,U,B);if(Z)if(Z.missing)this.aacOverFlow=Z;else{z+=Z.length,B++;continue}}break}else z++},x.parseMPEGPES=function(C){var w=C.data,S=w.length,D=0,R=0,P=C.pts;if(P===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;R<S;)if(g.isHeader(w,R)){var N=g.appendFrame(this._audioTrack,w,R,P,D);if(N)R+=N.length,D++;else break}else R++},x.parseID3PES=function(C){if(C.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(C)},E}();i.minProbeByteLength=188;function t(E,x,O,C){return{key:E,frame:!1,pts:x,dts:O,units:[],debug:C,length:0}}function o(E,x){return(E[x+10]&31)<<8|E[x+11]}function c(E,x,O,C){var w={audio:-1,avc:-1,id3:-1,isAAC:!0},S=(E[x+1]&15)<<8|E[x+2],D=x+3+S-4,R=(E[x+10]&15)<<8|E[x+11];for(x+=12+R;x<D;){var P=(E[x+1]&31)<<8|E[x+2];switch(E[x]){case 207:if(!C){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:w.audio===-1&&(w.audio=P);break;case 21:w.id3===-1&&(w.id3=P);break;case 219:if(!C){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:w.avc===-1&&(w.avc=P);break;case 3:case 4:O?w.audio===-1&&(w.audio=P,w.isAAC=!1):n.logger.log("MPEG audio found, not supported in this browser");break;case 36:n.logger.warn("Unsupported HEVC stream type found");break;default:break}x+=((E[x+3]&15)<<8|E[x+4])+5}return w}function d(E){var x=0,O,C,w,S,D,R=E.data;if(!E||E.size===0)return null;for(;R[0].length<19&&R.length>1;){var P=new Uint8Array(R[0].length+R[1].length);P.set(R[0]),P.set(R[1],R[0].length),R[0]=P,R.splice(1,1)}O=R[0];var N=(O[0]<<16)+(O[1]<<8)+O[2];if(N===1){if(C=(O[4]<<8)+O[5],C&&C>E.size-6)return null;var M=O[7];M&192&&(S=(O[9]&14)*536870912+(O[10]&255)*4194304+(O[11]&254)*16384+(O[12]&255)*128+(O[13]&254)/2,M&64?(D=(O[14]&14)*536870912+(O[15]&255)*4194304+(O[16]&254)*16384+(O[17]&255)*128+(O[18]&254)/2,S-D>60*9e4&&(n.logger.warn(Math.round((S-D)/9e4)+"s delta between PTS and DTS, align them"),S=D)):D=S),w=O[8];var z=w+9;if(E.size<=z)return null;E.size-=z;for(var X=new Uint8Array(E.size),k=0,F=R.length;k<F;k++){O=R[k];var U=O.byteLength;if(z)if(z>U){z-=U;continue}else O=O.subarray(z),U-=z,z=0;X.set(O,x),x+=U}return C&&(C-=w+3),{data:X,pts:S,dts:D,len:C}}return null}function f(E,x){if(E.units.length&&E.frame){if(E.pts===void 0){var O=x.samples,C=O.length;if(C){var w=O[C-1];E.pts=w.pts,E.dts=w.dts}else{x.dropped++;return}}x.samples.push(E)}E.debug.length&&n.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function h(E,x){var O=E.length;if(O>0){if(x.pts>=E[O-1].pts)E.push(x);else for(var C=O-1;C>=0;C--)if(x.pts<E[C].pts){E.splice(C,0,x);break}}else E.push(x)}function u(E){for(var x=E.byteLength,O=[],C=1;C<x-2;)E[C]===0&&E[C+1]===0&&E[C+2]===3?(O.push(C+2),C+=2):C++;if(O.length===0)return E;var w=x-O.length,S=new Uint8Array(w),D=0;for(C=0;C<w;D++,C++)D===O[0]&&(D++,O.shift()),S[C]=E[D];return S}v.default=i},"./src/errors.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"ErrorTypes",function(){return b}),T.d(v,"ErrorDetails",function(){return g});var b;(function(s){s.NETWORK_ERROR="networkError",s.MEDIA_ERROR="mediaError",s.KEY_SYSTEM_ERROR="keySystemError",s.MUX_ERROR="muxError",s.OTHER_ERROR="otherError"})(b||(b={}));var g;(function(s){s.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",s.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",s.KEY_SYSTEM_NO_SESSION="keySystemNoSession",s.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",s.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",s.MANIFEST_LOAD_ERROR="manifestLoadError",s.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",s.MANIFEST_PARSING_ERROR="manifestParsingError",s.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",s.LEVEL_EMPTY_ERROR="levelEmptyError",s.LEVEL_LOAD_ERROR="levelLoadError",s.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",s.LEVEL_SWITCH_ERROR="levelSwitchError",s.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",s.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",s.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",s.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",s.FRAG_LOAD_ERROR="fragLoadError",s.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",s.FRAG_DECRYPT_ERROR="fragDecryptError",s.FRAG_PARSING_ERROR="fragParsingError",s.REMUX_ALLOC_ERROR="remuxAllocError",s.KEY_LOAD_ERROR="keyLoadError",s.KEY_LOAD_TIMEOUT="keyLoadTimeOut",s.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",s.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",s.BUFFER_APPEND_ERROR="bufferAppendError",s.BUFFER_APPENDING_ERROR="bufferAppendingError",s.BUFFER_STALLED_ERROR="bufferStalledError",s.BUFFER_FULL_ERROR="bufferFullError",s.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",s.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",s.INTERNAL_EXCEPTION="internalException",s.INTERNAL_ABORTED="aborted",s.UNKNOWN="unknown"})(g||(g={}))},"./src/events.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"Events",function(){return b});var b;(function(g){g.MEDIA_ATTACHING="hlsMediaAttaching",g.MEDIA_ATTACHED="hlsMediaAttached",g.MEDIA_DETACHING="hlsMediaDetaching",g.MEDIA_DETACHED="hlsMediaDetached",g.BUFFER_RESET="hlsBufferReset",g.BUFFER_CODECS="hlsBufferCodecs",g.BUFFER_CREATED="hlsBufferCreated",g.BUFFER_APPENDING="hlsBufferAppending",g.BUFFER_APPENDED="hlsBufferAppended",g.BUFFER_EOS="hlsBufferEos",g.BUFFER_FLUSHING="hlsBufferFlushing",g.BUFFER_FLUSHED="hlsBufferFlushed",g.MANIFEST_LOADING="hlsManifestLoading",g.MANIFEST_LOADED="hlsManifestLoaded",g.MANIFEST_PARSED="hlsManifestParsed",g.LEVEL_SWITCHING="hlsLevelSwitching",g.LEVEL_SWITCHED="hlsLevelSwitched",g.LEVEL_LOADING="hlsLevelLoading",g.LEVEL_LOADED="hlsLevelLoaded",g.LEVEL_UPDATED="hlsLevelUpdated",g.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",g.LEVELS_UPDATED="hlsLevelsUpdated",g.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",g.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",g.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",g.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",g.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",g.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",g.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",g.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",g.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",g.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",g.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",g.CUES_PARSED="hlsCuesParsed",g.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",g.INIT_PTS_FOUND="hlsInitPtsFound",g.FRAG_LOADING="hlsFragLoading",g.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",g.FRAG_LOADED="hlsFragLoaded",g.FRAG_DECRYPTED="hlsFragDecrypted",g.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",g.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",g.FRAG_PARSING_METADATA="hlsFragParsingMetadata",g.FRAG_PARSED="hlsFragParsed",g.FRAG_BUFFERED="hlsFragBuffered",g.FRAG_CHANGED="hlsFragChanged",g.FPS_DROP="hlsFpsDrop",g.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",g.ERROR="hlsError",g.DESTROYING="hlsDestroying",g.KEY_LOADING="hlsKeyLoading",g.KEY_LOADED="hlsKeyLoaded",g.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",g.BACK_BUFFER_REACHED="hlsBackBufferReached"})(b||(b={}))},"./src/hls.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return E});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),g=T.n(b),s=T("./src/loader/playlist-loader.ts"),_=T("./src/loader/key-loader.ts"),p=T("./src/controller/id3-track-controller.ts"),e=T("./src/controller/latency-controller.ts"),a=T("./src/controller/level-controller.ts"),n=T("./src/controller/fragment-tracker.ts"),l=T("./src/controller/stream-controller.ts"),r=T("./src/is-supported.ts"),i=T("./src/utils/logger.ts"),t=T("./src/config.ts"),o=T("./node_modules/eventemitter3/index.js"),c=T.n(o),d=T("./src/events.ts"),f=T("./src/errors.ts");function h(x,O){for(var C=0;C<O.length;C++){var w=O[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(x,w.key,w)}}function u(x,O,C){return O&&h(x.prototype,O),C&&h(x,C),x}var E=function(){x.isSupported=function(){return Object(r.isSupported)()};function x(C){C===void 0&&(C={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new o.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var w=this.config=Object(t.mergeConfig)(x.DefaultConfig,C);this.userConfig=C,Object(i.enableLogs)(w.debug),this._autoLevelCapping=-1,w.progressive&&Object(t.enableStreamingMode)(w);var S=w.abrController,D=w.bufferController,R=w.capLevelController,P=w.fpsController,N=this.abrController=new S(this),M=this.bufferController=new D(this),z=this.capLevelController=new R(this),X=new P(this),k=new s.default(this),F=new _.default(this),U=new p.default(this),L=this.levelController=new a.default(this),B=new n.FragmentTracker(this),Z=this.streamController=new l.default(this,B);z.setStreamController(Z),X.setStreamController(Z);var re=[L,Z];this.networkControllers=re;var me=[k,F,N,M,z,X,U,B];this.audioTrackController=this.createController(w.audioTrackController,null,re),this.createController(w.audioStreamController,B,re),this.subtitleTrackController=this.createController(w.subtitleTrackController,null,re),this.createController(w.subtitleStreamController,B,re),this.createController(w.timelineController,null,me),this.emeController=this.createController(w.emeController,null,me),this.cmcdController=this.createController(w.cmcdController,null,me),this.latencyController=this.createController(e.default,null,me),this.coreComponents=me}var O=x.prototype;return O.createController=function(w,S,D){if(w){var R=S?new w(this,S):new w(this);return D&&D.push(R),R}return null},O.on=function(w,S,D){D===void 0&&(D=this),this._emitter.on(w,S,D)},O.once=function(w,S,D){D===void 0&&(D=this),this._emitter.once(w,S,D)},O.removeAllListeners=function(w){this._emitter.removeAllListeners(w)},O.off=function(w,S,D,R){D===void 0&&(D=this),this._emitter.off(w,S,D,R)},O.listeners=function(w){return this._emitter.listeners(w)},O.emit=function(w,S,D){return this._emitter.emit(w,S,D)},O.trigger=function(w,S){if(this.config.debug)return this.emit(w,w,S);try{return this.emit(w,w,S)}catch(D){i.logger.error("An internal error happened while handling event "+w+'. Error message: "'+D.message+'". Here is a stacktrace:',D),this.trigger(d.Events.ERROR,{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:w,error:D})}return!1},O.listenerCount=function(w){return this._emitter.listenerCount(w)},O.destroy=function(){i.logger.log("destroy"),this.trigger(d.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(w){return w.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(w){return w.destroy()}),this.coreComponents.length=0},O.attachMedia=function(w){i.logger.log("attachMedia"),this._media=w,this.trigger(d.Events.MEDIA_ATTACHING,{media:w})},O.detachMedia=function(){i.logger.log("detachMedia"),this.trigger(d.Events.MEDIA_DETACHING,void 0),this._media=null},O.loadSource=function(w){this.stopLoad();var S=this.media,D=this.url,R=this.url=b.buildAbsoluteURL(self.location.href,w,{alwaysNormalize:!0});i.logger.log("loadSource:"+R),S&&D&&D!==R&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(S)),this.trigger(d.Events.MANIFEST_LOADING,{url:w})},O.startLoad=function(w){w===void 0&&(w=-1),i.logger.log("startLoad("+w+")"),this.networkControllers.forEach(function(S){S.startLoad(w)})},O.stopLoad=function(){i.logger.log("stopLoad"),this.networkControllers.forEach(function(w){w.stopLoad()})},O.swapAudioCodec=function(){i.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},O.recoverMediaError=function(){i.logger.log("recoverMediaError");var w=this._media;this.detachMedia(),w&&this.attachMedia(w)},O.removeLevel=function(w,S){S===void 0&&(S=0),this.levelController.removeLevel(w,S)},u(x,[{key:"levels",get:function(){var w=this.levelController.levels;return w||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(w){i.logger.log("set currentLevel:"+w),this.loadLevel=w,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(w){i.logger.log("set nextLevel:"+w),this.levelController.manualLevel=w,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(w){i.logger.log("set loadLevel:"+w),this.levelController.manualLevel=w}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(w){this.levelController.nextLoadLevel=w}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(w){i.logger.log("set firstLevel:"+w),this.levelController.firstLevel=w}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(w){i.logger.log("set startLevel:"+w),w!==-1&&(w=Math.max(w,this.minAutoLevel)),this.levelController.startLevel=w}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(w){var S=!!w;S!==this.config.capLevelToPlayerSize&&(S?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=S)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(w){this._autoLevelCapping!==w&&(i.logger.log("set autoLevelCapping:"+w),this._autoLevelCapping=w)}},{key:"bandwidthEstimate",get:function(){var w=this.abrController.bwEstimator;return w?w.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var w=this.levels,S=this.config.minAutoBitrate;if(!w)return 0;for(var D=w.length,R=0;R<D;R++)if(w[R].maxBitrate>S)return R;return 0}},{key:"maxAutoLevel",get:function(){var w=this.levels,S=this.autoLevelCapping,D;return S===-1&&w&&w.length?D=w.length-1:D=S,D}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(w){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,w)}},{key:"audioTracks",get:function(){var w=this.audioTrackController;return w?w.audioTracks:[]}},{key:"audioTrack",get:function(){var w=this.audioTrackController;return w?w.audioTrack:-1},set:function(w){var S=this.audioTrackController;S&&(S.audioTrack=w)}},{key:"subtitleTracks",get:function(){var w=this.subtitleTrackController;return w?w.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var w=this.subtitleTrackController;return w?w.subtitleTrack:-1},set:function(w){var S=this.subtitleTrackController;S&&(S.subtitleTrack=w)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var w=this.subtitleTrackController;return w?w.subtitleDisplay:!1},set:function(w){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=w)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(w){this.config.lowLatencyMode=w}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return d.Events}},{key:"ErrorTypes",get:function(){return f.ErrorTypes}},{key:"ErrorDetails",get:function(){return f.ErrorDetails}},{key:"DefaultConfig",get:function(){return x.defaultConfig?x.defaultConfig:t.hlsDefaultConfig},set:function(w){x.defaultConfig=w}}]),x}();E.defaultConfig=void 0},"./src/is-supported.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"isSupported",function(){return s}),T.d(v,"changeTypeSupported",function(){return _});var b=T("./src/utils/mediasource-helper.ts");function g(){return self.SourceBuffer||self.WebKitSourceBuffer}function s(){var p=Object(b.getMediaSource)();if(!p)return!1;var e=g(),a=p&&typeof p.isTypeSupported=="function"&&p.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!a&&!!n}function _(){var p,e=g();return typeof(e==null||((p=e.prototype)===null||p===void 0)?void 0:p.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return i}),T.d(v,"LoadError",function(){return o});var b=T("./src/polyfills/number.ts"),g=T("./src/errors.ts");function s(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,n(c,d)}function _(c){var d=typeof Map=="function"?new Map:void 0;return _=function(h){if(h===null||!a(h))return h;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(h))return d.get(h);d.set(h,u)}function u(){return p(h,arguments,l(this).constructor)}return u.prototype=Object.create(h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),n(u,h)},_(c)}function p(c,d,f){return e()?p=Reflect.construct:p=function(u,E,x){var O=[null];O.push.apply(O,E);var C=Function.bind.apply(u,O),w=new C;return x&&n(w,x.prototype),w},p.apply(null,arguments)}function e(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}function a(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function n(c,d){return n=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},n(c,d)}function l(c){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(c)}var r=Math.pow(2,17),i=function(){function c(f){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=f}var d=c.prototype;return d.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},d.abort=function(){this.loader&&this.loader.abort()},d.load=function(h,u){var E=this,x=h.url;if(!x)return Promise.reject(new o({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,networkDetails:null},"Fragment does not have a "+(x?"part list":"url")));this.abort();var O=this.config,C=O.fLoader,w=O.loader;return new Promise(function(S,D){E.loader&&E.loader.destroy();var R=E.loader=h.loader=C?new C(O):new w(O),P=t(h),N={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:r};h.stats=R.stats,R.load(P,N,{onSuccess:function(z,X,k,F){E.resetLoader(h,R),S({frag:h,part:null,payload:z.data,networkDetails:F})},onError:function(z,X,k){E.resetLoader(h,R),D(new o({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,response:z,networkDetails:k}))},onAbort:function(z,X,k){E.resetLoader(h,R),D(new o({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,networkDetails:k}))},onTimeout:function(z,X,k){E.resetLoader(h,R),D(new o({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,networkDetails:k}))},onProgress:function(z,X,k,F){u&&u({frag:h,part:null,payload:k,networkDetails:F})}})})},d.loadPart=function(h,u,E){var x=this;this.abort();var O=this.config,C=O.fLoader,w=O.loader;return new Promise(function(S,D){x.loader&&x.loader.destroy();var R=x.loader=h.loader=C?new C(O):new w(O),P=t(h,u),N={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:r};u.stats=R.stats,R.load(P,N,{onSuccess:function(z,X,k,F){x.resetLoader(h,R),x.updateStatsFromPart(h,u);var U={frag:h,part:u,payload:z.data,networkDetails:F};E(U),S(U)},onError:function(z,X,k){x.resetLoader(h,R),D(new o({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,part:u,response:z,networkDetails:k}))},onAbort:function(z,X,k){h.stats.aborted=u.stats.aborted,x.resetLoader(h,R),D(new o({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,part:u,networkDetails:k}))},onTimeout:function(z,X,k){x.resetLoader(h,R),D(new o({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,part:u,networkDetails:k}))}})})},d.updateStatsFromPart=function(h,u){var E=h.stats,x=u.stats,O=x.total;if(E.loaded+=x.loaded,O){var C=Math.round(h.duration/u.duration),w=Math.min(Math.round(E.loaded/O),C),S=C-w,D=S*Math.round(E.loaded/w);E.total=E.loaded+D}else E.total=Math.max(E.loaded,E.total);var R=E.loading,P=x.loading;R.start?R.first+=P.first-P.start:(R.start=P.start,R.first=P.first),R.end=P.end},d.resetLoader=function(h,u){h.loader=null,this.loader===u&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),u.destroy()},c}();function t(c,d){d===void 0&&(d=null);var f=d||c,h={frag:c,part:d,responseType:"arraybuffer",url:f.url,headers:{},rangeStart:0,rangeEnd:0},u=f.byteRangeStartOffset,E=f.byteRangeEndOffset;return Object(b.isFiniteNumber)(u)&&Object(b.isFiniteNumber)(E)&&(h.rangeStart=u,h.rangeEnd=E),h}var o=function(c){s(d,c);function d(f){for(var h,u=arguments.length,E=new Array(u>1?u-1:0),x=1;x<u;x++)E[x-1]=arguments[x];return h=c.call.apply(c,[this].concat(E))||this,h.data=void 0,h.data=f,h}return d}(_(Error))},"./src/loader/fragment.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"ElementaryStreamTypes",function(){return i}),T.d(v,"BaseSegment",function(){return t}),T.d(v,"Fragment",function(){return o}),T.d(v,"Part",function(){return c});var b=T("./src/polyfills/number.ts"),g=T("./node_modules/url-toolkit/src/url-toolkit.js"),s=T.n(g),_=T("./src/utils/logger.ts"),p=T("./src/loader/level-key.ts"),e=T("./src/loader/load-stats.ts");function a(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,n(d,f)}function n(d,f){return n=Object.setPrototypeOf||function(u,E){return u.__proto__=E,u},n(d,f)}function l(d,f){for(var h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}function r(d,f,h){return f&&l(d.prototype,f),h&&l(d,h),d}var i;(function(d){d.AUDIO="audio",d.VIDEO="video",d.AUDIOVIDEO="audiovideo"})(i||(i={}));var t=function(){function d(h){var u;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(u={},u[i.AUDIO]=null,u[i.VIDEO]=null,u[i.AUDIOVIDEO]=null,u),this.baseurl=h}var f=d.prototype;return f.setByteRange=function(u,E){var x=u.split("@",2),O=[];x.length===1?O[0]=E?E.byteRangeEndOffset:0:O[0]=parseInt(x[1]),O[1]=parseInt(x[0])+O[0],this._byteRange=O},r(d,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(g.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(u){this._url=u}}]),d}(),o=function(d){a(f,d);function f(u,E){var x;return x=d.call(this,E)||this,x._decryptdata=null,x.rawProgramDateTime=null,x.programDateTime=null,x.tagList=[],x.duration=0,x.sn=0,x.levelkey=void 0,x.type=void 0,x.loader=null,x.level=-1,x.cc=0,x.startPTS=void 0,x.endPTS=void 0,x.appendedPTS=void 0,x.startDTS=void 0,x.endDTS=void 0,x.start=0,x.deltaPTS=void 0,x.maxStartPTS=void 0,x.minEndPTS=void 0,x.stats=new e.LoadStats,x.urlId=0,x.data=void 0,x.bitrateTest=!1,x.title=null,x.initSegment=null,x.type=u,x}var h=f.prototype;return h.createInitializationVector=function(E){for(var x=new Uint8Array(16),O=12;O<16;O++)x[O]=E>>8*(15-O)&255;return x},h.setDecryptDataFromLevelKey=function(E,x){var O=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(O=p.LevelKey.fromURI(E.uri),O.method=E.method,O.iv=this.createInitializationVector(x),O.keyFormat="identity"),O},h.setElementaryStreamInfo=function(E,x,O,C,w,S){S===void 0&&(S=!1);var D=this.elementaryStreams,R=D[E];if(!R){D[E]={startPTS:x,endPTS:O,startDTS:C,endDTS:w,partial:S};return}R.startPTS=Math.min(R.startPTS,x),R.endPTS=Math.max(R.endPTS,O),R.startDTS=Math.min(R.startDTS,C),R.endDTS=Math.max(R.endDTS,w)},h.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[i.AUDIO]=null,E[i.VIDEO]=null,E[i.AUDIOVIDEO]=null},r(f,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&_.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(b.isFiniteNumber)(this.programDateTime))return null;var E=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),f}(t),c=function(d){a(f,d);function f(h,u,E,x,O){var C;C=d.call(this,E)||this,C.fragOffset=0,C.duration=0,C.gap=!1,C.independent=!1,C.relurl=void 0,C.fragment=void 0,C.index=void 0,C.stats=new e.LoadStats,C.duration=h.decimalFloatingPoint("DURATION"),C.gap=h.bool("GAP"),C.independent=h.bool("INDEPENDENT"),C.relurl=h.enumeratedString("URI"),C.fragment=u,C.index=x;var w=h.enumeratedString("BYTERANGE");return w&&C.setByteRange(w,O),O&&(C.fragOffset=O.fragOffset+O.duration),C}return r(f,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var u=this.elementaryStreams;return!!(u.audio||u.video||u.audiovideo)}}]),f}(t)},"./src/loader/key-loader.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return _});var b=T("./src/events.ts"),g=T("./src/errors.ts"),s=T("./src/utils/logger.ts"),_=function(){function p(a){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=a,this._registerListeners()}var e=p.prototype;return e._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var l=this.loaders[n];l&&l.destroy()}this.loaders={}},e.onKeyLoading=function(n,l){var r=l.frag,i=r.type,t=this.loaders[i];if(!r.decryptdata){s.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var o=r.decryptdata.uri;if(o!==this.decrypturl||this.decryptkey===null){var c=this.hls.config;if(t&&(s.logger.warn("abort previous key loader for type:"+i),t.abort()),!o){s.logger.warn("key uri is falsy");return}var d=c.loader,f=r.loader=this.loaders[i]=new d(c);this.decrypturl=o,this.decryptkey=null;var h={url:o,frag:r,responseType:"arraybuffer"},u={timeout:c.fragLoadingTimeOut,maxRetry:0,retryDelay:c.fragLoadingRetryDelay,maxRetryDelay:c.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};f.load(h,u,E)}else this.decryptkey&&(r.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:r}))},e.loadsuccess=function(n,l,r){var i=r.frag;if(!i.decryptdata){s.logger.error("after key load, decryptdata unset");return}this.decryptkey=i.decryptdata.key=new Uint8Array(n.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:i})},e.loaderror=function(n,l){var r=l.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:n})},e.loadtimeout=function(n,l){var r=l.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},p}()},"./src/loader/level-details.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"LevelDetails",function(){return p});var b=T("./src/polyfills/number.ts");function g(e,a){for(var n=0;n<a.length;n++){var l=a[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function s(e,a,n){return a&&g(e.prototype,a),n&&g(e,n),e}var _=10,p=function(){function e(n){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=n}var a=e.prototype;return a.reloaded=function(l){if(!l){this.advanced=!0,this.updated=!0;return}var r=this.lastPartSn-l.lastPartSn,i=this.lastPartIndex-l.lastPartIndex;this.updated=this.endSN!==l.endSN||!!i||!!r,this.advanced=this.endSN>l.endSN||r>0||r===0&&i>0,this.updated||this.advanced?this.misses=Math.floor(l.misses*.6):this.misses=l.misses+1,this.availabilityDelay=l.availabilityDelay},s(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(b.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||_}},{key:"drift",get:function(){var l=this.driftEndTime-this.driftStartTime;if(l>0){var r=this.driftEnd-this.driftStart;return r*1e3/l}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var l;return(l=this.fragments)!==null&&l!==void 0&&l.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"LevelKey",function(){return p});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),g=T.n(b);function s(e,a){for(var n=0;n<a.length;n++){var l=a[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function _(e,a,n){return a&&s(e.prototype,a),n&&s(e,n),e}var p=function(){e.fromURL=function(n,l){return new e(n,l)},e.fromURI=function(n){return new e(n)};function e(a,n){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,n?this._uri=Object(b.buildAbsoluteURL)(a,n,{alwaysNormalize:!0}):this._uri=a}return _(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"LoadStats",function(){return b});var b=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return f});var b=T("./src/polyfills/number.ts"),g=T("./node_modules/url-toolkit/src/url-toolkit.js"),s=T.n(g),_=T("./src/loader/fragment.ts"),p=T("./src/loader/level-details.ts"),e=T("./src/loader/level-key.ts"),a=T("./src/utils/attr-list.ts"),n=T("./src/utils/logger.ts"),l=T("./src/utils/codecs.ts"),r=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,i=/#EXT-X-MEDIA:(.*)/g,t=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),o=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),c=/\.(mp4|m4s|m4v|m4a)$/i;function d(O){var C,w;return c.test((C=(w=g.parseURL(O))===null||w===void 0?void 0:w.path)!=null?C:"")}var f=function(){function O(){}return O.findGroup=function(w,S){for(var D=0;D<w.length;D++){var R=w[D];if(R.id===S)return R}},O.convertAVC1ToAVCOTI=function(w){var S=w.split(".");if(S.length>2){var D=S.shift()+".";return D+=parseInt(S.shift()).toString(16),D+=("000"+parseInt(S.shift()).toString(16)).substr(-4),D}return w},O.resolve=function(w,S){return g.buildAbsoluteURL(S,w,{alwaysNormalize:!0})},O.parseMasterPlaylist=function(w,S){var D=[],R={},P=!1;r.lastIndex=0;for(var N;(N=r.exec(w))!=null;)if(N[1]){var M=new a.AttrList(N[1]),z={attrs:M,bitrate:M.decimalInteger("AVERAGE-BANDWIDTH")||M.decimalInteger("BANDWIDTH"),name:M.NAME,url:O.resolve(N[2],S)},X=M.decimalResolution("RESOLUTION");X&&(z.width=X.width,z.height=X.height),h((M.CODECS||"").split(/[ ,]+/).filter(function(F){return F}),z),z.videoCodec&&z.videoCodec.indexOf("avc1")!==-1&&(z.videoCodec=O.convertAVC1ToAVCOTI(z.videoCodec)),D.push(z)}else if(N[3]){var k=new a.AttrList(N[3]);k["DATA-ID"]&&(P=!0,R[k["DATA-ID"]]=k)}return{levels:D,sessionData:P?R:null}},O.parseMasterPlaylistMedia=function(w,S,D,R){R===void 0&&(R=[]);var P,N=[],M=0;for(i.lastIndex=0;(P=i.exec(w))!==null;){var z=new a.AttrList(P[1]);if(z.TYPE===D){var X={attrs:z,bitrate:0,id:M++,groupId:z["GROUP-ID"],instreamId:z["INSTREAM-ID"],name:z.NAME||z.LANGUAGE||"",type:D,default:z.bool("DEFAULT"),autoselect:z.bool("AUTOSELECT"),forced:z.bool("FORCED"),lang:z.LANGUAGE,url:z.URI?O.resolve(z.URI,S):""};if(R.length){var k=O.findGroup(R,X.groupId)||R[0];u(X,k,"audioCodec"),u(X,k,"textCodec")}N.push(X)}}return N},O.parseLevelPlaylist=function(w,S,D,R,P){var N=new p.LevelDetails(S),M=N.fragments,z=null,X=0,k=0,F=0,U=0,L=null,B=new _.Fragment(R,S),Z,re,me,Ee=-1,De=!1;for(t.lastIndex=0,N.m3u8=w;(Z=t.exec(w))!==null;){De&&(De=!1,B=new _.Fragment(R,S),B.start=F,B.sn=X,B.cc=U,B.level=D,z&&(B.initSegment=z,B.rawProgramDateTime=z.rawProgramDateTime));var te=Z[1];if(te){B.duration=parseFloat(te);var Ce=(" "+Z[2]).slice(1);B.title=Ce||null,B.tagList.push(Ce?["INF",te,Ce]:["INF",te])}else if(Z[3])Object(b.isFiniteNumber)(B.duration)&&(B.start=F,me&&(B.levelkey=me),B.sn=X,B.level=D,B.cc=U,B.urlId=P,M.push(B),B.relurl=(" "+Z[3]).slice(1),x(B,L),L=B,F+=B.duration,X++,k=0,De=!0);else if(Z[4]){var we=(" "+Z[4]).slice(1);L?B.setByteRange(we,L):B.setByteRange(we)}else if(Z[5])B.rawProgramDateTime=(" "+Z[5]).slice(1),B.tagList.push(["PROGRAM-DATE-TIME",B.rawProgramDateTime]),Ee===-1&&(Ee=M.length);else{if(Z=Z[0].match(o),!Z){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(re=1;re<Z.length&&!(typeof Z[re]!="undefined");re++);var ce=(" "+Z[re]).slice(1),le=(" "+Z[re+1]).slice(1),oe=Z[re+2]?(" "+Z[re+2]).slice(1):"";switch(ce){case"PLAYLIST-TYPE":N.type=le.toUpperCase();break;case"MEDIA-SEQUENCE":X=N.startSN=parseInt(le);break;case"SKIP":{var xe=new a.AttrList(le),q=xe.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(q)){N.skippedSegments=q;for(var se=q;se--;)M.unshift(null);X+=q}var Ne=xe.enumeratedString("RECENTLY-REMOVED-DATERANGES");Ne&&(N.recentlyRemovedDateranges=Ne.split(" "));break}case"TARGETDURATION":N.targetduration=parseFloat(le);break;case"VERSION":N.version=parseInt(le);break;case"EXTM3U":break;case"ENDLIST":N.live=!1;break;case"#":(le||oe)&&B.tagList.push(oe?[le,oe]:[le]);break;case"DIS":U++;case"GAP":B.tagList.push([ce]);break;case"BITRATE":B.tagList.push([ce,le]);break;case"DISCONTINUITY-SEQ":U=parseInt(le);break;case"KEY":{var de,$=new a.AttrList(le),Q=$.enumeratedString("METHOD"),Y=$.URI,ue=$.hexadecimalInteger("IV"),ae=$.enumeratedString("KEYFORMATVERSIONS"),be=$.enumeratedString("KEYID"),Ie=(de=$.enumeratedString("KEYFORMAT"))!=null?de:"identity",pe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(pe.indexOf(Ie)>-1){n.logger.warn("Keyformat "+Ie+" is not supported from the manifest");continue}else if(Ie!=="identity")continue;Q&&(me=e.LevelKey.fromURL(S,Y),Y&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(me.method=Q,me.keyFormat=Ie,be&&(me.keyID=be),ae&&(me.keyFormatVersions=ae),me.iv=ue));break}case"START":{var Le=new a.AttrList(le),ve=Le.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(ve)&&(N.startTimeOffset=ve);break}case"MAP":{var Xe=new a.AttrList(le);B.relurl=Xe.URI,Xe.BYTERANGE&&B.setByteRange(Xe.BYTERANGE),B.level=D,B.sn="initSegment",me&&(B.levelkey=me),B.initSegment=null,z=B,De=!0;break}case"SERVER-CONTROL":{var $e=new a.AttrList(le);N.canBlockReload=$e.bool("CAN-BLOCK-RELOAD"),N.canSkipUntil=$e.optionalFloat("CAN-SKIP-UNTIL",0),N.canSkipDateRanges=N.canSkipUntil>0&&$e.bool("CAN-SKIP-DATERANGES"),N.partHoldBack=$e.optionalFloat("PART-HOLD-BACK",0),N.holdBack=$e.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ge=new a.AttrList(le);N.partTarget=Ge.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Me=N.partList;Me||(Me=N.partList=[]);var gt=k>0?Me[Me.length-1]:void 0,Te=k++,Ye=new _.Part(new a.AttrList(le),B,S,Te,gt);Me.push(Ye),B.duration+=Ye.duration;break}case"PRELOAD-HINT":{var Ze=new a.AttrList(le);N.preloadHint=Ze;break}case"RENDITION-REPORT":{var Ve=new a.AttrList(le);N.renditionReports=N.renditionReports||[],N.renditionReports.push(Ve);break}default:n.logger.warn("line parsed but not handled: "+Z);break}}}L&&!L.relurl?(M.pop(),F-=L.duration,N.partList&&(N.fragmentHint=L)):N.partList&&(x(B,L),B.cc=U,N.fragmentHint=B);var Fe=M.length,Be=M[0],_e=M[Fe-1];if(F+=N.skippedSegments*N.targetduration,F>0&&Fe&&_e){N.averagetargetduration=F/Fe;var Ae=_e.sn;N.endSN=Ae!=="initSegment"?Ae:0,Be&&(N.startCC=Be.cc,Be.initSegment||N.fragments.every(function(fe){return fe.relurl&&d(fe.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),B=new _.Fragment(R,S),B.relurl=_e.relurl,B.level=D,B.sn="initSegment",Be.initSegment=B,N.needSidxRanges=!0))}else N.endSN=0,N.startCC=0;return N.fragmentHint&&(F+=N.fragmentHint.duration),N.totalduration=F,N.endCC=U,Ee>0&&E(M,Ee),N},O}();function h(O,C){["video","audio","text"].forEach(function(w){var S=O.filter(function(R){return Object(l.isCodecType)(R,w)});if(S.length){var D=S.filter(function(R){return R.lastIndexOf("avc1",0)===0||R.lastIndexOf("mp4a",0)===0});C[w+"Codec"]=D.length>0?D[0]:S[0],O=O.filter(function(R){return S.indexOf(R)===-1})}}),C.unknownCodecs=O}function u(O,C,w){var S=C[w];S&&(O[w]=S)}function E(O,C){for(var w=O[C],S=C;S--;){var D=O[S];if(!D)return;D.programDateTime=w.programDateTime-D.duration*1e3,w=D}}function x(O,C){O.rawProgramDateTime?O.programDateTime=Date.parse(O.rawProgramDateTime):C!=null&&C.programDateTime&&(O.programDateTime=C.endProgramDateTime),Object(b.isFiniteNumber)(O.programDateTime)||(O.programDateTime=null,O.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/polyfills/number.ts"),g=T("./src/events.ts"),s=T("./src/errors.ts"),_=T("./src/utils/logger.ts"),p=T("./src/utils/mp4-tools.ts"),e=T("./src/loader/m3u8-parser.ts"),a=T("./src/types/loader.ts"),n=T("./src/utils/attr-list.ts");function l(t){var o=t.type;switch(o){case a.PlaylistContextType.AUDIO_TRACK:return a.PlaylistLevelType.AUDIO;case a.PlaylistContextType.SUBTITLE_TRACK:return a.PlaylistLevelType.SUBTITLE;default:return a.PlaylistLevelType.MAIN}}function r(t,o){var c=t.url;return(c===void 0||c.indexOf("data:")===0)&&(c=o.url),c}var i=function(){function t(c){this.hls=void 0,this.loaders=Object.create(null),this.hls=c,this.registerListeners()}var o=t.prototype;return o.registerListeners=function(){var d=this.hls;d.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(g.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(g.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.on(g.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},o.unregisterListeners=function(){var d=this.hls;d.off(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(g.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(g.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.off(g.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},o.createInternalLoader=function(d){var f=this.hls.config,h=f.pLoader,u=f.loader,E=h||u,x=new E(f);return d.loader=x,this.loaders[d.type]=x,x},o.getInternalLoader=function(d){return this.loaders[d.type]},o.resetInternalLoader=function(d){this.loaders[d]&&delete this.loaders[d]},o.destroyInternalLoaders=function(){for(var d in this.loaders){var f=this.loaders[d];f&&f.destroy(),this.resetInternalLoader(d)}},o.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},o.onManifestLoading=function(d,f){var h=f.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:a.PlaylistContextType.MANIFEST,url:h,deliveryDirectives:null})},o.onLevelLoading=function(d,f){var h=f.id,u=f.level,E=f.url,x=f.deliveryDirectives;this.load({id:h,groupId:null,level:u,responseType:"text",type:a.PlaylistContextType.LEVEL,url:E,deliveryDirectives:x})},o.onAudioTrackLoading=function(d,f){var h=f.id,u=f.groupId,E=f.url,x=f.deliveryDirectives;this.load({id:h,groupId:u,level:null,responseType:"text",type:a.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:x})},o.onSubtitleTrackLoading=function(d,f){var h=f.id,u=f.groupId,E=f.url,x=f.deliveryDirectives;this.load({id:h,groupId:u,level:null,responseType:"text",type:a.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:x})},o.load=function(d){var f,h=this.hls.config,u=this.getInternalLoader(d);if(u){var E=u.context;if(E&&E.url===d.url){_.logger.trace("[playlist-loader]: playlist request ongoing");return}_.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),u.abort()}var x,O,C,w;switch(d.type){case a.PlaylistContextType.MANIFEST:x=h.manifestLoadingMaxRetry,O=h.manifestLoadingTimeOut,C=h.manifestLoadingRetryDelay,w=h.manifestLoadingMaxRetryTimeout;break;case a.PlaylistContextType.LEVEL:case a.PlaylistContextType.AUDIO_TRACK:case a.PlaylistContextType.SUBTITLE_TRACK:x=0,O=h.levelLoadingTimeOut;break;default:x=h.levelLoadingMaxRetry,O=h.levelLoadingTimeOut,C=h.levelLoadingRetryDelay,w=h.levelLoadingMaxRetryTimeout;break}if(u=this.createInternalLoader(d),(f=d.deliveryDirectives)!==null&&f!==void 0&&f.part){var S;if(d.type===a.PlaylistContextType.LEVEL&&d.level!==null?S=this.hls.levels[d.level].details:d.type===a.PlaylistContextType.AUDIO_TRACK&&d.id!==null?S=this.hls.audioTracks[d.id].details:d.type===a.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(S=this.hls.subtitleTracks[d.id].details),S){var D=S.partTarget,R=S.targetduration;D&&R&&(O=Math.min(Math.max(D*3,R*.8)*1e3,O))}}var P={timeout:O,maxRetry:x,retryDelay:C,maxRetryDelay:w,highWaterMark:0},N={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};u.load(d,P,N)},o.loadsuccess=function(d,f,h,u){if(u===void 0&&(u=null),h.isSidxRequest){this.handleSidxRequest(d,h),this.handlePlaylistLoaded(d,f,h,u);return}this.resetInternalLoader(h.type);var E=d.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,h,"no EXTM3U delimiter",u);return}f.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,f,h,u):this.handleMasterPlaylist(d,f,h,u)},o.loaderror=function(d,f,h){h===void 0&&(h=null),this.handleNetworkError(f,h,!1,d)},o.loadtimeout=function(d,f,h){h===void 0&&(h=null),this.handleNetworkError(f,h,!0)},o.handleMasterPlaylist=function(d,f,h,u){var E=this.hls,x=d.data,O=r(d,h),C=e.default.parseMasterPlaylist(x,O),w=C.levels,S=C.sessionData;if(!w.length){this.handleManifestParsingError(d,h,"no level found in manifest",u);return}var D=w.map(function(X){return{id:X.attrs.AUDIO,audioCodec:X.audioCodec}}),R=w.map(function(X){return{id:X.attrs.SUBTITLES,textCodec:X.textCodec}}),P=e.default.parseMasterPlaylistMedia(x,O,"AUDIO",D),N=e.default.parseMasterPlaylistMedia(x,O,"SUBTITLES",R),M=e.default.parseMasterPlaylistMedia(x,O,"CLOSED-CAPTIONS");if(P.length){var z=P.some(function(X){return!X.url});!z&&w[0].audioCodec&&!w[0].attrs.AUDIO&&(_.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),P.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}E.trigger(g.Events.MANIFEST_LOADED,{levels:w,audioTracks:P,subtitles:N,captions:M,url:O,stats:f,networkDetails:u,sessionData:S})},o.handleTrackOrLevelPlaylist=function(d,f,h,u){var E=this.hls,x=h.id,O=h.level,C=h.type,w=r(d,h),S=Object(b.isFiniteNumber)(x)?x:0,D=Object(b.isFiniteNumber)(O)?O:S,R=l(h),P=e.default.parseLevelPlaylist(d.data,w,D,R,S);if(!P.fragments.length){E.trigger(g.Events.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:w,reason:"no fragments found in level",level:typeof h.level=="number"?h.level:void 0});return}if(C===a.PlaylistContextType.MANIFEST){var N={attrs:new n.AttrList({}),bitrate:0,details:P,name:"",url:w};E.trigger(g.Events.MANIFEST_LOADED,{levels:[N],audioTracks:[],url:w,stats:f,networkDetails:u,sessionData:null})}if(f.parsing.end=performance.now(),P.needSidxRanges){var M,z=(M=P.fragments[0].initSegment)===null||M===void 0?void 0:M.url;this.load({url:z,isSidxRequest:!0,type:C,level:O,levelDetails:P,id:x,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}h.levelDetails=P,this.handlePlaylistLoaded(d,f,h,u)},o.handleSidxRequest=function(d,f){var h=Object(p.parseSegmentIndex)(new Uint8Array(d.data));if(!h)return;var u=h.references,E=f.levelDetails;u.forEach(function(x,O){var C=x.info,w=E.fragments[O];w.byteRange.length===0&&w.setByteRange(String(1+C.end-C.start)+"@"+String(C.start)),w.initSegment&&w.initSegment.setByteRange(String(h.moovEndOffset)+"@0")})},o.handleManifestParsingError=function(d,f,h,u){this.hls.trigger(g.Events.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:f.type===a.PlaylistContextType.MANIFEST,url:d.url,reason:h,response:d,context:f,networkDetails:u})},o.handleNetworkError=function(d,f,h,u){h===void 0&&(h=!1),_.logger.warn("[playlist-loader]: A network "+(h?"timeout":"error")+" occurred while loading "+d.type+" level: "+d.level+" id: "+d.id+' group-id: "'+d.groupId+'"');var E=s.ErrorDetails.UNKNOWN,x=!1,O=this.getInternalLoader(d);switch(d.type){case a.PlaylistContextType.MANIFEST:E=h?s.ErrorDetails.MANIFEST_LOAD_TIMEOUT:s.ErrorDetails.MANIFEST_LOAD_ERROR,x=!0;break;case a.PlaylistContextType.LEVEL:E=h?s.ErrorDetails.LEVEL_LOAD_TIMEOUT:s.ErrorDetails.LEVEL_LOAD_ERROR,x=!1;break;case a.PlaylistContextType.AUDIO_TRACK:E=h?s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,x=!1;break;case a.PlaylistContextType.SUBTITLE_TRACK:E=h?s.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:s.ErrorDetails.SUBTITLE_LOAD_ERROR,x=!1;break}O&&this.resetInternalLoader(d.type);var C={type:s.ErrorTypes.NETWORK_ERROR,details:E,fatal:x,url:d.url,loader:O,context:d,networkDetails:f};u&&(C.response=u),this.hls.trigger(g.Events.ERROR,C)},o.handlePlaylistLoaded=function(d,f,h,u){var E=h.type,x=h.level,O=h.id,C=h.groupId,w=h.loader,S=h.levelDetails,D=h.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(d,h,"invalid target duration",u);return}if(!w)return;S.live&&(w.getCacheAge&&(S.ageHeader=w.getCacheAge()||0),(!w.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(E){case a.PlaylistContextType.MANIFEST:case a.PlaylistContextType.LEVEL:this.hls.trigger(g.Events.LEVEL_LOADED,{details:S,level:x||0,id:O||0,stats:f,networkDetails:u,deliveryDirectives:D});break;case a.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(g.Events.AUDIO_TRACK_LOADED,{details:S,id:O||0,groupId:C||"",stats:f,networkDetails:u,deliveryDirectives:D});break;case a.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(g.Events.SUBTITLE_TRACK_LOADED,{details:S,id:O||0,groupId:C||"",stats:f,networkDetails:u,deliveryDirectives:D});break}},t}();v.default=i},"./src/polyfills/number.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"isFiniteNumber",function(){return b}),T.d(v,"MAX_SAFE_INTEGER",function(){return g});var b=Number.isFinite||function(s){return typeof s=="number"&&isFinite(s)},g=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(I,v,T){"use strict";T.r(v);var b=function(){function g(){}return g.getSilentFrame=function(_,p){switch(_){case"mp4a.40.2":if(p===1)return new Uint8Array([0,200,0,128,35,128]);if(p===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(p===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(p===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(p===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(p===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(p===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(p===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(p===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},g}();v.default=b},"./src/remux/mp4-generator.ts":function(I,v,T){"use strict";T.r(v);var b=Math.pow(2,32)-1,g=function(){function s(){}return s.init=function(){s.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var p;for(p in s.types)s.types.hasOwnProperty(p)&&(s.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),a=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);s.HDLR_TYPES={video:e,audio:a};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),l=new Uint8Array([0,0,0,0,0,0,0,0]);s.STTS=s.STSC=s.STCO=l,s.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),s.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),s.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),s.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var r=new Uint8Array([105,115,111,109]),i=new Uint8Array([97,118,99,49]),t=new Uint8Array([0,0,0,1]);s.FTYP=s.box(s.types.ftyp,r,t,r,i),s.DINF=s.box(s.types.dinf,s.box(s.types.dref,n))},s.box=function(p){for(var e=8,a=arguments.length,n=new Array(a>1?a-1:0),l=1;l<a;l++)n[l-1]=arguments[l];for(var r=n.length,i=r;r--;)e+=n[r].byteLength;var t=new Uint8Array(e);for(t[0]=e>>24&255,t[1]=e>>16&255,t[2]=e>>8&255,t[3]=e&255,t.set(p,4),r=0,e=8;r<i;r++)t.set(n[r],e),e+=n[r].byteLength;return t},s.hdlr=function(p){return s.box(s.types.hdlr,s.HDLR_TYPES[p])},s.mdat=function(p){return s.box(s.types.mdat,p)},s.mdhd=function(p,e){e*=p;var a=Math.floor(e/(b+1)),n=Math.floor(e%(b+1));return s.box(s.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,p>>24&255,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},s.mdia=function(p){return s.box(s.types.mdia,s.mdhd(p.timescale,p.duration),s.hdlr(p.type),s.minf(p))},s.mfhd=function(p){return s.box(s.types.mfhd,new Uint8Array([0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255]))},s.minf=function(p){return p.type==="audio"?s.box(s.types.minf,s.box(s.types.smhd,s.SMHD),s.DINF,s.stbl(p)):s.box(s.types.minf,s.box(s.types.vmhd,s.VMHD),s.DINF,s.stbl(p))},s.moof=function(p,e,a){return s.box(s.types.moof,s.mfhd(p),s.traf(a,e))},s.moov=function(p){for(var e=p.length,a=[];e--;)a[e]=s.trak(p[e]);return s.box.apply(null,[s.types.moov,s.mvhd(p[0].timescale,p[0].duration)].concat(a).concat(s.mvex(p)))},s.mvex=function(p){for(var e=p.length,a=[];e--;)a[e]=s.trex(p[e]);return s.box.apply(null,[s.types.mvex].concat(a))},s.mvhd=function(p,e){e*=p;var a=Math.floor(e/(b+1)),n=Math.floor(e%(b+1)),l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,p>>24&255,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return s.box(s.types.mvhd,l)},s.sdtp=function(p){var e=p.samples||[],a=new Uint8Array(4+e.length),n,l;for(n=0;n<e.length;n++)l=e[n].flags,a[n+4]=l.dependsOn<<4|l.isDependedOn<<2|l.hasRedundancy;return s.box(s.types.sdtp,a)},s.stbl=function(p){return s.box(s.types.stbl,s.stsd(p),s.box(s.types.stts,s.STTS),s.box(s.types.stsc,s.STSC),s.box(s.types.stsz,s.STSZ),s.box(s.types.stco,s.STCO))},s.avc1=function(p){var e=[],a=[],n,l,r;for(n=0;n<p.sps.length;n++)l=p.sps[n],r=l.byteLength,e.push(r>>>8&255),e.push(r&255),e=e.concat(Array.prototype.slice.call(l));for(n=0;n<p.pps.length;n++)l=p.pps[n],r=l.byteLength,a.push(r>>>8&255),a.push(r&255),a=a.concat(Array.prototype.slice.call(l));var i=s.box(s.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|p.sps.length].concat(e).concat([p.pps.length]).concat(a))),t=p.width,o=p.height,c=p.pixelRatio[0],d=p.pixelRatio[1];return s.box(s.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t>>8&255,t&255,o>>8&255,o&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i,s.box(s.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),s.box(s.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,c&255,d>>24,d>>16&255,d>>8&255,d&255])))},s.esds=function(p){var e=p.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(p.config).concat([6,1,2]))},s.mp4a=function(p){var e=p.samplerate;return s.box(s.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,p.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),s.box(s.types.esds,s.esds(p)))},s.mp3=function(p){var e=p.samplerate;return s.box(s.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,p.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},s.stsd=function(p){return p.type==="audio"?!p.isAAC&&p.codec==="mp3"?s.box(s.types.stsd,s.STSD,s.mp3(p)):s.box(s.types.stsd,s.STSD,s.mp4a(p)):s.box(s.types.stsd,s.STSD,s.avc1(p))},s.tkhd=function(p){var e=p.id,a=p.duration*p.timescale,n=p.width,l=p.height,r=Math.floor(a/(b+1)),i=Math.floor(a%(b+1));return s.box(s.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,n&255,0,0,l>>8&255,l&255,0,0]))},s.traf=function(p,e){var a=s.sdtp(p),n=p.id,l=Math.floor(e/(b+1)),r=Math.floor(e%(b+1));return s.box(s.types.traf,s.box(s.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),s.box(s.types.tfdt,new Uint8Array([1,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,r>>24,r>>16&255,r>>8&255,r&255])),s.trun(p,a.length+16+20+8+16+8+8),a)},s.trak=function(p){return p.duration=p.duration||4294967295,s.box(s.types.trak,s.tkhd(p),s.mdia(p))},s.trex=function(p){var e=p.id;return s.box(s.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},s.trun=function(p,e){var a=p.samples||[],n=a.length,l=12+16*n,r=new Uint8Array(l),i,t,o,c,d,f;for(e+=8+l,r.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),i=0;i<n;i++)t=a[i],o=t.duration,c=t.size,d=t.flags,f=t.cts,r.set([o>>>24&255,o>>>16&255,o>>>8&255,o&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,f>>>24&255,f>>>16&255,f>>>8&255,f&255],12+16*i);return s.box(s.types.trun,r)},s.initSegment=function(p){s.types||s.init();var e=s.moov(p),a=new Uint8Array(s.FTYP.byteLength+e.byteLength);return a.set(s.FTYP),a.set(e,s.FTYP.byteLength),a},s}();g.types=void 0,g.HDLR_TYPES=void 0,g.STTS=void 0,g.STSC=void 0,g.STCO=void 0,g.STSZ=void 0,g.VMHD=void 0,g.SMHD=void 0,g.STSD=void 0,g.FTYP=void 0,g.DINF=void 0,v.default=g},"./src/remux/mp4-remuxer.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return f}),T.d(v,"normalizePts",function(){return h});var b=T("./src/polyfills/number.ts"),g=T("./src/remux/aac-helper.ts"),s=T("./src/remux/mp4-generator.ts"),_=T("./src/events.ts"),p=T("./src/errors.ts"),e=T("./src/utils/logger.ts"),a=T("./src/types/loader.ts"),n=T("./src/utils/timescale-conversion.ts");function l(){return l=Object.assign||function(O){for(var C=1;C<arguments.length;C++){var w=arguments[C];for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(O[S]=w[S])}return O},l.apply(this,arguments)}var r=10*1e3,i=1024,t=1152,o=null,c=null,d=!1,f=function(){function O(w,S,D,R){if(R===void 0&&(R=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=w,this.config=S,this.typeSupported=D,this.ISGenerated=!1,o===null){var P=navigator.userAgent||"",N=P.match(/Chrome\/(\d+)/i);o=N?parseInt(N[1]):0}if(c===null){var M=navigator.userAgent.match(/Safari\/(\d+)/i);c=M?parseInt(M[1]):0}d=!!o&&o<75||!!c&&c<600}var C=O.prototype;return C.destroy=function(){},C.resetTimeStamp=function(S){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=S},C.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},C.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},C.getVideoStartPts=function(S){var D=!1,R=S.reduce(function(P,N){var M=N.pts-P;return M<-4294967296?(D=!0,h(P,N.pts)):M>0?P:N.pts},S[0].pts);return D&&e.logger.debug("PTS rollover detected"),R},C.remux=function(S,D,R,P,N,M,z,X){var k,F,U,L,B,Z,re=N,me=N,Ee=S.pid>-1,De=D.pid>-1,te=D.samples.length,Ce=S.samples.length>0,we=te>1,ce=(!Ee||Ce)&&(!De||we)||this.ISGenerated||z;if(ce){this.ISGenerated||(U=this.generateIS(S,D,N));var le=this.isVideoContiguous,oe=-1;if(we&&(oe=u(D.samples),!le&&this.config.forceKeyFrameOnDiscontinuity))if(Z=!0,oe>0){e.logger.warn("[mp4-remuxer]: Dropped "+oe+" out of "+te+" video samples due to a missing keyframe");var xe=this.getVideoStartPts(D.samples);D.samples=D.samples.slice(oe),D.dropped+=oe,me+=(D.samples[0].pts-xe)/(D.timescale||9e4)}else oe===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+te+" video samples"),Z=!1);if(this.ISGenerated){if(Ce&&we){var q=this.getVideoStartPts(D.samples),se=h(S.samples[0].pts,q)-q,Ne=se/D.inputTimeScale;re+=Math.max(0,Ne),me+=Math.max(0,-Ne)}if(Ce){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(S,D,N)),F=this.remuxAudio(S,re,this.isAudioContiguous,M,De||we||X===a.PlaylistLevelType.AUDIO?me:void 0),we){var de=F?F.endPTS-F.startPTS:0;D.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(S,D,N)),k=this.remuxVideo(D,me,le,de)}}else we&&(k=this.remuxVideo(D,me,le,0));k&&(k.firstKeyFrame=oe,k.independent=oe!==-1)}}return this.ISGenerated&&(R.samples.length&&(B=this.remuxID3(R,N)),P.samples.length&&(L=this.remuxText(P,N))),{audio:F,video:k,initSegment:U,independent:Z,text:L,id3:B}},C.generateIS=function(S,D,R){var P=S.samples,N=D.samples,M=this.typeSupported,z={},X=!Object(b.isFiniteNumber)(this._initPTS),k="audio/mp4",F,U,L;if(X&&(F=U=Infinity),S.config&&P.length&&(S.timescale=S.samplerate,S.isAAC||(M.mpeg?(k="audio/mpeg",S.codec=""):M.mp3&&(S.codec="mp3")),z.audio={id:"audio",container:k,codec:S.codec,initSegment:!S.isAAC&&M.mpeg?new Uint8Array(0):s.default.initSegment([S]),metadata:{channelCount:S.channelCount}},X&&(L=S.inputTimeScale,F=U=P[0].pts-Math.round(L*R))),D.sps&&D.pps&&N.length&&(D.timescale=D.inputTimeScale,z.video={id:"main",container:"video/mp4",codec:D.codec,initSegment:s.default.initSegment([D]),metadata:{width:D.width,height:D.height}},X)){L=D.inputTimeScale;var B=this.getVideoStartPts(N),Z=Math.round(L*R);U=Math.min(U,h(N[0].dts,B)-Z),F=Math.min(F,B-Z)}if(Object.keys(z).length)return this.ISGenerated=!0,X&&(this._initPTS=F,this._initDTS=U),{tracks:z,initPTS:F,timescale:L}},C.remuxVideo=function(S,D,R,P){var N=S.inputTimeScale,M=S.samples,z=[],X=M.length,k=this._initPTS,F=this.nextAvcDts,U=8,L,B,Z,re=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,Ee=0,De=!1;if(!R||F===null){var te=D*N,Ce=M[0].pts-h(M[0].dts,M[0].pts);F=te-Ce}for(var we=0;we<X;we++){var ce=M[we];if(ce.pts=h(ce.pts-k,F),ce.dts=h(ce.dts-k,F),ce.dts>ce.pts){var le=9e4*.2;Ee=Math.max(Math.min(Ee,ce.pts-ce.dts),-1*le)}ce.dts<M[we>0?we-1:we].dts&&(De=!0)}De&&M.sort(function(rt,bt){var ut=rt.dts-bt.dts,ot=rt.pts-bt.pts;return ut||ot}),B=M[0].dts,Z=M[M.length-1].dts;var oe=Math.round((Z-B)/(X-1));if(Ee<0){if(Ee<oe*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-oe,!0)+" ms");for(var xe=Ee,q=0;q<X;q++)M[q].dts=xe=Math.max(xe,M[q].pts-oe),M[q].pts=Math.max(xe,M[q].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(Ee,!0)+" ms to overcome this issue");for(var se=0;se<X;se++)M[se].dts=M[se].dts+Ee}B=M[0].dts}if(R){var Ne=B-F,de=Ne>oe,$=Ne<-1;if(de||$){de?e.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(Ne,!0)+" ms ("+Ne+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-Ne,!0)+" ms ("+Ne+"dts) overlapping between fragments detected"),B=F;var Q=M[0].pts-Ne;M[0].dts=B,M[0].pts=Q,e.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Q,!0)+"/"+Object(n.toMsFromMpegTsClock)(B,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(Ne,!0)+" ms")}}d&&(B=Math.max(0,B));for(var Y=0,ue=0,ae=0;ae<X;ae++){for(var be=M[ae],Ie=be.units,pe=Ie.length,Le=0,ve=0;ve<pe;ve++)Le+=Ie[ve].data.length;ue+=Le,Y+=pe,be.length=Le,be.dts=Math.max(be.dts,B),be.pts=Math.max(be.pts,be.dts,0),re=Math.min(be.pts,re),me=Math.max(be.pts,me)}Z=M[X-1].dts;var Xe=ue+4*Y+8,$e;try{$e=new Uint8Array(Xe)}catch(rt){this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:p.ErrorTypes.MUX_ERROR,details:p.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Xe,reason:"fail allocating video mdat "+Xe});return}var Ge=new DataView($e.buffer);Ge.setUint32(0,Xe),$e.set(s.default.types.mdat,4);for(var Me=0;Me<X;Me++){for(var gt=M[Me],Te=gt.units,Ye=0,Ze=0,Ve=Te.length;Ze<Ve;Ze++){var Fe=Te[Ze],Be=Fe.data,_e=Fe.data.byteLength;Ge.setUint32(U,_e),U+=4,$e.set(Be,U),U+=_e,Ye+=4+_e}if(Me<X-1)L=M[Me+1].dts-gt.dts;else{var Ae=this.config,fe=gt.dts-M[Me>0?Me-1:Me].dts;if(Ae.stretchShortVideoTrack&&this.nextAudioPts!==null){var ke=Math.floor(Ae.maxBufferHole*N),Je=(P?re+P*N:this.nextAudioPts)-gt.pts;Je>ke?(L=Je-fe,L<0&&(L=fe),e.logger.log("[mp4-remuxer]: It is approximately "+Je/90+" ms to the next segment; using duration "+L/90+" ms for the last video frame.")):L=fe}else L=fe}var ne=Math.round(gt.pts-gt.dts);z.push(new E(gt.key,L,Ye,ne))}if(z.length&&o&&o<70){var Qe=z[0].flags;Qe.dependsOn=2,Qe.isNonSync=0}console.assert(L!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=F=Z+L,this.isVideoContiguous=!0;var dt=s.default.moof(S.sequenceNumber++,B,l({},S,{samples:z})),Ke="video",et={data1:dt,data2:$e,startPTS:re/N,endPTS:(me+L)/N,startDTS:B/N,endDTS:F/N,type:Ke,hasAudio:!1,hasVideo:!0,nb:z.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert($e.length,"MDAT length must not be zero"),et},C.remuxAudio=function(S,D,R,P,N){var M=S.inputTimeScale,z=S.samplerate?S.samplerate:M,X=M/z,k=S.isAAC?i:t,F=k*X,U=this._initPTS,L=!S.isAAC&&this.typeSupported.mpeg,B=[],Z=S.samples,re=L?0:8,me=this.nextAudioPts||-1,Ee=D*M;if(this.isAudioContiguous=R=R||Z.length&&me>0&&(P&&Math.abs(Ee-me)<9e3||Math.abs(h(Z[0].pts-U,Ee)-me)<20*F),Z.forEach(function(Be){Be.pts=h(Be.pts-U,Ee)}),!R||me<0){if(Z=Z.filter(function(Be){return Be.pts>=0}),!Z.length)return;N===0?me=0:P?me=Math.max(0,Ee):me=Z[0].pts}if(S.isAAC)for(var De=N!==void 0,te=this.config.maxAudioFramesDrift,Ce=0,we=me;Ce<Z.length;Ce++){var ce=Z[Ce],le=ce.pts,oe=le-we,xe=Math.abs(1e3*oe/M);if(oe<=-te*F&&De)Ce===0&&(e.logger.warn("Audio frame @ "+(le/M).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*oe/M)+" ms."),this.nextAudioPts=me=we=le);else if(oe>=te*F&&xe<r&&De){var q=Math.round(oe/F);we=le-q*F,we<0&&(q--,we+=F),Ce===0&&(this.nextAudioPts=me=we),e.logger.warn("[mp4-remuxer]: Injecting "+q+" audio frame @ "+(we/M).toFixed(3)+"s due to "+Math.round(1e3*oe/M)+" ms gap.");for(var se=0;se<q;se++){var Ne=Math.max(we,0),de=g.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);de||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),de=ce.unit.subarray()),Z.splice(Ce,0,{unit:de,pts:Ne}),we+=F,Ce++}}ce.pts=we,we+=F}for(var $=null,Q=null,Y,ue=0,ae=Z.length;ae--;)ue+=Z[ae].unit.byteLength;for(var be=0,Ie=Z.length;be<Ie;be++){var pe=Z[be],Le=pe.unit,ve=pe.pts;if(Q!==null){var Xe=B[be-1];Xe.duration=Math.round((ve-Q)/X)}else if(R&&S.isAAC&&(ve=me),$=ve,ue>0){ue+=re;try{Y=new Uint8Array(ue)}catch(Be){this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:p.ErrorTypes.MUX_ERROR,details:p.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ue,reason:"fail allocating audio mdat "+ue});return}if(!L){var $e=new DataView(Y.buffer);$e.setUint32(0,ue),Y.set(s.default.types.mdat,4)}}else return;Y.set(Le,re);var Ge=Le.byteLength;re+=Ge,B.push(new E(!0,k,Ge,0)),Q=ve}var Me=B.length;if(!Me)return;var gt=B[B.length-1];this.nextAudioPts=me=Q+X*gt.duration;var Te=L?new Uint8Array(0):s.default.moof(S.sequenceNumber++,$/X,l({},S,{samples:B}));S.samples=[];var Ye=$/M,Ze=me/M,Ve="audio",Fe={data1:Te,data2:Y,startPTS:Ye,endPTS:Ze,startDTS:Ye,endDTS:Ze,type:Ve,hasAudio:!0,hasVideo:!1,nb:Me};return this.isAudioContiguous=!0,console.assert(Y.length,"MDAT length must not be zero"),Fe},C.remuxEmptyAudio=function(S,D,R,P){var N=S.inputTimeScale,M=S.samplerate?S.samplerate:N,z=N/M,X=this.nextAudioPts,k=(X!==null?X:P.startDTS*N)+this._initDTS,F=P.endDTS*N+this._initDTS,U=z*i,L=Math.ceil((F-k)/U),B=g.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!B){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Z=[],re=0;re<L;re++){var me=k+re*U;Z.push({unit:B,pts:me,dts:me})}return S.samples=Z,this.remuxAudio(S,D,R,!1)},C.remuxID3=function(S,D){var R=S.samples.length;if(!R)return;for(var P=S.inputTimeScale,N=this._initPTS,M=this._initDTS,z=0;z<R;z++){var X=S.samples[z];X.pts=h(X.pts-N,D*P)/P,X.dts=h(X.dts-M,D*P)/P}var k=S.samples;return S.samples=[],{samples:k}},C.remuxText=function(S,D){var R=S.samples.length;if(!R)return;for(var P=S.inputTimeScale,N=this._initPTS,M=0;M<R;M++){var z=S.samples[M];z.pts=h(z.pts-N,D*P)/P}S.samples.sort(function(k,F){return k.pts-F.pts});var X=S.samples;return S.samples=[],{samples:X}},O}();function h(O,C){var w;if(C===null)return O;for(C<O?w=-8589934592:w=8589934592;Math.abs(O-C)>4294967296;)O+=w;return O}function u(O){for(var C=0;C<O.length;C++)if(O[C].key)return C;return-1}var E=function(C,w,S,D){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=w,this.size=S,this.cts=D,this.flags=new x(C)},x=function(C){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=C?2:1,this.isNonSync=C?0:1}},"./src/remux/passthrough-remuxer.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/polyfills/number.ts"),g=T("./src/utils/mp4-tools.ts"),s=T("./src/loader/fragment.ts"),_=T("./src/utils/logger.ts"),p=function(){function n(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var l=n.prototype;return l.destroy=function(){},l.resetTimeStamp=function(i){this.initPTS=i,this.lastEndDTS=null},l.resetNextTimestamp=function(){this.lastEndDTS=null},l.resetInitSegment=function(i,t,o){this.audioCodec=t,this.videoCodec=o,this.generateInitSegment(i),this.emitInitSegment=!0},l.generateInitSegment=function(i){var t=this.audioCodec,o=this.videoCodec;if(!i||!i.byteLength){this.initTracks=void 0,this.initData=void 0;return}var c=this.initData=Object(g.parseInitSegment)(i);t||(t=a(c.audio,s.ElementaryStreamTypes.AUDIO)),o||(o=a(c.video,s.ElementaryStreamTypes.VIDEO));var d={};c.audio&&c.video?d.audiovideo={container:"video/mp4",codec:t+","+o,initSegment:i,id:"main"}:c.audio?d.audio={container:"audio/mp4",codec:t,initSegment:i,id:"audio"}:c.video?d.video={container:"video/mp4",codec:o,initSegment:i,id:"main"}:_.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=d},l.remux=function(i,t,o,c,d){var f=this.initPTS,h=this.lastEndDTS,u={audio:void 0,video:void 0,text:c,id3:o,initSegment:void 0};Object(b.isFiniteNumber)(h)||(h=this.lastEndDTS=d||0);var E=t.samples;if(!E||!E.length)return u;var x={initPTS:void 0,timescale:1},O=this.initData;if((!O||!O.length)&&(this.generateInitSegment(E),O=this.initData),!O||!O.length)return _.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),u;this.emitInitSegment&&(x.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(f)||(this.initPTS=x.initPTS=f=e(O,E,h));var C=Object(g.getDuration)(E,O),w=h,S=C+w;Object(g.offsetStartDTS)(O,E,f),C>0?this.lastEndDTS=S:(_.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var D=!!O.audio,R=!!O.video,P="";D&&(P+="audio"),R&&(P+="video");var N={data1:E,startPTS:w,startDTS:w,endPTS:S,endDTS:S,type:P,hasAudio:D,hasVideo:R,nb:1,dropped:0};return u.audio=N.type==="audio"?N:void 0,u.video=N.type!=="audio"?N:void 0,u.text=c,u.id3=o,u.initSegment=x,u},n}(),e=function(l,r,i){return Object(g.getStartDTS)(l,r)-i};function a(n,l){var r=n==null?void 0:n.codec;return r&&r.length>4?r:r==="hvc1"?"hvc1.1.c.L120.90":r==="av01"?"av01.0.04M.08":r==="avc1"||l===s.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}v.default=p},"./src/task-loop.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return b});var b=function(){function g(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var s=g.prototype;return s.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},s.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},s.onHandlerDestroyed=function(){},s.hasInterval=function(){return!!this._tickInterval},s.hasNextTick=function(){return!!this._tickTimer},s.setInterval=function(p){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,p),!0)},s.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},s.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},s.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},s.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},s.doTick=function(){},g}()},"./src/types/cmcd.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"CMCDVersion",function(){return b}),T.d(v,"CMCDObjectType",function(){return g}),T.d(v,"CMCDStreamingFormat",function(){return s}),T.d(v,"CMCDStreamType",function(){return _});var b=1,g;(function(p){p.MANIFEST="m",p.AUDIO="a",p.VIDEO="v",p.MUXED="av",p.INIT="i",p.CAPTION="c",p.TIMED_TEXT="tt",p.KEY="k",p.OTHER="o"})(g||(g={}));var s;(function(p){p.DASH="d",p.HLS="h",p.SMOOTH="s",p.OTHER="o"})(s||(s={}));var _;(function(p){p.VOD="v",p.LIVE="l"})(_||(_={}))},"./src/types/level.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"HlsSkip",function(){return s}),T.d(v,"getSkipValue",function(){return _}),T.d(v,"HlsUrlParameters",function(){return p}),T.d(v,"Level",function(){return e});function b(a,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(a,r.key,r)}}function g(a,n,l){return n&&b(a.prototype,n),l&&b(a,l),a}var s;(function(a){a.No="",a.Yes="YES",a.v2="v2"})(s||(s={}));function _(a,n){var l=a.canSkipUntil,r=a.canSkipDateRanges,i=a.endSN,t=n!==void 0?n-i:0;return l&&t<l?r?s.v2:s.Yes:s.No}var p=function(){function a(l,r,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=l,this.part=r,this.skip=i}var n=a.prototype;return n.addDirectives=function(r){var i=new self.URL(r);return this.msn!==void 0&&i.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&i.searchParams.set("_HLS_part",this.part.toString()),this.skip&&i.searchParams.set("_HLS_skip",this.skip),i.toString()},a}(),e=function(){function a(n){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[n.url],this.attrs=n.attrs,this.bitrate=n.bitrate,n.details&&(this.details=n.details),this.id=n.id||0,this.name=n.name,this.width=n.width||0,this.height=n.height||0,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.unknownCodecs=n.unknownCodecs,this.codecSet=[n.videoCodec,n.audioCodec].filter(function(l){return l}).join(",").replace(/\.[^.,]+/g,"")}return g(a,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(l){var r=l%this.url.length;this._urlId!==r&&(this.details=void 0,this._urlId=r)}}]),a}()},"./src/types/loader.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"PlaylistContextType",function(){return b}),T.d(v,"PlaylistLevelType",function(){return g});var b;(function(s){s.MANIFEST="manifest",s.LEVEL="level",s.AUDIO_TRACK="audioTrack",s.SUBTITLE_TRACK="subtitleTrack"})(b||(b={}));var g;(function(s){s.MAIN="main",s.AUDIO="audio",s.SUBTITLE="subtitle"})(g||(g={}))},"./src/types/transmuxer.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"ChunkMetadata",function(){return b});var b=function(_,p,e,a,n,l){a===void 0&&(a=0),n===void 0&&(n=-1),l===void 0&&(l=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=g(),this.buffering={audio:g(),video:g(),audiovideo:g()},this.level=_,this.sn=p,this.id=e,this.size=a,this.part=n,this.partial=l};function g(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"AttrList",function(){return s});var b=/^(\d+)x(\d+)$/,g=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,s=function(){function _(e){typeof e=="string"&&(e=_.parseAttrList(e));for(var a in e)e.hasOwnProperty(a)&&(this[a]=e[a])}var p=_.prototype;return p.decimalInteger=function(a){var n=parseInt(this[a],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},p.hexadecimalInteger=function(a){if(this[a]){var n=(this[a]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var l=new Uint8Array(n.length/2),r=0;r<n.length/2;r++)l[r]=parseInt(n.slice(r*2,r*2+2),16);return l}else return null},p.hexadecimalIntegerAsNumber=function(a){var n=parseInt(this[a],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},p.decimalFloatingPoint=function(a){return parseFloat(this[a])},p.optionalFloat=function(a,n){var l=this[a];return l?parseFloat(l):n},p.enumeratedString=function(a){return this[a]},p.bool=function(a){return this[a]==="YES"},p.decimalResolution=function(a){var n=b.exec(this[a]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},_.parseAttrList=function(a){var n,l={},r='"';for(g.lastIndex=0;(n=g.exec(a))!==null;){var i=n[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1)),l[n[1]]=i}return l},_}()},"./src/utils/binary-search.ts":function(I,v,T){"use strict";T.r(v);var b={search:function(s,_){for(var p=0,e=s.length-1,a=null,n=null;p<=e;){a=(p+e)/2|0,n=s[a];var l=_(n);if(l>0)p=a+1;else if(l<0)e=a-1;else return n}return null}};v.default=b},"./src/utils/buffer-helper.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"BufferHelper",function(){return s});var b=T("./src/utils/logger.ts"),g={length:0,start:function(){return 0},end:function(){return 0}},s=function(){function _(){}return _.isBuffered=function(e,a){try{if(e){for(var n=_.getBuffered(e),l=0;l<n.length;l++)if(a>=n.start(l)&&a<=n.end(l))return!0}}catch(r){}return!1},_.bufferInfo=function(e,a,n){try{if(e){var l=_.getBuffered(e),r=[],i;for(i=0;i<l.length;i++)r.push({start:l.start(i),end:l.end(i)});return this.bufferedInfo(r,a,n)}}catch(t){}return{len:0,start:a,end:a,nextStart:void 0}},_.bufferedInfo=function(e,a,n){a=Math.max(0,a),e.sort(function(x,O){var C=x.start-O.start;return C||O.end-x.end});var l=[];if(n)for(var r=0;r<e.length;r++){var i=l.length;if(i){var t=l[i-1].end;e[r].start-t<n?e[r].end>t&&(l[i-1].end=e[r].end):l.push(e[r])}else l.push(e[r])}else l=e;for(var o=0,c,d=a,f=a,h=0;h<l.length;h++){var u=l[h].start,E=l[h].end;if(a+n>=u&&a<E)d=u,f=E,o=f-a;else if(a+n<u){c=u;break}}return{len:o,start:d||0,end:f||0,nextStart:c}},_.getBuffered=function(e){try{return e.buffered}catch(a){return b.logger.log("failed to get media.buffered",a),g}},_}()},"./src/utils/cea-608-parser.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"Row",function(){return f}),T.d(v,"CaptionScreen",function(){return h});var b=T("./src/utils/logger.ts"),g={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},s=function(S){var D=S;return g.hasOwnProperty(S)&&(D=g[S]),String.fromCharCode(D)},_=15,p=100,e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},a={17:2,18:4,21:6,22:8,23:10,19:13,20:15},n={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},l={25:2,26:4,29:6,30:8,31:10,27:13,28:15},r=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],i;(function(w){w[w.ERROR=0]="ERROR",w[w.TEXT=1]="TEXT",w[w.WARNING=2]="WARNING",w[w.INFO=2]="INFO",w[w.DEBUG=3]="DEBUG",w[w.DATA=3]="DATA"})(i||(i={}));var t=function(){function w(){this.time=null,this.verboseLevel=i.ERROR}var S=w.prototype;return S.log=function(R,P){this.verboseLevel>=R&&b.logger.log(this.time+" ["+R+"] "+P)},w}(),o=function(S){for(var D=[],R=0;R<S.length;R++)D.push(S[R].toString(16));return D},c=function(){function w(D,R,P,N,M){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=D||"white",this.underline=R||!1,this.italics=P||!1,this.background=N||"black",this.flash=M||!1}var S=w.prototype;return S.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},S.setStyles=function(R){for(var P=["foreground","underline","italics","background","flash"],N=0;N<P.length;N++){var M=P[N];R.hasOwnProperty(M)&&(this[M]=R[M])}},S.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},S.equals=function(R){return this.foreground===R.foreground&&this.underline===R.underline&&this.italics===R.italics&&this.background===R.background&&this.flash===R.flash},S.copy=function(R){this.foreground=R.foreground,this.underline=R.underline,this.italics=R.italics,this.background=R.background,this.flash=R.flash},S.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},w}(),d=function(){function w(D,R,P,N,M,z){this.uchar=void 0,this.penState=void 0,this.uchar=D||" ",this.penState=new c(R,P,N,M,z)}var S=w.prototype;return S.reset=function(){this.uchar=" ",this.penState.reset()},S.setChar=function(R,P){this.uchar=R,this.penState.copy(P)},S.setPenState=function(R){this.penState.copy(R)},S.equals=function(R){return this.uchar===R.uchar&&this.penState.equals(R.penState)},S.copy=function(R){this.uchar=R.uchar,this.penState.copy(R.penState)},S.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},w}(),f=function(){function w(D){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var R=0;R<p;R++)this.chars.push(new d);this.logger=D,this.pos=0,this.currPenState=new c}var S=w.prototype;return S.equals=function(R){for(var P=!0,N=0;N<p;N++)if(!this.chars[N].equals(R.chars[N])){P=!1;break}return P},S.copy=function(R){for(var P=0;P<p;P++)this.chars[P].copy(R.chars[P])},S.isEmpty=function(){for(var R=!0,P=0;P<p;P++)if(!this.chars[P].isEmpty()){R=!1;break}return R},S.setCursor=function(R){this.pos!==R&&(this.pos=R),this.pos<0?(this.logger.log(i.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>p&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=p)},S.moveCursor=function(R){var P=this.pos+R;if(R>1)for(var N=this.pos+1;N<P+1;N++)this.chars[N].setPenState(this.currPenState);this.setCursor(P)},S.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},S.insertChar=function(R){R>=144&&this.backSpace();var P=s(R);if(this.pos>=p){this.logger.log(i.ERROR,"Cannot insert "+R.toString(16)+" ("+P+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(P,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(R){var P;for(P=R;P<p;P++)this.chars[P].reset()},S.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},S.clearToEndOfRow=function(){this.clearFromPos(this.pos)},S.getTextString=function(){for(var R=[],P=!0,N=0;N<p;N++){var M=this.chars[N].uchar;M!==" "&&(P=!1),R.push(M)}return P?"":R.join("")},S.setPenStyles=function(R){this.currPenState.setStyles(R);var P=this.chars[this.pos];P.setPenState(this.currPenState)},w}(),h=function(){function w(D){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var R=0;R<_;R++)this.rows.push(new f(D));this.logger=D,this.currRow=_-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var S=w.prototype;return S.reset=function(){for(var R=0;R<_;R++)this.rows[R].clear();this.currRow=_-1},S.equals=function(R){for(var P=!0,N=0;N<_;N++)if(!this.rows[N].equals(R.rows[N])){P=!1;break}return P},S.copy=function(R){for(var P=0;P<_;P++)this.rows[P].copy(R.rows[P])},S.isEmpty=function(){for(var R=!0,P=0;P<_;P++)if(!this.rows[P].isEmpty()){R=!1;break}return R},S.backSpace=function(){var R=this.rows[this.currRow];R.backSpace()},S.clearToEndOfRow=function(){var R=this.rows[this.currRow];R.clearToEndOfRow()},S.insertChar=function(R){var P=this.rows[this.currRow];P.insertChar(R)},S.setPen=function(R){var P=this.rows[this.currRow];P.setPenStyles(R)},S.moveCursor=function(R){var P=this.rows[this.currRow];P.moveCursor(R)},S.setCursor=function(R){this.logger.log(i.INFO,"setCursor: "+R);var P=this.rows[this.currRow];P.setCursor(R)},S.setPAC=function(R){this.logger.log(i.INFO,"pacData = "+JSON.stringify(R));var P=R.row-1;if(this.nrRollUpRows&&P<this.nrRollUpRows-1&&(P=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==P){for(var N=0;N<_;N++)this.rows[N].clear();var M=this.currRow+1-this.nrRollUpRows,z=this.lastOutputScreen;if(z){var X=z.rows[M].cueStartTime,k=this.logger.time;if(X&&k!==null&&X<k)for(var F=0;F<this.nrRollUpRows;F++)this.rows[P-this.nrRollUpRows+F+1].copy(z.rows[M+F])}}this.currRow=P;var U=this.rows[this.currRow];if(R.indent!==null){var L=R.indent,B=Math.max(L-1,0);U.setCursor(R.indent),R.color=U.chars[B].penState.foreground}var Z={foreground:R.color,underline:R.underline,italics:R.italics,background:"black",flash:!1};this.setPen(Z)},S.setBkgData=function(R){this.logger.log(i.INFO,"bkgData = "+JSON.stringify(R)),this.backSpace(),this.setPen(R),this.insertChar(32)},S.setRollUpRows=function(R){this.nrRollUpRows=R},S.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(i.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(i.TEXT,this.getDisplayText());var R=this.currRow+1-this.nrRollUpRows,P=this.rows.splice(R,1)[0];P.clear(),this.rows.splice(this.currRow,0,P),this.logger.log(i.INFO,"Rolling up")},S.getDisplayText=function(R){R=R||!1;for(var P=[],N="",M=-1,z=0;z<_;z++){var X=this.rows[z].getTextString();X&&(M=z+1,R?P.push("Row "+M+": '"+X+"'"):P.push(X.trim()))}return P.length>0&&(R?N="["+P.join(" | ")+"]":N=P.join(`
`)),N},S.getTextAndFormat=function(){return this.rows},w}(),u=function(){function w(D,R,P){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=D,this.outputFilter=R,this.mode=null,this.verbose=0,this.displayedMemory=new h(P),this.nonDisplayedMemory=new h(P),this.lastOutputScreen=new h(P),this.currRollUpRow=this.displayedMemory.rows[_-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=P}var S=w.prototype;return S.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[_-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},S.getHandler=function(){return this.outputFilter},S.setHandler=function(R){this.outputFilter=R},S.setPAC=function(R){this.writeScreen.setPAC(R)},S.setBkgData=function(R){this.writeScreen.setBkgData(R)},S.setMode=function(R){if(R===this.mode)return;this.mode=R,this.logger.log(i.INFO,"MODE="+R),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=R},S.insertChars=function(R){for(var P=0;P<R.length;P++)this.writeScreen.insertChar(R[P]);var N=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(i.INFO,N+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(i.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},S.ccRCL=function(){this.logger.log(i.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},S.ccBS=function(){if(this.logger.log(i.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},S.ccAOF=function(){},S.ccAON=function(){},S.ccDER=function(){this.logger.log(i.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},S.ccRU=function(R){this.logger.log(i.INFO,"RU("+R+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(R)},S.ccFON=function(){this.logger.log(i.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},S.ccRDC=function(){this.logger.log(i.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},S.ccTR=function(){this.logger.log(i.INFO,"TR"),this.setMode("MODE_TEXT")},S.ccRTD=function(){this.logger.log(i.INFO,"RTD"),this.setMode("MODE_TEXT")},S.ccEDM=function(){this.logger.log(i.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},S.ccCR=function(){this.logger.log(i.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},S.ccENM=function(){this.logger.log(i.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},S.ccEOC=function(){if(this.logger.log(i.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var R=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=R,this.writeScreen=this.nonDisplayedMemory,this.logger.log(i.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},S.ccTO=function(R){this.logger.log(i.INFO,"TO("+R+") - Tab Offset"),this.writeScreen.moveCursor(R)},S.ccMIDROW=function(R){var P={flash:!1};if(P.underline=R%2===1,P.italics=R>=46,P.italics)P.foreground="white";else{var N=Math.floor(R/2)-16,M=["white","green","blue","cyan","red","yellow","magenta"];P.foreground=M[N]}this.logger.log(i.INFO,"MIDROW: "+JSON.stringify(P)),this.writeScreen.setPen(P)},S.outputDataUpdate=function(R){R===void 0&&(R=!1);var P=this.logger.time;if(P===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=P:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,P,this.lastOutputScreen),R&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:P),this.lastOutputScreen.copy(this.displayedMemory))},S.cueSplitAtTime=function(R){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,R,this.displayedMemory),this.cueStartTime=R))},w}(),E=function(){function w(D,R,P){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var N=new t;this.channels=[null,new u(D,R,N),new u(D+1,P,N)],this.cmdHistory=C(),this.logger=N}var S=w.prototype;return S.getHandler=function(R){return this.channels[R].getHandler()},S.setHandler=function(R,P){this.channels[R].setHandler(P)},S.addData=function(R,P){var N,M,z,X=!1;this.logger.time=R;for(var k=0;k<P.length;k+=2){if(M=P[k]&127,z=P[k+1]&127,M===0&&z===0)continue;if(this.logger.log(i.DATA,"["+o([P[k],P[k+1]])+"] -> ("+o([M,z])+")"),N=this.parseCmd(M,z),N||(N=this.parseMidrow(M,z)),N||(N=this.parsePAC(M,z)),N||(N=this.parseBackgroundAttributes(M,z)),!N&&(X=this.parseChars(M,z),X)){var F=this.currentChannel;if(F&&F>0){var U=this.channels[F];U.insertChars(X)}else this.logger.log(i.WARNING,"No channel found yet. TEXT-MODE?")}!N&&!X&&this.logger.log(i.WARNING,"Couldn't parse cleaned data "+o([M,z])+" orig: "+o([P[k],P[k+1]]))}},S.parseCmd=function(R,P){var N=this.cmdHistory,M=(R===20||R===28||R===21||R===29)&&P>=32&&P<=47,z=(R===23||R===31)&&P>=33&&P<=35;if(!(M||z))return!1;if(O(R,P,N))return x(null,null,N),this.logger.log(i.DEBUG,"Repeated command ("+o([R,P])+") is dropped"),!0;var X=R===20||R===21||R===23?1:2,k=this.channels[X];return R===20||R===21||R===28||R===29?P===32?k.ccRCL():P===33?k.ccBS():P===34?k.ccAOF():P===35?k.ccAON():P===36?k.ccDER():P===37?k.ccRU(2):P===38?k.ccRU(3):P===39?k.ccRU(4):P===40?k.ccFON():P===41?k.ccRDC():P===42?k.ccTR():P===43?k.ccRTD():P===44?k.ccEDM():P===45?k.ccCR():P===46?k.ccENM():P===47&&k.ccEOC():k.ccTO(P-32),x(R,P,N),this.currentChannel=X,!0},S.parseMidrow=function(R,P){var N=0;if((R===17||R===25)&&P>=32&&P<=47){if(R===17?N=1:N=2,N!==this.currentChannel)return this.logger.log(i.ERROR,"Mismatch channel in midrow parsing"),!1;var M=this.channels[N];return M?(M.ccMIDROW(P),this.logger.log(i.DEBUG,"MIDROW ("+o([R,P])+")"),!0):!1}return!1},S.parsePAC=function(R,P){var N,M=this.cmdHistory,z=(R>=17&&R<=23||R>=25&&R<=31)&&P>=64&&P<=127,X=(R===16||R===24)&&P>=64&&P<=95;if(!(z||X))return!1;if(O(R,P,M))return x(null,null,M),!0;var k=R<=23?1:2;P>=64&&P<=95?N=k===1?e[R]:n[R]:N=k===1?a[R]:l[R];var F=this.channels[k];return F?(F.setPAC(this.interpretPAC(N,P)),x(R,P,M),this.currentChannel=k,!0):!1},S.interpretPAC=function(R,P){var N,M={color:null,italics:!1,indent:null,underline:!1,row:R};return P>95?N=P-96:N=P-64,M.underline=(N&1)===1,N<=13?M.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(N/2)]:N<=15?(M.italics=!0,M.color="white"):M.indent=Math.floor((N-16)/2)*4,M},S.parseChars=function(R,P){var N,M=null,z=null;if(R>=25?(N=2,z=R-8):(N=1,z=R),z>=17&&z<=19){var X;z===17?X=P+80:z===18?X=P+112:X=P+144,this.logger.log(i.INFO,"Special char '"+s(X)+"' in channel "+N),M=[X]}else R>=32&&R<=127&&(M=P===0?[R]:[R,P]);if(M){var k=o(M);this.logger.log(i.DEBUG,"Char codes = "+k.join(",")),x(R,P,this.cmdHistory)}return M},S.parseBackgroundAttributes=function(R,P){var N=(R===16||R===24)&&P>=32&&P<=47,M=(R===23||R===31)&&P>=45&&P<=47;if(!(N||M))return!1;var z,X={};R===16||R===24?(z=Math.floor((P-32)/2),X.background=r[z],P%2===1&&(X.background=X.background+"_semi")):P===45?X.background="transparent":(X.foreground="black",P===47&&(X.underline=!0));var k=R<=23?1:2,F=this.channels[k];return F.setBkgData(X),x(R,P,this.cmdHistory),!0},S.reset=function(){for(var R=0;R<Object.keys(this.channels).length;R++){var P=this.channels[R];P&&P.reset()}this.cmdHistory=C()},S.cueSplitAtTime=function(R){for(var P=0;P<this.channels.length;P++){var N=this.channels[P];N&&N.cueSplitAtTime(R)}},w}();function x(w,S,D){D.a=w,D.b=S}function O(w,S,D){return D.a===w&&D.b===S}function C(){return{a:null,b:null}}v.default=E},"./src/utils/codecs.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"isCodecType",function(){return g}),T.d(v,"isCodecSupportedInMp4",function(){return s});var b={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function g(_,p){var e=b[p];return!!e&&e[_.slice(0,4)]===!0}function s(_,p){return MediaSource.isTypeSupported((p||"video")+'/mp4;codecs="'+_+'"')}},"./src/utils/cues.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/utils/vttparser.ts"),g=T("./src/utils/webvtt-parser.ts"),s=T("./src/utils/texttrack-utils.ts"),_=/\s/,p={newCue:function(a,n,l,r){for(var i=[],t,o,c,d,f,h=self.VTTCue||self.TextTrackCue,u=0;u<r.rows.length;u++)if(t=r.rows[u],c=!0,d=0,f="",!t.isEmpty()){for(var E=0;E<t.chars.length;E++)_.test(t.chars[E].uchar)&&c?d++:(f+=t.chars[E].uchar,c=!1);t.cueStartTime=n,n===l&&(l+=1e-4),d>=16?d--:d++;var x=Object(b.fixLineBreaks)(f.trim()),O=Object(g.generateCueId)(n,l,x);(!a||!a.cues||!a.cues.getCueById(O))&&(o=new h(n,l,x),o.id=O,o.line=u+1,o.align="left",o.position=10+Math.min(80,Math.floor(d*8/32)*10),i.push(o))}return a&&i.length&&(i.sort(function(C,w){return C.line==="auto"||w.line==="auto"?0:C.line>8&&w.line>8?w.line-C.line:C.line-w.line}),i.forEach(function(C){return Object(s.addCueToTrack)(a,C)})),i}};v.default=p},"./src/utils/discontinuities.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"findFirstFragWithCC",function(){return _}),T.d(v,"shouldAlignOnDiscontinuities",function(){return p}),T.d(v,"findDiscontinuousReferenceFrag",function(){return e}),T.d(v,"adjustSlidingStart",function(){return n}),T.d(v,"alignStream",function(){return l}),T.d(v,"alignPDT",function(){return i}),T.d(v,"alignFragmentByPDTDelta",function(){return t}),T.d(v,"alignMediaPlaylistByPDT",function(){return o});var b=T("./src/polyfills/number.ts"),g=T("./src/utils/logger.ts"),s=T("./src/controller/level-helper.ts");function _(c,d){for(var f=null,h=0,u=c.length;h<u;h++){var E=c[h];if(E&&E.cc===d){f=E;break}}return f}function p(c,d,f){return!!(d.details&&(f.endCC>f.startCC||c&&c.cc<f.startCC))}function e(c,d){var f=c.fragments,h=d.fragments;if(!h.length||!f.length){g.logger.log("No fragments to align");return}var u=_(f,h[0].cc);if(!u||u&&!u.startPTS){g.logger.log("No frag in previous level to align on");return}return u}function a(c,d){if(c){var f=c.start+d;c.start=c.startPTS=f,c.endPTS=f+c.duration}}function n(c,d){for(var f=d.fragments,h=0,u=f.length;h<u;h++)a(f[h],c);d.fragmentHint&&a(d.fragmentHint,c),d.alignedSliding=!0}function l(c,d,f){if(!d)return;r(c,f,d),!f.alignedSliding&&d.details&&i(f,d.details),!f.alignedSliding&&d.details&&!f.skippedSegments&&Object(s.adjustSliding)(d.details,f)}function r(c,d,f){if(p(c,f,d)){var h=e(f.details,d);h&&Object(b.isFiniteNumber)(h.start)&&(g.logger.log("Adjusting PTS using last level due to CC increase within current level "+d.url),n(h.start,d))}}function i(c,d){if(!d.fragments.length||!c.hasProgramDateTime||!d.hasProgramDateTime)return;var f=d.fragments[0].programDateTime,h=c.fragments[0].programDateTime,u=(h-f)/1e3+d.fragments[0].start;u&&Object(b.isFiniteNumber)(u)&&(g.logger.log("Adjusting PTS using programDateTime delta "+(h-f)+"ms, sliding:"+u.toFixed(3)+" "+c.url+" "),n(u,c))}function t(c,d){var f=c.programDateTime;if(!f)return;var h=(f-d)/1e3;c.start=c.startPTS=h,c.endPTS=h+c.duration}function o(c,d){if(!d.fragments.length||!c.hasProgramDateTime||!d.hasProgramDateTime)return;var f=d.fragments[0].programDateTime,h=d.fragments[0].start,u=f-h*1e3;c.fragments.forEach(function(E){t(E,u)}),c.fragmentHint&&t(c.fragmentHint,u),c.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/utils/ewma.ts"),g=function(){function s(p,e,a){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=a,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b.default(p),this.fast_=new b.default(e)}var _=s.prototype;return _.update=function(e,a){var n=this.slow_,l=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new b.default(e,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==a&&(this.fast_=new b.default(a,l.getEstimate(),l.getTotalWeight()))},_.sample=function(e,a){e=Math.max(e,this.minDelayMs_);var n=8*a,l=e/1e3,r=n/l;this.fast_.sample(l,r),this.slow_.sample(l,r)},_.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},_.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},_.destroy=function(){},s}();v.default=g},"./src/utils/ewma.ts":function(I,v,T){"use strict";T.r(v);var b=function(){function g(_,p,e){p===void 0&&(p=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=_,this.alpha_=_?Math.exp(Math.log(.5)/_):0,this.estimate_=p,this.totalWeight_=e}var s=g.prototype;return s.sample=function(p,e){var a=Math.pow(this.alpha_,p);this.estimate_=e*(1-a)+a*this.estimate_,this.totalWeight_+=p},s.getTotalWeight=function(){return this.totalWeight_},s.getEstimate=function(){if(this.alpha_){var p=1-Math.pow(this.alpha_,this.totalWeight_);if(p)return this.estimate_/p}return this.estimate_},g}();v.default=b},"./src/utils/fetch-loader.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"fetchSupported",function(){return t});var b=T("./src/polyfills/number.ts"),g=T("./src/loader/load-stats.ts"),s=T("./src/demux/chunk-cache.ts");function _(h,u){h.prototype=Object.create(u.prototype),h.prototype.constructor=h,l(h,u)}function p(h){var u=typeof Map=="function"?new Map:void 0;return p=function(x){if(x===null||!n(x))return x;if(typeof x!="function")throw new TypeError("Super expression must either be null or a function");if(typeof u!="undefined"){if(u.has(x))return u.get(x);u.set(x,O)}function O(){return e(x,arguments,r(this).constructor)}return O.prototype=Object.create(x.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),l(O,x)},p(h)}function e(h,u,E){return a()?e=Reflect.construct:e=function(O,C,w){var S=[null];S.push.apply(S,C);var D=Function.bind.apply(O,S),R=new D;return w&&l(R,w.prototype),R},e.apply(null,arguments)}function a(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}function n(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function l(h,u){return l=Object.setPrototypeOf||function(x,O){return x.__proto__=O,x},l(h,u)}function r(h){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},r(h)}function i(){return i=Object.assign||function(h){for(var u=1;u<arguments.length;u++){var E=arguments[u];for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(h[x]=E[x])}return h},i.apply(this,arguments)}function t(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(h){}return!1}var o=function(){function h(E){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=E.fetchSetup||d,this.controller=new self.AbortController,this.stats=new g.LoadStats}var u=h.prototype;return u.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},u.abortInternal=function(){var x=this.response;(!x||!x.ok)&&(this.stats.aborted=!0,this.controller.abort())},u.abort=function(){var x;this.abortInternal(),(x=this.callbacks)!==null&&x!==void 0&&x.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},u.load=function(x,O,C){var w=this,S=this.stats;if(S.loading.start)throw new Error("Loader can only be used once.");S.loading.start=self.performance.now();var D=c(x,this.controller.signal),R=C.onProgress,P=x.responseType==="arraybuffer",N=P?"byteLength":"length";this.context=x,this.config=O,this.callbacks=C,this.request=this.fetchSetup(x,D),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){w.abortInternal(),C.onTimeout(S,x,w.response)},O.timeout),self.fetch(this.request).then(function(M){if(w.response=w.loader=M,!M.ok){var z=M.status,X=M.statusText;throw new f(X||"fetch, bad network response",z,M)}return S.loading.first=Math.max(self.performance.now(),S.loading.start),S.total=parseInt(M.headers.get("Content-Length")||"0"),R&&Object(b.isFiniteNumber)(O.highWaterMark)?w.loadProgressively(M,S,x,O.highWaterMark,R):P?M.arrayBuffer():M.text()}).then(function(M){var z=w.response;self.clearTimeout(w.requestTimeout),S.loading.end=Math.max(self.performance.now(),S.loading.first),S.loaded=S.total=M[N];var X={url:z.url,data:M};R&&!Object(b.isFiniteNumber)(O.highWaterMark)&&R(S,x,M,z),C.onSuccess(X,S,x,z)}).catch(function(M){if(self.clearTimeout(w.requestTimeout),S.aborted)return;var z=M.code||0;C.onError({code:z,text:M.message},x,M.details)})},u.getCacheAge=function(){var x=null;if(this.response){var O=this.response.headers.get("age");x=O?parseFloat(O):null}return x},u.loadProgressively=function(x,O,C,w,S){w===void 0&&(w=0);var D=new s.default,R=x.body.getReader(),P=function N(){return R.read().then(function(M){if(M.done)return D.dataLength&&S(O,C,D.flush(),x),Promise.resolve(new ArrayBuffer(0));var z=M.value,X=z.length;return O.loaded+=X,X<w||D.dataLength?(D.push(z),D.dataLength>=w&&S(O,C,D.flush(),x)):S(O,C,z,x),N()}).catch(function(){return Promise.reject()})};return P()},h}();function c(h,u){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:u,headers:new self.Headers(i({},h.headers))};return h.rangeEnd&&E.headers.set("Range","bytes="+h.rangeStart+"-"+String(h.rangeEnd-1)),E}function d(h,u){return new self.Request(h.url,u)}var f=function(h){_(u,h);function u(E,x,O){var C;return C=h.call(this,E)||this,C.code=void 0,C.details=void 0,C.code=x,C.details=O,C}return u}(p(Error));v.default=o},"./src/utils/imsc1-ttml-parser.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"IMSC1_CODEC",function(){return n}),T.d(v,"parseIMSC1",function(){return t});var b=T("./src/utils/mp4-tools.ts"),g=T("./src/utils/vttparser.ts"),s=T("./src/utils/vttcue.ts"),_=T("./src/demux/id3.ts"),p=T("./src/utils/timescale-conversion.ts"),e=T("./src/utils/webvtt-parser.ts");function a(){return a=Object.assign||function(w){for(var S=1;S<arguments.length;S++){var D=arguments[S];for(var R in D)Object.prototype.hasOwnProperty.call(D,R)&&(w[R]=D[R])}return w},a.apply(this,arguments)}var n="stpp.ttml.im1t",l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,r=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,i={left:"start",center:"center",right:"end",start:"start",end:"end"};function t(w,S,D,R,P){var N=Object(b.findBox)(new Uint8Array(w),["mdat"]);if(N.length===0){P(new Error("Could not parse IMSC1 mdat"));return}var M=N[0],z=Object(_.utf8ArrayToStr)(new Uint8Array(w,M.start,M.end-M.start)),X=Object(p.toTimescaleFromScale)(S,1,D);try{R(o(z,X))}catch(k){P(k)}}function o(w,S){var D=new DOMParser,R=D.parseFromString(w,"text/xml"),P=R.getElementsByTagName("tt")[0];if(!P)throw new Error("Invalid ttml");var N={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},M=Object.keys(N).reduce(function(U,L){return U[L]=P.getAttribute("ttp:"+L)||N[L],U},{}),z=P.getAttribute("xml:space")!=="preserve",X=d(c(P,"styling","style")),k=d(c(P,"layout","region")),F=c(P,"body","[begin]");return[].map.call(F,function(U){var L=f(U,z);if(!L||!U.hasAttribute("begin"))return null;var B=x(U.getAttribute("begin"),M),Z=x(U.getAttribute("dur"),M),re=x(U.getAttribute("end"),M);if(B===null)throw E(U);if(re===null){if(Z===null)throw E(U);re=B+Z}var me=new s.default(B-S,re-S,L);me.id=Object(e.generateCueId)(me.startTime,me.endTime,me.text);var Ee=k[U.getAttribute("region")],De=X[U.getAttribute("style")];me.position=10,me.size=80;var te=h(Ee,De),Ce=te.textAlign;if(Ce){var we=i[Ce];we&&(me.lineAlign=we),me.align=Ce}return a(me,te),me}).filter(function(U){return U!==null})}function c(w,S,D){var R=w.getElementsByTagName(S)[0];return R?[].slice.call(R.querySelectorAll(D)):[]}function d(w){return w.reduce(function(S,D){var R=D.getAttribute("xml:id");return R&&(S[R]=D),S},{})}function f(w,S){return[].slice.call(w.childNodes).reduce(function(D,R,P){var N;return R.nodeName==="br"&&P?D+`
`:(N=R.childNodes)!==null&&N!==void 0&&N.length?f(R,S):S?D+R.textContent.trim().replace(/\s+/g," "):D+R.textContent},"")}function h(w,S){var D="http://www.w3.org/ns/ttml#styling",R=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return R.reduce(function(P,N){var M=u(S,D,N)||u(w,D,N);return M&&(P[N]=M),P},{})}function u(w,S,D){return w.hasAttributeNS(S,D)?w.getAttributeNS(S,D):null}function E(w){return new Error("Could not parse ttml timestamp "+w)}function x(w,S){if(!w)return null;var D=Object(g.parseTimeStamp)(w);return D===null&&(l.test(w)?D=O(w,S):r.test(w)&&(D=C(w,S))),D}function O(w,S){var D=l.exec(w),R=(D[4]|0)+(D[5]|0)/S.subFrameRate;return(D[1]|0)*3600+(D[2]|0)*60+(D[3]|0)+R/S.frameRate}function C(w,S){var D=r.exec(w),R=Number(D[1]),P=D[2];switch(P){case"h":return R*3600;case"m":return R*60;case"ms":return R*1e3;case"f":return R/S.frameRate;case"t":return R/S.tickRate}return R}},"./src/utils/logger.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"enableLogs",function(){return e}),T.d(v,"logger",function(){return a});var b=function(){},g={trace:b,debug:b,log:b,warn:b,info:b,error:b},s=g;function _(n){var l=self.console[n];return l?l.bind(self.console,"["+n+"] >"):b}function p(n){for(var l=arguments.length,r=new Array(l>1?l-1:0),i=1;i<l;i++)r[i-1]=arguments[i];r.forEach(function(t){s[t]=n[t]?n[t].bind(n):_(t)})}function e(n){if(self.console&&n===!0||typeof n=="object"){p(n,"debug","log","info","warn","error");try{s.log()}catch(l){s=g}}else s=g}var a=s},"./src/utils/mediakeys-helper.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"KeySystems",function(){return b}),T.d(v,"requestMediaKeySystemAccess",function(){return g});var b;(function(s){s.WIDEVINE="com.widevine.alpha",s.PLAYREADY="com.microsoft.playready"})(b||(b={}));var g=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"bin2str",function(){return p}),T.d(v,"readUint16",function(){return e}),T.d(v,"readUint32",function(){return a}),T.d(v,"writeUint32",function(){return n}),T.d(v,"findBox",function(){return l}),T.d(v,"parseSegmentIndex",function(){return r}),T.d(v,"parseInitSegment",function(){return i}),T.d(v,"getStartDTS",function(){return t}),T.d(v,"getDuration",function(){return o}),T.d(v,"computeRawDurationFromSamples",function(){return c}),T.d(v,"offsetStartDTS",function(){return d}),T.d(v,"segmentValidRange",function(){return f}),T.d(v,"appendUint8Array",function(){return h});var b=T("./src/utils/typed-array.ts"),g=T("./src/loader/fragment.ts"),s=Math.pow(2,32)-1,_=[].push;function p(u){return String.fromCharCode.apply(null,u)}function e(u,E){"data"in u&&(E+=u.start,u=u.data);var x=u[E]<<8|u[E+1];return x<0?65536+x:x}function a(u,E){"data"in u&&(E+=u.start,u=u.data);var x=u[E]<<24|u[E+1]<<16|u[E+2]<<8|u[E+3];return x<0?4294967296+x:x}function n(u,E,x){"data"in u&&(E+=u.start,u=u.data),u[E]=x>>24,u[E+1]=x>>16&255,u[E+2]=x>>8&255,u[E+3]=x&255}function l(u,E){var x=[];if(!E.length)return x;var O,C,w;"data"in u?(O=u.data,C=u.start,w=u.end):(O=u,C=0,w=O.byteLength);for(var S=C;S<w;){var D=a(O,S),R=p(O.subarray(S+4,S+8)),P=D>1?S+D:w;if(R===E[0])if(E.length===1)x.push({data:O,start:S+8,end:P});else{var N=l({data:O,start:S+8,end:P},E.slice(1));N.length&&_.apply(x,N)}S=P}return x}function r(u){var E=l(u,["moov"]),x=E[0],O=x?x.end:null,C=l(u,["sidx"]);if(!C||!C[0])return null;var w=[],S=C[0],D=S.data[0],R=D===0?8:16,P=a(S,R);R+=4;var N=0,M=0;D===0?R+=8:R+=16,R+=2;var z=S.end+M,X=e(S,R);R+=2;for(var k=0;k<X;k++){var F=R,U=a(S,F);F+=4;var L=U&2147483647,B=(U&2147483648)>>>31;if(B===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var Z=a(S,F);F+=4,w.push({referenceSize:L,subsegmentDuration:Z,info:{duration:Z/P,start:z,end:z+L-1}}),z+=L,F+=4,R=F}return{earliestPresentationTime:N,timescale:P,version:D,referencesCount:X,references:w,moovEndOffset:O}}function i(u){for(var E=[],x=l(u,["moov","trak"]),O=0;O<x.length;O++){var C=x[O],w=l(C,["tkhd"])[0];if(w){var S=w.data[w.start],D=S===0?12:20,R=a(w,D),P=l(C,["mdia","mdhd"])[0];if(P){S=P.data[P.start],D=S===0?12:20;var N=a(P,D),M=l(C,["mdia","hdlr"])[0];if(M){var z=p(M.data.subarray(M.start+8,M.start+12)),X={soun:g.ElementaryStreamTypes.AUDIO,vide:g.ElementaryStreamTypes.VIDEO}[z];if(X){var k=l(C,["mdia","minf","stbl","stsd"])[0],F=void 0;k&&(F=p(k.data.subarray(k.start+12,k.start+16))),E[R]={timescale:N,type:X},E[X]={timescale:N,id:R,codec:F}}}}}}var U=l(u,["moov","mvex","trex"]);return U.forEach(function(L){var B=a(L,4),Z=E[B];Z&&(Z.default={duration:a(L,12),flags:a(L,20)})}),E}function t(u,E){return l(E,["moof","traf"]).reduce(function(x,O){var C=l(O,["tfdt"])[0],w=C.data[C.start],S=l(O,["tfhd"]).reduce(function(D,R){var P=a(R,4),N=u[P];if(N){var M=a(C,4);w===1&&(M*=Math.pow(2,32),M+=a(C,8));var z=N.timescale||9e4,X=M/z;if(isFinite(X)&&(D===null||X<D))return X}return D},null);return S!==null&&isFinite(S)&&(x===null||S<x)?S:x},null)||0}function o(u,E){for(var x=0,O=0,C=0,w=l(u,["moof","traf"]),S=0;S<w.length;S++){var D=w[S],R=l(D,["tfhd"])[0],P=a(R,4),N=E[P];if(!N)continue;var M=N.default,z=a(R,0)|(M==null?void 0:M.flags),X=M==null?void 0:M.duration;z&8&&(z&2?X=a(R,12):X=a(R,8));for(var k=N.timescale||9e4,F=l(D,["trun"]),U=0;U<F.length;U++){if(X){var L=a(F[U],4);x=X*L}else x=c(F[U]);N.type===g.ElementaryStreamTypes.VIDEO?O+=x/k:N.type===g.ElementaryStreamTypes.AUDIO&&(C+=x/k)}}if(O===0&&C===0){var B=r(u);if(B!=null&&B.references)return B.references.reduce(function(Z,re){return Z+re.info.duration||0},0)}return O||C}function c(u){var E=a(u,0),x=8;E&1&&(x+=4),E&4&&(x+=4);for(var O=0,C=a(u,4),w=0;w<C;w++){if(E&256){var S=a(u,x);O+=S,x+=4}E&512&&(x+=4),E&1024&&(x+=4),E&2048&&(x+=4)}return O}function d(u,E,x){l(E,["moof","traf"]).forEach(function(O){l(O,["tfhd"]).forEach(function(C){var w=a(C,4),S=u[w];if(!S)return;var D=S.timescale||9e4;l(O,["tfdt"]).forEach(function(R){var P=R.data[R.start],N=a(R,4);if(P===0)n(R,4,N-x*D);else{N*=Math.pow(2,32),N+=a(R,8),N-=x*D,N=Math.max(N,0);var M=Math.floor(N/(s+1)),z=Math.floor(N%(s+1));n(R,4,M),n(R,8,z)}})})})}function f(u){var E={valid:null,remainder:null},x=l(u,["moof"]);if(x){if(x.length<2)return E.remainder=u,E}else return E;var O=x[x.length-1];return E.valid=Object(b.sliceUint8)(u,0,O.start-8),E.remainder=Object(b.sliceUint8)(u,O.start-8),E}function h(u,E){var x=new Uint8Array(u.length+E.length);return x.set(u),x.set(E,u.length),x}},"./src/utils/output-filter.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"default",function(){return b});var b=function(){function g(_,p){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=_,this.trackName=p}var s=g.prototype;return s.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},s.newCue=function(p,e,a){(this.startTime===null||this.startTime>p)&&(this.startTime=p),this.endTime=e,this.screen=a,this.timelineController.createCaptionsTrack(this.trackName)},s.reset=function(){this.cueRanges=[]},g}()},"./src/utils/texttrack-utils.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"sendAddTrackEvent",function(){return g}),T.d(v,"addCueToTrack",function(){return s}),T.d(v,"clearCurrentCues",function(){return _}),T.d(v,"removeCuesInRange",function(){return p}),T.d(v,"getCuesInRange",function(){return a});var b=T("./src/utils/logger.ts");function g(n,l){var r;try{r=new Event("addtrack")}catch(i){r=document.createEvent("Event"),r.initEvent("addtrack",!1,!1)}r.track=n,l.dispatchEvent(r)}function s(n,l){var r=n.mode;if(r==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(l.id))try{if(n.addCue(l),!n.cues.getCueById(l.id))throw new Error("addCue is failed for: "+l)}catch(t){b.logger.debug("[texttrack-utils]: "+t);var i=new self.TextTrackCue(l.startTime,l.endTime,l.text);i.id=l.id,n.addCue(i)}r==="disabled"&&(n.mode=r)}function _(n){var l=n.mode;if(l==="disabled"&&(n.mode="hidden"),n.cues)for(var r=n.cues.length;r--;)n.removeCue(n.cues[r]);l==="disabled"&&(n.mode=l)}function p(n,l,r){var i=n.mode;if(i==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var t=a(n.cues,l,r),o=0;o<t.length;o++)n.removeCue(t[o]);i==="disabled"&&(n.mode=i)}function e(n,l){if(l<n[0].startTime)return 0;var r=n.length-1;if(l>n[r].endTime)return-1;for(var i=0,t=r;i<=t;){var o=Math.floor((t+i)/2);if(l<n[o].startTime)t=o-1;else if(l>n[o].startTime&&i<r)i=o+1;else return o}return n[i].startTime-l<l-n[t].startTime?i:t}function a(n,l,r){var i=[],t=e(n,l);if(t>-1)for(var o=t,c=n.length;o<c;o++){var d=n[o];if(d.startTime>=l&&d.endTime<=r)i.push(d);else if(d.startTime>r)return i}return i}},"./src/utils/time-ranges.ts":function(I,v,T){"use strict";T.r(v);var b={toString:function(s){for(var _="",p=s.length,e=0;e<p;e++)_+="["+s.start(e).toFixed(3)+","+s.end(e).toFixed(3)+"]";return _}};v.default=b},"./src/utils/timescale-conversion.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"toTimescaleFromBase",function(){return g}),T.d(v,"toTimescaleFromScale",function(){return s}),T.d(v,"toMsFromMpegTsClock",function(){return _}),T.d(v,"toMpegTsClockFromTimescale",function(){return p});var b=9e4;function g(e,a,n,l){n===void 0&&(n=1),l===void 0&&(l=!1);var r=e*a*n;return l?Math.round(r):r}function s(e,a,n,l){return n===void 0&&(n=1),l===void 0&&(l=!1),g(e,a,1/n,l)}function _(e,a){return a===void 0&&(a=!1),g(e,1e3,1/b,a)}function p(e,a){return a===void 0&&(a=1),g(e,b,1/a)}},"./src/utils/typed-array.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"sliceUint8",function(){return b});function b(g,s,_){return Uint8Array.prototype.slice?g.slice(s,_):new Uint8Array(Array.prototype.slice.call(g,s,_))}},"./src/utils/vttcue.ts":function(I,v,T){"use strict";T.r(v),v.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var b=["","lr","rl"],g=["start","middle","end","left","right"];function s(n,l){if(typeof l!="string")return!1;if(!Array.isArray(n))return!1;var r=l.toLowerCase();return~n.indexOf(r)?r:!1}function _(n){return s(b,n)}function p(n){return s(g,n)}function e(n){for(var l=arguments.length,r=new Array(l>1?l-1:0),i=1;i<l;i++)r[i-1]=arguments[i];for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var c in o)n[c]=o[c]}return n}function a(n,l,r){var i=this,t={enumerable:!0};i.hasBeenReset=!1;var o="",c=!1,d=n,f=l,h=r,u=null,E="",x=!0,O="auto",C="start",w=50,S="middle",D=50,R="middle";Object.defineProperty(i,"id",e({},t,{get:function(){return o},set:function(N){o=""+N}})),Object.defineProperty(i,"pauseOnExit",e({},t,{get:function(){return c},set:function(N){c=!!N}})),Object.defineProperty(i,"startTime",e({},t,{get:function(){return d},set:function(N){if(typeof N!="number")throw new TypeError("Start time must be set to a number.");d=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",e({},t,{get:function(){return f},set:function(N){if(typeof N!="number")throw new TypeError("End time must be set to a number.");f=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",e({},t,{get:function(){return h},set:function(N){h=""+N,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",e({},t,{get:function(){return u},set:function(N){u=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",e({},t,{get:function(){return E},set:function(N){var M=_(N);if(M===!1)throw new SyntaxError("An invalid or illegal string was specified.");E=M,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",e({},t,{get:function(){return x},set:function(N){x=!!N,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",e({},t,{get:function(){return O},set:function(N){if(typeof N!="number"&&N!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");O=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",e({},t,{get:function(){return C},set:function(N){var M=p(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");C=M,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",e({},t,{get:function(){return w},set:function(N){if(N<0||N>100)throw new Error("Position must be between 0 and 100.");w=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",e({},t,{get:function(){return S},set:function(N){var M=p(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");S=M,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",e({},t,{get:function(){return D},set:function(N){if(N<0||N>100)throw new Error("Size must be between 0 and 100.");D=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",e({},t,{get:function(){return R},set:function(N){var M=p(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");R=M,this.hasBeenReset=!0}})),i.displayState=void 0}return a.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},a}()},"./src/utils/vttparser.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"parseTimeStamp",function(){return s}),T.d(v,"fixLineBreaks",function(){return l}),T.d(v,"VTTParser",function(){return r});var b=T("./src/utils/vttcue.ts"),g=function(){function i(){}var t=i.prototype;return t.decode=function(c,d){if(!c)return"";if(typeof c!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(c))},i}();function s(i){function t(c,d,f,h){return(c|0)*3600+(d|0)*60+(f|0)+parseFloat(h||0)}var o=i.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return o?parseFloat(o[2])>59?t(o[2],o[3],0,o[4]):t(o[1],o[2],o[3],o[4]):null}var _=function(){function i(){this.values=Object.create(null)}var t=i.prototype;return t.set=function(c,d){!this.get(c)&&d!==""&&(this.values[c]=d)},t.get=function(c,d,f){return f?this.has(c)?this.values[c]:d[f]:this.has(c)?this.values[c]:d},t.has=function(c){return c in this.values},t.alt=function(c,d,f){for(var h=0;h<f.length;++h)if(d===f[h]){this.set(c,d);break}},t.integer=function(c,d){/^-?\d+$/.test(d)&&this.set(c,parseInt(d,10))},t.percent=function(c,d){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(d)){var f=parseFloat(d);if(f>=0&&f<=100)return this.set(c,f),!0}return!1},i}();function p(i,t,o,c){var d=c?i.split(c):[i];for(var f in d){if(typeof d[f]!="string")continue;var h=d[f].split(o);if(h.length!==2)continue;var u=h[0],E=h[1];t(u,E)}}var e=new b.default(0,0,""),a=e.align==="middle"?"middle":"center";function n(i,t,o){var c=i;function d(){var u=s(i);if(u===null)throw new Error("Malformed timestamp: "+c);return i=i.replace(/^[^\sa-zA-Z-]+/,""),u}function f(u,E){var x=new _;p(u,function(w,S){var D;switch(w){case"region":for(var R=o.length-1;R>=0;R--)if(o[R].id===S){x.set(w,o[R].region);break}break;case"vertical":x.alt(w,S,["rl","lr"]);break;case"line":D=S.split(","),x.integer(w,D[0]),x.percent(w,D[0])&&x.set("snapToLines",!1),x.alt(w,D[0],["auto"]),D.length===2&&x.alt("lineAlign",D[1],["start",a,"end"]);break;case"position":D=S.split(","),x.percent(w,D[0]),D.length===2&&x.alt("positionAlign",D[1],["start",a,"end","line-left","line-right","auto"]);break;case"size":x.percent(w,S);break;case"align":x.alt(w,S,["start",a,"end","left","right"]);break}},/:/,/\s/),E.region=x.get("region",null),E.vertical=x.get("vertical","");var O=x.get("line","auto");O==="auto"&&e.line===-1&&(O=-1),E.line=O,E.lineAlign=x.get("lineAlign","start"),E.snapToLines=x.get("snapToLines",!0),E.size=x.get("size",100),E.align=x.get("align",a);var C=x.get("position","auto");C==="auto"&&e.position===50&&(C=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=C}function h(){i=i.replace(/^\s+/,"")}if(h(),t.startTime=d(),h(),i.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+c);i=i.substr(3),h(),t.endTime=d(),h(),f(i,t)}function l(i){return i.replace(/<br(?: \/)?>/gi,`
`)}var r=function(){function i(){this.state="INITIAL",this.buffer="",this.decoder=new g,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var t=i.prototype;return t.parse=function(c){var d=this;c&&(d.buffer+=d.decoder.decode(c,{stream:!0}));function f(){var C=d.buffer,w=0;for(C=l(C);w<C.length&&C[w]!=="\r"&&C[w]!==`
`;)++w;var S=C.substr(0,w);return C[w]==="\r"&&++w,C[w]===`
`&&++w,d.buffer=C.substr(w),S}function h(C){p(C,function(w,S){},/:/)}try{var u="";if(d.state==="INITIAL"){if(!/\r\n|\n/.test(d.buffer))return this;u=f();var E=u.match(/^()?WEBVTT([ \t].*)?$/);if(!E||!E[0])throw new Error("Malformed WebVTT signature.");d.state="HEADER"}for(var x=!1;d.buffer;){if(!/\r\n|\n/.test(d.buffer))return this;x?x=!1:u=f();switch(d.state){case"HEADER":/:/.test(u)?h(u):u||(d.state="ID");continue;case"NOTE":u||(d.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(u)){d.state="NOTE";break}if(!u)continue;if(d.cue=new b.default(0,0,""),d.state="CUE",u.indexOf("-->")===-1){d.cue.id=u;continue}case"CUE":if(!d.cue){d.state="BADCUE";continue}try{n(u,d.cue,d.regionList)}catch(C){d.cue=null,d.state="BADCUE";continue}d.state="CUETEXT";continue;case"CUETEXT":{var O=u.indexOf("-->")!==-1;if(!u||O&&(x=!0)){d.oncue&&d.cue&&d.oncue(d.cue),d.cue=null,d.state="ID";continue}if(d.cue===null)continue;d.cue.text&&(d.cue.text+=`
`),d.cue.text+=u}continue;case"BADCUE":u||(d.state="ID")}}}catch(C){d.state==="CUETEXT"&&d.cue&&d.oncue&&d.oncue(d.cue),d.cue=null,d.state=d.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},t.flush=function(){var c=this;try{if((c.cue||c.state==="HEADER")&&(c.buffer+=`
`,c.parse()),c.state==="INITIAL"||c.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(d){c.onparsingerror&&c.onparsingerror(d)}return c.onflush&&c.onflush(),this},i}()},"./src/utils/webvtt-parser.ts":function(I,v,T){"use strict";T.r(v),T.d(v,"generateCueId",function(){return r}),T.d(v,"parseWebVTT",function(){return t});var b=T("./src/polyfills/number.ts"),g=T("./src/utils/vttparser.ts"),s=T("./src/demux/id3.ts"),_=T("./src/utils/timescale-conversion.ts"),p=T("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,a=function(c,d,f){return f===void 0&&(f=0),c.substr(f,d.length)===d},n=function(c){var d=parseInt(c.substr(-3)),f=parseInt(c.substr(-6,2)),h=parseInt(c.substr(-9,2)),u=c.length>9?parseInt(c.substr(0,c.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(d)||!Object(b.isFiniteNumber)(f)||!Object(b.isFiniteNumber)(h)||!Object(b.isFiniteNumber)(u))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+c);return d+=1e3*f,d+=60*1e3*h,d+=60*60*1e3*u,d},l=function(c){for(var d=5381,f=c.length;f;)d=d*33^c.charCodeAt(--f);return(d>>>0).toString()};function r(o,c,d){return l(o.toString())+l(c.toString())+l(d)}var i=function(c,d,f){var h=c[d],u=c[h.prevCC];if(!u||!u.new&&h.new){c.ccOffset=c.presentationOffset=h.start,h.new=!1;return}for(;(E=u)!==null&&E!==void 0&&E.new;){var E;c.ccOffset+=h.start-u.start,h.new=!1,h=u,u=c[h.prevCC]}c.presentationOffset=f};function t(o,c,d,f,h,u,E,x){var O=new g.VTTParser,C=Object(s.utf8ArrayToStr)(new Uint8Array(o)).trim().replace(e,`
`).split(`
`),w=[],S=Object(_.toMpegTsClockFromTimescale)(c,d),D="00:00.000",R=0,P=0,N,M=!0,z=!1;O.oncue=function(X){var k=f[h],F=f.ccOffset,U=(R-S)/9e4;if(k!=null&&k.new&&(P!==void 0?F=f.ccOffset=k.start:i(f,h,U)),U&&(F=U-f.presentationOffset),z){var L=X.endTime-X.startTime,B=Object(p.normalizePts)((X.startTime+F-P)*9e4,u*9e4)/9e4;X.startTime=B,X.endTime=B+L}var Z=X.text.trim();X.text=decodeURIComponent(encodeURIComponent(Z)),X.id||(X.id=r(X.startTime,X.endTime,Z)),X.endTime>0&&w.push(X)},O.onparsingerror=function(X){N=X},O.onflush=function(){if(N){x(N);return}E(w)},C.forEach(function(X){if(M)if(a(X,"X-TIMESTAMP-MAP=")){M=!1,z=!0,X.substr(16).split(",").forEach(function(k){a(k,"LOCAL:")?D=k.substr(6):a(k,"MPEGTS:")&&(R=parseInt(k.substr(7)))});try{P=n(D)/1e3}catch(k){z=!1,N=k}return}else X===""&&(M=!1);O.parse(X+`
`)}),O.flush()}},"./src/utils/xhr-loader.ts":function(I,v,T){"use strict";T.r(v);var b=T("./src/utils/logger.ts"),g=T("./src/loader/load-stats.ts"),s=/^age:\s*[\d.]+\s*$/m,_=function(){function p(a){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=a?a.xhrSetup:null,this.stats=new g.LoadStats,this.retryDelay=0}var e=p.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},e.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(n,l,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=l,this.callbacks=r,this.retryDelay=l.retryDelay,this.loadInternal()},e.loadInternal=function(){var n=this.config,l=this.context;if(!n)return;var r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var t=this.xhrSetup;try{if(t)try{t(r,l.url)}catch(d){r.open("GET",l.url,!0),t(r,l.url)}r.readyState||r.open("GET",l.url,!0);var o=this.context.headers;if(o)for(var c in o)r.setRequestHeader(c,o[c])}catch(d){this.callbacks.onError({code:r.status,text:d.message},l,r);return}l.rangeEnd&&r.setRequestHeader("Range","bytes="+l.rangeStart+"-"+(l.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=l.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),r.send()},e.readystatechange=function(){var n=this.context,l=this.loader,r=this.stats;if(!n||!l)return;var i=l.readyState,t=this.config;if(r.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start)),i===4){l.onreadystatechange=null,l.onprogress=null;var o=l.status;if(o>=200&&o<300){r.loading.end=Math.max(self.performance.now(),r.loading.first);var c,d;if(n.responseType==="arraybuffer"?(c=l.response,d=c.byteLength):(c=l.responseText,d=c.length),r.loaded=r.total=d,!this.callbacks)return;var f=this.callbacks.onProgress;if(f&&f(r,n,c,l),!this.callbacks)return;var h={url:l.responseURL,data:c};this.callbacks.onSuccess(h,r,n,l)}else r.retry>=t.maxRetry||o>=400&&o<499?(b.logger.error(o+" while loading "+n.url),this.callbacks.onError({code:o,text:l.statusText},n,l)):(b.logger.warn(o+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,t.maxRetryDelay),r.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),t.timeout)},e.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(n){var l=this.stats;l.loaded=n.loaded,n.lengthComputable&&(l.total=n.total)},e.getCacheAge=function(){var n=null;if(this.loader&&s.test(this.loader.getAllResponseHeaders())){var l=this.loader.getResponseHeader("age");n=l?parseFloat(l):null}return n},p}();v.default=_}}).default})},vHTk:function(j,W,y){j.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vWAL:function(j,W,y){j.exports={"content-wrapper":"content-wrapper___1BdIJ",scroll:"scroll___1zL-U","unity-3d-container":"unity-3d-container___2iomU","unity3d-panel":"unity3d-panel___eERy0","btn-enlarge":"btn-enlarge___SuCQR",enlarge:"enlarge___38SDI","tab-nav":"tab-nav___1g2EX","tab-fixed":"tab-fixed___2oB0W",active:"active___3TnYc","tab-panel-body":"tab-panel-body___1qX33","answer-tip":"answer-tip____Cwli"}},vewr:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.getPointerEvent=I,W.stopEvent=v,W.setCapture=p,W.releaseCapture=e;function I(a){return a.changedTouches?a.changedTouches[0]:a.touches?a.touches[0]:a}function v(a){a.stopPropagation(),a.preventDefault()}var T=!1,b=null;document.captureElement=null;function g(a){if(T)return;var n=new a.constructor(a.type,a);T=!0,document.captureElement?document.captureElement.dispatchEvent(n):b.dispatchEvent(n),T=!1,a.stopPropagation(),n.defaultPrevented&&a.preventDefault(),a.type==="mouseup"&&e()}function s(){var a=document.getElementById("noVNC_mouse_capture_elem");a.style.cursor=window.getComputedStyle(document.captureElement).cursor}var _=new MutationObserver(s);function p(a){if(a.setCapture)a.setCapture(),document.captureElement=a,a.addEventListener("mouseup",e);else{e();var n=document.getElementById("noVNC_mouse_capture_elem");n===null&&(n=document.createElement("div"),n.id="noVNC_mouse_capture_elem",n.style.position="fixed",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",n.style.zIndex=1e4,n.style.display="none",document.body.appendChild(n),n.addEventListener("contextmenu",g),n.addEventListener("mousemove",g),n.addEventListener("mouseup",g)),document.captureElement=a,_.observe(a,{attributes:!0}),s(),n.style.display="",window.addEventListener("mousemove",g),window.addEventListener("mouseup",g)}}function e(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;b=document.captureElement,document.captureElement=null,_.disconnect();var a=document.getElementById("noVNC_mouse_capture_elem");a.style.display="none",window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",g)}}},w7YG:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.StreamCipher,g=v.algo,s=g.RC4=b.extend({_doReset:function(){for(var e=this._key,a=e.words,n=e.sigBytes,l=this._S=[],r=0;r<256;r++)l[r]=r;for(var r=0,i=0;r<256;r++){var t=r%n,o=a[t>>>2]>>>24-t%4*8&255;i=(i+l[r]+o)%256;var c=l[r];l[r]=l[i],l[i]=c}this._i=this._j=0},_doProcessBlock:function(e,a){e[a]^=_.call(this)},keySize:256/32,ivSize:0});function _(){for(var e=this._S,a=this._i,n=this._j,l=0,r=0;r<4;r++){a=(a+1)%256,n=(n+e[a])%256;var i=e[a];e[a]=e[n],e[n]=i,l|=e[(e[a]+e[n])%256]<<24-r*8}return this._i=a,this._j=n,l}v.RC4=b._createHelper(s);var p=g.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)_.call(this)}});v.RC4Drop=b._createHelper(p)}(),I.RC4})},wCXF:function(j,W,y){"use strict";y.d(W,"a",function(){return Le});var I=y("rePB"),v=y("VTBJ"),T=y("KQm4"),b=y("U8pU"),g=y("ODXe"),s=y("q1tI"),_=y("TSYQ"),p=y.n(_),e=y("Gytx"),a=y.n(e),n=y("Kwbf"),l=y("t23M"),r=y("qx4F"),i=y("6eGT"),t=y("IBYe"),o=y("Ff2n"),c=y("c+Xe"),d=y("fyJ8"),f=y("biw7");function h(Ge,Me,gt,Te,Ye){var Ze=gt[Ge]||{},Ve=gt[Me]||{},Fe,Be;Ze.fixed==="left"?Fe=Te.left[Ge]:Ve.fixed==="right"&&(Be=Te.right[Me]);var _e=!1,Ae=!1,fe=!1,ke=!1,Je=gt[Me+1],ne=gt[Ge-1];if(Ye==="rtl"){if(Fe!==void 0){var Qe=ne&&ne.fixed==="left";ke=!Qe}else if(Be!==void 0){var dt=Je&&Je.fixed==="right";fe=!dt}}else if(Fe!==void 0){var Ke=Je&&Je.fixed==="left";_e=!Ke}else if(Be!==void 0){var et=ne&&ne.fixed==="right";Ae=!et}return{fixLeft:Fe,fixRight:Be,lastFixLeft:_e,firstFixRight:Ae,lastFixRight:fe,firstFixLeft:ke,isSticky:Te.isSticky}}var u=y("sR1s");function E(Ge){var Me=Ge.cells,gt=Ge.stickyOffsets,Te=Ge.flattenColumns,Ye=Ge.rowComponent,Ze=Ge.cellComponent,Ve=Ge.onHeaderRow,Fe=Ge.index,Be=s.useContext(f.a),_e=Be.prefixCls,Ae=Be.direction,fe;Ve&&(fe=Ve(Me.map(function(Je){return Je.column}),Fe));var ke=Object(u.a)(Me.map(function(Je){return Je.column}));return s.createElement(Ye,Object.assign({},fe),Me.map(function(Je,ne){var Qe=Je.column,dt=h(Je.colStart,Je.colEnd,Te,gt,Ae),Ke;return Qe&&Qe.onHeaderCell&&(Ke=Je.column.onHeaderCell(Qe)),s.createElement(d.a,Object.assign({},Je,{ellipsis:Qe.ellipsis,align:Qe.align,component:Ze,prefixCls:_e,key:ke[ne]},dt,{additionalProps:Ke,rowType:"header"}))}))}E.displayName="HeaderRow";var x=E;function O(Ge){var Me=[];function gt(Ve,Fe){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Me[Be]=Me[Be]||[];var _e=Fe,Ae=Ve.filter(Boolean).map(function(fe){var ke={key:fe.key,className:fe.className||"",children:fe.title,column:fe,colStart:_e},Je=1,ne=fe.children;return ne&&ne.length>0&&(Je=gt(ne,_e,Be+1).reduce(function(Qe,dt){return Qe+dt},0),ke.hasSubColumns=!0),"colSpan"in fe&&(Je=fe.colSpan),"rowSpan"in fe&&(ke.rowSpan=fe.rowSpan),ke.colSpan=Je,ke.colEnd=ke.colStart+Je-1,Me[Be].push(ke),_e+=Je,Je});return Ae}gt(Ge,0);for(var Te=Me.length,Ye=function(Fe){Me[Fe].forEach(function(Be){!("rowSpan"in Be)&&!Be.hasSubColumns&&(Be.rowSpan=Te-Fe)})},Ze=0;Ze<Te;Ze+=1)Ye(Ze);return Me}function C(Ge){var Me=Ge.stickyOffsets,gt=Ge.columns,Te=Ge.flattenColumns,Ye=Ge.onHeaderRow,Ze=s.useContext(f.a),Ve=Ze.prefixCls,Fe=Ze.getComponent,Be=s.useMemo(function(){return O(gt)},[gt]),_e=Fe(["header","wrapper"],"thead"),Ae=Fe(["header","row"],"tr"),fe=Fe(["header","cell"],"th");return s.createElement(_e,{className:"".concat(Ve,"-thead")},Be.map(function(ke,Je){var ne=s.createElement(x,{key:Je,flattenColumns:Te,cells:ke,stickyOffsets:Me,rowComponent:Ae,cellComponent:fe,onHeaderRow:Ye,index:Je});return ne}))}var w=C,S=y("hW8S");function D(Ge){for(var Me=Ge.colWidths,gt=Ge.columns,Te=Ge.columCount,Ye=[],Ze=Te||gt.length,Ve=!1,Fe=Ze-1;Fe>=0;Fe-=1){var Be=Me[Fe],_e=gt&&gt[Fe],Ae=_e&&_e[S.a];(Be||Ae||Ve)&&(Ye.unshift(s.createElement("col",Object.assign({key:Fe,style:{width:Be,minWidth:Be}},Ae))),Ve=!0)}return s.createElement("colgroup",null,Ye)}var R=D;function P(Ge,Me){return Object(s.useMemo)(function(){for(var gt=[],Te=0;Te<Me;Te+=1){var Ye=Ge[Te];if(Ye!==void 0)gt[Te]=Ye;else return null}return gt},[Ge.join("_"),Me])}var N=s.forwardRef(function(Ge,Me){var gt=Ge.noData,Te=Ge.columns,Ye=Ge.flattenColumns,Ze=Ge.colWidths,Ve=Ge.columCount,Fe=Ge.stickyOffsets,Be=Ge.direction,_e=Ge.fixHeader,Ae=Ge.offsetHeader,fe=Ge.stickyClassName,ke=Ge.onScroll,Je=Object(o.a)(Ge,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ne=s.useContext(f.a),Qe=ne.prefixCls,dt=ne.scrollbarSize,Ke=ne.isSticky,et=Ke&&!_e?0:dt,rt=s.useRef(null),bt=s.useCallback(function(Dt){Object(c.b)(Me,Dt),Object(c.b)(rt,Dt)},[]);s.useEffect(function(){var Dt;function Kt(vt){var Ht=vt.currentTarget,Ft=vt.deltaX;Ft&&(ke({currentTarget:Ht,scrollLeft:Ht.scrollLeft+Ft}),vt.preventDefault())}return(Dt=rt.current)===null||Dt===void 0||Dt.addEventListener("wheel",Kt),function(){var vt;(vt=rt.current)===null||vt===void 0||vt.removeEventListener("wheel",Kt)}},[]);var ut=Ye[Ye.length-1],ot={fixed:ut?ut.fixed:null,onHeaderCell:function(){return{className:"".concat(Qe,"-cell-scrollbar")}}},Ue=Object(s.useMemo)(function(){return et?[].concat(Object(T.a)(Te),[ot]):Te},[et,Te]),We=Object(s.useMemo)(function(){return et?[].concat(Object(T.a)(Ye),[ot]):Ye},[et,Ye]),ft=Object(s.useMemo)(function(){var Dt=Fe.right,Kt=Fe.left;return Object(v.a)(Object(v.a)({},Fe),{},{left:Be==="rtl"?[].concat(Object(T.a)(Kt.map(function(vt){return vt+et})),[0]):Kt,right:Be==="rtl"?Dt:[].concat(Object(T.a)(Dt.map(function(vt){return vt+et})),[0]),isSticky:Ke})},[et,Fe,Ke]),nt=P(Ze,Ve);return s.createElement("div",{style:Object(v.a)({overflow:"hidden"},Ke?{top:Ae}:{}),ref:bt,className:p()("".concat(Qe,"-header"),Object(I.a)({},fe,!!fe))},s.createElement("table",{style:{tableLayout:"fixed",visibility:gt||nt?null:"hidden"}},s.createElement(R,{colWidths:nt?[].concat(Object(T.a)(nt),[et]):[],columCount:Ve+1,columns:We}),s.createElement(w,Object.assign({},Je,{stickyOffsets:ft,columns:Ue,flattenColumns:We}))))});N.displayName="FixedHeader";var M=N,z=s.createContext(null),X=z;function k(Ge){var Me=Ge.prefixCls,gt=Ge.children,Te=Ge.component,Ye=Ge.cellComponent,Ze=Ge.fixHeader,Ve=Ge.fixColumn,Fe=Ge.horizonScroll,Be=Ge.className,_e=Ge.expanded,Ae=Ge.componentWidth,fe=Ge.colSpan,ke=s.useContext(f.a),Je=ke.scrollbarSize;return s.useMemo(function(){var ne=gt;return Ve&&(ne=s.createElement("div",{style:{width:Ae-(Ze?Je:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Me,"-expanded-row-fixed")},ne)),s.createElement(Te,{className:Be,style:{display:_e?null:"none"}},s.createElement(d.a,{component:Ye,prefixCls:Me,colSpan:fe},ne))},[gt,Te,Ze,Fe,Be,_e,Ae,fe,Je])}var F=k;function U(Ge){var Me=Ge.className,gt=Ge.style,Te=Ge.record,Ye=Ge.index,Ze=Ge.rowKey,Ve=Ge.getRowKey,Fe=Ge.rowExpandable,Be=Ge.expandedKeys,_e=Ge.onRow,Ae=Ge.indent,fe=Ae===void 0?0:Ae,ke=Ge.rowComponent,Je=Ge.cellComponent,ne=Ge.childrenColumnName,Qe=s.useContext(f.a),dt=Qe.prefixCls,Ke=Qe.fixedInfoList,et=s.useContext(X),rt=et.fixHeader,bt=et.fixColumn,ut=et.horizonScroll,ot=et.componentWidth,Ue=et.flattenColumns,We=et.expandableType,ft=et.expandRowByClick,nt=et.onTriggerExpand,Dt=et.rowClassName,Kt=et.expandedRowClassName,vt=et.indentSize,Ht=et.expandIcon,Ft=et.expandedRowRender,Lt=et.expandIconColumnIndex,zt=s.useState(!1),Qt=Object(g.a)(zt,2),bn=Qt[0],Zt=Qt[1],$t=Be&&Be.has(Ge.recordKey);s.useEffect(function(){$t&&Zt(!0)},[$t]);var Zn=We==="row"&&(!Fe||Fe(Te)),Fn=We==="nest",Hn=ne&&Te&&Te[ne],Yn=Zn||Fn,jn;_e&&(jn=_e(Te,Ye));var or=function(V){if(ft&&Yn&&nt(Te,V),jn&&jn.onClick){for(var J,ie=arguments.length,Re=new Array(ie>1?ie-1:0),he=1;he<ie;he++)Re[he-1]=arguments[he];(J=jn).onClick.apply(J,[V].concat(Re))}},jr;typeof Dt=="string"?jr=Dt:typeof Dt=="function"&&(jr=Dt(Te,Ye,fe));var qt=Object(u.a)(Ue),wn=s.createElement(ke,Object.assign({},jn,{"data-row-key":Ze,className:p()(Me,"".concat(dt,"-row"),"".concat(dt,"-row-level-").concat(fe),jr,jn&&jn.className),style:Object(v.a)(Object(v.a)({},gt),jn?jn.style:null),onClick:or}),Ue.map(function(ge,V){var J=ge.render,ie=ge.dataIndex,Re=ge.className,he=qt[V],it=Ke[V],Ut;V===(Lt||0)&&Fn&&(Ut=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(vt*fe,"px")},className:"".concat(dt,"-row-indent indent-level-").concat(fe)}),Ht({prefixCls:dt,expanded:$t,expandable:Hn,record:Te,onExpand:nt})));var Jt;return ge.onCell&&(Jt=ge.onCell(Te,Ye)),s.createElement(d.a,Object.assign({className:Re,ellipsis:ge.ellipsis,align:ge.align,component:Je,prefixCls:dt,key:he,record:Te,index:Ye,dataIndex:ie,render:J,shouldCellUpdate:ge.shouldCellUpdate},it,{appendNode:Ut,additionalProps:Jt}))})),Kr;if(Zn&&(bn||$t)){var Li=Ft(Te,Ye,fe+1,$t),Mr=Kt&&Kt(Te,Ye,fe);Kr=s.createElement(F,{expanded:$t,className:p()("".concat(dt,"-expanded-row"),"".concat(dt,"-expanded-row-level-").concat(fe+1),Mr),prefixCls:dt,fixHeader:rt,fixColumn:bt,horizonScroll:ut,component:ke,componentWidth:ot,cellComponent:Je,colSpan:Ue.length},Li)}var Qn;return Hn&&$t&&(Qn=(Te[ne]||[]).map(function(ge,V){var J=Ve(ge,V);return s.createElement(U,Object.assign({},Ge,{key:J,rowKey:J,record:ge,recordKey:J,index:V,indent:fe+1}))})),s.createElement(s.Fragment,null,wn,Kr,Qn)}U.displayName="BodyRow";var L=U,B=s.createContext(null),Z=B;function re(Ge){var Me=Ge.columnKey,gt=Ge.onColumnResize,Te=s.useRef();return s.useEffect(function(){Te.current&&gt(Me,Te.current.offsetWidth)},[]),s.createElement(l.a,{onResize:function(Ze){var Ve=Ze.offsetWidth;gt(Me,Ve)}},s.createElement("td",{ref:Te,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function me(Ge){var Me=Ge.data,gt=Ge.getRowKey,Te=Ge.measureColumnWidth,Ye=Ge.expandedKeys,Ze=Ge.onRow,Ve=Ge.rowExpandable,Fe=Ge.emptyNode,Be=Ge.childrenColumnName,_e=s.useContext(Z),Ae=_e.onColumnResize,fe=s.useContext(f.a),ke=fe.prefixCls,Je=fe.getComponent,ne=s.useContext(X),Qe=ne.fixHeader,dt=ne.horizonScroll,Ke=ne.flattenColumns,et=ne.componentWidth;return s.useMemo(function(){var rt=Je(["body","wrapper"],"tbody"),bt=Je(["body","row"],"tr"),ut=Je(["body","cell"],"td"),ot;Me.length?ot=Me.map(function(We,ft){var nt=gt(We,ft);return s.createElement(L,{key:nt,rowKey:nt,record:We,recordKey:nt,index:ft,rowComponent:bt,cellComponent:ut,expandedKeys:Ye,onRow:Ze,getRowKey:gt,rowExpandable:Ve,childrenColumnName:Be})}):ot=s.createElement(F,{expanded:!0,className:"".concat(ke,"-placeholder"),prefixCls:ke,fixHeader:Qe,fixColumn:dt,horizonScroll:dt,component:bt,componentWidth:et,cellComponent:ut,colSpan:Ke.length},Fe);var Ue=Object(u.a)(Ke);return s.createElement(rt,{className:"".concat(ke,"-tbody")},Te&&s.createElement("tr",{"aria-hidden":"true",className:"".concat(ke,"-measure-row"),style:{height:0}},Ue.map(function(We){return s.createElement(re,{key:We,columnKey:We,onColumnResize:Ae})})),ot)},[Me,ke,Ze,Te,Ye,gt,Je,et,Fe,Ke])}var Ee=s.memo(me);Ee.displayName="Body";var De=Ee,te=y("wRmb"),Ce=y("xEkU"),we=y.n(Ce);function ce(Ge){var Me=Object(s.useRef)(Ge),gt=Object(s.useState)({}),Te=Object(g.a)(gt,2),Ye=Te[1],Ze=Object(s.useRef)(null),Ve=Object(s.useRef)([]);function Fe(Be){Ze.current===null&&(Ve.current=[],Ze.current=we()(function(){Ve.current.forEach(function(_e){Me.current=_e(Me.current)}),Ze.current=null,Ye({})})),Ve.current.push(Be)}return Object(s.useEffect)(function(){return function(){we.a.cancel(Ze.current)}},[]),[Me.current,Fe]}function le(Ge){var Me=Object(s.useRef)(Ge),gt=Object(s.useRef)(null);function Te(){window.clearTimeout(gt.current)}function Ye(Ve){Me.current=Ve,Te(),gt.current=window.setTimeout(function(){Me.current=null,gt.current=null},100)}function Ze(){return Me.current}return Object(s.useEffect)(function(){return Te},[]),[Ye,Ze]}function oe(Ge,Me,gt){var Te=Object(s.useMemo)(function(){for(var Ye=[],Ze=[],Ve=0,Fe=0,Be=0;Be<Me;Be+=1)if(gt==="rtl"){Ze[Be]=Fe,Fe+=Ge[Be]||0;var _e=Me-Be-1;Ye[_e]=Ve,Ve+=Ge[_e]||0}else{Ye[Be]=Ve,Ve+=Ge[Be]||0;var Ae=Me-Be-1;Ze[Ae]=Fe,Fe+=Ge[Ae]||0}return{left:Ye,right:Ze}},[Ge,Me,gt]);return Te}var xe=oe;function q(Ge){var Me=Ge.className,gt=Ge.children;return s.createElement("div",{className:Me},gt)}var se=q,Ne=y("n6Qo");function de(Ge){var Me,gt=Ge.prefixCls,Te=Ge.record,Ye=Ge.onExpand,Ze=Ge.expanded,Ve=Ge.expandable,Fe="".concat(gt,"-row-expand-icon");if(!Ve)return s.createElement("span",{className:p()(Fe,"".concat(gt,"-row-spaced"))});var Be=function(Ae){Ye(Te,Ae),Ae.stopPropagation()};return s.createElement("span",{className:p()(Fe,(Me={},Object(I.a)(Me,"".concat(gt,"-row-expanded"),Ze),Object(I.a)(Me,"".concat(gt,"-row-collapsed"),!Ze),Me)),onClick:Be})}function $(Ge,Me,gt){var Te=[];function Ye(Ze){(Ze||[]).forEach(function(Ve,Fe){Te.push(Me(Ve,Fe)),Ye(Ve[gt])})}return Ye(Ge),Te}var Q=y("zT1h"),Y=y("y0+3"),ue=function(Me,gt){var Te,Ye,Ze=Me.scrollBodyRef,Ve=Me.onScroll,Fe=Me.offsetScroll,Be=s.useContext(f.a),_e=Be.prefixCls,Ae=((Te=Ze.current)===null||Te===void 0?void 0:Te.scrollWidth)||0,fe=((Ye=Ze.current)===null||Ye===void 0?void 0:Ye.clientWidth)||0,ke=Ae&&fe*(fe/Ae),Je=s.useRef(),ne=ce({scrollLeft:0,isHiddenScrollBar:!1}),Qe=Object(g.a)(ne,2),dt=Qe[0],Ke=Qe[1],et=s.useRef({delta:0,x:0}),rt=s.useState(!1),bt=Object(g.a)(rt,2),ut=bt[0],ot=bt[1],Ue=function(){ot(!1)},We=function(vt){vt.persist(),et.current.delta=vt.pageX-dt.scrollLeft,et.current.x=0,ot(!0),vt.preventDefault()},ft=function(vt){var Ht,Ft=vt||((Ht=window)===null||Ht===void 0?void 0:Ht.event),Lt=Ft.buttons;if(!ut||Lt===0){ut&&ot(!1);return}var zt=et.current.x+vt.pageX-et.current.x-et.current.delta;zt<=0&&(zt=0),zt+ke>=fe&&(zt=fe-ke),Ve({scrollLeft:zt/fe*(Ae+2)}),et.current.x=vt.pageX},nt=function(){var vt=Object(Y.b)(Ze.current).top,Ht=vt+Ze.current.offsetHeight,Ft=document.documentElement.scrollTop+window.innerHeight;Ht-Object(r.a)()<=Ft||vt>=Ft-Fe?Ke(function(Lt){return Object(v.a)(Object(v.a)({},Lt),{},{isHiddenScrollBar:!0})}):Ke(function(Lt){return Object(v.a)(Object(v.a)({},Lt),{},{isHiddenScrollBar:!1})})},Dt=function(vt){Ke(function(Ht){return Object(v.a)(Object(v.a)({},Ht),{},{scrollLeft:vt/Ae*fe||0})})};return s.useImperativeHandle(gt,function(){return{setScrollLeft:Dt}}),s.useEffect(function(){var Kt=Object(Q.a)(document.body,"mouseup",Ue,!1),vt=Object(Q.a)(document.body,"mousemove",ft,!1);return nt(),function(){Kt.remove(),vt.remove()}},[ke,ut]),s.useEffect(function(){var Kt=Object(Q.a)(window,"scroll",nt,!1),vt=Object(Q.a)(window,"resize",nt,!1);return function(){Kt.remove(),vt.remove()}},[]),s.useEffect(function(){dt.isHiddenScrollBar||Ke(function(Kt){var vt,Ht;return Object(v.a)(Object(v.a)({},Kt),{},{scrollLeft:Ze.current.scrollLeft/((vt=Ze.current)===null||vt===void 0?void 0:vt.scrollWidth)*((Ht=Ze.current)===null||Ht===void 0?void 0:Ht.clientWidth)})})},[dt.isHiddenScrollBar]),Ae<=fe||!ke||dt.isHiddenScrollBar?null:s.createElement("div",{style:{height:Object(r.a)(),width:fe,bottom:Fe},className:"".concat(_e,"-sticky-scroll")},s.createElement("div",{onMouseDown:We,ref:Je,className:p()("".concat(_e,"-sticky-scroll-bar"),Object(I.a)({},"".concat(_e,"-sticky-scroll-bar-active"),ut)),style:{width:"".concat(ke,"px"),transform:"translate3d(".concat(dt.scrollLeft,"px, 0, 0)")}}))},ae=s.forwardRef(ue);function be(Ge,Me){return s.useMemo(function(){var gt=!!Ge;return{isSticky:gt,stickyClassName:gt?"".concat(Me,"-sticky-header"):"",offsetHeader:Object(b.a)(Ge)==="object"&&Ge.offsetHeader||0,offsetScroll:Object(b.a)(Ge)==="object"&&Ge.offsetScroll||0}},[Ge,Me])}var Ie=[],pe={},Le="rc-table-internal-hook",ve=s.memo(function(Ge){var Me=Ge.children;return Me},function(Ge,Me){return a()(Ge.props,Me.props)?Ge.pingLeft!==Me.pingLeft||Ge.pingRight!==Me.pingRight:!1});function Xe(Ge){var Me,gt=Ge.prefixCls,Te=Ge.className,Ye=Ge.rowClassName,Ze=Ge.style,Ve=Ge.data,Fe=Ge.rowKey,Be=Ge.scroll,_e=Ge.tableLayout,Ae=Ge.direction,fe=Ge.title,ke=Ge.footer,Je=Ge.summary,ne=Ge.id,Qe=Ge.showHeader,dt=Ge.components,Ke=Ge.emptyText,et=Ge.onRow,rt=Ge.onHeaderRow,bt=Ge.internalHooks,ut=Ge.transformColumns,ot=Ge.internalRefs,Ue=Ge.sticky,We=Ve||Ie,ft=!!We.length,nt=s.useState(0),Dt=Object(g.a)(nt,2),Kt=Dt[0],vt=Dt[1];s.useEffect(function(){vt(Object(r.a)())});var Ht=s.useMemo(function(){return Object(u.c)(dt,{})},[dt]),Ft=s.useCallback(function(bi,Nn){return Object(u.b)(Ht,bi)||Nn},[Ht]),Lt=s.useMemo(function(){return typeof Fe=="function"?Fe:function(bi){var Nn=bi&&bi[Fe];return Nn}},[Fe]),zt=Object(S.c)(Ge),Qt=zt.expandIcon,bn=zt.expandedRowKeys,Zt=zt.defaultExpandedRowKeys,$t=zt.defaultExpandAllRows,Zn=zt.expandedRowRender,Fn=zt.onExpand,Hn=zt.onExpandedRowsChange,Yn=zt.expandRowByClick,jn=zt.rowExpandable,or=zt.expandIconColumnIndex,jr=zt.expandedRowClassName,qt=zt.childrenColumnName,wn=zt.indentSize,Kr=Qt||de,Li=qt||"children",Mr=s.useMemo(function(){return Zn?"row":Ge.expandable&&bt===Le&&Ge.expandable.__PARENT_RENDER_ICON__||We.some(function(bi){return bi&&Object(b.a)(bi)==="object"&&bi[Li]})?"nest":!1},[!!Zn,We]),Qn=s.useState(function(){return Zt||($t?$(We,Lt,Li):[])}),ge=Object(g.a)(Qn,2),V=ge[0],J=ge[1],ie=s.useMemo(function(){return new Set(bn||V||[])},[bn,V]),Re=s.useCallback(function(bi){var Nn=Lt(bi,We.indexOf(bi)),sn,Bn=ie.has(Nn);Bn?(ie.delete(Nn),sn=Object(T.a)(ie)):sn=[].concat(Object(T.a)(ie),[Nn]),J(sn),Fn&&Fn(!Bn,bi),Hn&&Hn(sn)},[Lt,ie,We,Fn,Hn]),he=s.useState(0),it=Object(g.a)(he,2),Ut=it[0],Jt=it[1],an=Object(te.b)(Object(v.a)(Object(v.a)(Object(v.a)({},Ge),zt),{},{expandable:!!Zn,expandedKeys:ie,getRowKey:Lt,onTriggerExpand:Re,expandIcon:Kr,expandIconColumnIndex:or,direction:Ae}),bt===Le?ut:null),Pt=Object(g.a)(an,2),cn=Pt[0],Rn=Pt[1],Jn=s.useMemo(function(){return{columns:cn,flattenColumns:Rn}},[cn,Rn]),ir=s.useRef(),tr=s.useRef(),fr=s.useRef(),Dr=s.useState(!1),Yi=Object(g.a)(Dr,2),oi=Yi[0],di=Yi[1],_a=s.useState(!1),Si=Object(g.a)(_a,2),ga=Si[0],mo=Si[1],ao=ce(new Map),yo=Object(g.a)(ao,2),Ia=yo[0],Za=yo[1],Ri=Object(u.a)(Rn),ri=Ri.map(function(bi){return Ia.get(bi)}),hi=s.useMemo(function(){return ri},[ri.join("_")]),Mi=xe(hi,Rn.length,Ae),Nr=Be&&Object(u.d)(Be.y),Ar=Be&&Object(u.d)(Be.x),fi=Ar&&Rn.some(function(bi){var Nn=bi.fixed;return Nn}),wr=s.useRef(),vi=be(Ue,gt),pr=vi.isSticky,ta=vi.offsetHeader,Qi=vi.offsetScroll,ea=vi.stickyClassName,Eo,ca,qa;Nr&&(ca={overflowY:"scroll",maxHeight:Be.y}),Ar&&(Eo={overflowX:"auto"},Nr||(ca={overflowY:"hidden"}),qa={width:Be.x===!0?"auto":Be.x,minWidth:"100%"});var ja=s.useCallback(function(bi,Nn){Za(function(sn){var Bn=new Map(sn);return Bn.set(bi,Nn),Bn})},[]),Ba=le(null),Ka=Object(g.a)(Ba,2),Ha=Ka[0],Mo=Ka[1];function Oo(bi,Nn){if(!Nn)return;typeof Nn=="function"?Nn(bi):Nn.scrollLeft!==bi&&(Nn.scrollLeft=bi)}var Ra=function(Nn){var sn=Nn.currentTarget,Bn=Nn.scrollLeft,Dn=typeof Bn=="number"?Bn:sn.scrollLeft,hr=sn||pe;if(!Mo()||Mo()===hr){var Ir;Ha(hr),Oo(Dn,tr.current),Oo(Dn,fr.current),Oo(Dn,(Ir=wr.current)===null||Ir===void 0?void 0:Ir.setScrollLeft)}if(sn){var Zr=sn.scrollWidth,yi=sn.clientWidth;di(Dn>0),mo(Dn<Zr-yi)}},Vo=function(){fr.current&&Ra({currentTarget:fr.current})},ar=function(Nn){var sn=Nn.width;Vo(),Jt(ir.current?ir.current.offsetWidth:sn)};s.useEffect(function(){return Vo},[]),s.useEffect(function(){Ar&&Vo()},[Ar]),s.useEffect(function(){bt===Le&&ot&&(ot.body.current=fr.current)});var yr=Ft(["table"],"table"),nr=s.useMemo(function(){return _e||(fi?Be.x==="max-content"?"auto":"fixed":Nr||Rn.some(function(bi){var Nn=bi.ellipsis;return Nn})?"fixed":"auto")},[Nr,fi,Rn,_e]),Fr,si={colWidths:hi,columCount:Rn.length,stickyOffsets:Mi,onHeaderRow:rt,fixHeader:Nr},Ci=s.useMemo(function(){return ft?null:typeof Ke=="function"?Ke():Ke},[ft,Ke]),Or=s.createElement(De,{data:We,measureColumnWidth:Nr||Ar||pr,expandedKeys:ie,rowExpandable:jn,getRowKey:Lt,onRow:et,emptyNode:Ci,childrenColumnName:Li}),na=s.createElement(R,{colWidths:Rn.map(function(bi){var Nn=bi.width;return Nn}),columns:Rn}),Ea=Je&&s.createElement(Ne.b,null,Je(We)),Wr=Ft(["body"]);if(Nr||pr){var $a;typeof Wr=="function"?($a=Wr(We,{scrollbarSize:Kt,ref:fr,onScroll:Ra}),si.colWidths=Rn.map(function(bi,Nn){var sn=bi.width,Bn=Nn===cn.length-1?sn-Kt:sn;return typeof Bn=="number"&&!Number.isNaN(Bn)?Bn:(Object(n.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):$a=s.createElement("div",{style:Object(v.a)(Object(v.a)({},Eo),ca),onScroll:Ra,ref:fr,className:p()("".concat(gt,"-body"))},s.createElement(yr,{style:Object(v.a)(Object(v.a)({},qa),{},{tableLayout:nr})},na,Or,Ea),pr&&s.createElement(ae,{ref:wr,offsetScroll:Qi,scrollBodyRef:fr,onScroll:Ra})),Fr=s.createElement(s.Fragment,null,Qe!==!1&&s.createElement(M,Object.assign({noData:!We.length},si,Jn,{direction:Ae,offsetHeader:ta,stickyClassName:ea,ref:tr,onScroll:Ra})),$a)}else Fr=s.createElement("div",{style:Object(v.a)(Object(v.a)({},Eo),ca),className:p()("".concat(gt,"-content")),onScroll:Ra,ref:fr},s.createElement(yr,{style:Object(v.a)(Object(v.a)({},qa),{},{tableLayout:nr})},na,Qe!==!1&&s.createElement(w,Object.assign({},si,Jn)),Or,Ea));var _i=Object(S.b)(Ge),da=s.createElement("div",Object.assign({className:p()(gt,Te,(Me={},Object(I.a)(Me,"".concat(gt,"-rtl"),Ae==="rtl"),Object(I.a)(Me,"".concat(gt,"-ping-left"),oi),Object(I.a)(Me,"".concat(gt,"-ping-right"),ga),Object(I.a)(Me,"".concat(gt,"-layout-fixed"),_e==="fixed"),Object(I.a)(Me,"".concat(gt,"-fixed-header"),Nr),Object(I.a)(Me,"".concat(gt,"-fixed-column"),fi),Object(I.a)(Me,"".concat(gt,"-scroll-horizontal"),Ar),Object(I.a)(Me,"".concat(gt,"-has-fix-left"),Rn[0]&&Rn[0].fixed),Object(I.a)(Me,"".concat(gt,"-has-fix-right"),Rn[Rn.length-1]&&Rn[Rn.length-1].fixed==="right"),Me)),style:Ze,id:ne,ref:ir},_i),s.createElement(ve,{pingLeft:oi,pingRight:ga,props:Object(v.a)(Object(v.a)({},Ge),{},{stickyOffsets:Mi,mergedExpandedKeys:ie})},fe&&s.createElement(se,{className:"".concat(gt,"-title")},fe(We)),s.createElement("div",{className:"".concat(gt,"-container")},Fr),ke&&s.createElement(se,{className:"".concat(gt,"-footer")},ke(We))));Ar&&(da=s.createElement(l.a,{onResize:ar},da));var xa=s.useMemo(function(){return{prefixCls:gt,getComponent:Ft,scrollbarSize:Kt,direction:Ae,fixedInfoList:Rn.map(function(bi,Nn){return h(Nn,Nn,Rn,Mi,Ae)}),isSticky:pr}},[gt,Ft,Kt,Ae,Rn,Mi,Ae,pr]),Wa=s.useMemo(function(){return Object(v.a)(Object(v.a)({},Jn),{},{tableLayout:nr,rowClassName:Ye,expandedRowClassName:jr,componentWidth:Ut,fixHeader:Nr,fixColumn:fi,horizonScroll:Ar,expandIcon:Kr,expandableType:Mr,expandRowByClick:Yn,expandedRowRender:Zn,onTriggerExpand:Re,expandIconColumnIndex:or,indentSize:wn})},[Jn,nr,Ye,jr,Ut,Nr,fi,Ar,Kr,Mr,Yn,Zn,Re,or,wn]),Yo=s.useMemo(function(){return{onColumnResize:ja}},[ja]);return s.createElement(f.a.Provider,{value:xa},s.createElement(X.Provider,{value:Wa},s.createElement(Z.Provider,{value:Yo},da)))}Xe.Column=t.a,Xe.ColumnGroup=i.a,Xe.Summary=Ne.a,Xe.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var $e=W.b=Xe},wRmb:function(j,W,y){"use strict";y.d(W,"a",function(){return a});var I=y("rePB"),v=y("KQm4"),T=y("VTBJ"),b=y("Ff2n"),g=y("q1tI"),s=y.n(g),_=y("Kwbf"),p=y("Zm9Q"),e=y("hW8S");function a(t){return Object(p.a)(t).filter(function(o){return g.isValidElement(o)}).map(function(o){var c=o.key,d=o.props,f=d.children,h=Object(b.a)(d,["children"]),u=Object(T.a)({key:c},h);return f&&(u.children=a(f)),u})}function n(t){return t.reduce(function(o,c){var d=c.fixed,f=d===!0?"left":d,h=c.children;return h&&h.length>0?[].concat(Object(v.a)(o),Object(v.a)(n(h).map(function(u){return Object(T.a)({fixed:f},u)}))):[].concat(Object(v.a)(o),[Object(T.a)(Object(T.a)({},c),{},{fixed:f})])},[])}function l(t){for(var o=!0,c=0;c<t.length;c+=1){var d=t[c];if(o&&d.fixed!=="left")o=!1;else if(!o&&d.fixed==="left"){Object(_.a)(!1,"Index ".concat(c-1," of `columns` missing `fixed='left'` prop."));break}}for(var f=!0,h=t.length-1;h>=0;h-=1){var u=t[h];if(f&&u.fixed!=="right")f=!1;else if(!f&&u.fixed==="right"){Object(_.a)(!1,"Index ".concat(h+1," of `columns` missing `fixed='right'` prop."));break}}}function r(t){return t.map(function(o){var c=o.fixed,d=Object(b.a)(o,["fixed"]),f=c;return c==="left"?f="right":c==="right"&&(f="left"),Object(T.a)({fixed:f},d)})}function i(t,o){var c=t.prefixCls,d=t.columns,f=t.children,h=t.expandable,u=t.expandedKeys,E=t.getRowKey,x=t.onTriggerExpand,O=t.expandIcon,C=t.rowExpandable,w=t.expandIconColumnIndex,S=t.direction,D=t.expandRowByClick,R=g.useMemo(function(){return d||a(f)},[d,f]),P=g.useMemo(function(){if(h){var z,X=w||0,k=R[X],F=(z={},Object(I.a)(z,e.a,{className:"".concat(c,"-expand-icon-col")}),Object(I.a)(z,"title",""),Object(I.a)(z,"fixed",k?k.fixed:null),Object(I.a)(z,"className","".concat(c,"-row-expand-icon-cell")),Object(I.a)(z,"render",function(B,Z,re){var me=E(Z,re),Ee=u.has(me),De=C?C(Z):!0,te=O({prefixCls:c,expanded:Ee,expandable:De,record:Z,onExpand:x});return D?g.createElement("span",{onClick:function(we){return we.stopPropagation()}},te):te}),z),U=R.slice();return X>=0&&U.splice(X,0,F),U}return R},[h,R,E,u,O,S]),N=g.useMemo(function(){var z=P;return o&&(z=o(z)),z.length||(z=[{render:function(){return null}}]),z},[o,P,S]),M=g.useMemo(function(){return S==="rtl"?r(n(N)):n(N)},[N,S]);return[N,M]}W.b=i},wZgz:function(j,W,y){(function(I,v,T){j.exports=W=v(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.BlockCipher,g=v.algo,s=[],_=[],p=[],e=[],a=[],n=[],l=[],r=[],i=[],t=[];(function(){for(var d=[],f=0;f<256;f++)f<128?d[f]=f<<1:d[f]=f<<1^283;for(var h=0,u=0,f=0;f<256;f++){var E=u^u<<1^u<<2^u<<3^u<<4;E=E>>>8^E&255^99,s[h]=E,_[E]=h;var x=d[h],O=d[x],C=d[O],w=d[E]*257^E*16843008;p[h]=w<<24|w>>>8,e[h]=w<<16|w>>>16,a[h]=w<<8|w>>>24,n[h]=w;var w=C*16843009^O*65537^x*257^h*16843008;l[E]=w<<24|w>>>8,r[E]=w<<16|w>>>16,i[E]=w<<8|w>>>24,t[E]=w,h?(h=x^d[d[d[C^x]]],u^=d[d[u]]):h=u=1}})();var o=[0,1,2,4,8,16,32,64,128,27,54],c=g.AES=b.extend({_doReset:function(){var d;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var f=this._keyPriorReset=this._key,h=f.words,u=f.sigBytes/4,E=this._nRounds=u+6,x=(E+1)*4,O=this._keySchedule=[],C=0;C<x;C++)C<u?O[C]=h[C]:(d=O[C-1],C%u?u>6&&C%u==4&&(d=s[d>>>24]<<24|s[d>>>16&255]<<16|s[d>>>8&255]<<8|s[d&255]):(d=d<<8|d>>>24,d=s[d>>>24]<<24|s[d>>>16&255]<<16|s[d>>>8&255]<<8|s[d&255],d^=o[C/u|0]<<24),O[C]=O[C-u]^d);for(var w=this._invKeySchedule=[],S=0;S<x;S++){var C=x-S;if(S%4)var d=O[C];else var d=O[C-4];S<4||C<=4?w[S]=d:w[S]=l[s[d>>>24]]^r[s[d>>>16&255]]^i[s[d>>>8&255]]^t[s[d&255]]}},encryptBlock:function(d,f){this._doCryptBlock(d,f,this._keySchedule,p,e,a,n,s)},decryptBlock:function(d,f){var h=d[f+1];d[f+1]=d[f+3],d[f+3]=h,this._doCryptBlock(d,f,this._invKeySchedule,l,r,i,t,_);var h=d[f+1];d[f+1]=d[f+3],d[f+3]=h},_doCryptBlock:function(d,f,h,u,E,x,O,C){for(var w=this._nRounds,S=d[f]^h[0],D=d[f+1]^h[1],R=d[f+2]^h[2],P=d[f+3]^h[3],N=4,M=1;M<w;M++){var z=u[S>>>24]^E[D>>>16&255]^x[R>>>8&255]^O[P&255]^h[N++],X=u[D>>>24]^E[R>>>16&255]^x[P>>>8&255]^O[S&255]^h[N++],k=u[R>>>24]^E[P>>>16&255]^x[S>>>8&255]^O[D&255]^h[N++],F=u[P>>>24]^E[S>>>16&255]^x[D>>>8&255]^O[R&255]^h[N++];S=z,D=X,R=k,P=F}var z=(C[S>>>24]<<24|C[D>>>16&255]<<16|C[R>>>8&255]<<8|C[P&255])^h[N++],X=(C[D>>>24]<<24|C[R>>>16&255]<<16|C[P>>>8&255]<<8|C[S&255])^h[N++],k=(C[R>>>24]<<24|C[P>>>16&255]<<16|C[S>>>8&255]<<8|C[D&255])^h[N++],F=(C[P>>>24]<<24|C[S>>>16&255]<<16|C[D>>>8&255]<<8|C[R&255])^h[N++];d[f]=z,d[f+1]=X,d[f+2]=k,d[f+3]=F},keySize:256/32});v.AES=b._createHelper(c)}(),I.AES})},wbyO:function(j,W,y){(function(I,v){j.exports=W=v(y("Ib8C"))})(this,function(I){return function(){var v=I,T=v.lib,b=T.WordArray,g=v.enc,s=g.Base64url={stringify:function(p,e=!0){var a=p.words,n=p.sigBytes,l=e?this._safe_map:this._map;p.clamp();for(var r=[],i=0;i<n;i+=3)for(var t=a[i>>>2]>>>24-i%4*8&255,o=a[i+1>>>2]>>>24-(i+1)%4*8&255,c=a[i+2>>>2]>>>24-(i+2)%4*8&255,d=t<<16|o<<8|c,f=0;f<4&&i+f*.75<n;f++)r.push(l.charAt(d>>>6*(3-f)&63));var h=l.charAt(64);if(h)for(;r.length%4;)r.push(h);return r.join("")},parse:function(p,e=!0){var a=p.length,n=e?this._safe_map:this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var r=0;r<n.length;r++)l[n.charCodeAt(r)]=r}var i=n.charAt(64);if(i){var t=p.indexOf(i);t!==-1&&(a=t)}return _(p,a,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function _(p,e,a){for(var n=[],l=0,r=0;r<e;r++)if(r%4){var i=a[p.charCodeAt(r-1)]<<r%4*2,t=a[p.charCodeAt(r)]>>>6-r%4*2,o=i|t;n[l>>>2]|=o<<24-l%4*8,l++}return b.create(n,l)}}(),I.enc.Base64url})},whVF:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I=y("lNSK"),v=T(y("1q3G"));function T(p){return p&&p.__esModule?p:{default:p}}function b(p,e){if(!(p instanceof e))throw new TypeError("Cannot call a class as a function")}function g(p,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(p,n.key,n)}}function s(p,e,a){return e&&g(p.prototype,e),a&&g(p,a),p}var _=function(){function p(){b(this,p),this.strm=new v.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,I.deflateInit)(this.strm,this.windowBits)}return s(p,[{key:"deflate",value:function(a){this.strm.input=a,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var n=(0,I.deflate)(this.strm,I.Z_FULL_FLUSH),l=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(n<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var r=[l],i=l.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,n=(0,I.deflate)(this.strm,I.Z_FULL_FLUSH),n<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);i+=t.length,r.push(t)}while(this.strm.avail_in>0);for(var o=new Uint8Array(i),c=0,d=0;d<r.length;d++)o.set(r[d],c),c+=r[d].length;l=o}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,l}}]),p}();W.default=_},wzkS:function(j,W,y){"use strict";y.d(W,"c",function(){return g}),y.d(W,"b",function(){return s}),y.d(W,"d",function(){return _}),y.d(W,"a",function(){return e}),y.d(W,"e",function(){return a});var I=y("9og8"),v=y("WmNS"),T=y.n(v),b=y("ErOA");function g(n){return Object(b.c)("libraries/".concat(n,".json"))}function s(){return Object(b.c)("library_tags.json")}function _(n){return p.apply(this,arguments)}function p(){return p=Object(I.a)(T.a.mark(function n(l){var r;return T.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(b.b)("attachments/".concat(l,".json"));case 2:return r=t.sent,t.abrupt("return",r.status===0);case 4:case"end":return t.stop()}},n)})),p.apply(this,arguments)}function e(n){return Object(b.f)("libraries.json",n)}function a(n,l){return Object(b.g)("libraries/".concat(n,".json"),l)}},xO64:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I=v(y("8K/p"));function v(t){return t&&t.__esModule?t:{default:t}}function T(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(c){return typeof c}:T=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},T(t)}function b(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function g(t,o){for(var c=0;c<o.length;c++){var d=o[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,d.key,d)}}function s(t,o,c){return o&&g(t.prototype,o),c&&g(t,c),t}function _(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o&&p(t,o)}function p(t,o){return p=Object.setPrototypeOf||function(d,f){return d.__proto__=f,d},p(t,o)}function e(t){var o=l();return function(){var d=r(t),f;if(o){var h=r(this).constructor;f=Reflect.construct(d,arguments,h)}else f=d.apply(this,arguments);return a(this,f)}}function a(t,o){return o&&(T(o)==="object"||typeof o=="function")?o:n(t)}function n(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},r(t)}var i=function(t){_(c,t);var o=e(c);function c(){return b(this,c),o.apply(this,arguments)}return s(c,[{key:"_pngRect",value:function(f,h,u,E,x,O,C){var w=this._readData(x);return w===null?!1:(O.imageRect(f,h,u,E,"image/png",w),!0)}},{key:"_basicRect",value:function(f,h,u,E,x,O,C,w){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(I.default);W.default=i},xSIq:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};W.default=I},xlC8:function(j,W,y){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=I;function I(v,T,b,g){for(var s=v&65535|0,_=v>>>16&65535|0,p=0;b!==0;){p=b>2e3?2e3:b,b-=p;do s=s+T[g++]|0,_=_+s|0;while(--p);s%=65521,_%=65521}return s|_<<16|0}},"y0+3":function(j,W,y){"use strict";y.d(W,"a",function(){return n}),y.d(W,"b",function(){return r});var I=/margin|padding|width|height|max|min|offset/,v={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function g(i,t,o){if(t=t.toLowerCase(),o==="auto"){if(t==="height")return i.offsetHeight;if(t==="width")return i.offsetWidth}return t in v||(v[t]=I.test(t)),v[t]?parseFloat(o)||0:o}function s(i,t){var o=arguments.length,c=b(i);return t=T[t]?"cssFloat"in i.style?"cssFloat":"styleFloat":t,o===1?c:g(i,t,c[t]||i.style[t])}function _(i,t,o){var c=arguments.length;if(t=T[t]?"cssFloat"in i.style?"cssFloat":"styleFloat":t,c===3)return typeof o=="number"&&I.test(t)&&(o="".concat(o,"px")),i.style[t]=o,o;for(var d in t)t.hasOwnProperty(d)&&_(i,d,t[d]);return b(i)}function p(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function e(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function a(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:t}}function n(){var i=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:t}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function r(i){var t=i.getBoundingClientRect(),o=document.documentElement;return{left:t.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||document.body.clientTop||0)}}},y5JW:function(j,W,y){"use strict";y.d(W,"c",function(){return o}),y.d(W,"a",function(){return c});var I=y("DZo9"),v=y("8z0m"),T=y("+L6B"),b=y("2/Rp"),g=y("9og8"),s=y("miYZ"),_=y("tsqr"),p=y("k1fw"),e=y("oBTY"),a=y("WmNS"),n=y.n(a),l=y("q1tI"),r=y.n(l),i=y("m3rI"),t=y("wzkS"),o="\u3000\u3000";function c(d){var f=["Bytes","KB","MB","GB","TB"];if(d==0)return"0 Byte";var h=parseInt(""+Math.floor(Math.log(d)/Math.log(1024)),10);return(d/Math.pow(1024,h)).toFixed(1)+" "+f[h]}W.b=function(d){var f=d.value,h=f===void 0?[]:f,u=d.action,E=d.onChange,x=d.className,O=d.maxSize,C=O===void 0?150:O,w=d.title,S=w===void 0?"\u6587\u4EF6\u4E0A\u4F20":w,D=d.accept,R=D===void 0?null:D,P={multiple:!1,fileList:h,accept:R,withCredentials:!0,beforeUpload:function(z){var X=z.size/1024/1024;return!0},action:"".concat(i.a.API_SERVER,"/api/attachments.json"),onChange:function(z){var X,k,F=Object(e.a)(z.fileList);if(F=F.map(function(B){return B.name.indexOf(o)===-1&&(B.name="".concat(B.name).concat(o).concat(c(B.size))),Object(p.a)({},B)}),z.file.status==="done"&&((X=z.file)===null||X===void 0||((k=X.response)===null||k===void 0)?void 0:k.status)===-1){var U,L;_.b.error((U=z.file)===null||U===void 0||((L=U.response)===null||L===void 0)?void 0:L.message),E([]);return}E(F)},onRemove:function(){var M=Object(g.a)(n.a.mark(function X(k){var F,U,L;return n.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(F=k.size/1024/1024,!(k.status==="uploading")){Z.next=3;break}return Z.abrupt("return",!0);case 3:if(F<C){Z.next=7;break}return Z.abrupt("return",!0);case 7:if(U=k.response?k.response.id:k.uid,!U){Z.next=15;break}return Z.next=11,Object(t.d)(k.response?k.response.id:k.id);case 11:return L=Z.sent,Z.abrupt("return",L);case 15:return Z.abrupt("return",!0);case 16:case"end":return Z.stop()}},X)}));function z(X){return M.apply(this,arguments)}return z}()};function N(M){M.preventDefault(),M.stopPropagation()}return r.a.createElement("div",{className:"single-upload ".concat(x||"")},r.a.createElement(v.a,P,r.a.createElement(b.a,{type:"primary",title:h.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:h.length>0,ghost:!0},S),r.a.createElement("span",{onClick:N,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",C,"M)"," ")))}},"yTi+":function(j,W,y){j.exports=y.p+"static/AssistantCode3.fdd8db3c.jpeg"},"yi/R":function(j,W,y){"use strict";y.r(W);var I=y("oBTY"),v=y("bbsP"),T=y("/wGt"),b=y("T2oS"),g=y("W9HT"),s=y("PpiC"),_=y("miYZ"),p=y("tsqr"),e=y("9og8"),a=y("jrin"),n=y("2qtc"),l=y("kLXV"),r=y("tJVT"),i=y("0Owb"),t=y("k1fw"),o=y("ozfa"),c=y("MJZm"),d=y("WmNS"),f=y.n(d),h=y("q1tI"),u=y.n(h),E=y("Ty5D"),x=y("9kvl"),O=y("H65k"),C=y("+Axu"),w=y("f+oW"),S=y.n(w),D=y("bntm"),R=function(Se){var qe=Se.position,at=Se.subject,Ot=Se.score,Ct=Se.onViewAllTask,yt=Object(h.useState)(!1),Tt=Object(r.a)(yt,2),Et=Tt[0],mt=Tt[1],Rt=Object(E.h)(),kt=new URLSearchParams(window.location.search);function jt(){mt(!Et),Object(D.a)()?Object(D.b)():Object(D.d)(document.getElementById("task-left-panel"))}var Gt=function(){Object(D.a)()?mt(!0):mt(!1)};return Object(h.useEffect)(function(){return document.addEventListener(Object(D.c)(),Gt),function(){document.removeEventListener(Object(D.c)(),Gt)}},[]),u.a.createElement("div",{className:"task-header"},u.a.createElement("a",{title:"\u67E5\u770B\u5168\u90E8\u4EFB\u52A1",onClick:Ct},u.a.createElement("img",{src:S.a,alt:"nav",width:45})),u.a.createElement("h3",{title:at},"\u7B2C",qe,"\u5173\uFF1A",at),u.a.createElement("span",null,Ot),!(kt.get("isFullScreen")==="true")&&u.a.createElement("a",{onClick:jt,title:Et?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},u.a.createElement("i",{className:Et?"iconfont icon-shousuo c-grey-333 font16 ml10 current":"iconfont icon-zhankai c-grey-333 font16 ml10 current"})))},P=y("DjyN"),N=y("NUBc"),M=y("g9YV"),z=y("wCAj"),X=y("cWXX"),k=y("/ezw"),F=y("BdwD"),U=y("p4vh"),L=y.n(U),B=y("Q+I+"),Z=y.n(B),re=y("Yr8L"),me=y.n(re),Ee=y("IZBM"),De=y("1vsH"),te=y("wd/R"),Ce=y.n(te),we={0:L.a,1:Z.a,2:me.a},ce={loading:!0,page:1,data:null},le;(function(Se){Se[Se.SET_LOADING=0]="SET_LOADING",Se[Se.SET_STATE=1]="SET_STATE",Se[Se.SET_PAGE=2]="SET_PAGE"})(le||(le={}));function oe(Se,qe){switch(qe.type){case le.SET_LOADING:return Object(t.a)(Object(t.a)({},Se),{},{loading:qe.payload});case le.SET_STATE:return Object(t.a)(Object(t.a)({},Se),qe.payload);case le.SET_PAGE:return Object(t.a)(Object(t.a)({},Se),{},{page:qe.payload});default:throw new Error}}var xe=function(Se){var qe=Se.activeIndex,at=Se.taskId,Ot=Object(h.useReducer)(oe,ce),Ct=Object(r.a)(Ot,2),yt=Ct[0],Tt=Ct[1],Et=yt.loading,mt=yt.page,Rt=yt.data,kt=Object(h.useMemo)(function(){var Gt=[{title:"\u6392\u540D",dataIndex:"user_name",align:"center",render:function(Xt,tn,Tn){var Sn=(mt-1)*10+Tn+1;return Sn<=3?u.a.createElement("img",{src:we[Sn-1],alt:"rank",width:36}):Sn}},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:Rt==null?void 0:Rt.rank_data_name,dataIndex:"score",render:function(Xt){return(Rt==null?void 0:Rt.open_rank)==="DEFAULT"?Object(De.db)(Xt):Xt}},{title:"\u901A\u5173\u65F6\u95F4",dataIndex:"end_time",render:function(Xt){return Ce()(Xt).format("YYYY-MM-DD HH:mm:ss")}}];return Gt},[Rt==null?void 0:Rt.rank_data_name,Rt==null?void 0:Rt.open_rank,mt]);Object(h.useEffect)(function(){function Gt(){return Bt.apply(this,arguments)}function Bt(){return Bt=Object(e.a)(f.a.mark(function Xt(){var tn;return f.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(Ee.r)(at,{page:mt,limit:10});case 2:tn=Sn.sent,Tt({type:le.SET_STATE,payload:{loading:!1,data:tn.data}});case 4:case"end":return Sn.stop()}},Xt)})),Bt.apply(this,arguments)}qe===4&&Gt()},[mt,qe,at]);function jt(Gt){Tt({type:le.SET_PAGE,payload:Gt})}return u.a.createElement("div",{className:"ranking-container"},Et?u.a.createElement(k.a,{avatar:!0,paragraph:{rows:4}}):!Rt||(Rt==null?void 0:Rt.rank_list_count)===0?u.a.createElement(F.a,{styles:{margin:"20% auto"}}):u.a.createElement(u.a.Fragment,null,u.a.createElement(z.a,{pagination:!1,size:"middle",dataSource:Rt.rank_list,columns:kt}),Rt.rank_list_count>10?u.a.createElement(N.a,{style:{marginTop:20},showQuickJumper:!0,showSizeChanger:!1,onChange:jt,current:mt,total:Rt.rank_list_count}):null))},q=y("fXAG"),se=y("9Bee"),Ne=y("M8RZ"),de=y("vWAL"),$=y.n(de),Q=y("mCJh"),Y=y("jb+D"),ue=y("dTJi"),ae=y("pC0b"),be=y("GzdX"),Ie=y("OoWo"),pe="YYYY-MM-DD HH:mm",Le=function(Se){var qe=Se.challenge,at=Se.position,Ot=Se.status,Ct=Se.get_gold,yt=Se.get_experience,Tt=Se.star,Et=Se.tag_count,mt=Se.finished_time,Rt=Se.index,kt=Se.view_answer_time,jt=Se.name,Gt=Se.identifier,Bt=Se.identity,Xt=Se.shixun,tn=Se.taskList,Tn=Se.onSaveTaskStar,Sn=Object(E.h)(),Vt=Object(E.i)();function In(zn){Tn(Gt,zn,Rt)}var Xn=Ot===2||Xt.status<2||tn[Rt-1]&&tn[Rt-1].status===2||Xt.task_pass||Bt<=5;return u.a.createElement("div",{className:"task-item-container ".concat(qe.position===at?"active":""," ").concat(Ot===2?"finish":"")},u.a.createElement("div",{className:"flex-container challenge-title space-between"},Xn?u.a.createElement("a",{href:"/tasks/".concat(Gt).concat(Sn.search),onClick:function(En){if(En.preventDefault(),Vt.courseId&&Vt.homeworkId){setTimeout(function(){return window.location.href="/tasks/".concat(Vt.courseId,"/").concat(Vt.homeworkId,"/").concat(Gt).concat(Sn.search)},300);return}setTimeout(function(){return window.location.href="/tasks/".concat(Gt).concat(Sn.search)},300)}},"".concat(at,". ").concat(jt)," "):u.a.createElement("span",null,"".concat(at,". ").concat(jt)),u.a.createElement("i",{className:"iconfont icon-wancheng1 ".concat(Ot===2?"green":"")})),u.a.createElement("div",{className:"flex-container"},u.a.createElement("p",{className:Ot===2?"green":""},u.a.createElement("span",null,"\u7ECF\u9A8C\u503C")," ",Ot===2&&yt>0?"+":"",yt),u.a.createElement("p",{className:Ot===2?"green":""},u.a.createElement("span",null,"\u91D1\u5E01")," ",Ot===2&&Ct>0?"+":""," ",Ct),u.a.createElement("p",null,u.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E")," ",Et||"\u65E0")),u.a.createElement("div",{className:"flex-container"},u.a.createElement("p",null,u.a.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),mt?Ce()(mt).format(pe):"--"),u.a.createElement("p",null,u.a.createElement("span",null,"\u67E5\u770B\u7B54\u6848\u65F6\u95F4"),kt?Ce()(kt).format(pe):"--")),Xt.status>=2?u.a.createElement("div",{className:"rate-container"},Ot===2&&Tt===0?u.a.createElement(h.Fragment,null,u.a.createElement("span",null,"\u7ED9\u4E2A\u8BC4\u5206\u5427\uFF1A"),u.a.createElement(be.a,{defaultValue:0,onChange:In})):null,Ot===2&&Tt>0?u.a.createElement(h.Fragment,null,u.a.createElement("span",null,"\u5DF2\u8BC4\u5206\uFF1A"),u.a.createElement(be.a,{value:Tt,disabled:!0}),u.a.createElement("span",{className:"highlight"},Tt,"\u5206")):null):null)},ve=function(Se){var qe=Se.taskList,at=Se.challenge,Ot=Se.shixun,Ct=Se.identity,yt=Se.onSaveTaskStar,Tt=new URLSearchParams(window.location.search);return u.a.createElement("div",{className:"task-nav-container"},!!Tt.get("coursesId")&&u.a.createElement("p",{className:"task-tip"},u.a.createElement("div",null,u.a.createElement("span",null,"\u6E29\u99A8\u63D0\u793A: "),"\u82E5\u67E5\u770B\u7B54\u6848\u65F6\u95F4\u65E9\u4E8E\u5173\u5361\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4\uFF0C\u5C06\u5F71\u54CD\u8BFE\u5802\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u6210\u7EE9\u3002")),qe.map(function(Et,mt){var Rt=Object(t.a)(Object(t.a)({},Et),{},{identity:Ct,index:mt,challenge:at,taskList:qe,shixun:Ot,onSaveTaskStar:yt});return u.a.createElement(Le,Object(i.a)({key:mt},Rt))}))},Xe=y("88g3"),$e=y.n(Xe),Ge=y("V0Rq"),Me=y("lzim"),gt=y("HBuW"),Te=function(){var Se=Object(e.a)(f.a.mark(function qe(at,Ot,Ct,yt,Tt){var Et,mt;return f.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(Et=function(){Tt?Object(De.T)(Ct?"/tasks/".concat(mt==null?void 0:mt.identifier,"/jupyter"):"/tasks/".concat(mt.game_identifier,"?subject_id=").concat(yt)):window.location.href=Ct?"/tasks/".concat(mt==null?void 0:mt.identifier,"/jupyter"):"/tasks/".concat(mt.game_identifier,"?subject_id=").concat(yt)},!Ct){kt.next=7;break}return kt.next=4,Object(gt.D)({id:at,challenge_id:Ot,subject_id:yt});case 4:kt.t0=kt.sent,kt.next=10;break;case 7:return kt.next=9,Object(gt.E)({id:at,challenge_id:Ot,subject_id:yt});case 9:kt.t0=kt.sent;case 10:if(mt=kt.t0,!(mt!=null&&mt.game_identifier||mt!=null&&mt.identifier)){kt.next=22;break}if(!(mt!=null&&mt.access)){kt.next=16;break}Et(),kt.next=21;break;case 16:if(!((mt==null?void 0:mt.access)==!1)){kt.next=20;break}return p.b.warn("\u5F53\u524D\u5B9E\u8BAD\u4E0D\u652F\u6301\u8DF3\u5173\uFF0C\u5DF2\u4E3A\u60A8\u8DF3\u8F6C\u5230\u8BE5\u5B9E\u8BAD\u672A\u901A\u8FC7\u7684\u7B2C\u4E00\u4E2A\u5173\u5361"),setTimeout(function(){Te(at,"",Ct,yt,Tt)},1e3),kt.abrupt("return");case 20:Et();case 21:return kt.abrupt("return");case 22:(mt==null?void 0:mt.status)===-3?Object(De.q)():(mt==null?void 0:mt.status)===2?Ye(mt==null?void 0:mt.message):(mt==null?void 0:mt.status)===3&&Ze(mt==null?void 0:mt.message);case 23:case"end":return kt.stop()}},qe)}));return function(at,Ot,Ct,yt,Tt){return Se.apply(this,arguments)}}(),Ye=function Se(qe){var at;qe=(at=qe)!==null&&at!==void 0&&at.includes(".json")?qe:"".concat(qe,".json"),l.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:u.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Ot=Object(e.a)(f.a.mark(function yt(){var Tt,Et;return f.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(Ge.T)({url:qe});case 2:if(Tt=Rt.sent,Tt){Rt.next=5;break}return Rt.abrupt("return");case 5:return p.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Rt.next=8,Object(gt.E)({id:Tt.shixun_identifier});case 8:if(Et=Rt.sent,!(Et!=null&&Et.game_identifier)){Rt.next=12;break}return Object(De.T)("/tasks/".concat(Et.game_identifier)),Rt.abrupt("return");case 12:(Et==null?void 0:Et.status)===2?Se(Et==null?void 0:Et.message):(Et==null?void 0:Et.status)===3&&Ze(Et==null?void 0:Et.message);case 13:case"end":return Rt.stop()}},yt)}));function Ct(){return Ot.apply(this,arguments)}return Ct}()})},Ze=function(qe){l.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:u.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u9A8C\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",qe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ve=c.a.DirectoryTree,Fe=function(Se){var qe=Se.taskList,at=Se.challenge,Ot=Se.shixun,Ct=Se.identity,yt=Se.onSaveTaskStar,Tt=Se.subject_id,Et=Object(E.i)(),mt=new URLSearchParams(window.location.search),Rt=Object(h.useState)([]),kt=Object(r.a)(Rt,2),jt=kt[0],Gt=kt[1],Bt=Object(h.useState)([]),Xt=Object(r.a)(Bt,2),tn=Xt[0],Tn=Xt[1],Sn=Object(h.useState)(),Vt=Object(r.a)(Sn,2),In=Vt[0],Xn=Vt[1];Object(h.useEffect)(function(){zn(qe),Tn(ln({children:qe},at.id)),Gt(Object(I.a)(qe)),console.log("taskList:",qe)},[qe]);var zn=function on(Yt){Yt.map(function(vn,xn){var _n;vn.index=xn,vn.title=vn.name,vn.id==at.id&&Xn(vn.key),(_n=vn.children)!==null&&_n!==void 0&&_n.length&&on(vn.children)})},En=function(Yt,vn){console.log("Trigger Select",Yt,vn),vn.node.shixun_identifier&&Te(vn.node.shixun_identifier,vn.node.key,!1,Tt)},Mn=function(){console.log("Trigger Expand")};function ln(on,Yt){var vn;return!on||typeof on!="object"?void 0:on.id==Yt?[]:on.children.some(function(xn){return vn=ln(xn,Yt)})?[].concat(Object(I.a)(vn),[on.key]):void 0}return u.a.createElement("div",{className:"task-nav-container"},!!mt.get("coursesId")&&u.a.createElement("p",{className:"task-tip"},u.a.createElement("div",null,u.a.createElement("span",null,"\u6E29\u99A8\u63D0\u793A: "),"\u82E5\u67E5\u770B\u7B54\u6848\u65F6\u95F4\u65E9\u4E8E\u5173\u5361\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4\uFF0C\u5C06\u5F71\u54CD\u8BFE\u5802\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u6210\u7EE9\u3002")),!!(jt!=null&&jt.length)&&u.a.createElement("div",{style:{padding:10}},u.a.createElement(Ve,{className:$e.a.tree,icon:u.a.createElement("i",{className:"iconfont icon-wancheng1 "}),switcherIcon:u.a.createElement("i",{className:"iconfont icon-you1 ",style:{position:"relative",top:-2}}),onSelect:En,onExpand:Mn,selectedKeys:[In],defaultExpandedKeys:Object(I.a)(tn),treeData:jt,titleRender:function(Yt,vn,xn){return u.a.createElement("span",{className:"".concat(at.id==Yt.id?$e.a.active:""," multi_ellipsis1"),style:{paddingRight:34}},Yt.item_type==="Shixun"&&u.a.createElement("i",{class:"iconfont icon-shixunti2 c-light-primary font20"}),Yt.item_type==="Challenge"&&u.a.createElement("i",{style:{fontFamily:"monospace",position:"relative",top:Yt.item_type==="Shixun"?-2:0}},"\uFF08",De.l[Yt.index],"\uFF09"),u.a.createElement("span",{style:{position:"relative",top:Yt.item_type==="Shixun"||Yt.item_type==="Stage"?-2:0}},Yt==null?void 0:Yt.name),Yt.item_type!=="Stage"&&u.a.createElement("i",{className:"iconfont icon-tasks-img c-grey-999 ".concat((Yt==null?void 0:Yt.status)==1&&"c-green-29b")},((Yt==null?void 0:Yt.status)==1||(Yt==null?void 0:Yt.status)==0)&&u.a.createElement("img",{src:Me.f,width:"16"}),(Yt==null?void 0:Yt.status)==2&&u.a.createElement("img",{src:Me.g,width:"16"}),(Yt==null?void 0:Yt.status)==3&&u.a.createElement("img",{src:Me.h,width:"16"})))}})))},Be=y("Plam"),_e=y("gp9y"),Ae=y("Ot1p"),fe=function(Se){var qe=Se.user_praise,at=Se.praise_count,Ot=Se.praisePlus,Ct=Se.onCreateDiscuss,yt=Se.user,Tt=Se.userInfo,Et=Object(h.useState)(!1),mt=Object(r.a)(Et,2),Rt=mt[0],kt=mt[1],jt=Object(h.useState)(""),Gt=Object(r.a)(jt,2),Bt=Gt[0],Xt=Gt[1];function tn(Xn){Xt(Xn)}function Tn(){kt(!0)}function Sn(){kt(!1)}function Vt(){return In.apply(this,arguments)}function In(){return In=Object(e.a)(f.a.mark(function Xn(){return f.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:if(Tt!=null&&Tt.authentication){En.next=3;break}return l.a.confirm({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u9700\u8981\u901A\u8FC7\u5B9E\u540D\u9A8C\u8BC1\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u8BC4\u8BBA\u64CD\u4F5C",okText:"\u524D\u5F80\u5B9E\u540D\u9A8C\u8BC1",cancelText:"\u53D6\u6D88",onOk:function(){window.open("/account/certification")}}),En.abrupt("return");case 3:if(!(Bt.trim()=="")){En.next=6;break}return p.b.warn("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),En.abrupt("return");case 6:Ct(Bt),Xt(""),kt(!1);case 9:case"end":return En.stop()}},Xn)})),In.apply(this,arguments)}return u.a.createElement("div",{className:"comment-input-editor-container ".concat(Rt?"active":""," ")},u.a.createElement("div",{className:Rt?"text-area hide":"text-area"},u.a.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Tn}),u.a.createElement("a",{className:"c-light-black",onClick:Ot,title:qe?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},u.a.createElement("i",{className:"mr3 ".concat(qe?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"," "),alt:"\u8D5E"}),at?u.a.createElement("span",null,at):"")),Rt?u.a.createElement("div",{className:"input-mask",onClick:Sn}):null,u.a.createElement("div",{className:Rt?"md-container":"md-container hide"},u.a.createElement(Ae.a,{id:"discuss-input-editor",startInit:Rt,miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Bt,height:240,onChange:tn}),u.a.createElement("div",{className:"tip-container",onClick:Sn},u.a.createElement("p",null,"\u8BF7\u52FF\u7C98\u8D34\u7B54\u6848\uFF0C\u5426\u5219\u5C06\u9020\u6210\u8D26\u53F7\u7981\u7528\u540E\u679C\uFF01"),u.a.createElement("a",{className:"btn-send",style:{color:"#fff"},onClick:Vt},"\u53D1\u9001"))))},ke=y("dhSg"),Je=y("/omn"),ne=y("IxHN"),Qe=y("ARon"),dt=function(Se){var qe=Se.data;return u.a.createElement(h.Fragment,null,qe&&qe.map(function(at){return u.a.createElement("div",{className:"choose-answer-item",key:at.position},u.a.createElement("p",null,"\u7B2C",at.position,"\u9898"),u.a.createElement(se.a,{value:at.answer}))}))},Ke=y("DVFL"),et=function(Se){var qe=Se.data,at=Se.onShowUnlockAnswerModal,Ot=Se.challenge,Ct=Ot!=null&&Ot.disable_copy?{pointerEvents:"none",userSelect:"none"}:{};return u.a.createElement(h.Fragment,null,qe&&qe.map(function(yt,Tt){var Et=yt.answer_id,mt=yt.answer_name,Rt=yt.answer_contents,kt=yt.view_time;return u.a.createElement("div",{className:"answer-item-container",style:Ct,key:Et},u.a.createElement("div",{className:"flex-container"},u.a.createElement("span",{className:"level"}," \u7EA7\u522B",Tt+1,"\uFF1A "),u.a.createElement("span",{className:"name"},mt),Rt?u.a.createElement(h.Fragment,null,u.a.createElement("span",{className:"view-time"},kt?Ce()(kt).format("YYYY-MM-DD HH:mm"):""),u.a.createElement("span",null,"\u5DF2\u89E3\u9501")):u.a.createElement("a",{onClick:at},"\u89E3\u9501")),Rt?u.a.createElement(se.a,{value:Rt}):null)}))},rt=function(Se){var qe=Se.loading,at=Se.data,Ot=Se.onShowTip,Ct=Se.st,yt=Se.challenge,Tt=Object(h.useRef)(null),Et=Object(h.useRef)(null),mt=Object(h.useRef)(null),Rt=Object(h.useRef)(null),kt=Object(h.useRef)({x:0,y:0});return Object(h.useEffect)(function(){if(Tt.current&&yt!==null&&yt!==void 0&&yt.disable_copy){function jt(Xt){kt.current={x:Xt.clientX,y:Xt.clientY},clearTimeout(mt.current),clearTimeout(Rt.current),mt.current=setTimeout(function(){Et.current.style.left="".concat(kt.current.x,"px"),Et.current.style.top="".concat(kt.current.y,"px"),Et.current.style.display="block"},1e3),Rt.current=setTimeout(function(){Et.current.style.display="none",clearTimeout(mt.current),clearTimeout(Rt.current)},3e3)}function Gt(){Et.current.style.display="none",clearTimeout(mt.current),clearTimeout(Rt.current)}function Bt(Xt){kt.current={x:Xt.clientX,y:Xt.clientY}}return Tt.current.addEventListener("mouseenter",jt),window.addEventListener("mousemove",Bt),Tt.current.addEventListener("mouseleave",Gt),function(){var Xt,tn;(Xt=Tt.current)===null||Xt===void 0||Xt.removeEventListener("mouseenter",jt),window.removeEventListener("mousemove",Bt),(tn=Tt.current)===null||tn===void 0||tn.removeEventListener("mouseleave",Gt)}}},[Tt==null?void 0:Tt.current,yt==null?void 0:yt.disable_copy]),u.a.createElement("div",{ref:Tt,className:"answer-container"},u.a.createElement("div",{ref:Et,className:"answer-tips-css"},"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848"),qe?u.a.createElement(ne.a,null):null,Ct===1?u.a.createElement(dt,{data:at}):u.a.createElement(et,{data:at,challenge:yt,onShowUnlockAnswerModal:Ot}))},bt=y("sRBo"),ut=y("kaz8"),ot=y("gflZ"),Ue=function(Se){var qe=Se.data,at=Se.selected_unlocked_answer_id,Ot=Se.selected_index,Ct=Se.onSelect;if(!qe)return null;var yt=qe.filter(function(Et,mt){return Et.answer_contents?!1:(Et.index=mt,!0)});function Tt(Et){var mt=Et.target,Rt=mt.value,kt=mt.checked;Ct(kt?Rt:null)}return u.a.createElement("table",{className:"unlock-answer-list"},u.a.createElement("thead",null,u.a.createElement("tr",null,u.a.createElement("th",null),u.a.createElement("th",null,"\u7EA7\u522B"),u.a.createElement("th",null,"\u540D\u79F0"),u.a.createElement("th",null,"\u6263\u5206\u5360\u6BD4"),u.a.createElement("th",null,"\u6263\u51CF\u91D1\u5E01"))),u.a.createElement("tbody",null,yt.map(function(Et,mt){return u.a.createElement("tr",{key:Et.answer_id},u.a.createElement("td",null,u.a.createElement(ut.a,{value:Et.answer_id,onChange:Tt,checked:Et.answer_id===at||at&&Ot>=mt})),u.a.createElement("td",null,Et.index+1),u.a.createElement("td",null,Et.answer_name),u.a.createElement("td",null,Et.answer_ratio,"%"),u.a.createElement("td",{className:"gold-color"},Et.answer_score))})))},We=y("J32x"),ft=y.n(We),nt=function(Se){var qe=Se.unity_3d_routes,at=Se.onGetUnity3dMessage,Ot=Se.taskData,Ct=Se.userInfo,yt=Se.itemData,Tt=yt===void 0?{}:yt,Et=Object(h.useRef)(),mt=Object(h.useState)(!0),Rt=Object(r.a)(mt,2),kt=Rt[0],jt=Rt[1],Gt=Object(h.useState)("\u6B63\u5728\u52AA\u529B\u52A0\u8F7D\u4E2D..."),Bt=Object(r.a)(Gt,2),Xt=Bt[0],tn=Bt[1],Tn=Object(h.useState)({}),Sn=Object(r.a)(Tn,2),Vt=Sn[0],In=Sn[1],Xn=Tt.shixun_environment_id,zn=Tt.tab_type,En=Tt.index_tab;Object(h.useEffect)(function(){function Yt(_n){try{var Cn=JSON.parse(_n.data);at(Cn),Cn.type==="getTaskData"&&ln({taskData:Ot,userInfo:Ct})}catch(un){console.log("error:",un,_n)}}window.addEventListener("message",Yt);var vn=ke.a.subscribe("evaluate-unity3d-result",function(_n){ln(_n)}),xn=ke.a.subscribe("unity3d-reset",function(_n){_n==="start"&&(jt(!0),tn("\u6B63\u5728\u91CD\u7F6E\u4E2D..."),In({})),_n==="done"&&Mn()});return function(){window.removeEventListener("message",Yt),vn(),xn()}},[]),Object(h.useEffect)(function(){(Tt==null?void 0:Tt.tab_type)===5&&Mn()},[Tt==null?void 0:Tt.tab_type]);var Mn=function(){var Yt=Object(e.a)(f.a.mark(function vn(){var xn,_n,Cn,un,wt,nn,qn;return f.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return jt(!0),Ln.next=3,Object(Ee.F)((xn=Ot.myshixun)===null||xn===void 0?void 0:xn.identifier,{shixun_environment_id:Xn,tab_type:zn});case 3:if(un=Ln.sent,jt(!1),!(un!=null&&(_n=un.data)!==null&&_n!==void 0&&(Cn=_n.data_list)!==null&&Cn!==void 0&&Cn.length)){Ln.next=8;break}return ke.a.publish("pod-restrict-data",{identifier:un==null||((wt=un.data)===null||wt===void 0)?void 0:wt.identifier,data_list:un==null||((nn=un.data)===null||nn===void 0)?void 0:nn.data_list}),Ln.abrupt("return");case 8:(un==null?void 0:un.status)===0&&(un.data.thiry_party_url=(un==null||((qn=un.data)===null||qn===void 0)?void 0:qn.link_url)+"?t="+new Date().getTime(),ke.a.publish("send-tabs-result-data",Object(t.a)(Object(t.a)({},un==null?void 0:un.data),{},{index_tab:En})),ke.a.publish("update-windows-time",un==null?void 0:un.data),In(Object(t.a)({},un.data||{})));case 9:case"end":return Ln.stop()}},vn)}));return function(){return Yt.apply(this,arguments)}}();function ln(Yt){Et.current&&Et.current.contentWindow.postMessage(JSON.stringify(Yt),"*")}function on(){jt(!1)}return u.a.createElement(h.Fragment,null,kt&&u.a.createElement(ne.a,{className:"c-white",message:Xt}),(qe||Vt.thiry_party_url)&&u.a.createElement("iframe",{onLoad:on,className:ft.a["unity3d-panel"],ref:Et,allow:"geolocation document-domain",sandbox:"allow-scripts allow-same-origin allow-top-navigation allow-forms allow-popups allow-pointer-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation",src:qe||Vt.thiry_party_url}))},Dt=y("BjJ7"),Kt=y("kaH+");function vt(Se){var qe=Se.target;if(qe.tagName.toUpperCase()==="IMG"){var at=qe.src||qe.getAttribute("src");at&&at.indexOf("/images/avatars/User")===-1&&(Se.stopPropagation(),Se.preventDefault(),ke.a.publish("preview-image",at))}}var Ht={showTaskList:!1,activeIndex:0,taskList:[],enlarge_unity3D:!1,tab_fixed:!1,selected_unlocked_answer_id:null,isMultiLevel:!1,showTip:!1,answerScore:0,data:null,loading:!1};function Ft(Se,qe){switch(qe.type){case q.A:return Object(t.a)(Object(t.a)({},Se),{},{activeIndex:qe.payload});case q.U:return Object(t.a)(Object(t.a)({},Se),{},{enlarge_unity3D:qe.payload});case q.W:return Object(t.a)(Object(t.a)({},Se),{},{tab_fixed:qe.payload});case q.R:return Object(t.a)(Object(t.a)({},Se),{},{showTaskList:!0});case q.r:return Object(t.a)(Object(t.a)({},Se),{},{showTaskList:!1});case q.m:return Object(t.a)(Object(t.a)({},Se),qe.payload);case q.I:return Object(t.a)(Object(t.a)({},Se),qe.payload);case q.K:return Object(t.a)(Object(t.a)({},Se),{},{loading:!0});case q.S:return Object(t.a)(Object(t.a)({},Se),{},{showTip:!0});case q.s:return Object(t.a)(Object(t.a)({},Se),{},{showTip:!1});case q.y:return Object(t.a)(Object(t.a)({},Se),{},{selected_unlocked_answer_id:qe.payload});case q.g:return Object(t.a)(Object(t.a)({},Se),qe.payload);default:throw new Error}}var Lt=function(Se){var qe=Se.taskId,at=Se.minuxUserGrade,Ot=Se.discusses_count,Ct=Se.is_teacher,yt=Se.has_answer,Tt=Se.user,Et=Se.st,mt=Se.game,Rt=Se.rank_name,kt=Se.challenge,jt=Se.myshixun,Gt=Se.user_praise,Bt=Se.praise_count,Xt=Se.unity_3d_routes,tn=Se.with_code_file,Tn=Se.onPlusOrCancelPraise,Sn=Se.onGetUnity3dMessage,Vt=Se.shixun,In=Se.taskData,Xn=Se.chatgpt,zn=Se.to_user_id,En=new URLSearchParams(window.location.search),Mn=Object(h.useReducer)(Ft,Ht),ln=Object(r.a)(Mn,2),on=ln[0],Yt=ln[1],vn=Object(h.useState)(!1),xn=Object(r.a)(vn,2),_n=xn[0],Cn=xn[1],un=Object(h.useState)(!1),wt=Object(r.a)(un,2),nn=wt[0],qn=wt[1],kn=Object(h.useState)({}),Ln=Object(r.a)(kn,2),gn=Ln[0],Wn=Ln[1],An=on.taskList,ur=on.showTaskList,cr=on.activeIndex,Oi=on.enlarge_unity3D,pa=on.tab_fixed,Cr=on.data,dr=on.answerScore,ei=on.loading,vr=on.showTip,Qr=on.isMultiLevel,kr=on.selected_unlocked_answer_id,ti=Object(h.useMemo)(function(){var xr=0;if(Cr&&kr){for(var ii=Cr.filter(function(_r){return!_r.answer_contents}),Lr=0;Lr<ii.length;Lr++)if(ii[Lr].answer_id===kr){xr=Lr;break}}return xr},[Cr,kr]),Br=Vt?Vt.propaedeutics:null,Jr=Object(h.useRef)(),Xi=kt.open_rank,rr=Object(h.useMemo)(function(){var xr=[{index:0,title:"\u4EFB\u52A1\u8981\u6C42"}];return Br&&xr.push({index:1,title:"\u80CC\u666F\u77E5\u8BC6"}),yt&&En.get("type")!=="exercises"&&!(kt!=null&&kt.hide_answer)&&xr.push({index:2,title:"\u53C2\u8003\u7B54\u6848"}),En.get("type")!=="exercises"&&!(Vt!=null&&Vt.is_disable_discuss)&&xr.push({index:3,title:Xn?"\u95EE\u7B54":"\u8BC4\u8BBA"}),Xi!=="CLOSE"&&xr.push({index:4,title:Rt}),xr},[yt,Br,Xi,Rt]);function Ta(xr){var ii=parseInt(xr.currentTarget.id);ii===2?mt.homework_common_answer_open?p.b.info("\u7981\u6B62\u67E5\u770B\u7B54\u6848"):Pi():ii===3&&mt.homework_common_comment_open?p.b.info("\u7981\u6B62\u67E5\u770B\u8BC4\u8BBA"):Yt({type:q.A,payload:ii})}function Pi(){return Fi.apply(this,arguments)}function Fi(){return Fi=Object(e.a)(f.a.mark(function xr(){var ii;return f.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:if(!(Et===0)){_r.next=5;break}return _r.next=3,ni();case 3:_r.next=9;break;case 5:return _r.next=7,Object(Ee.o)(mt.identifier);case 7:ii=_r.sent,xi(ii);case 9:case"end":return _r.stop()}},xr)})),Fi.apply(this,arguments)}function ni(){return Ur.apply(this,arguments)}function Ur(){return Ur=Object(e.a)(f.a.mark(function xr(){var ii,Lr,_r;return f.a.wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.next=2,Object(Ee.n)(mt.identifier);case 2:if(ii=zr.sent,Lr=ii.message,!(Lr.length===0)){zr.next=7;break}return p.b.info("\u672C\u5173\u5361\u672A\u8BBE\u7F6E\u7B54\u6848"),zr.abrupt("return");case 7:if(Lr.length){zr.next=10;break}return Yt({type:q.g,payload:{showTip:!0,isMultiLevel:!1,answerScore:Lr.answer_score,selected_unlocked_answer_id:Lr.answer_id}}),zr.abrupt("return");case 10:_r=Lr.filter(function(Zo){return Zo.answer_contents}).length===0,Yt({type:q.g,payload:{showTip:_r,data:Lr,isMultiLevel:Lr.length>1,activeIndex:_r?cr:2}});case 12:case"end":return zr.stop()}},xr)})),Ur.apply(this,arguments)}function xi(xr){var ii=xr.choose_answers,Lr=xr.message,_r=xr.status;if(_r===0){p.b.info(Lr);return}Yt({type:q.g,payload:{showTip:_r===1,data:ii,answerScore:Lr,loading:!1,activeIndex:_r===1?cr:2}})}function zi(){Yt({type:q.s})}function Na(){Yt({type:q.S})}function wo(){return Ni.apply(this,arguments)}function Ni(){return Ni=Object(e.a)(f.a.mark(function xr(){var ii,Lr,_r,wi,zr;return f.a.wrap(function(uo){for(;;)switch(uo.prev=uo.next){case 0:if(Cn(!0),!(Et===1)){uo.next=8;break}return uo.next=4,Object(Ee.p)(mt.identifier);case 4:ii=uo.sent,(ii==null?void 0:ii.status)!==-1&&(at(dr),xi(ii)),uo.next=14;break;case 8:if(!kr){uo.next=14;break}return uo.next=11,Object(Ee.t)(mt.identifier,kr);case 11:Lr=uo.sent,_r=Lr.status,wi=Lr.message,_r===-1||(Qr?(zr=0,Cr.filter(function(Wo){return!Wo.answer_contents}).forEach(function(Wo,qo){qo<=ti&&Wo&&(zr+=Wo.answer_score)}),at(zr)):at(dr),ni(),Ua(null),Yt({type:q.s}));case 14:Cn(!1);case 15:case"end":return uo.stop()}},xr)})),Ni.apply(this,arguments)}function Ua(xr){Yt({type:q.y,payload:xr})}function _o(){return So.apply(this,arguments)}function So(){return So=Object(e.a)(f.a.mark(function xr(){var ii,Lr;return f.a.wrap(function(wi){for(;;)switch(wi.prev=wi.next){case 0:if(wi.prev=0,!En.get("subject_id")){wi.next=7;break}return wi.next=4,Object(Ee.i)(jt.identifier,Object(t.a)({},Object(De.J)()));case 4:Lr=wi.sent,wi.next=10;break;case 7:return wi.next=9,Object(Ee.m)(jt.identifier);case 9:Lr=wi.sent;case 10:Yt({type:q.m,payload:{taskList:((ii=Lr)===null||ii===void 0?void 0:ii.stages)||Lr,showTaskList:!0}}),wi.next=16;break;case 13:wi.prev=13,wi.t0=wi.catch(0),console.log(wi.t0);case 16:case"end":return wi.stop()}},xr,null,[[0,13]])})),So.apply(this,arguments)}function oa(xr,ii,Lr){return Fa.apply(this,arguments)}function Fa(){return Fa=Object(e.a)(f.a.mark(function xr(ii,Lr,_r){return f.a.wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.prev=0,zr.next=3,Object(Ee.D)(ii,Vt.id,Lr);case 3:An[_r].star=Lr,Yt({type:q.I,payload:{taskList:Object(I.a)(An)}}),zr.next=10;break;case 7:zr.prev=7,zr.t0=zr.catch(0),console.log(zr.t0);case 10:case"end":return zr.stop()}},xr,null,[[0,7]])})),Fa.apply(this,arguments)}function Do(){_o()}function to(){Yt({type:q.r})}Object(h.useEffect)(function(){if(!(Vt!=null&&Vt.identifier))return;var xr=Object(Y.t)({objective_type:"shixun",objective_id:Vt==null?void 0:Vt.identifier,school:1});xr.then(function(ii){var Lr;Wn(Object(t.a)({},ii)),qn(ii==null||((Lr=ii.shixun)===null||Lr===void 0)?void 0:Lr.own)})},[Vt==null?void 0:Vt.identifier]),Object(h.useEffect)(function(){return function(){Yt({type:q.r}),Yt({type:q.A,payload:0})}},[qe]),Object(h.useEffect)(function(){Yt({type:q.A,payload:En.get("extra")?3:0})},[En.get("extra")]),Object(h.useEffect)(function(){if(Jr.current)return Jr.current.addEventListener("mousedown",vt),function(){var xr;(xr=Jr.current)===null||xr===void 0||xr.removeEventListener("mousedown",vt)}},[Jr.current]),Object(h.useEffect)(function(){if(tn&&Xt&&Jr.current){var xr=Object(Dt.b)(function(Lr){var _r=Lr.target.scrollTop;_r>=354?Yt({type:q.W,payload:!0}):Yt({type:q.W,payload:!1})},10);Jr.current.addEventListener("scroll",xr);var ii=ke.a.subscribe("evaluate-unity3d-finish",function(){Jr.current.scrollTop=0});return function(){var Lr;(Lr=Jr.current)===null||Lr===void 0||Lr.removeEventListener("scroll",xr),ii()}}},[tn,Xt,Jr.current]);var Io=kt.position,ds=kt.score,Os=kt.subject,ko={onViewAllTask:Do,position:Io,score:ds,subject:Os};function Uo(xr){return Co.apply(this,arguments)}function Co(){return Co=Object(e.a)(f.a.mark(function xr(ii){var Lr;return f.a.wrap(function(wi){for(;;)switch(wi.prev=wi.next){case 0:return wi.next=2,Object(Q.b)({content:ii,container_type:"Shixun",container_id:Vt.id,challenge_id:kt.id,position:Io});case 2:if(Lr=wi.sent,!(Lr.status===-3)){wi.next=6;break}return l.a.info({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u4F60\u7684\u8D26\u53F7\u56E0\u4E3A\u53D1\u5E03\u4E86\u4E0D\u5F53\u5185\u5BB9\uFF0C\u73B0\u5DF2\u5C06\u8BC4\u8BBA\u529F\u80FD\u5C4F\u853D\u3002",okText:"\u786E\u5B9A"}),wi.abrupt("return");case 6:console.log(Lr),Yt({type:q.A,payload:3}),ke.a.publish("create-discuss");case 9:case"end":return wi.stop()}},xr)})),Co.apply(this,arguments)}function lo(){Yt({type:q.U,payload:!Oi})}var Jo={loading:ei,data:Cr,onShowTip:Na,st:Et,challenge:kt};return u.a.createElement(h.Fragment,null,u.a.createElement(R,ko),u.a.createElement("div",{className:$.a["content-wrapper"]},u.a.createElement("div",{className:$.a.scroll,ref:Jr},Xt&&tn?u.a.createElement("div",{className:"".concat($.a["unity-3d-container"]," ").concat(Oi?$.a.enlarge:"")},u.a.createElement("a",{onClick:lo,className:"".concat($.a["btn-enlarge"]," ").concat(Oi?$.a.enlarge:"")},u.a.createElement("i",{className:"iconfont ".concat(Oi?"icon-suoxiao1":"icon-kuoda"," ")})),(gn==null?void 0:gn.user_id)&&u.a.createElement(nt,{userInfo:gn,taskData:In,unity_3d_routes:Xt,onGetUnity3dMessage:Sn})):null,u.a.createElement("ul",{className:"".concat($.a["tab-nav"]," ").concat(pa?$.a["tab-fixed"]:"")},rr.map(function(xr){return u.a.createElement("li",{onClick:Ta,id:xr.index,key:xr.title,className:cr===xr.index?$.a.active:""},u.a.createElement("a",null,xr.title,xr.index===3&&Ot?u.a.createElement("span",null,Ot):null))})),u.a.createElement(se.a,{className:cr===0?$.a["tab-panel-body"]:"hide",value:kt.task_pass}),u.a.createElement("div",{className:cr===1?$.a["tab-panel-body"]:"hide"},Br?u.a.createElement(se.a,{value:Br}):null),u.a.createElement("div",{className:cr===2?$.a["tab-panel-body"]:"hide",style:{padding:"0 0 20px 0"}},u.a.createElement(rt,Jo)),u.a.createElement("div",{className:cr===3?$.a["tab-panel-body"]:"hide"},u.a.createElement(Be.a,{activeIndex:cr,userInfo:gn,shixunIdentifier:Vt.identifier,identity:Tt.identity,user:Tt,allowDisableDiscuss:nn,taskData:In,chatgpt:Xn,to_user_id:zn,challengeId:kt.id})),u.a.createElement("div",{className:cr===4?$.a["tab-panel-body"]:"hide"},u.a.createElement(xe,{activeIndex:cr,taskId:qe}))),En.get("type")!=="exercises"&&!(Vt!=null&&Vt.is_disable_discuss)&&!mt.homework_common_comment_open&&u.a.createElement(fe,{user:Tt,userInfo:gn,user_praise:Gt,praise_count:Bt,praisePlus:Tn,onCreateDiscuss:Uo})),u.a.createElement(Ne.a,null,u.a.createElement(T.a,{className:"task-drawer",width:420,title:null,placement:"left",closable:!1,visible:ur,onClose:to,getContainer:function(){return document.getElementById("task-left-panel")}},En.get("subject_id")&&u.a.createElement(Fe,Object(i.a)({taskList:Object(I.a)(An),challenge:kt,shixun:Vt},Object(De.J)(),{identity:Tt.identity,onSaveTaskStar:oa})),!En.get("subject_id")&&u.a.createElement(ve,{taskList:Object(I.a)(An),challenge:kt,shixun:Vt,identity:Tt.identity,onSaveTaskStar:oa})),u.a.createElement(l.a,{centered:!0,title:"\u63D0\u793A",visible:vr,onOk:wo,onCancel:zi,confirmLoading:_n,className:$.a["answer-tip"]},Ct?u.a.createElement("p",null,"\u5DF2\u7ECF\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u514D\u91D1\u5E01\u67E5\u770B\u7B54\u6848\u54DF~"):u.a.createElement("p",null,"\u5148\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF0C\u518D\u901A\u8FC7\u8BC4\u6D4B\u7684\u5B66\u751F\uFF0C\u5B9E\u8BAD\u4F5C\u4E1A\u6709\u53EF\u80FD\u662F\u96F6\u5206\u54E6~"),Qr?u.a.createElement(Ue,{selected_index:ti,selected_unlocked_answer_id:kr,onSelect:Ua,data:Cr}):u.a.createElement("p",null,"\u5C06\u6263\u9664".concat(dr,"\u70B9\u91D1\u5E01\uFF0C\u662F\u5426\u786E\u8BA4\u67E5\u770B\u7B54\u6848")),Ct?u.a.createElement("a",{href:"/account/certification",class:"to-certification-link",target:"_blank"},"\u7ACB\u5373\u8BA4\u8BC1"):null),u.a.createElement(Kt.a,null)))},zt=y("+L6B"),Qt=y("2/Rp"),bn=y("aHsQ"),Zt=y("sGsY"),$t=y("6/vW"),Zn=y("8Enf"),Fn=y("P2fV"),Hn=y("NJEC"),Yn=y("5Dmo"),jn=y("3S7+"),or=y("rAM+"),jr=y("fxth"),qt=y.n(jr),wn=y("RCxd"),Kr=y("S+dL"),Li=y.n(Kr),Mr=y("P5Jw"),Qn=y("ErOA");function ge(Se){var qe=Se.onShowNotice,at=Se.className,Ot=at===void 0?"":at;return u.a.createElement("a",{title:"\u66F4\u65B0\u901A\u77E5",onClick:qe,className:Ot},u.a.createElement("img",{width:14,src:Li.a,alt:"notice"}))}var V=function(Se){var qe=Se.code_hidden,at=Se.gameStatus,Ot=Se.isEditPath,Ct=Se.currentPath,yt=Se.git_url,Tt=Se.onResetCode,Et=Se.onResetGitCode,mt=Se.onShowCodeSetting,Rt=Se.onResetPassedCode,kt=Se.onShowDir,jt=Se.onRightFullHandler,Gt=Se.isResizeLarge,Bt=Se.tab_type,Xt=Se.startDebug,tn=Se.setStartDebug,Tn=Se.breakPointValue,Sn=Se.shixun,Vt=Se.myshixun,In=Se.game,Xn=Se.unique,zn=Se.setUnique,En=Se.setHighlightLine,Mn=Se.allow_use_code_debugger,ln=Se.onUpdateCode,on=Se.allBreakPointValue,Yt=Se.setAllBreakPointValue,vn=Se.setBreakPointValue,xn=new URLSearchParams(window.location.search),_n=function(){l.a.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:u.a.createElement(wn.a,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Ln=Object(e.a)(f.a.mark(function Wn(){return f.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return ur.next=2,Tt();case 2:Yt({}),vn([]);case 4:case"end":return ur.stop()}},Wn)}));function gn(){return Ln.apply(this,arguments)}return gn}()})},Cn=function(){l.a.confirm({title:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93",icon:u.a.createElement(wn.a,null),content:"\u60A8\u7684\u6240\u6709\u4EE3\u7801\u5C06\u88AB\u8FD8\u539F\u81F3\u521D\u59CB\u72B6\u6001\uFF0C\u4E0D\u5F71\u54CD\u901A\u5173\u72B6\u6001\u4E0E\u4F5C\u4E1A\u6210\u7EE9\u3002\u786E\u8BA4\u91CD\u7F6E\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Ln=Object(e.a)(f.a.mark(function Wn(){return f.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return ur.next=2,Et();case 2:Yt({}),vn([]);case 4:case"end":return ur.stop()}},Wn)}));function gn(){return Ln.apply(this,arguments)}return gn}()})},un=function(){ke.a.publish("show-head-toolbar",!0)},wt=function(Ln){var gn=[];for(var Wn in Ln)if(Ln.hasOwnProperty(Wn)){var An=Ln[Wn],ur=Object(or.a)(An),cr;try{for(ur.s();!(cr=ur.n()).done;){var Oi=cr.value;gn.push("".concat(Wn,":").concat(Oi))}}catch(pa){ur.e(pa)}finally{ur.f()}}return gn},nn=function(){var kn=Object(e.a)(f.a.mark(function Ln(gn){var Wn,An;return f.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return console.log(on,wt(on),222),Object(x.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u5F00\u542F\u8C03\u8BD5\uFF0C\u8BF7\u7A0D\u540E..."}}),cr.next=4,ln();case 4:return cr.next=6,Object(Qn.a)("/api/myshixuns/".concat(Vt==null?void 0:Vt.identifier,"/code_debugs/start.json"),{method:"post",body:{game_identifier:In==null?void 0:In.identifier,breakpoints:wt(on)}});case 6:Wn=cr.sent,Wn.status===0&&(tn(!0),ke.a.publish("active-debug"),ke.a.publish("active-debug-data",(Wn==null?void 0:Wn.data)||{}),zn(Wn==null||((An=Wn.data)===null||An===void 0)?void 0:An.unique)),Object(x.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}});case 9:case"end":return cr.stop()}},Ln)}));return function(gn){return kn.apply(this,arguments)}}(),qn=function(){var kn=Object(e.a)(f.a.mark(function Ln(){var gn;return f.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.next=2,Object(Qn.a)("/api/myshixuns/".concat(Vt==null?void 0:Vt.identifier,"/code_debugs/stop.json"),{method:"post",body:{unique:Xn}});case 2:gn=An.sent,gn.status===0&&(En(null),tn(!1));case 4:case"end":return An.stop()}},Ln)}));return function(){return kn.apply(this,arguments)}}();return u.a.createElement(h.Fragment,null,u.a.createElement("div",{className:qt.a["action-bar"]},Bt===1&&u.a.createElement(h.Fragment,null,Mn&&u.a.createElement(h.Fragment,null,Xt?u.a.createElement("b",{title:"\u505C\u6B62\u8C03\u8BD5",style:{marginRight:6},className:qt.a.startDebug,onClick:qn},u.a.createElement("i",{style:{color:"#c75450"},className:"iconfont icon-tingzhitiaoshi font12"})):Tn!=null&&Tn.length?u.a.createElement("b",{title:"\u5F00\u59CB\u8C03\u8BD5",className:qt.a.startDebug,onClick:nn},u.a.createElement("i",{className:"iconfont icon-debug font14"})):u.a.createElement(jn.a,{title:"\u8BF7\u5148\u5728\u4EE3\u7801\u884C\u8BBE\u7F6E\u65AD\u70B9"},u.a.createElement("b",{className:qt.a.disabledDebug},u.a.createElement("i",{className:"iconfont icon-debug font14"})))),!qe&&u.a.createElement("a",{title:"\u663E\u793A\u76EE\u5F55",onClick:kt},u.a.createElement("i",{className:"iconfont icon-wenjian"})),yt&&u.a.createElement(Mr.CopyToClipboard,{text:yt,onCopy:function(){return p.b.success("\u590D\u5236\u6210\u529F")}},u.a.createElement("a",{title:"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740"},u.a.createElement("i",{className:"iconfont icon-fuzhi2"}))),at===2&&Ot&&!Xt&&u.a.createElement(Hn.a,{placement:"bottomRight",title:"\u4F60\u5728\u672C\u5173\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u4E0A\u6B21\u901A\u8FC7\u7684\u4EE3\u7801?",onConfirm:Rt},u.a.createElement("a",{title:"\u52A0\u8F7D\u4E0A\u6B21\u901A\u8FC7\u7684\u4EE3\u7801"},u.a.createElement("i",{className:"iconfont icon-fanhuishangcidaima font-20 "}))),Ot&&!Xt&&u.a.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:_n},u.a.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Ot&&!Xt&&u.a.createElement("a",{title:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93",onClick:Cn},u.a.createElement("i",{className:"iconfont icon-zhongzhidaimacangku font12 "})),u.a.createElement("a",{onClick:mt,title:"\u8BBE\u7F6E"},u.a.createElement("i",{className:"iconfont icon-shezhi"}))),(Bt===2||Bt===3||Bt===4||Bt===5)&&u.a.createElement("a",{title:"\u5DE5\u5177\u680F",onClick:un},u.a.createElement("i",{className:"iconfont icon-vncshixunjiemian-gongjulan mr5"})),!(xn.get("isFullScreen")==="true")&&u.a.createElement("a",{onClick:jt,title:Gt?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},u.a.createElement("i",{className:Gt?"iconfont icon-shousuo":"iconfont icon-zhankai"}))))},J=y("bHOs"),ie=y("9VGf"),Re=y("l9Ud"),he=y.n(Re),it;(function(Se){Se.Classrooms="classrooms",Se.Shixuns="shixuns",Se.Paths="paths",Se.Projects="projects",Se.Videos="videos",Se.Topics="topics",Se.Teach="teach-group"})(it||(it={}));var Ut=function(qe){var at=qe.userDetail,Ot=qe.user,Ct=qe.globalSetting,yt=qe.loading,Tt=qe.dispatch,Et=qe.onClose,mt=qe.shixun,Rt=Object(s.a)(qe,["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"]),kt=Object(E.i)(),jt=Object(h.useState)([]),Gt=Object(r.a)(jt,2),Bt=Gt[0],Xt=Gt[1],tn=Object(h.useState)({}),Tn=Object(r.a)(tn,2),Sn=Tn[0],Vt=Tn[1],In=Object(h.useState)(0),Xn=Object(r.a)(In,2),zn=Xn[0],En=Xn[1],Mn=Object(h.useState)(Object(t.a)({page:1,limit:20,id:mt.identifier},kt)),ln=Object(r.a)(Mn,2),on=ln[0],Yt=ln[1],vn=Object(h.useCallback)(function(){return Rt.visible},[Rt.visible]);Object(h.useEffect)(function(){on.page=1,xn()},[Rt.visible]);var xn=function(){var _n=Object(e.a)(f.a.mark(function Cn(){var un;return f.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Tt({type:"shixunsDetail/getSetData",payload:on});case 2:un=nn.sent,un&&(Xt(Object(I.a)(un.data_sets)),En(un.data_sets_count),Vt(un.folder_name));case 4:case"end":return nn.stop()}},Cn)}));return function(){return _n.apply(this,arguments)}}();return u.a.createElement(u.a.Fragment,null,!!Bt.length&&Rt.children,u.a.createElement(T.a,{title:"\u6570\u636E\u96C6",placement:"right",className:he.a.wrap,width:300,closable:!1,onClose:Et,visible:vn()},u.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6570\u636E\u96C6\u8DEF\u5F84"),u.a.createElement("dl",{className:he.a.list},u.a.createElement(jn.a,{title:Sn},u.a.createElement("dt",null,Sn)),u.a.createElement("dd",null,u.a.createElement(Mr.CopyToClipboard,{text:Sn,onCopy:function(){return p.b.success("\u590D\u5236\u6210\u529F")}},u.a.createElement("span",{className:"".concat(he.a.copy," current")},"\u70B9\u51FB\u590D\u5236")))),u.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6587\u4EF6\u8DEF\u5F84"),Bt==null?void 0:Bt.map(function(_n,Cn){return u.a.createElement("dl",{className:he.a.list},u.a.createElement(jn.a,{title:_n.title},u.a.createElement("dt",null,u.a.createElement("span",{className:"icon-wenjian4 mr5"}),_n.title)),u.a.createElement("dd",null,u.a.createElement(Mr.CopyToClipboard,{text:_n.file_path,onCopy:function(){return p.b.success("\u590D\u5236\u6210\u529F")}},u.a.createElement("span",{className:"".concat(he.a.copy," current")},"\u70B9\u51FB\u590D\u5236"))))}),u.a.createElement("div",{className:"tc"},u.a.createElement(N.a,{onChange:function(Cn){on.page=Cn,xn()},className:he.a.page,size:"small",total:zn,pageSize:on.limit,hideOnSinglePage:!0}))))},Jt=Object(x.a)(function(Se){var qe=Se.user,at=Se.userDetail,Ot=Se.loading,Ct=Se.shixunsDetail,yt=Se.globalSetting;return{user:qe,userDetail:at,shixunsDetail:Ct,globalSetting:yt,loading:Ot.models.index}})(Ut),an=y("m3rI"),Pt=y("tUsH"),cn=y.n(Pt),Rn=y("Icgb"),Jn=y("bPs0"),ir=y("LvDl"),tr=Zt.a.Countdown;function fr(){return u.a.createElement("p",null,"\u5B9E\u9A8C\u73AF\u5883\u5C06\u6062\u590D\u5230\u521D\u59CB\u72B6\u6001\uFF0C\u60A8\u5728\u7CFB\u7EDF\u4E2D\u521B\u5EFA\u7684\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931\u3002\u8BF7\u786E\u4FDD\u60A8\u7684\u6570\u636E\u5DF2\u4FDD\u5B58\uFF08\u5982\uFF1A\u7248\u672C\u5E93\u4EE3\u7801\u5DF2\u63A8\u9001\u5230\u670D\u52A1\u5668\uFF09\u3002\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\uFF1F")}var Dr=function(Se){var qe,at=Se.mirror_description,Ot=Se.difficulty,Ct=Se.git_url,yt=Se.isNotice,Tt=Se.user,Et=Se.game,mt=Se.shixun,Rt=mt===void 0?{}:mt,kt=Se.resetVncLoading,jt=Se.onUpdateCostTime,Gt=Se.lastedGetTaskInfoTime,Bt=Se.onShowNotice,Xt=Se.onResetGitCode,tn=Se.onResetCode,Tn=Se.onResetVnc,Sn=Se.onRestartReboot,Vt=Se.onAddVncTime,In=Se.onUpdateCode,Xn=Se.unity_3d_routes,zn=Se.st,En=Se.toolbarItem,Mn=En===void 0?{}:En,ln=Se.myshixun,on=ln===void 0?{}:ln,Yt=Se.mirror_name,vn=Se.mirror_description_multi,xn=Se.onResetAllVnc,_n=Object(E.i)(),Cn=new URLSearchParams(window.location.search),un=Rt.name,wt=Rt.identifier,nn=Rt.task_pass,qn=Rt.test_set_permission,kn=Et.cost_time,Ln=Et.status,gn=Tt.user_url,Wn=Tt.image_url,An=Tt.grade,ur=An===void 0?0:An,cr=Object(h.useState)(!1),Oi=Object(r.a)(cr,2),pa=Oi[0],Cr=Oi[1],dr=Object(h.useState)({}),ei=Object(r.a)(dr,2),vr=ei[0],Qr=ei[1],kr=Object(h.useState)("#FFF"),ti=Object(r.a)(kr,2),Br=ti[0],Jr=ti[1],Xi=Object(h.useState)(null),rr=Object(r.a)(Xi,2),Ta=rr[0],Pi=rr[1],Fi=Object(h.useState)(),ni=Object(r.a)(Fi,2),Ur=ni[0],xi=ni[1],zi=Object(h.useState)(!1),Na=Object(r.a)(zi,2),wo=Na[0],Ni=Na[1],Ua=Object(h.useRef)(),_o=Object(h.useRef)(),So=Object(h.useRef)(),oa=Mn.index_tab,Fa=Mn.shixun_environment_id,Do=Mn.tab_type,to=Mn.windows_vnc,Io=Mn.vnc_url,ds=Mn.linux_vnc,Os=Mn.reboot_cloud,ko=Mn.cloud_type,Uo=Mn.resData,Co=Mn.instance_startup_type,lo=Object(h.useRef)(!1);Object(h.useEffect)(function(){var Gi;if(clearTimeout(Ua.current),clearTimeout(_o.current),vr!=null&&(Gi=vr.exercise)!==null&&Gi!==void 0&&Gi.left_time){var ki,Vi;if((vr==null||((ki=vr.exercise)===null||ki===void 0)?void 0:ki.left_time)>1800){var no;_o.current=setTimeout(function(){l.a.info({content:"\u5F53\u524D\u8DDD\u79BB\u8003\u8BD5\u7ED3\u675F\u8FD8\u670930\u5206\u949F",icon:u.a.createElement(Rn.a,null),okText:"\u77E5\u9053\u4E86"})},((vr==null||((no=vr.exercise)===null||no===void 0)?void 0:no.left_time)-1800)*1e3)}if((vr==null||((Vi=vr.exercise)===null||Vi===void 0)?void 0:Vi.left_time)>900){var ji;Ua.current=setTimeout(function(){l.a.info({content:"\u5F53\u524D\u8DDD\u79BB\u8003\u8BD5\u7ED3\u675F\u8FD8\u670915\u5206\u949F",icon:u.a.createElement(Rn.a,null),okText:"\u77E5\u9053\u4E86"})},((vr==null||((ji=vr.exercise)===null||ji===void 0)?void 0:ji.left_time)-900)*1e3)}}},[vr]),Object(h.useEffect)(function(){function Gi(){return ki.apply(this,arguments)}function ki(){return ki=Object(e.a)(f.a.mark(function Vi(){var no,ji,ya,va,Ga,Va,$i,Rs,Xo,vs;return f.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:if(!(Cn.get("type")==="exercises")){ma.next=16;break}if(!(window.self===window.top)){ma.next=4;break}return window.top.location.href="/",ma.abrupt("return");case 4:if(!(Cn.get("coursesId")==="coursesId")){ma.next=10;break}return ma.next=7,Object(Ge.Z)({categoryId:Cn.get("exercisesId"),login:Cn.get("login")});case 7:va=ma.sent,ma.next=13;break;case 10:return ma.next=12,Object(Ge.z)({categoryId:Cn.get("exercisesId"),login:Cn.get("login")});case 12:va=ma.sent;case 13:Qr(Object(t.a)({},va)),ke.a.publish("exercise-data",va),(no=va)!==null&&no!==void 0&&no.left_banner_id&&(ji=va)!==null&&ji!==void 0&&(ya=ji.exercise)!==null&&ya!==void 0&&ya.left_time&&(Pi(Date.now()+((Ga=va)===null||Ga===void 0||((Va=Ga.exercise)===null||Va===void 0)?void 0:Va.left_time)*1e3),setTimeout(function(){Jr("red")},((($i=va)===null||$i===void 0||((Rs=$i.exercise)===null||Rs===void 0)?void 0:Rs.left_time)-300>0?((Xo=va)===null||Xo===void 0||((vs=Xo.exercise)===null||vs===void 0)?void 0:vs.left_time)-300:0)*1e3));case 16:case"end":return ma.stop()}},Vi)})),ki.apply(this,arguments)}Gi()},[]),Object(h.useEffect)(function(){var Gi=ke.a.subscribe("update-windows-time",function(Vi){xi(parseInt(Vi.remaining_time/1e3))}),ki=ke.a.subscribe("show-head-toolbar",function(Vi){Cr(Vi)});return function(){Gi(),ki()}},[]),Object(h.useEffect)(function(){var Gi;return Cn.get("type")==="exercises"&&vr!==null&&vr!==void 0&&(Gi=vr.exercise)!==null&&Gi!==void 0&&Gi.screen_open&&(Jn.b.forEach(function(ki,Vi){window.addEventListener(ki,xr,!1),window.addEventListener("blur",xr,!1)}),window.focus(),So.current=setInterval(function(){window.focus()},1e3)),function(){Jn.b.forEach(function(ki,Vi){window.removeEventListener(ki,xr,!1)}),window.removeEventListener("blur",xr,!1),clearInterval(So.current)}},[vr]);var Jo=function(){Ni(!wo)},xr=function(ki){document.activeElement.tagName!=="IFRAME"&&(window.parent.postMessage("backExercise","*"),lo.current||Object(D.b)())};function ii(){Cr(!pa)}function Lr(){Cr(!1)}function _r(){if(_n.courseId&&_n.homeworkId){location.href="/classrooms/".concat(_n.courseId,"/shixun_homework/").concat(_n.homeworkId,"/detail");return}Cn.get("type")==="exercises"&&xr("back"),location.href="/shixuns/".concat(wt,"/challenges")}function wi(){return zr.apply(this,arguments)}function zr(){return zr=Object(e.a)(f.a.mark(function Gi(){return f.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:if(!kt){Vi.next=2;break}return Vi.abrupt("return");case 2:return Vi.next=4,Tn();case 4:case"end":return Vi.stop()}},Gi)})),zr.apply(this,arguments)}function Zo(){l.a.confirm({title:"\u9000\u51FA\u5B9E\u8BAD",icon:u.a.createElement(wn.a,null),content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5B9E\u8BAD\u5417\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:_r})}function uo(Gi){if(Lr(),Gi==="reset-task"&&!kt)var ki=l.a.confirm({title:"\u91CD\u7F6E\u73AF\u5883",icon:u.a.createElement(wn.a,null),content:u.a.createElement(fr,null),maskClosable:!1,keyboard:!1,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var ya=Object(e.a)(f.a.mark(function Ga(){return f.a.wrap(function($i){for(;;)switch($i.prev=$i.next){case 0:if(!(Do===4)){$i.next=6;break}return ki.update({cancelButtonProps:{disabled:!0}}),$i.next=4,wi();case 4:return ki.update({cancelButtonProps:{disabled:!1}}),$i.abrupt("return");case 6:wi();case 7:case"end":return $i.stop()}},Ga)}));function va(){return ya.apply(this,arguments)}return va}()});if(Gi==="restart-reboot"&&!kt)var Vi=l.a.confirm({title:"\u91CD\u542F\u4E91\u4E3B\u673A",icon:u.a.createElement(wn.a,null),content:"\u60A8\u786E\u5B9A\u8981\u91CD\u542F\u4E91\u4E3B\u673A\u5417\uFF1F",maskClosable:!1,keyboard:!1,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var ya=Object(e.a)(f.a.mark(function Ga(){return f.a.wrap(function($i){for(;;)switch($i.prev=$i.next){case 0:if(!(Do===4)){$i.next=6;break}return Vi.update({cancelButtonProps:{disabled:!0}}),$i.next=4,Sn();case 4:return Vi.update({cancelButtonProps:{disabled:!1}}),$i.abrupt("return");case 6:Sn();case 7:case"end":return $i.stop()}},Ga)}));function va(){return ya.apply(this,arguments)}return va}()});if(Gi==="reset-git-code"&&(kt||l.a.confirm({title:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93",icon:u.a.createElement(wn.a,null),content:"\u60A8\u7684\u6240\u6709\u4EE3\u7801\u5C06\u88AB\u8FD8\u539F\u81F3\u521D\u59CB\u72B6\u6001\uFF0C\u4E0D\u5F71\u54CD\u901A\u5173\u72B6\u6001\u4E0E\u4F5C\u4E1A\u6210\u7EE9\u3002\u786E\u8BA4\u91CD\u7F6E\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Xt})),Gi==="reset-code"&&(kt||l.a.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:u.a.createElement(wn.a,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:tn})),Gi==="full-screen")if(Object(D.a)())Object(D.b)();else{var no,ji;Object(D.d)((no=document)===null||no===void 0||((ji=no.getElementById)===null||ji===void 0)?void 0:ji.call(no,"task-right-panel"))}if(Gi==="show-clipboard-box"){if(ko){l.a.info({title:"\u63D0\u793A",icon:u.a.createElement(wn.a,null),content:"\u5F53\u524D\u5B9E\u9A8C\u73AF\u5883\u7684\u3010\u590D\u5236\u7C98\u8D34\u3011\u529F\u80FD\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\uFF0C\u656C\u8BF7\u671F\u5F85~",centered:!0});return}ke.a.publish("show-clipboard-box-".concat(oa))}}var Wo={task_pass:nn,test_set_permission:qn,mirror_description:at,difficulty:Ot,resetVncLoading:kt,git_url:Ct,onVncAction:uo,onHideToolBar:Lr,shixun:Rt,unity_3d_routes:Xn,index_tab:oa,shixun_environment_id:Fa,tab_type:Do,windows_vnc:to,vnc_url:Io,linux_vnc:ds,reboot_cloud:Os,cloud_type:ko,resData:Uo,instance_startup_type:Co,mirror_name:Yt,mirror_description_multi:vn},qo=Object(h.useCallback)(function(){return Ur?u.a.createElement(di,{defaultTime:Ur,onAddVncTime:Vt,onResetAllVnc:xn,toShixun:_r,myshixun:on,title:"\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6"}):u.a.createElement(u.a.Fragment,null)},[Ur]);return u.a.createElement("div",{className:"task-header-container"},Cn.get("type")!=="exercises"&&u.a.createElement(u.a.Fragment,null,u.a.createElement("a",{className:"task-user-info",href:gn,target:"_blank"},Wn?u.a.createElement("img",{width:"35",height:"35",src:"".concat(an.a.IMG_SERVER,"/images/").concat(Wn)}):null,u.a.createElement("span",null,Tt.name)),u.a.createElement("div",{className:"grade-info"},u.a.createElement("img",{src:cn.a,alt:"gold",width:20}),ur)),u.a.createElement("h2",{className:"shixun-info"},un,Cn.get("type")!=="exercises"&&u.a.createElement($t.a,{lastedGetTaskInfoTime:Gt,status:Ln,defaultTime:kn,onUpdateCostTime:jt,retentionTime:"taskBuildTimes",title:"\u5B9E\u9A8C\u603B\u7528\u65F6"})),u.a.createElement("div",{className:"flex-container"},Cn.get("type")!=="exercises"&&u.a.createElement(u.a.Fragment,null,yt&&u.a.createElement(ge,{className:"btn-notice",onShowNotice:Bt})),qo(),to&&!Object(ir.isEmpty)(Uo)&&u.a.createElement("span",{onClick:function(ki){ki.preventDefault(),ke.a.publish("send-ctrl-alt-delete-".concat(oa))},className:"c-grey-c mr20 current"},"\u53D1\u9001CTRL+ALT+DELETE"),Xn&&u.a.createElement("a",{title:"\u5DE5\u5177\u680F",onClick:ii},u.a.createElement("i",{className:"iconfont icon-vncshixunjiemian-gongjulan mr5"})),u.a.createElement(Jt,{visible:wo,onClose:Jo,shixun:Rt},u.a.createElement("a",{className:"btn-vnc",title:"\u6570\u636E\u96C6",onClick:Jo},u.a.createElement("span",{className:"iconfont font14 mr5 icon-shujuji2 current"}),"\u6570\u636E\u96C6"))),Cn.get("type")!=="exercises"&&u.a.createElement("a",{className:"btn-out",onClick:Zo,title:"\u9000\u51FA\u5B9E\u8BAD"},u.a.createElement("i",{className:"iconfont icon-kaiguan"})),(vr==null||((qe=vr.exercise)===null||qe===void 0)?void 0:qe.left_time)&&u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{style:{color:Br},className:"iconfont icon-kaoshishichang mr5"}),u.a.createElement("span",{className:"c-white mr20"},u.a.createElement(tr,{className:"flex-wrp ",valueStyle:{color:Br,fontSize:12,fontWeight:"normal"},title:u.a.createElement("span",{style:{color:Br,fontSize:12}},"\u5269\u4F59\u65F6\u95F4\uFF1A"),value:Ta,onFinish:Object(e.a)(f.a.mark(function Gi(){var ki,Vi;return f.a.wrap(function(ji){for(;;)switch(ji.prev=ji.next){case 0:return ji.next=2,Object(Ge.ab)({categoryId:Cn.get("exercisesId"),commit_method:2});case 2:ki=ji.sent,(ki==null?void 0:ki.status)===0&&(zn===0&&In(1),l.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:u.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",u.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var ya=Object(e.a)(f.a.mark(function Ga(){return f.a.wrap(function($i){for(;;)switch($i.prev=$i.next){case 0:window.parent.location.href="/classrooms/".concat(Cn.get("coursesId"),"/exercise/").concat(Cn.get("exercisesId"),"/detail");case 1:case"end":return $i.stop()}},Ga)}));function va(){return ya.apply(this,arguments)}return va}()})),(ki==null?void 0:ki.status)===-3&&(Vi=parseInt(ki==null?void 0:ki.message),Pi(Date.now()+Vi*1e3));case 5:case"end":return ji.stop()}},Gi)}))}))),Cn.get("type")==="exercises"&&u.a.createElement(Qt.a,{type:"primary",onClick:function(){zn===0&&In(),l.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc"},"\u8BF7\u786E\u8BA4\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u5DF2\u7ECF\u63D0\u4EA4\uFF1F"),onOk:function(){lo.current=!0,xr()}})}},u.a.createElement("span",{className:"iconfont icon-yiguanbi mr5 font14"})," \u8FD4\u56DE\u8BD5\u5377"),u.a.createElement(Ne.a,null,u.a.createElement(T.a,{width:280,className:"setting-drawer",title:null,placement:"right",closable:!1,destroyOnClose:!1,visible:pa,onClose:Lr},u.a.createElement(J.a,Wo))))},Yi=300;function oi(Se){var qe=Se.title,at=Se.time,Ot=Se.className,Ct=Ot===void 0?"":Ot,yt=Se.callback,Tt=Se.desc,Et=Tt===void 0?"":Tt,mt=Se.style,Rt=mt===void 0?{}:mt;function kt(){yt&&yt()}return u.a.createElement("a",{onClick:kt,title:qe,className:Ct},u.a.createElement("i",{className:"iconfont icon-shijian1 mr5",style:Rt}),u.a.createElement("span",null,Et?"".concat(Et,"\uFF1A"):"",Object($t.b)(at)))}function di(Se){var qe=Se.onAddVncTime,at=Se.onResetAllVnc,Ot=Se.toShixun,Ct=Se.title,yt=Ct===void 0?"":Ct,Tt=Se.myshixun,Et=Se.defaultTime,mt=Object(h.useState)(Et),Rt=Object(r.a)(mt,2),kt=Rt[0],jt=Rt[1],Gt=Object(h.useState)(!1),Bt=Object(r.a)(Gt,2),Xt=Bt[0],tn=Bt[1],Tn=Object(h.useState)(!1),Sn=Object(r.a)(Tn,2),Vt=Sn[0],In=Sn[1],Xn=Object(h.useRef)(!0);Object(h.useEffect)(function(){return window.addEventListener("visibilitychange",zn),function(){window.removeEventListener("visibilitychange",zn)}},[]);var zn=function(){var Yt=Object(e.a)(f.a.mark(function vn(xn){var _n,Cn,un,wt,nn;return f.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:if(!(document.visibilityState==="visible")){kn.next=5;break}return kn.next=3,Object(Ee.s)(Tt==null?void 0:Tt.identifier);case 3:_n=kn.sent,(_n==null?void 0:_n.status)===0&&(wt=(_n==null||((Cn=_n.data)===null||Cn===void 0)?void 0:Cn.remainingTime)>0?_n==null||((un=_n.data)===null||un===void 0)?void 0:un.remainingTime:0,nn=wt/1e3,jt(nn),nn>Yi&&In(!1));case 5:case"end":return kn.stop()}},vn)}));return function(xn){return Yt.apply(this,arguments)}}();Object(ie.a)(function(){jt(kt-1)},kt>0?1e3:null),Object(h.useEffect)(function(){(kt===300||kt===180||kt===60||kt===0)&&In(!0)},[kt]),Object(h.useEffect)(function(){Xn.current&&(Et<Yi&&In(!0),Xn.current=!1,jt(Et))},[Et]);function En(){kt!==0?In(!1):Ot()}function Mn(){return ln.apply(this,arguments)}function ln(){return ln=Object(e.a)(f.a.mark(function Yt(){var vn,xn,_n;return f.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(tn(!0),!(kt>0)){un.next=8;break}return un.next=4,qe();case 4:xn=un.sent,jt((xn==null||((vn=xn.data)===null||vn===void 0)?void 0:vn.remaining_time)/1e3),un.next=12;break;case 8:return un.next=10,at();case 10:_n=un.sent,Ot();case 12:tn(!1),In(!1);case 14:case"end":return un.stop()}},Yt)})),ln.apply(this,arguments)}function on(){kt<Yi&&In(!0)}return u.a.createElement(h.Fragment,null,u.a.createElement(oi,{callback:on,title:"\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6",className:"btn-vnc ".concat(kt<Yi?"color-red":""," "),time:kt,desc:yt}),u.a.createElement(Ne.a,null,u.a.createElement(l.a,{title:[u.a.createElement(wn.a,{className:"modalIconYellow"}),kt!==0?"\u5B9E\u9A8C\u73AF\u5883\u5EF6\u65F6\u63D0\u9192":"\u5B9E\u9A8C\u73AF\u5883\u7ED3\u675F\u63D0\u9192"],maskClosable:!1,closable:!1,centered:!0,wrapClassName:"customModalStyle",visible:Vt,onOk:Mn,cancelButtonProps:{style:{display:kt!==0?"inline-block":"none"}},confirmLoading:Xt,onCancel:En,okText:kt!==0?"\u7ACB\u5373\u5EF6\u957F":"\u9000\u51FA",cancelText:"\u4E0D\u9700\u8981"},kt!==0?"\u5F53\u524D\u5B9E\u9A8C\u73AF\u5883\u5C06\u4E8E ".concat(Math.round(kt/60)," \u5206\u949F\u540E\u5173\u95ED\uFF0C\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\u5417\uFF1F"):"\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6\u7ED3\u675F\uFF0C\u8D44\u6E90\u5DF2\u7ECF\u88AB\u56DE\u6536\u3002")))}var _a=y("zJix"),Si=y.n(_a),ga=y("KJ0q"),mo=y("7Kak"),ao=y("9yH6"),yo=y("14J3"),Ia=y("BMrR"),Za=y("jCWc"),Ri=y("kPKH"),ri={0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N"},hi=function(Se){var qe=Se.category,at=Se.answer,Ot=at===void 0?"":at,Ct=Se.index,yt=Se.option_name,Tt=Se.callback,Et=ri[Ct];function mt(){if(qe===1)Tt(Et);else{var Rt=(Ot==null?void 0:Ot.split(""))||[],kt=Rt.indexOf(Et);kt>=0?Rt.splice(kt,1):Rt.push(Et),Tt(Rt.join(""))}}return u.a.createElement("a",{className:"flex-container",onClick:mt},u.a.createElement("span",{style:{position:"relative",top:4},className:"".concat(qe===1?"radio":"checkbox"," ").concat(Ot&&Ot.indexOf(Et)>=0?"active":"")}),u.a.createElement("div",{className:"flex-wrp"},u.a.createElement("span",{style:{lineHeight:1.7,fontSize:16,whiteSpace:"nowrap"}},Et,"\u3001"),u.a.createElement(se.a,{className:"subject-body",value:yt})))},Mi=y("5NDa"),Nr=y("5rEg"),Ar=function(Se){var qe=Se.callback,at=Se.multi_count,Ot=Se.answer,Ct=Object(h.useState)([]),yt=Object(r.a)(Ct,2),Tt=yt[0],Et=yt[1];return Object(h.useEffect)(function(){if(at){if(Ot!=null&&Ot.length){Et(Ot);return}var mt=Array.from({length:at}).fill("");Et(mt)}},[at,Ot]),console.log(Tt,Ot,"multi_count"),u.a.createElement("div",{className:"option"},Tt==null?void 0:Tt.map(function(mt,Rt){return u.a.createElement(Ia.a,{align:"middle",className:"mb10 text"},u.a.createElement("span",{className:"mb5"},"\u586B\u7A7A",Rt+1,"\u7B54\u6848\uFF1A"),u.a.createElement(Nr.a.TextArea,{key:Rt,value:mt,onChange:function(jt){Tt[Rt]=jt.target.value,qe(Tt)}}))}))},fi=function(Se){var qe=Se.id,at=Se.answer,Ot=Se.challenge_question,Ct=Se.category,yt=Se.subject,Tt=Se.onSetAnswers,Et=Se.question_name,mt=Se.multi_count;function Rt(kt){Tt(qe,kt)}return u.a.createElement("li",null,u.a.createElement(Ia.a,{className:"subject c-grey-999",align:"stretch"},u.a.createElement(Ri.a,{flex:"40px"},u.a.createElement("p",{className:"mt3"},qe+1,"\u3001")),u.a.createElement(Ri.a,{flex:"1"},u.a.createElement(se.a,{value:"".concat(yt),className:"subject-body"}))),Et==="\u5355\u9009\u9898/\u591A\u9009\u9898"&&u.a.createElement("div",{className:"option"},Ot==null?void 0:Ot.map(function(kt,jt){var Gt=kt.option_name;return u.a.createElement(hi,{index:jt,key:Gt,option_name:Gt,answer:at,category:Ct,callback:Rt})})),Et==="\u5224\u65AD\u9898"&&u.a.createElement("div",{className:"option"},u.a.createElement(ao.a.Group,{className:"mb10",value:at||void 0,onChange:function(jt){return Rt(jt.target.value)}},u.a.createElement(ao.a,{value:"true",className:"mr40"},"\u6B63\u786E"),u.a.createElement(ao.a,{value:"false"},"\u9519\u8BEF"))),Et==="\u586B\u7A7A\u9898"&&u.a.createElement(Ar,{multi_count:mt,callback:Rt,answer:at}))},wr=function(Se){var qe=Se.chooses,at=Se.answers,Ot=Se.onSetAnswers;return u.a.createElement("ul",{className:"choose-container"},qe.map(function(Ct,yt){var Tt=Ct.subject,Et=Ct.challenge_question,mt=Ct.category,Rt=Ct.question_name,kt=Ct.multi_count;return u.a.createElement(fi,{key:yt,id:yt,subject:Tt,challenge_question:Et,category:mt,answer:at[yt],onSetAnswers:Ot,question_name:Rt,multi_count:kt})}))},vi=y("yqJW"),pr=y("cf+g"),ta=y.n(pr),Qi=y("UbZX"),ea=y.n(Qi),Eo=y("LYID"),ca=y.n(Eo),qa=function(qe){var at=qe.id,Ot=qe.isActive,Ct=qe.title,yt=qe.onActive,Tt=qe.had_submmit,Et=qe.result,mt=qe.actual_output,Rt=qe.standard_answer,kt=qe.question_name;function jt(){yt(at)}var Gt="test-case-item";return Ot&&(Gt+=" active"),Tt&&(Gt+=" has-result"),u.a.createElement("li",{className:Gt},u.a.createElement("a",{className:"case-header",onClick:jt},u.a.createElement("h2",null,u.a.createElement("div",{className:Ot?"arrow-down":"arrow-right"}),u.a.createElement("span",{className:"test-title"},Ct)),Tt>0?u.a.createElement("img",{width:16,src:Et?ea.a:ca.a}):u.a.createElement("i",{className:"iconfont icon-suo1"})),u.a.createElement("div",{className:"item-desc ".concat(Ot?"show":"hide"," choose-game-item")},Tt?Et?kt==="\u586B\u7A7A\u9898"?u.a.createElement(h.Fragment,null,u.a.createElement("p",null,u.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),u.a.createElement("b",null,Rt==null?void 0:Rt.map(function(Bt,Xt){var tn;return u.a.createElement("p",null,"\u586B\u7A7A",Xt+1,"\uFF1A",Bt==null||((tn=Bt.text)===null||tn===void 0)?void 0:tn.join("\u3001"))}))),u.a.createElement("p",null,u.a.createElement("div",null,"\u4F60\u7684\u7B54\u6848\uFF1A"),u.a.createElement("b",{className:"c-red"},mt==null?void 0:mt.map(function(Bt,Xt){return u.a.createElement("p",null,"\u586B\u7A7A",Xt+1,"\uFF1A",Bt)})))):u.a.createElement(h.Fragment,null,u.a.createElement("p",null,"\u6B63\u786E\u9009\u9879\uFF1A",u.a.createElement("b",null,Rt)),u.a.createElement("p",null,"\u4F60\u7684\u9009\u9879\uFF1A",u.a.createElement("b",{className:"c-red"},mt))):u.a.createElement("p",null,"\u9519\u8BEF\uFF0C\u4E0D\u652F\u6301\u67E5\u770B"):u.a.createElement("p",null,"\u5C1A\u672A\u63D0\u4EA4\uFF0C\u6682\u4E0D\u652F\u6301\u67E5\u770B")))},ja=function(Se){var qe=Se.onResizeSetContainer,at=Se.moveY,Ot=Se.had_submmit,Ct=Se.test_sets,yt=Ct===void 0?[]:Ct,Tt=Se.challenge_chooses_count,Et=Se.choose_correct_num,mt=Object(h.useState)(-1),Rt=Object(r.a)(mt,2),kt=Rt[0],jt=Rt[1];function Gt(tn){jt(tn===kt?-1:tn)}var Bt=Et===Tt;function Xt(){qe(at)}return u.a.createElement(h.Fragment,null,u.a.createElement("div",{className:"test-header"},u.a.createElement("span",{className:"active"},"\u6D4B\u8BD5\u7ED3\u679C"),u.a.createElement("a",{onClick:Xt},u.a.createElement("i",{className:"iconfont ".concat(at===.01?"icon-shousuo":"icon-zhankai"," icon-zhankai")}))),Ot?u.a.createElement("p",{className:"test-result ".concat(Bt?"success":"failer")},u.a.createElement("span",{className:"count"},u.a.createElement("img",{width:16,src:Bt?ea.a:ta.a}),Et," / ",Tt," \u5171\u6709",Tt,"\u9898\uFF0C"),u.a.createElement("span",null,Bt?"\u5168\u90E8\u901A\u8FC7":"\u5176\u4E2D".concat(Tt-Et,"\u9898\u76EE\u7ED3\u679C\u4E0D\u5339\u914D\u3002\u8BE6\u60C5\u5982\u4E0B\uFF1A"))):null,u.a.createElement("ul",{className:"test-case-list"},yt.map(function(tn,Tn){return u.a.createElement(qa,Object(i.a)({key:"item"+Tn,had_submmit:Ot,title:"\u9898\u76EE".concat(Tn+1)},tn,{isActive:kt===Tn,id:Tn,onActive:Gt}))})))},Ba=y("9odi"),Ka=y.n(Ba),Ha=y("VjRW"),Mo=y.n(Ha),Oo=function(Se){var qe,at=Se.st,Ot=Se.prev_game,Ct=Se.next_game,yt=Se.time_limit,Tt=Se.record_consume_time,Et=Se.loading,mt=Se.shixun,Rt=Se.game,kt=Se.onRun,jt=Se.dispatch,Gt=Se.chooses,Bt=Se.unity_3d_routes,Xt=Se.user,tn=Se.is_last_game,Tn=Se.onUpdateCode,Sn=Se.test_sets,Vt=Se.challenge,In=Se.game_report_id,Xn=Se.tabActiveParams,zn=Xn===void 0?{}:Xn,En=Se.startDebug,Mn=Object(E.i)(),ln=!tn&&!Et&&(mt.status>0||(Xt==null?void 0:Xt.identity)<5),on=["\u81EA\u6D4B\u8FD0\u884C","\u6B63\u5728\u542F\u52A8","\u505C\u6B62\u8FD0\u884C","\u6B63\u5728\u505C\u6B62"],Yt=Object(h.useState)(0),vn=Object(r.a)(Yt,2),xn=vn[0],_n=vn[1],Cn=Object(h.useState)(0),un=Object(r.a)(Cn,2),wt=un[0],nn=un[1],qn=Object(h.useState)(!1),kn=Object(r.a)(qn,2),Ln=kn[0],gn=kn[1],Wn=Object(h.useState)(Sn==null||((qe=Sn[0])===null||qe===void 0)?void 0:qe.input),An=Object(r.a)(Wn,2),ur=An[0],cr=An[1],Oi=Object(h.useState)(!1),pa=Object(r.a)(Oi,2),Cr=pa[0],dr=pa[1],ei=Object(h.useState)(on[0]),vr=Object(r.a)(ei,2),Qr=vr[0],kr=vr[1],ti=Object(h.useRef)(!1),Br=Object(E.h)(),Jr=zn.shixun_environment_id,Xi=zn.tab_type;Object(h.useEffect)(function(){xn>0&&setTimeout(function(){_n(xn-1)},1e3)},[xn]),Object(h.useEffect)(function(){wt>0&&setTimeout(function(){nn(wt-1)},1e3)},[wt]),Object(h.useEffect)(function(){var Fi=ke.a.subscribe("eval-code-finish",function(){Bt&&gn(!0),at===1||_n(10)}),ni=ke.a.subscribe("caseInputValue",function(xi){cr(xi)}),Ur=ke.a.subscribe("runCodeFinish",function(){ti.current=!1,dr(!1),kr(on[0]),wt>0||nn(5)});return function(){Fi(),ni(),Ur()}},[]);var rr=function(){ti.current=!1,kr(on[3]),ke.a.publish("runCode",{type:"stop"}),Object(Ee.G)(Mn.taskId,{shixun_environment_id:Jr,tab_type:Xi}),setTimeout(function(){kr(on[0]),dr(!1),nn(5)},2500)},Ta=function(){var Fi=Object(e.a)(f.a.mark(function ni(){return f.a.wrap(function(xi){for(;;)switch(xi.prev=xi.next){case 0:return ti.current=!0,xi.next=3,Tn();case 3:kr(on[1]),ke.a.publish("show-case-result",!0),setTimeout(Object(e.a)(f.a.mark(function zi(){var Na,wo,Ni,Ua,_o;return f.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Object(Ee.u)(Mn.taskId,{test_case_content:ur,shixun_environment_id:Jr,tab_type:Xi});case 2:if(Ni=oa.sent,!(Ni!=null&&(Na=Ni.data)!==null&&Na!==void 0&&(wo=Na.data_list)!==null&&wo!==void 0&&wo.length)){oa.next=6;break}return ke.a.publish("pod-restrict-data",{identifier:Ni==null||((Ua=Ni.data)===null||Ua===void 0)?void 0:Ua.identifier,data_list:Ni==null||((_o=Ni.data)===null||_o===void 0)?void 0:_o.data_list}),oa.abrupt("return");case 6:ke.a.publish("showRunCodeTab",!0),ke.a.publish("runCode",{type:"start"});case 8:case"end":return oa.stop()}},zi)})),100),setTimeout(function(){ti.current&&(kr(on[2]),dr(!1))},1e3);case 7:case"end":return xi.stop()}},ni)}));return function(){return Fi.apply(this,arguments)}}(),Pi=function(){var Fi=Object(e.a)(f.a.mark(function ni(){return f.a.wrap(function(xi){for(;;)switch(xi.prev=xi.next){case 0:dr(!0),Qr===on[2]?rr():Ta();case 2:case"end":return xi.stop()}},ni)}));return function(){return Fi.apply(this,arguments)}}();return u.a.createElement("div",{className:Ka.a["action-container"]},u.a.createElement("div",{className:"flex-container ".concat(Ka.a["eval-desc"])},yt&&Vt!==null&&Vt!==void 0&&Vt.with_code_file?u.a.createElement("span",null,"\u672C\u5173\u6700\u5927\u6267\u884C\u65F6\u95F4\uFF1A".concat(yt,"\u79D2")):null,Tt&&Vt!==null&&Vt!==void 0&&Vt.with_code_file?u.a.createElement("span",null,"\u672C\u6B21\u8BC4\u6D4B\u8017\u65F6(\u7F16\u8BD1\u3001\u8FD0\u884C\u603B\u65F6\u95F4)\uFF1A",Tt," \u79D2"):null,In?u.a.createElement("a",{target:"_blank",className:Ka.a.link,href:"/report/".concat(Mn.taskId,"/").concat(In)},"\u4EE3\u7801\u6027\u80FD\u68C0\u6D4B"):null,[2,3,4,5].includes(Xi)&&u.a.createElement("a",{title:"\u663E\u793A/\u9690\u85CF\u6D4B\u8BD5\u7ED3\u679C",onClick:function(){ke.a.publish("show-case-result")}},"\u663E\u793A/\u9690\u85CF\u6D4B\u8BD5\u7ED3\u679C")),u.a.createElement("div",{className:"flex-container ".concat(Ka.a["eval-btn-group"])},Ot&&!Et?u.a.createElement("a",{href:"/tasks/".concat(Ot).concat(Br.search),onClick:function(ni){if(ni.preventDefault(),Mn.courseId&&Mn.homeworkId){setTimeout(function(){return window.location.href="/tasks/".concat(Mn.courseId,"/").concat(Mn.homeworkId,"/").concat(Ot).concat(Br.search)},300);return}setTimeout(function(){return window.location.href="/tasks/".concat(Ot).concat(Br.search)},300)},className:Ka.a["ghost-link"]},"\u4E0A\u4E00\u5173"):null,ln?u.a.createElement("a",{href:"/tasks/".concat(Ct).concat(Br.search),onClick:function(ni){if(ni.preventDefault(),mt.task_pass||Rt.status===2||(Xt==null?void 0:Xt.identity)<5){if(Mn.courseId&&Mn.homeworkId){setTimeout(function(){return window.location.href="/tasks/".concat(Mn.courseId,"/").concat(Mn.homeworkId,"/").concat(Ct).concat(Br.search)},300);return}setTimeout(function(){return window.location.href="/tasks/".concat(Ct).concat(Br.search)},300);return}l.a.warning({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u6211\u77E5\u9053\u4E86",content:u.a.createElement("p",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u8BBE\u7F6E\u4E86\u4E0D\u5141\u8BB8\u8DF3\u5173\u3002\u901A\u8FC7\u5F53\u524D\u5173\u5361\u540E\uFF0C\u624D\u80FD\u8FDB\u5165\u4E0B\u4E00\u5173\u3002")})},className:Ka.a["ghost-link"]},"\u4E0B\u4E00\u5173"):null,Ln&&(Vt==null?void 0:Vt.show_type)===1&&u.a.createElement("button",{onClick:function(){jt({type:"SHOW_PICTURE_VIEW"})},style:{minWidth:"72px",marginRight:10},className:"btn-run",title:"\u67E5\u770B\u6548\u679C"},"\u67E5\u770B\u6548\u679C"),Xi===1&&!En&&u.a.createElement(Qt.a,{onClick:Object(ir.throttle)(Pi,2e3),loading:Cr,danger:!0,disabled:wt>0,className:"".concat(Ka.a["btn-run-self"]," mr10")},wt>0?"".concat(wt,"S"):Qr),(Vt==null?void 0:Vt.with_code_file)&&!(Xi===1&&En)&&u.a.createElement("button",{onClick:Object(e.a)(f.a.mark(function Fi(){return f.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(!(at===1)){Ur.next=4;break}if(!((Gt==null?void 0:Gt.length)<=0)){Ur.next=4;break}return l.a.confirm({centered:!0,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc"},u.a.createElement("p",null,"\u60A8\u8FD8\u672A\u6DFB\u52A0\u9898\u76EE\uFF0C\u8BF7\u6DFB\u52A0\u540E\u8BC4\u6D4B\uFF01")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"}),Ur.abrupt("return");case 4:return gn(!1),Ur.next=7,kt();case 7:case"end":return Ur.stop()}},Fi)})),style:{minWidth:"72px"},disabled:Et||xn>0,className:Ka.a["btn-run"],title:"\u8FD0\u884C\u8BC4\u6D4B"},xn>0?"".concat(xn,"S"):u.a.createElement(h.Fragment,null," ",u.a.createElement("img",{src:Mo.a,alt:"run",width:18})," ",u.a.createElement("b",null,"\u8BC4\u6D4B")," "))))},Ra=y("s8TD");function Vo(Se,qe){switch(qe.type){case q.f:return Object(t.a)(Object(t.a)({},Se),{},{loading:!0});case q.e:return Object(t.a)(Object(t.a)({},Se),{},{loading:!1});case q.B:return Object(t.a)(Object(t.a)({},Se),qe.payload);default:throw new Error}}var ar=function(Se){var qe=Se.taskData,at=Se.moveY,Ot=Se.onResizeYStart,Ct=Se.onResizeSetContainer,yt=Se.onEval,Tt=Se.lastedGetTaskInfoTime,Et=Se.onUpdateCode,mt=Se._dispatch,Rt=Object(E.h)(),kt=new URLSearchParams(window.location.search),jt=Object(E.i)(),Gt=qe.chooses,Bt=qe.choose_test_cases,Xt=qe.game,tn=Bt.test_sets,Tn=Bt.challenge_chooses_count,Sn=Bt.choose_correct_num,Vt=Bt.had_submmit,In=Object(h.useCallback)(function(){var wt=[];return wt.length=Tn,Vt&&(wt=tn.map(function(nn){return nn.question_name==="\u5224\u65AD\u9898"?nn.actual_output==="\u6B63\u786E"?"true":nn.actual_output==="\u9519\u8BEF"?"false":void 0:nn.actual_output})),wt},[Tt]),Xn=Object(h.useReducer)(Vo,{loading:!1,answers:In()}),zn=Object(r.a)(Xn,2),En=zn[0],Mn=zn[1];Object(h.useEffect)(function(){Mn({type:q.B,payload:{answers:In()}})},[Tt]);var ln=En.answers,on=En.loading;function Yt(wt,nn){ln[wt]=nn,Mn({type:q.B,payload:{answers:ln}})}function vn(){for(var wt=!0,nn=0;nn<Tn;nn++){var qn,kn;if(!ln[nn]||Array.isArray(ln[nn])&&!((qn=ln[nn])!==null&&qn!==void 0&&(kn=qn.filter(function(Ln){return!!Ln}))!==null&&kn!==void 0&&kn.length)){p.b.info("\u8BF7\u5148\u7ED9\u7B2C".concat(nn+1,"\u9898\u9009\u62E9\u7B54\u6848\uFF01")),wt=!1;break}}return wt}function xn(){return _n.apply(this,arguments)}function _n(){return _n=Object(e.a)(f.a.mark(function wt(){var nn,qn,kn,Ln;return f.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:if(!vn()){Wn.next=12;break}if(Mn({type:q.f}),qn=jt.courseId&&jt.homeworkId?{homework_common_id:jt.homeworkId}:{},!(kt.get("ip_limit")==="inner"||kt.get("ip_bind")==="true")){Wn.next=7;break}return Wn.next=6,Object(Ra.a)({ip_limit:kt.get("ip_limit"),ip_bind:kt.get("ip_bind")==="true"});case 6:kn=Wn.sent;case 7:return Wn.next=9,Object(Ee.g)(Xt.identifier,Object(t.a)({answer:ln,challenge_id:qe==null||((nn=qe.challenge)===null||nn===void 0)?void 0:nn.id,subject_id:kt.get("subject_id")||"",question_id:kt.get("questionId"),exercise_id:kt.get("exercisesId"),ip:kn},qn));case 9:Ln=Wn.sent,yt(Ln),Mn({type:q.e});case 12:case"end":return Wn.stop()}},wt)})),_n.apply(this,arguments)}var Cn=at?"".concat(at-54,"px"):"70%",un="calc(100% - 3px - 51px - ".concat(Cn,")");return u.a.createElement(h.Fragment,null,u.a.createElement("div",{className:Si.a["code-area-container"],style:{height:Cn}},u.a.createElement(wr,{chooses:Gt,answers:ln,onSetAnswers:Yt})),u.a.createElement("div",{className:Si.a["resize-y-bar"],onMouseDown:Ot,draggable:!1},u.a.createElement("i",{className:"iconfont icon-guangbiao",draggable:!1})),u.a.createElement("div",{className:Si.a["test-set-container"],style:{height:un}},on?u.a.createElement(ne.a,null):u.a.createElement(ja,{had_submmit:Vt,moveY:at,onResizeSetContainer:Ct,test_sets:tn,challenge_chooses_count:Tn,choose_correct_num:Sn})),u.a.createElement("div",{className:Si.a["action-container"]},u.a.createElement(Oo,Object(i.a)({onUpdateCode:Et},qe,{loading:on,onRun:xn,dispatch:mt}))))},yr=y("h3fs"),nr=y.n(yr),Fr=function(qe){var at=qe.userId,Ot=qe.challengeId,Ct=Object(h.useState)(!0),yt=Object(r.a)(Ct,2),Tt=yt[0],Et=yt[1],mt=Object(h.useRef)();return Object(h.useEffect)(function(){if(mt.current){console.log(mt.current);var Rt=0,kt=0,jt=0,Gt=0,Bt=!1,Xt=!1;function tn(Vt){Et(!1),Object(De.V)("none");var In=mt.current.getBoundingClientRect();Rt=In.left,kt=In.top,jt=Vt.pageX,Gt=Vt.pageY,Bt=!0,Xt=!0,document.onselectstart=function(){return!1}}function Tn(){Bt=!1,document.onselectstart=null,Object(De.V)("auto"),Xt&&(Xt=!1,Object(De.T)("/chatgpt?id=".concat(at,"&position=").concat(Ot)))}function Sn(Vt){if(Bt){Xt=!1;var In=Vt.pageX-jt,Xn=Vt.pageY-Gt;mt.current.style.left="".concat(Rt+In,"px"),mt.current.style.top="".concat(kt+Xn,"px")}}return mt.current.addEventListener("mousedown",tn),document.addEventListener("mousemove",Sn),document.addEventListener("mouseup",Tn),function(){var Vt;(Vt=mt.current)===null||Vt===void 0||Vt.removeEventListener("mousedown",tn),document.removeEventListener("mousemove",Sn),document.removeEventListener("mouseup",Tn)}}},[mt.current]),Object(h.useEffect)(function(){setTimeout(function(){Et(!1)},5e3)},[]),u.a.createElement(jn.a,{visible:Tt,placement:"topRight",title:"\u5B66\u4E60\u4E2D\u6709\u7591\u95EE\u53EF\u4EE5\u70B9\u51FB\u8FD9\u91CC\u5411\u6559\u5E08\u8BF7\u6C42\u5E2E\u52A9"},u.a.createElement("div",{ref:mt,draggable:!1,style:{width:54,height:54,position:"fixed",zIndex:1e3,bottom:223,right:26,borderRadius:"50%",cursor:"pointer",overflow:"hidden"}},u.a.createElement("img",{draggable:!1,src:nr.a,width:54})))},si=Fr,Ci=y("4K8j"),Or=y("popq"),na=y("362i"),Ea=y.n(na),Wr=y("VPUa"),$a=y.n(Wr),_i=y("0i5U"),da=y.n(_i),xa=function(Se){var qe=Se.star,at=Se.gold,Ot=Se.experience,Ct=Se.next_game,yt=Se.next_shixun,Tt=Se.subject_done,Et=Se.onCloseResult,mt=Se.isPictureView,Rt=Se.webDisplayUrl,kt=Se.onShowPictureView,jt=Se.history,Gt=Se.onStarChange,Bt=new URLSearchParams(window.location.search),Xt=Object(E.i)();function tn(){if(Et(),console.log("`/tasks/${next_game}${location.search}`","/tasks/".concat(Ct).concat(Tn.search)),Xt.courseId&&Xt.homeworkId){setTimeout(function(){window.location.href="/tasks/".concat(Xt.courseId,"/").concat(Xt.homeworkId,"/").concat(Ct).concat(Tn.search)},300);return}setTimeout(function(){window.location.href="/tasks/".concat(Ct).concat(Tn.search)},300)}var Tn=Object(E.h)();return u.a.createElement("div",{className:"evaluate-result-container"},u.a.createElement("div",{className:"evaluate-result-body"},u.a.createElement("a",{className:"close-line",onClick:Et},u.a.createElement("i",{className:"iconfont icon-roundclose",style:{fontSize:"32px"}})),!Bt.get("subject_id")&&u.a.createElement("img",{width:652,src:Ct||!Tt?Ea.a:$a.a,alt:"\u901A\u5173"}),Bt.get("subject_id")&&u.a.createElement("img",{width:652,src:Tt?$a.a:Ea.a,alt:"\u901A\u5173"}),u.a.createElement("div",{className:"gold-and-experience"},u.a.createElement("p",{className:"flex-container"},u.a.createElement("span",{className:"gold-circle"})," +",at),u.a.createElement("p",{className:"flex-container"},u.a.createElement("img",{src:da.a})," +",Ot)),u.a.createElement("footer",null,qe?null:u.a.createElement(h.Fragment,null,u.a.createElement("p",{className:"star-tip"},"\u60A8\u7684\u8BC4\u4EF7\u51B3\u5B9A\u8001\u5E08\u7684\u6C5F\u6E56\u5730\u4F4D~"),u.a.createElement(be.a,{defaultValue:0,allowClear:!1,onChange:Gt})),u.a.createElement("div",{className:"tc"},Ct?u.a.createElement("a",{onClick:tn},"\u4E0B\u4E00\u5173"):u.a.createElement("a",{onClick:Et},"\u5B8C\u6210"),!!yt&&u.a.createElement("a",{onClick:function(){Te(yt,null,!1,Bt.get("subject_id"))}},"\u8FDB\u5165\u4E0B\u4E00\u4E2A\u5B9E\u8BAD"),mt?u.a.createElement("a",{onClick:function(){kt(),Et()}},"\u67E5\u770B\u6548\u679C"):null,Rt?u.a.createElement("a",{target:"_blank",href:Rt},"\u67E5\u770B\u6548\u679C"):null),Bt.get("subject_id")&&u.a.createElement("div",{className:"tc mt15"},yt&&!Ct&&"\u5DF2\u901A\u8FC7\u672C\u5B9E\u8BAD\u7684\u6700\u540E\u4E00\u4E2A\u5173\u5361\uFF0C\u53EF\u4EE5\u8FDB\u5165\u4E0B\u4E00\u4E2A\u5B9E\u8BAD\u4E2D\u8FDB\u884C\u5B9E\u6218",Tt&&"\u606D\u559C\u60A8\uFF0C\u672C\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u6700\u540E\u4E00\u4E2A\u5B9E\u8BAD\u5DF2\u901A\u5173"))))},Wa=y("uHBg"),Yo=y.n(Wa),bi=y("ZIAf"),Nn=y.n(bi),sn=y("Rz+K"),Bn=y.n(sn),Dn=function(qe){var at=qe.desc,Ot=qe.visible,Ct=Object(h.useRef)(),yt=Object(h.useRef)(),Tt=Object(h.useState)(!1),Et=Object(r.a)(Tt,2),mt=Et[0],Rt=Et[1],kt=Object(h.useState)(!1),jt=Object(r.a)(kt,2),Gt=jt[0],Bt=jt[1];Object(h.useEffect)(function(){if(Ct.current){var tn=0,Tn=0,Sn=0,Vt=0,In=!1,Xn=!1;function zn(ln){Bt(!1),Object(De.V)("none");var on=Ct.current.getBoundingClientRect();tn=on.left,Tn=on.top,Sn=ln.pageX,Vt=ln.pageY,In=!0,Xn=!0,document.onselectstart=function(){return!1}}function En(ln){if(ln.stopPropagation(),In=!1,Object(De.V)("auto"),document.onselectstart=null,Xn){var on,Yt;Xn=!1,((on=ln.target)===null||on===void 0?void 0:on.id)!==((Yt=yt.current)===null||Yt===void 0?void 0:Yt.id)&&Bt(!0)}}function Mn(ln){if(In){Xn=!1,Bt(!1);var on=ln.pageX-Sn,Yt=ln.pageY-Vt;Ct.current.style.left="".concat(tn+on,"px"),Ct.current.style.top="".concat(Tn+Yt,"px")}}return Ct.current.addEventListener("mousedown",zn),document.addEventListener("mousemove",Mn),document.addEventListener("mouseup",En),function(){var ln;(ln=Ct.current)===null||ln===void 0||ln.removeEventListener("mousedown",zn),document.removeEventListener("mousemove",Mn),document.removeEventListener("mouseup",En)}}},[Ct.current]);var Xt=function(){Bt(!1)};return u.a.createElement("div",{style:{display:Ot?"block":"none"}},u.a.createElement(T.a,{title:"\u4EFB\u52A1\u63CF\u8FF0",placement:"right",onClose:Xt,visible:Gt},at),u.a.createElement("div",{className:Yo.a.arrowIcon,onClick:function(){return Rt(!1)},style:{position:"fixed",display:mt?"block":"none",zIndex:1e3,bottom:223}},u.a.createElement("img",{draggable:!1,src:Bn.a,alt:""})),u.a.createElement("div",{ref:Ct,draggable:!1,className:Yo.a.iconWrapper,style:{position:"fixed",display:mt?"none":"block",zIndex:1e3,bottom:223,right:26,borderRadius:"50%",cursor:"pointer"}},u.a.createElement("i",{ref:yt,id:"minusIconElement",onClick:function(){Bt(!1),Rt(!0)},className:"iconfont icon-yichu1 ".concat(Yo.a.minusIcon)}),u.a.createElement("img",{draggable:!1,src:Nn.a})))},hr=Dn,Ir=y("Dqnf"),Zr=y("bCnd"),yi=y("p5ED"),aa=y("RTVd"),Bi=y.n(aa),ba=y("Tl6Z"),Ro=y.n(ba),Xa=function(Se){var qe=Se.content,at=Se.language,Ot=Se.theme,Ct=Se.onCodeChange,yt=Se.onSave,Tt=Se.monacoOptions,Et=Se.isEditPath,mt=Se.currentPath,Rt=Se.code_edit_permission,kt=Se.onUpdateCode,jt=Se.forbidCopy,Gt=Se.filename,Bt=Se.file_type,Xt=Se.taskData,tn=Se.itemData,Tn=Se.codeLoading,Sn=Se.breakPointValue,Vt=Se.setBreakPointValue,In=Se.highlightLine,Xn=Se.openBreakPoint,zn=Se.startDebug,En=Se.unique,Mn=Se.allBreakPointValue,ln=Se.setAllBreakPointValue,on=Object(E.i)(),Yt=Object(h.useRef)(),vn=Object(h.useRef)({unique:En,breakPointValue:Sn,currentPath:mt,startDebug:zn,allBreakPointValue:Mn}),xn=Object(h.useState)(!0),_n=Object(r.a)(xn,2),Cn=_n[0],un=_n[1],wt=Object(h.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D"),nn=Object(r.a)(wt,2),qn=nn[0],kn=nn[1],Ln=Object(h.useState)({}),gn=Object(r.a)(Ln,2),Wn=gn[0],An=gn[1];console.log("content:",{value:qe,language:at,theme:Ot,onChange:Ct,onSave:yt,forbidCopy:jt,options:Tt,filename:Gt,file_type:Bt});var ur=tn.tab_type,cr=tn.shixun_environment_id,Oi=tn.index_tab;Object(h.useEffect)(function(){vn.current.unique=En,vn.current.breakPointValue=Sn,vn.current.currentPath=mt,vn.current.startDebug=zn,vn.current.allBreakPointValue=Mn},[En,Sn,mt,zn,Mn]),Object(h.useEffect)(function(){zn?(Vt([]),pa()):Xn&&Vt((Mn==null?void 0:Mn[mt])||[])},[mt]),Object(h.useEffect)(function(){window.addEventListener("message",ei);var kr=ke.a.subscribe("vnc-reseting",Cr),ti=ke.a.subscribe("vnc-reseting-done",dr);return function(){kr(),ti(),window.removeEventListener("message",ei)}},[]),Object(h.useEffect)(function(){if(ur===1)return clearInterval(Yt.current),Yt.current=setInterval(function(){kt()},5*60*1e3),function(){clearInterval(Yt.current)}});var pa=function(){var kr=Object(e.a)(f.a.mark(function ti(){var Br,Jr;return f.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(vn.current.unique){rr.next=2;break}return rr.abrupt("return");case 2:return rr.next=4,Object(Qn.a)("/api/myshixuns/".concat((Br=Xt.myshixun)===null||Br===void 0?void 0:Br.identifier,"/code_debugs/current_info.json"),{method:"post",body:{unique:vn.current.unique}});case 4:Jr=rr.sent,(Jr==null?void 0:Jr.status)===0&&ke.a.publish("active-debug-data",(Jr==null?void 0:Jr.data)||{});case 6:case"end":return rr.stop()}},ti)}));return function(){return kr.apply(this,arguments)}}(),Cr=function(){An({}),kn("\u6B63\u5728\u91CD\u7F6E\u4E2D"),un(!0)},dr=function(ti){An(ti==null?void 0:ti.data),un(!1)},ei=function(ti){switch(ti.data){case"updatecode":break;case"vsLoadingDone":un(!1);break}},vr=function(){var kr=Object(e.a)(f.a.mark(function ti(){var Br,Jr,Xi,rr,Ta,Pi;return f.a.wrap(function(ni){for(;;)switch(ni.prev=ni.next){case 0:return ni.next=2,Object(Ee.F)((Br=Xt.myshixun)===null||Br===void 0?void 0:Br.identifier,{shixun_environment_id:cr,tab_type:ur});case 2:if(rr=ni.sent,!(rr!=null&&(Jr=rr.data)!==null&&Jr!==void 0&&(Xi=Jr.data_list)!==null&&Xi!==void 0&&Xi.length)){ni.next=6;break}return ke.a.publish("pod-restrict-data",{identifier:rr==null||((Ta=rr.data)===null||Ta===void 0)?void 0:Ta.identifier,data_list:rr==null||((Pi=rr.data)===null||Pi===void 0)?void 0:Pi.data_list}),ni.abrupt("return");case 6:if(!((rr==null?void 0:rr.status)===-3)){ni.next=8;break}return ni.abrupt("return",new Promise(function(){var Ur=Object(e.a)(f.a.mark(function xi(zi,Na){return f.a.wrap(function(Ni){for(;;)switch(Ni.prev=Ni.next){case 0:l.a.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var Ua=Object(e.a)(f.a.mark(function So(){return f.a.wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:return clearTimeout(timeout.current),setPercent(0),Fa.next=4,closeWindowsVnc(on.taskId,rr==null?void 0:rr.message);case 4:return setLinkNum(linkNum+1),Fa.abrupt("return");case 6:case"end":return Fa.stop()}},So)}));function _o(){return Ua.apply(this,arguments)}return _o}()});case 1:case"end":return Ni.stop()}},xi)}));return function(xi,zi){return Ur.apply(this,arguments)}}()));case 8:if(!((rr==null?void 0:rr.status)===-1)){ni.next=10;break}throw new String(rr==null?void 0:rr.message);case 10:if(!((rr==null?void 0:rr.status)===0)){ni.next=15;break}return An(rr==null?void 0:rr.data),ke.a.publish("send-tabs-result-data",Object(t.a)(Object(t.a)({},rr==null?void 0:rr.data),{},{index_tab:Oi})),ke.a.publish("update-windows-time",rr==null?void 0:rr.data),ni.abrupt("return",rr);case 15:case"end":return ni.stop()}},ti)}));return function(){return kr.apply(this,arguments)}}();Object(h.useEffect)(function(){ur===2&&vr()},[ur]);var Qr=function(){var kr=Object(e.a)(f.a.mark(function ti(){var Br,Jr,Xi,rr,Ta,Pi,Fi=arguments;return f.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(Br=Fi.length>0&&Fi[0]!==void 0?Fi[0]:[],!vn.current.startDebug){Ur.next=8;break}return Ur.next=4,Object(Qn.a)("/api/myshixuns/".concat((Jr=Xt.myshixun)===null||Jr===void 0?void 0:Jr.identifier,"/code_debugs/set_break_point.json"),{method:"post",body:{file_name:vn.current.currentPath,line_number:(Xi=Object(ir.xor)(vn.current.breakPointValue,Br))===null||Xi===void 0?void 0:Xi[0],type:Br.length>vn.current.breakPointValue.length?1:0,unique:vn.current.unique}});case 4:rr=Ur.sent,(rr==null?void 0:rr.status)===0&&(ln(Object(t.a)(Object(t.a)({},vn.current.allBreakPointValue),{},Object(a.a)({},vn.current.currentPath,(rr==null||((Ta=rr.data)===null||Ta===void 0||((Pi=Ta.breakpoints)===null||Pi===void 0))?void 0:Pi[vn.current.currentPath])||[]))),ke.a.publish("active-debug-data",(rr==null?void 0:rr.data)||{})),Ur.next=10;break;case 8:ln(Object(t.a)(Object(t.a)({},vn.current.allBreakPointValue),{},Object(a.a)({},vn.current.currentPath,Br))),Vt(Br);case 10:case"end":return Ur.stop()}},ti)}));return function(){return kr.apply(this,arguments)}}();return u.a.createElement(h.Fragment,null,u.a.createElement("div",{className:Bi.a["code-area-container"]},ur==1&&u.a.createElement(u.a.Fragment,null,Et||Rt?null:u.a.createElement("img",{className:Bi.a["only-view"],src:Ro.a,alt:"only-view"}),Tn?u.a.createElement(ne.a,{message:"\u6B63\u5728\u52A0\u8F7D\u4EE3\u7801",style:{color:"#0152d9"}}):u.a.createElement(yi.a,{filename:Gt,type:Bt==="office"?"download":Bt,data:qe,style:{position:"absolute",zIndex:1},monacoEditor:{value:qe,language:at,theme:Ot,onChange:Ct,onSave:yt,forbidCopy:jt,options:Object(t.a)(Object(t.a)({},Tt),{},{fixedOverflowWidgets:!0}),insertSpaces:Tt.insertSpaces,breakPointValue:Sn,highlightLine:In,openBreakPoint:Xn,onBreakPoint:Qr}})),ur===2&&u.a.createElement(g.a,{spinning:Cn,tip:qn,wrapperClassName:Bi.a.frame},u.a.createElement("iframe",{src:Wn==null?void 0:Wn.link_url}))))},Ps=y("b1fT"),za=y.n(Ps),ka=y("je13"),Po=/<link(?:.*?)href=[\"\'](.+?)[\"\'](?!<)(?:.*)\>(?:[\n\r\s]*?)(?:<\/link>)*/im,Es=/<script(?:.*?)src=[\"\'](.+?)[\"\'](?!<)(?:.*)\>(?:[\n\r\s]*?)(?:<\/script>)*/im,st=["http","com","net","org","cdn"];function xt(Se){for(var qe=!1,at=0;at<st.length;at++)if(Se.indexOf(st[at])!==-1){qe=!0;break}return qe}var At=3e3,ht=function(Se){var qe=Se.code,at=qe===void 0?"":qe,Ot=Se.isActive,Ct=Se.myshixunIdentifier,yt=Se.lastedUpdateTime,Tt=Se.onFinishDisplayHtml,Et=Object(h.useState)(0),mt=Object(r.a)(Et,2),Rt=mt[0],kt=mt[1],jt=Object(E.i)(),Gt=Object(h.useRef)(),Bt=Object(h.useRef)(),Xt="".concat(Dt.a,"/api/myshixuns/").concat(Ct,"/html_content.html"),tn=Object(h.useMemo)(function(){var Tn=[],Sn=[],Vt=[],In=[],Xn=document.createElement("iframe");Xn.style.width="100%",Xn.style.height="100%",Xn.style.border="0";try{Gt.current.innerHTML="",Gt.current.appendChild(Xn)}catch(un){}var zn=at,En=document.createElement("div");En.innerHTML=at,at.replace(/<link [^>]*href=['"]([^'"]+)[^>]*>/gi,function(un,wt){Sn.push(wt.indexOf("http")>-1?wt:"https://data.educoder.net/api/sources/get_html_content.html?content_type=text/css&identifier="+jt.taskId+"&path="+wt);var nn=wt.indexOf("http")>-1?wt:'<link href="https://data.educoder.net/api/sources/get_html_content.html?content_type=text/css&identifier='+jt.taskId+"&path="+wt+'" alt="" />';return nn}),at.replace(/<script [^>]*src=['"]([^'"]+)[^>]*>/gi,function(un,wt){Tn.push(wt.indexOf("http")>-1?wt:"https://data.educoder.net/api/sources/get_html_content.html?content_type=application/javascript&identifier="+jt.taskId+"&path="+wt);var nn=wt.indexOf("http")>-1?wt:'<link href="https://data.educoder.net/api/sources/get_html_content.html?content_type=text/css&identifier='+jt.taskId+"&path="+wt+'" alt="" />';return nn}),at=at.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi,function(un,wt){var nn=wt.indexOf("http")>-1?un:un.replace(wt,"https://data.educoder.net/api/sources/get_html_content?content_type=application/octet-stream&identifier="+jt.taskId+"&path="+wt);return nn}),at=at.replace(/<video [^>]*src=['"]([^'"]+)[^>]*>/gi,function(un,wt){var nn=wt.indexOf("http")>-1?un:'<video src="https://data.educoder.net/api/sources/get_html_content?content_type=application/octet-stream&identifier='+jt.taskId+"&path="+wt+'" alt="" />';return nn}),at.replace(/<script.*?>([\s\S]+?)<\/script>/gim,function(un,wt){Vt.push(wt)}),at.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(un,wt){In.push(wt)});for(var Mn=[],ln=[],on=Po.exec(zn),Yt=Es.exec(zn);on;){var vn=on[0],xn=on[1];xt(xn)?zn=zn.replace(vn,vn.replace(/link/,"edulink")):(Mn.push(xn),zn=zn.replace(Po,"EDUCODERCSS")),on=Po.exec(zn)}for(;Yt;){var _n=Yt[0],Cn=Yt[1];xt(Cn)?zn=zn.replace(_n,_n.replace(/script/g,"w3scrw3ipttag")):(ln.push(Cn),zn=zn.replace(Es,"EDUCODERJS")),Yt=Es.exec(zn)}try{Xn.contentWindow.document.write(En.innerHTML),Sn.map(function(un){var wt=document.createElement("link");wt.setAttribute("rel","stylesheet"),wt.href=un,Xn.contentWindow.document.body.appendChild(wt)}),In.map(function(un){var wt=document.createElement("style");wt.innerHTML=un,Xn.contentWindow.document.body.appendChild(wt)}),setTimeout(function(){},6e3)}catch(un){at!=""&&!!at&&setTimeout(function(){kt(new Date().getTime())},1e3)}return{content:zn,css:Mn,script:ln}},[at,Rt]);return Object(h.useEffect)(function(){at!=""&&!!at&&kt(Rt+1)},[Ot]),Object(ie.a)(function(){var Tn=new Date().getTime();Ot&&Bt.current&&yt&&Tn>yt+At},At),Object(h.useEffect)(function(){Bt.current&&tn&&tn.content},[Bt.current,tn,Xt]),u.a.createElement("div",{className:"html-code-view",style:{display:Ot?"block":"none",width:"100%",height:"100%"}},u.a.createElement("form",{ref:Bt,method:"post",target:"my-frame"},u.a.createElement("input",{type:"hidden",name:"contents",value:tn.content}),u.a.createElement("input",{type:"hidden",name:"educodercss",value:tn.css}),u.a.createElement("input",{type:"hidden",name:"educoderscript",value:tn.script})),u.a.createElement("div",{id:"iframe",ref:Gt,style:{background:"#fff",height:"100%",width:"100%"}}))},je=y("ZBwS"),tt=y.n(je),ze=y("Vbye"),lt=y.n(ze),pt=new tt.a;pt.Diff_EditCost=8;var It={oldStr:"",newStr:""};function St(Se,qe){switch(qe.type){case"init":return Object(t.a)(Object(t.a)({},Se),qe.payload);default:throw new Error}}function Nt(Se,qe){var at=/&/g,Ot=/</g,Ct=/>/g,yt=Se[0],Tt=Se[1]||"",Et=Tt.replace(at,"&amp;").replace(Ot,"&lt;").replace(Ct,"&gt;"),mt=!Et.trim();Et=Et=="\r"?"\u21B5":Et;var Rt=Et=="\u21B5"?" ":Et,kt="".concat(mt?lt.a.empty:""," ").concat(Et==="\u21B5"?lt.a.enter:""),jt="".concat(Et==="\u21B5"?lt.a.enter:"");if(qe==="oldStr"){console.log("type:",qe,je.DIFF_DELETE,je.DIFF_EQUAL,yt,Et);switch(yt){case je.DIFF_DELETE:return'<span class="'.concat(lt.a.block,'"><ins class="').concat(kt,'">')+Rt+"</ins></span>";case je.DIFF_EQUAL:return'<span class="'.concat(jt,'">')+Rt+"</span>"}}else switch(yt){case je.DIFF_INSERT:return'<span class="'.concat(lt.a.block,'"><del class="').concat(kt,'">')+Rt+"</del></span>";case je.DIFF_EQUAL:return'<span class="'.concat(jt,'">')+Rt+"</span>"}}var en=function(Se){var qe,at,Ot=Se.output,Ct=Se.actual_output,yt=Se.compile_success,Tt=Se.result,Et=Object(h.useReducer)(St,It),mt=Object(r.a)(Et,2),Rt=mt[0],kt=mt[1];return Ot=(qe=Ot)===null||qe===void 0?void 0:qe.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),Ct=(at=Ct)===null||at===void 0?void 0:at.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),Object(h.useEffect)(function(){var jt=pt.diff_main(Ot||"",Ct||"");pt.diff_cleanupEfficiency(jt);var Gt=jt.map(function(Xt){return Nt(Xt,"oldStr")}).join(""),Bt=jt.map(function(Xt){return Nt(Xt,"newStr")}).join("");kt({type:"init",payload:{oldStr:Gt,newStr:Bt}})},[Ot,Ct]),u.a.createElement("div",{className:lt.a["diff-panel-container"]},u.a.createElement("div",{dangerouslySetInnerHTML:{__html:Rt.oldStr}}),u.a.createElement("div",{className:yt===1&&Tt?lt.a.outputColorWhite:"",dangerouslySetInnerHTML:{__html:Rt.newStr}}))},yn=y("38/S"),dn=y.n(yn),Un=function(qe){var at,Ot,Ct=qe.myshixunIdentifier,yt=qe.setHighlightLine,Tt=qe.setStartDebug,Et=qe.setBreakPointValue,mt=qe.unique,Rt=qe.startDebug,kt=qe.onChangePath,jt=qe.currentPath,Gt=qe.visible,Bt=Object(h.useState)(!0),Xt=Object(r.a)(Bt,2),tn=Xt[0],Tn=Xt[1],Sn=Object(h.useState)(!0),Vt=Object(r.a)(Sn,2),In=Vt[0],Xn=Vt[1],zn=Object(h.useState)(!1),En=Object(r.a)(zn,2),Mn=En[0],ln=En[1],on=Object(h.useState)(""),Yt=Object(r.a)(on,2),vn=Yt[0],xn=Yt[1],_n=Object(h.useState)({}),Cn=Object(r.a)(_n,2),un=Cn[0],wt=Cn[1],nn=Object(h.useRef)(null),qn=un.expressions,kn=qn===void 0?{}:qn,Ln=un.locals,gn=Ln===void 0?{}:Ln,Wn=un.out,An=Wn===void 0?"":Wn;Object(h.useEffect)(function(){var Cr=ke.a.subscribe("active-debug-data",function(dr){var ei;if(ke.a.publish("active-tip",!1),dr!=null&&dr.is_expired){p.b.warn("\u8C03\u8BD5\u670D\u52A1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u8C03\u8BD5"),clearTimeout(nn.current),yt(null),Tt(!1);return}var vr=dr.filename,Qr=jt===vr?(dr==null?void 0:dr.current_line)<0?null:dr==null?void 0:dr.current_line:null,kr=(dr==null||((ei=dr.breakpoints)===null||ei===void 0)?void 0:ei[jt])||[];wt(dr),yt(Qr),Tt(!(dr!=null&&dr.is_over)),dr!=null&&dr.is_over?clearTimeout(nn.current):(Et(kr),ur(),jt!==vr&&dr!==null&&dr!==void 0&&dr.is_jump&&kt(vr))});return function(){Cr(),clearTimeout(nn.current)}},[jt]),Object(h.useEffect)(function(){Rt&&xn("")},[Rt]);var ur=function(){clearTimeout(nn.current),nn.current=setTimeout(function(){ke.a.publish("active-tip",!0),clearTimeout(nn.current),yt(null),Tt(!1)},3*60*1e3)},cr=function(){var Cr=Object(e.a)(f.a.mark(function dr(ei){var vr;return f.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:if(Rt){kr.next=2;break}return kr.abrupt("return");case 2:return ln(!0),kr.next=5,Object(Qn.a)("/api/myshixuns/".concat(Ct,"/code_debugs/").concat(ei,".json"),{method:"post",body:{unique:mt}});case 5:vr=kr.sent,(vr==null?void 0:vr.status)===0&&ke.a.publish("active-debug-data",(vr==null?void 0:vr.data)||{}),ln(!1);case 8:case"end":return kr.stop()}},dr)}));return function(ei){return Cr.apply(this,arguments)}}(),Oi=function(){var Cr=Object(e.a)(f.a.mark(function dr(){var ei;return f.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return ln(!0),Qr.next=3,Object(Qn.a)("/api/myshixuns/".concat(Ct,"/code_debugs/add_expression.json"),{method:"post",body:{expression:vn,unique:mt}});case 3:ei=Qr.sent,(ei==null?void 0:ei.status)===0&&ke.a.publish("active-debug-data",(ei==null?void 0:ei.data)||{}),ln(!1);case 6:case"end":return Qr.stop()}},dr)}));return function(){return Cr.apply(this,arguments)}}(),pa=function(){var Cr=Object(e.a)(f.a.mark(function dr(ei){var vr;return f.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:return ln(!0),kr.next=3,Object(Qn.a)("/api/myshixuns/".concat(Ct,"/code_debugs/remove_expression.json"),{method:"post",body:{expression:ei,unique:mt}});case 3:vr=kr.sent,(vr==null?void 0:vr.status)===0&&ke.a.publish("active-debug-data",(vr==null?void 0:vr.data)||{}),ln(!1);case 6:case"end":return kr.stop()}},dr)}));return function(ei){return Cr.apply(this,arguments)}}();return u.a.createElement("section",{className:dn.a.wrap,style:{display:Gt?"block":"none"}},u.a.createElement(g.a,{spinning:!1},u.a.createElement("div",{className:dn.a.content},u.a.createElement("div",{className:dn.a.left},u.a.createElement("div",{className:dn.a.expression},u.a.createElement("div",{className:dn.a.head,onClick:function(){return Tn(!tn)}},u.a.createElement("i",{style:{transform:tn?"rotate(0deg) scale(0.6) translateY(2px)":"rotate(270deg) scale(0.6) translateY(2px)"},className:"iconfont icon-a-xialazhankai"}),u.a.createElement("span",null,"\u76D1\u542C\u8868\u8FBE\u5F0F")),tn&&u.a.createElement(u.a.Fragment,null,u.a.createElement(Nr.a,{value:vn,disabled:!Rt,onChange:function(dr){return xn(dr.target.value)},placeholder:"\u8BF7\u8F93\u5165\u9700\u8981\u76D1\u542C\u7684\u53D8\u91CF\uFF0C\u56DE\u8F66\u786E\u8BA4",onPressEnter:Oi}),u.a.createElement("div",{className:dn.a.listWarp},(at=Object.keys(kn))===null||at===void 0?void 0:at.map(function(Cr,dr){var ei="".concat(Cr,": ").concat(kn[Cr]);return u.a.createElement("div",null,u.a.createElement(jn.a,{title:ei},u.a.createElement("span",null,ei)),Rt?u.a.createElement("i",{onClick:function(){return pa(Cr)},className:"iconfont icon-piliangshanchubeifen"}):u.a.createElement("i",{style:{cursor:"not-allowed",color:"#676767"},className:"iconfont icon-piliangshanchubeifen"}))})))),u.a.createElement("div",{className:dn.a.variable},u.a.createElement("div",{className:dn.a.head,onClick:function(){return Xn(!In)}},u.a.createElement("i",{style:{transform:In?"rotate(0deg) scale(0.6) translateY(2px)":"rotate(270deg) scale(0.6) translateY(2px)"},className:"iconfont icon-a-xialazhankai"}),u.a.createElement("span",null,"\u53D8\u91CF")),In&&((Ot=Object.keys(gn))===null||Ot===void 0?void 0:Ot.map(function(Cr,dr){var ei="".concat(Cr,": ").concat(gn[Cr]);return u.a.createElement(jn.a,{key:ei+dr,title:ei},u.a.createElement("div",{className:dn.a.list},ei))})))),u.a.createElement("div",{className:dn.a.right},u.a.createElement("div",{className:Rt?dn.a.btns:"".concat(dn.a.btns," ").concat(dn.a.disabled," ")},u.a.createElement(jn.a,{title:"\u7EE7\u7EED"},u.a.createElement("b",{onClick:function(){return cr("continue")},className:"icon-jixu"})),u.a.createElement(jn.a,{title:"\u5355\u6B65\u8DF3\u8FC7"},u.a.createElement("b",{onClick:function(){return cr("next")},className:"iconfont icon-danbutiaoguo"})),u.a.createElement(jn.a,{title:"\u5355\u6B65\u8DF3\u5165"},u.a.createElement("b",{onClick:function(){return cr("step_in")},className:"iconfont icon-danbutiaoshi"})),u.a.createElement(jn.a,{title:"\u5355\u6B65\u8DF3\u51FA"},u.a.createElement("b",{onClick:function(){return cr("step_out")},className:"iconfont icon-danbutiaochu"})),u.a.createElement(jn.a,{title:"\u6E05\u7A7A\u6807\u51C6\u8F93\u51FA"},u.a.createElement("i",{onClick:function(){un.out="",wt(Object(t.a)({},un))},className:"iconfont icon-piliangshanchubeifen"}))),u.a.createElement("div",{className:dn.a.text},"\u6807\u51C6\u8F93\u51FA"),u.a.createElement("pre",null,An)))))},Sr=Un,Vr=new tt.a;Vr.Diff_EditCost=8;var Hr={oldStr:"",newStr:""};function Yr(Se,qe){switch(qe.type){case"init":return Object(t.a)(Object(t.a)({},Se),qe.payload);default:throw new Error}}function qr(Se,qe){var at=/&/g,Ot=/</g,Ct=/>/g,yt=Se[0],Tt=Se[1]||"",Et=Tt.replace(at,"&amp;").replace(Ot,"&lt;").replace(Ct,"&gt;"),mt=!Et.trim();if(qe==="oldStr")switch(yt){case je.DIFF_DELETE:return"<ins class=".concat(mt?"empty":"",">")+Et+"</ins>";case je.DIFF_EQUAL:return"<span>"+Et+"</span>"}else switch(yt){case je.DIFF_INSERT:return"<del class=".concat(mt?"empty":"",">")+Et+"</del>";case je.DIFF_EQUAL:return"<span>"+Et+"</span>"}}var $r=function(Se){var qe,at,Ot=Se.output,Ct=Se.actual_output,yt=Se.onClick,Tt=Object(h.useReducer)(Yr,Hr),Et=Object(r.a)(Tt,2),mt=Et[0],Rt=Et[1];return Ot=(qe=Ot)===null||qe===void 0?void 0:qe.replace(/\n/g,"\r"),Ct=(at=Ct)===null||at===void 0?void 0:at.replace(/\n/g,"\r"),Object(h.useEffect)(function(){var kt=Vr.diff_main(Ot||"",Ct||"");Vr.diff_cleanupEfficiency(kt);var jt=kt.map(function(Bt){return qr(Bt,"oldStr")}).join(""),Gt=kt.map(function(Bt){return qr(Bt,"newStr")}).join("");Rt({type:"init",payload:{oldStr:jt,newStr:Gt}})},[Ot,Ct]),u.a.createElement("div",{className:"c-white ".concat(lt.a["diff-panel-container"]," ").concat(lt.a["diff-panel-container-2"]," ").concat(yt?"current":""," "),onClick:function(){return yt==null?void 0:yt()}},u.a.createElement("div",{dangerouslySetInnerHTML:{__html:mt.oldStr}}))},Xr=y("J66h"),Ei=function(Se){var qe=Se.sshConfigData,at=Se.tpId,Ot=Object(h.useState)([]),Ct=Object(r.a)(Ot,2),yt=Ct[0],Tt=Ct[1],Et=qe.link_url,mt=qe.port,Rt=Object(h.useRef)(),kt=Object(h.useRef)(),jt=Object(h.useRef)(),Gt=Object(h.useRef)(),Bt=Object(h.useRef)(!1),Xt=function(In){console.log("insertData:",In),yt.push(In),Tt(Object(I.a)(yt))};function tn(){jt.current=new WebSocket(Et),Rt.current=jt.current,jt.current.onopen=function(){jt.current.send(JSON.stringify({tp:"log",data:at}))},jt.current.onerror=function(Vt){console.log("------in socket error----",Vt,jt.current,Et)},jt.current.onmessage=function(Vt){!Bt.current,Bt.current=!0;var In=Xr.Base64.decode(Vt.data.toString());In==="ProcessFinished"?(Tn(),setTimeout(function(){ke.a.publish("runCodeFinish")},1e3)):kt.current||Xt(In)},jt.current.onclose=function(Vt){console.log("socket\u5173\u95ED\u94FE\u63A5",Vt)},jt.current.ondisconnect=function(Vt){console.log("socket-disconnect:",Vt)}}var Tn=function(){kt.current=!0,Tt(Object(I.a)(yt))};Object(h.useEffect)(function(){var Vt=ke.a.subscribe("runCode",function(In){jt.current=void 0,console.log("lastedUpdateTime-runCode",ke.a,ke.a.channels),In.type==="start"?(kt.current=!1,yt=[],Tt([]),tn()):Tn()});return function(){Vt(),Rt.current&&(Rt.current.close(),console.log("socket\u94FE\u63A5\u4E3B\u52A8\u5173\u95ED"),Bt.current=!1)}},[]),Object(h.useEffect)(function(){Gt.current.scrollIntoView({behavior:"smooth",block:"end"})},[yt]);var Sn=Object(h.useCallback)(function(){var Vt;return u.a.createElement("pre",{className:"font14 ml20 mr20"},(Vt=yt)===null||Vt===void 0?void 0:Vt.join(`
`))},[yt]);return u.a.createElement("div",{className:"xterm-panel pb10",ref:Gt,style:{fontFamily:"monospace"}},yt==""&&!kt.current&&u.a.createElement(ne.a,null),Sn())},li=y("/POA");function sa(Se){var qe,at,Ot=Se.last_compile_output,Ct=Se.language,yt=Se.ts_mem,Tt=Se.ts_time,Et=Se.input,mt=Se.output,Rt=Se.is_invisible,kt=Se.actual_output,jt=Se.is_file,Gt=Se.input_file_url,Bt=Se.output_file_url,Xt=Se.is_public,tn=Se.result,Tn=Se.compile_success,Sn=Se.title,Vt=Se.isActive,In=Se.id,Xn=Se.onActive,zn=Se.test_sets_view,En=Se.allowed_unlock,Mn=Se.identity,ln=Se.taskData,on=Se.setData,Yt=Se.setMonacoValue,vn=Object(h.useState)(!1),xn=Object(r.a)(vn,2),_n=xn[0],Cn=xn[1],un=Object(h.useRef)(),wt=Object(h.useRef)(),nn=mt;jt&&(ln==null||((qe=ln.user)===null||qe===void 0)?void 0:qe.identity)<5&&(Rt=!1),Rt&&(ln==null||((at=ln.user)===null||at===void 0)?void 0:at.identity)>=5&&(mt="\u8BE5\u9884\u671F\u8F93\u51FA\u4E0D\u53EF\u67E5\u770B");function qn(){Xt||zn||Mn<=5?Xn(In):En?ke.a.publish("unlock-test-case",In):p.b.info("\u672C\u6D4B\u8BD5\u96C6\u4E0D\u53EF\u89E3\u9501")}var kn=za.a["test-case-item"];return Vt&&(kn+=" active"),Ot&&(kn+=" ".concat(za.a["has-result"])),Object(h.useEffect)(function(){if(_n){var Ln=new li.Terminal({fontSize:14,background:"#1e1e1e",letterSpacing:4});Ln.open(un.current);var gn=Object(De.B)(kt);Ln.writeln(gn),Ln.setOption("theme",{background:"#1e1e1e"}),window.terms=Ln;var Wn=new li.Terminal({convertEol:!0,fontFamily:"'Fira Mono', monospace",fontSize:14,background:"#1e1e1e"});Wn.open(wt.current);var An=mt.replaceAll(" "," ").replace(/\n/g,`\u21B5\r
`);Wn.writeln(mt),Wn.setOption("theme",{background:"#1e1e1e"})}},[_n]),u.a.createElement("li",{className:kn},u.a.createElement("a",{className:za.a["case-header"],onClick:qn},u.a.createElement("h2",null,u.a.createElement("div",{className:Vt?za.a["arrow-down"]:za.a["arrow-right"]}),u.a.createElement("span",{className:za.a["test-title"]},Sn)),u.a.createElement("div",{className:za.a["case-info"]},yt?u.a.createElement("span",{className:za.a.description},"\u6D88\u8017\u5185\u5B58",yt,"MB"):null,Tt?u.a.createElement("span",{className:za.a.description}," ","\u4EE3\u7801\u6267\u884C\u65F6\u957F\uFF1A",Tt,"\u79D2"," "):null,Xt?null:zn||Mn<=5?u.a.createElement("i",{className:"iconfont icon-jiesuo"}):u.a.createElement("i",{className:"iconfont icon-suo1"}),Tn>0?u.a.createElement("img",{width:16,src:tn?ea.a:ca.a}):null)),u.a.createElement("div",{className:"".concat(za.a["item-desc"]," ").concat(Vt?"show":"hide"," ").concat(za.a["choose-game-item"])},Et?u.a.createElement(Ia.a,null,u.a.createElement(Ri.a,{flex:"80px"},"\u6D4B\u8BD5\u8F93\u5165\uFF1A"),u.a.createElement(Ri.a,{flex:"1",style:{color:"#fff"}},u.a.createElement($r,{onClick:Object(e.a)(f.a.mark(function Ln(){var gn;return f.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(!jt){An.next=12;break}return An.next=3,fetch(Gt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 3:if(gn=An.sent,!(gn.status===-1)){An.next=6;break}return An.abrupt("return");case 6:return An.t0=Yt,An.next=9,gn.text();case 9:An.t1=An.sent,(0,An.t0)(An.t1),setTimeout(function(){on(Gt)},200);case 12:case"end":return An.stop()}},Ln)})),output:Et}))):null,u.a.createElement("p",{className:za.a["output-title-container"]},u.a.createElement("span",null,"\u2014\u2014 \u9884\u671F\u8F93\u51FA \u2014\u2014"),u.a.createElement("span",{className:za.a["output-title"]},u.a.createElement("span",null,"\u2014\u2014 \u5B9E\u9645\u8F93\u51FA \u2014\u2014"),!jt&&u.a.createElement("span",{className:"c-blue current",onClick:function(){return Cn(!_n)}},_n?"\u5C55\u793A\u683C\u5F0F\u5316\u8F93\u51FA":"\u5C55\u793A\u539F\u59CB\u8F93\u51FA"))),jt&&u.a.createElement("div",{class:za.a["diff-panel-container"]},u.a.createElement("div",{className:"tc"},Rt?u.a.createElement("span",{style:{color:"#2ea44f"}},mt):u.a.createElement("a",{class:"underline",onClick:Object(e.a)(f.a.mark(function Ln(){var gn;return f.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.next=2,fetch(Bt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 2:if(gn=An.sent,!(gn.status===-1)){An.next=5;break}return An.abrupt("return");case 5:return An.t0=Yt,An.next=8,gn.text();case 8:An.t1=An.sent,(0,An.t0)(An.t1),setTimeout(function(){on(Bt)},200);case 11:case"end":return An.stop()}},Ln)}))},mt)),u.a.createElement("div",{className:"tc"},Tn?u.a.createElement("a",{class:"underline",onClick:Object(e.a)(f.a.mark(function Ln(){var gn;return f.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.next=2,Object(Qn.a)(kt,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});case 2:if(gn=An.sent,!(gn.status===-1)){An.next=5;break}return An.abrupt("return");case 5:Yt(gn),setTimeout(function(){on(kt)},200);case 7:case"end":return An.stop()}},Ln)}))},nn):kt)),!jt&&!_n&&u.a.createElement(en,{compile_success:Tn,result:tn,output:mt,actual_output:kt}),!jt&&_n&&u.a.createElement("div",{class:za.a["diff-panel-container"]},u.a.createElement("div",{className:"",ref:wt}),u.a.createElement("div",{className:"",ref:un}))))}var ci=function(Se){var qe,at,Ot=Se.onResizeSetContainer,Ct=Se.moveY,yt=Se.taskData,Tt=Se.isHtml,Et=Se.lastedUpdateTime,mt=Se.content,Rt=Se.myshixunIdentifier,kt=Se.test_sets_view,jt=Se.identity,Gt=Se.language,Bt=Se.allowed_unlock,Xt=Se.test_sets,tn=Xt===void 0?[]:Xt,Tn=Se.test_sets_count,Sn=Se.sets_error_count,Vt=Se.last_compile_output,In=Se.onFinishDisplayHtml,Xn=Se.startDebug,zn=Se.setStartDebug,En=Se.setHighlightLine,Mn=Se.setBreakPointValue,ln=Se.unique,on=Se.onChangePath,Yt=Se.currentPath,vn=Object(h.useState)(-1),xn=Object(r.a)(vn,2),_n=xn[0],Cn=xn[1],un=Object(h.useState)(""),wt=Object(r.a)(un,2),nn=wt[0],qn=wt[1],kn=Object(h.useState)(""),Ln=Object(r.a)(kn,2),gn=Ln[0],Wn=Ln[1],An=Object(h.useState)(Tt?0:1),ur=Object(r.a)(An,2),cr=ur[0],Oi=ur[1],pa=Object(h.useState)(!1),Cr=Object(r.a)(pa,2),dr=Cr[0],ei=Cr[1],vr=Object(h.useState)(!1),Qr=Object(r.a)(vr,2),kr=Qr[0],ti=Qr[1],Br=Object(h.useState)(!1),Jr=Object(r.a)(Br,2),Xi=Jr[0],rr=Jr[1];Object(h.useEffect)(function(){Xn===!0&&dr===!1&&ei(!0)},[Xn,dr]),Object(h.useEffect)(function(){var Ur,xi=ke.a.subscribe("showRunCodeTab",function(Ni){ti(Ni)}),zi=ke.a.subscribe("runCode",function(){Oi(2)}),Na=ke.a.subscribe("active-debug",function(){Oi(3)}),wo=ke.a.subscribe("active-tip",function(Ni){rr(Ni)});return ke.a.publish("caseInputValue",tn==null||((Ur=tn[0])===null||Ur===void 0)?void 0:Ur.input),function(){xi(),zi(),Na(),wo()}},[]);function Ta(Ur){Cn(Ur===_n?-1:Ur)}function Pi(){Ot(Ct)}function Fi(Ur){Oi(parseInt(Ur.target.id,10))}var ni={code:mt,isActive:cr===0&&Tt,myshixunIdentifier:Rt,onFinishDisplayHtml:In,lastedUpdateTime:Et};return u.a.createElement(h.Fragment,null,u.a.createElement(yi.a,{close:!0,data:nn,type:nn.length?"txt":"",onClose:function(){return qn("")},monacoEditor:{value:gn,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}}}),u.a.createElement("div",{className:"test-header"},u.a.createElement("div",{className:"flex-container"},Tt?u.a.createElement("span",{id:0,onClick:Fi,className:cr===0?"active":""},"\u6548\u679C\u663E\u793A"):null,u.a.createElement("span",{id:1,onClick:Fi,className:cr===1?"active":""},"\u6D4B\u8BD5\u7ED3\u679C"),!!kr&&u.a.createElement("span",{id:2,onClick:Fi,className:cr===2?"active":""},"\u81EA\u6D4B\u8FD0\u884C\u7ED3\u679C"),dr&&u.a.createElement("span",{id:3,onClick:Fi,className:cr===3?"active-debug":""},"\u8C03\u8BD5\u5668",u.a.createElement("i",{id:3,onClick:function(){return Object(De.T)("https://www.educoder.net/forums/36718")},className:"iconfont icon-xiaowenhao2 font14 current ml10"})),Xi&&u.a.createElement("div",{className:za.a.alert},u.a.createElement("b",{className:"iconfont icon-shanchuhuanjing"}),u.a.createElement("div",null,"\u8C03\u8BD5\u670D\u52A1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u8C03\u8BD5\u3002"),u.a.createElement("i",{onClick:function(){return rr(!1)},className:"iconfont icon-guanbi7"}))),u.a.createElement("a",{onClick:Pi},u.a.createElement("i",{className:"iconfont ".concat(Ct===.01?"icon-shousuo":"icon-zhankai"," icon-zhankai")}))),u.a.createElement("section",{className:"test-case-run-wrp",style:{display:cr===2?"flex":"none",flex:1,flexDirection:"column",overflow:"auto",paddingLeft:20}},u.a.createElement(Ia.a,{className:"test-case-run-header"},u.a.createElement(Ri.a,{flex:"200px"},"- \u81EA\u6D4B\u8F93\u5165 -"),u.a.createElement(Ri.a,{flex:"1"},u.a.createElement("span",{className:"ml12"},"- \u8FD0\u884C\u7ED3\u679C -"))),u.a.createElement(Ia.a,{className:"h100 mr10 mb10"},u.a.createElement(Ri.a,{flex:"200px"},u.a.createElement(Nr.a.TextArea,{defaultValue:tn==null||((qe=tn[0])===null||qe===void 0)?void 0:qe.input,style:{height:"calc(100% - 15px)"},onChange:function(xi){ke.a.publish("caseInputValue",xi.target.value)}})),u.a.createElement(Ri.a,{flex:"1"},u.a.createElement("div",{style:{flex:1,position:"absolute",width:"100%",height:"100%",overflow:"auto"}},u.a.createElement(Ei,{sshConfigData:{link_url:"".concat(yt==null?void 0:yt.wss_url,"/log")},tpId:yt==null||((at=yt.myshixun)===null||at===void 0)?void 0:at.id,sid:1}))))),u.a.createElement("section",{style:{display:cr===1?"block":"none",flex:1}},Vt?u.a.createElement("p",{className:"test-result ".concat(Sn===0?"success":"failer")},u.a.createElement("span",{className:"count"},u.a.createElement("img",{width:16,src:Sn===0?ea.a:ta.a}),Tn-Sn,"/",Tn),Sn==0?u.a.createElement("span",{className:"count"},"\u5168\u90E8\u901A\u8FC7"):u.a.createElement("div",{dangerouslySetInnerHTML:{__html:Vt}})):null,u.a.createElement("ul",{className:"test-case-list"},tn.map(function(Ur,xi){return u.a.createElement(sa,Object(i.a)({setData:qn,setMonacoValue:Wn,allowed_unlock:Bt,identity:jt,key:"item"+xi,test_sets_view:kt,language:Gt,last_compile_output:Vt,title:"\u6D4B\u8BD5\u96C6".concat(xi+1)},Ur,{isActive:_n===xi,id:xi,taskData:yt,onActive:Ta}))}))),u.a.createElement(Sr,{myshixunIdentifier:Rt,setHighlightLine:En,setStartDebug:zn,startDebug:Xn,setBreakPointValue:Mn,unique:ln,onChangePath:on,currentPath:Yt,visible:cr===3}),Tt?u.a.createElement(ht,ni):null)},Er=y("Lmeb"),gr=y("qZJd"),pi=function(Se){var qe=Se.taskData,at=Se.itemData,Ot=at.shixun_environment_id,Ct=at.vnc_url,yt=at.windows_vnc,Tt=at.linux_vnc,Et=at.virtual_machine,mt=at.tab_type,Rt=at.instance_startup_type,kt=at.index_tab,jt=at.tpi_type;return u.a.createElement(gr.a,{shixun_environment_id:Ot,vnc_url:Ct,window_vnc_url:yt,virtual_machine:Et,linux_vnc:Tt,tab_type:mt,instance_startup_type:Rt,taskData:qe,index_tab:kt,tpi_type:jt})},Ti=y("qVdP"),lr=y("jsC+"),Ai=y("Ne/g"),Di=y.n(Ai),Ii=y("bdgK"),Ji=function(qe){var at=qe.initTabs,Ot=at===void 0?[]:at,Ct=qe.tabs,yt=Ct===void 0?[]:Ct,Tt=qe.setTabs,Et=qe.value,mt=qe.onChange,Rt=qe.codeUpdate,kt=Rt===void 0?!1:Rt,jt=qe.paths,Gt=jt===void 0?[]:jt,Bt=qe.activePath,Xt=qe.onChangePath,tn=qe.codeLoading,Tn=Object(h.useState)(!1),Sn=Object(r.a)(Tn,2),Vt=Sn[0],In=Sn[1],Xn=Object(h.useState)(!1),zn=Object(r.a)(Xn,2),En=zn[0],Mn=zn[1],ln=Object(h.useRef)(),on=Object(h.useRef)(),Yt=Object(h.useRef)(),vn=Object(h.useRef)(!1);Object(h.useEffect)(function(){var wt=ke.a.subscribe("send-tabs-result-data",function(nn){var qn=Object(ir.cloneDeep)(yt),kn=qn.findIndex(function(Ln){return Ln.index_tab===nn.index_tab});qn[kn].resData=nn,Tt(qn)});return wt},[yt]),Object(h.useEffect)(function(){var wt=new Ii.default(function(qn){var kn=Object(or.a)(qn),Ln;try{for(kn.s();!(Ln=kn.n()).done;){var gn=Ln.value,Wn=gn.contentRect.width;xn()}}catch(An){kn.e(An)}finally{kn.f()}}),nn=new Ii.default(function(qn){var kn=Object(or.a)(qn),Ln;try{for(kn.s();!(Ln=kn.n()).done;){var gn=Ln.value,Wn=gn.contentRect.width;xn()}}catch(An){kn.e(An)}finally{kn.f()}});return on.current&&(wt.observe(on.current),nn.observe(Yt.current)),function(){wt.disconnect(),nn.disconnect()}},[]),Object(h.useEffect)(function(){if(!!Ot.length&&!vn.current){var wt=Ot.map(function(nn,qn){return Object(t.a)(Object(t.a)({},nn),{},{active:qn===0,resetKey:1,resData:{}})});Tt(Object(ir.cloneDeep)(wt)),mt(wt[0]),vn.current=!1}},[Ot==null?void 0:Ot.length]),Object(h.useEffect)(function(){if(ln.current){var wt=0,nn=0,qn=!1;function kn(Wn){wt=ln.current.offsetLeft,nn=Wn.pageX,qn=!0,document.onselectstart=function(){return!1},Object(De.V)("none")}function Ln(){qn=!1,document.onselectstart=null,Object(De.V)("auto")}function gn(Wn){if(qn){var An=Wn.pageX-nn,ur=wt+An,cr=on.current.clientWidth-ln.current.clientWidth;ur<=0&&(ur=0),ur>=cr&&(ur=cr),ln.current.style.left="".concat(ur,"px"),Yt.current.style.transform="translateX(".concat(-(ur/on.current.clientWidth*Yt.current.clientWidth),"px)")}}return ln.current.addEventListener("mousedown",kn),document.addEventListener("mousemove",gn),document.addEventListener("mouseup",Ln),function(){var Wn,An,ur;(Wn=ln.current)===null||Wn===void 0||Wn.removeEventListener("mousedown",kn),(An=document)===null||An===void 0||An.removeEventListener("mousemove",gn),(ur=document)===null||ur===void 0||ur.removeEventListener("mouseup",Ln)}}},[ln.current,Et]),Object(h.useEffect)(function(){return Yt.current.addEventListener("wheel",_n,{passive:!1}),function(){var wt;(wt=Yt.current)===null||wt===void 0||wt.removeEventListener("wheel",_n,{passive:!1})}},[Yt.current]);var xn=function(){try{if(Yt.current.clientWidth>on.current.clientWidth){var nn,qn=on.current.clientWidth/Yt.current.clientWidth*on.current.clientWidth,kn=Number((nn=ln.current.style.left)===null||nn===void 0?void 0:nn.replace("px","")),Ln=kn;kn+qn>=on.current.clientWidth&&(Ln=kn-(kn+qn-on.current.clientWidth)),ln.current.style.width="".concat(qn,"px"),ln.current.style.left="".concat(Ln,"px"),Yt.current.style.transform="translateX(".concat(-(Ln/on.current.clientWidth*Yt.current.clientWidth),"px)"),In(!0)}else ln.current.style.left="".concat(0,"px"),Yt.current.style.transform="translateX(0px)",In(!1)}catch(gn){}},_n=function(nn){if(Yt.current.clientWidth<=on.current.clientWidth)return;var qn=0;navigator.userAgent.indexOf("Macintosh")!==-1?qn=nn.deltaX:nn.shiftKey?qn=nn.deltaX||nn.deltaY:qn=nn.deltaX;var kn=Yt.current.style.transform,Ln=kn.match(/translateX\(([-0-9.]+)px\)/),gn=Ln?parseFloat(Ln[1]):0;gn=Math.abs(gn),gn=gn+qn,gn<=0&&(gn=0);var Wn=Yt.current.clientWidth-on.current.clientWidth;gn>=Wn&&(gn=Wn);var An=gn/Yt.current.clientWidth*on.current.clientWidth;ln.current.style.left="".concat(An,"px"),Yt.current.style.transform="translateX(".concat(-gn,"px)"),nn.preventDefault()},Cn=function(nn,qn,kn){if(kn.stopPropagation(),yt.length===10){l.a.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:600,centered:!0,content:"\u5B9E\u9A8C\u754C\u9762\u7A97\u53E3\u6570\u91CF\u5DF2\u8FBE\u4E0A\u9650\uFF0810\u4E2A\uFF09\uFF0C\u4E0D\u5141\u8BB8\u518D\u590D\u5236\u7A97\u53E3\u3002"});return}var Ln=Object(ir.cloneDeep)(yt),gn=String(Math.random()).slice(-10),Wn=nn.index_tab.split("-")[0],An=Object(t.a)(Object(t.a)({},nn),{},{active:!1,index_tab:"".concat(Wn,"-").concat(gn),isCopy:!0});Ln.splice(qn+1,0,An),Tt(Ln)},un=function(nn,qn,kn){kn.stopPropagation();var Ln=Object(ir.cloneDeep)(yt);Ln.splice(qn,1),nn.index_tab===Et.index_tab&&(Ln[qn-1].active=!0,mt(Ln[qn-1])),Tt(Ln)};return u.a.createElement("div",{className:Di.a.scrollbar,ref:on},u.a.createElement("div",{className:Di.a.scrollbarContent,ref:Yt},yt.map(function(wt,nn){var qn,kn=wt.index_tab,Ln=wt.isCopy,gn=wt.tab_type,Wn=wt.name;return u.a.createElement("div",{key:kn,onClick:function(){if(kn===Et.index_tab)return;var ur=Object(t.a)(Object(t.a)({},wt),{},{active:!0}),cr=Object(ir.cloneDeep)(yt);cr[nn]=ur,mt(ur),Tt(cr)},className:Et.index_tab===kn?"".concat(Di.a.item," ").concat(Di.a.active):Di.a.item},gn===1&&u.a.createElement(u.a.Fragment,null,u.a.createElement("i",{title:"\u4EE3\u7801\u7F16\u8F91\u5668",style:{color:"#3B86A0"},className:"iconfont icon-daimabianjiqi1"}),u.a.createElement("span",null,Wn),!!Bt&&u.a.createElement(lr.a,{className:Di.a.icon,overlayClassName:Di.a.paths,onOpenChange:function(ur){Mn(ur)},disabled:tn,menu:{items:(qn=Object(ir.compact)(Gt))===null||qn===void 0?void 0:qn.map(function(An){return{key:An,label:u.a.createElement("span",{className:Bt===An?Di.a.pathActive:""},An),onClick:function(){Bt!==An&&(Mn(!1),Xt(An))}}})}},u.a.createElement("div",null,En?u.a.createElement("b",{className:"iconfont icon-a-xialazhankai"}):u.a.createElement("b",{className:"iconfont icon-shouqi4"}))),kt&&u.a.createElement("div",{className:Di.a.dot})),gn===2&&u.a.createElement(u.a.Fragment,null,u.a.createElement("i",{style:{color:"#608B4E"},title:"VSCode\u7F16\u8F91\u5668",className:"iconfont icon-vscode"}),u.a.createElement("span",null,Wn)),gn===3&&u.a.createElement(u.a.Fragment,null,u.a.createElement("i",{style:{color:"#608B4E"},title:"\u56FE\u5F62\u5316\u684C\u9762",className:"iconfont icon-tuxinghuazhuomian"}),u.a.createElement("span",null,Wn)),gn===4&&u.a.createElement(u.a.Fragment,null,u.a.createElement("i",{style:{color:"#3B86A0"},title:"\u547D\u4EE4\u884C\u7EC8\u7AEF",className:"iconfont icon-minglinghang"}),u.a.createElement("span",null,Wn),u.a.createElement("aside",{title:"\u590D\u5236",onClick:function(ur){return Cn(wt,nn,ur)},className:"iconfont icon-fuzhihuanjing font14 ml10 current"}),Ln&&u.a.createElement("aside",{title:"\u5173\u95ED",onClick:function(ur){return un(wt,nn,ur)},className:"iconfont icon-guanbishiyanhuanjing font14 ml10 current"})),gn===5&&u.a.createElement(u.a.Fragment,null,u.a.createElement("i",{style:{color:"#3B86A0"},title:"\u5BB9\u5668\u5185\u670D\u52A1",className:"iconfont icon-rongqi1"}),u.a.createElement("span",null,Wn)))})),u.a.createElement("div",{style:{display:Vt?"block":"none"},className:Di.a.scrollbarTrack},u.a.createElement("div",{ref:ln,className:Di.a.scrollbarThumb})))},Wi=Ji,wa=y("DZo9"),La=y("8z0m"),ha=y("z7Xi"),oo=y("NFKh"),so=y.n(oo),go=y("7Cbv"),Ma=y("mxV5"),ra=y.n(Ma),Zi=y("taB1"),fa=y.n(Zi),la=function(qe){var at="bf3c199c2470cb477d907b1e0917c17b",Ot="5183666c72eec9e4",Ct=so.a.enc.Utf8.parse(at),yt=so.a.enc.Utf8.parse(Ot),Tt=so.a.AES.decrypt(qe,Ct,{iv:yt,mode:so.a.mode.CBC});return Tt.toString(so.a.enc.Utf8)},Ko,es=function(qe){var at=qe.user,Ot=qe.cancelUpload,Ct=qe.defaultFilelist,yt=qe.getData,Tt=Object(s.a)(qe,["user","cancelUpload","defaultFilelist","getData"]),Et=Object(h.useState)([]),mt=Object(r.a)(Et,2),Rt=mt[0],kt=mt[1],jt=Object(h.useState)(""),Gt=Object(r.a)(jt,2),Bt=Gt[0],Xt=Gt[1],tn=Object(h.useState)(),Tn=Object(r.a)(tn,2),Sn=Tn[0],Vt=Tn[1];Object(h.useEffect)(function(){Ct&&kt(Object(I.a)(Ct))},[Ct]);var In={onPreview:function(Mn){Xt(Mn.download_url)},onRemove:function(){var En=Object(e.a)(f.a.mark(function ln(on){var Yt;return f.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(Qn.a)("/api/tasks/".concat(Tt.identifier,"/destroy_attachment"),{method:"delete",body:{id:on.id}});case 2:Yt=xn.sent,yt(),kt(Object(I.a)(Rt.filter(function(_n){return _n.name!==on.name}))),Tt.onChange(Rt.filter(function(_n){return _n.name!==on.name}));case 6:case"end":return xn.stop()}},ln)}));function Mn(ln){return En.apply(this,arguments)}return Mn}(),disabled:Tt.disabled,multiple:!0,fileList:Rt,customRequest:function(){var En=Object(e.a)(f.a.mark(function ln(on){var Yt,vn,xn,_n;return f.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Xn(on.file,{login:at==null||((Yt=at.userInfo)===null||Yt===void 0)?void 0:Yt.login,container_type:Tt.container_type,container_id:Tt.identifier,description:Tt.description,realFileName:Tt.realFileName});case 2:_n=un.sent,on.onSuccess({file:on.file,uid:_n==null||((vn=_n.data)===null||vn===void 0)?void 0:vn.attachment_id,id:_n==null||((xn=_n.data)===null||xn===void 0)?void 0:xn.attachment_id});case 4:case"end":return un.stop()}},ln)}));function Mn(ln){return En.apply(this,arguments)}return Mn}(),beforeUpload:function(){var En=Object(e.a)(f.a.mark(function ln(on){return f.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:case"end":return vn.stop()}},ln)}));function Mn(ln){return En.apply(this,arguments)}return Mn}()},Xn=function(){var En=Object(e.a)(f.a.mark(function Mn(ln,on){var Yt,vn,xn,_n,Cn,un,wt,nn,qn,kn;return f.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return on.file_name=ln.name,wt=ln.name,gn.next=4,Object(Qn.a)("/api/buckets/get_upload_token_for_file.json",{method:"get"});case 4:if(nn=gn.sent,nn.data=JSON.parse(la(nn.data)),!((nn==null?void 0:nn.status)!==0)){gn.next=12;break}return Rt[Rt.findIndex(function(Wn){return Wn.name===wt})].status="error",Rt[Rt.findIndex(function(Wn){return Wn.name===wt})].file.status="error",Tt.onChange(Rt),p.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),gn.abrupt("return");case 12:return Sn=new ra.a({endpoint:nn==null||((Yt=nn.data)===null||Yt===void 0)?void 0:Yt.end_point,region:nn==null||((vn=nn.data)===null||vn===void 0)?void 0:vn.region,accessKeyId:nn==null||((xn=nn.data)===null||xn===void 0)?void 0:xn.access_key_id,accessKeySecret:nn==null||((_n=nn.data)===null||_n===void 0)?void 0:_n.access_key_secret,bucket:nn==null||((Cn=nn.data)===null||Cn===void 0)?void 0:Cn.bucket,stsToken:nn==null||((un=nn.data)===null||un===void 0)?void 0:un.security_token}),console.log("files:",ln,nn),Vt(Sn),qn=ln.name.split("."),qn.pop(),kn=on.realFileName?qn:Object(go.a)(),console.log("obj1111:",on),gn.abrupt("return",new Promise(function(Wn,An){var ur;Sn.multipartUpload("".concat(Tt.identifier,"/").concat(kn.join("")).concat(wt.indexOf(".")>-1?"."+wt.split(".").pop():""),new Blob([ln],{type:ln.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Oi,pa,Cr){try{console.log("\u8FDB\u5EA6",Oi,pa,Cr);var dr=Rt.findIndex(function(ei){return ei.name===wt});Rt[dr].file.percent=Oi*100,Oi===1&&(Rt[dr].status="done",Rt[dr].file.status="done",Tt.onChange(Rt)),Rt[dr].tempCheckpoint=pa,kt(Object(I.a)(Rt))}catch(ei){}},callback:{customValue:{id:wt+""},url:nn==null||((ur=nn.data)===null||ur===void 0)?void 0:ur.callback_url,host:nn==null?void 0:nn.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(Qn.e)(on)}}).then(function(cr){var Oi,pa="done";if(((Oi=cr.data)===null||Oi===void 0?void 0:Oi.status)===0)yt();else{var Cr;p.b.warn((Cr=cr.data)===null||Cr===void 0?void 0:Cr.message),pa="error"}Tt.onChange(Rt),Wn(cr==null?void 0:cr.data)}).catch(function(cr){An(cr),console.log("err:",cr)})}));case 20:case"end":return gn.stop()}},Mn)}));return function(ln,on){return En.apply(this,arguments)}}();Object(h.useEffect)(function(){Rt.every(function(En){return En==="done"||En==="error"})&&Tt.onComplete(Rt),console.log("fileList:",Rt)},[Rt]),Object(h.useEffect)(function(){if(Ot){var En;(En=Sn)===null||En===void 0||En.cancel()}},[Ot]);var zn=function(){var En=Object(e.a)(f.a.mark(function Mn(){return f.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:Rt.map(function(){var Yt=Object(e.a)(f.a.mark(function vn(xn){var _n,Cn;return f.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(!((!xn.status||xn.status==="error")&&!Ot)){wt.next=6;break}return xn.status="uploading",xn.file.status="uploading",wt.next=5,Xn(xn,{login:at==null||((_n=at.userInfo)===null||_n===void 0)?void 0:_n.login,container_type:Tt.container_type,container_id:Tt.identifier,description:Tt.description,realFileName:Tt.realFileName});case 5:Cn=wt.sent;case 6:case"end":return wt.stop()}},vn)}));return function(vn){return Yt.apply(this,arguments)}}());case 1:case"end":return on.stop()}},Mn)}));return function(){return En.apply(this,arguments)}}();return u.a.createElement("div",{className:fa.a.files},u.a.createElement(yi.a,{close:!0,data:encodeURIComponent(Bt),type:Bt!=null&&Bt.length?"office":"",onClose:function(){return Xt("")}}),u.a.createElement(La.a,In,u.a.createElement(Qt.a,{icon:u.a.createElement(ha.a,null),type:"primary"},"\u4E0A\u4F20\u6587\u4EF6")))},ts=Object(x.a)(function(Se){var qe=Se.loading,at=Se.globalSetting,Ot=Se.user;return{globalSetting:at,loading:qe.models.competitions,user:Ot}})(es),qi=ut.a.Group,Ho=function(qe){var at,Ot=qe.classroomList,Ct=qe.loading,yt=qe.user,Tt=qe.exercise_id,Et=Tt===void 0?null:Tt,mt=qe.homework_common_id,Rt=mt===void 0?null:mt,kt=qe.setitem,jt=qe.taskData,Gt=qe.type,Bt=qe.dispatch,Xt=Object(h.useState)(),tn=Object(r.a)(Xt,2),Tn=tn[0],Sn=tn[1],Vt=Object(h.useState)(!1),In=Object(r.a)(Vt,2),Xn=In[0],zn=In[1];Object(h.useEffect)(function(){En()},[]);var En=function(){var ln=Object(e.a)(f.a.mark(function on(){var Yt,vn,xn;return f.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(Qn.a)("/api/tasks/".concat(jt==null||((Yt=jt.game)===null||Yt===void 0)?void 0:Yt.identifier,"/get_user_attachments"),{method:"get"});case 2:xn=Cn.sent,xn==null||((vn=xn.attachments)===null||vn===void 0)||vn.map(function(un){return un.status="done",un.uid=un.id,un.name=un.title,un}),Sn(xn);case 5:case"end":return Cn.stop()}},on)}));return function(){return ln.apply(this,arguments)}}(),Mn=function(on){console.log(on,444)};return u.a.createElement("div",null,u.a.createElement(ts,{identifier:jt==null||((at=jt.game)===null||at===void 0)?void 0:at.identifier,defaultFilelist:Tn==null?void 0:Tn.attachments,container_type:"Game",uploading:Xn,onChange:function(){Xn=!1,zn(!0)},height:300,maxSize:100*1024*1024*1024,description:"",getData:En,onComplete:Mn,realFileName:!0,onRemove:function(){}}))},ns=Object(x.a)(function(Se){var qe=Se.classroomList,at=Se.loading,Ot=Se.globalSetting,Ct=Se.user;return{classroomList:qe,globalSetting:Ot,loading:at.effects,user:Ct}})(Ho),ia=y("lOMy"),Ki=y("ZD9Y"),Pa=function(Se){var qe=Se.onFontSizeChange,at=Se.cmFontSize,Ot=Se.cmCodeMode,Ct=Se.onCodeModeChange,yt=Se.tabToSpace,Tt=Se.onTabToSpace,Et=Se.shixun,mt=Et.task_pass,Rt=Et.forbid_copy,kt=Et.test_set_permission,jt={onFontSizeChange:qe,cmFontSize:at,cmCodeMode:Ot,onCodeModeChange:Ct,tabToSpace:yt,onTabToSpace:Tt};return u.a.createElement(Ki.a,jt,u.a.createElement("h3",null,"\u5173\u5361\u914D\u7F6E\u4FE1\u606F"),u.a.createElement("section",null,u.a.createElement("a",{className:"file-item",title:mt?"\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218":"\u4E0D\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218"},u.a.createElement("b",null,"\u8DF3\u5173"),u.a.createElement("span",null,mt?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8")),u.a.createElement("a",{className:"file-item",title:kt?"\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9":"\u4E0D\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9"},u.a.createElement("b",null,"\u6D4B\u8BD5\u96C6\u89E3\u9501"),u.a.createElement("span",null,kt?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8")),u.a.createElement("a",{className:"file-item",title:Rt?"\u4E0D\u5141\u8BB8\u5B66\u5458\u7C98\u8D34\u4EE3\u7801":"\u5141\u8BB8\u5B66\u5458\u7C98\u8D34\u4EE3\u7801"},u.a.createElement("b",null,"\u4EE3\u7801\u7C98\u8D34"),u.a.createElement("span",null,Rt?"\u4E0D\u5141\u8BB8":"\u5141\u8BB8"))))},ul={theme:Object(Zr.a)("cmCodeMode","vs-dark"),fontSize:Object(Zr.a)("cmFontSize",16),tabToSpace:Object(Zr.a)("cmTabToSpace",!0),autoFormat:Object(Zr.a)("autoFormat",!1)};function Js(Se,qe){switch(qe.type){case q.D:return Object(t.a)(Object(t.a)({},Se),{},{theme:qe.payload});case q.C:return Object(t.a)(Object(t.a)({},Se),{},{fontSize:qe.payload});case q.w:return Object(t.a)(Object(t.a)({},Se),{},{tabToSpace:qe.payload});case q.v:return Object(t.a)(Object(t.a)({},Se),{},{autoFormat:qe.payload});default:throw new Error}}var rs=function(Se){var qe=Se.taskData,at=Se.moveY,Ot=Se.isHtml,Ct=Se.isNotice,yt=Se.onResizeYStart,Tt=Se._dispatch,Et=Se.codeRepData,mt=Se.isEditPath,Rt=Se.onEditRepCode,kt=Se.onUpdateCode,jt=Se.onResizeSetContainer,Gt=Se.onEval,Bt=Se.evaluateLoading,Xt=Se.evaluateMessage,tn=Se.onResizeCodeArea,Tn=Se.onShowDir,Sn=Se.onChangePath,Vt=Se.onShowNotice,In=Se.onResetCode,Xn=Se.onResetGitCode,zn=Se.onResetPassedCode,En=Se.onFinishDisplayHtml,Mn=Se.onGetUnity3dMessage,ln=Se.unity_3d_routes,on=Se.with_code_file,Yt=Se.tabActiveParams,vn=Se.setTabActiveParams,xn=Se.tabs,_n=Se.setTabs,Cn=Se.codeLoading,un=Se.setCodeLoading,wt=Object(s.a)(Se,["taskData","moveY","isHtml","isNotice","onResizeYStart","_dispatch","codeRepData","isEditPath","onEditRepCode","onUpdateCode","onResizeSetContainer","onEval","evaluateLoading","evaluateMessage","onResizeCodeArea","onShowDir","onChangePath","onShowNotice","onResetCode","onResetGitCode","onResetPassedCode","onFinishDisplayHtml","onGetUnity3dMessage","unity_3d_routes","with_code_file","tabActiveParams","setTabActiveParams","tabs","setTabs","codeLoading","setCodeLoading"]),nn=new URLSearchParams(window.location.search),qn=Object(h.useRef)(),kn=Object(h.useReducer)(Js,ul),Ln=Object(r.a)(kn,2),gn=Ln[0],Wn=Ln[1],An=Object(h.useState)(!1),ur=Object(r.a)(An,2),cr=ur[0],Oi=ur[1],pa=Object(h.useState)(!1),Cr=Object(r.a)(pa,2),dr=Cr[0],ei=Cr[1],vr=Object(h.useState)(!1),Qr=Object(r.a)(vr,2),kr=Qr[0],ti=Qr[1],Br=Object(h.useState)([]),Jr=Object(r.a)(Br,2),Xi=Jr[0],rr=Jr[1],Ta=Object(h.useState)(null),Pi=Object(r.a)(Ta,2),Fi=Pi[0],ni=Pi[1],Ur=Object(h.useState)(!1),xi=Object(r.a)(Ur,2),zi=xi[0],Na=xi[1],wo=Object(h.useState)(""),Ni=Object(r.a)(wo,2),Ua=Ni[0],_o=Ni[1],So=Object(h.useState)({}),oa=Object(r.a)(So,2),Fa=oa[0],Do=oa[1],to=ln&&!on;Object(h.useEffect)(function(){var ai=ke.a.subscribe("show-case-result",function(co){tn(1),Oi(co||!cr)});return ai},[cr]),Object(h.useEffect)(function(){return document.addEventListener(Object(D.c)(),ds),function(){document.removeEventListener(Object(D.c)(),ds)}},[qe]);function Io(){ti(!kr),Object(D.a)()?Object(D.b)():Object(D.d)(document.body)}var ds=function(co){if(co.target.localName!=="body"||nn.get("isFullScreen")==="true")return;var Ya=document.getElementById("task-left-panel"),To=Ya.nextElementSibling;Object(D.a)()?(ti(!0),qe!=null&&qe.hideLeftPanel||(Ya.classList.add("hide"),To.classList.add("hide"))):(ti(!1),qe!=null&&qe.hideLeftPanel||(Ya.classList.remove("hide"),To.classList.remove("hide")))};function Os(ai){Rt(ai)}function ko(ai){Wn({type:q.C,payload:ai}),Object(Zr.b)("cmFontSize",ai)}function Uo(ai){Wn({type:q.D,payload:ai}),Object(Zr.b)("cmCodeMode",ai)}function Co(ai){Wn({type:q.w,payload:ai}),Object(Zr.b)("cmTabToSpace",ai)}function lo(ai){Wn({type:q.v,payload:ai}),Object(Zr.b)("autoFormat",ai)}function Jo(){ke.a.publish("formatDocument")}function xr(){ei(!dr)}var ii=at?at!=="100%"?"".concat(at-54,"px"):at:cr?"70%":"100%",Lr=at==="100%"?0:"calc(100% - 54px - ".concat(ii,")"),_r=Yt.index_tab,wi=Yt.shixun_environment_id,zr=Yt.allow_use_code_debugger,Zo=Yt.tab_type,uo=Et.loading,Wo=Et.content,qo=Et.language,Gi=Et.filename,ki=Et.file_type,Vi=Et.lastedUpdateTime,no=Et.paths,ji=Et.currentPath,ya=gn.fontSize,va=gn.theme,Ga=gn.tabToSpace,Va=gn.autoFormat,$i=qe.shixun,Rs=qe.test_sets,Xo=qe.test_sets_count,vs=qe.sets_error_count,il=qe.last_compile_output,ma=qe.game,_s=qe.git_url,$o=qe.myshixun,Ds=qe.user,al=qe.allowed_unlock,Is=qe.shixun_environments,Dl={onFinishDisplayHtml:En,allowed_unlock:al,onResizeSetContainer:jt,moveY:at,language:qo,content:Wo,isHtml:Ot,myshixunIdentifier:$o.identifier,test_sets_view:ma.test_sets_view,identity:Ds.identity,lastedUpdateTime:Vi,test_sets:Rs,test_sets_count:Xo,sets_error_count:vs,last_compile_output:il,startDebug:zi,unique:Ua,setHighlightLine:ni,setStartDebug:Na,setBreakPointValue:rr,onChangePath:Sn,currentPath:ji},hs={content:Wo,language:qo,filename:Gi,file_type:ki,onCodeChange:Os,breakPointValue:Xi,setBreakPointValue:rr,highlightLine:Fi,setHighlightLine:ni,startDebug:zi,openBreakPoint:!!zr,theme:va,taskData:qe,onSave:kt,forbidCopy:$i.forbid_copy,isEditPath:mt,currentPath:ji,unique:Ua,code_edit_permission:$i.code_edit_permission,allBreakPointValue:Fa,setAllBreakPointValue:Do,monacoOptions:{fontSize:ya,insertSpaces:Ga,autoFormat:Va,readOnly:!mt&&!$i.code_edit_permission||zi}},pl={loading:uo,lastedUpdateTime:Vi,moveY:at,code_hidden:!$i.show_code_dir,gameStatus:ma.status,myshixun:$o,game:ma,currentPath:ji,isEditPath:mt,isNotice:Ct,git_url:_s,taskData:qe,onResetCode:In,onResetGitCode:Xn,onResetPassedCode:zn,onShowNotice:Vt,onShowDir:Tn,onResizeCodeArea:tn,onUpdateCode:kt,isResizeLarge:kr,tab_type:Zo,shixun:$i,startDebug:zi,breakPointValue:Xi,setBreakPointValue:rr,setStartDebug:Na,onShowCodeSetting:xr,onRightFullHandler:Io,setHighlightLine:ni,unique:Ua,setUnique:_o,allow_use_code_debugger:zr,allBreakPointValue:Fa,setAllBreakPointValue:Do},Il={onFontSizeChange:ko,cmFontSize:ya,tabToSpace:Ga,cmCodeMode:va,onCodeModeChange:Uo,onTabToSpace:Co,onAutoFormat:lo,formatDocument:Jo,autoFormat:Va,shixun:$i},zs=function(){var ai=Object(e.a)(f.a.mark(function co(Ya){var To;return f.a.wrap(function(zo){for(;;)switch(zo.prev=zo.next){case 0:if(To=nn.get("homework_common_id"),vn(Ya),!To){zo.next=9;break}return zo.next=5,Object(Ee.e)(ma.identifier,{homework_common_id:To,shixun_environment_id:Ya.shixun_environment_id});case 5:return zo.next=7,Object(Ee.x)(ma.identifier,{homework_common_id:To,shixun_environment_id:Ya.shixun_environment_id});case 7:zo.next=13;break;case 9:return zo.next=11,Object(Ee.e)(ma.identifier,{shixun_environment_id:Ya.shixun_environment_id});case 11:return zo.next=13,Object(Ee.x)(ma.identifier,{shixun_environment_id:Ya.shixun_environment_id});case 13:Ya.tab_type===1?Oi(!0):un(!0),Ya.tab_type===1&&Zo&&Tt({type:q.Y,payload:Date.now()}),Ya.tab_type!==1&&Zo===1&&(kt(),un(!0));case 16:case"end":return zo.stop()}},co)}));return function(Ya){return ai.apply(this,arguments)}}();return u.a.createElement(h.Fragment,null,to?u.a.createElement(nt,{taskData:qe,unity_3d_routes:ln,onGetUnity3dMessage:Mn}):u.a.createElement("div",{className:Si.a["code-area-container"],ref:qn,style:{height:ii}},u.a.createElement(Ia.a,{align:"middle"},u.a.createElement(Wi,{initTabs:Is,tabs:xn,paths:no,activePath:ji,onChangePath:function(co){return Sn(co)},setTabs:_n,value:Yt,onChange:zs,codeUpdate:Vi!==0,codeLoading:Cn}),u.a.createElement(V,pl)),xn.map(function(ai){var co,Ya;return u.a.createElement("div",{key:ai.index_tab,style:{display:ai.index_tab===_r?"block":"none",height:"calc(100% - 40px)",position:"relative",overflow:"hidden"}},ai.active&&(ai.tab_type===1||ai.tab_type===2)&&u.a.createElement(u.a.Fragment,null,((co=qe.challenge)===null||co===void 0?void 0:co.show_type)===8&&u.a.createElement(ns,{taskData:qe}),((Ya=qe.challenge)===null||Ya===void 0?void 0:Ya.show_type)!==8&&u.a.createElement(Xa,Object(i.a)({codeLoading:Cn,itemData:ai},hs,{onUpdateCode:kt}))),ai.active&&ai.tab_type===3&&u.a.createElement(pi,{itemData:ai,taskData:qe,evaluateMessage:Xt,language:qo,evaluateLoading:Bt}),ai.active&&ai.tab_type===4&&u.a.createElement(Ir.a,{itemData:ai,key:ai.resetKey,myshixun:$o,game:ma}),ai.active&&ai.tab_type===5&&u.a.createElement(nt,{taskData:qe,unity_3d_routes:ln,onGetUnity3dMessage:Mn,itemData:ai}))})),cr&&u.a.createElement("div",{className:Si.a["resize-y-bar"],onMouseDown:yt,draggable:!1},u.a.createElement("i",{className:"iconfont icon-guangbiao",draggable:!1})),cr&&u.a.createElement("div",{className:Si.a["test-set-container"],style:{height:Lr}},Bt?u.a.createElement(ne.a,{message:Xt,style:{color:"#0152d9"}}):u.a.createElement(ci,Object(i.a)({},Dl,{taskData:qe}))),u.a.createElement("div",{className:Si.a["action-container"]},u.a.createElement(Oo,Object(i.a)({},qe,{startDebug:zi,dispatch:Tt,onUpdateCode:kt,loading:Bt,tabActiveParams:Yt,isU3d:to,onRun:function(){Gt(),Oi(!0)}}))),u.a.createElement(Ne.a,null,u.a.createElement(T.a,{className:Si.a["setting-drawer"],title:null,placement:"right",closable:!1,visible:dr,onClose:function(){return ei(!1)}},u.a.createElement(Pa,Il))),u.a.createElement(hr,{desc:u.a.createElement(se.a,{value:qe==null?void 0:qe.challenge.task_pass}),visible:kr}))},xs=y("zkdm"),Ns=y("Sa5k"),Us=y.n(Ns),Fs=y("fWQN"),Sl=y("mtLc"),Cl=0,cl=1,Zs=3,js=9,fs=10,ss=11,Tl=0,ws=2,Ss=3,ps=4,ms=48,No=function(){function Se(){Object(Fs.a)(this,Se)}return Object(Sl.a)(Se,[{key:"_checkHeader",value:function(){var at=this.header;if(at.imageType===Cl)throw Error("No data");if(at.hasColorMap){if(at.colorMapLength>256||at.colorMapDepth!==24||at.colorMapType!==1)throw Error("Invalid colormap for indexed type")}else if(at.colorMapType)throw Error("Why does the image contain a palette ?");if(!at.width||!at.height)throw Error("Invalid image size");if(at.pixelDepth!==8&&at.pixelDepth!==16&&at.pixelDepth!==24&&at.pixelDepth!==32)throw Error('Invalid pixel size "'+at.pixelDepth+'"')}},{key:"_decodeRLE",value:function(at,Ot,Ct,yt){for(var Tt=new Uint8Array(yt),Et=new Uint8Array(Ct),mt=0;mt<yt;){var Rt=at[Ot++],kt=1+(127&Rt);if(128&Rt){for(var jt=0;jt<Ct;++jt)Et[jt]=at[Ot+jt];Ot+=Ct;for(var Gt=0;Gt<kt;++Gt)Tt.set(Et,mt),mt+=Ct}else{kt*=Ct;for(var Bt=0;Bt<kt;++Bt)Tt[mt+Bt]=at[Ot+Bt];mt+=kt,Ot+=kt}}return Tt}},{key:"_getImageData8bits",value:function(at,Ot,Ct,yt,Tt,Et,mt,Rt,kt,jt){for(var Gt=0,Bt=Tt;Bt!==mt;Bt+=Et)for(var Xt=Rt;Xt!==jt;Xt+=kt,Gt++){var tn=Ot[Gt];at[4*(Xt+yt*Bt)+3]=255,at[4*(Xt+yt*Bt)+2]=Ct[3*tn+0],at[4*(Xt+yt*Bt)+1]=Ct[3*tn+1],at[4*(Xt+yt*Bt)+0]=Ct[3*tn+2]}return at}},{key:"_getImageData16bits",value:function(at,Ot,Ct,yt,Tt,Et,mt,Rt,kt,jt){for(var Gt=0,Bt=Tt;Bt!==mt;Bt+=Et)for(var Xt=Rt;Xt!==jt;Xt+=kt,Gt+=2){var tn=Ot[Gt+0]|Ot[Gt+1]<<8;at[4*(Xt+yt*Bt)+0]=(31744&tn)>>7,at[4*(Xt+yt*Bt)+1]=(992&tn)>>2,at[4*(Xt+yt*Bt)+2]=(31&tn)>>3,at[4*(Xt+yt*Bt)+3]=32768&tn?0:255}return at}},{key:"_getImageData24bits",value:function(at,Ot,Ct,yt,Tt,Et,mt,Rt,kt,jt){for(var Gt=0,Bt=Tt;Bt!==mt;Bt+=Et)for(var Xt=Rt;Xt!==jt;Xt+=kt,Gt+=3)at[4*(Xt+yt*Bt)+3]=255,at[4*(Xt+yt*Bt)+2]=Ot[Gt+0],at[4*(Xt+yt*Bt)+1]=Ot[Gt+1],at[4*(Xt+yt*Bt)+0]=Ot[Gt+2];return at}},{key:"_getImageData32bits",value:function(at,Ot,Ct,yt,Tt,Et,mt,Rt,kt,jt){for(var Gt=0,Bt=Tt;Bt!==mt;Bt+=Et)for(var Xt=Rt;Xt!==jt;Xt+=kt,Gt+=4)at[4*(Xt+yt*Bt)+2]=Ot[Gt+0],at[4*(Xt+yt*Bt)+1]=Ot[Gt+1],at[4*(Xt+yt*Bt)+0]=Ot[Gt+2],at[4*(Xt+yt*Bt)+3]=Ot[Gt+3];return at}},{key:"_getImageDataGrey8bits",value:function(at,Ot,Ct,yt,Tt,Et,mt,Rt,kt,jt){for(var Gt=0,Bt=Tt;Bt!==mt;Bt+=Et)for(var Xt=Rt;Xt!==jt;Xt+=kt,Gt++){var tn=Ot[Gt];at[4*(Xt+yt*Bt)+0]=tn,at[4*(Xt+yt*Bt)+1]=tn,at[4*(Xt+yt*Bt)+2]=tn,at[4*(Xt+yt*Bt)+3]=255}return at}},{key:"_getImageDataGrey16bits",value:function(at,Ot,Ct,yt,Tt,Et,mt,Rt,kt,jt){for(var Gt=0,Bt=Tt;Bt!==mt;Bt+=Et)for(var Xt=Rt;Xt!==jt;Xt+=kt,Gt+=2)at[4*(Xt+yt*Bt)+0]=Ot[Gt+0],at[4*(Xt+yt*Bt)+1]=Ot[Gt+0],at[4*(Xt+yt*Bt)+2]=Ot[Gt+0],at[4*(Xt+yt*Bt)+3]=Ot[Gt+1];return at}},{key:"open",value:function(at,Ot){var Ct=this,yt=new XMLHttpRequest;return new Promise(function(Tt,Et){yt.responseType="arraybuffer",yt.open("GET",at,!0),yt.onload=function(){yt.status===200&&Ct.load(new Uint8Array(yt.response),Tt),Ct.imageSourceData=yt.response,Ot&&Ot()},yt.send(null)})}},{key:"load",value:function(at,Ot){var Ct=0;if(at.length<18)throw Error("Not enough data to contain header");var yt={idLength:at[Ct++],colorMapType:at[Ct++],imageType:at[Ct++],colorMapIndex:at[Ct++]|at[Ct++]<<8,colorMapLength:at[Ct++]|at[Ct++]<<8,colorMapDepth:at[Ct++],offsetX:at[Ct++]|at[Ct++]<<8,offsetY:at[Ct++]|at[Ct++]<<8,width:at[Ct++]|at[Ct++]<<8,height:at[Ct++]|at[Ct++]<<8,pixelDepth:at[Ct++],flags:at[Ct++]};if(yt.hasEncoding=yt.imageType===js||yt.imageType===fs||yt.imageType===ss,yt.hasColorMap=yt.imageType===js||yt.imageType===cl,yt.isGreyColor=yt.imageType===ss||yt.imageType===Zs,this.header=yt,this._checkHeader(),(Ct+=yt.idLength)>=at.length)throw Error("No data");if(yt.hasColorMap){var Tt=yt.colorMapLength*(yt.colorMapDepth>>3);this.palette=at.subarray(Ct,Ct+Tt),Ct+=Tt}var Et=yt.pixelDepth>>3,mt=yt.width*yt.height,Rt=mt*Et;yt.hasEncoding?this.imageData=this._decodeRLE(at,Ct,Et,Rt):this.imageData=at.subarray(Ct,Ct+(yt.hasColorMap?mt:Rt)),Ot(this)}},{key:"getImageData",value:function(at){var Ot=this.header,Ct=Ot.width,yt=Ot.height,Tt=Ot.flags,Et=Ot.pixelDepth,mt=Ot.isGreyColor,Rt=(Tt&ms)>>ps,kt,jt,Gt,Bt,Xt,tn,Tn;switch(at||(at=document?document.createElement("canvas").getContext("2d").createImageData(Ct,yt):{width:Ct,height:yt,data:new Uint8ClampedArray(Ct*yt*4)}),Rt===ws||Rt===Ss?(Bt=0,Xt=1,tn=yt):(Bt=yt-1,Xt=-1,tn=-1),Rt===ws||Rt===Tl?(kt=0,jt=1,Gt=Ct):(kt=Ct-1,jt=-1,Gt=-1),Et){case 8:Tn=mt?this._getImageDataGrey8bits:this._getImageData8bits;break;case 16:Tn=mt?this._getImageDataGrey16bits:this._getImageData16bits;break;case 24:Tn=this._getImageData24bits;break;case 32:Tn=this._getImageData32bits}return Tn.call(this,at.data,this.imageData,this.palette,Ct,Bt,Xt,tn,kt,jt,Gt),at}},{key:"getCanvas",value:function(){var at=this.header,Ot=at.width,Ct=at.height,yt=document.createElement("canvas"),Tt=yt.getContext("2d"),Et=Tt.createImageData(Ot,Ct);return yt.width=Ot,yt.height=Ct,Tt.putImageData(this.getImageData(Et),0,0),yt}},{key:"getDataURL",value:function(at){return this.getCanvas().toDataURL(at||"image/png")}}]),Se}(),Qo=function(Se){var qe=Se.list,at=Se.title,Ot=Se.direction,Ct=qe.length,yt=Object(h.useState)([]),Tt=Object(r.a)(yt,2),Et=Tt[0],mt=Tt[1],Rt=function(){var kt=Object(e.a)(f.a.mark(function jt(){var Gt,Bt,Xt,tn;return f.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:Gt=[],Bt=0;case 2:if(!(Bt<qe.length)){Sn.next=13;break}if(Xt=qe[Bt],!(Xt.pic_url.indexOf(".tga")>-1)){Sn.next=9;break}return tn=new No,Sn.next=8,tn.open(Xt.pic_url);case 8:Xt.pic_url=tn.getDataURL();case 9:Gt.push(Xt);case 10:Bt++,Sn.next=2;break;case 13:mt([].concat(Gt));case 14:case"end":return Sn.stop()}},jt)}));return function(){return kt.apply(this,arguments)}}();return Object(h.useEffect)(function(){Rt()},[qe]),u.a.createElement("div",{className:"img-list ".concat(Ot?"":"direction")},u.a.createElement("h4",null,at),u.a.createElement("div",{className:"list-body",style:{padding:"40px 0px"}},Ct>0?Et.map(function(kt,jt){return u.a.createElement("img",{onClick:function(){ke.a.publish("preview-image","".concat(Dt.a).concat(kt.pic_url))},className:Ct===1?"singal":"",src:"".concat(kt.pic_url.indexOf("data:image/png;base64")>-1?kt.pic_url:Dt.a+kt.pic_url),key:kt.pic_url,alt:at})}):u.a.createElement(h.Fragment,null,u.a.createElement("img",{alt:"\u7A7A",className:"nothing",src:Us.a}),u.a.createElement("img",{alt:"\u7A7A",className:"nothing",src:Us.a}))))},ls=y("1A8V"),Cs=function(Se){var qe=Se.url,at=Se.poster;return u.a.createElement("div",{className:"video-container"},u.a.createElement("video",{controls:!0,autoPlay:!0,src:qe,preload:"auto",poster:at||""},u.a.createElement("source",{type:"video/webm",src:qe}),u.a.createElement("source",{type:"video/mp4",src:qe})))},gs=y("XZCF"),Bs=function(Se){var qe=Se.url;return u.a.createElement("div",{className:"video-container"},u.a.createElement("audio",{style:{width:"100%"},controls:!0,src:qe}," Your browser does not support the ",u.a.createElement("code",null,"audio")," element. "))},$s=function(Se){var qe=Se.files,at=Se.type;return u.a.createElement("ul",{className:"video-list"},qe.map(function(Ot,Ct){return u.a.createElement("li",{key:Ct},at==="mp4"?u.a.createElement(Cs,{url:Ot.file_url}):u.a.createElement(Bs,{url:Ot.file_url}))}))},Ks=function(Se){var qe=Se.value;return u.a.createElement("img",{src:"data:image/png;base64,".concat(qe),alt:"qrcode"})};function el(Se){var qe=Se.documentElement,at=Se.body,Ot=Math.max(qe.clientHeight,qe.scrollHeight,qe.offsetHeight,at?at.clientHeight:0,at?at.scrollHeight:0,500);return Ot}function is(Se){var qe=Se.contentDocument?Se.contentDocument:Se.contentWindow.document;Se.style.visibility="hidden",Se.style.height="10px",Se.style.height=el(qe)+4+"px",Se.style.visibility="visible"}var us=function(Se){var qe=Se.taskId,at=Se.onHidePictureView,Ot=Object(h.useState)({}),Ct=Object(r.a)(Ot,2),yt=Ct[0],Tt=Ct[1],Et=Object(h.useState)(),mt=Object(r.a)(Et,2),Rt=mt[0],kt=mt[1],jt=Object(h.useRef)(),Gt=Object(h.useRef)(),Bt=Object(h.useRef)(),Xt=Object(h.useState)(!0),tn=Object(r.a)(Xt,2),Tn=tn[0],Sn=tn[1];Object(h.useEffect)(function(){var vn=yt.type,xn=yt.iframe_src;vn==="html"&&xn&&Gt.current&&(Gt.current.contentWindow.document.write(xn),Gt.current.contentWindow.document.close(),setTimeout(function(){is(Gt.current)},100))},[yt,Gt.current]),Object(h.useEffect)(function(){function vn(){return xn.apply(this,arguments)}function xn(){return xn=Object(e.a)(f.a.mark(function _n(){var Cn,un,wt,nn,qn,kn;return f.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,Object(Ee.j)(qe);case 2:if(Cn=gn.sent,Tt(Cn),!((Cn==null?void 0:Cn.type)=="verilog")){gn.next=12;break}return gn.next=7,Object(Qn.a)(Cn==null||((un=Cn.user_file)===null||un===void 0||((wt=un[0])===null||wt===void 0))?void 0:wt.file_url,{method:"get",headers:{"Content-Type":"application/json"}});case 7:nn=gn.sent,qn=new TextDecoder("utf-8"),kn=new Uint8Array(nn),jt.current=JSON.parse(qn.decode(kn)),kt(JSON.parse(qn.decode(kn)));case 12:case"end":return gn.stop()}},_n)})),xn.apply(this,arguments)}vn()},[qe]),Object(h.useEffect)(function(){Vt()},[Rt]);var Vt=function(){if(jt.current&&jt.current!=""){var xn;(xn=Bt.current.contentWindow)===null||xn===void 0||xn.postMessage({data:jt.current},"*")}},In=yt.type,Xn=yt.orignal_picture,zn=yt.user_picture,En=yt.answer_picture,Mn=yt.contents,ln=yt.user_file,on=yt.message,Yt=yt.qrcode_str;return u.a.createElement(h.Fragment,null,In?null:u.a.createElement(ne.a,{message:on||"\u52A0\u8F7D\u4E2D..."}),u.a.createElement("div",{className:"eval-picture-panel"},u.a.createElement("div",{className:"picture-body"},u.a.createElement("h3",null,u.a.createElement("div",null,u.a.createElement("div",null,"\u67E5\u770B\u6548\u679C"),In==="image"&&u.a.createElement("div",{onClick:function(){return Sn(!Tn)},className:"direction"},u.a.createElement("span",{style:{marginRight:8,display:"inline-block"}},u.a.createElement("i",{className:"iconfont ".concat(Tn?"icon-zongxiang":"icon-hengxiang")})),u.a.createElement("span",null,"\u5207\u6362\u4E3A",Tn?"\u7EB5":"\u6A2A","\u5411\u5BF9\u6BD4"))),u.a.createElement("div",null,u.a.createElement("a",{onClick:at},u.a.createElement("i",{className:"iconfont icon-shanchu2"})))),In==="verilog"&&u.a.createElement("iframe",{onLoad:Vt,ref:Bt,src:"/js/iverilog/index.html",className:"iverilogFrame"}),In==="image"?u.a.createElement("div",{className:"flex-container",style:{flexDirection:Tn?"unset":"column"}},Xn.length>0?u.a.createElement(Qo,{list:Xn,title:"\u539F\u59CB\u56FE\u7247",direction:Tn}):null,En.length>0?u.a.createElement(Qo,{list:En,title:"\u9884\u671F\u8F93\u51FA",direction:Tn}):null,zn.length>0?u.a.createElement(Qo,{list:zn,title:"\u5B9E\u9645\u8F93\u51FA",direction:Tn}):null):u.a.createElement(h.Fragment,null,u.a.createElement("h2",null,"\u5B9E\u9645\u8F93\u51FA"),u.a.createElement("div",{className:"output-txt ".concat(In==="html"?"html":"")},In==="html"?u.a.createElement("iframe",{ref:Gt,style:{width:"100%",height:"100%",border:"1px solid #ccc"}}):In=="mp4"||In=="mp3"?u.a.createElement($s,{files:ln,type:In}):In==="qrcode"?u.a.createElement(Ks,{value:Yt}):u.a.createElement("div",{style:{overflow:"auto",height:"100%"}},u.a.createElement(se.a,{value:Mn})))))))},Hs,tl,Al=(Hs=Object(De.J)())!==null&&Hs!==void 0&&Hs.homework_common_id?{homework_common_id:(tl=Object(De.J)())===null||tl===void 0?void 0:tl.homework_common_id}:{};function Ol(Se,qe){return Object(Qn.c)("/tasks/".concat(Se,"/system_update.json"),{myshixun_id:qe})}function nl(Se){return Object(Qn.c)("/tasks/".concat(Se,"/sync_codes.json"),Al)}function Ws(Se){return Object(Qn.c)("/tasks/".concat(Se,"/sync_modify_time"))}var vo=function(Se){var qe=Se.showNotice,at=Se.tpm_cases_modified,Ot=Se.tpm_modified,Ct=Se.tpm_script_modified,yt=Se.st,Tt=Se.taskId,Et=Se.myshixunId,mt=Se.onNextCallback,Rt=Se.onUpdateCallback,kt=Se.onUpdateFailure,jt=(Ot||Ct)&&yt===0,Gt=Object(h.useState)(!1),Bt=Object(r.a)(Gt,2),Xt=Bt[0],tn=Bt[1];function Tn(){return Sn.apply(this,arguments)}function Sn(){return Sn=Object(e.a)(f.a.mark(function Xn(){var zn,En,Mn,ln;return f.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(!Xt){Yt.next=2;break}return Yt.abrupt("return");case 2:if(tn(!0),!jt){Yt.next=21;break}return Yt.next=6,nl(Tt);case 6:if(zn=Yt.sent,En=zn.path,Mn=zn.status,ln=zn.message,!(Mn===-1)){Yt.next=14;break}p.b.info(ln||"\u66F4\u65B0\u5931\u8D25\uFF0C\u670D\u52A1\u7AEF\u9519\u8BEF"),kt(),Yt.next=19;break;case 14:if(p.b.info("\u66F4\u65B0\u6210\u529F\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u65B0\u52A0\u8F7D\u4EE3\u7801..."),!at){Yt.next=18;break}return Yt.next=18,Ws(Tt);case 18:Rt(En,new Date().getTime());case 19:Yt.next=25;break;case 21:return Yt.next=23,Ws(Tt);case 23:p.b.info("\u66F4\u65B0\u72B6\u6001\u5DF2\u540C\u6B65\u3002"),mt();case 25:tn(!1);case 26:case"end":return Yt.stop()}},Xn)})),Sn.apply(this,arguments)}function Vt(){return In.apply(this,arguments)}function In(){return In=Object(e.a)(f.a.mark(function Xn(){return f.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:if(!Xt){En.next=2;break}return En.abrupt("return");case 2:if(tn(!0),!jt){En.next=11;break}return En.next=6,Ol(Tt,Et);case 6:if(!at){En.next=9;break}return En.next=9,Ws(Tt);case 9:En.next=13;break;case 11:return En.next=13,Ws(Tt);case 13:tn(!1),mt();case 15:case"end":return En.stop()}},Xn)})),In.apply(this,arguments)}return u.a.createElement(l.a,{centered:!0,title:"\u66F4\u65B0\u901A\u77E5",closable:!1,confirmLoading:Xt,visible:qe,onOk:Tn,onCancel:Vt,okText:jt?"\u7ACB\u5373\u66F4\u65B0":"\u77E5\u9053\u4E86",cancelText:"\u7A0D\u540E\u518D\u8BF4"},at&&jt?u.a.createElement(h.Fragment,null,u.a.createElement("p",null," \u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u548C\u6D4B\u8BD5\u96C6\u6709\u66F4\u65B0\u5566~"),u.a.createElement("p",null,"\u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9\u3002"),u.a.createElement("p",null,"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01")):at?u.a.createElement(h.Fragment,null,u.a.createElement("p",null,"\u672C\u5173",yt===0?"\u6D4B\u8BD5\u96C6":"\u7B54\u6848","\u5DF2\u66F4\u65B0\uFF0C\u60A8\u53EF\u4EE5\u91CD\u65B0\u8BC4\u6D4B\u3002"),u.a.createElement("p",null,"\u672C\u6B21\u66F4\u65B0\u4E0D\u5F71\u54CD\u5DF2\u83B7\u5F97\u7684\u7ECF\u9A8C\u503C\u3002")):u.a.createElement("p",null,"\u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u6709\u66F4\u65B0\u5566~",u.a.createElement("br",null)," \u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9\u3002",u.a.createElement("br",null),"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01"))},Sa=y("IWh4"),eo=y.n(Sa),Ca=y("iNZB"),Ts=y.n(Ca),Bl=y("y8nQ"),xo=y("Vl3Y"),dl=y("xKgJ"),Rl=Zt.a.Countdown,hl=function(qe){var at,Ot,Ct,yt,Tt=qe.exercise,Et=qe.successCb,mt=qe.dispatch,Rt=Object(E.i)(),kt=xo.a.useForm(),jt=Object(r.a)(kt,1),Gt=jt[0],Bt=Object(h.useState)(!1),Xt=Object(r.a)(Bt,2),tn=Xt[0],Tn=Xt[1],Sn=Object(h.useRef)(),Vt=Tt.actionTabs;Object(h.useEffect)(function(){Tt.actionTabs.key==="student-unlock"&&(Tn(!1),Gt.resetFields())},[Tt.actionTabs.key]);var In=function(){return new Promise(function(){var ln=Object(e.a)(f.a.mark(function on(Yt){var vn,xn;return f.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(Ra.a)({ip_limit:Vt==null||((vn=Vt.exerciseParams)===null||vn===void 0)?void 0:vn.ip_limit,ip_bind:Vt==null||((xn=Vt.exerciseParams)===null||xn===void 0)?void 0:xn.ip_bind});case 2:return Sn.current=Cn.sent,Cn.abrupt("return",Yt());case 4:case"end":return Cn.stop()}},on)}));return function(on){return ln.apply(this,arguments)}}())},Xn=function(){var Mn=Object(e.a)(f.a.mark(function ln(){var on,Yt,vn,xn,_n,Cn,un,wt,nn,qn,kn;return f.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,Gt.validateFields();case 2:if(_n=Gt.getFieldsValue(),Tn(!0),!((Vt==null||((on=Vt.exerciseParams)===null||on===void 0)?void 0:on.ip_limit)!=="no"||Vt!=null&&(Yt=Vt.exerciseParams)!==null&&Yt!==void 0&&Yt.ip_bind)){gn.next=7;break}return gn.next=7,In();case 7:return gn.next=9,Object(Ge.db)(Vt==null||((vn=Vt.exerciseParams)===null||vn===void 0)?void 0:vn.id,{exercise_user_id:Vt==null||((xn=Vt.exerciseParams)===null||xn===void 0)?void 0:xn.exercise_user_id,unlock_key:_n.unlock_key,ip:Sn.current});case 9:if(Cn=gn.sent,!(Cn.status===0)){gn.next=22;break}if(!Et){gn.next=15;break}return mt({type:"exercise/setActionTabs",payload:{}}),Et(),gn.abrupt("return");case 15:if(!_n.time){gn.next=19;break}return qn={time:Ce()(_n.time).format("YYYY-MM-DD HH:mm"),exercise_user_id:Vt==null||((wt=Vt.exerciseParams)===null||wt===void 0)?void 0:wt.exercise_user_id,id:Vt==null||((nn=Vt.exerciseParams)===null||nn===void 0)?void 0:nn.id},gn.next=19,Object(Ge.i)(qn);case 19:kn=Vt==null?void 0:Vt.exerciseParams,Object(De.cb)({inner_ip:kn.inner_ip,public_ip:kn.public_ip,open_camera:kn.open_camera,ip_limit:kn.ip_limit,ip_bind:kn.ip_bind,exercise_tips:kn.exercise_tips,exerciseId:kn.id,screen_open:kn.screen_open,screen_num:kn.screen_num,screen_sec:kn.screen_sec,coursesId:Rt.coursesId,login:(un=Object(dl.x)())===null||un===void 0?void 0:un.login,history,identity_verify:kn.identity_verify,open_phone_video_recording:kn.open_phone_video_recording,current_status:kn.current_status}),mt({type:"exercise/setActionTabs",payload:{}});case 22:Tn(!1);case 23:case"end":return gn.stop()}},ln)}));return function(){return Mn.apply(this,arguments)}}(),zn=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:function(ln){return u.a.createElement("span",{className:ln.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},ln)}},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:function(ln){return u.a.createElement("span",{className:ln.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},ln)}},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],En=(Vt==null||((at=Vt.exerciseParams)===null||at===void 0)?void 0:at.errorMessage)&&typeof(Vt==null||((Ot=Vt.exerciseParams)===null||Ot===void 0)?void 0:Ot.errorMessage)=="object";return u.a.createElement(u.a.Fragment,null,u.a.createElement(l.a,{width:514,centered:!0,closable:!!(Vt!=null&&(Ct=Vt.exerciseParams)!==null&&Ct!==void 0&&Ct.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",visible:Tt.actionTabs.key==="student-unlock",footer:null,onCancel:function(){mt({type:"exercise/setActionTabs",payload:{}})}},En&&u.a.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!En&&u.a.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),En&&u.a.createElement(z.a,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(Vt==null||((yt=Vt.exerciseParams)===null||yt===void 0)?void 0:yt.errorMessage)||{}],columns:zn}),u.a.createElement("div",{className:""},u.a.createElement(xo.a,{form:Gt,layout:"vertical",autoComplete:"off"},u.a.createElement(xo.a.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},u.a.createElement(Nr.a.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})))),u.a.createElement(Ia.a,{justify:"space-between",align:"middle"},u.a.createElement(Ri.a,null),u.a.createElement(Ri.a,null,u.a.createElement(Qt.a,{loading:tn,onClick:Xn},"\u8FDB\u5165\u8003\u8BD5")))))},cs=Object(x.a)(function(Se){var qe=Se.exercise;return{exercise:qe}})(hl),Xs=c.a.DirectoryTree,As={moveX:"40%",moveY:0,loading:!0,isError:!1,taskData:{game:{}},evalData:null,lastedGetTaskInfoTime:0,codeRepData:{content:"",language:"c",currentPath:"",paths:[],lastedUpdateTime:0},showEvalResult:!1,showPictureView:!1,isPictureView:!1,showDragMask:!1,webDisplayUrl:"",evaluateLoading:!1,resetVncLoading:!1,evaluateMessage:"",showNotice:!1,timestamp:"",showDocuments:!1,repos:null};function fl(Se,qe){switch(qe.type){case q.t:return Object(t.a)(Object(t.a)({},Se),{},{moveX:qe.payload});case q.u:return Object(t.a)(Object(t.a)({},Se),{},{moveY:qe.payload});case q.h:return Object(t.a)(Object(t.a)({},Se),{},{codeRepData:qe.payload});case q.d:return Object(t.a)(Object(t.a)({},Se),{},{codeRepData:Object(t.a)(Object(t.a)({},Se.codeRepData),qe.payload)});case q.N:return Object(t.a)(Object(t.a)({},Se),{},{evaluateLoading:!1,showEvalResult:!0});case q.Y:return Object(t.a)(Object(t.a)({},Se),{},{timestamp:qe.payload});case q.o:return Object(t.a)(Object(t.a)({},Se),{},{showEvalResult:!1});case q.j:return Object(t.a)(Object(t.a)({},Se),{},{loading:!0});case q.X:return Object(t.a)(Object(t.a)({},Se),qe.payload);case q.V:return Object(t.a)(Object(t.a)({},Se),{},{showDragMask:qe.payload});case q.i:return Object(t.a)(Object(t.a)({},Se),{},{loading:!1,isError:!0});case q.k:return Object(t.a)(Object(t.a)({},Se),qe.payload);case q.M:return Object(t.a)(Object(t.a)({},Se),{},{evaluateLoading:!0});case q.n:return Object(t.a)(Object(t.a)({},Se),{},{evaluateLoading:!1});case q.E:return Object(t.a)(Object(t.a)({},Se),{},{evaluateMessage:qe.payload});case q.H:return Object(t.a)(Object(t.a)({},Se),{},{showDocuments:qe.payload});case q.F:return Object(t.a)(Object(t.a)({},Se),qe.payload);case q.O:return Object(t.a)(Object(t.a)({},Se),{},{showNotice:!0});case q.p:return Object(t.a)(Object(t.a)({},Se),{},{showNotice:!1});case q.q:return Object(t.a)(Object(t.a)({},Se),{},{showPictureView:!1});case q.P:return Object(t.a)(Object(t.a)({},Se),{},{showPictureView:!0});case q.J:return Object(t.a)(Object(t.a)({},Se),{},{resetVncLoading:qe.payload});default:throw new Error}}var rl=W.default=function(Se){var qe,at=Object(i.a)({},Se),Ot=Object(E.i)(),Ct=new URLSearchParams(window.location.search),yt=Object(h.useReducer)(fl,As),Tt=Object(r.a)(yt,2),Et=Tt[0],mt=Tt[1],Rt=Object(h.useState)(Ot.taskId),kt=Object(r.a)(Rt,2),jt=kt[0],Gt=kt[1],Bt=Object(h.useRef)(),Xt=Object(h.useRef)(),tn=Object(h.useRef)(),Tn=Object(h.useRef)(),Sn=Object(h.useRef)({}),Vt=Object(h.useRef)(),In=Object(h.useState)([]),Xn=Object(r.a)(In,2),zn=Xn[0],En=Xn[1],Mn=Object(h.useState)({}),ln=Object(r.a)(Mn,2),on=ln[0],Yt=ln[1],vn=Object(h.useState)(!0),xn=Object(r.a)(vn,2),_n=xn[0],Cn=xn[1];Object(h.useEffect)(function(){Gt(Ot.taskId)},[Ot]),Object(h.useEffect)(function(){Sn.current=on},[on]);var un=Et.moveX,wt=Et.taskData,nn=Et.moveY,qn=Et.evalData,kn=Et.showEvalResult,Ln=Et.codeRepData,gn=Et.loading,Wn=Et.evaluateLoading,An=Et.evaluateMessage,ur=Et.showDocuments,cr=Et.repos,Oi=Et.showPictureView,pa=Et.showNotice,Cr=Et.webDisplayUrl,dr=Et.isPictureView,ei=Et.resetVncLoading,vr=Et.timestamp,Qr=Et.lastedGetTaskInfoTime,kr=Et.showDragMask;Tn.current=Et;var ti=wt.st,Br=wt.challenge,Jr=wt.shixun,Xi=wt.to_user_id,rr=wt.chatgpt,Ta=wt.is_teacher,Pi=wt.game,Fi=wt.has_answer,ni=wt.vnc_url,Ur=wt.git_url,xi=wt.user,zi=wt.myshixun,Na=wt.discusses_count,wo=wt.user_praise,Ni=wt.praise_count,Ua=wt.tpm_cases_modified,_o=wt.tpm_modified,So=wt.tpm_script_modified,oa=wt.mirror_name,Fa=wt.mirror_description,Do=wt.tomcat_url,to=wt.unity_3d_routes,Io=wt.with_code_file,ds=wt.unity_3d_result,Os=wt.next_game,ko=wt.prev_game,Uo=wt.mirror_description_multi,Co=wt.shixun_environments,lo=Ln.currentPath,Jo=Ln.paths,xr=Ln.content,ii=Ln.language,Lr=Ln.lastedUpdateTime,_r=on.index_tab,wi=on.shixun_environment_id,zr=on.tab_type,Zo=(_o||So)&&ti===0,uo=(Ua||Zo)&&zi.system_tip===!0,Wo=(oa||[]).indexOf("Html")!==-1,qo=typeof un=="number"&&un!==.01?"".concat(un,"px"):"40%",Gi="calc(100% - 4px - ".concat(qo,")"),ki=zn==null?void 0:zn.find(function($n){return($n==null?void 0:$n.index_tab)===(on==null?void 0:on.index_tab)}),Vi=Object(h.useMemo)(function(){return lo&&Jo?Jo.indexOf(lo)>=0:!1},[lo,Jo]);Object(h.useEffect)(function(){if(tn.current||Xt.current){function $n(fn){if(Xt.current){var mn=fn.pageX,Kn=window.innerWidth-500;mn<=200&&(mn=.01),mn>=Kn&&(mn=Kn),mt({type:q.t,payload:mn})}tn.current&&mt({type:q.u,payload:fn.pageY})}function hn(){Object(De.V)("auto"),Xt.current=!1,tn.current=!1,mt({type:q.V,payload:!1}),document.onselectstart=null}return document.addEventListener("mousemove",$n),document.addEventListener("mouseup",hn),function(){document.removeEventListener("mousemove",$n),document.removeEventListener("mouseup",hn)}}},[tn.current,Xt.current,mt]),Object(h.useEffect)(function(){return window.addEventListener("beforeunload",va),function(){window.removeEventListener("beforeunload",va)}},[wt]),Object(h.useEffect)(function(){Jr&&Object(De.Z)(Jr.name||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199")},[Jr]),Object(h.useEffect)(function(){var $n=ke.a.subscribe("unlock-test-case",function(){var hn;l.a.confirm((hn={centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u.a.createElement(Ui,{score:Br.score,is_teacher:Ta})},Object(a.a)(hn,"centered",!0),Object(a.a)(hn,"onOk",Ga),hn))});return $n},[Ga,Br,Ta]),Object(h.useEffect)(function(){no()},[]);function no(){return ji.apply(this,arguments)}function ji(){return ji=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn,Kn,Pn,Tr;return f.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:return mr.prev=0,mr.next=3,Object(Ee.l)(Ot.taskId);case 3:if(hn=mr.sent,fn=hn.status,!(fn===401)){mr.next=9;break}return mr.abrupt("return");case 9:if(!(fn===-3)){mr.next=13;break}Object(De.q)({onCancel:function(){window.location.href="/"}}),mr.next=26;break;case 13:if(!(fn===403)){mr.next=17;break}history.replace("/403"),mr.next=26;break;case 17:if(!(fn===404)){mr.next=22;break}return history.replace("/404"),mr.abrupt("return");case 22:mn=hn.st,Kn=hn.challenge.path,Pn={loading:!1,isError:!1,taskData:hn,lastedGetTaskInfoTime:new Date().getTime(),codeRepData:Ln},mn===0&&Kn&&(Tr=Kn.split("\uFF1B").filter(function(Gr){return!!Gr}),Pn.codeRepData.currentPath=Tr[0],Pn.codeRepData.paths=Tr,Pn.codeRepData.lastedUpdateTime=0),mt({type:q.k,payload:Object(t.a)({},Pn)});case 26:mr.next=32;break;case 28:mr.prev=28,mr.t0=mr.catch(0),console.log(mr.t0),mt({type:q.i});case 32:case"end":return mr.stop()}},$n,null,[[0,28]])})),ji.apply(this,arguments)}Object(h.useEffect)(function(){function $n(){return hn.apply(this,arguments)}function hn(){return hn=Object(e.a)(f.a.mark(function fn(){var mn,Kn,Pn,Tr,Pr,mr;return f.a.wrap(function(mi){for(;;)switch(mi.prev=mi.next){case 0:return Cn(!0),mi.next=3,Object(Ee.h)(jt,{path:lo});case 3:if(mn=mi.sent,mn!=null&&mn.content){try{(mn==null?void 0:mn.file_type)==="txt"?Kn=((Pn=Kn)===null||Pn===void 0?void 0:Pn.length)===0?Kn:window.decodeURIComponent(escape(window.atob(mn==null||((Tr=mn.content)===null||Tr===void 0)?void 0:Tr.content))):Kn=mn==null||((Pr=mn.content)===null||Pr===void 0)?void 0:Pr.content}catch(ho){Kn=window.atob(mn==null||((mr=mn.content)===null||mr===void 0)?void 0:mr.content),p.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8"),console.log("err:",ho)}mt({type:q.h,payload:Object(t.a)(Object(t.a)({},Ln),{},{content:Kn,language:mn.language,file_type:mn.file_type,filename:mn.filename,lastedUpdateTime:0})})}else(mn==null?void 0:mn.status)===0&&p.b.warn(mn==null?void 0:mn.message);Cn(!1);case 6:case"end":return mi.stop()}},fn)})),hn.apply(this,arguments)}ti===0&&lo&&!(to&&!Io)&&Co!==null&&Co!==void 0&&Co.some(function(fn){return fn.tab_type===1})&&$n()},[ti,lo,Qr,vr]);var ya=function(){var $n=Object(e.a)(f.a.mark(function hn(){var fn,mn,Kn,Pn,Tr=arguments;return f.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if(fn=Tr.length>0&&Tr[0]!==void 0?Tr[0]:0,!(ti===0&&Lr>0&&Vi||fn)){mr.next=13;break}if(mn=Ot.courseId&&Ot.exerciseId?{exercise_id:Ot.exerciseId}:{},!(Ct.get("ip_limit")==="inner"||Ct.get("ip_bind")==="true")){mr.next=7;break}return mr.next=6,Object(Ra.a)({ip_limit:Ct.get("ip_limit"),ip_bind:Ct.get("ip_bind")==="true"});case 6:Kn=mr.sent;case 7:return mr.next=9,Object(Ee.I)(zi.identifier,Object(t.a)({path:lo,evaluate:fn,content:xr,game_id:Pi.id,tab_type:zr,exercise_id:Ct.get("exercisesId"),ip:Kn},mn));case 9:return Pn=mr.sent,(Pn==null?void 0:Pn.status)===-5&&typeof(Pn==null?void 0:Pn.message)=="string"&&l.a.info({title:"\u63D0\u793A",maskClosable:!0,icon:null,width:700,centered:!0,content:u.a.createElement("div",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u8003\u8BD5\uFF08",u.a.createElement("a",{href:"/classrooms/".concat(Pn==null?void 0:Pn.course_identifier,"/exercise/").concat(Pn==null?void 0:Pn.exercise_id,"/detail")},Pn==null?void 0:Pn.exercise_name),"\uFF09\u4E2D\u88AB\u4F7F\u7528\uFF0C\u7528\u6237\u8BD5\u5377\u5DF2\u4EA4\u5377\uFF0C\u7981\u6B62\u518D\u4F5C\u7B54\uFF01")}),mt({type:q.d,payload:{lastedUpdateTime:0}}),mr.abrupt("return",Pn);case 13:return mr.abrupt("return",!0);case 14:case"end":return mr.stop()}},hn)}));return function(){return $n.apply(this,arguments)}}(),va=function(){var $n=Object(e.a)(f.a.mark(function hn(){var fn,mn,Kn,Pn,Tr,Pr,mr;return f.a.wrap(function(mi){for(;;)switch(mi.prev=mi.next){case 0:if(Pi&&(Pi.status!==2&&ke.a.publish("update-cost-time")),mi.prev=1,fn=Ot.courseId&&Ot.exerciseId?{exercise_id:Ot.exerciseId}:{},!(Ct.get("ip_limit")==="inner"||Ct.get("ip_bind")==="true")){mi.next=7;break}return mi.next=6,Object(Ra.a)({ip_limit:Ct.get("ip_limit"),ip_bind:Ct.get("ip_bind")==="true"});case 6:mn=mi.sent;case 7:zi!=null&&zi.identifier&&(Tr=Object(t.a)({path:Tn.current.codeRepData.currentPath,evaluate:0,content:(Kn=Tn.current.codeRepData)===null||Kn===void 0?void 0:Kn.content,game_id:Pi.id,tab_type:(Pn=Sn.current)===null||Pn===void 0?void 0:Pn.tab_type,ip:mn},fn),Pr={type:"application/json"},mr=new Blob([JSON.stringify(Tr)],Pr),window.navigator.sendBeacon("".concat(an.a.API_SERVER,"/api/myshixuns/").concat(zi==null?void 0:zi.identifier,"/update_file.json"),mr)),mi.next=12;break;case 10:mi.prev=10,mi.t0=mi.catch(1);case 12:case"end":return mi.stop()}},hn,null,[[1,10]])}));return function(){return $n.apply(this,arguments)}}();Object(h.useEffect)(function(){var $n=ke.a.subscribe("exercise-data",function(hn){Bt.current=hn});return function(){$n()}},[location]);var Ga=Object(h.useCallback)(Object(e.a)(f.a.mark(function $n(){var hn,fn,mn,Kn,Pn;return f.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,Object(Ee.H)(Pi.identifier);case 2:if(hn=Pr.sent,fn=hn.test_sets,mn=hn.message,Kn=hn.status,!(Kn===-1)){Pr.next=7;break}return mn.info(mn),Pr.abrupt("return");case 7:Pn=wt.user.grade,wt.user.grade=Pn-Br.score*2,wt.test_sets=fn,wt.game.test_sets_view=!0,mt({type:q.X,payload:{taskData:wt}});case 12:case"end":return Pr.stop()}},$n)})),[Pi,Br,mt]);function Va($n){var hn=wt.user.grade;wt.user.grade=hn-$n,mt({type:q.X,payload:{taskData:wt}})}Vt.current=function(){Et.moveX=Et.moveX!==.01?.01:"40%",mt({type:q.t,payload:Et.moveX})};function $i(){document.onselectstart=function(){return!1},Xt.current=!0,Object(De.V)("none"),mt({type:q.V,payload:!0})}function Rs(){document.onselectstart=function(){return!1},tn.current=!0,Object(De.V)("none"),mt({type:q.V,payload:!0})}function Xo($n){$n===.01?mt({type:q.u,payload:0}):mt({type:q.u,payload:.01})}function vs($n){$n===0?mt({type:q.u,payload:"100%"}):mt({type:q.u,payload:0})}function il(){ya()}function ma(){return _s.apply(this,arguments)}function _s(){return _s=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn;return f.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Cn(!0),Pn.next=3,Object(Ee.C)(jt,{path:lo});case 3:if(hn=Pn.sent,fn=hn.content,mn=hn.language,!((hn==null?void 0:hn.status)===-5)){Pn.next=9;break}return l.a.info({title:"\u63D0\u793A",maskClosable:!0,icon:null,width:700,centered:!0,content:u.a.createElement("div",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u8003\u8BD5\uFF08",u.a.createElement("a",{href:"/classrooms/".concat(hn==null?void 0:hn.course_identifier,"/exercise/").concat(hn==null?void 0:hn.exercise_id,"/detail")},hn==null?void 0:hn.exercise_name),"\uFF09\u4E2D\u88AB\u4F7F\u7528\uFF0C\u7528\u6237\u8BD5\u5377\u5DF2\u4EA4\u5377\uFF0C\u7981\u6B62\u518D\u4F5C\u7B54\uFF01")}),Cn(!1),Pn.abrupt("return",Promise.reject());case 9:mt({type:q.h,payload:Object(t.a)(Object(t.a)({},Ln),{},{content:fn,language:mn,lastedUpdateTime:0})}),Cn(!1);case 11:case"end":return Pn.stop()}},$n)})),_s.apply(this,arguments)}function $o(){return Ds.apply(this,arguments)}function Ds(){return Ds=Object(e.a)(f.a.mark(function $n(){var hn,fn;return f.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.next=2,Object(Ee.A)(wt==null||((hn=wt.myshixun)===null||hn===void 0)?void 0:hn.identifier,{});case 2:if(fn=Kn.sent,!((fn==null?void 0:fn.status)===-5)){Kn.next=6;break}return l.a.info({title:"\u63D0\u793A",maskClosable:!0,icon:null,width:700,centered:!0,content:u.a.createElement("div",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u8003\u8BD5\uFF08",u.a.createElement("a",{href:"/classrooms/".concat(fn==null?void 0:fn.course_identifier,"/exercise/").concat(fn==null?void 0:fn.exercise_id,"/detail")},fn==null?void 0:fn.exercise_name),"\uFF09\u4E2D\u88AB\u4F7F\u7528\uFF0C\u7528\u6237\u8BD5\u5377\u5DF2\u4EA4\u5377\uFF0C\u7981\u6B62\u518D\u4F5C\u7B54\uFF01")}),Kn.abrupt("return",Promise.reject());case 6:return no(),Kn.abrupt("return",fn);case 8:case"end":return Kn.stop()}},$n)})),Ds.apply(this,arguments)}function al(){return Is.apply(this,arguments)}function Is(){return Is=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn;return f.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Pn.next=2,Object(Ee.B)(jt,{path:lo});case 2:if(hn=Pn.sent,fn=hn.content,mn=hn.language,!((hn==null?void 0:hn.status)===-5)){Pn.next=7;break}return l.a.info({title:"\u63D0\u793A",maskClosable:!0,icon:null,width:700,centered:!0,content:u.a.createElement("div",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u8003\u8BD5\uFF08",u.a.createElement("a",{href:"/classrooms/".concat(hn==null?void 0:hn.course_identifier,"/exercise/").concat(hn==null?void 0:hn.exercise_id,"/detail")},hn==null?void 0:hn.exercise_name),"\uFF09\u4E2D\u88AB\u4F7F\u7528\uFF0C\u7528\u6237\u8BD5\u5377\u5DF2\u4EA4\u5377\uFF0C\u7981\u6B62\u518D\u4F5C\u7B54\uFF01")}),Pn.abrupt("return");case 7:mt({type:q.h,payload:Object(t.a)(Object(t.a)({},Ln),{},{content:fn,language:mn,lastedUpdateTime:0,loading:!1})});case 8:case"end":return Pn.stop()}},$n)})),Is.apply(this,arguments)}function Dl(){return hs.apply(this,arguments)}function hs(){return hs=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn;return f.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Pn.next=2,Object(Ee.w)(jt);case 2:hn=Pn.sent,fn=hn.praise_count,mn=hn.praise,wt.praise_count=fn,wt.user_praise=mn,mt({type:q.X,payload:{taskData:wt}});case 7:case"end":return Pn.stop()}},$n)})),hs.apply(this,arguments)}var pl=Object(h.useCallback)(function($n){function hn(mn){return fn.apply(this,arguments)}function fn(){return fn=Object(e.a)(f.a.mark(function mn(Kn){return f.a.wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:try{window.navigator.sendBeacon("".concat(an.a.API_SERVER,"/api/tasks/").concat(jt,"/cost_time.json?time=").concat(Kn),JSON.stringify({}))}catch(Pr){}case 1:case"end":return Tr.stop()}},mn)})),fn.apply(this,arguments)}hn($n)},[jt]);function Il($n){return zs.apply(this,arguments)}function zs(){return zs=Object(e.a)(f.a.mark(function $n(hn){return f.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,Object(Ee.D)(jt,Jr.id,hn);case 2:wt.game.star=hn,mt({type:q.X,payload:{taskData:wt}});case 4:case"end":return mn.stop()}},$n)})),zs.apply(this,arguments)}function ai(){return co.apply(this,arguments)}function co(){return co=Object(e.a)(f.a.mark(function $n(){var hn,fn;return f.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(cr){Kn.next=8;break}return Kn.next=3,Object(Ee.k)(zi.identifier);case 3:hn=Kn.sent,fn=hn.trees,mt({type:q.F,payload:{showDocuments:!0,repos:Object(Dt.c)(fn)}}),Kn.next=9;break;case 8:mt({type:q.H,payload:!0});case 9:case"end":return Kn.stop()}},$n)})),co.apply(this,arguments)}function Ya($n){return To.apply(this,arguments)}function To(){return To=Object(e.a)(f.a.mark(function $n(hn){var fn,mn,Kn;return f.a.wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:return fn=hn.props,mn=fn.children,Kn=fn.eventKey,Tr.abrupt("return",new Promise(function(){var Pr=Object(e.a)(f.a.mark(function mr(Gr){var mi,ho,ro;return f.a.wrap(function(as){for(;;)switch(as.prev=as.next){case 0:return mn&&mn.length>0&&Gr(),as.next=3,Object(Ee.k)(zi.identifier,{path:Kn});case 3:mi=as.sent,ho=mi.trees,ro=Object(Dt.e)(cr,Kn,Object(Dt.c)(ho,Kn)),mt({type:q.F,payload:{repos:Object(I.a)(ro)}}),Gr();case 8:case"end":return as.stop()}},mr)}));return function(mr){return Pr.apply(this,arguments)}}()));case 2:case"end":return Tr.stop()}},$n)})),To.apply(this,arguments)}function kl(){mt({type:q.H,payload:!1})}function zo($n){var hn=$n.gold,fn=$n.experience,mn=$n.next_game,Kn=$n.next_shixun,Pn=$n.subject_done,Tr=Object(s.a)($n,["gold","experience","next_game","next_shixun","subject_done"]);if(!$n.challenge_chooses_count)return;var Pr=Tr.challenge_chooses_count===Tr.choose_correct_num,mr={had_submmit:!0,test_sets:Tr.test_sets,challenge_chooses_count:Tr.challenge_chooses_count,choose_correct_num:Tr.choose_correct_num};wt.choose_test_cases=mr,Pr&&(wt.game.status=2,wt.next_game=mn,wt.user.grade+=hn),Pr&&Pi.status!==2&&ke.a.publish("update-cost-time"),mt({type:q.X,payload:{taskData:wt,evalData:{gold:hn,experience:fn,next_game:mn,next_shixun:Kn,subject_done:Pn},showEvalResult:Pr}}),ke.a.publish("eval-code-finish")}function Kl(){return ol.apply(this,arguments)}function ol(){return ol=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn,Kn,Pn,Tr,Pr,mr,Gr,mi,ho,ro,bs,as,Aa,yl,Hi,Fl,Ql,os,jl,Ls;return f.a.wrap(function(ui){for(;;)switch(ui.prev=ui.next){case 0:return ui.prev=0,mt({type:q.M}),ui.next=4,ya(1);case 4:if(mn=ui.sent,Kn=mn.resubmit,Pn=mn.sec_key,Tr=mn.content_modified,!(mn.status===-5&&typeof(mn==null?void 0:mn.message)=="object")){ui.next=9;break}return Object(x.c)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:Object(t.a)(Object(t.a)({},((Pr=Bt.current)===null||Pr===void 0?void 0:Pr.exercise)||{}),{},{errorMessage:mn==null?void 0:mn.message,exercise_user_id:(mr=Bt.current)===null||mr===void 0||((Gr=mr.exercise)===null||Gr===void 0)?void 0:Gr.exercise_user_id,id:Ct.get("exercisesId")})}}),ui.abrupt("return");case 9:if(!(mn.status&&mn.status<0)){ui.next=13;break}return ke.a.publish("eval-code-finish"),mt({type:q.X,payload:{evaluateLoading:!1}}),ui.abrupt("return");case 13:return mi={sec_key:Pn,resubmit:Kn,first:1,content_modified:Tr,shixun_environment_id:wi,tab_type:zr},Ct.get("type")==="exercises"?mi.extras={exercise_id:Ct.get("exercisesId"),question_id:Ct.get("questionId"),challenge_id:(ho=wt.challenge)===null||ho===void 0?void 0:ho.id,subject_id:Ct.get("subject_id")||"",commitID:mn==null||((ro=mn.content)===null||ro===void 0)?void 0:ro.commitID}:Ot.courseId&&Ot.homeworkId?mi.extras={homework_common_id:Ot.homeworkId,commitID:mn==null||((bs=mn.content)===null||bs===void 0)?void 0:bs.commitID}:mi.extras={commitID:mn==null||((as=mn.content)===null||as===void 0)?void 0:as.commitID},ui.next=17,Object(Ee.d)(jt,mi);case 17:if(Aa=ui.sent,!(Aa!=null&&(hn=Aa.data)!==null&&hn!==void 0&&(fn=hn.data_list)!==null&&fn!==void 0&&fn.length)){ui.next=21;break}return ke.a.publish("pod-restrict-data",{identifier:Aa==null||((yl=Aa.data)===null||yl===void 0)?void 0:yl.identifier,data_list:Aa==null||((Hi=Aa.data)===null||Hi===void 0)?void 0:Hi.data_list}),ui.abrupt("return");case 21:if(!(Aa.status===-1&&Ct.get("type")==="exercises")){ui.next=24;break}return window.parent.location.href="/classrooms/".concat(Ct.get("coursesId"),"/exercise/").concat(Ct.get("exercisesId"),"/detail"),ui.abrupt("return");case 24:return Aa.status===1&&(Ls=function(){return Ls=Object(e.a)(f.a.mark(function Jl(El,Ys,m){var A,H,K,G,ee,ye,Oe,Pe,He,ct,_t,Wt,Mt,rn;return f.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:return H=m++*El,H/1e3>Ys&&(os=!0),On.next=4,Object(Ee.q)(jt,{resubmit:Kn,time_out:os,port:Aa.port,sec_key:Pn,challenge_id:wt==null||((A=wt.challenge)===null||A===void 0)?void 0:A.id,subject_id:Ct.get("subject_id")||""});case 4:K=On.sent,G=K,ee=G.status,ye=G.running_code_message,Oe=G.port,Pe=G.web_route,mt({type:q.E,payload:ye}),+ee>-1||H/1e3>Ys?(Pi.status!==2&&ee===2&&(wt.game.status=2,wt.user.grade+=G.gold,ke.a.publish("update-cost-time")),wt.test_sets=G.test_sets||[],wt.last_compile_output=G.last_compile_output,wt.test_sets_count=G.test_sets_count,wt.sets_error_count=G.sets_error_count,wt.record_consume_time=G.record_consume_time,wt.next_game=G.next_game,wt.prev_game=G.prev_game,wt.game_report_id=G.game_report_id,He="",ct=oa.indexOf("Web")!==-1||oa.indexOf("JFinal")!==-1,ct&&Oe!=-1&&Pe&&(He="".concat(Do,":").concat(Oe,"/").concat(Pe)),_t=Object(Dt.d)(G.test_sets),Wt=G.picture>0&&_t,Mt=ee===2&&!os,os?p.b.info("\u672C\u6B21\u8BC4\u6D4B\u8D85\u65F6"):Mt||p.b.info("\u8BC4\u6D4B\u672A\u901A\u8FC7\uFF0C\u8BE6\u60C5\u53C2\u89C1\u201C\u6D4B\u8BD5\u7ED3\u679C\u201D"),rn={taskData:wt,evalData:{gold:G.gold,experience:G.experience,next_game:G.next_game,next_shixun:G.next_shixun},evaluateLoading:!1,evaluateMessage:"",webDisplayUrl:He,showPictureView:to||zr===5?!1:G.picture>0&&ee!==2,isPictureView:Wt},to&&Io||zr===5?(ke.a.publish("evaluate-unity3d-result",{state:"user",data:{user:xi}}),ke.a.publish("evaluate-unity3d-finish"),(ds||_t)&&ke.a.publish("evaluate-unity3d-result",G.unity_3d_result)):rn.showEvalResult=Mt,mt({type:q.X,payload:rn}),ke.a.publish("eval-code-finish")):setTimeout(function(){jl(El,Br.exec_time+11,m++)},El);case 9:case"end":return On.stop()}},Jl)})),Ls.apply(this,arguments)},jl=function(Jl,El,Ys){return Ls.apply(this,arguments)},Fl=1,Ql=1e3,os=!1,jl(Ql,Br.exec_time+11,Fl++)),ui.abrupt("return",res);case 28:ui.prev=28,ui.t0=ui.catch(0),console.log("-------eval code",ui.t0);case 31:case"end":return ui.stop()}},$n,null,[[0,28]])})),ol.apply(this,arguments)}function Ll($n){mt({type:q.d,payload:{content:$n,lastedUpdateTime:new Date().getTime()}})}function Zl(){mt({type:q.o})}function Hl(){mt({type:q.q})}function Wl(){mt({type:q.P})}function Xl(){mt({type:q.O})}function Ml($n,hn){return ks.apply(this,arguments)}function ks(){return ks=Object(e.a)(f.a.mark(function $n(hn,fn){var mn,Kn;return f.a.wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:mn=fn.node,mn.isLeaf&&(Kn=hn[0],Gs(Kn));case 2:case"end":return Tr.stop()}},$n)})),ks.apply(this,arguments)}function Gs($n){return Pl.apply(this,arguments)}function Pl(){return Pl=Object(e.a)(f.a.mark(function $n(hn){var fn;return f.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Cn(!0),Kn.next=3,ya();case 3:fn=Kn.sent,fn!=null&&fn.content||fn===!0?mt({type:q.d,payload:{currentPath:hn}}):(l.a.warn({title:"\u6587\u4EF6\u5207\u6362\u5931\u8D25",centered:!0,content:"\u5F53\u524D\u6587\u4EF6\u5185\u5BB9\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5207\u6362\u6587\u4EF6",okText:"\u786E\u5B9A"}),Cn(!1));case 5:case"end":return Kn.stop()}},$n)})),Pl.apply(this,arguments)}function zl(){wt.myshixun.system_tip=!0,mt({type:q.X,payload:{taskData:wt,showNotice:!1}})}function ql($n,hn){wt.challenge.path=$n,wt.myshixun.system_tip=!1,mt({type:q.X,payload:{taskData:Object(t.a)(Object(t.a)({},wt),{},{tpm_cases_modified:!1,tpm_modified:!1,tpm_script_modified:!1}),showNotice:!1,timestamp:hn}})}function $l(){mt({type:q.p})}function eu(){return Nl.apply(this,arguments)}function Nl(){return Nl=Object(e.a)(f.a.mark(function $n(){var hn,fn;return f.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.next=2,Object(Ee.z)(wt==null||((hn=wt.myshixun)===null||hn===void 0)?void 0:hn.identifier,{game_id:wt==null?void 0:wt.game.id,shixun_environment_id:wi,tab_type:zr,all_reset:1});case 2:if(fn=Kn.sent,!((fn==null?void 0:fn.status)===0)){Kn.next=5;break}return Kn.abrupt("return",fn);case 5:return Kn.abrupt("return",Promise.reject());case 6:case"end":return Kn.stop()}},$n)})),Nl.apply(this,arguments)}function Gl(){return Ul.apply(this,arguments)}function Ul(){return Ul=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn,Kn,Pn,Tr,Pr;return f.a.wrap(function(Gr){for(;;)switch(Gr.prev=Gr.next){case 0:if(mt({type:q.J,payload:!0}),hn=function(){var mi=Object(e.a)(f.a.mark(function ho(){var ro,bs;return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return Aa.next=2,Object(Ee.z)(wt==null||((ro=wt.myshixun)===null||ro===void 0)?void 0:ro.identifier,{game_id:wt==null?void 0:wt.game.id,shixun_environment_id:wi,tab_type:zr});case 2:return bs=Aa.sent,Aa.abrupt("return",bs);case 4:case"end":return Aa.stop()}},ho)}));return function(){return mi.apply(this,arguments)}}(),!(zr===2)){Gr.next=8;break}return ke.a.publish("vnc-reseting"),Gr.next=6,hn();case 6:fn=Gr.sent,fn.status===0&&ke.a.publish("vnc-reseting-done",fn);case 8:if(!(zr===3)){Gr.next=14;break}return ke.a.publish("vnc-reset-".concat(_r)),Gr.next=12,hn();case 12:mn=Gr.sent,mn.status===0&&ke.a.publish("reset-linux-windows-vnc-".concat(_r));case 14:if(!(zr===4)){Gr.next=19;break}return Gr.next=17,hn();case 17:Kn=Gr.sent,Kn.status===0&&(Pn=_r.split("-")[0],Tr=zn.map(function(mi){var ho;return(ho=mi.index_tab)!==null&&ho!==void 0&&ho.includes(Pn)?Object(t.a)(Object(t.a)({},mi),{},{active:mi.index_tab===_r,resetKey:mi.index_tab===_r?mi.resetKey+1:mi.resetKey}):mi}),En(Tr));case 19:if(!(zr===5)){Gr.next=25;break}return ke.a.publish("unity3d-reset","start"),Gr.next=23,hn();case 23:Pr=Gr.sent,Pr.status===0&&ke.a.publish("unity3d-reset","done");case 25:mt({type:q.J,payload:!1});case 26:case"end":return Gr.stop()}},$n)})),Ul.apply(this,arguments)}function tu(){return ml.apply(this,arguments)}function ml(){return ml=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn,Kn,Pn;return f.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:if(mt({type:q.J,payload:!0}),hn=function(){var mr=Object(e.a)(f.a.mark(function Gr(){var mi;return f.a.wrap(function(ro){for(;;)switch(ro.prev=ro.next){case 0:return ro.next=2,Object(Ee.y)(wt==null?void 0:wt.game.identifier,{shixun_environment_id:wi,tab_type:zr});case 2:return mi=ro.sent,ro.abrupt("return",mi);case 4:case"end":return ro.stop()}},Gr)}));return function(){return mr.apply(this,arguments)}}(),!(zr===3)){Pr.next=9;break}return ke.a.publish("vnc-reset-".concat(_r),"\u91CD\u542F\u4E2D"),Pr.next=6,hn();case 6:fn=Pr.sent,fn.status===0&&ke.a.publish("reset-linux-windows-vnc-".concat(_r)),ke.a.publish("vnc-reset-".concat(_r),"\u53D6\u6D88");case 9:if(!(zr===4)){Pr.next=14;break}return Pr.next=12,hn();case 12:mn=Pr.sent,mn.status===0&&(Kn=_r.split("-")[0],Pn=zn.map(function(mr){var Gr;return(Gr=mr.index_tab)!==null&&Gr!==void 0&&Gr.includes(Kn)?Object(t.a)(Object(t.a)({},mr),{},{active:mr.index_tab===_r,resetKey:mr.index_tab===_r?mr.resetKey+1:mr.resetKey}):mr}),En(Pn),console.log(Pn));case 14:mt({type:q.J,payload:!1});case 15:case"end":return Pr.stop()}},$n)})),ml.apply(this,arguments)}function gl($n){return vl.apply(this,arguments)}function vl(){return vl=Object(e.a)(f.a.mark(function $n(hn){var fn,mn,Kn,Pn,Tr,Pr;return f.a.wrap(function(Gr){for(;;)switch(Gr.prev=Gr.next){case 0:if(fn=hn.GameState,mn=hn.Data,Kn=hn.challenge,!(Kn==="info")){Gr.next=5;break}ke.a.publish("evaluate-unity3d-result",{state:"3d_callback",data:{challenge_info:Object(t.a)({},wt.challenge)}}),Gr.next=15;break;case 5:if(!(fn==="Success")){Gr.next=15;break}if(!(ds||!Io)){Gr.next=14;break}return Gr.next=9,Object(Ee.E)(jt,Xr.Base64.encode(jt+new Date().getTime()),mn);case 9:Pn=Gr.sent,Tr=Pn.status,Pr=Pn.data,Tr==0&&(Pi.status!==2&&(wt.game.status=2,wt.user.grade+=Pr.gold,ke.a.publish("update-cost-time")),ke.a.publish("evaluate-unity3d-result",{state:"userAndtime",data:{user:xi,open_time:Pr.open_time,end_time:Pr.end_time}}),mt({type:q.X,payload:{taskData:wt,evalData:{gold:Pr.gold,experience:Pr.experience,next_game:Pr.next_game},evaluateLoading:!1,showEvalResult:!0}})),Gr.next=15;break;case 14:mt({type:q.N});case 15:case"end":return Gr.stop()}},$n)})),vl.apply(this,arguments)}function nu(){return _l.apply(this,arguments)}function _l(){return _l=Object(e.a)(f.a.mark(function $n(){var hn,fn,mn;return f.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Pn.next=2,Object(Ee.b)(wt==null||((hn=wt.myshixun)===null||hn===void 0)?void 0:hn.identifier,{game_id:wt==null||((fn=wt.game)===null||fn===void 0)?void 0:fn.id,shixun_environment_id:wi,tab_type:zr});case 2:if(mn=Pn.sent,!((mn==null?void 0:mn.status)===0)){Pn.next=5;break}return Pn.abrupt("return",mn);case 5:return Pn.abrupt("return",Promise.reject());case 6:case"end":return Pn.stop()}},$n)})),_l.apply(this,arguments)}var Vs=(qe={game:Pi,taskId:jt,user_praise:wo,praise_count:Ni,st:ti,challenge:Br,rank_name:wt.rank_name,shixun:Jr,is_teacher:Ta,has_answer:Fi,unity_3d_routes:to,with_code_file:Io,onGetUnity3dMessage:gl},Object(a.a)(qe,"taskId",jt),Object(a.a)(qe,"myshixun",zi),Object(a.a)(qe,"user",xi),Object(a.a)(qe,"discusses_count",Na),Object(a.a)(qe,"onPlusOrCancelPraise",Dl),Object(a.a)(qe,"minuxUserGrade",Va),Object(a.a)(qe,"taskData",wt),Object(a.a)(qe,"chatgpt",rr),Object(a.a)(qe,"to_user_id",Xi),qe),Vl={showNotice:pa||(Ua||Zo)&&zi.system_tip===!1,tpm_cases_modified:Ua,tpm_modified:_o,tpm_script_modified:So,st:ti,taskId:jt,myshixunId:(zi||{}).id,onNextCallback:zl,onUpdateCallback:ql,onUpdateFailure:$l},bl=Object(t.a)(Object(t.a)({},qn),{},{isPictureView:dr,history,webDisplayUrl:Cr,onShowPictureView:Wl,star:Pi&&Pi.star,onStarChange:Il,onCloseResult:Zl}),Yl={lastedGetTaskInfoTime:Qr,isEditPath:Vi,taskData:wt,codeRepData:Ln,moveY:nn,evaluateMessage:An,evaluateLoading:Wn,isNotice:uo,isHtml:Wo,onChangePath:Gs,onResizeSetContainer:Xo,onEditRepCode:Ll,onUpdateCode:ya,onResizeYStart:Rs,onShowDir:ai,onResetCode:ma,onResetGitCode:$o,onResizeCodeArea:vs,onResetPassedCode:al,onFinishDisplayHtml:il,onShowNotice:Xl};return u.a.createElement(h.Fragment,null,gn?u.a.createElement(ne.a,{message:"\u52AA\u529B\u8BF7\u6C42\u6570\u636E\u4E2D..",className:"tpi-spin"}):u.a.createElement(h.Fragment,null,u.a.createElement("div",{className:"task-wrapper"},kr&&u.a.createElement("div",{style:{cursor:Xt.current?"ew-resize":tn.current?"ns-resize":"initial"},className:"dragging-mask"}),u.a.createElement(Dr,{difficulty:Br==null?void 0:Br.difficulty,mirror_description:Fa,history,git_url:Ur,shixun:Jr,taskData:wt,lastedGetTaskInfoTime:Qr,onAddVncTime:nu,taskId:jt,isNotice:uo,resetVncLoading:ei,onResetVnc:Gl,onRestartReboot:tu,onResetGitCode:$o,onResetCode:ma,toolbarItem:ki,onShowNotice:Xl,game:Pi,user:xi,myshixun:zi,st:ti,mirror_name:oa,mirror_description_multi:Uo,onUpdateCode:ya,onUpdateCostTime:pl,onResetAllVnc:eu,unity_3d_routes:to&&!Io}),u.a.createElement("div",{className:"tasks-body"},u.a.createElement("section",{id:"task-left-panel",className:"left-panel ".concat(wt!=null&&wt.hideLeftPanel?"hide":""," "),style:{width:qo,display:un===.01?"none":""}},u.a.createElement(Lt,Vs)),u.a.createElement("section",{className:"resize-x-bar ".concat(wt!=null&&wt.hideLeftPanel?"hide":""," ").concat(un===.01?"cursorDefault":""),onMouseDown:$i},u.a.createElement("a",{onMouseDown:function(hn){hn.stopPropagation(),Vt.current()},className:"trapezoid ".concat(un===.01?"enlarge":"")},u.a.createElement("img",{src:un===.01?eo.a:Ts.a,alt:"resize-icon",width:20}))),u.a.createElement("section",{id:"task-right-panel",className:"right-panel",style:{width:Gi}},(Br==null?void 0:Br.show_type)===7?u.a.createElement(Ci.default,{taskId:jt,taskData:wt,onEditRepCode:Ll}):u.a.createElement(h.Fragment,null,ti===0&&u.a.createElement(rs,Object(i.a)({},at,Yl,{_dispatch:mt,taskData:wt,unity_3d_routes:to,onGetUnity3dMessage:gl,onUpdateCode:ya,evaluateMessage:An,language:ii,evaluateLoading:Wn,with_code_file:Io,onEval:Kl,tabActiveParams:on,setTabActiveParams:Yt,tabs:zn,codeLoading:_n,setTabs:En,setCodeLoading:Cn})),ti===1&&u.a.createElement(ar,Object(i.a)({_dispatch:mt,onEval:zo},Yl)))))),u.a.createElement(Ne.a,null,kn&&u.a.createElement(xa,bl),u.a.createElement(T.a,{className:"setting-drawer",title:null,placement:"right",width:400,closable:!1,visible:ur,onClose:kl},u.a.createElement(g.a,{spinning:_n},u.a.createElement(Xs,{className:"dir-tree",selectedKeys:["".concat(lo)],treeData:cr,onSelect:Object(ir.throttle)(Ml,2e3),loadData:Ya}))),Oi&&u.a.createElement(us,{taskId:jt,onHidePictureView:Hl}),u.a.createElement(vo,Vl))),u.a.createElement(cs,{successCb:Kl}))};function Ui(Se){var qe=Se.is_teacher,at=Se.score;return u.a.createElement(h.Fragment,null,qe?u.a.createElement(h.Fragment,null,u.a.createElement("div",null,"\u5DF2\u7ECF\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u514D\u91D1\u5E01\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u3002"),u.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(at*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")),u.a.createElement("a",{href:"/account/certification",class:"to-certification-link",target:"_blank"},"\u7ACB\u5373\u8BA4\u8BC1")):u.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(at*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")))}},ynwM:function(j,W,y){var I=y("MFOe"),v=I.Global;j.exports={name:"oldFF-globalStorage",read:b,write:g,each:s,remove:_,clearAll:p};var T=v.globalStorage;function b(e){return T[e]}function g(e,a){T[e]=a}function s(e){for(var a=T.length-1;a>=0;a--){var n=T.key(a);e(T[n],n)}}function _(e){return T.removeItem(e)}function p(){s(function(e,a){delete T[e]})}},yqJW:function(j,W,y){},yslc:function(j,W){j.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},zJix:function(j,W,y){j.exports={"test-set-container":"test-set-container___1ntSt","resize-y-bar":"resize-y-bar___1H5tU","code-area-container":"code-area-container___3jW3-","xterm-panel":"xterm-panel___34hmU","xterm-rows":"xterm-rows___1CWkx",xterm:"xterm___3izNA","xterm-screen":"xterm-screen___1ZnA6",navs:"navs___zbATm","arrow-right":"arrow-right___135_M","arrow-down":"arrow-down___8TNRj","flex-container":"flex-container___3V3ix",iconfont:"iconfont___3rTTR",active:"active___1saNv","action-bar-container":"action-bar-container___399DC","action-bar":"action-bar___1-saI","right-panel":"right-panel___3orFe","action-container":"action-container___1opPs","setting-drawer":"setting-drawer___1NgWi",oj:"oj___23iIP",spinning:"spinning___3QOJ5"}},zkdm:function(j,W,y){}}]);