(window.webpackJsonp=window.webpackJsonp||[]).push([[182,3,5,6,7,8,9,10,16,18],{"+NIl":function(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){"use strict";ue.defineMode("stex",function(Y,P){"use strict";function y(u,o){u.cmdState.push(o)}function E(u){return u.cmdState.length>0?u.cmdState[u.cmdState.length-1]:null}function _(u){var o=u.cmdState.pop();o&&o.closeBracket()}function C(u){for(var o=u.cmdState,f=o.length-1;f>=0;f--){var d=o[f];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function m(u,o,f){return function(){this.name=u,this.bracketNo=0,this.style=o,this.styles=f,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var c={};c.importmodule=m("importmodule","tag",["string","builtin"]),c.documentclass=m("documentclass","tag",["","atom"]),c.usepackage=m("usepackage","tag",["atom"]),c.begin=m("begin","tag",["atom"]),c.end=m("end","tag",["atom"]),c.label=m("label","tag",["atom"]),c.ref=m("ref","tag",["atom"]),c.eqref=m("eqref","tag",["atom"]),c.cite=m("cite","tag",["atom"]),c.bibitem=m("bibitem","tag",["atom"]),c.Bibitem=m("Bibitem","tag",["atom"]),c.RBibitem=m("RBibitem","tag",["atom"]),c.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function r(u,o){u.f=o}function n(u,o){var f;if(u.match(/^\\[a-zA-Z@]+/)){var d=u.current().slice(1);return f=c.hasOwnProperty(d)?c[d]:c.DEFAULT,f=new f,y(o,f),r(o,s),f.style}if(u.match(/^\\[$&%#{}_]/))return"tag";if(u.match(/^\\[,;!\/\\]/))return"tag";if(u.match("\\["))return r(o,function(h,g){return e(h,g,"\\]")}),"keyword";if(u.match("\\("))return r(o,function(h,g){return e(h,g,"\\)")}),"keyword";if(u.match("$$"))return r(o,function(h,g){return e(h,g,"$$")}),"keyword";if(u.match("$"))return r(o,function(h,g){return e(h,g,"$")}),"keyword";var a=u.next();if(a=="%")return u.skipToEnd(),"comment";if(a=="}"||a=="]"){if(f=E(o),f)f.closeBracket(a),r(o,s);else return"error";return"bracket"}else return a=="{"||a=="["?(f=c.DEFAULT,f=new f,y(o,f),"bracket"):/\d/.test(a)?(u.eatWhile(/[\w.%]/),"atom"):(u.eatWhile(/[\w\-_]/),f=C(o),f.name=="begin"&&(f.argument=u.current()),f.styleIdentifier())}function e(u,o,f){if(u.eatSpace())return null;if(f&&u.match(f))return r(o,n),"keyword";if(u.match(/^\\[a-zA-Z@]+/))return"tag";if(u.match(/^[a-zA-Z]+/))return"variable-2";if(u.match(/^\\[$&%#{}_]/))return"tag";if(u.match(/^\\[,;!\/]/))return"tag";if(u.match(/^[\^_&]/))return"tag";if(u.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(u.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=u.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(u.skipToEnd(),"comment"):"error"}function s(u,o){var f=u.peek(),d;return f=="{"||f=="["?(d=E(o),d.openBracket(f),u.eat(f),r(o,n),"bracket"):/[ \t\r]/.test(f)?(u.eat(f),null):(r(o,n),_(o),n(u,o))}return{startState:function(){var u=P.inMathMode?function(o,f){return e(o,f)}:n;return{cmdState:[],f:u}},copyState:function(u){return{cmdState:u.cmdState.slice(),f:u.f}},token:function(u,o){return o.f(u,o)},blankLine:function(u){u.f=n,u.cmdState.length=0},lineComment:"%"}}),ue.defineMIME("text/x-stex","stex"),ue.defineMIME("text/x-latex","stex")})},"/GNS":function(Ze,we,M){Ze.exports=M.p+"static/search1.c4136dd4.png"},"06Qe":function(Ze,we,M){var ue=M("ItGF"),Y="urn:schemas-microsoft-com:vml",P=typeof window=="undefined"?null:window,y=!1,E=P&&P.document;function _(c){return C(c)}var C;if(E&&!ue.canvasSupported)try{!E.namespaces.zrvml&&E.namespaces.add("zrvml",Y),C=function(c){return E.createElement("')}}catch(c){C=function(r){return E.createElement("<"+r+' xmlns="'+Y+'" class="zrvml">')}}function m(){if(y||!E)return;y=!0;var c=E.styleSheets;c.length<31?E.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):c[0].addRule(".zrvml","behavior:url(#default#VML)")}we.doc=E,we.createNode=_,we.initVML=m},"07cG":function(Ze,we,M){Ze.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0s+r":function(Ze,we,M){var ue=M("bYtY"),Y=M("QBsz"),P=M("y23F"),y=M("H6uX"),E=M("YH21"),_=M("C0SR"),C="silent";function m(f,d,a){return{type:f,event:a,target:d.target,topTarget:d.topTarget,cancelBubble:!1,offsetX:a.zrX,offsetY:a.zrY,gestureEvent:a.gestureEvent,pinchX:a.pinchX,pinchY:a.pinchY,pinchScale:a.pinchScale,wheelDelta:a.zrDelta,zrByTouch:a.zrByTouch,which:a.which,stop:c}}function c(){E.stop(this.event)}function r(){}r.prototype.dispose=function(){};var n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=function(f,d,a,h){y.call(this),this.storage=f,this.painter=d,this.painterRoot=h,a=a||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,P.call(this),this.setHandlerProxy(a)};e.prototype={constructor:e,setHandlerProxy:function(f){this.proxy&&this.proxy.dispose(),f&&(ue.each(n,function(d){f.on&&f.on(d,this[d],this)},this),f.handler=this),this.proxy=f},mousemove:function(f){var d=f.zrX,a=f.zrY,h=u(this,d,a),g=this._hovered,p=g.target;p&&!p.__zr&&(g=this.findHover(g.x,g.y),p=g.target);var S=this._hovered=h?{x:d,y:a}:this.findHover(d,a),w=S.target,B=this.proxy;B.setCursor&&B.setCursor(w?w.cursor:"default"),p&&w!==p&&this.dispatchToElement(g,"mouseout",f),this.dispatchToElement(S,"mousemove",f),w&&w!==p&&this.dispatchToElement(S,"mouseover",f)},mouseout:function(f){var d=f.zrEventControl,a=f.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",f),d!=="no_globalout"&&(!a&&this.trigger("globalout",{type:"globalout",event:f}))},resize:function(f){this._hovered={}},dispatch:function(f,d){var a=this[f];a&&a.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(f){var d=this.proxy;d.setCursor&&d.setCursor(f)},dispatchToElement:function(f,d,a){f=f||{};var h=f.target;if(h&&h.silent)return;for(var g="on"+d,p=m(d,f,a);h&&!(h[g]&&(p.cancelBubble=h[g].call(h,p)),h.trigger(d,p),h=h.parent,p.cancelBubble););p.cancelBubble||(this.trigger(d,p),this.painter&&this.painter.eachOtherLayer(function(S){typeof S[g]=="function"&&S[g].call(S,p),S.trigger&&S.trigger(d,p)}))},findHover:function(f,d,a){for(var h=this.storage.getDisplayList(),g={x:f,y:d},p=h.length-1;p>=0;p--){var S;if(h[p]!==a&&!h[p].ignore&&(S=s(h[p],f,d))&&(!g.topTarget&&(g.topTarget=h[p]),S!==C)){g.target=h[p];break}}return g},processGesture:function(f,d){this._gestureMgr||(this._gestureMgr=new _);var a=this._gestureMgr;d==="start"&&a.clear();var h=a.recognize(f,this.findHover(f.zrX,f.zrY,null).target,this.proxy.dom);if(d==="end"&&a.clear(),h){var g=h.type;f.gestureEvent=g,this.dispatchToElement({target:h.target},g,h.event)}}},ue.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(f){e.prototype[f]=function(d){var a=d.zrX,h=d.zrY,g=u(this,a,h),p,S;if((f!=="mouseup"||!g)&&(p=this.findHover(a,h),S=p.target),f==="mousedown")this._downEl=S,this._downPoint=[d.zrX,d.zrY],this._upEl=S;else if(f==="mouseup")this._upEl=S;else if(f==="click"){if(this._downEl!==this._upEl||!this._downPoint||Y.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(p,f,d)}});function s(f,d,a){if(f[f.rectHover?"rectContain":"contain"](d,a)){for(var h=f,g;h;){if(h.clipPath&&!h.clipPath.contain(d,a))return!1;h.silent&&(g=!0),h=h.parent}return g?C:!0}return!1}function u(f,d,a){var h=f.painter;return d<0||d>h.getWidth()||a<0||a>h.getHeight()}ue.mixin(e,y),ue.mixin(e,P);var o=e;Ze.exports=o},"19Vz":function(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){ue.defineOption("placeholder","",function(m,c,r){var n=r&&r!=ue.Init;if(c&&!n)m.on("blur",E),m.on("change",_),m.on("swapDoc",_),ue.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){y(m)}),_(m);else if(!c&&n){m.off("blur",E),m.off("change",_),m.off("swapDoc",_),ue.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),Y(m);var e=m.getWrapperElement();e.className=e.className.replace(" CodeMirror-empty","")}c&&!m.hasFocus()&&E(m)});function Y(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function P(m){Y(m);var c=m.state.placeholder=document.createElement("pre");c.style.cssText="height: 0; overflow: visible",c.style.direction=m.getOption("direction"),c.className="CodeMirror-placeholder CodeMirror-line-like";var r=m.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),c.appendChild(r),m.display.lineSpace.insertBefore(c,m.display.lineSpace.firstChild)}function y(m){setTimeout(function(){var c=!1,r=m.getInputField();r.nodeName=="TEXTAREA"?c=!r.value:m.lineCount()==1&&(c=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),c?P(m):Y(m)},20)}function E(m){C(m)&&P(m)}function _(m){var c=m.getWrapperElement(),r=C(m);c.className=c.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?P(m):Y(m)}function C(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Jh7":function(Ze,we,M){var ue=M("y+Vt"),Y=M("T6xi"),P=ue.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(y,E){Y.buildPath(y,E,!1)}});Ze.exports=P},"1MYJ":function(Ze,we,M){var ue=M("y+Vt"),Y=ue.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var P=this.__dirtyPath,y=this.shape.paths,E=0;E=this._maxSize&&n>0){var s=m.head;m.remove(s),delete c[s.key],r=s.value,this._lastRemovedEntry=s}e?e.value=C:e=new Y(C),e.key=_,m.insertEntry(e),c[_]=e}return r},y.get=function(_){var C=this._map[_],m=this._list;if(C!=null)return C!==m.tail&&(m.remove(C),m.insertEntry(C)),C.value},y.clear=function(){this._list.clear(),this._map={}};var E=P;Ze.exports=E},"1ZF9":function(Ze,we,M){Ze.exports=M.p+"static/Authorize.cc9c212f.png"},"1bdT":function(Ze,we,M){var ue=M("3gBT"),Y=M("H6uX"),P=M("DN4a"),y=M("vWvF"),E=M("bYtY"),_=function(m){P.call(this,m),Y.call(this,m),y.call(this,m),this.id=m.id||ue()};_.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(m,c){switch(this.draggable){case"horizontal":c=0;break;case"vertical":m=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=m,r[5]+=c,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(m,c){},attrKV:function(m,c){if(m==="position"||m==="scale"||m==="origin"){if(c){var r=this[m];r||(r=this[m]=[]),r[0]=c[0],r[1]=c[1]}}else this[m]=c},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(m,c){if(typeof m=="string")this.attrKV(m,c);else if(E.isObject(m))for(var r in m)m.hasOwnProperty(r)&&this.attrKV(r,m[r]);return this.dirty(!1),this},setClipPath:function(m){var c=this.__zr;c&&m.addSelfToZr(c),this.clipPath&&this.clipPath!==m&&this.removeClipPath(),this.clipPath=m,m.__zr=c,m.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var m=this.clipPath;m&&(m.__zr&&m.removeSelfFromZr(m.__zr),m.__zr=null,m.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(m){this.__zr=m;var c=this.animators;if(c)for(var r=0;r")):null:x.match("--")?T(o("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),T(f(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),O.tokenize=o("meta","?>"),"meta"):(r=x.eat("/")?"closeTag":"openTag",O.tokenize=s,"tag bracket");if(D=="&"){var R;return x.eat("#")?x.eat("x")?R=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):R=x.eatWhile(/[\d]/)&&x.eat(";"):R=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),R?"atom":"error"}else return x.eatWhile(/[^&<]/),null}e.isInText=!0;function s(x,O){var T=x.next();if(T==">"||T=="/"&&x.eat(">"))return O.tokenize=e,r=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return r="equals",null;if(T=="<"){O.tokenize=e,O.state=g,O.tagName=O.tagStart=null;var D=O.tokenize(x,O);return D?D+" tag error":"tag error"}else return/[\'\"]/.test(T)?(O.tokenize=u(T),O.stringStartCol=x.column(),O.tokenize(x,O)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(x){var O=function(T,D){for(;!T.eol();)if(T.next()==x){D.tokenize=s;break}return"string"};return O.isInAttribute=!0,O}function o(x,O){return function(T,D){for(;!T.eol();){if(T.match(O)){D.tokenize=e;break}T.next()}return x}}function f(x){return function(O,T){for(var D;(D=O.next())!=null;){if(D=="<")return T.tokenize=f(x+1),T.tokenize(O,T);if(D==">")if(x==1){T.tokenize=e;break}else return T.tokenize=f(x-1),T.tokenize(O,T)}return"meta"}}function d(x,O,T){this.prev=x.context,this.tagName=O,this.indent=x.indented,this.startOfLine=T,(C.doNotIndent.hasOwnProperty(O)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function a(x){x.context&&(x.context=x.context.prev)}function h(x,O){for(var T;;){if(!x.context)return;if(T=x.context.tagName,!C.contextGrabbers.hasOwnProperty(T)||!C.contextGrabbers[T].hasOwnProperty(O))return;a(x)}}function g(x,O,T){return x=="openTag"?(T.tagStart=O.column(),p):x=="closeTag"?S:g}function p(x,O,T){return x=="word"?(T.tagName=O.current(),n="tag",b):C.allowMissingTagName&&x=="endTag"?(n="tag bracket",b(x,O,T)):(n="error",p)}function S(x,O,T){if(x=="word"){var D=O.current();return T.context&&T.context.tagName!=D&&C.implicitlyClosed.hasOwnProperty(T.context.tagName)&&a(T),T.context&&T.context.tagName==D||C.matchClosing===!1?(n="tag",w):(n="tag error",B)}else return C.allowMissingTagName&&x=="endTag"?(n="tag bracket",w(x,O,T)):(n="error",B)}function w(x,O,T){return x!="endTag"?(n="error",w):(a(T),g)}function B(x,O,T){return n="error",w(x,O,T)}function b(x,O,T){if(x=="word")return n="attribute",A;if(x=="endTag"||x=="selfcloseTag"){var D=T.tagName,R=T.tagStart;return T.tagName=T.tagStart=null,x=="selfcloseTag"||C.autoSelfClosers.hasOwnProperty(D)?h(T,D):(h(T,D),T.context=new d(T,D,R==T.indented)),g}return n="error",b}function A(x,O,T){return x=="equals"?l:(C.allowMissing||(n="error"),b(x,O,T))}function l(x,O,T){return x=="string"?i:x=="word"&&C.allowUnquoted?(n="string",b):(n="error",b(x,O,T))}function i(x,O,T){return x=="string"?i:b(x,O,T)}return{startState:function(x){var O={tokenize:e,state:g,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(O.baseIndent=x),O},token:function(x,O){if(!O.tagName&&x.sol()&&(O.indented=x.indentation()),x.eatSpace())return null;r=null;var T=O.tokenize(x,O);return(T||r)&&T!="comment"&&(n=null,O.state=O.state(r||T,x,O),n&&(T=n=="error"?T+" error":n)),T},indent:function(x,O,T){var D=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+_;if(D&&D.noIndent)return ue.Pass;if(x.tokenize!=s&&x.tokenize!=e)return T?T.match(/^(\s*)/)[0].length:0;if(x.tagName)return C.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+_*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/$/,blockCommentStart:"",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(x){x.state==l&&(x.state=b)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var O=[],T=x.context;T;T=T.prev)T.tagName&&O.push(T.tagName);return O.reverse()}}}),ue.defineMIME("text/xml","xml"),ue.defineMIME("application/xml","xml"),ue.mimeModes.hasOwnProperty("text/html")||ue.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Ze,we,M){"use strict";M.d(we,"d",function(){return de}),M.d(we,"b",function(){return mt}),M.d(we,"c",function(){return Ut}),M.d(we,"a",function(){return un});var ue=M("VTBJ"),Y=M("1OyB"),P=M("vuIU"),y=M("JX7q"),E=M("Ji7U"),_=M("LK+K"),C=M("q1tI"),m=M("I8Z2"),c=M("BGR+"),r=M("wx14"),n=M("rePB"),e=M("4IlW"),s=M("2GS6"),u=M("Gytx"),o=M.n(u),f=M("TSYQ"),d=M.n(f),a=M("U8pU"),h=M("ODXe"),g=/iPhone/i,p=/iPod/i,S=/iPad/i,w=/\bAndroid(?:.+)Mobile\b/i,B=/Android/i,b=/\bAndroid(?:.+)SD4930UR\b/i,A=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,l=/Windows Phone/i,i=/\bWindows(?:.+)ARM\b/i,x=/BlackBerry/i,O=/BB10/i,T=/Opera Mini/i,D=/\b(CriOS|Chrome)(?:.+)Mobile/i,R=/Mobile(?:.+)Firefox\b/i;function k(Zt,Mt){return Zt.test(Mt)}function H(Zt){var Mt=Zt||(typeof navigator!="undefined"?navigator.userAgent:""),Tt=Mt.split("[FBAN");if(typeof Tt[1]!="undefined"){var Ct=Tt,Re=Object(h.a)(Ct,1);Mt=Re[0]}if(Tt=Mt.split("Twitter"),typeof Tt[1]!="undefined"){var We=Tt,St=Object(h.a)(We,1);Mt=St[0]}var ft={apple:{phone:k(g,Mt)&&!k(l,Mt),ipod:k(p,Mt),tablet:!k(g,Mt)&&k(S,Mt)&&!k(l,Mt),device:(k(g,Mt)||k(p,Mt)||k(S,Mt))&&!k(l,Mt)},amazon:{phone:k(b,Mt),tablet:!k(b,Mt)&&k(A,Mt),device:k(b,Mt)||k(A,Mt)},android:{phone:!k(l,Mt)&&k(b,Mt)||!k(l,Mt)&&k(w,Mt),tablet:!k(l,Mt)&&!k(b,Mt)&&!k(w,Mt)&&(k(A,Mt)||k(B,Mt)),device:!k(l,Mt)&&(k(b,Mt)||k(A,Mt)||k(w,Mt)||k(B,Mt))||k(/\bokhttp\b/i,Mt)},windows:{phone:k(l,Mt),tablet:k(i,Mt),device:k(l,Mt)||k(i,Mt)},other:{blackberry:k(x,Mt),blackberry10:k(O,Mt),opera:k(T,Mt),firefox:k(R,Mt),chrome:k(D,Mt),device:k(x,Mt)||k(O,Mt)||k(T,Mt)||k(R,Mt)||k(D,Mt)},any:null,phone:null,tablet:null};return ft.any=ft.apple.device||ft.android.device||ft.windows.device||ft.other.device,ft.phone=ft.apple.phone||ft.android.phone||ft.windows.phone,ft.tablet=ft.apple.tablet||ft.android.tablet||ft.windows.tablet,ft}var J=Object(ue.a)(Object(ue.a)({},H()),{},{isMobile:H}),U=J;function K(){}function G(Zt,Mt,Tt){var Ct=Mt||"";return Zt.key||"".concat(Ct,"item_").concat(Tt)}function N(Zt){return"".concat(Zt,"-menu-")}function Q(Zt,Mt){var Tt=-1;C.Children.forEach(Zt,function(Ct){Tt+=1,Ct&&Ct.type&&Ct.type.isMenuItemGroup?C.Children.forEach(Ct.props.children,function(Re){Tt+=1,Mt(Re,Tt)}):Mt(Ct,Tt)})}function X(Zt,Mt,Tt){if(!Zt||Tt.find)return;C.Children.forEach(Zt,function(Ct){if(Ct){var Re=Ct.type;if(!Re||!(Re.isSubMenu||Re.isMenuItem||Re.isMenuItemGroup))return;Mt.indexOf(Ct.key)!==-1?Tt.find=!0:Ct.props.children&&X(Ct.props.children,Mt,Tt)}})}var te=["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"],oe=function(Mt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=Mt&&typeof Mt.getBoundingClientRect=="function"&&Mt.getBoundingClientRect().width;if(Ct){if(Tt){var Re=getComputedStyle(Mt),We=Re.marginLeft,St=Re.marginRight;Ct+=+We.replace("px","")+ +St.replace("px","")}Ct=+Ct.toFixed(6)}return Ct||0},me=function(Mt,Tt,Ct){Mt&&Object(a.a)(Mt.style)==="object"&&(Mt.style[Tt]=Ct)},se=function(){return U.any},_e=M("KQm4"),Ae=M("Ff2n"),Ee=M("i8i4"),pe=M("bdgK"),he=M("uciX"),ie=M("8XRh"),fe={adjustX:1,adjustY:1},ge={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fe,offset:[4,0]}},ce={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fe,offset:[4,0]}},Ie=ge,Fe=0,ke={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},re=function(Mt,Tt,Ct){var Re=N(Tt),We=Mt.getState();Mt.setState({defaultActiveFirst:Object(ue.a)(Object(ue.a)({},We.defaultActiveFirst),{},Object(n.a)({},Re,Ct))})},F=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(Ct){var Re;Object(Y.a)(this,Tt),Re=Mt.call(this,Ct),Re.onDestroy=function(bt){Re.props.onDestroy(bt)},Re.onKeyDown=function(bt){var Ht=bt.keyCode,Gt=Re.menuInstance,xn=Re.props,vn=xn.isOpen,sr=xn.store;if(Ht===e.a.ENTER)return Re.onTitleClick(bt),re(sr,Re.props.eventKey,!0),!0;if(Ht===e.a.RIGHT)return vn?Gt.onKeyDown(bt):(Re.triggerOpenChange(!0),re(sr,Re.props.eventKey,!0)),!0;if(Ht===e.a.LEFT){var xr;if(vn)xr=Gt.onKeyDown(bt);else return;return xr||(Re.triggerOpenChange(!1),xr=!0),xr}return vn&&(Ht===e.a.UP||Ht===e.a.DOWN)?Gt.onKeyDown(bt):void 0},Re.onOpenChange=function(bt){Re.props.onOpenChange(bt)},Re.onPopupVisibleChange=function(bt){Re.triggerOpenChange(bt,bt?"mouseenter":"mouseleave")},Re.onMouseEnter=function(bt){var Ht=Re.props,Gt=Ht.eventKey,xn=Ht.onMouseEnter,vn=Ht.store;re(vn,Re.props.eventKey,!1),xn({key:Gt,domEvent:bt})},Re.onMouseLeave=function(bt){var Ht=Re.props,Gt=Ht.parentMenu,xn=Ht.eventKey,vn=Ht.onMouseLeave;Gt.subMenuInstance=Object(y.a)(Re),vn({key:xn,domEvent:bt})},Re.onTitleMouseEnter=function(bt){var Ht=Re.props,Gt=Ht.eventKey,xn=Ht.onItemHover,vn=Ht.onTitleMouseEnter;xn({key:Gt,hover:!0}),vn({key:Gt,domEvent:bt})},Re.onTitleMouseLeave=function(bt){var Ht=Re.props,Gt=Ht.parentMenu,xn=Ht.eventKey,vn=Ht.onItemHover,sr=Ht.onTitleMouseLeave;Gt.subMenuInstance=Object(y.a)(Re),vn({key:xn,hover:!1}),sr({key:xn,domEvent:bt})},Re.onTitleClick=function(bt){var Ht=Object(y.a)(Re),Gt=Ht.props;if(Gt.onTitleClick({key:Gt.eventKey,domEvent:bt}),Gt.triggerSubMenuAction==="hover")return;Re.triggerOpenChange(!Gt.isOpen,"click"),re(Gt.store,Re.props.eventKey,!1)},Re.onSubMenuClick=function(bt){typeof Re.props.onClick=="function"&&Re.props.onClick(Re.addKeyPath(bt))},Re.onSelect=function(bt){Re.props.onSelect(bt)},Re.onDeselect=function(bt){Re.props.onDeselect(bt)},Re.getPrefixCls=function(){return"".concat(Re.props.rootPrefixCls,"-submenu")},Re.getActiveClassName=function(){return"".concat(Re.getPrefixCls(),"-active")},Re.getDisabledClassName=function(){return"".concat(Re.getPrefixCls(),"-disabled")},Re.getSelectedClassName=function(){return"".concat(Re.getPrefixCls(),"-selected")},Re.getOpenClassName=function(){return"".concat(Re.props.rootPrefixCls,"-submenu-open")},Re.saveMenuInstance=function(bt){Re.menuInstance=bt},Re.addKeyPath=function(bt){return Object(ue.a)(Object(ue.a)({},bt),{},{keyPath:(bt.keyPath||[]).concat(Re.props.eventKey)})},Re.triggerOpenChange=function(bt,Ht){var Gt=Re.props.eventKey,xn=function(){Re.onOpenChange({key:Gt,item:Object(y.a)(Re),trigger:Ht,open:bt})};Ht==="mouseenter"?Re.mouseenterTimeout=setTimeout(function(){xn()},0):xn()},Re.isChildrenSelected=function(){var bt={find:!1};return X(Re.props.children,Re.props.selectedKeys,bt),bt.find},Re.isOpen=function(){return Re.props.openKeys.indexOf(Re.props.eventKey)!==-1},Re.adjustWidth=function(){if(!Re.subMenuTitle||!Re.menuInstance)return;var bt=Ee.findDOMNode(Re.menuInstance);if(bt.offsetWidth>=Re.subMenuTitle.offsetWidth)return;bt.style.minWidth="".concat(Re.subMenuTitle.offsetWidth,"px")},Re.saveSubMenuTitle=function(bt){Re.subMenuTitle=bt},Re.getBaseProps=function(){var bt=Object(y.a)(Re),Ht=bt.props;return{mode:Ht.mode==="horizontal"?"vertical":Ht.mode,visible:Re.props.isOpen,level:Ht.level+1,inlineIndent:Ht.inlineIndent,focusable:!1,onClick:Re.onSubMenuClick,onSelect:Re.onSelect,onDeselect:Re.onDeselect,onDestroy:Re.onDestroy,selectedKeys:Ht.selectedKeys,eventKey:"".concat(Ht.eventKey,"-menu-"),openKeys:Ht.openKeys,motion:Ht.motion,onOpenChange:Re.onOpenChange,subMenuOpenDelay:Ht.subMenuOpenDelay,parentMenu:Object(y.a)(Re),subMenuCloseDelay:Ht.subMenuCloseDelay,forceSubMenuRender:Ht.forceSubMenuRender,triggerSubMenuAction:Ht.triggerSubMenuAction,builtinPlacements:Ht.builtinPlacements,defaultActiveFirst:Ht.store.getState().defaultActiveFirst[N(Ht.eventKey)],multiple:Ht.multiple,prefixCls:Ht.rootPrefixCls,id:Re.internalMenuId,manualRef:Re.saveMenuInstance,itemIcon:Ht.itemIcon,expandIcon:Ht.expandIcon,direction:Ht.direction}},Re.getMotion=function(bt,Ht){var Gt=Object(y.a)(Re),xn=Gt.haveRendered,vn=Re.props,sr=vn.motion,xr=vn.rootPrefixCls,Kn=Object(ue.a)(Object(ue.a)({},sr),{},{leavedClassName:"".concat(xr,"-hidden"),removeOnLeave:!1,motionAppear:xn||!Ht||bt!=="inline"});return Kn};var We=Ct.store,St=Ct.eventKey,ft=We.getState(),It=ft.defaultActiveFirst;Re.isRootMenu=!1;var Ot=!1;return It&&(Ot=It[St]),re(We,St,Ot),Re}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this,We=this.props,St=We.mode,ft=We.parentMenu,It=We.manualRef;if(It&&It(this),St!=="horizontal"||!ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Re.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Re=this.props,We=Re.onDestroy,St=Re.eventKey;We&&We(St),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Re){var We=this,St=this.getBaseProps(),ft=this.getMotion(St.mode,St.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||St.visible||St.forceSubMenuRender,!this.haveOpened)return C.createElement("div",null);var It=St.direction;return C.createElement(ie.default,Object.assign({visible:St.visible},ft),function(Ot){var bt=Ot.className,Ht=Ot.style,Gt=d()("".concat(St.prefixCls,"-sub"),bt,Object(n.a)({},"".concat(St.prefixCls,"-rtl"),It==="rtl"));return C.createElement(rt,Object.assign({},St,{id:We.internalMenuId,className:Gt,style:Ht}),Re)})}},{key:"render",value:function(){var Re,We=Object(ue.a)({},this.props),St=We.isOpen,ft=this.getPrefixCls(),It=We.mode==="inline",Ot=d()(ft,"".concat(ft,"-").concat(We.mode),(Re={},Object(n.a)(Re,We.className,!!We.className),Object(n.a)(Re,this.getOpenClassName(),St),Object(n.a)(Re,this.getActiveClassName(),We.active||St&&!It),Object(n.a)(Re,this.getDisabledClassName(),We.disabled),Object(n.a)(Re,this.getSelectedClassName(),this.isChildrenSelected()),Re));this.internalMenuId||(We.eventKey?this.internalMenuId="".concat(We.eventKey,"$Menu"):(Fe+=1,this.internalMenuId="$__$".concat(Fe,"$Menu")));var bt={},Ht={},Gt={};We.disabled||(bt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ht={onClick:this.onTitleClick},Gt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var xn={},vn=We.direction;It&&(vn==="rtl"?xn.paddingRight=We.inlineIndent*We.level:xn.paddingLeft=We.inlineIndent*We.level);var sr={};this.props.isOpen&&(sr={"aria-owns":this.internalMenuId});var xr=null;We.mode!=="horizontal"&&(xr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(xr=C.createElement(this.props.expandIcon,Object(ue.a)({},this.props))));var Kn=C.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:xn,className:"".concat(ft,"-title"),role:"button"},Gt,Ht,{"aria-expanded":St},sr,{"aria-haspopup":"true",title:typeof We.title=="string"?We.title:void 0}),We.title,xr||C.createElement("i",{className:"".concat(ft,"-arrow")})),En=this.renderChildren(We.children),Qr=We.parentMenu.isRootMenu?We.parentMenu.props.getPopupContainer:function(Kt){return Kt.parentNode},sa=ke[We.mode],Xr=We.popupOffset?{offset:We.popupOffset}:{},Nr=We.mode==="inline"?"":We.popupClassName;Nr+=vn==="rtl"?" ".concat(ft,"-rtl"):"";var ba=We.disabled,ja=We.triggerSubMenuAction,oi=We.subMenuOpenDelay,Le=We.forceSubMenuRender,Qe=We.subMenuCloseDelay,ot=We.builtinPlacements;te.forEach(function(Kt){return delete We[Kt]}),delete We.onClick;var _t=vn==="rtl"?Object.assign({},ce,ot):Object.assign({},ge,ot);return delete We.direction,C.createElement("li",Object.assign({},We,bt,{className:Ot,role:"menuitem"}),It&&Kn,It&&En,!It&&C.createElement(he.a,{prefixCls:ft,popupClassName:d()("".concat(ft,"-popup"),Nr),getPopupContainer:Qr,builtinPlacements:_t,popupPlacement:sa,popupVisible:St,popupAlign:Xr,popup:En,action:ba?[]:[ja],mouseEnterDelay:oi,mouseLeaveDelay:Qe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Le},Kn))}}]),Tt}(C.Component);F.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var W=Object(m.b)(function(Zt,Mt){var Tt=Zt.openKeys,Ct=Zt.activeKey,Re=Zt.selectedKeys,We=Mt.eventKey,St=Mt.subMenuKey;return{isOpen:Tt.indexOf(We)>-1,active:Ct[St]===We,selectedKeys:Re}})(F);W.isSubMenu=!0;var de=W,ne="menuitem-overflowed",le=.5,De=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(){var Ct;return Object(Y.a)(this,Tt),Ct=Mt.apply(this,arguments),Ct.resizeObserver=null,Ct.mutationObserver=null,Ct.originalTotalWidth=0,Ct.overflowedItems=[],Ct.menuItemSizes=[],Ct.cancelFrameId=null,Ct.state={lastVisibleIndex:void 0},Ct.getMenuItemNodes=function(){var Re=Ct.props.prefixCls,We=Ee.findDOMNode(Object(y.a)(Ct));return We?[].slice.call(We.children).filter(function(St){return St.className.split(" ").indexOf("".concat(Re,"-overflowed-submenu"))<0}):[]},Ct.getOverflowedSubMenuItem=function(Re,We,St){var ft=Ct.props,It=ft.overflowedIndicator,Ot=ft.level,bt=ft.mode,Ht=ft.prefixCls,Gt=ft.theme;if(Ot!==1||bt!=="horizontal")return null;var xn=Ct.props.children[0],vn=xn.props,sr=vn.children,xr=vn.title,Kn=vn.style,En=Object(Ae.a)(vn,["children","title","style"]),Qr=Object(ue.a)({},Kn),sa="".concat(Re,"-overflowed-indicator"),Xr="".concat(Re,"-overflowed-indicator");We.length===0&&St!==!0?Qr=Object(ue.a)(Object(ue.a)({},Qr),{},{display:"none"}):St&&(Qr=Object(ue.a)(Object(ue.a)({},Qr),{},{visibility:"hidden",position:"absolute"}),sa="".concat(sa,"-placeholder"),Xr="".concat(Xr,"-placeholder"));var Nr=Gt?"".concat(Ht,"-").concat(Gt):"",ba={};return te.forEach(function(ja){En[ja]!==void 0&&(ba[ja]=En[ja])}),C.createElement(de,Object.assign({title:It,className:"".concat(Ht,"-overflowed-submenu"),popupClassName:Nr},ba,{key:sa,eventKey:Xr,disabled:!1,style:Qr}),We)},Ct.setChildrenWidthAndResize=function(){if(Ct.props.mode!=="horizontal")return;var Re=Ee.findDOMNode(Object(y.a)(Ct));if(!Re)return;var We=Re.children;if(!We||We.length===0)return;var St=Re.children[We.length-1];me(St,"display","inline-block");var ft=Ct.getMenuItemNodes(),It=ft.filter(function(Ot){return Ot.className.split(" ").indexOf(ne)>=0});It.forEach(function(Ot){me(Ot,"display","inline-block")}),Ct.menuItemSizes=ft.map(function(Ot){return oe(Ot,!0)}),It.forEach(function(Ot){me(Ot,"display","none")}),Ct.overflowedIndicatorWidth=oe(Re.children[Re.children.length-1],!0),Ct.originalTotalWidth=Ct.menuItemSizes.reduce(function(Ot,bt){return Ot+bt},0),Ct.handleResize(),me(St,"display","none")},Ct.handleResize=function(){if(Ct.props.mode!=="horizontal")return;var Re=Ee.findDOMNode(Object(y.a)(Ct));if(!Re)return;var We=oe(Re);Ct.overflowedItems=[];var St=0,ft;Ct.originalTotalWidth>We+le&&(ft=-1,Ct.menuItemSizes.forEach(function(It){St+=It,St+Ct.overflowedIndicatorWidth<=We&&(ft+=1)})),Ct.setState({lastVisibleIndex:ft})},Ct}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){var Re=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var We=Ee.findDOMNode(this);if(!We)return;this.resizeObserver=new pe.default(function(St){St.forEach(function(){var ft=Re.cancelFrameId;cancelAnimationFrame(ft),Re.cancelFrameId=requestAnimationFrame(Re.setChildrenWidthAndResize)})}),[].slice.call(We.children).concat(We).forEach(function(St){Re.resizeObserver.observe(St)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Re.resizeObserver.disconnect(),[].slice.call(We.children).concat(We).forEach(function(St){Re.resizeObserver.observe(St)}),Re.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(Re){var We=this,St=this.state.lastVisibleIndex;return(Re||[]).reduce(function(ft,It,Ot){var bt=It;if(We.props.mode==="horizontal"){var Ht=We.getOverflowedSubMenuItem(It.props.eventKey,[]);St!==void 0&&We.props.className.indexOf("".concat(We.props.prefixCls,"-root"))!==-1&&(Ot>St&&(bt=C.cloneElement(It,{style:{display:"none"},eventKey:"".concat(It.props.eventKey,"-hidden"),className:"".concat(ne)})),Ot===St+1&&(We.overflowedItems=Re.slice(St+1).map(function(xn){return C.cloneElement(xn,{key:xn.props.eventKey,mode:"vertical-left"})}),Ht=We.getOverflowedSubMenuItem(It.props.eventKey,We.overflowedItems)));var Gt=[].concat(Object(_e.a)(ft),[Ht,bt]);return Ot===Re.length-1&&Gt.push(We.getOverflowedSubMenuItem(It.props.eventKey,[],!0)),Gt}return[].concat(Object(_e.a)(ft),[bt])},[])}},{key:"render",value:function(){var Re=this.props,We=Re.visible,St=Re.prefixCls,ft=Re.overflowedIndicator,It=Re.mode,Ot=Re.level,bt=Re.tag,Ht=Re.children,Gt=Re.theme,xn=Object(Ae.a)(Re,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),vn=bt;return C.createElement(vn,Object.assign({},xn),this.renderChildren(Ht))}}]),Tt}(C.Component);De.defaultProps={tag:"div",className:""};var Xe=De;function xt(Zt){return Zt.length?Zt.every(function(Mt){return!!Mt.props.disabled}):!0}function Ke(Zt,Mt,Tt){var Ct=Zt.getState();Zt.setState({activeKey:Object(ue.a)(Object(ue.a)({},Ct.activeKey),{},Object(n.a)({},Mt,Tt))})}function ze(Zt){return Zt.eventKey||"0-menu-"}function yt(Zt,Mt){var Tt=Mt,Ct=Zt.children,Re=Zt.eventKey;if(Tt){var We;if(Q(Ct,function(St,ft){St&&St.props&&!St.props.disabled&&Tt===G(St,Re,ft)&&(We=!0)}),We)return Tt}return Tt=null,Zt.defaultActiveFirst&&Q(Ct,function(St,ft){!Tt&&St&&!St.props.disabled&&(Tt=G(St,Re,ft))}),Tt}function Et(Zt){if(Zt){var Mt=this.instanceArray.indexOf(Zt);Mt!==-1?this.instanceArray[Mt]=Zt:this.instanceArray.push(Zt)}}var ct=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(Ct){var Re;return Object(Y.a)(this,Tt),Re=Mt.call(this,Ct),Re.onKeyDown=function(We,St){var ft=We.keyCode,It;if(Re.getFlatInstanceArray().forEach(function(bt){bt&&bt.props.active&&bt.onKeyDown&&(It=bt.onKeyDown(We))}),It)return 1;var Ot=null;return(ft===e.a.UP||ft===e.a.DOWN)&&(Ot=Re.step(ft===e.a.UP?-1:1)),Ot?(We.preventDefault(),Ke(Re.props.store,ze(Re.props),Ot.props.eventKey),typeof St=="function"&&St(Ot),1):void 0},Re.onItemHover=function(We){var St=We.key,ft=We.hover;Ke(Re.props.store,ze(Re.props),ft?St:null)},Re.onDeselect=function(We){Re.props.onDeselect(We)},Re.onSelect=function(We){Re.props.onSelect(We)},Re.onClick=function(We){Re.props.onClick(We)},Re.onOpenChange=function(We){Re.props.onOpenChange(We)},Re.onDestroy=function(We){Re.props.onDestroy(We)},Re.getFlatInstanceArray=function(){return Re.instanceArray},Re.step=function(We){var St=Re.getFlatInstanceArray(),ft=Re.props.store.getState().activeKey[ze(Re.props)],It=St.length;if(!It)return null;We<0&&(St=St.concat().reverse());var Ot=-1;if(St.every(function(xn,vn){return xn&&xn.props.eventKey===ft?(Ot=vn,!1):!0}),!Re.props.defaultActiveFirst&&Ot!==-1&&xt(St.slice(Ot,It-1)))return;var bt=(Ot+1)%It,Ht=bt;do{var Gt=St[Ht];if(!Gt||Gt.props.disabled)Ht=(Ht+1)%It;else return Gt}while(Ht!==bt);return null},Re.renderCommonMenuItem=function(We,St,ft){var It=Re.props.store.getState(),Ot=Object(y.a)(Re),bt=Ot.props,Ht=G(We,bt.eventKey,St),Gt=We.props;if(!Gt||typeof We.type=="string")return We;var xn=Ht===It.activeKey,vn=Object(ue.a)(Object(ue.a)({mode:Gt.mode||bt.mode,level:bt.level,inlineIndent:bt.inlineIndent,renderMenuItem:Re.renderMenuItem,rootPrefixCls:bt.prefixCls,index:St,parentMenu:bt.parentMenu,manualRef:Gt.disabled?void 0:Object(s.a)(We.ref,Et.bind(Object(y.a)(Re))),eventKey:Ht,active:!Gt.disabled&&xn,multiple:bt.multiple,onClick:function(xr){(Gt.onClick||K)(xr),Re.onClick(xr)},onItemHover:Re.onItemHover,motion:bt.motion,subMenuOpenDelay:bt.subMenuOpenDelay,subMenuCloseDelay:bt.subMenuCloseDelay,forceSubMenuRender:bt.forceSubMenuRender,onOpenChange:Re.onOpenChange,onDeselect:Re.onDeselect,onSelect:Re.onSelect,builtinPlacements:bt.builtinPlacements,itemIcon:Gt.itemIcon||Re.props.itemIcon,expandIcon:Gt.expandIcon||Re.props.expandIcon},ft),{},{direction:bt.direction});return(bt.mode==="inline"||se())&&(vn.triggerSubMenuAction="click"),C.cloneElement(We,vn)},Re.renderMenuItem=function(We,St,ft){if(!We)return null;var It=Re.props.store.getState(),Ot={openKeys:It.openKeys,selectedKeys:It.selectedKeys,triggerSubMenuAction:Re.props.triggerSubMenuAction,subMenuKey:ft};return Re.renderCommonMenuItem(We,St,Ot)},Ct.store.setState({activeKey:Object(ue.a)(Object(ue.a)({},Ct.store.getState().activeKey),{},Object(n.a)({},Ct.eventKey,yt(Ct,Ct.activeKey)))}),Re.instanceArray=[],Re}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Re){return this.props.visible||Re.visible||this.props.className!==Re.className||!o()(this.props.style,Re.style)}},{key:"componentDidUpdate",value:function(Re){var We=this.props,St="activeKey"in We?We.activeKey:We.store.getState().activeKey[ze(We)],ft=yt(We,St);if(ft!==St)Ke(We.store,ze(We),ft);else if("activeKey"in Re){var It=yt(Re,Re.activeKey);ft!==It&&Ke(We.store,ze(We),ft)}}},{key:"render",value:function(){var Re=this,We=Object(r.a)({},this.props);this.instanceArray=[];var St=d()(We.prefixCls,We.className,"".concat(We.prefixCls,"-").concat(We.mode)),ft={className:St,role:We.role||"menu"};We.id&&(ft.id=We.id),We.focusable&&(ft.tabIndex=0,ft.onKeyDown=this.onKeyDown);var It=We.prefixCls,Ot=We.eventKey,bt=We.visible,Ht=We.level,Gt=We.mode,xn=We.overflowedIndicator,vn=We.theme;return te.forEach(function(sr){return delete We[sr]}),delete We.onClick,C.createElement(Xe,Object.assign({},We,{prefixCls:It,mode:Gt,tag:"ul",level:Ht,theme:vn,visible:bt,overflowedIndicator:xn},ft),C.Children.map(We.children,function(sr,xr){return Re.renderMenuItem(sr,xr,Ot||"0-menu-")}))}}]),Tt}(C.Component);ct.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var lt=Object(m.b)()(ct),rt=lt,qe=M("Kwbf");function $e(Zt,Mt,Tt){var Ct=Zt.prefixCls,Re=Zt.motion,We=Zt.defaultMotions,St=We===void 0?{}:We,ft=Zt.openAnimation,It=Zt.openTransitionName,Ot=Mt.switchingModeFromInline;if(Re)return Re;if(Object(a.a)(ft)==="object"&&ft)Object(qe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ft=="string")return{motionName:"".concat(Ct,"-open-").concat(ft)};if(It)return{motionName:It};var bt=St[Tt];return bt||(Ot?null:St.other)}var Pe=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(Ct){var Re;Object(Y.a)(this,Tt),Re=Mt.call(this,Ct),Re.inlineOpenKeys=[],Re.onSelect=function(ft){var It=Object(y.a)(Re),Ot=It.props;if(Ot.selectable){var bt=Re.store.getState(),Ht=bt.selectedKeys,Gt=ft.key;Ot.multiple?Ht=Ht.concat([Gt]):Ht=[Gt],"selectedKeys"in Ot||Re.store.setState({selectedKeys:Ht}),Ot.onSelect(Object(ue.a)(Object(ue.a)({},ft),{},{selectedKeys:Ht}))}},Re.onClick=function(ft){var It=Re.getRealMenuMode(),Ot=Object(y.a)(Re),bt=Ot.store,Ht=Ot.props.onOpenChange;It!=="inline"&&!("openKeys"in Re.props)&&(bt.setState({openKeys:[]}),Ht([])),Re.props.onClick(ft)},Re.onKeyDown=function(ft,It){Re.innerMenu.getWrappedInstance().onKeyDown(ft,It)},Re.onOpenChange=function(ft){var It=Object(y.a)(Re),Ot=It.props,bt=Re.store.getState().openKeys.concat(),Ht=!1,Gt=function(vn){var sr=!1;if(vn.open)sr=bt.indexOf(vn.key)===-1,sr&&bt.push(vn.key);else{var xr=bt.indexOf(vn.key);sr=xr!==-1,sr&&bt.splice(xr,1)}Ht=Ht||sr};Array.isArray(ft)?ft.forEach(Gt):Gt(ft),Ht&&("openKeys"in Re.props||Re.store.setState({openKeys:bt}),Ot.onOpenChange(bt))},Re.onDeselect=function(ft){var It=Object(y.a)(Re),Ot=It.props;if(Ot.selectable){var bt=Re.store.getState().selectedKeys.concat(),Ht=ft.key,Gt=bt.indexOf(Ht);Gt!==-1&&bt.splice(Gt,1),"selectedKeys"in Ot||Re.store.setState({selectedKeys:bt}),Ot.onDeselect(Object(ue.a)(Object(ue.a)({},ft),{},{selectedKeys:bt}))}},Re.onMouseEnter=function(ft){Re.restoreModeVerticalFromInline();var It=Re.props.onMouseEnter;It&&It(ft)},Re.onTransitionEnd=function(ft){var It=ft.propertyName==="width"&&ft.target===ft.currentTarget,Ot=ft.target.className,bt=Object.prototype.toString.call(Ot)==="[object SVGAnimatedString]"?Ot.animVal:Ot,Ht=ft.propertyName==="font-size"&&bt.indexOf("anticon")>=0;(It||Ht)&&Re.restoreModeVerticalFromInline()},Re.setInnerMenu=function(ft){Re.innerMenu=ft},Re.isRootMenu=!0;var We=Ct.defaultSelectedKeys,St=Ct.defaultOpenKeys;return"selectedKeys"in Ct&&(We=Ct.selectedKeys||[]),"openKeys"in Ct&&(St=Ct.openKeys||[]),Re.store=Object(m.c)({selectedKeys:We,openKeys:St,activeKey:{"0-menu-":yt(Ct,Ct.activeKey)}}),Re.state={switchingModeFromInline:!1},Re}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Re){this.updateOpentKeysWhenSwitchMode(Re),this.updateMiniStore();var We=this.props,St=We.siderCollapsed,ft=We.inlineCollapsed,It=We.onOpenChange;(!Re.inlineCollapsed&&ft||!Re.siderCollapsed&&St)&&It([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Re){var We=this.props,St=this.store,ft=this.inlineOpenKeys,It=St.getState(),Ot={};Re.mode==="inline"&&We.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in We||((We.inlineCollapsed&&!Re.inlineCollapsed||We.siderCollapsed&&!Re.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=It.openKeys.concat(),Ot.openKeys=[]),(!We.inlineCollapsed&&Re.inlineCollapsed||!We.siderCollapsed&&Re.siderCollapsed)&&(Ot.openKeys=ft,this.inlineOpenKeys=[])),Object.keys(Ot).length&&St.setState(Ot)}},{key:"updateMenuDisplay",value:function(){var Re=this.props.collapsedWidth,We=this.store,St=this.prevOpenKeys,ft=this.getInlineCollapsed()&&(Re===0||Re==="0"||Re==="0px");ft?(this.prevOpenKeys=We.getState().openKeys.concat(),this.store.setState({openKeys:[]})):St&&(this.store.setState({openKeys:St}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Re=this.props.mode,We=this.state.switchingModeFromInline,St=this.getInlineCollapsed();return We&&St?"inline":St?"vertical":Re}},{key:"getInlineCollapsed",value:function(){var Re=this.props,We=Re.inlineCollapsed,St=Re.siderCollapsed;return St!==void 0?St:We}},{key:"restoreModeVerticalFromInline",value:function(){var Re=this.state.switchingModeFromInline;Re&&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 Re=Object(ue.a)({},Object(c.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),We=this.getRealMenuMode();return Re.className+=" ".concat(Re.prefixCls,"-root"),Re.direction==="rtl"&&(Re.className+=" ".concat(Re.prefixCls,"-rtl")),Re=Object(ue.a)(Object(ue.a)({},Re),{},{mode:We,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:$e(this.props,this.state,We)}),delete Re.openAnimation,delete Re.openTransitionName,C.createElement(m.a,{store:this.store},C.createElement(rt,Object.assign({},Re,{ref:this.setInnerMenu}),this.props.children))}}]),Tt}(C.Component);Pe.defaultProps={selectable:!0,onClick:K,onSelect:K,onOpenChange:K,onDeselect:K,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:C.createElement("span",null,"\xB7\xB7\xB7")};var je=Pe,Ne=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(){var Ct;return Object(Y.a)(this,Tt),Ct=Mt.apply(this,arguments),Ct.onKeyDown=function(Re){var We=Re.keyCode;return We===e.a.ENTER?(Ct.onClick(Re),!0):void 0},Ct.onMouseLeave=function(Re){var We=Ct.props,St=We.eventKey,ft=We.onItemHover,It=We.onMouseLeave;ft({key:St,hover:!1}),It({key:St,domEvent:Re})},Ct.onMouseEnter=function(Re){var We=Ct.props,St=We.eventKey,ft=We.onItemHover,It=We.onMouseEnter;ft({key:St,hover:!0}),It({key:St,domEvent:Re})},Ct.onClick=function(Re){var We=Ct.props,St=We.eventKey,ft=We.multiple,It=We.onClick,Ot=We.onSelect,bt=We.onDeselect,Ht=We.isSelected,Gt={key:St,keyPath:[St],item:Object(y.a)(Ct),domEvent:Re};It(Gt),ft?Ht?bt(Gt):Ot(Gt):Ht||Ot(Gt)},Ct.saveNode=function(Re){Ct.node=Re},Ct}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Re=this.props;Re.onDestroy&&Re.onDestroy(Re.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 Re,We=Object(ue.a)({},this.props),St=d()(this.getPrefixCls(),We.className,(Re={},Object(n.a)(Re,this.getActiveClassName(),!We.disabled&&We.active),Object(n.a)(Re,this.getSelectedClassName(),We.isSelected),Object(n.a)(Re,this.getDisabledClassName(),We.disabled),Re)),ft=Object(ue.a)(Object(ue.a)({},We.attribute),{},{title:typeof We.title=="string"?We.title:void 0,className:St,role:We.role||"menuitem","aria-disabled":We.disabled});We.role==="option"?ft=Object(ue.a)(Object(ue.a)({},ft),{},{role:"option","aria-selected":We.isSelected}):(We.role===null||We.role==="none")&&(ft.role="none");var It={onClick:We.disabled?null:this.onClick,onMouseLeave:We.disabled?null:this.onMouseLeave,onMouseEnter:We.disabled?null:this.onMouseEnter},Ot=Object(ue.a)({},We.style);We.mode==="inline"&&(We.direction==="rtl"?Ot.paddingRight=We.inlineIndent*We.level:Ot.paddingLeft=We.inlineIndent*We.level),te.forEach(function(Ht){return delete We[Ht]}),delete We.direction;var bt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(bt=C.createElement(this.props.itemIcon,this.props)),C.createElement("li",Object.assign({},Object(c.default)(We,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ft,It,{style:Ot,ref:this.saveNode}),We.children,bt)}}]),Tt}(C.Component);Ne.isMenuItem=!0,Ne.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var et=Object(m.b)(function(Zt,Mt){var Tt=Zt.activeKey,Ct=Zt.selectedKeys,Re=Mt.eventKey,We=Mt.subMenuKey;return{active:Tt[We]===Re,isSelected:Ct.indexOf(Re)!==-1}})(Ne),mt=et,At=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(){var Ct;return Object(Y.a)(this,Tt),Ct=Mt.apply(this,arguments),Ct.renderInnerMenuItem=function(Re){var We=Ct.props,St=We.renderMenuItem,ft=We.index;return St(Re,ft,Ct.props.subMenuKey)},Ct}return Object(P.a)(Tt,[{key:"render",value:function(){var Re=Object(r.a)({},this.props),We=Re.className,St=We===void 0?"":We,ft=Re.rootPrefixCls,It="".concat(ft,"-item-group-title"),Ot="".concat(ft,"-item-group-list"),bt=Re.title,Ht=Re.children;return te.forEach(function(Gt){return delete Re[Gt]}),delete Re.onClick,delete Re.direction,C.createElement("li",Object.assign({},Re,{className:"".concat(St," ").concat(ft,"-item-group")}),C.createElement("div",{className:It,title:typeof bt=="string"?bt:void 0},bt),C.createElement("ul",{className:Ot},C.Children.map(Ht,this.renderInnerMenuItem)))}}]),Tt}(C.Component);At.isMenuItemGroup=!0,At.defaultProps={disabled:!0};var Ut=At,Xt=function(Mt){var Tt=Mt.className,Ct=Mt.rootPrefixCls,Re=Mt.style;return C.createElement("li",{className:"".concat(Tt," ").concat(Ct,"-item-divider"),style:Re})};Xt.defaultProps={disabled:!0,className:"",style:{}};var un=Xt,jt=we.e=je},"24YM":function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.SensorTabIndex=we.SensorClassName=we.SizeSensorId=void 0;var ue="size-sensor-id";we.SizeSensorId=ue;var Y="size-sensor-object";we.SensorClassName=Y;var P="-1";we.SensorTabIndex=P},"2DNl":function(Ze,we,M){var ue=M("IMiH"),Y=M("loD1"),P=M("59Ip"),y=M("aKvl"),E=M("n1HI"),_=M("hX1E"),C=_.normalizeRadian,m=M("Sj9i"),c=M("hyiK"),r=ue.CMD,n=Math.PI*2,e=1e-4;function s(w,B){return Math.abs(w-B)B&&D>A&&D>i&&D>O||D1&&f(),J=m.cubicAt(B,A,i,O,o[0]),H>1&&(U=m.cubicAt(B,A,i,O,o[1]))),H===2?GB&&O>A&&O>i||O=0&&D<=1){for(var R=0,k=m.quadraticAt(B,A,i,D),H=0;Hb||O<-b)return 0;var T=Math.sqrt(b*b-O*O);u[0]=-T,u[1]=T;var D=Math.abs(A-l);if(D<1e-4)return 0;if(D%n<1e-4){A=0,l=n;var R=i?1:-1;return x>=u[0]+w&&x<=u[1]+w?R:0}if(i){var T=A;A=C(l),l=C(T)}else A=C(A),l=C(l);A>l&&(l+=n);for(var k=0,H=0;H<2;H++){var J=u[H];if(J+w>x){var U=Math.atan2(O,J),R=i?1:-1;U<0&&(U=n+U),(U>=A&&U<=l||U+n>=A&&U+n<=l)&&(U>Math.PI/2&&U1&&(b||(i+=c(x,O,T,D,A,l))),R===1&&(x=w[R],O=w[R+1],T=x,D=O);switch(k){case r.M:T=w[R++],D=w[R++],x=T,O=D;break;case r.L:if(b){if(Y.containStroke(x,O,w[R],w[R+1],B,A,l))return!0}else i+=c(x,O,w[R],w[R+1],A,l)||0;x=w[R++],O=w[R++];break;case r.C:if(b){if(P.containStroke(x,O,w[R++],w[R++],w[R++],w[R++],w[R],w[R+1],B,A,l))return!0}else i+=d(x,O,w[R++],w[R++],w[R++],w[R++],w[R],w[R+1],A,l)||0;x=w[R++],O=w[R++];break;case r.Q:if(b){if(y.containStroke(x,O,w[R++],w[R++],w[R],w[R+1],B,A,l))return!0}else i+=a(x,O,w[R++],w[R++],w[R],w[R+1],A,l)||0;x=w[R++],O=w[R++];break;case r.A:var H=w[R++],J=w[R++],U=w[R++],K=w[R++],G=w[R++],N=w[R++];R+=1;var Q=1-w[R++],X=Math.cos(G)*U+H,te=Math.sin(G)*K+J;R>1?i+=c(x,O,X,te,A,l):(T=X,D=te);var oe=(A-H)*K/U+H;if(b){if(E.containStroke(H,J,K,G,G+N,Q,B,oe,l))return!0}else i+=h(H,J,K,G,G+N,Q,oe,l);x=Math.cos(G+N)*U+H,O=Math.sin(G+N)*K+J;break;case r.R:T=x=w[R++],D=O=w[R++];var me=w[R++],se=w[R++],X=T+me,te=D+se;if(b){if(Y.containStroke(T,D,X,D,B,A,l)||Y.containStroke(X,D,X,te,B,A,l)||Y.containStroke(X,te,T,te,B,A,l)||Y.containStroke(T,te,T,D,B,A,l))return!0}else i+=c(X,D,X,te,A,l),i+=c(T,te,T,D,A,l);break;case r.Z:if(b){if(Y.containStroke(x,O,T,D,B,A,l))return!0}else i+=c(x,O,T,D,A,l);x=T,O=D;break}}return!b&&!s(O,D)&&(i+=c(x,O,T,D,A,l)||0),i!==0}function p(w,B,b){return g(w,0,!1,B,b)}function S(w,B,b,A){return g(w,B,!0,b,A)}we.contain=p,we.containStroke=S},"2fw6":function(Ze,we,M){var ue=M("y+Vt"),Y=ue.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(P,y,E){E&&P.moveTo(y.cx+y.r,y.cy),P.arc(y.cx,y.cy,y.r,0,Math.PI*2,!0)}});Ze.exports=Y},"3C/r":function(Ze,we){var M=function(Y,P){this.image=Y,this.repeat=P,this.type="pattern"};M.prototype.getCanvasPattern=function(Y){return Y.createPattern(this.image,this.repeat||"repeat")};var ue=M;Ze.exports=ue},"3CBa":function(Ze,we,M){var ue=M("hydK"),Y=ue.createElement,P=M("bYtY"),y=M("SUKs"),E=M("y+Vt"),_=M("Dagg"),C=M("dqUG"),m=M("DBLp"),c=M("sW+o"),r=M("n6Mw"),n=M("vKoX"),e=M("P47w"),s=e.path,u=e.image,o=e.text;function f(l){return parseInt(l,10)}function d(l){return l instanceof E?s:l instanceof _?u:l instanceof C?o:s}function a(l,i){return i&&l&&i.parentNode!==l}function h(l,i,x){if(a(l,i)&&x){var O=x.nextSibling;O?l.insertBefore(i,O):l.appendChild(i)}}function g(l,i){if(a(l,i)){var x=l.firstChild;x?l.insertBefore(i,x):l.appendChild(i)}}function p(l,i){i&&l&&i.parentNode===l&&l.removeChild(i)}function S(l){return l.__textSvgEl}function w(l){return l.__svgEl}var B=function(l,i,x,O){this.root=l,this.storage=i,this._opts=x=P.extend({},x||{});var T=Y("svg");T.setAttribute("xmlns","http://www.w3.org/2000/svg"),T.setAttribute("version","1.1"),T.setAttribute("baseProfile","full"),T.style.cssText="user-select:none;position:absolute;left:0;top:0;";var D=Y("g");T.appendChild(D);var R=Y("g");T.appendChild(R),this.gradientManager=new c(O,R),this.clipPathManager=new r(O,R),this.shadowManager=new n(O,R);var k=document.createElement("div");k.style.cssText="overflow:hidden;position:relative",this._svgDom=T,this._svgRoot=R,this._backgroundRoot=D,this._viewport=k,l.appendChild(k),k.appendChild(T),this.resize(x.width,x.height),this._visibleList=[]};B.prototype={constructor:B,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var l=this.getViewportRoot();if(l)return{offsetLeft:l.offsetLeft||0,offsetTop:l.offsetTop||0}},refresh:function(){var l=this.storage.getDisplayList(!0);this._paintList(l)},setBackgroundColor:function(l){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var i=Y("rect");i.setAttribute("width",this.getWidth()),i.setAttribute("height",this.getHeight()),i.setAttribute("x",0),i.setAttribute("y",0),i.setAttribute("id",0),i.style.fill=l,this._backgroundRoot.appendChild(i),this._backgroundNode=i},_paintList:function(l){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var i=this._svgRoot,x=this._visibleList,O=l.length,T=[],D;for(D=0;D=0;--R)if(D[R]===T)return!0;return!1}),x}else return null;else return x[0]},resize:function(l,i){var x=this._viewport;x.style.display="none";var O=this._opts;if(l!=null&&(O.width=l),i!=null&&(O.height=i),l=this._getSize(0),i=this._getSize(1),x.style.display="",this._width!==l||this._height!==i){this._width=l,this._height=i;var T=x.style;T.width=l+"px",T.height=i+"px";var D=this._svgDom;D.setAttribute("width",l),D.setAttribute("height",i)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",l),this._backgroundNode.setAttribute("height",i))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(l){var i=this._opts,x=["width","height"][l],O=["clientWidth","clientHeight"][l],T=["paddingLeft","paddingTop"][l],D=["paddingRight","paddingBottom"][l];if(i[x]!=null&&i[x]!=="auto")return parseFloat(i[x]);var R=this.root,k=document.defaultView.getComputedStyle(R);return(R[O]||f(k[x])||f(R.style[x]))-(f(k[T])||0)-(f(k[D])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var l=encodeURIComponent(this._svgDom.outerHTML.replace(/> \r<`));return"data:image/svg+xml;charset=UTF-8,"+l}};function b(l){return function(){y('In SVG mode painter not support method "'+l+'"')}}P.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(l){B.prototype[l]=b(l)});var A=B;Ze.exports=A},"3e3G":function(Ze,we,M){var ue=M("bYtY"),Y=M("QuXc"),P=function(E,_,C,m,c){this.x=E==null?.5:E,this.y=_==null?.5:_,this.r=C==null?.5:C,this.type="radial",this.global=c||!1,Y.call(this,m)};P.prototype={constructor:P},ue.inherits(P,Y);var y=P;Ze.exports=y},"3gBT":function(Ze,we){var M=2311;function ue(){return M++}Ze.exports=ue},"4fz+":function(Ze,we,M){var ue=M("bYtY"),Y=M("1bdT"),P=M("mFDi"),y=function(_){_=_||{},Y.call(this,_);for(var C in _)_.hasOwnProperty(C)&&(this[C]=_[C]);this._children=[],this.__storage=null,this.__dirty=!0};y.prototype={constructor:y,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(_){return this._children[_]},childOfName:function(_){for(var C=this._children,m=0;m=0&&(m.splice(c,0,_),this._doAdd(_))}return this},_doAdd:function(_){_.parent&&_.parent.remove(_),_.parent=this;var C=this.__storage,m=this.__zr;C&&C!==_.__storage&&(C.addToStorage(_),_ instanceof y&&_.addChildrenToStorage(C)),m&&m.refresh()},remove:function(_){var C=this.__zr,m=this.__storage,c=this._children,r=ue.indexOf(c,_);return r<0?this:(c.splice(r,1),_.parent=null,m&&(m.delFromStorage(_),_ instanceof y&&_.delChildrenFromStorage(m)),C&&C.refresh(),this)},removeAll:function(){var _=this._children,C=this.__storage,m,c;for(c=0;c<_.length;c++)m=_[c],C&&(C.delFromStorage(m),m instanceof y&&m.delChildrenFromStorage(C)),m.parent=null;return _.length=0,this},eachChild:function(_,C){for(var m=this._children,c=0;c1e-4){b[0]=a-g,b[1]=h-p,A[0]=a+g,A[1]=h+p;return}if(m[0]=_(S)*g+a,m[1]=E(S)*p+h,c[0]=_(w)*g+a,c[1]=E(w)*p+h,l(b,m,c),i(A,m,c),S=S%C,S<0&&(S=S+C),w=w%C,w<0&&(w=w+C),S>w&&!B?w+=C:SS&&(r[0]=_(T)*g+a,r[1]=E(T)*p+h,l(b,r,b),i(A,r,A))}we.fromPoints=n,we.fromLine=e,we.fromCubic=o,we.fromQuadratic=f,we.fromArc=d},"4qgm":function(Ze,we){Ze.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(Ze,we){Ze.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(Ze,we,M){"use strict";M.d(we,"a",function(){return S});var ue=M("+L6B"),Y=M("2/Rp"),P=M("2qtc"),y=M("kLXV"),E=M("9og8"),_=M("k1fw"),C=M("miYZ"),m=M("tsqr"),c=M("oBTY"),r=M("tJVT"),n=M("DZo9"),e=M("8z0m"),s=M("WmNS"),u=M.n(s),o=M("q1tI"),f=M.n(o),d=M("m3rI"),a=M("wzkS"),h=M("y5JW"),g=M("LtfV"),p=e.a.Dragger;function S(w){var B=[];return w&&w.length>0&&(B=w.map(function(b){return{uid:b.id,id:b.id,name:b.title+h.c+b.filesize,url:b.url,filesize:b.filesize,status:"done",response:{id:b.id}}})),B}we.b=function(w){var B=w.value,b=w.onChange,A=w.action,l=w.className,i=w.maxSize,x=i===void 0?150:i,O=w.title,T=O===void 0?"\u4E0A\u4F20\u9644\u4EF6":O,D=w.showRemoveModal,R=D===void 0?!1:D,k=w.accept,H=k===void 0?"":k,J=w.additionalText,U=w.isDragger,K=w.number,G=K===void 0?1e3:K,N=w.aloneClear,Q=N===void 0?!1:N,X=w.restrict,te=X===void 0?!0:X,oe=Object(o.useState)(!1),me=Object(r.a)(oe,2),se=me[0],_e=me[1],Ae=Object(o.useState)(B||[]),Ee=Object(r.a)(Ae,2),pe=Ee[0],he=Ee[1];Object(o.useEffect)(function(){B&&(he(Object(c.a)(B)),G===(B==null?void 0:B.length)&&_e(!0))},[B]);var ie=function(){setTimeout(function(){pe.pop(),he(Object(c.a)(pe))},500)},fe={multiple:!0,disabled:se,accept:H,withCredentials:!0,fileList:pe,beforeUpload:function(Ie,Fe){var ke=Ie.size/1024/1024;return pe.concat(Fe).length>G?(pe.pop(),he(Object(c.a)(pe)),m.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(G,"\u4E2A\u6587\u4EF6")),Q?Promise.reject():(ie(),!1)):ke=G?_e(!0):_e(!1),he(Object(c.a)(Fe)),Fe=Fe.map(function(ke){var re;if(ke!=null&&(re=ke.response)!==null&&re!==void 0&&re.id){var F;ke.url="/api/attachments/".concat(ke==null||((F=ke.response)===null||F===void 0)?void 0:F.id)}return ke.name.indexOf(h.c)===-1&&(ke.name="".concat(ke.name).concat(h.c).concat(Object(h.a)(ke.size))),Object(_.a)({},ke)}),console.log("info:",Ie),b(Fe)},onRemove:function(){var ce=Object(E.a)(u.a.mark(function Fe(ke){var re;return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(re=function(){var de=Object(E.a)(u.a.mark(function ne(){var le,De;return u.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(le=ke.response?ke.response.id:ke.id,!le){xt.next=8;break}return xt.next=4,Object(a.d)(ke.response?ke.response.id:ke.uid);case 4:return De=xt.sent,xt.abrupt("return",De);case 8:return xt.abrupt("return",!0);case 9:case"end":return xt.stop()}},ne)}));return function(){return de.apply(this,arguments)}}(),!R){W.next=5;break}return W.abrupt("return",new Promise(function(de,ne){y.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:f.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var le=Object(E.a)(u.a.mark(function Xe(){var xt;return u.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,re();case 2:xt=ze.sent,m.b.success("\u5220\u9664\u6210\u529F"),de(!0);case 5:case"end":return ze.stop()}},Xe)}));function De(){return le.apply(this,arguments)}return De}(),onCancel:function(){return de(!1)}})}));case 5:return W.next=7,re();case 7:return W.abrupt("return",W.sent);case 8:case"end":return W.stop()}},Fe)}));function Ie(Fe){return ce.apply(this,arguments)}return Ie}()};function ge(ce){ce.preventDefault(),ce.stopPropagation()}return f.a.createElement("div",{className:"multi-upload ".concat(l||"")},U&&f.a.createElement(p,fe,f.a.createElement("p",{className:"ant-upload-drag-icon"},f.a.createElement(g.a,null)),f.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",f.a.createElement("br",null),f.a.createElement("span",{style:{display:te?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",x,"MB) ")),J),!U&&f.a.createElement(e.a,fe,f.a.createElement(Y.a,{disabled:se},T),f.a.createElement("span",{onClick:ge,style:{marginLeft:10,color:"#FA6400",display:te?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",x,"MB) ")))}},"55Ip":function(Ze,we,M){"use strict";M.d(we,"a",function(){return h}),M.d(we,"b",function(){return b});var ue=M("Ty5D"),Y=M("dI71"),P=M("q1tI"),y=M.n(P),E=M("YS25"),_=M("17x9"),C=M.n(_),m=M("wx14"),c=M("zLVn"),r=M("9R94"),n=function(l){Object(Y.a)(i,l);function i(){for(var O,T=arguments.length,D=new Array(T),R=0;Ry+u&&s>_+u&&s>m+u&&s>r+u||sP+u&&e>E+u&&e>C+u&&e>c+u||e=0||T.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;l.setState({goInputText:""}),k(l.getValidValue())},l.go=function(T){var D=l.state.goInputText;if(D==="")return;(T.keyCode===u.ENTER||T.type==="click")&&(l.setState({goInputText:""}),l.props.quickGo(l.getValidValue()))},l}return Object(E.a)(A,[{key:"getValidValue",value:function(){var i=this.state,x=i.goInputText,O=i.current;return!x||isNaN(x)?O:Number(x)}},{key:"getPageSizeOptions",value:function(){var i=this.props,x=i.pageSize,O=i.pageSizeOptions;return O.some(function(T){return T.toString()===x.toString()})?O:O.concat([x.toString()]).sort(function(T,D){var R=isNaN(Number(T))?0:Number(T),k=isNaN(Number(D))?0:Number(D);return R-k})}},{key:"render",value:function(){var i=this,x=this.props,O=x.pageSize,T=x.locale,D=x.rootPrefixCls,R=x.changeSize,k=x.quickGo,H=x.goButton,J=x.selectComponentClass,U=x.buildOptionText,K=x.selectPrefixCls,G=x.disabled,N=this.state.goInputText,Q="".concat(D,"-options"),X=J,te=null,oe=null,me=null;if(!R&&!k)return null;var se=this.getPageSizeOptions();if(R&&X){var _e=se.map(function(Ae,Ee){return c.a.createElement(X.Option,{key:Ee,value:Ae.toString()},(U||i.buildOptionText)(Ae))});te=c.a.createElement(X,{disabled:G,prefixCls:K,showSearch:!1,className:"".concat(Q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(O||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ee){return Ee.parentNode}},_e)}return k&&(H&&(me=typeof H=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:G,className:"".concat(Q,"-quick-jumper-button")},T.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),oe=c.a.createElement("div",{className:"".concat(Q,"-quick-jumper")},T.jump_to,c.a.createElement("input",{disabled:G,type:"text",value:N,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,me)),c.a.createElement("li",{className:"".concat(Q)},te,oe)}}]),A}(c.a.Component);o.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=o,d=M("N2Kk");function a(){}function h(B){return typeof B=="number"&&isFinite(B)&&Math.floor(B)===B}function g(B,b,A){return A}function p(B,b,A){var l=typeof B=="undefined"?b.pageSize:B;return Math.floor((A.total-1)/l)+1}var S=function(B){Object(_.a)(A,B);var b=Object(C.a)(A);function A(l){var i;Object(y.a)(this,A),i=b.call(this,l),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(p(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(R,k){var H=i.props.prefixCls,J=R||c.a.createElement("button",{type:"button","aria-label":k,className:"".concat(H,"-item-link")});return typeof R=="function"&&(J=c.a.createElement(R,Object(P.a)({},i.props))),J},i.savePaginationNode=function(R){i.paginationNode=R},i.isValid=function(R){return h(R)&&R!==i.state.current},i.shouldDisplayQuickJumper=function(){var R=i.props,k=R.showQuickJumper,H=R.pageSize,J=R.total;return J<=H?!1:k},i.handleKeyDown=function(R){(R.keyCode===u.ARROW_UP||R.keyCode===u.ARROW_DOWN)&&R.preventDefault()},i.handleKeyUp=function(R){var k=i.getValidValue(R),H=i.state.currentInputValue;k!==H&&i.setState({currentInputValue:k}),R.keyCode===u.ENTER?i.handleChange(k):R.keyCode===u.ARROW_UP?i.handleChange(k-1):R.keyCode===u.ARROW_DOWN&&i.handleChange(k+1)},i.changePageSize=function(R){var k=i.state.current,H=p(R,i.state,i.props);k=k>H?H:k,H===0&&(k=i.state.current),typeof R=="number"&&("pageSize"in i.props||i.setState({pageSize:R}),"current"in i.props||i.setState({current:k,currentInputValue:k})),i.props.onShowSizeChange(k,R),"onChange"in i.props&&i.props.onChange&&i.props.onChange(k,R)},i.handleChange=function(R){var k=i.props.disabled,H=R;if(i.isValid(H)&&!k){var J=p(void 0,i.state,i.props);H>J?H=J:H<1&&(H=1),"current"in i.props||i.setState({current:H,currentInputValue:H});var U=i.state.pageSize;return i.props.onChange(H,U),H}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?H-2:0),U=2;U=O?D=O:D=Number(x),D}},{key:"getShowSizeChanger",value:function(){var i=this.props,x=i.showSizeChanger,O=i.total,T=i.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:O>T}},{key:"renderPrev",value:function(i){var x=this.props,O=x.prevIcon,T=x.itemRender,D=T(i,"prev",this.getItemIcon(O,"prev page")),R=!this.hasPrev();return Object(m.isValidElement)(D)?Object(m.cloneElement)(D,{disabled:R}):D}},{key:"renderNext",value:function(i){var x=this.props,O=x.nextIcon,T=x.itemRender,D=T(i,"next",this.getItemIcon(O,"next page")),R=!this.hasNext();return Object(m.isValidElement)(D)?Object(m.cloneElement)(D,{disabled:R}):D}},{key:"render",value:function(){var i=this,x=this.props,O=x.prefixCls,T=x.className,D=x.style,R=x.disabled,k=x.hideOnSinglePage,H=x.total,J=x.locale,U=x.showQuickJumper,K=x.showLessItems,G=x.showTitle,N=x.showTotal,Q=x.simple,X=x.itemRender,te=x.showPrevNextJumpers,oe=x.jumpPrevIcon,me=x.jumpNextIcon,se=x.selectComponentClass,_e=x.selectPrefixCls,Ae=x.pageSizeOptions,Ee=this.state,pe=Ee.current,he=Ee.pageSize,ie=Ee.currentInputValue;if(k===!0&&H<=he)return null;var fe=p(void 0,this.state,this.props),ge=[],ce=null,Ie=null,Fe=null,ke=null,re=null,F=U&&U.goButton,W=K?1:2,de=pe-1>0?pe-1:0,ne=pe+1=W*2&&pe!==1+2&&(ge[0]=Object(m.cloneElement)(ge[0],{className:"".concat(O,"-item-after-jump-prev")}),ge.unshift(ce)),fe-pe>=W*2&&pe!==fe-2&&(ge[ge.length-1]=Object(m.cloneElement)(ge[ge.length-1],{className:"".concat(O,"-item-before-jump-next")}),ge.push(Ie)),yt!==1&&ge.unshift(Fe),Et!==fe&&ge.push(ke)}var rt=null;N&&(rt=c.a.createElement("li",{className:"".concat(O,"-total-text")},N(H,[H===0?0:(pe-1)*he+1,pe*he>H?H:pe*he])));var qe=!this.hasPrev()||!fe,$e=!this.hasNext()||!fe;return c.a.createElement("ul",Object(ue.a)({className:n()(O,T,Object(Y.a)({},"".concat(O,"-disabled"),R)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},le),rt,c.a.createElement("li",{title:G?J.prev_page:null,onClick:this.prev,tabIndex:qe?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(O,"-prev"),Object(Y.a)({},"".concat(O,"-disabled"),qe)),"aria-disabled":qe},this.renderPrev(de)),ge,c.a.createElement("li",{title:G?J.next_page:null,onClick:this.next,tabIndex:$e?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(O,"-next"),Object(Y.a)({},"".concat(O,"-disabled"),$e)),"aria-disabled":$e},this.renderNext(ne)),c.a.createElement(f,{disabled:R,locale:J,rootPrefixCls:O,selectComponentClass:se,selectPrefixCls:_e,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:pe,pageSize:he,pageSizeOptions:Ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:F}))}}],[{key:"getDerivedStateFromProps",value:function(i,x){var O={};if("current"in i&&(O.current=i.current,i.current!==x.current&&(O.currentInputValue=O.current)),"pageSize"in i&&i.pageSize!==x.pageSize){var T=x.current,D=p(i.pageSize,x,i);T=T>D?D:T,"current"in i||(O.current=T,O.currentInputValue=T),O.pageSize=i.pageSize}return O}}]),A}(c.a.Component);S.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:a,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:a,locale:d.a,style:{},itemRender:g,totalBoundaryShowSizeChanger:50};var w=S},"6GrX":function(Ze,we,M){var ue=M("mFDi"),Y=M("Xnb7"),P=M("bYtY"),y=P.getContext,E=P.extend,_=P.retrieve2,C=P.retrieve3,m=P.trim,c={},r=0,n=5e3,e=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,s="12px sans-serif",u={};function o(k,H){u[k]=H}function f(k,H){H=H||s;var J=k+":"+H;if(c[J])return c[J];for(var U=(k+"").split(` `),K=0,G=0,N=U.length;Gn&&(r=0,c={}),r++,c[J]=K,K}function d(k,H,J,U,K,G,N,Q){return N?h(k,H,J,U,K,G,N,Q):a(k,H,J,U,K,G,Q)}function a(k,H,J,U,K,G,N){var Q=O(k,H,K,G,N),X=f(k,H);K&&(X+=K[1]+K[3]);var te=Q.outerHeight,oe=g(0,X,J),me=p(0,te,U),se=new ue(oe,me,X,te);return se.lineHeight=Q.lineHeight,se}function h(k,H,J,U,K,G,N,Q){var X=T(k,{rich:N,truncate:Q,font:H,textAlign:J,textPadding:K,textLineHeight:G}),te=X.outerWidth,oe=X.outerHeight,me=g(0,te,J),se=p(0,oe,U);return new ue(me,se,te,oe)}function g(k,H,J){return J==="right"?k-=H:J==="center"&&(k-=H/2),k}function p(k,H,J){return J==="middle"?k-=H/2:J==="bottom"&&(k-=H),k}function S(k,H,J){var U=H.textPosition,K=H.textDistance,G=J.x,N=J.y;K=K||0;var Q=J.height,X=J.width,te=Q/2,oe="left",me="top";switch(U){case"left":G-=K,N+=te,oe="right",me="middle";break;case"right":G+=K+X,N+=te,me="middle";break;case"top":G+=X/2,N-=K,oe="center",me="bottom";break;case"bottom":G+=X/2,N+=Q+K,oe="center";break;case"inside":G+=X/2,N+=te,oe="center",me="middle";break;case"insideLeft":G+=K,N+=te,me="middle";break;case"insideRight":G+=X-K,N+=te,oe="right",me="middle";break;case"insideTop":G+=X/2,N+=K,oe="center";break;case"insideBottom":G+=X/2,N+=Q-K,oe="center",me="bottom";break;case"insideTopLeft":G+=K,N+=K;break;case"insideTopRight":G+=X-K,N+=K,oe="right";break;case"insideBottomLeft":G+=K,N+=Q-K,me="bottom";break;case"insideBottomRight":G+=X-K,N+=Q-K,oe="right",me="bottom";break}return k=k||{},k.x=G,k.y=N,k.textAlign=oe,k.textVerticalAlign=me,k}function w(k,H,J){var U={textPosition:k,textDistance:J};return S({},U,H)}function B(k,H,J,U,K){if(!H)return"";var G=(k+"").split(` `);K=b(H,J,U,K);for(var N=0,Q=G.length;N=G;Q++)N-=G;var X=f(J,H);return X>N&&(J="",X=0),N=k-X,U.ellipsis=J,U.ellipsisWidth=X,U.contentWidth=N,U.containerWidth=k,U}function A(k,H){var J=H.containerWidth,U=H.font,K=H.contentWidth;if(!J)return"";var G=f(k,U);if(G<=J)return k;for(var N=0;;N++){if(G<=K||N>=H.maxIterations){k+=H.ellipsis;break}var Q=N===0?l(k,K,H.ascCharWidth,H.cnCharWidth):G>0?Math.floor(k.length*K/G):0;k=k.substr(0,Q),G=f(k,U)}return k===""&&(k=H.placeholder),k}function l(k,H,J,U){for(var K=0,G=0,N=k.length;Goe)k="",N=[];else if(me!=null)for(var se=b(me-(J?J[1]+J[3]:0),H,K.ellipsis,{minChar:K.minChar,placeholder:K.placeholder}),_e=0,Ae=N.length;_eU&&D(J,k.substring(U,G)),D(J,K[2],K[1]),U=e.lastIndex}U_e)return{lines:[],width:0,height:0};fe.textWidth=f(fe.text,Ie);var ke=ge.textWidth,re=ke==null||ke==="auto";if(typeof ke=="string"&&ke.charAt(ke.length-1)==="%")fe.percentWidth=ke,te.push(fe),ke=0;else{if(re){ke=fe.textWidth;var F=ge.textBackgroundColor,W=F&&F.image;W&&(W=Y.findExistImage(W),Y.isImageReady(W)&&(ke=Math.max(ke,W.width*Fe/W.height)))}var de=ce?ce[1]+ce[3]:0;ke+=de;var ne=se!=null?se-he:null;ne!=null&&ne1&&arguments[1]!==void 0?arguments[1]:0,o=(C[s[u+0]]+C[s[u+1]]+C[s[u+2]]+C[s[u+3]]+"-"+C[s[u+4]]+C[s[u+5]]+"-"+C[s[u+6]]+C[s[u+7]]+"-"+C[s[u+8]]+C[s[u+9]]+"-"+C[s[u+10]]+C[s[u+11]]+C[s[u+12]]+C[s[u+13]]+C[s[u+14]]+C[s[u+15]]).toLowerCase();if(!_(o))throw TypeError("Stringified UUID is invalid");return o}var r=c;function n(s,u,o){s=s||{};var f=s.random||(s.rng||P)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,u){o=o||0;for(var d=0;d<16;++d)u[o+d]=f[d];return u}return r(f)}var e=we.a=n},"7SHv":function(Ze,we,M){var ue=M("LPTA"),Y=ue.devicePixelRatio,P=M("bYtY"),y=M("SUKs"),E=M("mFDi"),_=M("BPZU"),C=M("Xmg4"),m=M("mLcG"),c=M("Dagg"),r=M("ItGF"),n=1e5,e=314159,s=.01,u=.001;function o(b){return parseInt(b,10)}function f(b){return b?b.__builtin__?!0:!(typeof b.resize!="function"||typeof b.refresh!="function"):!1}var d=new E(0,0,0,0),a=new E(0,0,0,0);function h(b,A,l){return d.copy(b.getBoundingRect()),b.transform&&d.applyTransform(b.transform),a.width=A,a.height=l,!d.intersect(a)}function g(b,A){if(b===A)return!1;if(!b||!A||b.length!==A.length)return!0;for(var l=0;l=0&&l.splice(i,1),b.__hoverMir=null},clearHover:function(b){for(var A=this._hoverElements,l=0;l15)break}}O.__drawIndex=N,O.__drawIndex0&&b>i[0]){for(T=0;Tb);T++);O=l[i[T]]}if(i.splice(T+1,0,b),l[b]=A,!A.virtual)if(O){var R=O.dom;R.nextSibling?D.insertBefore(A.dom,R.nextSibling):D.appendChild(A.dom)}else D.firstChild?D.insertBefore(A.dom,D.firstChild):D.appendChild(A.dom)},eachLayer:function(b,A){var l=this._zlevelList,i,x;for(x=0;x0?s:0),this._needsManuallyCompositing),R.__builtin__||y("ZLevel "+D+" has been used by unkown layer "+R.id),R!==x&&(R.__used=!0,R.__startIndex!==l&&(R.__dirty=!0),R.__startIndex=l,R.incremental?R.__drawIndex=-1:R.__drawIndex=l,A(l),x=R),i.__dirty&&(R.__dirty=!0,R.incremental&&R.__drawIndex<0&&(R.__drawIndex=l))}A(l),this.eachBuiltinLayer(function(k,H){!k.__used&&k.getElementCount()>0&&(k.__dirty=!0,k.__startIndex=k.__endIndex=k.__drawIndex=0),k.__dirty&&k.__drawIndex<0&&(k.__drawIndex=k.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(b){b.clear()},setBackgroundColor:function(b){this._backgroundColor=b},configLayer:function(b,A){if(A){var l=this._layerConfig;l[b]?P.merge(l[b],A,!0):l[b]=A;for(var i=0;i0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function d(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(g){var p=g.key,S=g.children;Object(E.a)(p!=null,"Tree node must have a certain key: [".concat(h).concat(p,"]"));var w=String(p);Object(E.a)(!f.has(w)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(w)),f.set(w,!0),d(S,"".concat(h).concat(w," > "))})}d(o)}function c(o){function f(d){var a=Object(y.a)(d);return a.map(function(h){if(!Object(_.i)(h))return Object(E.a)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var g=h.key,p=h.props,S=p.children,w=Object(P.a)(p,["children"]),B=Object(Y.a)({key:g},w),b=f(S);return b.length&&(B.children=b),B}).filter(function(h){return h})}return f(o)}function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(f===!0?[]:f),a=[];function h(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return g.map(function(S,w){var B=Object(_.h)(p?p.pos:"0",w),b=C(S.key,B),A=Object(Y.a)(Object(Y.a)({},S),{},{parent:p,pos:B,children:null,data:S,isStart:[].concat(Object(ue.a)(p?p.isStart:[]),[w===0]),isEnd:[].concat(Object(ue.a)(p?p.isEnd:[]),[w===g.length-1])});return a.push(A),f===!0||d.has(b)?A.children=h(S.children||[],A):A.children=[],A})}return h(o),a}function n(o,f,d){var a;d?typeof d=="string"?a=function(p){return p[d]}:typeof d=="function"&&(a=function(p){return d(p)}):a=function(p,S){return C(p.key,S)};function h(g,p,S){var w=g?g.children:o,B=g?Object(_.h)(S.pos,p):"0";if(g){var b=a(g,B),A={node:g,index:p,pos:B,key:b,parentPos:S.node?S.pos:null,level:S.level+1};f(A)}w&&w.forEach(function(l,i){h(l,i,{node:g,pos:B,level:S?S.level+1:-1})})}h(null)}function e(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=f.initWrapper,a=f.processEntity,h=f.onProcessFinished,g=arguments.length>2?arguments[2]:void 0,p={},S={},w={posEntities:p,keyEntities:S};return d&&(w=d(w)||w),n(o,function(B){var b=B.node,A=B.index,l=B.pos,i=B.key,x=B.parentPos,O=B.level,T={node:b,index:A,key:i,pos:l,level:O},D=C(i,l);p[l]=T,S[D]=T,T.parent=p[x],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),a&&a(T,w)},g),h&&h(w),w}function s(o,f){var d=f.expandedKeys,a=f.selectedKeys,h=f.loadedKeys,g=f.loadingKeys,p=f.checkedKeys,S=f.halfCheckedKeys,w=f.dragOverNodeKey,B=f.dropPosition,b=f.keyEntities,A=b[o],l={eventKey:o,expanded:d.indexOf(o)!==-1,selected:a.indexOf(o)!==-1,loaded:h.indexOf(o)!==-1,loading:g.indexOf(o)!==-1,checked:p.indexOf(o)!==-1,halfChecked:S.indexOf(o)!==-1,pos:String(A?A.pos:""),dragOver:w===o&&B===0,dragOverGapTop:w===o&&B===-1,dragOverGapBottom:w===o&&B===1};return l}function u(o){var f=o.data,d=o.expanded,a=o.selected,h=o.checked,g=o.loaded,p=o.loading,S=o.halfChecked,w=o.dragOver,B=o.dragOverGapTop,b=o.dragOverGapBottom,A=o.pos,l=o.active,i=Object(Y.a)(Object(Y.a)({},f),{},{expanded:d,selected:a,checked:h,loaded:g,loading:p,halfChecked:S,dragOver:w,dragOverGapTop:B,dragOverGapBottom:b,pos:A,active:l});return"props"in i||Object.defineProperty(i,"props",{get:function(){return Object(E.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),o}}),i}},"8Bcu":function(Ze,we,M){Ze.exports={flex_box_center:"flex_box_center___3isCS",flex_space_between:"flex_space_between___1zEgQ",flex_box_vertical_center:"flex_box_vertical_center___2IyXM",flex_box_center_end:"flex_box_center_end___1r0jY",flex_box_column:"flex_box_column___2SHBj",rightWrap:"rightWrap___2XCk6",qrCode:"qrCode___3q9Z0",cardTop:"cardTop___2h9UR",cardTop2:"cardTop2___3KQ3O",card:"card___1aOV1",flexRow:"flexRow___DeBf7",flexRowAbout:"flexRowAbout___3sD2f",skillWrap:"skillWrap___pwM-3",skillTopWrap:"skillTopWrap___2oSn4",skillContentWrap:"skillContentWrap___239Us",skillContentWrapMin:"skillContentWrapMin___2KWd4",skillContentWrapMax:"skillContentWrapMax___NVKFP",skillContentIcon:"skillContentIcon___5mU6F",skillContentIconNoStatus:"skillContentIconNoStatus___1_V1l",skillExpandAllWrap:"skillExpandAllWrap___1HSf6",skillExpandAllContent:"skillExpandAllContent___3kY9W",memberItem:"memberItem___3cgRI",radius:"radius___2fxUa",memberItemContent:"memberItemContent___19hpK",directionItemWrap:"directionItemWrap___3Zm3f",groupActionWrap:"groupActionWrap___N0Epv",divabout:"divabout___psa-7",classButton:"classButton___30JJg",bg28e:"bg28e___2DyZD",bgGray:"bgGray___2PZB0",price:"price___2sFWj",li1:"li1___2y74c",discounts:"discounts___2JS39",realPrice:"realPrice___2kTeg",lineationPrice:"lineationPrice___2LeZ4",li2:"li2___2rpKJ"}},"8EBN":function(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){"use strict";ue.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 Y=0;Y-1&&y.substring(C+1,y.length);if(m)return ue.findModeByExtension(m)},ue.findModeByName=function(y){y=y.toLowerCase();for(var E=0;E=U&&kG?"true":"false","aria-posinset":G+1,"aria-setsize":N,tabIndex:H?-1:0},m.a.createElement("div",{className:"".concat(J,"-first")},X),m.a.createElement("div",{className:"".concat(J,"-second")},X)));return K&&(te=K(te,this.props)),te}}]),x}(m.a.Component);function h(l,i){var x=Object.keys(l);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(l);i&&(O=O.filter(function(T){return Object.getOwnPropertyDescriptor(l,T).enumerable})),x.push.apply(x,O)}return x}function g(l){for(var i=1;i0&&!N||k===e.a.RIGHT&&Q>0&&N?(U?Q-=.5:Q-=1,T.changeValue(Q),R.preventDefault()):k===e.a.LEFT&&QN/2||!J&&D-G=ye.length?Ce.slice(ye.length):Ce}).join(` `)}var d=[],a=["
    "],h=new u.a.Renderer,g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){d.length=0,a=["
      "]}var S={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(ve,z,Z,ye){if(z>=ve.length||ve[z].level<=Z)return z;var Ce=ve[z];ye.push("
    • "+Ce.text+""),z++;var be=[];return z=w(ve,z,Ce.level,be),be.length>0&&(ye.push("
        "),be.forEach(function(ht){ye.push(ht)}),ye.push("
      ")),ye.push("
    • "),z=w(ve,z,Z,ye),z}function B(){return w(d,0,0,a),a.push("
    "),a.join("")}var b={heading:function(z){var Z=g.exec(z);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(z){var Z=this.rules.block.fences.exec(z);if(Z){var ye=Z[0],Ce=f(ye,Z[3]||""),be=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(be)>=0){var ht=i(),Nt=Ce;Ce=ht,x[ht]={type:"block",expression:Nt}}return{type:"code",raw:ye,lang:be,text:Ce}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,l=0,i=function(){return"__special_katext_id_".concat(l++,"__")},x={};function O(){return x}function T(){l=0,x={}}function D(ve){return ve=ve.replace(A,function(z,Z){var ye=i();return x[ye]={type:"inline",expression:Z},ye}),ve}var R=h.listitem;h.listitem=function(ve){return R(D(ve))};var k=h.paragraph;h.paragraph=function(ve){return k(D(ve))};var H=h.tablecell;h.tablecell=function(ve,z){return H(D(ve),z)},h.code=function(ve,z,Z){var ye=(z||"").match(/\S*/)[0];return ye?["latex","katex","math"].indexOf(ye)>=0?"

    ".concat(ve,"

    "):'
    ').concat(Z?ve:Object(o.escape)(ve,!0),`
    `):'
    '+(Z?ve:Object(o.escape)(ve,!0))+"
    "},h.heading=function(ve,z,Z){var ye=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:ye,level:z,text:ve}),"'+ve+""},u.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),u.a.use({tokenizer:b,renderer:h});var J=u.a,U=M("SJMd"),K=M("ulZh"),G=M.n(K),N=M("m3rI"),Q=M("Oy/b"),X=M("p5ED"),te=M("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 oe=function(ve,z){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ye){Z.__proto__=ye}||function(Z,ye){for(var Ce in ye)Object.prototype.hasOwnProperty.call(ye,Ce)&&(Z[Ce]=ye[Ce])})(ve,z)};function me(ve,z){function Z(){this.constructor=ve}oe(ve,z),ve.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function se(ve,z,Z,ye){return new(Z||(Z=Promise))(function(Ce,be){function ht(pn){try{sn(ye.next(pn))}catch(zt){be(zt)}}function Nt(pn){try{sn(ye.throw(pn))}catch(zt){be(zt)}}function sn(pn){var zt;pn.done?Ce(pn.value):(zt=pn.value,zt instanceof Z?zt:new Z(function(qn){qn(zt)})).then(ht,Nt)}sn((ye=ye.apply(ve,z||[])).next())})}function _e(ve,z){var Z,ye,Ce,be,ht={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return be={next:Nt(0),throw:Nt(1),return:Nt(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Nt(sn){return function(pn){return function(zt){if(Z)throw new TypeError("Generator is already executing.");for(;ht;)try{if(Z=1,ye&&(Ce=2&zt[0]?ye.return:zt[0]?ye.throw||((Ce=ye.return)&&Ce.call(ye),0):ye.next)&&!(Ce=Ce.call(ye,zt[1])).done)return Ce;switch(ye=0,Ce&&(zt=[2&zt[0],Ce.value]),zt[0]){case 0:case 1:Ce=zt;break;case 4:return ht.label++,{value:zt[1],done:!1};case 5:ht.label++,ye=zt[1],zt=[0];continue;case 7:zt=ht.ops.pop(),ht.trys.pop();continue;default:if(!(Ce=ht.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||zt[0]!==6&&zt[0]!==2)){ht=0;continue}if(zt[0]===3&&(!Ce||zt[1]>Ce[0]&&zt[1]',"select"),this.addActionButton(ye,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ye,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ye,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ye,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ye,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ye,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ye,'',"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(be){var ht=document.createElement("div");ht.className=""+Z.toolbarButtonStyleClass.name,ht.setAttribute("data-type-name",be.typeName),ht.innerHTML=be.icon,ht.addEventListener("click",function(){Z.markerToolbarButtonClicked(ht,be)}),Z.buttons.push(ht),Z.markerButtons.push(ht)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ce=document.createElement("div");Ce.className=this.toolbarBlockStyleClass.name,Ce.style.whiteSpace="nowrap",Ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ce),this.addActionButton(Ce,'',"render"),this.addActionButton(Ce,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ve.prototype.addButtonClickListener=function(z){this.buttonClickListeners.push(z)},ve.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},ve.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ve.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z0&&this.buttonClickListeners.forEach(function(ye){return ye("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},ve.prototype.actionToolbarButtonClicked=function(z,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ve.prototype.setActiveButton=function(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ve.prototype.setActiveMarkerButton=function(z){var Z=this.markerButtons.find(function(ye){return ye.getAttribute("data-type-name")===z});Z&&this.setActiveButton(Z)},ve.prototype.setCurrentMarker=function(z){var Z=this;this.currentMarker=z,this.buttons.filter(function(ye){return/delete|notes/.test(ye.getAttribute("data-action"))}).forEach(function(ye){Z.currentMarker===void 0?(ye.style.fillOpacity="0.4",ye.style.pointerEvents="none"):(ye.style.fillOpacity="1",ye.style.pointerEvents="all")})},ve}(),Fe=function(){function ve(z,Z,ye,Ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=Z,this.uiStyleSettings=ye,this.styles=Ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ve.prototype.addStyles=function(){var z;this.toolboxStyleClass=this.styles.addClass(new ce("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 ce("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var Z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ce("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ce("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ce("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 ce("toolbox-panel-row_colors",` background-color: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new ce("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px; padding: `+Z+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ce("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ce("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new ge("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new ge("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ve.prototype.show=function(z){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ve.prototype.setPanelButtons=function(z){var Z,ye,Ce=this;this.panels=z,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(be){var ht;be.uiStyleSettings=Ce.uiStyleSettings;var Nt=document.createElement("div");Nt.className=Ce.toolboxButtonStyleClass.name+" "+((ht=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ht!==void 0?ht:Ce.toolboxButtonStyleColorsClass.name),Nt.innerHTML=be.icon,Nt.title=be.title,Nt.addEventListener("click",function(){Ce.panelButtonClick(be)}),Ce.panelButtons.push(Nt),Ce.buttonRow.appendChild(Nt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ve.prototype.panelButtonClick=function(z){var Z=this,ye=-1;if(z!==this.activePanel){ye=this.panels.indexOf(z),this.panelRow.innerHTML="";var Ce=z.getUi();Ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ce),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=z}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Z.displayMode==="inline"?Z.panelRow.style.display="none":Z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(be,ht){var Nt,sn;be.className=Z.toolboxButtonStyleClass.name+" "+(ht===ye?""+((Nt=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Nt!==void 0?Nt:Z.toolboxActiveButtonStyleColorsClass.name):""+((sn=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:Z.toolboxButtonStyleColorsClass.name))})},ve}(),ke=function(ve,z){this.title=ve,this.icon=z},re=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'')||this;return ht.colors=[],ht.addTransparent=!1,ht.colorBoxes=[],ht.colors=ye,ht.currentColor=Ce,ht.setCurrentColor=ht.setCurrentColor.bind(ht),ht.getColorBox=ht.getColorBox.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.whiteSpace="nowrap",this.colors.forEach(function(Ce){var be=Z.getColorBox(Ce);ye.appendChild(be),Z.colorBoxes.push(be)}),ye},z.prototype.getColorBox=function(Z){var ye=this,Ce=this.uiStyleSettings.toolbarHeight/4,be=this.uiStyleSettings.toolbarHeight-Ce,ht=document.createElement("div");ht.style.display="inline-block",ht.style.boxSizing="content-box",ht.style.width=be-2+"px",ht.style.height=be-2+"px",ht.style.padding="1px",ht.style.marginRight="2px",ht.style.marginBottom="2px",ht.style.borderWidth="2px",ht.style.borderStyle="solid",ht.style.borderRadius=(be+2)/2+"px",ht.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ht.addEventListener("click",function(){ye.setCurrentColor(Z,ht)});var Nt=document.createElement("div");return Nt.style.display="inline-block",Nt.style.width=be-2+"px",Nt.style.height=be-2+"px",Nt.style.backgroundColor=Z,Nt.style.borderRadius=be/2+"px",Z==="transparent"&&(Nt.style.fill=this.uiStyleSettings.toolboxAccentColor,Nt.innerHTML=` `),ht.appendChild(Nt),ht},z.prototype.setCurrentColor=function(Z,ye){var Ce=this;this.currentColor=Z,this.colorBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},z}(ke),F=function(){function ve(z,Z,ye){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=Z,this.globalSettings=ye,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ve.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ve.prototype.ownsTarget=function(z){return!1},Object.defineProperty(ve.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ve.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ve.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ve.prototype.pointerDown=function(z,Z){},ve.prototype.dblClick=function(z,Z){},ve.prototype.manipulate=function(z){},ve.prototype.pointerUp=function(z){this.stateChanged()},ve.prototype.dispose=function(){},ve.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},ve.prototype.getState=function(){return{typeName:ve.typeName,state:this.state,notes:this.notes}},ve.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},ve.prototype.scale=function(z,Z){},ve.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},ve.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},ve.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},ve.typeName="MarkerBase",ve}(),W=function(){function ve(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ve.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},ve}(),de=function(){function ve(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},ve}(),ne=function(){function ve(){}return ve.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},ve.toSVGMatrix=function(z,Z){return z.a=Z.a,z.b=Z.b,z.c=Z.c,z.d=Z.d,z.e=Z.e,z.f=Z.f,z},ve}(),le=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.left=0,be.top=0,be.width=0,be.height=0,be.defaultSize={x:50,y:20},be.offsetX=0,be.offsetY=0,be.rotationAngle=0,be.CB_DISTANCE=10,be._suppressMarkerCreateEvent=!1,be.container.transform.baseVal.appendItem(Ee.createTransform()),be.setupControlBox(),be}return me(z,ve),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var ye=Ee.createTransform();this._visual.transform.baseVal.appendItem(ye)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(Z){return!!ve.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.left=Z.x,this.top=Z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ce=this.unrotatePoint(Z);if(this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.offsetX=Ce.x-this.left,this.offsetY=Ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ye),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye)){this.activeGrip=this.rotatorGrip;var be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=be.x-this.width/2,this.top=be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ht=this.container.transform.baseVal.getItem(0);ht.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ht,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function(Z){var ye=this.state;ve.prototype.pointerUp.call(this,Z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Z),this._state="select",ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},z.prototype.manipulate=function(Z){var ye=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(ye.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ye.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ye):this.state==="rotate"&&this.rotate(Z)},z.prototype.resize=function(Z){var ye=this.manipulationStartLeft,Ce=this.manipulationStartWidth,be=this.manipulationStartTop,ht=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ye=this.manipulationStartLeft+Z.x-this.manipulationStartX,Ce=this.manipulationStartWidth+this.manipulationStartLeft-ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ce=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:be=this.manipulationStartTop+Z.y-this.manipulationStartY,ht=this.manipulationStartHeight+this.manipulationStartTop-be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ht=this.manipulationStartHeight+Z.y-this.manipulationStartY}Ce>=0?(this.left=ye,this.width=Ce):(this.left=ye+Ce,this.width=-Ce),ht>=0?(this.top=be,this.height=ht):(this.top=be+ht,this.height=-ht),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var ye=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*ye,this.applyRotation()}},z.prototype.applyRotation=function(){var Z=this.container.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Z,0)},z.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ye=this.container.getCTM(),Ce=Ee.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(ye)).x,y:Ce.y}},z.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ye=this.container.getCTM();ye=ye.inverse();var Ce=Ee.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(ye)).x,y:Ce.y}},z.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var Z=Ee.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),this.container.appendChild(this.controlBox),this.controlRect=Ee.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=Ee.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 W,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var Z=this.controlBox.transform.baseVal.getItem(0);Z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Z,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()},z.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()},z.prototype.createGrip=function(){var Z=new de;return Z.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,ye=-Z/2,Ce=ye,be=(this.width+this.CB_DISTANCE)/2-Z/2,ht=(this.height+this.CB_DISTANCE)/2-Z/2,Nt=this.height+this.CB_DISTANCE-Z/2,sn=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,ye,Ce),this.positionGrip(this.controlGrips.topCenter.visual,be,Ce),this.positionGrip(this.controlGrips.topRight.visual,sn,Ce),this.positionGrip(this.controlGrips.centerLeft.visual,ye,ht),this.positionGrip(this.controlGrips.centerRight.visual,sn,ht),this.positionGrip(this.controlGrips.bottomLeft.visual,ye,Nt),this.positionGrip(this.controlGrips.bottomCenter.visual,be,Nt),this.positionGrip(this.controlGrips.bottomRight.visual,sn,Nt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,be,Ce-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(Z,ye,Ce){var be=Z.transform.baseVal.getItem(0);be.setTranslate(ye,Ce),Z.transform.baseVal.replaceItem(be,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ne.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ne.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ve.prototype.getState.call(this))},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.left=ye.left,this.top=ye.top,this.width=ye.width,this.height=ye.height,this.rotationAngle=ye.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ne.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ne.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ye.containerTransformMatrix))},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye);var Ce=this.rotatePoint({x:this.left,y:this.top}),be=this.unrotatePoint({x:Ce.x*Z,y:Ce.y*ye});this.left=be.x,this.top=be.y,this.width=this.width*Z,this.height=this.height*ye,this.adjustControlBox()},z}(F),De=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.opacity=1,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.createVisual=be.createVisual.bind(be),be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},z.prototype.createVisual=function(){this.visual=Ee.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)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.manipulate=function(Z){ve.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.setSize()},z.prototype.setSize=function(){ve.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Z){ve.prototype.pointerUp.call(this,Z),this.setSize()},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},z.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ve.prototype.getState.call(this))},z.prototype.restoreState=function(Z){var ye=Z;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.setSize()},z.title="Rectangle marker",z}(le),Xe=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'')||this;return ht.widths=[],ht.widthBoxes=[],ht.widths=ye,ht.currentWidth=Ce,ht.setCurrentWidth=ht.setCurrentWidth.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.widths.forEach(function(Ce){var be=document.createElement("div");be.style.display="flex",be.style.flexGrow="2",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=Ce===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentWidth(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.innerText=Ce.toString(),ht.style.marginRight="5px",be.appendChild(ht);var Nt=document.createElement("div");Nt.style.minHeight="20px",Nt.style.flexGrow="2",Nt.style.display="flex",Nt.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=Ce+"px solid "+Z.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",Nt.appendChild(sn),be.appendChild(Nt),Z.widthBoxes.push(be)}),ye},z.prototype.setCurrentWidth=function(Z,ye){var Ce=this;this.currentWidth=Z,this.widthBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(ke),xt=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'')||this;return ht.styles=[],ht.styleBoxes=[],ht.styles=ye,ht.currentStyle=Ce,ht.setCurrentStyle=ht.setCurrentStyle.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.styles.forEach(function(Ce){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/Z.styles.length-5+"%",be.style.borderColor=Ce===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentStyle(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.overflow="hidden";var Nt=` `;ht.innerHTML=Nt,be.appendChild(ht),Z.styleBoxes.push(be)}),ye},z.prototype.setCurrentStyle=function(Z,ye){var Ce=this;this.currentStyle=Z,this.styleBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(ke),Ke=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokeColor=Ce.defaultColor,be.strokeWidth=Ce.defaultStrokeWidth,be.strokeDasharray=Ce.defaultStrokeDasharray,be.strokePanel=new re("Line color",Ce.defaultColorSet,Ce.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new xt("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return me(z,ve),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="FrameMarker",z.title="Frame marker",z.icon='',z}(De),ze=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},yt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.x1=0,be.y1=0,be.x2=0,be.y2=0,be.defaultLength=50,be.manipulationStartX=0,be.manipulationStartY=0,be.manipulationStartX1=0,be.manipulationStartY1=0,be.manipulationStartX2=0,be.manipulationStartY2=0,be.setupControlBox(),be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!!ve.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.manipulationStartX=Z.x,this.manipulationStartY=Z.y,this.state==="new"&&(this.x1=Z.x,this.y1=Z.y,this.x2=Z.x,this.y2=Z.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(ye)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ye)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(Z){var ye=this.state;ve.prototype.pointerUp.call(this,Z),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(Z),this._state="select",ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(Z){this.state==="creating"?this.resize(Z):this.state==="move"?(this.x1=this.manipulationStartX1+Z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Z)},z.prototype.resize=function(Z){switch(this.activeGrip){case this.grip1:this.x1=Z.x,this.y1=Z.y;break;case this.grip2:case void 0:this.x2=Z.x,this.y2=Z.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var Z=new de;return Z.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.prototype.positionGrips=function(){var Z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Z/2,this.y1-Z/2),this.positionGrip(this.grip2.visual,this.x2-Z/2,this.y2-Z/2)},z.prototype.positionGrip=function(Z,ye,Ce){var be=Z.transform.baseVal.getItem(0);be.setTranslate(ye,Ce),Z.transform.baseVal.replaceItem(be,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ve.prototype.getState.call(this))},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.x1=ye.x1,this.y1=ye.y1,this.x2=ye.x2,this.y2=ye.y2},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.x1=this.x1*Z,this.y1=this.y1*ye,this.x2=this.x2*Z,this.y2=this.y2*ye,this.adjustVisual(),this.adjustControlBox()},z}(F),Et=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.strokeColor=Ce.defaultColor,be.strokeWidth=Ce.defaultStrokeWidth,be.strokeDasharray=Ce.defaultStrokeDasharray,be.strokePanel=new re("Line color",Ce.defaultColorSet,Ce.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new xt("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.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)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.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()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='',z}(yt),ct=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'')||this;return ht.fonts=[],ht.fontBoxes=[],ht.fonts=ye,ht.currentFont=Ce,ht.setCurrentFont=ht.setCurrentFont.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.flexGrow="2",this.fonts.forEach(function(Ce){var be=document.createElement("div");be.style.display="inline-block",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/Z.fonts.length-5+"%",be.style.borderColor=Ce===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentFont(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.style.display="flex",ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.fontFamily=Ce,ht.style.overflow="hidden";var Nt=document.createElement("div");Nt.style.whiteSpace="nowrap",Nt.style.overflow="hidden",Nt.style.textOverflow="ellipsis",Nt.innerHTML="The quick brown fox jumps over the lazy dog",ht.appendChild(Nt),be.appendChild(ht),Z.fontBoxes.push(be)}),ye},z.prototype.setCurrentFont=function(Z,ye){var Ce=this;this.currentFont=Z,this.fontBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(ke),lt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.color="transparent",be.padding=5,be.DEFAULT_TEXT="your text here",be.text=be.DEFAULT_TEXT,be.isMoved=!1,be.color=Ce.defaultColor,be.fontFamily=Ce.defaultFontFamily,be.defaultSize={x:100,y:30},be.setColor=be.setColor.bind(be),be.setFont=be.setFont.bind(be),be.renderText=be.renderText.bind(be),be.sizeText=be.sizeText.bind(be),be.textEditDivClicked=be.textEditDivClicked.bind(be),be.showTextEditor=be.showTextEditor.bind(be),be.setSize=be.setSize.bind(be),be.positionTextEditor=be.positionTextEditor.bind(be),be.colorPanel=new re("Color",Ce.defaultColorSet,Ce.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.fontFamilyPanel=new ct("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be}return me(z,ve),z.prototype.ownsTarget=function(Z){if(ve.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var ye=!1;return this.textElement.childNodes.forEach(function(Ce){Ce===Z&&(ye=!0)}),ye},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.renderText=function(){var Z=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(ye){Z.textElement.appendChild(Ee.createTSpan(ye.trim()===""?" ":ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),ye=1;if(Z.width>0&&Z.height>0){var Ce=(1*this.width-this.width*this.padding*2/100)/Z.width,be=(1*this.height-this.height*this.padding*2/100)/Z.height;ye=Math.min(Ce,be)}return ye},z.prototype.getTextPosition=function(Z){var ye=this.textElement.getBBox(),Ce=0,be=0;return ye.width>0&&ye.height>0&&(Ce=(this.width-ye.width*Z)/2,be=this.height/2-ye.height*Z/2),{x:Ce,y:be}},z.prototype.sizeText=function(){var Z=this.textElement.getBBox(),ye=this.getTextScale(),Ce=this.getTextPosition(ye);Ce.y-=Z.y*ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ce.x+"px, "+Ce.y+"px) scale("+ye+", "+ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ce.x,Ce.y),this.textElement.transform.baseVal.getItem(1).setScale(ye,ye))},z.prototype.manipulate=function(Z){ve.prototype.manipulate.call(this,Z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Z.x-this.pointerDownPoint.x)>5||Math.abs(Z.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){ve.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(Z){var ye=this.state;ye==="creating"&&(this._suppressMarkerCreateEvent=!0),ve.prototype.pointerUp.call(this,Z),this.setSize(),(ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var Z=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(ye){ye.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ye=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&ye>.9;)ye-=.1,Z.textEditor.style.fontSize=Math.max(ye,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ye){ye.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ye){if(ye.clipboardData){var Ce=ye.clipboardData.getData("text"),be=window.getSelection();if(!be.rangeCount)return!1;be.deleteFromDocument(),be.getRangeAt(0).insertNode(document.createTextNode(Ce)),ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Z.textEditDivClicked(Z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ce=this.textElement.getBBox(),be={x:Ce.width*Z,y:Ce.height*Z};ye.x-=be.x/2,ye.y-=be.y/2,this.textEditor.style.top=ye.y+"px",this.textEditor.style.left=ye.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ye.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(Z){this.text=Z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){ve.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ve.prototype.deselect.call(this)},z.prototype.dblClick=function(Z,ye){ve.prototype.dblClick.call(this,Z,ye),this.showTextEditor()},z.prototype.setColor=function(Z){this.textElement&&Ee.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},z.prototype.setFont=function(Z){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var ye=Z;this.color=ye.color,this.fontFamily=ye.fontFamily,this.padding=ye.padding,this.text=ye.text,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='',z}(le),rt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.color="transparent",be.lineWidth=3,be.drawing=!1,be.pixelRatio=1,be.color=Ce.defaultColor,be.lineWidth=Ce.defaultStrokeWidth,be.pixelRatio=Ce.freehandPixelRatio,be.setColor=be.setColor.bind(be),be.addCanvas=be.addCanvas.bind(be),be.finishCreation=be.finishCreation.bind(be),be.setLineWidth=be.setLineWidth.bind(be),be.colorPanel=new re("Color",Ce.defaultColorSet,Ce.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.lineWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.lineWidthPanel.onWidthChanged=be.setLineWidth,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var Z=Ee.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){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(Z.x,Z.y),this.drawing=!0):ve.prototype.pointerDown.call(this,Z,ye)},z.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):ve.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ve.prototype.pointerUp.call(this,Z)},z.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)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ce=ye[0],be=ye[1],ht=ye[2],Nt=ye[3],sn=!1,pn=0;pn0&&(sn=!0,pnNt&&(Nt=pn),zt>ht&&(ht=zt));if(sn){this.left=Ce/this.pixelRatio,this.top=be/this.pixelRatio,this.width=(ht-Ce)/this.pixelRatio,this.height=(Nt-be)/this.pixelRatio;var qn=document.createElement("canvas");qn.width=ht-Ce,qn.height=Nt-be,qn.getContext("2d").putImageData(this.canvasContext.getImageData(Ce,be,ht-Ce,Nt-be),0,0),this.drawingImgUrl=qn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},z.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){this.createVisual(),ve.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='',z}(le),qe=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,Ce||'')||this;return be.typeBoxes=[],be.currentType=ye,be.setCurrentType=be.setCurrentType.bind(be),be}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2";for(var Ce=function(Nt){var sn="both";switch(Nt){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var pn=document.createElement("div");if(pn.style.display="flex",pn.style.flexGrow="2",pn.style.alignItems="center",pn.style.justifyContent="space-between",pn.style.padding="5px",pn.style.borderWidth="2px",pn.style.borderStyle="solid",pn.style.borderColor=sn===be.currentType?be.uiStyleSettings.toolboxAccentColor:"transparent",pn.addEventListener("click",function(){Z.setCurrentType(sn,pn)}),ye.appendChild(pn),sn==="both"||sn==="start"){var zt=document.createElement("div");zt.style.display="flex",zt.style.alignItems="center",zt.style.minHeight="20px",zt.innerHTML=` `,zt.style.marginLeft="5px",pn.appendChild(zt)}var qn=document.createElement("div");qn.style.display="flex",qn.style.alignItems="center",qn.style.minHeight="20px",qn.style.flexGrow="2";var Un=document.createElement("hr");if(Un.style.minWidth="20px",Un.style.border="0px",Un.style.borderTop="3px solid "+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee"),Un.style.flexGrow="2",qn.appendChild(Un),pn.appendChild(qn),sn==="both"||sn==="end"){var rr=document.createElement("div");rr.style.display="flex",rr.style.alignItems="center",rr.style.minHeight="20px",rr.innerHTML=` `,rr.style.marginRight="5px",pn.appendChild(rr)}be.typeBoxes.push(pn)},be=this,ht=0;ht<4;ht++)Ce(ht);return ye},z.prototype.setCurrentType=function(Z,ye){var Ce=this;this.currentType=Z,this.typeBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(ke),$e=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.arrowType="end",be.arrowBaseHeight=10,be.arrowBaseWidth=10,be.getArrowPoints=be.getArrowPoints.bind(be),be.setArrowType=be.setArrowType.bind(be),be.arrowTypePanel=new qe("Arrow type","end"),be.arrowTypePanel.onArrowTypeChanged=be.setArrowType,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},z.prototype.getArrowPoints=function(Z,ye){var Ce=this.arrowBaseWidth+2*this.strokeWidth,be=this.arrowBaseHeight+2*this.strokeWidth;return Z-Ce/2+","+(ye+be/2)+" "+Z+","+(ye-be/2)+" "+(Z+Ce/2)+","+(ye+be/2)},z.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ve.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",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.arrow1.transform.baseVal.getItem(0);ye.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ye,0);var Ce=this.arrow2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ce,0)}},z.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.arrowType=ye.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='',z}(Et),Pe=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.fillColor=Ce.defaultFillColor,be.strokeWidth=0,be.fillPanel=new re("Color",Ce.defaultColorSet,Ce.defaultFillColor),be.fillPanel.onColorChanged=be.setFillColor,be}return me(z,ve),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="CoverMarker",z.title="Cover marker",z.icon='',z}(De),je=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'')||this;return ht.opacities=[],ht.opacityBoxes=[],ht.opacities=ye,ht.currentOpacity=Ce,ht.setCurrentOpacity=ht.setCurrentOpacity.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",ye.style.justifyContent="space-between",this.opacities.forEach(function(Ce){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="center",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=Ce===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentOpacity(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.innerText=100*Ce+"%",be.appendChild(ht),Z.opacityBoxes.push(be)}),ye},z.prototype.setCurrentOpacity=function(Z,ye){var Ce=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(ke),Ne=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.setOpacity=be.setOpacity.bind(be),be.fillColor=Ce.defaultHighlightColor,be.strokeWidth=0,be.opacity=Ce.defaultHighlightOpacity,be.fillPanel=new re("Color",Ce.defaultColorSet,be.fillColor),be.fillPanel.onColorChanged=be.setFillColor,be.opacityPanel=new je("Opacity",Ce.defaultOpacitySteps,be.opacity),be.opacityPanel.onOpacityChanged=be.setOpacity,be}return me(z,ve),z.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='',z}(Pe),et='',mt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.bgColor="transparent",be.tipPosition={x:0,y:0},be.tipBase1Position={x:0,y:0},be.tipBase2Position={x:0,y:0},be.tipMoving=!1,be.color=Ce.defaultStrokeColor,be.bgColor=Ce.defaultFillColor,be.fontFamily=Ce.defaultFontFamily,be.defaultSize={x:100,y:30},be.setBgColor=be.setBgColor.bind(be),be.getTipPoints=be.getTipPoints.bind(be),be.positionTip=be.positionTip.bind(be),be.setTipPoints=be.setTipPoints.bind(be),be.colorPanel=new re("Text color",Ce.defaultColorSet,be.color,''),be.colorPanel.onColorChanged=be.setColor,be.bgColorPanel=new re("Fill color",Ce.defaultColorSet,be.bgColor,et),be.bgColorPanel.onColorChanged=be.setBgColor,be.fontFamilyPanel=new ct("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be.tipGrip=new de,be.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),be.controlBox.appendChild(be.tipGrip.visual),be}return me(z,ve),z.prototype.ownsTarget=function(Z){return ve.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},z.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(Z,ye){this.state==="new"&&ve.prototype.pointerDown.call(this,Z,ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ve.prototype.pointerDown.call(this,Z,ye)},z.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ve.prototype.pointerUp.call(this,Z);else{var ye=this.state==="creating";ve.prototype.pointerUp.call(this,Z),this.setTipPoints(ye),this.positionTip()}},z.prototype.manipulate=function(Z){if(this.tipMoving){var ye=this.unrotatePoint(Z);this.tipPosition={x:ye.x-this.manipulationStartLeft,y:ye.y-this.manipulationStartTop},this.positionTip()}else ve.prototype.manipulate.call(this,Z)},z.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",Z]]),Ee.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},z.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},z.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var ye=Math.min(this.height/2,15),Ce=this.height/5;Z&&(this.tipPosition={x:ye+Ce/2,y:this.height+20});var be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?be.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.tip1.transform.baseVal.getItem(0);ye.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ye,0);var Ce=this.tip2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ce,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='',z}(Et),Xt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokePanel.colors=Ce.defaultColorSet,be.fillColor="transparent",be}return me(z,ve),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='',z}(At),un=function(){function ve(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ve.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ve.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},ve.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},ve.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ve.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ve.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ve}(),jt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.curveX=0,be.curveY=0,be.manipulationStartCurveX=0,be.manipulationStartCurveY=0,be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.positionGrips=be.positionGrips.bind(be),be.addControlGrips=be.addControlGrips.bind(be),be.adjustVisual=be.adjustVisual.bind(be),be.setupControlBox=be.setupControlBox.bind(be),be.resize=be.resize.bind(be),be.strokeColor=Ce.defaultColor,be.strokeWidth=Ce.defaultStrokeWidth,be.strokeDasharray=Ce.defaultStrokeDasharray,be.strokePanel=new re("Line color",Ce.defaultColorSet,Ce.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new xt("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.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)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Z.x,this.curveY=Z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){ve.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.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)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ve.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){ve.prototype.positionGrips.call(this);var Z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Z/2,this.curveY-Z/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()))},z.prototype.manipulate=function(Z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Z.y-this.manipulationStartY),ve.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){this.activeGrip===this.curveGrip&&(this.curveX=Z.x,this.curveY=Z.y),ve.prototype.resize.call(this,Z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},z.prototype.scale=function(Z,ye){this.curveX=this.curveX*Z,this.curveY=this.curveY*ye,ve.prototype.scale.call(this,Z,ye)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.curveX=ye.curveX,this.curveY=ye.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='',z}(yt),Zt=function(){function ve(z,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=Z}return Object.defineProperty(ve.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ve.prototype.preventDefault=function(){this._defaultPrevented=!0},ve}(),Mt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,!1)||this;return be.dataUrl=ye,be.state=Ce,be}return me(z,ve),z}(Zt),Tt=function(ve){function z(Z,ye,Ce){Ce===void 0&&(Ce=!1);var be=ve.call(this,Z,Ce)||this;return be.marker=ye,be}return me(z,ve),z}(Zt),Ct=function(){function ve(){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 ve.prototype.addEventListener=function(z,Z){this[z].push(Z)},ve.prototype.removeEventListener=function(z,Z){var ye=this[z].indexOf(Z);ye>-1&&this[z].splice(ye,1)},ve}(),Re=function(){function ve(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ze,this._isOpen=!1,this.undoRedoManager=new un,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 Ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ve.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.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(ve.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ke,rt,$e,lt,Xt,At,Ne,mt,Ut,Pe,Et,jt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ke,rt,$e,lt,At,Ne,mt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ke,rt,$e,lt,Ne]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var Z=this;this._availableMarkerTypes.splice(0),z.forEach(function(ye){if(typeof ye=="string"){var Ce=Z.ALL_MARKER_TYPES.find(function(be){return be.typeName===ye});Ce!==void 0&&Z._availableMarkerTypes.push(Ce)}else Z._availableMarkerTypes.push(ye)})},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,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(ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ve.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),pe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ve.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Z){return Z(new Zt(z))})},ve.prototype.render=function(){return se(this,void 0,void 0,function(){var z;return _e(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(z=new he).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},ve.prototype.close=function(z){var Z=this;if(z===void 0&&(z=!1),this.isOpen){var ye=!1;z||this.eventListeners.beforeclose.forEach(function(Ce){var be=new Zt(Z,!0);Ce(be),be.defaultPrevented&&(ye=!0)}),ye||(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(Ce){return Ce(new Zt(Z))}),this.detachEvents(),this._isOpen=!1)}},ve.prototype.addMarkersToToolbar=function(){for(var z,Z=[],ye=0;yethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,ye=Z',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ve.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")},ve.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"},ve.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ve.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 z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"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 Ie(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-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},ve.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())},ve.prototype.toolbarButtonClicked=function(z,Z){if(z==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(z==="action")switch(Z){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()}},ve.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ce){var be=new Tt(z,z._currentMarker,!0);Ce(be),be.defaultPrevented&&(Z=!0)}),!Z){var ye=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(Ce){return Ce(new Tt(z,ye))})}}},ve.prototype.clear=function(){var z=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ht){var Nt=new Tt(z,void 0,!0);ht(Nt),Nt.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var ye=function(ht){var Nt=Ce.markers[ht];Ce.setCurrentMarker(Ce.markers[ht]),Ce._currentMarker.dispose(),Ce.markerImage.removeChild(Ce._currentMarker.container),Ce.markers.splice(Ce.markers.indexOf(Ce._currentMarker),1),Ce.eventListeners.markerdelete.forEach(function(sn){return sn(new Tt(z,Nt))})},Ce=this,be=this.markers.length-1;be>=0;be--)ye(be);this.addUndoStep()}},Object.defineProperty(ve.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ve.prototype.showNotesEditor=function(){var z;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=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},ve.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)},ve.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ve.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),ye=this.undoRedoManager.getLastUndoStep();if(!ye||ye.width===Z.width&&ye.height===Z.height){var Ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),Ce1&&this.panTo({x:z.clientX,y:z.clientY}))},ve.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},ve.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ve.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},ve.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.markerImage.getBoundingClientRect();return{x:(z-ye.left)/this.zoomLevel,y:(Z-ye.top)/this.zoomLevel}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"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()},ve.prototype.addLicenseKey=function(z){pe.addKey(z)},ve.prototype.addEventListener=function(z,Z){this.eventListeners.addEventListener(z,Z)},ve.prototype.removeEventListener=function(z,Z){this.eventListeners.removeEventListener(z,Z)},ve.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ve.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ve.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Z){return Z(new Zt(z))}))},ve.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new Zt(z))}))},ve.instanceCounter=0,ve}();/* ********************************** 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(ve,z){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ye){Z.__proto__=ye}||function(Z,ye){for(var Ce in ye)Object.prototype.hasOwnProperty.call(ye,Ce)&&(Z[Ce]=ye[Ce])})(ve,z)};function St(ve,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function Z(){this.constructor=ve}We(ve,z),ve.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function ft(ve,z,Z,ye){return new(Z||(Z=Promise))(function(Ce,be){function ht(pn){try{sn(ye.next(pn))}catch(zt){be(zt)}}function Nt(pn){try{sn(ye.throw(pn))}catch(zt){be(zt)}}function sn(pn){var zt;pn.done?Ce(pn.value):(zt=pn.value,zt instanceof Z?zt:new Z(function(qn){qn(zt)})).then(ht,Nt)}sn((ye=ye.apply(ve,z||[])).next())})}function It(ve,z){var Z,ye,Ce,be,ht={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return be={next:Nt(0),throw:Nt(1),return:Nt(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Nt(sn){return function(pn){return function(zt){if(Z)throw new TypeError("Generator is already executing.");for(;ht;)try{if(Z=1,ye&&(Ce=2&zt[0]?ye.return:zt[0]?ye.throw||((Ce=ye.return)&&Ce.call(ye),0):ye.next)&&!(Ce=Ce.call(ye,zt[1])).done)return Ce;switch(ye=0,Ce&&(zt=[2&zt[0],Ce.value]),zt[0]){case 0:case 1:Ce=zt;break;case 4:return ht.label++,{value:zt[1],done:!1};case 5:ht.label++,ye=zt[1],zt=[0];continue;case 7:zt=ht.ops.pop(),ht.trys.pop();continue;default:if(!(Ce=ht.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||zt[0]!==6&&zt[0]!==2)){ht=0;continue}if(zt[0]===3&&(!Ce||zt[1]>Ce[0]&&zt[1]0&&Z>0){var ye=new Qr(z,Z),Ce=ye.ratio>=1?20:ye.getHorizontalLength(20),be=ye.ratio<1?20:ye.getVerticalLength(20),ht=document.createElementNS("http://www.w3.org/2000/svg","svg");ht.setAttribute("xmlns","http://www.w3.org/2000/svg"),ht.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ht);var Nt=bt.createDefs();ht.appendChild(Nt);var sn=bt.createElement("clipPath",[["id","text-bg-clip"]]);Nt.appendChild(sn);var pn=bt.createPath(bt.getHollowRectanglePath((24-Ce)/2,(24-be)/2,Ce,be,(24-Ce)/2+2,(24-be)/2+2,Ce-4,be-4));ht.appendChild(pn);var zt=bt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);zt.appendChild(bt.createTSpan(z+":"+Z)),ht.appendChild(zt);var qn=zt.getBBox();bt.setAttributes(zt,[["x",((24-qn.width)/2).toString()],["y",((24-qn.height)/2-qn.y).toString()]]);var Un=bt.createPath(bt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(qn.width))/2,(24-Math.ceil(qn.height))/2,Math.ceil(qn.width),Math.ceil(qn.height)));return sn.appendChild(Un),bt.setAttributes(pn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ht),ht.outerHTML}return''},ve}(),Xr=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye)||this;return be.isDropdownOpen=!1,be.onClick=be.dropdownButtonClicked,be.dropdownButtons=Ce,be}return St(z,ve),z.prototype.setupDropdown=function(){var Z=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ye){ye.className=Z.className,ye.colorsClassName=Z.colorsClassName,Z.dropdownBlock.appendChild(ye.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},z.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},z.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},z.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},z.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},z.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},z}(Kn),Nr=function(){function ve(z,Z){this.GRIP_SIZE=10,this.color=z,this.fillColor=Z,this.visual=bt.createGroup(),this.visual.appendChild(bt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(bt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},ve.prototype.setCenter=function(z,Z){this.visual.childNodes.forEach(function(ye){return bt.setAttributes(ye,[["cx",z.toString()],["cy",Z.toString()]])})},ve}(),ba=function(){function ve(z,Z,ye,Ce){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=z,this.canvasHeight=Z,this.margin=ye,this.container=Ce,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(ve.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(z){this._aspectRatio=z,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.gridContainer&&bt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(z){this._zoomFactor=z,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ve.prototype.open=function(){var z=this;this.cropShadeElement=bt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=bt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var Z=0;Zthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-Z.height/2),bt.setAttributes(this.cropRectElement,[["x",Z.x.toString()],["y",Z.y.toString()],["width",Z.width.toString()],["height",Z.height.toString()]]);var ye=Z.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(be,ht){var Nt=Z.y+ye*(ht+1);bt.setAttributes(be,[["x1",""+Z.x],["y1",""+Nt],["x2",""+(Z.x+Z.width)],["y2",""+Nt]])});var Ce=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(be,ht){var Nt=Z.x+Ce*(ht+1);bt.setAttributes(be,[["x1",""+Nt],["y1",""+Z.y],["x2",""+Nt],["y2",""+(Z.y+Z.height)]])}),bt.setAttributes(this.cropShadeElement,[["d",bt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,Z.x,Z.y,Z.width,Z.height)]]),this.topLeftGrip.setCenter(Z.x,Z.y),this.topRightGrip.setCenter(Z.x+Z.width,Z.y),this.bottomLeftGrip.setCenter(Z.x,Z.y+Z.height),this.bottomRightGrip.setCenter(Z.x+Z.width,Z.y+Z.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ve.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)},ve.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.container.getBoundingClientRect();return{x:z-ye.left+this.margin,y:Z-ye.top+this.margin}},ve.prototype.onPointerDown=function(z){this.container.setPointerCapture(z.pointerId),this.previousPoint=this.clientToLocalCoordinates(z.clientX,z.clientY),this.cropRectElement===z.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(z.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(z.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(z.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(z.target)&&(this.activeGrip=this.bottomRightGrip)},ve.prototype.onPointerMove=function(z){if(this.isMoving)this.move(this.clientToLocalCoordinates(z.clientX,z.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(z.clientX,z.clientY);this.resize(Z)}z.preventDefault()},ve.prototype.onPointerUp=function(z){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(z.pointerId)},ve.prototype.move=function(z){var Z=z.x-this.previousPoint.x,ye=z.y-this.previousPoint.y;this.zoomFactor!==1&&(Z=-Z/this.zoomFactor,ye=-ye/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+Z),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ye),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=z},ve.prototype.resize=function(z){var Z=Object.assign({},this.cropRect),ye=z.x-this.previousPoint.x,Ce=z.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+yethis.canvasWidth*this.zoomFactor&&(ye=this.canvasWidth*this.zoomFactor-Z.width),Z.width+=ye}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(Z.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ye),Z.height=this.aspectRatio.getVerticalLength(Z.width)):(Z.y+=Ce,Z.height=this.cropRect.y+this.cropRect.height-Z.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?Z.height=this.aspectRatio.getVerticalLength(Z.width):Z.height+=Ce}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=z,Z.x>=this.margin&&Z.y>=this.margin&&Z.x-this.margin+Z.width<=this.canvasWidth&&Z.y-this.margin+Z.height<=this.canvasHeight&&(this.cropRect=Z,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ve.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var z=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,ye=this.aspectRatio.getHorizontalLength(this.cropRect.height),Ce=this.aspectRatio.getVerticalLength(this.cropRect.width);ye/this.canvasWidththis.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=z-this.cropRect.width/2,this.cropRect.y=Z-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)}},ve.prototype.getRescaledRect=function(z,Z,ye,Ce,be,ht){var Nt=ye/z,sn=Ce/Z;return{x:(be.x-ht)*Nt+ht,y:(be.y-ht)*sn+ht,width:be.width*Nt,height:be.height*sn}},ve.prototype.scaleCanvas=function(z,Z){var ye=this.getRescaledRect(this.canvasWidth,this.canvasHeight,z,Z,this.cropRect,this.margin);this.canvasWidth=z,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(ye),this.setCropRectangle(ye)},ve}(),ja=function(){function ve(z){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=z,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(ve.prototype,"angle",{get:function(){return this._angle},set:function(z){this._angle=z,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ve.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},ve.prototype.onPointerDown=function(z){this.controlContainer.setPointerCapture(z.pointerId),this.isDragging=!0,this.previousPoint={x:z.clientX,y:z.clientY}},ve.prototype.onPointerMove=function(z){this.isDragging&&(this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.previousPoint.x=z.clientX)},ve.prototype.onPointerUp=function(z){this.isDragging&&this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(z.pointerId)},ve.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var z=this.angleLabelText.getBBox();bt.setAttributes(this.angleLabelElement,[["x",((this.width-z.width)/2).toString()],["y",(this.height/2).toString()]])}},ve.prototype.positionScaleShape=function(){if(this.scaleShape){var z=this.scaleShape.transform.baseVal.getItem(0);z.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(z,0)}},ve.prototype.getVisual=function(){var z=document.createElementNS("http://www.w3.org/2000/svg","svg");z.setAttribute("xmlns","http://www.w3.org/2000/svg"),z.setAttribute("width",this.width+"px"),z.setAttribute("height",this.height+"px"),z.setAttribute("viewBox","0 0 "+this.width+" "+this.height),z.style.flexShrink="0",document.body.appendChild(z);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ye=1;ye<=this.width/5+10;ye++){var Ce=ye%5==0?this.height/3:this.height/6;Z+="h4v"+-Ce+"h1v"+Ce}Z+="v1H0Z",this.scaleShape=bt.createPath(Z);var be=bt.createTransform();this.scaleShape.transform.baseVal.appendItem(be),z.appendChild(this.scaleShape),this.angleLabelElement=bt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=bt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ht=bt.createTSpan("");return ht.innerHTML="°",this.angleLabelElement.appendChild(ht),z.appendChild(this.angleLabelElement),document.body.removeChild(z),z},ve}(),oi=function(){function ve(){this.naturalSize=!1,this.imageType="image/png"}return ve.prototype.rasterize=function(z,Z,ye,Ce,be,ht,Nt){var sn=this;return new Promise(function(pn){var zt=document.createElement("canvas");zt.width=z.width.baseVal.value-2*Ce,zt.height=z.height.baseVal.value-2*Ce;var qn=1,Un=1;sn.naturalSize===!0?(qn=Z.naturalWidth/(z.width.baseVal.value-2*Ce)/ht,Un=Z.naturalHeight/(z.height.baseVal.value-2*Ce)/Nt,zt.width=Z.naturalWidth/ht,zt.height=Z.naturalHeight/Nt):sn.width!==void 0&&sn.height!==void 0&&(qn=sn.width/ye.width,Un=sn.height/ye.height,zt.width*=qn,zt.height*=Un);var rr=zt.getContext("2d");rr.translate(zt.width/2,zt.height/2),rr.rotate(be*Math.PI/180),rr.scale(ht,Nt),rr.translate(-zt.width/2,-zt.height/2),rr.drawImage(Z,0,0,zt.width,zt.height);var Sr=document.createElement("canvas");Sr.width=ye.width*qn,Sr.height=ye.height*Un,Sr.getContext("2d").putImageData(rr.getImageData((ye.x-Ce)*qn,(ye.y-Ce)*Un,ye.width*qn,ye.height*Un),0,0),pn(Sr.toDataURL(sn.imageType,sn.imageQuality))})},ve}(),Le=function(){function ve(z){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=ve.instanceCounter++,this.styles=new Ht(this.instanceNo),this.target=z,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(ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(z){this._zoomToCropEnabled=z,z?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"gridLines",{get:function(){return this._gridLines},set:function(z){this._gridLines=z,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(z){this._rotationAngle=z,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"aspectRatio",{get:function(){var z;return(z=this._aspectRatio)!==null&&z!==void 0?z:this.aspectRatios[0]},set:function(z){this._aspectRatio=z},enumerable:!1,configurable:!0}),ve.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},ve.prototype.show=function(){this.showUI(),this.open()},ve.prototype.close=function(z){z===void 0&&(z=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),z||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},ve.prototype.addRenderEventListener=function(z){this.renderEventListeners.push(z)},ve.prototype.removeRenderEventListener=function(z){this.renderEventListeners.indexOf(z)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(z),1)},ve.prototype.addCloseEventListener=function(z){this.closeEventListeners.push(z)},ve.prototype.removeCloseEventListener=function(z){this.closeEventListeners.indexOf(z)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(z),1)},ve.prototype.setupResizeObserver=function(){var z=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.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))},ve.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var z=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/z>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*z:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ye=Z+2*this.CANVAS_MARGINz+this.CANVAS_MARGIN?this.target.offsetTop-(z+this.CANVAS_MARGIN):0;this.coverDiv.style.top=Z+"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},ve.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ve.prototype.addTopToolbar=function(){var z=this;this.topToolbar=new vn,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 Z=new xr;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var ye=[];this.aspectRatios.forEach(function(Un){var rr=new Kn(sa.getIcon(Un.horizontal,Un.vertical),Un.horizontal===0&&Un.vertical===0?"FREE":Un.horizontal+":"+Un.vertical);rr.onClick=function(){return z.ratioButtonClicked(Un)},ye.push(rr)}),this.aspectRatioButton=new Xr(sa.getIcon(0,0),"Aspect ratio",ye),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,Z.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Ce=new Kn('',"Toggle grid");Ce.isActive=this.isGridVisible,Ce.onClick=function(){z.isGridVisible=!z.isGridVisible,Ce.isActive=z.isGridVisible},Z.addButton(Ce);var be=new Kn('',"Zoom to selection");if(be.isActive=this.zoomToCropEnabled,be.onClick=function(){z.zoomToCropEnabled=!z.zoomToCropEnabled,be.isActive=z.zoomToCropEnabled},Z.addButton(be),!Ot.isLicensed){var ht=new En;this.topToolbar.addElementBlock(ht);var Nt=document.createElement("div");Nt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var sn=document.createElement("a");sn.style.color="currentColor",sn.href="https://markerjs.com/products/cropro",sn.target="_blank",sn.innerHTML='',Nt.appendChild(sn),ht.addElement(Nt)}var pn=new xr;pn.minWidth=3*this.toolbarHeight+"px",pn.contentAlign="end",this.topToolbar.addButtonBlock(pn);var zt=new Kn('',"OK");zt.onClick=this.startRenderAndClose,pn.addButton(zt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(zt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var qn=new Kn('',"Close");qn.onClick=this.close,pn.addButton(qn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(qn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ve.prototype.addBottomToolbar=function(){var z=this;this.bottomToolbar=new vn,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 Z=new xr;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var ye=new Kn('',"Rotate left");ye.onClick=this.rotateLeftButtonClicked,Z.addButton(ye);var Ce=new Kn('',"Rotate right");Ce.onClick=this.rotateRightButtonClicked,Z.addButton(Ce);var be=new En;be.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(be),this.straightener=new ja("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(pn){z.rotateBy(pn),z.straightener.angle=z.rotationAngle},be.addElement(this.straightener.getUI());var ht=new xr;ht.minWidth=2*this.toolbarHeight+"px",ht.contentAlign="end",this.bottomToolbar.addButtonBlock(ht);var Nt=new Kn('',"Flip horizontal");Nt.onClick=this.flipHorizontallyButtonClicked,ht.addButton(Nt);var sn=new Kn('',"Flip vertical");sn.onClick=this.flipVerticallyButtonClicked,ht.addButton(sn)},ve.prototype.ratioButtonClicked=function(z){this.aspectRatio=z,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ve.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=sa.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ve.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Qr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ve.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ve.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ve.prototype.restoreState=function(z){if(z){var Z=this.cropLayer.getRescaledRect(z.width,z.height,this.imageWidth,this.imageHeight,z.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=z.flippedHorizontally,this.flippedVertically=z.flippedVertically,this.applyFlip(),this.rotationAngle=z.rotationAngle,this.applyRotation()}},ve.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.cropImage.getBoundingClientRect();return{x:z-ye.left,y:Z-ye.top}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var z=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=z+"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()},ve.prototype.rotateLeftButtonClicked=function(){var z=this.rotationAngle-90;this.rotationAngle%90!=0&&(z+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(z)},ve.prototype.rotateRightButtonClicked=function(){var z=this.rotationAngle+90;this.rotationAngle%90!=0&&(z-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(z)},ve.prototype.rotateTo=function(z){z=(z=z>180?z-360:z)<=-180?z+360:z,this.rotationAngle=z,this.applyRotation()},ve.prototype.rotateBy=function(z){this.rotateTo((this.rotationAngle+z)%360)},ve.prototype.applyRotation=function(){var z=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var Z=this.editingTargetRotationContainer.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(Z,0);var ye=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ye.width,this.imageHeight/ye.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=z},ve.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ve.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ve.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ve.prototype.startRenderAndClose=function(){return ft(this,void 0,void 0,function(){var z,Z;return It(this,function(ye){switch(ye.label){case 0:return[4,this.render()];case 1:return z=ye.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(Ce){return Ce(z,Z)}),this.close(!0),[2]}})})},ve.prototype.render=function(){return ft(this,void 0,void 0,function(){var z;return It(this,function(Z){switch(Z.label){case 0:return(z=new oi).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.width=this.renderWidth,z.height=this.renderHeight,this.unzoomFromCrop(),bt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,z.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 Z.sent(),[4,z.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,Z.sent()]}})})},ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xn("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 xn("toolbar_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; `)),this.toolbarBlockStyleClass=this.styles.addClass(new xn("toolbar-block",` display: flex; align-items: center; box-sizing: content-box; `));var z=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xn("toolbar_button",` display: inline-block; width: `+(this.toolbarHeight-2*z)+`px; height: `+(this.toolbarHeight-2*z)+`px; padding: `+z+`px; cursor: default; user-select: none; box-sizing: content-box; `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xn("toolbar_button_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xn("toolbar_active_button",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; background-color: `+this.styles.settings.toolbarBackgroundActiveColor+` `)),this.styles.addRule(new Gt("."+this.toolbarButtonStyleClass.name+" svg",` height: `+this.toolbarHeight/2+`px; `)),this.styles.addRule(new Gt("."+this.toolbarButtonStyleColorsClass.name+":hover",` background-color: `+this.styles.settings.toolbarBackgroundHoverColor+` `)),this.toolbarDropdownStyleClass=this.styles.addClass(new xn("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 xn("toolbar_dropdown_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new xn("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 xn("toolbar_straightener",` display: flex; overflow: hidden; justify-content: center; height: `+(this.toolbarHeight-2*z)+`px; padding: `+z+`px; cursor: default; user-select: none; box-sizing: content-box; `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new xn("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; `))},ve.instanceCounter=0,ve}(),Qe=M("8hTe"),ot=M.n(Qe),_t=/]*>/g;function Kt(ve){var z=document.createElement("div");return z.innerHTML=ve,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var nn=we.a=function(ve){var z=ve.value,Z=z===void 0?"":z,ye=ve.edit,Ce=ye===void 0?!1:ye,be=ve.className,ht=ve.showTextOnly,Nt=ve.showLines,sn=ve.replaces,pn=ve.zoomImg,zt=ve.hasMask,qn=ve.style,Un=qn===void 0?{}:qn,rr=ve.stylesPrev,Sr=rr===void 0?{}:rr,ia=String(Z),Dr=Object(r.useRef)(),na=Object(r.useRef)(),Tr=Object(r.useState)(""),ma=Object(C.a)(Tr,2),ha=ma[0],Oa=ma[1],xa=Object(r.useState)("office"),ka=Object(C.a)(xa,2),Ha=ka[0],Ia=ka[1],Yr=function(){var Ar=new Le(na.current);Ar.displayMode="popup",Ar.addRenderEventListener(function(){var Gr=Object(_.a)(c.a.mark(function qr(_a){var Jr;return c.a.wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:return Dr.current.style.display="none",Fa.next=3,Object(te.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_a}});case 3:Jr=Fa.sent,Jr!=null&&Jr.id&&sn(na.current.getAttribute("src").replace(N.a.API_SERVER,""),"/api/attachments/".concat(Jr==null?void 0:Jr.id,"?type=").concat(Jr.content_type));case 5:case"end":return Fa.stop()}},qr)}));return function(qr){return Gr.apply(this,arguments)}}()),Ar.show()},za=function(){var Ar=new Re(na.current);Ar.settings.displayMode="popup",Ar.addEventListener("render",function(){var Gr=Object(_.a)(c.a.mark(function qr(_a){var Jr;return c.a.wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:if(Dr.current.style.display="none",!na.current){Fa.next=6;break}return Fa.next=4,Object(te.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_a.dataUrl}});case 4:Jr=Fa.sent,Jr!=null&&Jr.id&&sn(na.current.getAttribute("src").replace(N.a.API_SERVER,""),"/api/attachments/".concat(Jr==null?void 0:Jr.id,"?type=").concat(Jr.content_type));case 6:case"end":return Fa.stop()}},qr)}));return function(qr){return Gr.apply(this,arguments)}}()),Ar.show(),window.markerArea=Ar},Ga=Object(r.useMemo)(function(){try{var zr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ar=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Gr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;ia=ia.replace(zr,"("+N.a.API_SERVER+"/api/attachments/").replace(Ar,'"'+N.a.API_SERVER+"/api/attachments/").replace(Gr,'"'+N.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,` `),ia=ia.replace(new RegExp("(?[TOC]

    ",B()),p()),qr=qr.replace(/(__special_katext_id_\d+__)/g,function(ji,Fa){var vi=_a[Fa],vo=vi.type,Wo=vi.expression;return Object(Q.renderToString)(Kt(Wo)||"",{displayMode:vo==="block",throwOnError:!1,output:"html"})}),qr=qr.replace(/▁/g,"\u2581\u2581\u2581"),T(),ht){var Jr=document.createElement("div");return Jr.innerHTML=qr,Jr.innerText}return setTimeout(function(){return di()},500),qr},[ia]),Da=Object(r.useRef)();S.WebkitLineClamp=Nt,Nt&&(Un=Object(E.a)(Object(E.a)({},Un),S));function si(zr){var Ar=zr.target;if(Ar.tagName.toUpperCase()==="IMG"){if(pn){var Gr=Ar.getAttribute("src");Oa(Gr),Ia("image")}}else if(Ar.tagName.toUpperCase()==="A"){var qr=Ar.getAttribute("href");if(qr.indexOf("office")>-1)zr.preventDefault(),Oa(qr),Ia("office");else if(qr.indexOf("application/pdf")>-1)zr.preventDefault(),Oa(qr),Ia("pdf");else if(qr.indexOf("type=text")>-1)zr.preventDefault(),Oa(qr),Ia("html");else if(qr.startsWith("#")){zr.preventDefault();var _a=document.getElementById(qr.replace("#",""));_a&&_a.scrollIntoView(!0)}}}var di=function(){var Ar,Gr=(Ar=Da.current)===null||Ar===void 0?void 0:Ar.querySelectorAll("video");Gr==null||Gr.forEach(function(qr){if(qr.oncontextmenu=function(){return!1},qr.src.indexOf(".m3u8")>-1&&!qr.canPlayType("application/vnd.apple.mpegurl")){if(G.a.isSupported()){var _a=new G.a;_a.loadSource(qr.src),_a.attachMedia(qr)}}})};Object(r.useEffect)(function(){if(Da.current&&Ga&&(Ga.match(_t)&&window.PR.prettyPrint()),Da.current)return Da.current.addEventListener("click",si),function(){Da.current.removeEventListener("click",si),T(),p()}},[Ga,Da.current,si]);var Ma=function(Ar){if(!Ce)return;Ar.target.nodeName==="IMG"?(Dr.current.style.display="flex",Dr.current.style.width=Ar.target.clientWidth+"px",Dr.current.style.height=Ar.target.clientHeight+"px",Dr.current.style.top=Ar.target.offsetTop+"px",Dr.current.style.left=Ar.target.offsetLeft+"px",na.current.src=Ar.target.getAttribute("src")):Dr.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:Da,style:Object(E.a)({},Un),className:"".concat(be||""," markdown-body ").concat(ot.a.mdBody),onMouseOver:Ma,dangerouslySetInnerHTML:{__html:Ga}}),n.a.createElement("div",{ref:Dr,className:ot.a.button},n.a.createElement(Y.a,null,n.a.createElement(y.a,{onClick:function(){return Yr()}},"\u88C1\u526A"),n.a.createElement(y.a,{onClick:function(){return za()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:na,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),n.a.createElement(X.a,{close:!0,data:ha,hasMask:zt,type:ha!=null&&ha.length?Ha:"",style:Object(E.a)({},Sr),onClose:function(){return Oa("")}}))}},"9VGf":function(Ze,we,M){"use strict";M.d(we,"a",function(){return P});var ue=M("q1tI"),Y=M.n(ue);function P(y,E){var _=Object(ue.useRef)();Object(ue.useEffect)(function(){_.current=y}),Object(ue.useEffect)(function(){function C(){_.current()}if(E!==null){var m=setInterval(C,E);return function(){return clearInterval(m)}}},[E])}},"9nDM":function(Ze,we,M){},"A/g1":function(Ze,we){Ze.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=="},A2z3:function(Ze,we,M){Ze.exports=M.p+"static/Certificate.80413b23.png"},AZ8Y:function(Ze,we,M){"use strict";M.r(we);var ue=M("T2oS"),Y=M("W9HT"),P=M("k1fw"),y=M("9og8"),E=M("tJVT"),_=M("PpiC"),C=M("Znn+"),m=M("ZTPi"),c=M("WmNS"),r=M.n(c),n=M("q1tI"),e=M.n(n),s=M("Ty5D"),u=M("9kvl"),o=M("oBTY"),f=M("pC0b"),d=M("GzdX"),a=M("+L6B"),h=M("2/Rp"),g=M("+BJd"),p=M("mr32"),S=M("qVdP"),w=M("jsC+"),B=M("lUTK"),b=M("BvKs"),A=M("5Dmo"),l=M("3S7+"),i=M("7Kak"),x=M("9yH6"),O=M("2qtc"),T=M("kLXV"),D=M("miYZ"),R=M("tsqr"),k=M("0NbB"),H=M("JTSX"),J=M.n(H),U=M("xKgJ"),K=M("Mgx3"),G=M("ozfa"),N=M("MJZm"),Q=M("sRBo"),X=M("kaz8"),te=M("14J3"),oe=M("BMrR"),me=M("jCWc"),se=M("kPKH"),_e=M("OaEy"),Ae=M("2fM7"),Ee=M("wd/R"),pe=M.n(Ee),he=M("kNP/"),ie=M.n(he),fe=M("1vsH"),ge=Ae.a.Option,ce=function(Ye){var Je=Ye.pathsDetail,Te=Ye.globalSetting,Ve=Ye.loading,Be=Ye.dispatch,at=Object(_.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),nt=Object(s.i)(),st=Object(n.useState)(),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)([]),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)([]),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=Object(n.useState)([]),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1],Xn=Object(n.useState)(),rn=Object(E.a)(Xn,2),hn=rn[0],An=rn[1],_n=Object(n.useState)(),tr=Object(E.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=Object(n.useState)(!0),hr=Object(E.a)(Ir,2),Br=hr[0],ur=hr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="PathsDetail-SendToClass"&&Qn()},[Je.actionTabs.key]);var Fr=function(on){switch(on.item_type){case"Shixun":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-light-primary"},"\u5B9E\u8BAD"),on.name);case"Attachment":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-cyan-blue"},"\u8BFE\u4EF6"),on.name);case"VideoItem":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),on.name);case"StageCatalog":return e.a.createElement("span",null,on.name);default:return""}},Qn=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn,Jn,Sn;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Object(K.G)({id:nt.pathId});case 2:Gn=Kr.sent,Gn&&(ln((Gn==null?void 0:Gn.courses)||[]),Sn=(Jn=Gn.stages)===null||Jn===void 0?void 0:Jn.map(function(Va,Ra){var aa;return{title:Va.state_name||"",key:Ra,children:(aa=Va.items)===null||aa===void 0?void 0:aa.map(function(gi,ti){var Ka;return Object(P.a)(Object(P.a)({},gi),{},{disabled:gi.is_jupyter,title:Fr(gi),key:"".concat(Ra,"-").concat(ti),children:(Ka=gi.children)===null||Ka===void 0?void 0:Ka.map(function(no,ro){return Object(P.a)(Object(P.a)({},no),{},{disabled:no.is_jupyter,title:Fr(no),key:"".concat(Ra,"-").concat(ti,"-").concat(ro)})})})})}}),yn(Sn||[]));case 4:case"end":return Kr.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),kr=function(on,Gn){Ln(on)},ta=function(on){var Gn=on.target.checked,Jn=[];qt==null||qt.map(function(Sn,mr){var Kr;Jn.push(mr),Sn==null||((Kr=Sn.children)===null||Kr===void 0)||Kr.map(function(Va,Ra){var aa;Jn.push("".concat(mr,"-").concat(Ra)),Va==null||((aa=Va.children)===null||aa===void 0)||aa.map(function(gi,ti){Jn.push("".concat(mr,"-").concat(Ra,"-").concat(ti))})})}),Ln(Gn?Jn:[])},Wr=function(){var on=bn.filter(function(Kr){return typeof Kr=="string"}),Gn=[],Jn=[],Sn=[],mr=[];return qt==null||qt.map(function(Kr,Va){var Ra;Kr==null||((Ra=Kr.children)===null||Ra===void 0)||Ra.map(function(aa,gi){var ti;on.includes("".concat(Va,"-").concat(gi))&&(Sn.push(aa.stage_item_id),aa.item_type==="Shixun"?Gn.push(aa.id):aa.item_type==="Attachment"?mr.push(aa.id):aa.item_type==="VideoItem"&&Jn.push(aa.id)),aa==null||((ti=aa.children)===null||ti===void 0)||ti.map(function(Ka,no){on.includes("".concat(Va,"-").concat(gi,"-").concat(no))&&(Sn.push(Ka.stage_item_id),Ka.item_type==="Shixun"?Gn.push(Ka.id):Ka.item_type==="Attachment"?mr.push(Ka.id):Ka.item_type==="VideoItem"&&Jn.push(Ka.id))})})}),{shixunIds:Gn,videoItemIds:Jn,stageItemIds:Sn,coursewareIds:mr}},yr=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn,Jn,Sn;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:if(Gn=Wr(),Jn=Gn.stageItemIds,console.log(Jn,"stageItemIds"),dt){Kr.next=5;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Kr.abrupt("return");case 5:if(!(!jn.length&&!ir.length&&!zn.length)){Kr.next=8;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Kr.abrupt("return");case 8:return Fn(!0),Kr.next=11,Object(K.P)({id:nt.pathId,course_id:dt,stage_item_id:Jn,sync_catelog:Br?1:0}).catch(function(Va){return Fn(!1)});case 11:Sn=Kr.sent,Fn(!1),Dn(),(Sn==null?void 0:Sn.status)===1&&T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},Sn.message),onOk:function(){var Ra,aa=Sn==null||((Ra=Sn.url.split("/"))===null||Ra===void 0)?void 0:Ra[2];Object(fe.Q)("/classrooms/".concat(aa,"/shixun_homework"))}});case 15:case"end":return Kr.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),Dn=function(){Be({type:"pathsDetail/setActionTabs",payload:{}}),Dt(null),Ln([]),An(null)},ar=Wr(),Pr=ar.shixunIds,jn=Pr===void 0?[]:Pr,$n=ar.videoItemIds,ir=$n===void 0?[]:$n,Zn=ar.coursewareIds,zn=Zn===void 0?[]:Zn;return e.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Je.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:cn,width:600,onOk:yr,onCancel:Dn},e.a.createElement("div",{className:ie.a.wrap},e.a.createElement("div",{className:"mb10"},e.a.createElement(Ae.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:dt,style:{width:"100%"},onSelect:function(on){return Dt(on)},optionLabelProp:"lable"},$t==null?void 0:$t.map(function(fn,on){return e.a.createElement(ge,{key:fn.course_id,value:fn.course_id,lable:fn.course_name},e.a.createElement(oe.a,{justify:"space-between"},e.a.createElement(se.a,null,fn.course_name),e.a.createElement(se.a,null,pe()(fn.created_at).format("YYYY-MM-DD HH:mm"),"\xA0")))}))),e.a.createElement("div",{className:ie.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A",e.a.createElement("br",null),"1.\u8BF7\u5728\u672C\u8BFE\u7A0B\u4E2D\u9009\u62E9\u6240\u9700\u9879\u76EE\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\uFF1B",e.a.createElement("br",null),"2.\u672A\u53D1\u5E03\u7684\u5B9E\u8BAD\u4E0D\u80FD\u53D1\u9001\u81F3\u8BFE\u5802\uFF0C\u4E5F\u4E0D\u4F1A\u8FDB\u5165\u672C\u5F39\u7A97\u5907\u9009\u3002"),e.a.createElement("div",{className:ie.a.radioWrap},e.a.createElement("div",null,e.a.createElement(X.a,{value:hn,onChange:ta,className:"font14 ml20"},"\u5168\u9009")),!!(qt!=null&&qt.length)&&e.a.createElement(N.a,{className:ie.a.tree,checkable:!0,defaultExpandAll:!0,treeData:qt,checkedKeys:bn,onCheck:function(on,Gn){return kr(on,Gn)}})),e.a.createElement("div",{className:ie.a.createMkdir},e.a.createElement(X.a,{checked:Br,onChange:function(on){return ur(on.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(jn.length+ir.length)&&e.a.createElement("span",null,e.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!jn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-light-primary"},jn.length," "),e.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!ir.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-purple-8C1 ml5"},ir.length," "),e.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!zn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-cyan-blue ml5"},zn.length," "),e.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6"))))))},Ie=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{pathsDetail:Ye,globalSetting:Te,loading:Je.effects}})(ce),Fe=M("NLgs"),ke=M("5NDa"),re=M("5rEg"),F=M("6UJt"),W=M("DFOY"),de=M("y8nQ"),ne=M("Vl3Y"),le=M("ErOA"),De=M("OC45"),Xe=M.n(De),xt=function(Ye){var Je=Ye.type,Te=Ye.onCancel,Ve=Ye.onOk,Be=ne.a.useForm(),at=Object(E.a)(Be,1),nt=at[0],st=Object(n.useState)(!0),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)(!1),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)([]),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1];Object(n.useEffect)(function(){Rn()},[]);var Rn=function(){var bn=Object(y.a)(r.a.mark(function Ln(){var Xn;return r.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(!Je){hn.next=7;break}return ln(!0),hn.next=4,Object(le.a)("/api/disciplines.json",{method:"get",params:{source:Je}});case 4:Xn=hn.sent,yn(Xn.disciplines||[]),ln(!1);case 7:case"end":return hn.stop()}},Ln)}));return function(){return bn.apply(this,arguments)}}(),tn=function(){var Ln=nt.getFieldsValue(),Xn=Ln.sub_discipline_id,rn=Ln.discipline_name,hn=Ln.sub_discipline_name;if((!Xn||Xn&&Xn.length===0)&&(!rn||!hn))return R.b.warn("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),!1;Ve({user_customize:Xn&&Xn.length===0||!Xn,sub_discipline_id:Xn,discipline_name:rn,sub_discipline_name:hn})};return e.a.createElement(T.a,{width:600,className:Xe.a.applyPublicContainer,title:"\u6DFB\u52A0\u65B9\u5411&\u8BFE\u7A0B\u5F39\u7A97",okText:"\u7533\u8BF7\u516C\u5F00",visible:!0,onCancel:Te,onOk:tn},e.a.createElement("div",{className:Xe.a.applyPublicContent},e.a.createElement("div",{className:Xe.a.tips},"\u9700\u586B\u5199\u5B9E\u8DF5\u9879\u76EE\u7684\u65B9\u5411&\u8BFE\u7A0B\u540E\uFF0C\u624D\u80FD\u7533\u8BF7\u516C\u5F00"),e.a.createElement(ne.a,{labelCol:{span:4},labelAlign:"right",form:nt},e.a.createElement(ne.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"sub_discipline_id"},e.a.createElement(W.a,{expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:qt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(Ln,Xn){return nt.setFieldsValue({sub_discipline_id:Ln})}}),e.a.createElement("div",{className:Xe.a.action,onClick:function(){return Dt(!dt)}},e.a.createElement("div",null,"\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"),e.a.createElement("div",null,e.a.createElement("span",null,dt?"\u5C55\u5F00":"\u6536\u8D77"),e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont ".concat(dt?"icon-zhankai2":"icon-shouqi1")}))))),!dt&&e.a.createElement(e.a.Fragment,null,e.a.createElement(ne.a.Item,{label:"\u65B9\u5411",name:"discipline_name"},e.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u5165\u65B9\u5411",autoComplete:"off"})),e.a.createElement(ne.a.Item,{label:"\u8BFE\u7A0B",name:"sub_discipline_name"},e.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B",autoComplete:"off"})))),$t&&e.a.createElement("div",{className:Xe.a.spin},e.a.createElement(Y.a,null))))},Ke=xt,ze=M("9Bee"),yt=M("m3rI"),Et=M("OljG"),ct=M.n(Et),lt=M("MKdu"),rt=M.n(lt),qe=M("m/50"),$e=M.n(qe),Pe=M("Nddv"),je=M.n(Pe),Ne=M("vUf6"),et=M.n(Ne),mt=function(Ye){var Je,Te,Ve,Be,at,nt,st,it,dt,Dt,Qt,Bt,$t,ln,On,Wt,qt,yn,Rn,tn,bn,Ln,Xn,rn,hn,An,_n,tr,cn,Fn,Ir,hr,Br,ur,Fr,Qn,kr,ta,Wr,yr,Dn,ar,Pr,jn,$n,ir,Zn,zn,fn,on,Gn,Jn,Sn,mr,Kr,Va,Ra,aa,gi,ti,Ka,no,ro,Di,Io,Mo,ao,Ii,ki,So,co,ho,Qi,Mi,Vi,Ki,go,Fi,yo,Xa,io,Lo,Wi,Ti,Ao,qo,$o,Go,Xi,es,yi,Ua,li,Na,Yi,bo,Li,Vo,Po,Xo,Bi,In,Ji,vs,ts,ca,Ur,ui,wa,To,Zi,Eo,oo,dn=Ye.pathsDetail,Uo=Ye.user,Ss=Ye.globalSetting,gs=Ye.loading,Za=Ye.dispatch,Tn=Object(_.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),Lt=Object(s.i)(),Yt=Object(n.useState)({}),Cn=Object(E.a)(Yt,2),Vt=Cn[0],er=Cn[1],lr=Object(n.useRef)(1),fr=Object(n.useState)(),$r=Object(E.a)(fr,2),mn=$r[0],ni=$r[1],Pi=Object(n.useState)(!1),La=Object(E.a)(Pi,2),da=La[0],Oi=La[1],qi=Object(n.useState)(!1),qa=Object(E.a)(qi,2),Ya=qa[0],fi=qa[1],ko=Object(n.useState)({status:!1}),Fo=Object(E.a)(ko,2),No=Fo[0],jo=Fo[1],Ts=((Je=dn.detail)===null||Je===void 0?void 0:Je.is_free)||((Te=dn.detail)===null||Te===void 0?void 0:Te.can_learning);Object(n.useEffect)(function(){jo({status:!1})},[]),Object(n.useEffect)(function(){function Zr(){return Rr.apply(this,arguments)}function Rr(){return Rr=Object(y.a)(r.a.mark(function Ta(){var Or,Wn,Pn,wn,nr,Bn,_r;return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,Za({type:"pathsDetail/getPathsDetail",payload:{id:Lt.pathId}});case 2:Or=jr.sent,Or!=null&&Or.toast&&(Or!=null&&(Wn=Or.toast)!==null&&Wn!==void 0&&Wn.is_open&&((Pn=Or.toast)===null||Pn===void 0?void 0:Pn.open_num)===-1?fi(!0):Or!=null&&(wn=Or.toast)!==null&&wn!==void 0&&wn.is_open&&(Or==null||((nr=Or.toast)===null||nr===void 0)?void 0:nr.open_num)===1?(_r=JSON.parse(localStorage.getItem("pathsshow"))||[],((Bn=_r.filter(function(Pa){return Pa===(Lt==null?void 0:Lt.pathId)}))===null||Bn===void 0?void 0:Bn.length)>0?fi(!1):(fi(!0),_r.push(Lt==null?void 0:Lt.pathId),localStorage.setItem("pathsshow",JSON.stringify(_r)))):fi(!1));case 4:case"end":return jr.stop()}},Ta)})),Rr.apply(this,arguments)}Zr()},[]),Object(n.useEffect)(function(){var Zr,Rr,Ta,Or,Wn=(Zr=dn.detail)===null||Zr===void 0||((Rr=Zr.courses)===null||Rr===void 0)?void 0:Rr.length;if(!Wn)return;var Pn;if((Ta=dn.detail)!==null&&Ta!==void 0&&Ta.has_start){var wn,nr,Bn=(wn=dn.detail)===null||wn===void 0||((nr=wn.courses)===null||nr===void 0)?void 0:nr.findIndex(function(pi){var Ei;return((Ei=pi.course_status)===null||Ei===void 0?void 0:Ei.status)===1});Pn=Bn>-1?Bn:0}else{var _r,Mr,jr,Pa,Ja,bi=(_r=dn.detail)===null||_r===void 0||((Mr=_r.courses)===null||Mr===void 0||((jr=Mr.map(function(pi){var Ei;return(Ei=pi.course_status)===null||Ei===void 0?void 0:Ei.status}))===null||jr===void 0))?void 0:jr.lastIndexOf(2);Pn=bi>-1?bi:0,bi=(Pa=dn.detail)===null||Pa===void 0||((Ja=Pa.courses)===null||Ja===void 0)?void 0:Ja.findIndex(function(pi){var Ei;return((Ei=pi.course_status)===null||Ei===void 0?void 0:Ei.status)===0}),Pn=bi>-1?bi:Pn}er(((Or=dn.detail)===null||Or===void 0?void 0:Or.courses[Pn])||{})},[dn.detail]);var hl=function(Rr){var Ta,Or,Wn=(Ta=dn.detail)===null||Ta===void 0||((Or=Ta.courses)===null||Or===void 0)?void 0:Or.find(function(Pn){return Pn.course_id===Rr});er(Wn||{}),Za({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:Rr}})},Al=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){var Ta;return r.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,Object(K.k)({container_id:Lt.pathId,container_type:"Subject"});case 2:Ta=Wn.sent,Ta.status===0&&(ds(),R.b.success(Ta.message));case 4:case"end":return Wn.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Qs=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){var Ta;return r.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,Object(K.n)({container_id:Lt.pathId,container_type:"Subject"});case 2:Ta=Wn.sent,Ta.status===0&&(ds(),R.b.success(Ta.message));case 4:case"end":return Wn.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),cr=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){return r.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u5B9E\u8DF5\u8BFE\u7A0B?"),onOk:function(){var Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.q)({id:Lt.pathId});case 2:nr=_r.sent,nr.status===1&&u.d.push("/paths");case 4:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),ys=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){return r.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:e.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.h)({id:Lt.pathId});case 2:nr=_r.sent,(nr==null?void 0:nr.status)===0&&(ds(),R.b.success(nr.message));case 4:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Ks=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){return r.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okButtonProps:{loading:da},onOk:function(){var Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return Oi(!0),_r.next=3,Object(K.m)({id:Lt.pathId});case 3:nr=_r.sent,(nr==null?void 0:nr.status)===1&&(ds(),R.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),Oi(!1);case 6:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Bs=function(){dn.detail&&dn.detail.has_sub_discipline?bs({user_customize:!1}):fo(!0)},fo=function(Rr){jo({status:Rr})},bs=function(Rr){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:e.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",e.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",e.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",e.a.createElement("br",null)),onOk:function(){var Ta=Object(y.a)(r.a.mark(function Wn(){var Pn,wn;return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Pn={user_customize:Rr.user_customize},Rr.user_customize?Pn=Object(P.a)(Object(P.a)({},Pn),{},{discipline_name:Rr.discipline_name,sub_discipline_name:Rr.sub_discipline_name}):Rr.sub_discipline_id&&(Pn=Object(P.a)(Object(P.a)({},Pn),{},{sub_discipline_id:Rr.sub_discipline_id})),Bn.next=4,Object(K.g)(Object(P.a)({id:Lt.pathId},Pn));case 4:wn=Bn.sent,((wn==null?void 0:wn.status)===0||(wn==null?void 0:wn.status)===1)&&(ds(),R.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 6:case"end":return Bn.stop()}},Wn)}));function Or(){return Ta.apply(this,arguments)}return Or}()})},Ws=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){return r.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.l)({id:Lt.pathId});case 2:nr=_r.sent,(nr==null?void 0:nr.status)===0&&(ds(),R.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Ms=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){return r.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"ml20"},e.a.createElement(x.a.Group,{defaultValue:1,onChange:function(Pn){return lr.current=Pn.target.value}},e.a.createElement(x.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",e.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),e.a.createElement(x.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",e.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var Wn=Object(y.a)(r.a.mark(function wn(){return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:Object(fe.Q)("/classrooms/news/".concat(Lt.pathId,"/newgold/").concat(lr.current));case 1:case"end":return Bn.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Es=function(){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Rr=Object(y.a)(r.a.mark(function Or(){var Wn;return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(K.i)({id:Lt.pathId});case 2:Wn=wn.sent,Wn.status===0&&(ni(!0),R.b.success(Wn.message));case 4:case"end":return wn.stop()}},Or)}));function Ta(){return Rr.apply(this,arguments)}return Ta}()})},Ni=function(){if(!Object(Fe.e)(Za))return;T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Rr=Object(y.a)(r.a.mark(function Or(){var Wn,Pn;return r.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.next=2,Object(K.L)({id:Vt==null?void 0:Vt.course_id});case 2:Wn=nr.sent,Wn.status===0&&(R.b.success(Wn.message),Za({type:"pathsDetail/getPathsDetail",payload:{id:Lt.pathId}}),((Pn=Vt.course_status)===null||Pn===void 0?void 0:Pn.status)===1&&Object(fe.Q)("/classrooms/".concat(Vt==null?void 0:Vt.course_id,"/shixun_homework")));case 4:case"end":return nr.stop()}},Or)}));function Ta(){return Rr.apply(this,arguments)}return Ta}()})},zs=function(){var Rr;if((Rr=dn.detail)!==null&&Rr!==void 0&&Rr.need_authorize){Object(Fe.a)(!1,"\u8BE5\u8BFE\u7A0B\u4E2D\u5305\u542B\u5B9E\u8BAD\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");return}if(!Object(Fe.e)(Za))return;Za({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},ds=function(){Za({type:"pathsDetail/getPathsDetail",payload:{id:Lt.pathId}}),Za({type:"pathsDetail/getRightData",payload:{id:Lt.pathId}})},Ho=!!((Ve=dn.detail)!==null&&Ve!==void 0&&Ve.participant_count)&&!((Be=dn.detail)!==null&&Be!==void 0&&Be.allow_statistics),Ls=((at=dn.detail)===null||at===void 0||((nt=at.courses)===null||nt===void 0)?void 0:nt.findIndex(function(Zr){return(Zr==null?void 0:Zr.course_id)===(Vt==null?void 0:Vt.course_id)}))+1,Qo=Ls===((st=dn.detail)===null||st===void 0||((it=st.courses)===null||it===void 0)?void 0:it.length);return e.a.createElement("section",null,e.a.createElement("aside",{className:J.a.banner,style:{backgroundImage:dn!=null&&(dt=dn.detail)!==null&&dt!==void 0&&(Dt=dt.attachments)!==null&&Dt!==void 0&&(Qt=Dt[0])!==null&&Qt!==void 0&&Qt.url?"url(".concat(yt.a.API_SERVER+(dn==null||((Bt=dn.detail)===null||Bt===void 0||(($t=Bt.attachments)===null||$t===void 0||((ln=$t[0])===null||ln===void 0)))?void 0:ln.url),")"):"url(".concat(ct.a,")"),marginBottom:(On=dn.detail)!==null&&On!==void 0&&(Wt=On.courses)!==null&&Wt!==void 0&&Wt.length?70:20}},e.a.createElement("aside",{className:J.a.wrp},e.a.createElement("div",{className:J.a.operationWrap},!!((qt=dn.detail)!==null&&qt!==void 0&&qt.is_free)&&((yn=dn.detail)===null||yn===void 0?void 0:yn.publish_status)!==0&&(((Rn=dn.detail)===null||Rn===void 0?void 0:Rn.allow_add_member)||!Object(U.m)())&&e.a.createElement(l.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},e.a.createElement("span",{onClick:zs,style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:rt.a,style:{marginRight:"10px"}}),"\u53D1\u9001\u81F3")),((tn=dn.detail)===null||tn===void 0?void 0:tn.allow_statistics)&&((bn=dn.detail)===null||bn===void 0?void 0:bn.public_status)===2&&e.a.createElement("span",{onClick:function(){return u.d.push("/paths/".concat(Lt.pathId,"/statistics"))},style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:et.a,style:{marginRight:"10px"}}),"\u5B66\u4E60\u7EDF\u8BA1"),((Ln=dn.detail)===null||Ln===void 0?void 0:Ln.allow_add_member)&&e.a.createElement(w.a,{overlay:e.a.createElement(b.a,null,((Xn=dn.detail)===null||Xn===void 0?void 0:Xn.courses)&&(((rn=dn.detail)===null||rn===void 0?void 0:rn.is_creator)&&!!((hn=Uo.userInfo)!==null&&hn!==void 0&&hn.professional_certification)||Object(U.o)())&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ms},"\u5F00\u8BFE"),((An=dn.detail)===null||An===void 0?void 0:An.allow_statistics)&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:function(){return u.d.push("/paths/".concat(Lt.pathId,"/edit"))}},"\u7F16\u8F91\u8BFE\u7A0B"),((_n=dn.detail)===null||_n===void 0?void 0:_n.allow_add_member)&&((tr=dn.detail)===null||tr===void 0?void 0:tr.publish_status)===0&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:ys},"\u53D1\u5E03\u8BFE\u7A0B"),((cn=dn.detail)===null||cn===void 0?void 0:cn.allow_statistics)&&((Fn=dn.detail)===null||Fn===void 0?void 0:Fn.publish_status)===2&&((Ir=dn.detail)===null||Ir===void 0?void 0:Ir.public_status)===0&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ks},"\u64A4\u9500\u53D1\u5E03"),((hr=dn.detail)===null||hr===void 0?void 0:hr.allow_statistics)&&((Br=dn.detail)===null||Br===void 0?void 0:Br.publish_status)===2&&((ur=dn.detail)===null||ur===void 0?void 0:ur.public_status)===0&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Bs},"\u516C\u5F00\u8BFE\u7A0B"),((Fr=dn.detail)===null||Fr===void 0?void 0:Fr.allow_statistics)&&((Qn=dn.detail)===null||Qn===void 0?void 0:Qn.public_status)===1&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(U.c)()&&((kr=dn.detail)===null||kr===void 0?void 0:kr.allow_statistics)&&((ta=dn.detail)===null||ta===void 0?void 0:ta.public_status)===2&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u516C\u5F00"),((Wr=dn.detail)===null||Wr===void 0?void 0:Wr.allow_delete)&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:cr},"\u5220\u9664\u8BFE\u7A0B"))},e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:je.a,style:{marginRight:"10px"}}),"\u8BBE\u7F6E"))),e.a.createElement("p",{className:[J.a.titleWrap,((yr=dn.detail)===null||yr===void 0||((Dn=yr.name)===null||Dn===void 0)?void 0:Dn.indexOf(` `))&&J.a.titleFlexEnd].join(" ")},e.a.createElement("span",{className:J.a.title},e.a.createElement("strong",null,(ar=dn.detail)===null||ar===void 0||((Pr=ar.name)===null||Pr===void 0)?void 0:Pr.split(` `)[0]),e.a.createElement("span",{className:"font24"},e.a.createElement("br",null),(jn=dn.detail)===null||jn===void 0||(($n=jn.name)===null||$n===void 0)?void 0:$n.split(` `).filter(function(Zr,Rr){return Rr!==0}).join(""))),e.a.createElement("div",null,((ir=dn.detail)===null||ir===void 0?void 0:ir.excellent)&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((Zn=dn.detail)===null||Zn===void 0?void 0:Zn.featured)>0&&e.a.createElement("div",null,((zn=dn.detail)===null||zn===void 0?void 0:zn.featured)===1&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#FF8C29",border:"1px solid #FF8C29"}},"\u56FD\u5BB6\u4E00\u6D41"),((fn=dn.detail)===null||fn===void 0?void 0:fn.featured)===2&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((on=dn.detail)===null||on===void 0?void 0:on.featured)===3&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#B38D24",border:"1px solid #B38D24"}},"\u7701\u7EA7\u4E00\u6D41")),((Gn=Uo.userInfo)===null||Gn===void 0?void 0:Gn.login)&&((Jn=dn.detail)===null||Jn===void 0?void 0:Jn.is_collect)&&e.a.createElement(h.a,{className:"".concat(J.a.button," ").concat(J.a.buttonTransparent," mr15"),onClick:Al},"\u53D6\u6D88\u6536\u85CF"),((Sn=Uo.userInfo)===null||Sn===void 0?void 0:Sn.login)&&!((mr=dn.detail)!==null&&mr!==void 0&&mr.is_collect)&&e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:Qs},e.a.createElement("img",{src:$e.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")),!Object(U.p)()&&e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},className:"mr15",onClick:function(){if(!Object(Fe.e)(Za))return}},e.a.createElement("img",{src:$e.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")))),e.a.createElement("div",{className:J.a.contentWrap},e.a.createElement("div",{className:J.a.contentLeftWrap},!!((Kr=dn.detail)!==null&&Kr!==void 0&&Kr.stages_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7AE0\u8282"),e.a.createElement("p",{className:"mt3"},(Va=dn.detail)===null||Va===void 0?void 0:Va.stages_count)),!!((Ra=dn.detail)!==null&&Ra!==void 0&&Ra.shixuns_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5355\u5143"),e.a.createElement("p",{className:"mt3"},(aa=dn.detail)===null||aa===void 0?void 0:aa.shixuns_count)),!!((gi=dn.detail)!==null&&gi!==void 0&&gi.challenge_choose_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u9009\u62E9\u9898\u5173\u5361"),e.a.createElement("p",{className:"mt3"},(ti=dn.detail)===null||ti===void 0?void 0:ti.challenge_choose_count)),!!((Ka=dn.detail)!==null&&Ka!==void 0&&Ka.challenges_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5B9E\u8DF5\u5173\u5361"),e.a.createElement("p",{className:"mt3"},(no=dn.detail)===null||no===void 0?void 0:no.challenges_count)),!!((ro=dn.detail)!==null&&ro!==void 0&&ro.videos_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u89C6\u9891"),e.a.createElement("p",{className:"mt3"},(Di=dn.detail)===null||Di===void 0?void 0:Di.videos_count)),!!((Io=dn.detail)!==null&&Io!==void 0&&Io.attachment_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u8BFE\u4EF6"),e.a.createElement("p",{className:"mt3"},(Mo=dn.detail)===null||Mo===void 0?void 0:Mo.attachment_count)),((ao=dn.detail)===null||ao===void 0?void 0:ao.publish_status)!==0&&!!((Ii=dn.detail)!==null&&Ii!==void 0&&Ii.subject_score)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),e.a.createElement("p",{className:"mt3"},(ki=dn.detail)===null||ki===void 0?void 0:ki.subject_score)),((So=dn.detail)===null||So===void 0?void 0:So.publish_status)!==0&&!!((co=dn.detail)!==null&&co!==void 0&&co.member_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,(ho=dn.detail)!==null&&ho!==void 0&&ho.excellent?"\u53C2\u4E0E\u4EBA\u6570":"\u5B66\u4E60\u4EBA\u6570"),e.a.createElement("p",{className:"mt3"},(Qi=dn.detail)===null||Qi===void 0?void 0:Qi.member_count)),((Mi=dn.detail)===null||Mi===void 0?void 0:Mi.subject_score)>=0&&e.a.createElement("span",{className:"font14 c-white"},e.a.createElement("span",null,"\u8BC4\u5206"),e.a.createElement("br",null),e.a.createElement(d.a,{allowHalf:!0,value:Object(fe.B)((Vi=dn.detail)===null||Vi===void 0?void 0:Vi.averge_star),disabled:!0,className:J.a.rating})))),!!((Ki=dn.detail)!==null&&Ki!==void 0&&(go=Ki.courses)!==null&&go!==void 0&&go.length)&&e.a.createElement("aside",{className:J.a.nav},e.a.createElement("div",{className:J.a.navLeft},Vt.course_identity<4&&e.a.createElement(l.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},e.a.createElement("a",{href:"/classrooms/".concat(Vt==null?void 0:Vt.course_id,"/newgolds/settings"),target:"_blank"},e.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(J.a.navLeftIcon)}))),e.a.createElement(w.a,{overlay:e.a.createElement(b.a,null,(Fi=Object(o.a)((Xa=dn.detail)===null||Xa===void 0?void 0:Xa.courses))===null||Fi===void 0||((yo=Fi.reverse())===null||yo===void 0)?void 0:yo.map(function(Zr,Rr){var Ta,Or;return e.a.createElement(b.a.Item,{key:Zr.course_id,onClick:function(){return hl(Zr.course_id)}},e.a.createElement("span",{className:"font14"},"\u7B2C",((Ta=dn.detail)===null||Ta===void 0||((Or=Ta.courses)===null||Or===void 0)?void 0:Or.length)-Rr,"\u671F"))}))},e.a.createElement("div",null,e.a.createElement("span",{className:"font14 current"},"\u7B2C",e.a.createElement("span",{className:J.a.colorOrange},Ls),"\u671F"),e.a.createElement(k.a,null))),e.a.createElement("div",{className:J.a.navContent},e.a.createElement("div",{className:J.a.contentItem},e.a.createElement("div",{className:J.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:J.a.contentItemText},Vt==null?void 0:Vt.start_date)),e.a.createElement("div",{className:J.a.verticalLine}),e.a.createElement("div",{className:J.a.contentItem},e.a.createElement("div",{className:J.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:J.a.contentItemText},Vt==null?void 0:Vt.end_date)),e.a.createElement("div",{className:J.a.verticalLine}),e.a.createElement("div",{className:J.a.contentItem},e.a.createElement("div",{className:J.a.contentItemTitle},(io=dn.detail)!==null&&io!==void 0&&io.excellent?"\u53C2\u4E0E\u4EBA\u6570\uFF1A":"\u62A5\u540D\u4EBA\u6570\uFF1A"),e.a.createElement("div",{className:J.a.contentItemText},Vt==null?void 0:Vt.student_count," \u4EBA")))),e.a.createElement("div",{className:J.a.navRight,style:{display:"none"}},e.a.createElement("div",{className:J.a.flexRow},(Vt==null||((Lo=Vt.course_status)===null||Lo===void 0)?void 0:Lo.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},Vt==null||((Wi=Vt.course_status)===null||Wi===void 0)?void 0:Wi.time),(Vt==null||((Ti=Vt.course_status)===null||Ti===void 0)?void 0:Ti.status)===2&&Vt.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((Ao=Vt.course_status)===null||Ao===void 0?void 0:Ao.status)===2&&(Vt.course_identity<6?e.a.createElement("a",{className:J.a.classButton,href:"/classrooms/".concat(Vt==null||((qo=Vt.first_category_url)===null||qo===void 0||(($o=qo.split("/"))===null||$o===void 0))?void 0:$o[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((Go=Vt.course_status)===null||Go===void 0?void 0:Go.status)===1&&Vt.course_identity>5&&e.a.createElement("div",{className:J.a.classButton,onClick:Ni},"\u7ACB\u5373\u52A0\u5165"),((Xi=Vt.course_status)===null||Xi===void 0?void 0:Xi.status)===1&&Vt.course_identity===5&&e.a.createElement("a",{className:J.a.classButton,href:"/classrooms/".concat(Vt==null||((es=Vt.first_category_url)===null||es===void 0||((yi=es.split("/"))===null||yi===void 0))?void 0:yi[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((Ua=Vt.course_status)===null||Ua===void 0?void 0:Ua.status)===0&&Vt.course_identity>5&&e.a.createElement("div",{className:J.a.classButton,onClick:Ni},"\u7ACB\u5373\u62A5\u540D"),((li=Vt.course_status)===null||li===void 0?void 0:li.status)===0&&Vt.course_identity===5&&e.a.createElement("div",{className:J.a.classButton},"\u62A5\u540D\u6210\u529F"),((Vt==null||((Na=Vt.course_status)===null||Na===void 0)?void 0:Na.status)===0||(Vt==null||((Yi=Vt.course_status)===null||Yi===void 0)?void 0:Yi.status)===1)&&Vt.course_identity<5&&e.a.createElement("a",{className:J.a.classButton,href:"/classrooms/".concat(Vt==null||((bo=Vt.first_category_url)===null||bo===void 0||((Li=bo.split("/"))===null||Li===void 0))?void 0:Li[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Ho&&Qo&&((Vo=dn.detail)===null||Vo===void 0?void 0:Vo.has_participate)&&e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Ho&&Qo&&!((Po=dn.detail)!==null&&Po!==void 0&&Po.has_participate)&&(mn?e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),e.a.createElement("div",{className:J.a.flexRow},Ho&&!!((Xo=dn.detail)!==null&&Xo!==void 0&&(Bi=Xo.courses)!==null&&Bi!==void 0&&Bi.length)&&Qo&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(In=dn.detail)===null||In===void 0?void 0:In.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},mn===!0?((Ji=dn.detail)===null||Ji===void 0?void 0:Ji.participant_count)+1:(vs=dn.detail)===null||vs===void 0?void 0:vs.participant_count),"\u4EBA")),Ho&&!((ts=dn.detail)!==null&&ts!==void 0&&(ca=ts.courses)!==null&&ca!==void 0&&ca.length)&&Qo&&e.a.createElement("span",null,!((Ur=dn.detail)!==null&&Ur!==void 0&&Ur.has_participate)&&(mn===!0?e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(J.a.classButton," ").concat(J.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((ui=dn.detail)===null||ui===void 0?void 0:ui.has_participate)&&e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(wa=dn.detail)===null||wa===void 0?void 0:wa.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},mn===!0?((To=dn.detail)===null||To===void 0?void 0:To.participant_count)+1:(Zi=dn.detail)===null||Zi===void 0?void 0:Zi.participant_count),"\u4EBA"))))))),e.a.createElement(Ie,null),No.status&&e.a.createElement(Ke,{type:"subject",onCancel:function(){return fo(!1)},onOk:function(Rr){fo(!1),bs(Rr)}}),e.a.createElement(T.a,{visible:Ya,title:"\u8BFE\u7A0B\u63D0\u793A",width:593,maskClosable:!1,onCancel:function(){fi(!1)},centered:!0,footer:e.a.createElement("div",null,e.a.createElement(h.a,{type:"primary",onClick:function(){fi(!1)}},"\u6211\u77E5\u9053\u4E86"))},e.a.createElement(ze.a,{style:{maxHeight:378,overflow:"auto"},value:dn==null||((Eo=dn.detail)===null||Eo===void 0||((oo=Eo.toast)===null||oo===void 0))?void 0:oo.content})))},At=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.user,Te=Ge.loading,Ve=Ge.globalSetting;return{pathsDetail:Ye,user:Je,globalSetting:Ve,loading:Te.models.index}})(mt),Ut=M("MXD1"),Xt=M("CFYs"),un=M("8Bcu"),jt=M.n(un),Zt=M("g9YV"),Mt=M("wCAj"),Tt=M("O3gP"),Ct=M("lrIw"),Re=M("RotF"),We=M.n(Re),St=M("oUNq"),ft=M("lzim"),It=M("55Ip"),Ot=function(Ye){var Je=Ye.pathsDetail,Te=Ye.loading,Ve=Ye.dispatch,Be=Ye.onReloadData,at=Be===void 0?function(){}:Be,nt=Object(s.i)(),st=Object(n.useState)([]),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)(!0),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)(!1),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=ne.a.useForm(),tn=Object(E.a)(Rn,1),bn=tn[0],Ln=Object(n.useState)([]),Xn=Object(E.a)(Ln,2),rn=Xn[0],hn=Xn[1],An=Object(n.useState)(1),_n=Object(E.a)(An,2),tr=_n[0],cn=_n[1],Fn=Object(n.useState)([]),Ir=Object(E.a)(Fn,2),hr=Ir[0],Br=Ir[1],ur=Object(n.useState)(!0),Fr=Object(E.a)(ur,2),Qn=Fr[0],kr=Fr[1],ta=Object(n.useState)(!1),Wr=Object(E.a)(ta,2),yr=Wr[0],Dn=Wr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCollaborator"&&(kr(!0),ln(!0),ar())},[Je.actionTabs.key]);var ar=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn;return r.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Ve({type:"classroomList/getSchoolList",payload:{}});case 2:Gn=Sn.sent,Dt(Gn.map(function(mr){return{value:mr}}));case 4:case"end":return Sn.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),Pr=function(){var on,Gn;if(!((on=bn.getFieldValue())!==null&&on!==void 0&&(Gn=on.keyword)!==null&&Gn!==void 0&&Gn.trim())){R.b.warn("\u8BF7\u8F93\u5165\u59D3\u540D"),hn([]);return}kr(!1),ln(!0),yn(!1),cn(1),Br([]),$n(!0)},jn=function(on){on=String(on);var Gn=hr.indexOf(on);Gn<0?hr.push(on):hr.splice(Gn,1),Br(Object(o.a)(hr))},$n=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn,Jn,Sn,mr,Kr,Va=arguments;return r.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Gn=Va.length>0&&Va[0]!==void 0?Va[0]:!1,!($t&&!qt||Gn)){aa.next=11;break}return mr=bn.getFieldValue(),yn(!0),cn(Gn?1:tr+1),aa.next=7,Object(St.wb)({page:Gn?1:tr+1,container_id:nt.pathId,container_type:3,school_name:(mr==null?void 0:mr.school_name)||null,keyword:(mr==null||((Jn=mr.keyword)===null||Jn===void 0)?void 0:Jn.trim())||null});case 7:Kr=aa.sent,hn(Gn?Object(o.a)(Kr.users):[].concat(Object(o.a)(rn),Object(o.a)(Kr.users))),yn(!1),((Sn=Kr.users)===null||Sn===void 0?void 0:Sn.length)<10&&ln(!1);case 11:case"end":return aa.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),ir=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn;return r.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(hr!=null&&hr.length){Sn.next=4;break}R.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),Sn.next=10;break;case 4:return Dn(!0),Sn.next=7,Object(K.e)({id:nt.pathId,user_ids:hr});case 7:Gn=Sn.sent,Dn(!1),Gn&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),Zn(),at&&at());case 10:case"end":return Sn.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),Zn=function(){bn.setFieldsValue({keyword:""}),Ve({type:"pathsDetail/setActionTabs",payload:{}})},zn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(on,Gn){return e.a.createElement(X.a,{value:Gn.numid,checked:hr.includes(String(Gn.numid)),disabled:!!on})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(on,Gn){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement(It.a,{className:"bold c-black",to:"/users/".concat(Gn.login),target:"_blank"},on||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(on){return on?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on&&pe()(on).format("YYYY-MM-DD HH:mm")},e.a.createElement("span",null,on&&pe()(on).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(on){if(on===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(T.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Je.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:yr,onOk:ir,onCancel:Zn},e.a.createElement(ne.a,{layout:"inline",form:bn,initialValues:{school_name:"",keyword:""},className:"mt10",onFinish:Pr},e.a.createElement(ne.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(re.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})),e.a.createElement(ne.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement(Ct.a,{allowClear:!0,defaultOpen:!1,options:dt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(on,Gn){return Gn.value.toUpperCase().indexOf(on.toUpperCase())!==-1}})),e.a.createElement(ne.a.Item,null,e.a.createElement(h.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),Qn&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:ft.A,width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!Qn&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Mt.a,{pagination:!1,dataSource:[],columns:zn})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(We.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(on){$n()},hasMore:$t,useWindow:!1},e.a.createElement(Mt.a,{loading:qt,showHeader:!1,pagination:!1,dataSource:rn,columns:zn,onRow:function(on){return{onClick:function(Jn){Jn.currentTarget.querySelector("input").disabled||jn(Jn.currentTarget.querySelector("input").value)}}}})))))},bt=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading;return{pathsDetail:Ye,loading:Je}})(Ot),Ht=function(Ye){var Je=Ye.pathsDetail,Te=Ye.loading,Ve=Ye.dispatch,Be=Ye.data,at=Ye.onReloadData,nt=at===void 0?function(){}:at,st=Object(s.i)(),it=Object(n.useState)(!0),dt=Object(E.a)(it,2),Dt=dt[0],Qt=dt[1],Bt=Object(n.useState)(!1),$t=Object(E.a)(Bt,2),ln=$t[0],On=$t[1],Wt=ne.a.useForm(),qt=Object(E.a)(Wt,1),yn=qt[0],Rn=Object(n.useState)([]),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1],Xn=Object(n.useState)(1),rn=Object(E.a)(Xn,2),hn=rn[0],An=rn[1],_n=Object(n.useState)([]),tr=Object(E.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=Object(n.useState)(!0),hr=Object(E.a)(Ir,2),Br=hr[0],ur=hr[1],Fr=Object(n.useState)(!1),Qn=Object(E.a)(Fr,2),kr=Qn[0],ta=Qn[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCourses"&&(ur(!0),Qt(!0),Wr())},[Je.actionTabs.key]);var Wr=function(){var ir=Object(y.a)(r.a.mark(function Zn(){var zn;return r.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.next=2,Ve({type:"classroomList/getSchoolList",payload:{}});case 2:zn=on.sent;case 3:case"end":return on.stop()}},Zn)}));return function(){return ir.apply(this,arguments)}}(),yr=function(){ur(!1),Qt(!0),On(!1),An(1),Fn([]),ar(!0)},Dn=function(Zn){Zn=String(Zn);var zn=cn.indexOf(Zn);zn<0?cn.push(Zn):cn.splice(zn,1),Fn(Object(o.a)(cn))},ar=function(){var ir=Object(y.a)(r.a.mark(function Zn(){var zn,fn,on,Gn,Jn,Sn=arguments;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:if(zn=Sn.length>0&&Sn[0]!==void 0?Sn[0]:!1,!(Dt&&!ln||zn)){Kr.next=11;break}return Gn=yn.getFieldValue(),On(!0),An(zn?1:hn+1),Kr.next=7,Object(St.vb)({page:zn?1:hn+1,container_id:st.pathId,container_type:3,manager_name:(Gn==null?void 0:Gn.manager_name)||null,course_name:(Gn==null||((fn=Gn.course_name)===null||fn===void 0)?void 0:fn.trim())||null});case 7:Jn=Kr.sent,Ln(zn?Object(o.a)(Jn.courses):[].concat(Object(o.a)(bn),Object(o.a)(Jn.courses))),On(!1),((on=Jn.courses)===null||on===void 0?void 0:on.length)<10&&Qt(!1);case 11:case"end":return Kr.stop()}},Zn)}));return function(){return ir.apply(this,arguments)}}(),Pr=function(){var ir=Object(y.a)(r.a.mark(function Zn(){var zn,fn,on,Gn;return r.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(cn!=null&&cn.length){Sn.next=4;break}R.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),Sn.next=19;break;case 4:if(!(Je.actionTabs.type!=1)){Sn.next=10;break}if(!((Je==null||((zn=Je.Courses)===null||zn===void 0||((fn=zn.spoc_courses)===null||fn===void 0))?void 0:fn.length)+(cn==null?void 0:cn.length)>3)){Sn.next=8;break}return R.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),Sn.abrupt("return");case 8:Sn.next=13;break;case 10:if(!((Be==null||((on=Be.spoc_courses)===null||on===void 0)?void 0:on.length)+(cn==null?void 0:cn.length)>3)){Sn.next=13;break}return R.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),Sn.abrupt("return");case 13:return ta(!0),Sn.next=16,Object(K.b)({id:st.pathId,course_ids:cn,course_type:Je.actionTabs.type});case 16:Gn=Sn.sent,ta(!1),Gn&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),jn(),nt&&nt());case 19:case"end":return Sn.stop()}},Zn)}));return function(){return ir.apply(this,arguments)}}(),jn=function(){yn.setFieldsValue({course_name:"",manager_name:""}),Fn([]),Ve({type:"pathsDetail/setActionTabs",payload:{}})},$n=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Zn,zn){return e.a.createElement(X.a,{value:zn.id,checked:cn.includes(String(zn.id)),disabled:!!Zn})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}}];return e.a.createElement(T.a,{title:"\u6DFB\u52A0\u8BFE\u5802",visible:Je.actionTabs.key==="Collaborators-AddCourses",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:kr,onOk:Pr,onCancel:jn},e.a.createElement(ne.a,{layout:"inline",form:yn,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:yr},e.a.createElement(ne.a.Item,{name:"course_name",label:"\u8BFE\u5802\u540D\u79F0"},e.a.createElement(re.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),e.a.createElement(ne.a.Item,{name:"manager_name",label:"\u8BFE\u5802\u7BA1\u7406\u8005"},e.a.createElement(re.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u7BA1\u7406\u8005\u540D\u79F0"})),e.a.createElement(ne.a.Item,null,e.a.createElement(h.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),Br&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:ft.A,width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!Br&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Mt.a,{pagination:!1,dataSource:[],columns:$n})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(We.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Zn){ar()},hasMore:Dt,useWindow:!1},e.a.createElement(Mt.a,{loading:ln,showHeader:!1,pagination:!1,dataSource:bn,columns:$n,onRow:function(Zn){return{onClick:function(fn){fn.currentTarget.querySelector("input").disabled||Dn(fn.currentTarget.querySelector("input").value)}}}})))))},Gt=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading;return{pathsDetail:Ye,loading:Je}})(Ht),xn=M("2BaD"),vn=M("1n7x"),sr=M.n(vn),xr=M("y1J/"),Kn=M.n(xr),En=M("A2z3"),Qr=M.n(En),sa=M("Ye+n"),Xr=M.n(sa),Nr=function(Ye){var Je=Ye.visible,Te=Ye.onOk,Ve=Te===void 0?function(){}:Te,Be=Ye.onCancel,at=Be===void 0?function(){}:Be,nt=Ye.data,st=nt===void 0?{}:nt,it=Object(n.useRef)();Object(n.useEffect)(function(){return Je?document.body.setAttribute("class",Xr.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Je]);var dt={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},Dt=function(){var Qt=Object(y.a)(r.a.mark(function Bt(){var $t,ln,On;return r.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return document.body.scrollIntoView(),$t={margin:[0,0,0,0],filename:"11.pdf",enableLinks:!1,html2canvas:{scale:5,allowTaint:!1,useCORS:!0},jsPDF:{format:[1412,1e3],orientation:"landscape",unit:"px"},image:{type:"jpeg",quality:1}},ln=sr()().set($t).from(it.current).toPdf(),qt.next=5,ln.get("pdf");case 5:return ln=qt.sent,qt.next=8,ln.output("bloburl");case 8:On=qt.sent,Object(fe.v)("".concat(st.school_name,"-").concat(st.user_name,".pdf"),On);case 10:case"end":return qt.stop()}},Bt)}));return function(){return Qt.apply(this,arguments)}}();return e.a.createElement(T.a,{visible:Je,title:null,footer:e.a.createElement("div",null,e.a.createElement(h.a,{type:"primary",onClick:Dt},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:1052,className:Xr.a.advertisementModal,maskClosable:!1,closeIcon:e.a.createElement(xn.a,{onClick:at,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},e.a.createElement("div",{ref:it},e.a.createElement("div",{style:{backgroundImage:"url(".concat(Qr.a,")"),height:"740px",width:"1052px",padding:"1px 100px"}},e.a.createElement("div",{style:{color:"#EB5E00",fontSize:"36px",marginTop:"239px",width:"100%",textAlign:"center"}},st==null?void 0:st.school_name," ",st==null?void 0:st.user_name),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"24px",marginTop:"30px",width:"100%",textAlign:"center"}},"\u4E8E",pe()(st==null?void 0:st.created_at).format("YYYY\u5E74MM\u6708DD\u65E5"),"\u5B8C\u6210\u4E86EduCoder\u5E73\u53F0\u300A",st==null?void 0:st.subject_name,"\u300B\u8BFE\u7A0B\u5B66\u4E60\u3002"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"30px",marginTop:"50px",width:"100%",textAlign:"center",fontWeight:900}},"\u7279\u6B64\u8BC1\u660E"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"14px",marginTop:"30px",width:"100%",textAlign:"center"}},"On ",dt[pe()(st==null?void 0:st.created_at).format("M")]," ",pe()(st==null?void 0:st.created_at).format("DD"),"\uFF0C",pe()(st==null?void 0:st.created_at).format("YYYY"),"\uFF0C completed the \u300A",st==null?void 0:st.subject_name_en,"\u300B course on EduCoder."),e.a.createElement("img",{src:Kn.a,style:{position:"absolute",left:"820px",bottom:"130px"}}),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"12px",width:"100%",display:"flex",paddingRight:"200px",position:"absolute",bottom:"150px"}},e.a.createElement("span",null,"\u8BC1\u4E66\u7F16\u53F7\uFF1A",st==null?void 0:st.code),e.a.createElement("span",{style:{marginLeft:"560px"}},"\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662")))))},ba=Nr,ja=M("YJCA"),oi=M("wYyv"),Le=M.n(oi),Qe=M("WPnJ"),ot=M.n(Qe),_t=Object(ja.b)(function(Ge){var Ye,Je,Te,Ve,Be,at,nt,st,it,dt=Ge.item,Dt=Ge.toIndex,Qt=Ge.params,Bt=Ge.isShow,$t=Ge.setShow,ln=Ge.dispatch,On=Ge.classroomList,Wt=Ge.handleDeleteMember,qt=Ge.pathsDetail;return e.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},e.a.createElement("div",{className:ot.a.directionItemWrap},e.a.createElement(l.a,{color:"#ffffff",placement:"bottom",title:e.a.createElement("div",{className:ot.a.teamHeight},e.a.createElement("span",{title:dt==null?void 0:dt.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(dt==null||((Ye=dt.name)===null||Ye===void 0)?void 0:Ye.length)>6?(dt==null||((Je=dt.name)===null||Je===void 0)?void 0:Je.substr(0,6))+"...":(dt==null?void 0:dt.name)||"--"),e.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(dt==null||((Te=dt.school)===null||Te===void 0)?void 0:Te.length)>9?(dt==null||((Ve=dt.school)===null||Ve===void 0)?void 0:Ve.substr(0,9))+"...":dt==null?void 0:dt.school),e.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(dt!=null&&dt.brief_introduction)&&e.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(dt==null?void 0:dt.brief_introduction)&&e.a.createElement("div",{className:ot.a.divHeight},dt==null?void 0:dt.brief_introduction))},e.a.createElement("img",{draggable:!1,className:ot.a.imgradius,onClick:function(){Object(U.p)()?u.d.push("".concat(dt.user_url)):ln({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:yt.a.API_SERVER+"/images/"+(dt==null?void 0:dt.image_url)}),e.a.createElement("div",null,(dt==null||((Be=dt.name)===null||Be===void 0)?void 0:Be.length)>6?(dt==null||((at=dt.name)===null||at===void 0)?void 0:at.substr(0,6))+"...":(dt==null?void 0:dt.name)||"--",e.a.createElement("br",null),e.a.createElement("span",{style:{color:"#999999"}},(dt==null||((nt=dt.school)===null||nt===void 0)?void 0:nt.length)>6?(dt==null||((st=dt.school)===null||st===void 0)?void 0:st.substr(0,6))+"...":(dt==null?void 0:dt.school)||"--"))),e.a.createElement("br",null),e.a.createElement("span",{className:ot.a.groupActionWrap},e.a.createElement("i",{style:{display:!((it=qt.detail)!==null&&it!==void 0&&it.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(Rn){Rn.stopPropagation(),Wt(dt.id)}}))))}),Kt=Object(ja.a)(function(Ge){var Ye=Ge.isShow,Je=Ge.setShow,Te=Ge.pathsDetail,Ve=Ge.items,Be=Ge.params,at=Ge.dispatch,nt=Ge.classroomList,st=Ge.handleDeleteMember;return e.a.createElement("div",{className:"task-list-container"},Ve==null?void 0:Ve.map(function(it,dt){return e.a.createElement(_t,{key:"".concat(it.id),isShow:Ye,setShow:Je,dispatch:at,pathsDetail:Te,handleDeleteMember:st,classroomList:nt,toIndex:dt+1,params:Be,index:dt,item:it})}))}),nn=function(Ye){var Je=Ye.data,Te=Ye.classroomList,Ve=Ye.pathsDetail,Be=Ye.operation,at=Ye.callback,nt=Ye.handleDeleteMember,st=Ye.onCancel,it=Ye.dispatch,dt=Ye.visible,Dt=dt===void 0?!1:dt,Qt=Object(n.useState)(Je),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(s.i)(),Wt=Object(n.useState)(),qt=Object(E.a)(Wt,2),yn=qt[0],Rn=qt[1],tn=Object(n.useState)(!0),bn=Object(E.a)(tn,2),Ln=bn[0],Xn=bn[1];function rn(_n){var tr=_n.newIndex,cn=_n.oldIndex;if(!Be)return;hn(Le()($t,cn,tr).map(function(Fn){return Fn==null?void 0:Fn.id})),ln(Le()($t,cn,tr))}Object(n.useEffect)(function(){ln(Je)},[JSON.stringify(Je)]);function hn(_n){return An.apply(this,arguments)}function An(){return An=Object(y.a)(r.a.mark(function _n(tr){var cn;return r.a.wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return Ir.next=2,Object(le.a)("/api/paths/".concat(On==null?void 0:On.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:tr}});case 2:cn=Ir.sent;case 3:case"end":return Ir.stop()}},_n)})),An.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(Kt,{axis:"xy",helperClass:"dragging-li",isShow:Ln,setShow:Xn,distance:2,dispatch:it,pathsDetail:Ve,handleDeleteMember:nt,classroomList:Te,params:On,items:$t,onSortEnd:rn}))},ve=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(nn),z=M("lseA"),Z=M.n(z),ye=[2,5,8,11,14],Ce=Object(ja.b)(function(Ge){var Ye,Je,Te,Ve,Be=Ge.item,at=Ge.toIndex,nt=Ge.params,st=Ge.dispatch,it=Ge.classroomList,dt=Ge.handleDeleteMember,Dt=Ge.pathsDetail;return e.a.createElement("span",{onClick:function(){window.open(Be==null?void 0:Be.first_category_url)},style:{display:"inline-block",padding:"10px 20px",width:"100%",background:"#fff",marginTop:"5px"}},e.a.createElement("div",{className:Z.a.directionItemWrap},e.a.createElement("img",{className:Z.a.imgradius,src:yt.a.API_SERVER+(Be==null?void 0:Be.default_image)}),e.a.createElement("span",{className:Z.a.groupActionWrap},e.a.createElement(l.a,{title:Be.name},e.a.createElement("span",{style:{fontSize:"18px",color:"#ffffff"}},((Ye=Be.name)===null||Ye===void 0?void 0:Ye.length)>7?e.a.createElement("span",null,(Je=Be.name)===null||Je===void 0?void 0:Je.substring(0,7),e.a.createElement("br",null)," ",(Te=Be.name)===null||Te===void 0?void 0:Te.substring(7,14),(Be==null?void 0:Be.name.length)>14&&"..."):Be.name)))),e.a.createElement("div",{className:Z.a.bottomdiv},e.a.createElement(l.a,{title:"\u8BBF\u95EE\u6570\uFF1A".concat(Be==null?void 0:Be.visits),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-chakan ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}},Be==null?void 0:Be.visits))),e.a.createElement(l.a,{title:"\u8BFE\u5802\u6210\u5458\u6570\uFF1A".concat(Be==null?void 0:Be.course_members_count),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-ren ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Be==null?void 0:Be.course_members_count))),e.a.createElement(l.a,{overlayStyle:{maxWidth:380},title:e.a.createElement("div",{style:{whiteSpace:"nowrap"}},"\u8BFE\u5802\u7684\u4EFB\u52A1\u6570(\u4F5C\u4E1A\u6570\uFF0B\u8BD5\u5377\u6570\uFF0B\u95EE\u5377\u6570)\uFF1A",Be==null?void 0:Be.tasks_count),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-wenjian2 ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Be==null?void 0:Be.tasks_count))),e.a.createElement(l.a,{title:"\u5220\u9664",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{color:"#bbbbbb",display:!(Dt!=null&&(Ve=Dt.detail)!==null&&Ve!==void 0&&Ve.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Bt){Bt.stopPropagation(),dt(Be.id)}})))))}),be=Object(ja.a)(function(Ge){var Ye=Ge.items,Je=Ge.params,Te=Ge.dispatch,Ve=Ge.classroomList,Be=Ge.handleDeleteMember,at=Ge.pathsDetail;return e.a.createElement("div",{className:"task-list-container"},Ye==null?void 0:Ye.map(function(nt,st){return e.a.createElement(Ce,{key:"".concat(nt.id),dispatch:Te,pathsDetail:at,handleDeleteMember:Be,classroomList:Ve,toIndex:st+1,params:Je,index:st,item:nt})}))}),ht=function(Ye){var Je=Ye.data,Te=Ye.classroomList,Ve=Ye.pathsDetail,Be=Ye.callback,at=Ye.handleDeleteMember,nt=Ye.onCancel,st=Ye.dispatch,it=Ye.visible,dt=it===void 0?!1:it,Dt=Object(n.useState)(Je),Qt=Object(E.a)(Dt,2),Bt=Qt[0],$t=Qt[1],ln=Object(s.i)(),On=Object(n.useState)(),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1];function Rn(Ln){var Xn=Ln.newIndex,rn=Ln.oldIndex;tn(Le()(Bt,rn,Xn).map(function(hn){return hn==null?void 0:hn.id})),$t(Le()(Bt,rn,Xn))}Object(n.useEffect)(function(){$t(Je)},[JSON.stringify(Je)]);function tn(Ln){return bn.apply(this,arguments)}function bn(){return bn=Object(y.a)(r.a.mark(function Ln(Xn){var rn;return r.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.next=2,Object(le.a)("/api/paths/".concat(ln==null?void 0:ln.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Xn}});case 2:rn=An.sent;case 3:case"end":return An.stop()}},Ln)})),bn.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(be,{axis:"y",helperClass:"dragging-li",pathsDetail:Ve,distance:2,dispatch:st,handleDeleteMember:at,classroomList:Te,params:ln,items:Bt,onSortEnd:Rn}))},Nt=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(ht),sn=M("V0Rq"),pn=M("HBuW"),zt=M("W6us"),qn=M.n(zt),Un=M("CnIC"),rr=M.n(Un),Sr=M("LZjx"),ia=M.n(Sr),Dr=M("dhSg"),na=M("cVA7"),Tr=M.n(na),ma=M("h6EL");function ha(Ge){var Ye=function(at,nt){if(at.localName===nt)return at;for(var st=0,it=at;it=it.parentNode;st++){if(it.localName===nt)return it;if(it==document.documentElement)return!1}},Je=Ge.target,Te=Ye(Je,"a");if(console.log([Te],Te==null?void 0:Te.href,44),Te!=null&&Te.href)return;if(Je.tagName.toUpperCase()==="IMG"){var Ve=Je.src||Je.getAttribute("src");Ve&&Ve.indexOf("/images/avatars/User")===-1&&(Ge.stopPropagation(),Ge.preventDefault(),Dr.a.publish("preview-image",Ve))}}var Oa=function(Ye){var Je,Te,Ve,Be,at,nt,st,it,dt,Dt,Qt,Bt,$t,ln,On,Wt,qt,yn,Rn,tn,bn,Ln,Xn,rn,hn,An,_n,tr,cn,Fn,Ir,hr,Br,ur,Fr,Qn,kr,ta,Wr,yr,Dn,ar,Pr,jn,$n,ir,Zn,zn,fn,on,Gn,Jn,Sn,mr,Kr,Va,Ra,aa,gi,ti,Ka,no,ro,Di,Io,Mo,ao,Ii,ki,So,co,ho,Qi,Mi,Vi,Ki,go,Fi,yo,Xa,io,Lo,Wi,Ti,Ao,qo,$o,Go,Xi,es,yi,Ua,li,Na,Yi,bo,Li,Vo,Po,Xo,Bi,In=Ye.pathsDetail,Ji=Ye.user,vs=Ye.globalSetting,ts=Ye.loading,ca=Ye.classroomList,Ur=Ye.dispatch,ui=Object(_.a)(Ye,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),wa=Object(s.i)(),To=Object(n.useState)(!0),Zi=Object(E.a)(To,2),Eo=Zi[0],oo=Zi[1],dn=Object(n.useState)(!1),Uo=Object(E.a)(dn,2),Ss=Uo[0],gs=Uo[1],Za=Object(n.useState)(),Tn=Object(E.a)(Za,2),Lt=Tn[0],Yt=Tn[1],Cn=Object(n.useState)(),Vt=Object(E.a)(Cn,2),er=Vt[0],lr=Vt[1],fr=Object(n.useState)({}),$r=Object(E.a)(fr,2),mn=$r[0],ni=$r[1],Pi=Object(n.useState)(),La=Object(E.a)(Pi,2),da=La[0],Oi=La[1],qi=Object(n.useRef)(),qa=Object(n.useState)(!1),Ya=Object(E.a)(qa,2),fi=Ya[0],ko=Ya[1],Fo=Object(n.useState)({}),No=Object(E.a)(Fo,2),jo=No[0],Ts=No[1];Object(n.useEffect)(function(){if(qi.current)return qi.current.addEventListener("mousedown",ha),function(){qi.current.removeEventListener("mousedown",ha)}},[qi.current]);var hl=function(){var Wn=Object(y.a)(r.a.mark(function Pn(){var wn;return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(er!=null&&er.trim()){Bn.next=3;break}return R.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Bn.abrupt("return");case 3:return Bn.next=5,Object(K.V)({id:wa.pathId,team_title:er.trim()});case 5:wn=Bn.sent,Yt(!Lt),(wn==null?void 0:wn.status)===0&&(lr(null),R.b.success(wn.message),Ur({type:"pathsDetail/getRightData",payload:{id:wa.pathId}}));case 8:case"end":return Bn.stop()}},Pn)}));return function(){return Wn.apply(this,arguments)}}();Object(n.useEffect)(function(){Ur({type:"pathsDetail/getCoureses",payload:{id:wa.pathId}}),Al()},[]);function Al(){return Qs.apply(this,arguments)}function Qs(){return Qs=Object(y.a)(r.a.mark(function Wn(){return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.t0=Ts,wn.next=3,Object(K.w)({id:wa.pathId,course_type:1});case 3:wn.t1=wn.sent,(0,wn.t0)(wn.t1);case 5:case"end":return wn.stop()}},Wn)})),Qs.apply(this,arguments)}Object(n.useEffect)(function(){var Wn;if(((Wn=ca.actionTabs)===null||Wn===void 0?void 0:Wn.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var Pn,wn,nr=(Pn=In.detail)===null||Pn===void 0||((wn=Pn.courses)===null||wn===void 0)?void 0:wn.find(function(Bn){var _r;return Bn.course_id===((_r=ca.actionTabs)===null||_r===void 0?void 0:_r.name)});ni(nr||{})}},[ca.actionTabs]),Object(n.useEffect)(function(){var Wn,Pn,wn;if((Wn=In.detail)!==null&&Wn!==void 0&&Wn.has_start){var nr,Bn,_r=(nr=In.detail)===null||nr===void 0||((Bn=nr.courses)===null||Bn===void 0)?void 0:Bn.findIndex(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)===1});wn=_r>-1?_r:0}else{var Mr,jr,Pa,Ja,bi,pi=(Mr=In.detail)===null||Mr===void 0||((jr=Mr.courses)===null||jr===void 0||((Pa=jr.map(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)}))===null||Pa===void 0))?void 0:Pa.lastIndexOf(2);wn=pi>-1?pi:0,pi=(Ja=In.detail)===null||Ja===void 0||((bi=Ja.courses)===null||bi===void 0)?void 0:bi.findIndex(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)===0}),wn=pi>-1?pi:wn}if((Pn=In.detail)!==null&&Pn!==void 0&&Pn.courses){var Ei;ni(((Ei=In.detail)===null||Ei===void 0?void 0:Ei.courses[wn])||{})}},[In.detail]);var cr=function(){var Wn=Object(y.a)(r.a.mark(function Pn(wn){return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var _r=Object(y.a)(r.a.mark(function jr(){var Pa,Ja;return r.a.wrap(function(pi){for(;;)switch(pi.prev=pi.next){case 0:return pi.next=2,Object(K.p)({id:wa.pathId,user_id:wn});case 2:Pa=pi.sent,(Pa==null?void 0:Pa.status)===1&&(((Ja=Ji.userInfo)===null||Ja===void 0?void 0:Ja.user_id)===wn&&(window.location.href=window.location.href),R.b.info(Pa==null?void 0:Pa.message),bs());case 4:case"end":return pi.stop()}},jr)}));function Mr(){return _r.apply(this,arguments)}return Mr}()});case 1:case"end":return Bn.stop()}},Pn)}));return function(wn){return Wn.apply(this,arguments)}}(),ys=function(){var Wn=Object(y.a)(r.a.mark(function Pn(wn){return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BFE\u5802\u5417\uFF1F"),onOk:function(){var _r=Object(y.a)(r.a.mark(function jr(){var Pa;return r.a.wrap(function(bi){for(;;)switch(bi.prev=bi.next){case 0:return bi.next=2,Object(K.o)({id:wa.pathId,courseid:wn});case 2:Pa=bi.sent,(Pa==null?void 0:Pa.status)===0&&(R.b.info("\u5220\u9664\u6210\u529F"),bs());case 4:case"end":return bi.stop()}},jr)}));function Mr(){return _r.apply(this,arguments)}return Mr}()});case 1:case"end":return Bn.stop()}},Pn)}));return function(wn){return Wn.apply(this,arguments)}}(),Ks=function(){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Pn=Object(y.a)(r.a.mark(function nr(){var Bn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,Object(K.i)({id:wa.pathId});case 2:Bn=Mr.sent,Bn.status===0&&(Oi(!0),R.b.success(Bn.message));case 4:case"end":return Mr.stop()}},nr)}));function wn(){return Pn.apply(this,arguments)}return wn}()})},Bs=function(){Ur({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},fo=function(Pn){Ur({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:Pn}})},bs=function(){Ur({type:"pathsDetail/getPathsDetail",payload:{id:wa.pathId}}),Ur({type:"pathsDetail/getRightData",payload:{id:wa.pathId}}),Ur({type:"pathsDetail/getCoureses",payload:{id:wa.pathId}}),Al()},Ws=function(){var Pn;return Lt?e.a.createElement("div",{className:jt.a.flexRow},e.a.createElement(re.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:er,onChange:function(nr){return lr(nr.target.value)}}),e.a.createElement(h.a,{className:"ml5",onClick:function(){return Yt(!Lt)}},"\u53D6\u6D88"),e.a.createElement(h.a,{className:"ml5",type:"primary",onClick:hl},"\u786E\u5B9A")):e.a.createElement("div",{className:jt.a.directionItemWrap},e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:rr.a})," ",(Pn=In.rightData)===null||Pn===void 0?void 0:Pn.team_title),e.a.createElement("span",{className:jt.a.groupActionWrap},e.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return Yt(!Lt)}})))},Ms=function(){var Pn,wn,nr=new Image;nr.src=ft.q;var Bn=((Pn=In.rightData)===null||Pn===void 0||((wn=Pn.tags)===null||wn===void 0)?void 0:wn.map(function(Mr,jr){return{name:Mr.tag_name,value:jr}}))||[],_r={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:nr,textStyle:{normal:{color:function(){return"rgb("+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+")"}}},left:"center",top:"center",right:null,bottom:null,width:"100%",height:"100%",data:Bn}]};return _r},Es=function(){if(!Object(Fe.e)(Ur))return;T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Pn=Object(y.a)(r.a.mark(function nr(){var Bn,_r;return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,Object(K.L)({id:mn==null?void 0:mn.course_id});case 2:Bn=jr.sent,Bn.status===0&&(R.b.success(Bn.message),Ur({type:"pathsDetail/getPathsDetail",payload:{id:wa.pathId}}),parseInt((_r=mn.course_status)===null||_r===void 0?void 0:_r.status)===1&&Object(fe.Q)("".concat(mn==null?void 0:mn.first_category_url)));case 4:case"end":return jr.stop()}},nr)}));function wn(){return Pn.apply(this,arguments)}return wn}()})},Ni=function(){var Wn=Object(y.a)(r.a.mark(function Pn(){var wn;return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(Object(Fe.e)(Ur)){Bn.next=2;break}return Bn.abrupt("return");case 2:return gs(!0),Bn.next=5,Object(le.a)("/api/payments.json",{method:"POST",body:{subject_id:wa.pathId,payment_method:"wechat_qr"}});case 5:wn=Bn.sent,wn!=null&&wn.num&&(gs(!1),u.d.push("/order/".concat(wa.pathId,"/pay?order_num=").concat(wn==null?void 0:wn.num)));case 7:case"end":return Bn.stop()}},Pn)}));return function(){return Wn.apply(this,arguments)}}(),zs=function(){var Wn=Object(y.a)(r.a.mark(function Pn(wn,nr){var Bn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:if(Ur({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!nr){Mr.next=7;break}return Mr.next=4,Object(pn.C)({id:wn});case 4:Mr.t0=Mr.sent,Mr.next=10;break;case 7:return Mr.next=9,Object(pn.D)({id:wn});case 9:Mr.t0=Mr.sent;case 10:if(Bn=Mr.t0,Ur({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Bn!=null&&Bn.game_identifier||Bn!=null&&Bn.identifier)){Mr.next=15;break}return Object(fe.Q)(nr?"/tasks/".concat(Bn==null?void 0:Bn.identifier,"/jupyter"):"/tasks/".concat(Bn.game_identifier)),Mr.abrupt("return");case 15:(Bn==null?void 0:Bn.status)===2?Ho(Bn==null?void 0:Bn.message):(Bn==null?void 0:Bn.status)===3&&ds(Bn==null?void 0:Bn.message);case 16:case"end":return Mr.stop()}},Pn)}));return function(wn,nr){return Wn.apply(this,arguments)}}(),ds=function(Pn){T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pn,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ho=function Wn(Pn){var wn;Pn=(wn=Pn)!==null&&wn!==void 0&&wn.includes(".json")?Pn:"".concat(Pn,".json"),T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var nr=Object(y.a)(r.a.mark(function _r(){var Mr,jr;return r.a.wrap(function(Ja){for(;;)switch(Ja.prev=Ja.next){case 0:return Ja.next=2,Object(sn.S)({url:Pn});case 2:if(Mr=Ja.sent,Mr){Ja.next=5;break}return Ja.abrupt("return");case 5:return R.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ja.next=8,Object(pn.D)({id:Mr.shixun_identifier});case 8:if(jr=Ja.sent,!(jr!=null&&jr.game_identifier)){Ja.next=12;break}return Object(fe.Q)("/tasks/".concat(jr.game_identifier)),Ja.abrupt("return");case 12:(jr==null?void 0:jr.status)===2?Wn(jr==null?void 0:jr.message):(jr==null?void 0:jr.status)===3&&ds(jr==null?void 0:jr.message);case 13:case"end":return Ja.stop()}},_r)}));function Bn(){return nr.apply(this,arguments)}return Bn}()})},Ls=function(){var Pn;if(!Object(Fe.e)(Ur))return;var wn=[];In==null||((Pn=In.stageData)===null||Pn===void 0)||Pn.forEach(function(Bn){var _r;if(Bn.items&&(_r=Bn.items)!==null&&_r!==void 0&&_r.length){var Mr;(Mr=Bn.items)===null||Mr===void 0||Mr.forEach(function(jr){var Pa;wn.push(jr),jr.children&&(Pa=jr.children)!==null&&Pa!==void 0&&Pa.length&&(wn=wn.concat(jr.children))})}});var nr=wn.find(function(Bn){return["VideoItem","Attachment","Shixun"].includes(Bn.item_type)});if(console.log(nr,"stageParam"),nr.item_type==="VideoItem"){Object(fe.Q)("/video/".concat(nr.id,"?subject_id=").concat(wa.pathId));return}if(nr.item_type==="Attachment"){Object(fe.Q)(nr.url);return}if(nr.item_type==="Shixun"){zs(nr.identifier,nr.is_jupyter);return}},Qo=function(){var Pn,wn,nr,Bn,_r=(Pn=In.detail)===null||Pn===void 0||((wn=Pn.learning_status)===null||wn===void 0)?void 0:wn[0],Mr=(nr=In.detail)===null||nr===void 0||((Bn=nr.learning_status)===null||Bn===void 0)?void 0:Bn[1];if(_r==="can")return e.a.createElement(h.a,{onClick:Ls,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(_r==="disabled"){if(Mr==="try"||Mr==="unpayed")return e.a.createElement(h.a,{loading:Ss,onClick:Ni,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(Mr==="expired")return e.a.createElement(h.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(Mr==="buyed")return e.a.createElement(h.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},Zr=function(){var Wn=Object(y.a)(r.a.mark(function Pn(){var wn,nr,Bn,_r,Mr,jr,Pa,Ja,bi,pi,Ei,Ko;return r.a.wrap(function(Cs){for(;;)switch(Cs.prev=Cs.next){case 0:if(pi=function(){var el=Object(y.a)(r.a.mark(function ns(){var hs;return r.a.wrap(function(nl){for(;;)switch(nl.prev=nl.next){case 0:return nl.next=2,Object(le.a)("/api/users/".concat(Ji.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(wa.pathId),{method:"post"});case 2:hs=nl.sent,(hs==null?void 0:hs.status)===0&&(R.b.info("\u63D0\u4EA4\u6210\u529F"),Ur({type:"pathsDetail/getRightData",payload:{id:wa.pathId}}));case 4:case"end":return nl.stop()}},ns)}));return function(){return el.apply(this,arguments)}}(),(wn=Ji.userInfo)!==null&&wn!==void 0&&wn.professional_certification){Cs.next=4;break}return T.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(fe.Q)("/account/certification")}}),Cs.abrupt("return",!1);case 4:if(!(((nr=In.rightData)===null||nr===void 0||((Bn=nr.progress)===null||Bn===void 0)?void 0:Bn.certificated)==="drafted")){Cs.next=6;break}return Cs.abrupt("return",!1);case 6:if(!(((_r=In.rightData)===null||_r===void 0||((Mr=_r.progress)===null||Mr===void 0)?void 0:Mr.certificated)==="none"||((jr=In.rightData)===null||jr===void 0||((Pa=jr.progress)===null||Pa===void 0)?void 0:Pa.certificated)==="rejected")){Cs.next=9;break}return((Ei=In.rightData)===null||Ei===void 0?void 0:Ei.progress.learned)===100?T.a.info({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:'\u7533\u8BF7\u6210\u529F\uFF0C\u53EF\u4EE5\u5728\u4E2A\u4EBA\u4E2D\u5FC3"\u6211\u7684\u8BC1\u4E66"\u4E2D\u67E5\u770B',okText:"\u786E\u5B9A\u7533\u8BF7",onOk:pi}):T.a.confirm({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:"\u4F60\u76EE\u524D\u5B66\u4E60\u8FDB\u5EA6\u4E3A".concat((Ko=In.rightData)===null||Ko===void 0?void 0:Ko.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:pi}),Cs.abrupt("return",!1);case 9:((Ja=In.rightData)===null||Ja===void 0||((bi=Ja.progress)===null||bi===void 0)?void 0:bi.certificated)==="passed"&&ko(!0);case 10:case"end":return Cs.stop()}},Pn)}));return function(){return Wn.apply(this,arguments)}}(),Rr=!!((Je=In.detail)!==null&&Je!==void 0&&Je.participant_count)&&!((Te=In.detail)!==null&&Te!==void 0&&Te.allow_statistics),Ta=((Ve=In.detail)===null||Ve===void 0||((Be=Ve.courses)===null||Be===void 0)?void 0:Be.findIndex(function(Wn){return(Wn==null?void 0:Wn.course_id)===(mn==null?void 0:mn.course_id)}))+1,Or=Ta===((at=In.detail)===null||at===void 0||((nt=at.courses)===null||nt===void 0)?void 0:nt.length);return e.a.createElement("section",{className:jt.a.rightWrap},((st=In.rightData)===null||st===void 0?void 0:st.qrcode_img)&&e.a.createElement("div",{className:jt.a.qrCode},e.a.createElement("img",{src:(it=In.rightData)===null||it===void 0?void 0:it.qrcode_img})),((dt=In.rightData)===null||dt===void 0?void 0:dt.progress)&&e.a.createElement("div",{className:"".concat(jt.a.card," ").concat(jt.a.cardTop),style:{top:(Dt=In.detail)!==null&&Dt!==void 0&&(Qt=Dt.courses)!==null&&Qt!==void 0&&Qt.length?"-140px":"-70px"}},parseInt(mn==null||((Bt=mn.course_status)===null||Bt===void 0)?void 0:Bt.status)===2&&mn.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt(($t=mn.course_status)===null||$t===void 0?void 0:$t.status)===2&&(mn.course_identity<6?"":e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),e.a.createElement("div",{className:jt.a.flexRow},Rr&&!!((ln=In.detail)!==null&&ln!==void 0&&(On=ln.courses)!==null&&On!==void 0&&On.length)&&Or&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Wt=In.detail)===null||Wt===void 0?void 0:Wt.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},da===!0?((qt=In.detail)===null||qt===void 0?void 0:qt.participant_count)+1:(yn=In.detail)===null||yn===void 0?void 0:yn.participant_count),"\u4EBA")),Rr&&!((Rn=In.detail)!==null&&Rn!==void 0&&(tn=Rn.courses)!==null&&tn!==void 0&&tn.length)&&Or&&e.a.createElement("span",null,!((bn=In.detail)!==null&&bn!==void 0&&bn.has_participate)&&(da===!0?e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(jt.a.classButton," ").concat(jt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Ln=In.detail)===null||Ln===void 0?void 0:Ln.has_participate)&&e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Xn=In.detail)===null||Xn===void 0?void 0:Xn.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},da===!0?((rn=In.detail)===null||rn===void 0?void 0:rn.participant_count)+1:(hn=In.detail)===null||hn===void 0?void 0:hn.participant_count),"\u4EBA"))),parseInt(mn==null||((An=mn.course_status)===null||An===void 0)?void 0:An.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},mn==null||((_n=mn.course_status)===null||_n===void 0)?void 0:_n.time),e.a.createElement("p",{style:{display:mn.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(jt.a.flexRowAbout)},e.a.createElement("span",{style:{display:((tr=mn.course_status)===null||tr===void 0?void 0:tr.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(cn=In.rightData)===null||cn===void 0?void 0:cn.progress.learned,"%"),e.a.createElement("span",{style:{display:((Fn=mn.course_status)===null||Fn===void 0?void 0:Fn.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(fe.Z)((Ir=In.rightData)===null||Ir===void 0?void 0:Ir.progress.time)," "),((hr=In.rightData)===null||hr===void 0||((Br=hr.progress)===null||Br===void 0)?void 0:Br.certificated)!="disabled"&&e.a.createElement(h.a,{disabled:((ur=In.rightData)===null||ur===void 0||((Fr=ur.progress)===null||Fr===void 0)?void 0:Fr.certificated)==="drafted",onClick:Zr},((Qn=In.rightData)===null||Qn===void 0||((kr=Qn.progress)===null||kr===void 0)?void 0:kr.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",((ta=In.rightData)===null||ta===void 0||((Wr=ta.progress)===null||Wr===void 0)?void 0:Wr.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((yr=In.rightData)===null||yr===void 0||((Dn=yr.progress)===null||Dn===void 0)?void 0:Dn.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((ar=In.rightData)===null||ar===void 0||((Pr=ar.progress)===null||Pr===void 0)?void 0:Pr.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),e.a.createElement(l.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",e.a.createElement(Xt.a,{percent:(jn=In.rightData)===null||jn===void 0?void 0:jn.progress.learned,showInfo:!1,style:{display:(($n=mn.course_status)===null||$n===void 0?void 0:$n.status)<=1&&mn.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((ir=mn.course_status)===null||ir===void 0?void 0:ir.status)===2&&((Zn=In.detail)===null||Zn===void 0?void 0:Zn.allow_add_member)&&e.a.createElement("a",{className:jt.a.classButton,href:"".concat(mn==null?void 0:mn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((zn=mn.course_status)===null||zn===void 0?void 0:zn.status)===1&&mn.course_identity>5&&e.a.createElement("div",{className:jt.a.classButton,onClick:Es},"\u7ACB\u5373\u52A0\u5165"),parseInt((fn=mn.course_status)===null||fn===void 0?void 0:fn.status)===1&&mn.course_identity===5&&e.a.createElement("a",{className:jt.a.classButton,href:"".concat(mn==null?void 0:mn.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((on=mn.course_status)===null||on===void 0?void 0:on.status)===0&&mn.course_identity>5&&e.a.createElement("div",{className:jt.a.classButton,onClick:Es},"\u7ACB\u5373\u62A5\u540D"),parseInt((Gn=mn.course_status)===null||Gn===void 0?void 0:Gn.status)===0&&mn.course_identity===5&&e.a.createElement("div",{className:jt.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(mn==null||((Jn=mn.course_status)===null||Jn===void 0)?void 0:Jn.status)===0||parseInt(mn==null||((Sn=mn.course_status)===null||Sn===void 0)?void 0:Sn.status)===1)&&mn.course_identity<5&&e.a.createElement("a",{className:jt.a.classButton,href:"".concat(mn==null?void 0:mn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Rr&&Or&&((mr=In.detail)===null||mr===void 0?void 0:mr.has_participate)&&e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Rr&&Or&&!((Kr=In.detail)!==null&&Kr!==void 0&&Kr.has_participate)&&(da?e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((Va=In.detail)!==null&&Va!==void 0&&Va.excellent)&&((Ra=In.detail)===null||Ra===void 0?void 0:Ra.is_free)!==!0&&e.a.createElement("div",{className:jt.a.price},e.a.createElement("ul",null,e.a.createElement("li",{className:jt.a.li1},!!((aa=In.detail)!==null&&aa!==void 0&&aa.origin_price)&&e.a.createElement("div",{className:jt.a.discounts},"\u9650\u65F6\u4F18\u60E0"),e.a.createElement("div",{className:jt.a.realPrice},e.a.createElement("span",null,"\uFFE5"),(gi=In.detail)===null||gi===void 0?void 0:gi.price),!!((ti=In.detail)!==null&&ti!==void 0&&ti.origin_price)&&e.a.createElement("div",{className:jt.a.lineationPrice},e.a.createElement("span",null,"\uFFE5"),(Ka=In.detail)===null||Ka===void 0?void 0:Ka.origin_price)),e.a.createElement("li",{className:jt.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((no=In.detail)===null||no===void 0||((ro=no.expiration_type)===null||ro===void 0)?void 0:ro.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((Di=In.detail)===null||Di===void 0||((Io=Di.expiration_type)===null||Io===void 0)?void 0:Io.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((Mo=In.detail)===null||Mo===void 0||((ao=Mo.expiration_type)===null||ao===void 0||((Ii=ao.days)===null||Ii===void 0))?void 0:Ii[0],"\u5929\u5185\u6709\u6548"),((ki=In.detail)===null||ki===void 0||((So=ki.expiration_type)===null||So===void 0)?void 0:So.clazz)==="3"&&"".concat((co=In.detail)===null||co===void 0||((ho=co.expiration_type)===null||ho===void 0||((Qi=ho.days)===null||Qi===void 0))?void 0:Qi.join("\u5230")))),Qo()),e.a.createElement("p",{className:"mb30",style:{marginTop:"15px"}},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:qn.a})," ",(Mi=In.detail)===null||Mi===void 0?void 0:Mi.learning_notes_title)),e.a.createElement("div",{ref:qi},e.a.createElement(ze.a,{className:"fon16",value:(Vi=In.detail)===null||Vi===void 0?void 0:Vi.learning_notes}))),!!((Ki=In.rightData)!==null&&Ki!==void 0&&(go=Ki.members)!==null&&go!==void 0&&go.length)&&e.a.createElement("div",{className:"".concat(jt.a.card," pb0"),style:{marginTop:(Fi=In.detail)!==null&&Fi!==void 0&&(yo=Fi.courses)!==null&&yo!==void 0&&yo.length?-135:-65}},(Xa=In.detail)!==null&&Xa!==void 0&&Xa.allow_add_member?Ws():e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:rr.a})," ",(io=In.rightData)===null||io===void 0?void 0:io.team_title),e.a.createElement(ve,{data:(Lo=In.rightData)===null||Lo===void 0?void 0:Lo.members,operation:(Wi=In.detail)===null||Wi===void 0?void 0:Wi.allow_add_member,handleDeleteMember:cr}),((Ti=In.detail)===null||Ti===void 0?void 0:Ti.allow_add_member)&&e.a.createElement(oe.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(se.a,{className:"c-blue current",onClick:Bs},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((Ao=In.rightData)!==null&&Ao!==void 0&&(qo=Ao.tags)!==null&&qo!==void 0&&qo.length)&&(($o=In.detail)===null||$o===void 0?void 0:$o.show_tag)&&e.a.createElement("div",{className:jt.a.skillWrap},e.a.createElement("p",{className:"".concat(jt.a.skillTopWrap," font16 mb20")},e.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",e.a.createElement("span",{className:"ml5 c-grey-c"},(Go=In.rightData)===null||Go===void 0||((Xi=Go.tags)===null||Xi===void 0)?void 0:Xi.length))),e.a.createElement(Tr.a,{option:Ms(),style:{height:370},opts:{renderer:"svg"}})),((es=In.detail)===null||es===void 0?void 0:es.show_spoc)===1&&e.a.createElement("div",{className:"".concat(jt.a.card," pb0"),style:{marginTop:15}},e.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:ia.a}),"SPOC\u8BFE\u5802"),e.a.createElement(Nt,{data:(yi=In.Courses)===null||yi===void 0?void 0:yi.spoc_courses,handleDeleteMember:ys}),((Ua=In.detail)===null||Ua===void 0?void 0:Ua.show_spoc)===1&&(In==null||((li=In.Courses)===null||li===void 0||((Na=li.spoc_courses)===null||Na===void 0))?void 0:Na.length)<3&&((Yi=In.detail)===null||Yi===void 0?void 0:Yi.allow_add_member)&&e.a.createElement(oe.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(se.a,{className:"c-blue current",onClick:function(){return fo()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((bo=In.detail)===null||bo===void 0?void 0:bo.show_history)&&e.a.createElement("div",{className:"".concat(jt.a.card," pb0"),style:{marginTop:15}},e.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:ia.a}),"\u5386\u53F2\u8BFE\u5802"),e.a.createElement(Nt,{data:jo==null?void 0:jo.spoc_courses,handleDeleteMember:ys}),((Li=In.detail)===null||Li===void 0?void 0:Li.show_history)&&(jo==null||((Vo=jo.spoc_courses)===null||Vo===void 0)?void 0:Vo.length)<3&&((Po=In.detail)===null||Po===void 0?void 0:Po.allow_add_member)&&e.a.createElement(oe.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(se.a,{className:"c-blue current",onClick:function(){return fo(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),e.a.createElement(bt,{onReloadData:bs}),e.a.createElement(Gt,{onReloadData:bs,data:jo}),e.a.createElement(ba,{visible:fi,onCancel:function(){ko(!1)},data:((Xo=In.rightData)===null||Xo===void 0||((Bi=Xo.progress)===null||Bi===void 0)?void 0:Bi.info)||{}}))},xa=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.user,Te=Ge.loading,Ve=Ge.globalSetting,Be=Ge.classroomList;return{pathsDetail:Ye,user:Je,globalSetting:Ve,loading:Te.models.index,classroomList:Be}})(Oa),ka=M("cWXX"),Ha=M("/ezw"),Ia=M("VlDO"),Yr=M.n(Ia),za=M("bbsP"),Ga=M("/wGt"),Da=M("DjyN"),si=M("NUBc"),di=M("/zsF"),Ma=M("PArb"),zr=M("cCSd"),Ar=M.n(zr),Gr=re.a.Search,qr=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],_a=function(Ye){var Je,Te=Ye.classroomList,Ve=Ye.loading,Be=Ye.dispatch,at=Ye.cb,nt=Ye.shixunIds,st=nt===void 0?[]:nt,it=Object(s.i)(),dt=Object(s.h)(),Dt=Te.actionTabs,Qt=ne.a.useForm(),Bt=Object(E.a)(Qt,1),$t=Bt[0],ln=Te.shixunLists,On=Object(n.useState)([]),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=Object(n.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1];Object(n.useEffect)(function(){Te.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(bn.page=1,Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)}))},[Te.actionTabs.key]),Object(n.useEffect)(function(){return Te.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?document.body.setAttribute("data-custom","height"):document.body.removeAttribute("data-custom"),function(){document.body.removeAttribute("data-custom")}},[Te.actionTabs.key]);var Xn=function(){Be({type:"classroomList/setActionTabs",payload:{}}),Ln({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return Te.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:e.a.createElement(Ga.a,{placement:"bottom",height:"100%",closable:!1,visible:Te.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:Ar.a.drawer,footer:e.a.createElement("div",{className:"tc"},e.a.createElement(h.a,{size:"large",onClick:function(){Xn(),yn([]),at("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),e.a.createElement(h.a,{size:"large",onClick:Object(y.a)(r.a.mark(function rn(){var hn,An,_n,tr;return r.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:hn=function(hr){var Br=qt[hr];if(st.includes(Br)){var ur,Fr;return R.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(ln==null||((ur=ln.shixun_list)===null||ur===void 0||((Fr=ur.find(function(Qn){return Qn.id===Br}))===null||Fr===void 0))?void 0:Fr.title)),{v:void 0}}},An=0;case 2:if(!(An<(qt==null?void 0:qt.length))){Fn.next=9;break}if(_n=hn(An),!(typeof _n=="object")){Fn.next=6;break}return Fn.abrupt("return",_n.v);case 6:An++,Fn.next=2;break;case 9:return Fn.next=11,Object(K.O)({id:Te.actionTabs.id,subject_id:Te.actionTabs.subject_id,shixun_ids:Object(o.a)(qt)});case 11:tr=Fn.sent,yn([]),tr!=null&&tr.shixuns_list&&(Xn(),at(tr.shixuns_list));case 14:case"end":return Fn.stop()}},rn)})),type:"primary"},"\u786E\u5B9A"))},e.a.createElement("section",{className:"tc"},e.a.createElement(Gr,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:Ar.a.search,onSearch:function(hn){bn.keyword=hn,bn.page=1,Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)})}})),e.a.createElement("section",{className:"edu-container"},qr.map(function(rn,hn){var An;return e.a.createElement("ul",{className:Ar.a.menu,key:hn},e.a.createElement("li",null,rn.name),rn==null||((An=rn.children)===null||An===void 0)?void 0:An.map(function(_n,tr){return e.a.createElement("li",{className:bn[rn.id]==_n.id?Ar.a.actived:"",onClick:function(){bn[rn.id]=_n.id,Ln(Object(P.a)({},bn)),Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)})}},e.a.createElement("strong",null,_n.name))}))}),ln==null||((Je=ln.shixun_list)===null||Je===void 0)?void 0:Je.map(function(rn,hn){return e.a.createElement("div",{className:Ar.a.listItem,key:hn},e.a.createElement(X.a,{checked:qt.includes(rn.id),value:rn.id,onChange:function(_n){var tr=qt.indexOf(rn.id);qt.indexOf(rn.id)>-1?yn(qt.filter(function(cn){return cn!==rn.id})):yn(qt.concat(rn.id))}}),e.a.createElement("div",{className:Ar.a.info},e.a.createElement("div",{className:Ar.a.title},e.a.createElement("div",{className:Ar.a.titleLeft},e.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(rn==null?void 0:rn.identifier,"/challenges"),target:"_blank"},e.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:rn.title}})),Object(U.v)()&&(rn==null?void 0:rn.mark_status)===1&&e.a.createElement(l.a,{title:rn==null?void 0:rn.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(U.v)()&&(rn==null?void 0:rn.mark_status)===2&&e.a.createElement(l.a,{title:rn==null?void 0:rn.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(U.v)()&&(rn==null?void 0:rn.mark_status)===3&&e.a.createElement(l.a,{title:rn==null?void 0:rn.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")))),e.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.a.createElement("span",{className:Ar.a.description,dangerouslySetInnerHTML:{__html:rn.description}})),e.a.createElement("div",{className:" mt15"},rn.challenge_names.map(function(An,_n){return e.a.createElement("span",{key:_n,className:"mr30 font12"},"\u7B2C",_n+1,"\u5173 ",An," ")})),e.a.createElement(Ma.a,{dashed:!0}),e.a.createElement("div",{className:"c-light-black mt20 font12"},e.a.createElement("span",null,rn.author_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,rn.author_school_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",rn.level),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),e.a.createElement("span",null,rn.study_count))))}),e.a.createElement("p",null)),e.a.createElement("div",{className:"tc"},e.a.createElement(si.a,{current:bn.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:ln==null?void 0:ln.shixuns_count,onChange:function(hn){bn.page=hn,Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)})}})))},Jr=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.loading;return{classroomList:Ye,loading:Je}})(_a),ji=M("Ot1p"),Fa=M("qdXH"),vi=M("sBCT"),vo=M("500L"),Wo=M("giR+"),Ca=M("fyUT"),Ro=M("dwhp"),hi=M("IxHN"),os=M("M8RZ"),eo=M("BdwD"),ss=M("9nDM"),Jo=function(Ye){var Je=Ye.user,Te=Ye.onReplyDiscuss,Ve=Ye.dispatch,Be=Ye.id,at=Ye.activeDiscussIndex,nt=Object(n.useState)(""),st=Object(E.a)(nt,2),it=st[0],dt=st[1];function Dt($t){dt($t)}var Qt=Object(s.i)();function Bt(){if(!it){R.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}Te(Be,it),Ve({type:"pathsDetail/getPathsDetail",payload:{id:Qt.pathId}}),dt("")}return e.a.createElement("div",{key:Be,className:"discuss-item-editor",style:{display:at===Be?"block":"none",width:"100%"}},e.a.createElement(ji.a,{miniToolbar:!0,startInit:at===Be,defaultValue:it,id:Be,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:Dt}),e.a.createElement("a",{onClick:Bt,className:"btn-send"},"\u53D1\u9001"))},Ui=Object(u.a)(function(Ge){var Ye=Ge.shixunsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{shixunsDetail:Ye,globalSetting:Te,loading:Je.models.index}})(Jo),Zo=function(Ye){var Je=Ye.user,Te=Ye.upDataList,Ve=Ye.page,Be=Ye.getTypeNumber,at=Ye.dispatch,nt=Object(s.i)(),st=function(){var it=Object(y.a)(r.a.mark(function dt(Dt,Qt){var Bt;return r.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(K.M)({id:Dt,content:Qt});case 2:Bt=ln.sent,(Bt==null?void 0:Bt.status)===0&&Te(1);case 4:case"end":return ln.stop()}},dt)}));return function(Dt,Qt){return it.apply(this,arguments)}}();return e.a.createElement("div",{className:"discuss-item-container bg-white"},e.a.createElement("a",{href:"/users/".concat(Je.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(yt.a.IMG_SERVER,"/images/").concat(Je.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement(Ui,{id:nt.pathId,activeDiscussIndex:nt.pathId,onReplyDiscuss:st})))},ps=Object(u.a)(function(Ge){var Ye=Ge.shixunsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{shixunsDetail:Ye,globalSetting:Te,loading:Je.models.index}})(Zo),kn=M("fXAG");function Cr(Ge){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(le.c)("/discusses.json?page=".concat(Ye-1,"&container_identifier=").concat(Ge,"&container_type=Shixun"))}function gr(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/top_or_down_discuss.json"),{top:Ye})}function Vr(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/plus.json"),{container_type:"Discuss",type:Ye?1:0})}function Aa(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/hidden.json"),Ye)}function Sa(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/reward_code.json"),Ye)}function la(Ge){return Object(le.a)("/api/discusses/".concat(Ge,".json"),{method:"delete"})}function Ai(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/reply.json"),{container_type:"Shixun",content:Ye})}function Hi(Ge){return Object(le.f)("/discusses.json",Ge)}var ra=M("QcdW"),zo=M("kaH+");function fa(Ge){var Ye=Ge.data,Je=Ge.index,Te=Ge.adminOrOperator,Ve=Ge.parentDiscussIndex,Be=Ge.shixunIdentifier,at=Ge.isDelete,nt=Ge.user,st=Ge.onSetRewardData,it=Ge.onSetActionType,dt=Ge.deleteCommentAlert,Dt=Ge.shixunName,Qt=Ye.author,Bt=Ye.can_delete,$t=Ye.manage,ln=Ye.content,On=Ye.hidden,Wt=Ye.id,qt=Ye.reward,yn=Ye.time;function Rn(){st({id:Wt,index:Je,user_id:Qt.user_id,parentDiscussIndex:Ve})}function tn(){it({id:Wt,index:Je,params:{hidden:On?"0":"1",container_identifier:Be},type:"hidden-discuss",parentDiscussIndex:Ve,message:On?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function bn(){if(dt){T.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Dt,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}it({id:Wt,index:Je,type:"delete-discuss",parentDiscussIndex:Ve,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}return e.a.createElement("div",{className:"second-level-discuss"},e.a.createElement("div",{className:"discuss-info-body"},e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(Qt.login),target:"_blank"},Qt.name),e.a.createElement("span",{className:"grey"},yn),qt?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(qt)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,qt)):null),e.a.createElement("div",{className:"btn-group"},Te?e.a.createElement("a",{onClick:Rn,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Te?e.a.createElement("a",{onClick:tn,title:On?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:On?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,$t?e.a.createElement("a",{onClick:bn,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),e.a.createElement(ze.a,{className:"discuss-content",value:ln}))}var Si=function(Ge){var Ye=Ge.data,Je=Ge.index,Te=Ge.shixunIdentifier,Ve=Ge.adminOrOperator,Be=Ge.identity,at=Ge.onTopOrDownDiscuss,nt=Ge.onPlusDiscuss,st=Ge.onSetActionType,it=Ge.onSetRewardData,dt=Ge.user,Dt=Ge.isDelete,Qt=Ge.activeDiscussIndex,Bt=Ge.onReplyDiscuss,$t=Ge.onSetActiveDiscussIndex,ln=Ye.content,On=Ye.children,Wt=Ye.game_url,qt=Ye.hidden,yn=Ye.id,Rn=Ye.position,tn=Ye.praise_count,bn=Ye.reward,Ln=Ye.sticky,Xn=Ye.time,rn=Ye.user_praise,hn=Ye.game_passed,An=Ye.delete_comment_alert,_n=Ye.author,tr=Ye.shixun_name,cn=Ye.manage;function Fn(){$t(yn)}function Ir(){at(yn,!Ln,Je)}function hr(){nt(yn,!rn,Je)}function Br(){it({id:yn,index:Je,user_id:_n.user_id})}function ur(){if(An){T.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",tr,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}st({id:yn,index:Je,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Fr(){st({id:yn,index:Je,params:{hidden:qt?"0":"1",container_identifier:Te},type:"hidden-discuss",message:qt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}var Qn=function(ta){var Wr=ta.target,yr=Wr.nodeName,Dn=Wr.src;yr==="IMG"&&(Dr.a.publish("preview-image",Dn),console.log("src:",Dn))};return e.a.createElement("div",{className:"discuss-item-container",key:yn},e.a.createElement("a",{href:"/users/".concat(_n.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(yt.a.IMG_SERVER,"/images/").concat(_n.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(_n.login),target:"_blank"},_n.name),e.a.createElement("span",{className:"grey"},Xn),Rn?e.a.createElement("span",{className:"c-green"}," [\u7B2C",Rn,"\u5173] "):null,Wt?e.a.createElement("a",{href:Wt,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,bn?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(bn)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,bn)):null,Be<=5?e.a.createElement("span",{style:{flex:"1",textAlign:"right",color:hn===1?"#29bd8b":""}},hn||hn===0?hn===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),e.a.createElement("div",{onClick:Qn},e.a.createElement(ze.a,{className:"discuss-content",value:ln})),On&&On.length>0?e.a.createElement("div",{className:"reply-discuss-container",onClick:Qn},On.map(function(kr,ta){return e.a.createElement(fa,{key:kr.id,data:kr,index:ta,deleteCommentAlert:An,shixunName:tr,shixunIdentifier:Te,adminOrOperator:Ve,user:dt,isDelete:Dt,onSetRewardData:it,onSetActionType:st,parentDiscussIndex:Je})})):null,e.a.createElement("div",{className:"btn-group"},Ve?e.a.createElement("a",{onClick:Br,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Ve?e.a.createElement("a",{onClick:Fr,title:qt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:qt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,cn&&(!On||On.length==0)&&e.a.createElement("a",{onClick:ur,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})),e.a.createElement("a",{onClick:Fn,title:"\u56DE\u590D"},e.a.createElement("i",{className:"iconfont icon-huifu1"})),e.a.createElement("a",{onClick:hr,className:rn?"c-orange":""},e.a.createElement("i",{className:rn?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),e.a.createElement("span",null,tn||""))),e.a.createElement(Ui,{id:yn,activeDiscussIndex:Qt,onReplyDiscuss:Bt})))},uo={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Gi(Ge,Ye){switch(Ye.type){case kn.Q:return Object(P.a)(Object(P.a)({},Ge),{},{loading:!0});case kn.X:return Object(P.a)(Object(P.a)({},Ge),{},{showRewardDialog:!0});case kn.b:return Object(P.a)(Object(P.a)({},Ge),{},{showRewardDialog:!1});case kn.l:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.ab:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.x:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.z:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.H:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.a:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);default:throw new Error}}var va=function(Ge){var Ye=Ge.shixunIdentifier,Je=Ge.identity,Te=Ge.activeIndex,Ve=Ge.user,Be=Ge.isShixunDetail,at=Be===void 0?!1:Be,nt=Ge.isDelete,st=Ge.getTypeNumber,it=Object(n.useReducer)(Gi,uo),dt=Object(E.a)(it,2),Dt=dt[0],Qt=dt[1],Bt=Dt.page,$t=Dt.loading,ln=Dt.data,On=Dt.actionType,Wt=Dt.showRewardDialog,qt=Dt.activeDiscussIndex,yn=Object(n.useRef)(),Rn=Object(n.useRef)(),tn=Object(s.i)();function bn(jn){return Ln.apply(this,arguments)}function Ln(){return Ln=Object(y.a)(r.a.mark(function jn($n){var ir;return r.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!$t){zn.next=2;break}return zn.abrupt("return");case 2:return zn.prev=2,Qt({type:kn.Q}),zn.next=6,Object(K.A)(Object(P.a)(Object(P.a)({},tn),{},{page:$n}));case 6:ir=zn.sent,Qt({type:kn.l,payload:{activeDiscussIndex:null,page:$n,data:ir,loading:!1}}),zn.next=13;break;case 10:zn.prev=10,zn.t0=zn.catch(2),console.log(zn.t0);case 13:case"end":return zn.stop()}},jn,null,[[2,10]])})),Ln.apply(this,arguments)}function Xn(jn){document.body.scrollIntoView(),bn(jn)}function rn(jn,$n,ir){return hn.apply(this,arguments)}function hn(){return hn=Object(y.a)(r.a.mark(function jn($n,ir,Zn){var zn;return r.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.prev=0,on.next=3,Vr($n,ir);case 3:zn=on.sent,Dn[Zn].user_praise=ir,Dn[Zn].praise_count=zn.praise_count,Qt({type:kn.x,payload:{data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}}),on.next=12;break;case 9:on.prev=9,on.t0=on.catch(0),console.log(on.t0);case 12:case"end":return on.stop()}},jn,null,[[0,9]])})),hn.apply(this,arguments)}function An(jn,$n,ir){return _n.apply(this,arguments)}function _n(){return _n=Object(y.a)(r.a.mark(function jn($n,ir,Zn){return r.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return fn.prev=0,fn.next=3,gr($n,ir);case 3:Dn[Zn].sticky=ir,Qt({type:kn.ab,payload:{data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}}),fn.next=10;break;case 7:fn.prev=7,fn.t0=fn.catch(0),console.log(fn.t0);case 10:case"end":return fn.stop()}},jn,null,[[0,7]])})),_n.apply(this,arguments)}function tr(){Qt({type:kn.z,payload:{actionType:null}})}function cn(){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(y.a)(r.a.mark(function jn(){var $n,ir,Zn,zn,fn,on,Gn,Jn;return r.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if($n=On.id,ir=On.params,Zn=On.type,zn=On.index,fn=On.parentDiscussIndex,!(Zn==="hidden-discuss")){mr.next=6;break}return mr.next=4,Aa($n,ir);case 4:fn?Dn[fn].children[zn].hidden=ir.hidden==1:Dn[zn].hidden=ir.hidden==1,Qt({type:kn.z,payload:{actionType:null,data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}});case 6:if(!(Zn==="delete-discuss")){mr.next=31;break}return mr.next=9,la($n);case 9:if(!(fn||fn===0)){mr.next=22;break}on=Dn[fn].children,Gn=on.length-1;case 12:if(!(Gn>=0)){mr.next=19;break}if(!(on[Gn].id===$n)){mr.next=16;break}return on.splice(Gn,1),mr.abrupt("break",19);case 16:Gn--,mr.next=12;break;case 19:Dn[fn].children=on,mr.next=30;break;case 22:Jn=Dn.length-1;case 23:if(!(Jn>=0)){mr.next=30;break}if(!(Dn[Jn].id===$n)){mr.next=27;break}return Dn.splice(Jn,1),mr.abrupt("break",30);case 27:Jn--,mr.next=23;break;case 30:Qt({type:kn.z,payload:{actionType:null,data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}});case 31:case"end":return mr.stop()}},jn)})),Fn.apply(this,arguments)}function Ir(jn){Qt({type:kn.z,payload:{actionType:jn}})}function hr(){Qt({type:kn.b})}function Br(){return ur.apply(this,arguments)}function ur(){return ur=Object(y.a)(r.a.mark(function jn(){var $n,ir,Zn,zn,fn,on,Gn;return r.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return $n=yn.current,ir=$n.id,Zn=$n.index,zn=$n.score,fn=$n.user_id,on=$n.parentDiscussIndex,Sn.next=3,Sa(ir,{container_type:"Discusses",score:zn,user_id:fn});case 3:Gn=Sn.sent,on?Dn[on].children[Zn].reward=Gn.code:Dn[Zn].reward=Gn.code,Qt({type:kn.H,payload:{showRewardDialog:!1,data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}}),yn.current=null;case 7:case"end":return Sn.stop()}},jn)})),ur.apply(this,arguments)}function Fr(jn){yn.current=jn,Qt({type:kn.X})}function Qn(jn){yn.current.score=jn}function kr(jn,$n){return ta.apply(this,arguments)}function ta(){return ta=Object(y.a)(r.a.mark(function jn($n,ir){return r.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.prev=0,zn.next=3,Ai($n,ir);case 3:bn(Bt),zn.next=9;break;case 6:zn.prev=6,zn.t0=zn.catch(0),console.log(zn.t0);case 9:case"end":return zn.stop()}},jn,null,[[0,6]])})),ta.apply(this,arguments)}function Wr(jn){qt===jn?Qt({type:kn.a,payload:{activeDiscussIndex:null}}):Qt({type:kn.a,payload:{activeDiscussIndex:jn}})}if(Object(n.useEffect)(function(){function jn(){return $n.apply(this,arguments)}function $n(){return $n=Object(y.a)(r.a.mark(function ir(){return r.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!(Te===3&&!ln&&Ye)){zn.next=3;break}return zn.next=3,bn(Bt);case 3:case"end":return zn.stop()}},ir)})),$n.apply(this,arguments)}jn()},[tn.pathId]),!ln)return e.a.createElement(Y.a,{spinning:!0},e.a.createElement("div",{style:{height:"300px",width:"100%"}}));var yr=ln.disscuss_count,Dn=ln.comments,ar=ln.all,Pr=ln.can_hidden;return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"discuss-container",ref:Rn},yr===0?e.a.createElement(eo.a,null):null,Object(U.p)()&&e.a.createElement(ps,{getTypeNumber:st,upDataList:bn,page:Bt,user:Ve}),e.a.createElement("aside",{className:"bg-white"},Dn==null?void 0:Dn.map(function(jn,$n){return e.a.createElement(Si,{user:Ve,key:jn.id,data:jn,index:$n,identity:Je,onPaginationChange:Xn,shixunIdentifier:Ye,isDelete:nt,onSetActionType:Ir,onTopOrDownDiscuss:An,adminOrOperator:Pr,onPlusDiscuss:rn,onSetRewardData:Fr,activeDiscussIndex:qt,onSetActiveDiscussIndex:Wr,onReplyDiscuss:kr})})),yr>10?e.a.createElement("div",{className:"pagination-container tc"},e.a.createElement(si.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Xn,current:Bt,total:yr})):null),e.a.createElement(os.a,null,e.a.createElement(T.a,{centered:!0,title:"\u63D0\u793A",visible:!!On,onOk:cn,onCancel:tr},e.a.createElement("p",null,On?On.message:"")),e.a.createElement(T.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:Wt,onCancel:hr,onOk:Br},e.a.createElement(Ca.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:Qn,style:{width:"228px"}}))))},oa=M("jZGp"),ua=M("LvDl"),to=["application/pdf","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/ZIP"],ls=function(Ye){var Je,Te,Ve,Be,at,nt=Ye.pathsDetail,st=Ye.user,it=Ye.globalSetting,dt=Ye.loading,Dt=Ye.dispatch,Qt=Object(_.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),Bt=Object(s.i)(),$t=nt.stageData,ln=Object(n.useState)([]),On=Object(E.a)(ln,2),Wt=On[0],qt=On[1],yn=Object(n.useState)(-1),Rn=Object(E.a)(yn,2),tn=Rn[0],bn=Rn[1],Ln=Object(n.useState)(!1),Xn=Object(E.a)(Ln,2),rn=Xn[0],hn=Xn[1],An=Object(n.useState)(!1),_n=Object(E.a)(An,2),tr=_n[0],cn=_n[1],Fn=Object(n.useState)(!1),Ir=Object(E.a)(Fn,2),hr=Ir[0],Br=Ir[1],ur=Object(n.useState)({name:"",is_jupyter:!1}),Fr=Object(E.a)(ur,2),Qn=Fr[0],kr=Fr[1],ta=ne.a.useForm(),Wr=Object(E.a)(ta,1),yr=Wr[0],Dn=ne.a.useForm(),ar=Object(E.a)(Dn,1),Pr=ar[0],jn=ne.a.useForm(),$n=Object(E.a)(jn,1),ir=$n[0],Zn=ne.a.useForm(),zn=Object(E.a)(Zn,1),fn=zn[0],on=Object(n.useState)(!1),Gn=Object(E.a)(on,2),Jn=Gn[0],Sn=Gn[1],mr=Object(n.useState)([]),Kr=Object(E.a)(mr,2),Va=Kr[0],Ra=Kr[1],aa=Object(n.useState)(!1),gi=Object(E.a)(aa,2),ti=gi[0],Ka=gi[1],no=Object(n.useState)("All"),ro=Object(E.a)(no,2),Di=ro[0],Io=ro[1],Mo=Object(n.useState)(!1),ao=Object(E.a)(Mo,2),Ii=ao[0],ki=ao[1],So=Object(n.useState)(0),co=Object(E.a)(So,2),ho=co[0],Qi=co[1],Mi=Object(n.useState)([{name:"\u5168\u90E8",type:"All",number:0},{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",number:0},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",number:0},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",number:0},{name:"\u8BA8\u8BBA",type:"Discusses",number:0}]),Vi=Object(E.a)(Mi,2),Ki=Vi[0],go=Vi[1],Fi=Object(n.useState)(),yo=Object(E.a)(Fi,2),Xa=yo[0],io=yo[1],Lo=Object(n.useState)([]),Wi=Object(E.a)(Lo,2),Ti=Wi[0],Ao=Wi[1],qo=function(Lt){if(Lt.key=="Enter"){var Yt=ir.getFieldValue("tag");if(ir.setFieldsValue({tag:""}),!Yt){R.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ti.filter(function(Cn){return Cn===Yt}).length>0){R.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Ti.push(Yt),Ao(Object(o.a)(Ti))}},$o=function(Lt,Yt){Lt.preventDefault(),Ao(Object(o.a)(Ti.filter(function(Cn){return Cn!=Yt})))},Go=((Je=nt.detail)===null||Je===void 0?void 0:Je.is_free)||((Te=nt.detail)===null||Te===void 0?void 0:Te.can_learning),Xi=function(){var Lt=nt.detail,Yt=Lt.shixuns_count,Cn=Yt===void 0?0:Yt,Vt=Lt.videos_count,er=Vt===void 0?0:Vt,lr=Lt.attachment_count,fr=lr===void 0?0:lr,$r=Lt.disscuss_count,mn=$r===void 0?0:$r,ni={All:Cn+er+fr,Shixun:Cn,VideoItem:er,Attachment:fr,Discusses:mn},Pi=Ki.map(function(La){return Object(P.a)(Object(P.a)({},La),{},{number:ni[La.type]})});go(Pi)};Object(n.useEffect)(function(){Xi()},[nt.detail]),Object(n.useEffect)(function(){Xi(),qt(Object(o.a)($t))},[$t]);var es=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt,Cn){var Vt;return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:if(Dt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Cn){lr.next=7;break}return lr.next=4,Object(pn.C)({id:Yt});case 4:lr.t0=lr.sent,lr.next=10;break;case 7:return lr.next=9,Object(pn.D)({id:Yt});case 9:lr.t0=lr.sent;case 10:if(Vt=lr.t0,Dt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Vt!=null&&Vt.game_identifier||Vt!=null&&Vt.identifier)){lr.next=15;break}return Object(fe.Q)(Cn?"/tasks/".concat(Vt==null?void 0:Vt.identifier,"/jupyter"):"/tasks/".concat(Vt.game_identifier)),lr.abrupt("return");case 15:(Vt==null?void 0:Vt.status)===-3?Object(fe.o)():(Vt==null?void 0:Vt.status)===2?yi(Vt==null?void 0:Vt.message):(Vt==null?void 0:Vt.status)===3&&Ua(Vt==null?void 0:Vt.message);case 16:case"end":return lr.stop()}},Lt)}));return function(Yt,Cn){return Tn.apply(this,arguments)}}(),yi=function Tn(Lt){var Yt;Lt=(Yt=Lt)!==null&&Yt!==void 0&&Yt.includes(".json")?Lt:"".concat(Lt,".json"),T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Cn=Object(y.a)(r.a.mark(function er(){var lr,fr;return r.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,Object(sn.S)({url:Lt});case 2:if(lr=mn.sent,lr){mn.next=5;break}return mn.abrupt("return");case 5:return R.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),mn.next=8,Object(pn.D)({id:lr.shixun_identifier});case 8:if(fr=mn.sent,!(fr!=null&&fr.game_identifier)){mn.next=12;break}return Object(fe.Q)("/tasks/".concat(fr.game_identifier)),mn.abrupt("return");case 12:(fr==null?void 0:fr.status)===2?Tn(fr==null?void 0:fr.message):(fr==null?void 0:fr.status)===3&&Ua(fr==null?void 0:fr.message);case 13:case"end":return mn.stop()}},er)}));function Vt(){return Cn.apply(this,arguments)}return Vt}()})},Ua=function(Lt){T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Lt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},li=function(){if(!Eo())return;Sn(!0)};Object(n.useEffect)(function(){if(Jn){var Tn={shixuns_list:[],attachments_list:[],items:[]};Yi(Wt.length,Tn),qt([].concat(Object(o.a)(Wt),[Tn]))}},[Jn]);var Na=function(){setTimeout(function(){tn===Wt.length-1&&Jn&&(dn(),qt(Wt.filter(function(Lt,Yt){return Yt!==Wt.length-1}))),Bi(),bn(-1)},300)},Yi=function(Lt,Yt){if(!Eo())return;bn(Lt),yr.setFieldsValue({name:Yt.stage_name,description:Yt.stage_description,tagName:Yt.tag&&Yt.tag.name||""})},bo=function(Lt){if(setTimeout(function(){document.documentElement.scrollTop=ho},300),Lt==="\u53D6\u6D88")return;Wt[tn].items=Wt[tn].items.concat(Lt),qt(Object(o.a)(Wt))},Li=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,Object(K.Q)(Object(P.a)({},Yt));case 2:return Cn=er.sent,Wt[tn].items=Yt.list,er.abrupt("return",Cn);case 5:case"end":return er.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Vo=function(Lt){Wt[tn].items=Wt[tn].items.concat(Object(P.a)(Object(P.a)({},Lt),{},{children:[]})),qt(Object(o.a)(Wt))},Po=function(Lt){Wt[tn].items=Wt[tn].items.concat(Lt),qt(Object(o.a)(Wt))},Xo=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn,Vt,er,lr,fr;return r.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(Xa){mn.next=8;break}return mn.next=3,Object(K.f)(Object(P.a)({id:Wt[tn].stage_id,subject_id:Bt.pathId},Yt));case 3:return Cn=mn.sent,Cn.id&&(Ka(!1),Vt=[Object(P.a)({},Cn)],Wt[tn].items=Wt[tn].items.concat(Vt),qt(Object(o.a)(Wt))),mn.abrupt("return",Cn);case 8:return mn.next=10,Object(K.S)(Object(P.a)(Object(P.a)({id:Xa==null?void 0:Xa.id,subject_id:Bt.pathId},Yt),{},{video_id:(Yt==null?void 0:Yt.video_id)||(Xa==null||((er=Xa.video_item)===null||er===void 0)?void 0:er.video_id),link:(Yt==null?void 0:Yt.link)||(Xa==null||((lr=Xa.video_item)===null||lr===void 0)?void 0:lr.link)}));case 10:return fr=mn.sent,fr&&(R.b.success("\u4FEE\u6539\u6210\u529F"),Ka(!1),Bi()),mn.abrupt("return",fr);case 13:case"end":return mn.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Bi=function(){Dt({type:"pathsDetail/getStageData",payload:{subject_id:Bt.pathId}}),Dt({type:"pathsDetail/getPathsDetail",payload:{id:Bt.pathId}}),Dt({type:"pathsDetail/getRightData",payload:{id:Bt.pathId}}),dn()},In=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt,Cn){var Vt,er,lr,fr,$r,mn,ni,Pi,La,da,Oi;return r.a.wrap(function(qa){for(;;)switch(qa.prev=qa.next){case 0:if(!(!(Yt!=null&&Yt.name)||(Yt==null?void 0:Yt.name.replace(/(^\s*)|(\s*$)/g,""))==="")){qa.next=2;break}return qa.abrupt("return",R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(dn(),lr=[],(Vt=Wt[tn].shixuns_list)===null||Vt===void 0||Vt.map(function(Ya){lr.push({type:Ya.item_type,id:Ya.id})}),(er=Wt[tn].attachments_list)===null||er===void 0||er.map(function(Ya){lr.push({type:"Attachment",id:Ya.id})}),fr=Yt.tagName,$r=Object(_.a)(Yt,["tagName"]),!Jn){qa.next=16;break}return mn=Object(P.a)(Object(P.a)({},$r),{},{pathId:Bt.pathId,list:lr}),fr&&(mn=Object(P.a)(Object(P.a)({},mn),{},{stage_tag_attributes:{name:fr}})),qa.next=12,Object(K.d)(Object(P.a)({},mn));case 12:ni=qa.sent,ni!=null&&ni.subject_id&&(Wt[tn]=Object(P.a)(Object(P.a)(Object(P.a)({},Wt[tn]),ni),{},{stage_name:mn.name,stage_description:mn.description,tag:mn.stage_tag_attributes}),qt(Object(o.a)(Wt))),qa.next=24;break;case 16:return Pi=Array.from(new Set(lr.map(function(Ya){return Ya.type}))),La=Object(P.a)(Object(P.a)({},$r),{},{id:Wt[tn].stage_id,type:Array.from(new Set(lr.map(function(Ya){return Ya.type}))),list:lr}),da=Wt[tn].tag&&Wt[tn].tag.id||"",La=Object(P.a)(Object(P.a)({},La),{},{stage_tag_attributes:da?{id:da,name:fr}:{name:fr}}),qa.next=22,Object(K.U)(Object(P.a)({},La));case 22:Oi=qa.sent,Oi!=null&&Oi.subject_id&&(Wt[tn]=Object(P.a)(Object(P.a)(Object(P.a)({},Wt[tn]),Oi),{},{stage_name:La.name,stage_description:La.description,tag:La.stage_tag_attributes}),qt(Object(o.a)(Wt)));case 24:return Sn(!1),qa.abrupt("return");case 26:case"end":return qa.stop()}},Lt)}));return function(Yt,Cn){return Tn.apply(this,arguments)}}(),Ji=function(Lt,Yt,Cn){var Vt=Array.from(Lt),er=Vt.splice(Yt,1),lr=Object(E.a)(er,1),fr=lr[0];return Vt.splice(Cn,0,fr),Vt},vs=function(Lt,Yt){T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){Wt[tn][Yt||"shixuns_list"].splice(Lt,1),R.b.success("\u5220\u9664\u6210\u529F"),qt(Object(o.a)(Wt)),In(yr.getFieldsValue(),Yt)}})},ts=function(Lt){T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u672C\u64CD\u4F5C\u5C06\u5220\u9664\u5F53\u524D\u76EE\u5F55\u53CA\u4E0B\u5C5E\u5B50\u76EE\u5F55\u5B9A\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Yt=Object(y.a)(r.a.mark(function Vt(){var er;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,Object(K.s)(Lt);case 2:er=fr.sent,er.status===0&&(R.b.success("\u5220\u9664\u6210\u529F"),Bi());case 4:case"end":return fr.stop()}},Vt)}));function Cn(){return Yt.apply(this,arguments)}return Cn}()})},ca=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn,Vt,er,lr,fr;return r.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(console.log(Yt),!((Yt==null?void 0:Yt.item_type)==="VideoItem")){mn.next=9;break}return mn.next=4,Object(Fa.g)({id:Yt==null?void 0:Yt.stage_item_id});case 4:Cn=mn.sent,io(Cn),(Yt==null?void 0:Yt.item_type)==="VideoItem"?Ka(!0):(Ao((Cn==null||((Vt=Cn.tags)===null||Vt===void 0)?void 0:Vt.map(function(ni){return ni==null?void 0:ni.name}))||[]),ir.setFieldsValue({files:[{uid:Cn==null||((er=Cn.attachment)===null||er===void 0)?void 0:er.id,name:Cn==null?void 0:Cn.name,response:{id:Cn==null||((lr=Cn.attachment)===null||lr===void 0)?void 0:lr.id}}]}),cn(!0)),mn.next=10;break;case 9:T.a.confirm({title:"\u4FEE\u6539\u8BFE\u4EF6\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:e.a.createElement(re.a,{value:fr,onChange:function(Pi){fr=Pi.target.value},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u4EF6\u540D\u79F0"}),onOk:function(){var ni=Object(y.a)(r.a.mark(function La(){var da,Oi,qi;return r.a.wrap(function(Ya){for(;;)switch(Ya.prev=Ya.next){case 0:if(fr){Ya.next=3;break}return R.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Ya.abrupt("return",Promise.reject());case 3:return Ya.next=5,Object(le.a)("/api/attachments/".concat(Yt==null?void 0:Yt.id,".json"),{method:"put",body:{name:fr+(Yt==null||((da=Yt.name)===null||da===void 0)?void 0:da.substr(Yt==null||((Oi=Yt.name)===null||Oi===void 0)?void 0:Oi.lastIndexOf(".")))}});case 5:qi=Ya.sent,fr="",Bi();case 8:case"end":return Ya.stop()}},La)}));function Pi(){return ni.apply(this,arguments)}return Pi}()});case 10:case"end":return mn.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Ur=function(Lt){T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Yt=Object(y.a)(r.a.mark(function Vt(){var er;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,Object(K.r)({id:Lt});case 2:er=fr.sent,er.status===1&&(bn(-1),R.b.success("\u5220\u9664\u6210\u529F"),Bi());case 4:case"end":return fr.stop()}},Vt)}));function Cn(){return Yt.apply(this,arguments)}return Cn}()})},ui=function(){kr({name:"",is_jupyter:!1}),Pr.setFieldsValue({name:"",is_jupyter:!1}),ki(!1),hn(!1)},wa=function(Lt,Yt){var Cn;if(!Lt.destination)return;var Vt=Ji((Cn=Wt[tn])===null||Cn===void 0?void 0:Cn[Yt||"shixuns_list"],Lt.source.index,Lt.destination.index);Wt[tn][Yt||"shixuns_list"]=Vt,qt(Object(o.a)(Wt)),In(yr.getFieldsValue(),Yt)},To=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(Eo()){er.next=2;break}return er.abrupt("return");case 2:return er.next=4,Object(K.T)({id:Yt});case 4:Cn=er.sent,Cn.status===1&&Bi();case 6:case"end":return er.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Zi=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(Eo()){er.next=2;break}return er.abrupt("return");case 2:return er.next=4,Object(K.t)({id:Yt});case 4:Cn=er.sent,Cn.status===1&&Bi();case 6:case"end":return er.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Eo=function(){return tn!==-1?(T.a.info({icon:null,className:"custom-modal-divider ",okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",content:e.a.createElement("div",{className:"mt10 font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var Yt="Edit_".concat(tn),Cn=document.getElementById(Yt);Cn&&setTimeout(function(){return Cn.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},oo=function(){In(yr.getFieldsValue())},dn=function(){Sn(!1)},Uo=function(){var Lt,Yt,Cn,Vt,er,lr;return((Lt=nt.detail)===null||Lt===void 0||((Yt=Lt.courses)===null||Yt===void 0)?void 0:Yt.length)>0?(Cn=nt.detail)===null||Cn===void 0?void 0:Cn.allow_visit:!(((Vt=st.userInfo)===null||Vt===void 0?void 0:Vt.user_identity)==="\u5B66\u751F"&&(er=nt.detail)!==null&&er!==void 0&&er.allow_visit&&(lr=nt.detail)!==null&&lr!==void 0&&lr.courses)},Ss=function(Lt,Yt,Cn){var Vt,er,lr,fr,$r,mn,ni,Pi,La,da,Oi,qi;return Di!=="All"&&Lt.item_type!==Di?null:e.a.createElement(oe.a,{className:"list-item-row",align:"middle",key:Yt,gutter:[5,10]},e.a.createElement(se.a,null,Lt.item_type==="Shixun"?e.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):e.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})),e.a.createElement(se.a,{flex:1,className:!Lt.allow_visit&&!Lt.to_be_built&&(Lt.shixun_status==="\u6682\u672A\u516C\u5F00"||Lt.shixun_status==="\u5DF2\u5220\u9664")?Yr.a.color204:""},!!(nt!=null&&(Vt=nt.detail)!==null&&Vt!==void 0&&Vt.cust_seq)&&e.a.createElement("span",{className:"mr8"},Cn+1,"-",Yt+1),Lt.name,tn===-1&&Lt.complete_status===1&&e.a.createElement("span",{className:Yr.a.completed},e.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),e.a.createElement(se.a,null,tn===Cn&&e.a.createElement("div",null,e.a.createElement(l.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){vs(Yt,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((er=st.userInfo)===null||er===void 0?void 0:er.admin)||((lr=st.userInfo)===null||lr===void 0?void 0:lr.business)||!(!((fr=nt.detail)!==null&&fr!==void 0&&fr.allow_statistics)&&(($r=st.userInfo)===null||$r===void 0?void 0:$r.user_identity)==="\u5B66\u751F"&&(mn=nt.detail)!==null&&mn!==void 0&&mn.allow_visit&&(ni=nt.detail)!==null&&ni!==void 0&&ni.courses))&&tn!==Cn&&Lt.item_type==="VideoItem"&&e.a.createElement("aside",null,e.a.createElement(h.a,{type:"primary",onClick:function(){var Ya,fi;if(!((Ya=st.userInfo)!==null&&Ya!==void 0&&Ya.admin)&&!((fi=st.userInfo)!==null&&fi!==void 0&&fi.business)&&!Lt.can_view)return T.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:e.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});Lt.link&&Object(Fa.n)({is_f:1,id:Lt.id,point:0,total:0}),Object(fe.Q)(Lt.link||"/video/".concat(Lt.id,"?subject_id=").concat(Bt.pathId))}},Lt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((Pi=st.userInfo)===null||Pi===void 0?void 0:Pi.admin)||(Lt.allow_visit||Lt.to_be_built||Lt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&Lt.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((La=nt.detail)!==null&&La!==void 0&&La.allow_statistics)&&((da=st.userInfo)===null||da===void 0?void 0:da.user_identity)==="\u5B66\u751F"&&(Oi=nt.detail)!==null&&Oi!==void 0&&Oi.allow_visit&&(qi=nt.detail)!==null&&qi!==void 0&&qi.courses))&&tn!==Cn&&Lt.item_type==="Shixun"&&e.a.createElement("aside",null,e.a.createElement(It.a,{to:"/shixuns/".concat(Lt.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),Lt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&e.a.createElement(h.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(Fe.e)(Dt,!0))return;es(Lt.identifier,Lt.is_jupyter||Lt.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),tn===-1&&!Lt.allow_visit&&!Lt.to_be_built&&Lt.shixun_status==="\u6682\u672A\u516C\u5F00"&&e.a.createElement("span",{className:Yr.a.color204},"\u6682\u672A\u516C\u5F00"),tn===-1&&!Lt.allow_visit&&!Lt.to_be_built&&Lt.shixun_status==="\u5DF2\u5220\u9664"&&e.a.createElement("span",{className:Yr.a.color204},"\u5DF2\u5220\u9664"),tn===-1&&Lt.item_type==="Shixun"&&!!Lt.challenges_count&&e.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Lt.challenges_count)))},gs=function(Lt){var Yt,Cn=[];if(Lt.items&&(Yt=Lt.items)!==null&&Yt!==void 0&&Yt.length){var Vt;(Vt=Lt.items)===null||Vt===void 0||Vt.forEach(function(lr){var fr;Cn.push(lr),lr.children&&(fr=lr.children)!==null&&fr!==void 0&&fr.length&&(Cn=Cn.concat(lr.children))})}var er=!!Cn.find(function(lr){return Object(ua.isEqual)(lr.learning_status,["can","try"])});return er?e.a.createElement("aside",{className:Yr.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},Za=function(Lt,Yt){var Cn,Vt,er,lr,fr,$r;if(Di!=="All"&&!((Cn=Lt.stage_tag)!==null&&Cn!==void 0&&Cn.includes(Di)))return null;var mn=!1,ni=!1,Pi=!1,La=!1;if(Di==="All"){var da,Oi,qi,qa;mn=(((da=st.userInfo)===null||da===void 0?void 0:da.admin)||((Oi=st.userInfo)===null||Oi===void 0?void 0:Oi.business)||((qi=nt.detail)===null||qi===void 0?void 0:qi.allow_statistics))&&tn===Yt&&!Jn,(qa=nt.detail)!==null&&qa!==void 0&&qa.allow_add_member&&Go&&tn!==Yt&&(ni=!0,Yt>0&&(Pi=!0),Yt0)return e.a.createElement("div",{key:Lt,className:Tn.type===Di?Yr.a.tabActive:Yr.a.tab,onClick:function(){tn===-1?(Io(Tn.type),bn(-1)):R.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},e.a.createElement("span",{className:Yr.a.s1},Tn.name),e.a.createElement("span",{className:Yr.a.s2},Tn.number))})),Di!=="Discusses"&&e.a.createElement(e.a.Fragment,null,e.a.createElement(ne.a,{form:yr,onFinish:In},Wt==null?void 0:Wt.map(function(Tn,Lt){return e.a.createElement("div",{key:Lt},Za(Tn,Lt))})),((Ve=nt.detail)===null||Ve===void 0?void 0:Ve.allow_statistics)&&Di==="All"&&!Jn&&e.a.createElement("div",{className:Yr.a.addStage,onClick:li},e.a.createElement("span",{className:Yr.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"))),Di==="Discusses"&&e.a.createElement("aside",{className:"mt20"},e.a.createElement(va,{activeIndex:3,isDelete:(Be=nt.detail)===null||Be===void 0?void 0:Be.allow_add_member,shixunIdentifier:11,identity:(at=st.userInfo)===null||at===void 0?void 0:at.role,getTypeNumber:Xi,user:st.userInfo,isShixunDetail:!0})),e.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:rn,confirmLoading:Ii,destroyOnClose:!0,onOk:Object(y.a)(r.a.mark(function Tn(){var Lt;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Pr.validateFields();case 2:return ki(!0),Cn.next=5,Object(K.N)(Object(P.a)({id:Wt[tn].stage_id,subject_id:Bt.pathId},Qn));case 5:Lt=Cn.sent,ui(),Lt.id&&(Pr.resetFields(),R.b.success("\u6DFB\u52A0\u6210\u529F"),bo([Lt])),ki(!1);case 9:case"end":return Cn.stop()}},Tn)})),onCancel:ui},e.a.createElement(ne.a,{form:Pr,onValuesChange:function(Lt){kr(Object(P.a)(Object(P.a)({},Qn),Lt))}},e.a.createElement(ne.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},e.a.createElement(x.a.Group,null,e.a.createElement(x.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(x.a,{value:!0},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"))),e.a.createElement(ne.a.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}]},e.a.createElement(re.a,{suffix:e.a.createElement("span",null,Qn.name.length,"/60")})))),e.a.createElement(T.a,{centered:!0,title:Xa?"\u7F16\u8F91\u6559\u5B66\u8BFE\u4EF6":"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:tr,confirmLoading:Ii,destroyOnClose:!0,onOk:Object(y.a)(r.a.mark(function Tn(){var Lt,Yt,Cn,Vt,er,lr;return r.a.wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:return $r.next=2,ir.validateFields();case 2:return ki(!0),$r.next=5,ir.getFieldsValue();case 5:if(Lt=$r.sent,Yt=!1,Cn="",Lt.files.forEach(function(mn){(!mn.response||!mn.response.id)&&(Yt=!0,Cn=mn.name)}),!Yt){$r.next=11;break}return R.b.error("".concat(Cn," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20")),$r.abrupt("return");case 11:if(Xa){$r.next=18;break}return $r.next=14,Object(K.c)({id:Wt[tn].stage_id,subject_id:Bt.pathId,tags:Ti,attachment_ids:Lt.files.map(function(mn){return mn.response.id})});case 14:Vt=$r.sent,Vt.status===0&&(R.b.success("\u4FEE\u6539\u6210\u529F"),cn(!1),Po(Object(o.a)(Vt.items))),$r.next=22;break;case 18:return $r.next=20,Object(K.S)({id:Xa==null?void 0:Xa.id,subject_id:Bt.pathId,tags:Ti,attachment_id:(er=Lt.files.map(function(mn){return mn.response.id}))===null||er===void 0?void 0:er[0]});case 20:lr=$r.sent,lr.status===0&&(R.b.success("\u4FEE\u6539\u6210\u529F"),cn(!1),Po(Object(o.a)(lr.items)));case 22:ki(!1);case 23:case"end":return $r.stop()}},Tn)})),onCancel:function(){cn(!1),Ao([]),io("")}},e.a.createElement(ne.a,{form:ir},e.a.createElement(ne.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},e.a.createElement(vo.b,{aloneClear:!0,maxSize:Object(U.v)()?500:100,accept:to.toString(),number:Xa?1:10})),e.a.createElement(ne.a.Item,{style:{marginLeft:8},label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag"},e.a.createElement(re.a,{onKeyUp:qo})),e.a.createElement("div",{className:Yr.a["tagsList-content"]},Ti.map(function(Tn,Lt){return e.a.createElement(p.a,{key:Lt+Tn,closable:!0,onClose:function(Cn){$o(Cn,Tn)}},Tn)})),e.a.createElement("div",null,e.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),e.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",e.a.createElement(It.a,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",e.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Object(U.v)()?500:100,"M\uFF1B",e.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u3001word\u3001excel\u3001ppt\u3001zip\u6587\u4EF6\uFF1B",e.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",e.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),e.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u5C0F\u8282\u540D\u79F0",visible:hr,confirmLoading:Ii,onOk:Object(y.a)(r.a.mark(function Tn(){var Lt,Yt;return r.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,fn.validateFields();case 2:return ki(!0),Vt.next=5,fn.getFieldsValue();case 5:return Lt=Vt.sent,Vt.next=8,Object(K.a)({id:Wt[tn].stage_id,subject_id:Bt.pathId,name:Lt.name});case 8:Yt=Vt.sent,Yt.status===0&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),Br(!1),Vo(Object(P.a)({},Yt))),ki(!1);case 11:case"end":return Vt.stop()}},Tn)})),onCancel:function(){return Br(!1)}},e.a.createElement(ne.a,{form:fn},e.a.createElement(ne.a.Item,{label:"",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"}]},e.a.createElement(re.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"})))),e.a.createElement(Jr,{shixunIds:Va,cb:bo}),e.a.createElement(vi.a,{visible:ti,editData:Xa,onCancel:function(){return Ka(!1)},onOk:Xo}))},us=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.user,Te=Ge.loading,Ve=Ge.globalSetting;return{pathsDetail:Ye,user:Je,globalSetting:Ve,loading:Te.effects}})(ls),Is=M("uRQ9"),xs=M.n(Is),js=function(Ye){var Je=Ye.user,Te=Object(_.a)(Ye,["user"]),Ve=Object(n.useState)([]),Be=Object(E.a)(Ve,2),at=Be[0],nt=Be[1],st=Object(n.useState)(!0),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)(!1),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)(!1),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=Object(n.useState)(0),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1],Xn=Object(n.useState)({}),rn=Object(E.a)(Xn,2),hn=rn[0],An=rn[1],_n=Object(s.i)(),tr=Object(n.useState)({page:1,limit:10}),cn=Object(E.a)(tr,2),Fn=cn[0],Ir=cn[1],hr=[{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",align:"left"},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"left"},{title:"\u7533\u8BF7\u72B6\u6001",dataIndex:"state",key:"state",align:"left",render:function(yr,Dn){return e.a.createElement(e.a.Fragment,null,(Dn==null?void 0:Dn.state)==="drafted"&&e.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(Dn==null?void 0:Dn.state)==="rejected"&&e.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(Dn==null?void 0:Dn.state)==="passed"&&e.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(yr){return"".concat(yr,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(yr,Dn){return e.a.createElement("div",{className:xs.a.actionsBtns},(Dn==null?void 0:Dn.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return Br(Dn)}},"\u540C\u610F"),(Dn==null?void 0:Dn.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return ur(Dn)}},"\u62D2\u7EDD"),(Dn==null?void 0:Dn.state)==="rejected"&&e.a.createElement("span",{onClick:function(){return Fr(Dn)}},"\u62D2\u7EDD\u539F\u56E0"),(Dn==null?void 0:Dn.state)==="passed"&&e.a.createElement("span",{onClick:function(){return Qn(Dn)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(Wr){return qt?!0:Wr.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&Wr.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(n.useEffect)(function(){kr(Fn)},[Fn]);var Br=function(){var Wr=Object(y.a)(r.a.mark(function yr(Dn){var ar;return r.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,Object(le.a)("/api/paths/".concat(_n==null?void 0:_n.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:Dn==null?void 0:Dn.id,op:"pass"}});case 2:ar=jn.sent,(ar==null?void 0:ar.status)===0&&kr(Fn);case 4:case"end":return jn.stop()}},yr)}));return function(Dn){return Wr.apply(this,arguments)}}(),ur=function(yr){var Dn="";T.a.confirm({title:"\u8BC1\u4E66\u7533\u8BF7\u62D2\u7EDD",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,e.a.createElement("p",null,"\u62D2\u7EDD\u8BC1\u4E66\u53D1\u653E\u9700\u586B\u5199\u62D2\u7EDD\u539F\u56E0\u3002"),e.a.createElement("aside",{className:"flex-container"},e.a.createElement("sup",{className:"c-red-ee4"},"*"),e.a.createElement("span",null,"\u62D2\u7EDD\u539F\u56E0:"),e.a.createElement(re.a,{maxLength:30,style:{width:284,marginLeft:10},onChange:function(Pr){return Dn=Pr.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var ar=Object(y.a)(r.a.mark(function jn(){var $n;return r.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(Dn){Zn.next=3;break}return R.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),Zn.abrupt("return",Promise.reject());case 3:return Zn.next=5,Object(le.a)("/api/paths/".concat(_n==null?void 0:_n.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:yr==null?void 0:yr.id,op:"reject",content:Dn}});case 5:$n=Zn.sent,($n==null?void 0:$n.status)===0&&kr(Fn);case 7:case"end":return Zn.stop()}},jn)}));function Pr(){return ar.apply(this,arguments)}return Pr}()})},Fr=function(yr){T.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,yr==null?void 0:yr.content),okText:"\u786E\u5B9A"})},Qn=function(yr){An((yr==null?void 0:yr.info)||{}),ln(!0)},kr=function(){var Wr=Object(y.a)(r.a.mark(function yr(Dn){var ar;return r.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return Dt(!0),jn.next=3,Object(le.a)("/api/paths/".concat(_n==null?void 0:_n.pathId,"/request_certificates.json"),{method:"get",params:Dn});case 3:ar=jn.sent,ar!=null&&ar.data&&(nt(ar==null?void 0:ar.data),Ln((ar==null?void 0:ar.total_count)||0),yn(ar==null?void 0:ar.is_manage)),Dt(!1);case 6:case"end":return jn.stop()}},yr)}));return function(Dn){return Wr.apply(this,arguments)}}(),ta=function(yr,Dn){var ar=Object(P.a)(Object(P.a)({},Fn),{},{page:yr,limit:Dn});Ir(ar),kr(ar)};return e.a.createElement("div",{className:xs.a.certificate},e.a.createElement(Mt.a,{dataSource:at,rowKey:function(yr){return yr.id},columns:hr,loading:dt,pagination:{pageSize:Fn.limit,total:bn,current:Fn.page,onChange:ta,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),e.a.createElement(ba,{visible:$t,onCancel:function(){ln(!1),An({})},data:hn}))},Zs=Object(u.a)(function(Ge){var Ye=Ge.user,Je=Ge.pathsDetail;return{user:Ye,pathsDetail:Je}})(js);pe.a.locale("ZH-cn");var cs=m.a.TabPane,dl=function(Ye){var Je=Ye.data,Te=Object(n.useState)("1"),Ve=Object(E.a)(Te,2),Be=Ve[0],at=Ve[1],nt=Object(n.useState)(1),st=Object(E.a)(nt,2),it=st[0],dt=st[1],Dt=Object(n.useState)(),Qt=Object(E.a)(Dt,2),Bt=Qt[0],$t=Qt[1],ln=Object(n.useState)(!0),On=Object(E.a)(ln,2),Wt=On[0],qt=On[1],yn=Object(s.i)();function Rn(){return tn.apply(this,arguments)}function tn(){return tn=Object(y.a)(r.a.mark(function Ln(){var Xn,rn;return r.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return qt(!0),Be==="1"?Xn="/api/paths/".concat(yn.pathId,"/study_ranking_shixuns_passed.json"):Be==="2"?Xn="/api/paths/".concat(yn.pathId,"/study_ranking_videos.json"):Be==="3"?Xn="/api/paths/".concat(yn.pathId,"/study_ranking_pdf_attachments.json"):Be==="4"&&(Xn="/api/paths/".concat(yn.pathId,"/study_ranking_discusses.json")),An.next=4,Object(le.a)(Xn,{method:"get",params:{page:it}});case 4:rn=An.sent,qt(!1),$t(rn);case 7:case"end":return An.stop()}},Ln)})),tn.apply(this,arguments)}Object(n.useEffect)(function(){Rn()},[it,Be]);var bn=function(){var Xn,rn,hn,An,_n,tr,cn,Fn,Ir,hr,Br,ur,Fr;return e.a.createElement(e.a.Fragment,null,e.a.createElement(Y.a,{spinning:Wt},e.a.createElement("div",{style:{height:"42px",background:"#fafafa",display:"flex",padding:"0px 5px",alignItems:"center"}},e.a.createElement("span",{style:{flex:"1"}},"\u6392\u540D"),e.a.createElement("span",{style:{flex:"1"}},"\u59D3\u540D"),Be==="1"&&e.a.createElement("span",{style:{flex:"3"}},"\u901A\u8FC7\u5173\u5361\u6570"),Be==="2"&&e.a.createElement("span",{style:{flex:"3"}},"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F"),Be==="3"&&e.a.createElement("span",{style:{flex:"3"}},"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570"),Be==="4"&&e.a.createElement("span",{style:{flex:"3"}},"\u53D1\u5E16\u6570")),(Bt==null?void 0:Bt.user_show)&&e.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},e.a.createElement("span",{style:{flex:"1"}},(Bt==null||((Xn=Bt.data_user)===null||Xn===void 0)?void 0:Xn.rank)===0&&(Bt==null||((rn=Bt.data_user)===null||rn===void 0)?void 0:rn.num)===0?"--":(Bt==null||((hn=Bt.data_user)===null||hn===void 0)?void 0:hn.rank)<=100&&(Bt==null||((An=Bt.data_user)===null||An===void 0)?void 0:An.rank)!=0?Bt==null||((_n=Bt.data_user)===null||_n===void 0)?void 0:_n.rank:"\u672A\u4E0A\u699C"),e.a.createElement("span",{style:{flex:"1"}},Bt==null||((tr=Bt.data_user)===null||tr===void 0)?void 0:tr.user_real_name),Be==="1"&&e.a.createElement("span",{style:{flex:"3"}},(Bt==null||((cn=Bt.data_user)===null||cn===void 0)?void 0:cn.num)||"--"),Be==="2"&&e.a.createElement("span",{style:{flex:"3"}},Bt!=null&&(Fn=Bt.data_user)!==null&&Fn!==void 0&&Fn.num?Object(fe.Z)(Bt==null||((Ir=Bt.data_user)===null||Ir===void 0)?void 0:Ir.num):"--"),Be==="3"&&e.a.createElement("span",{style:{flex:"3"}},(Bt==null||((hr=Bt.data_user)===null||hr===void 0)?void 0:hr.num)||"--"),Be==="4"&&e.a.createElement("span",{style:{flex:"3"}},(Bt==null||((Br=Bt.data_user)===null||Br===void 0)?void 0:Br.num)||"--")),(Bt==null?void 0:Bt.user_show)&&e.a.createElement(Ma.a,null),(Bt==null||((ur=Bt.data)===null||ur===void 0)?void 0:ur.length)>0?Bt==null||((Fr=Bt.data)===null||Fr===void 0)?void 0:Fr.map(function(Qn,kr){return e.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},(Qn==null?void 0:Qn.rank)===1&&e.a.createElement("span",{style:{flex:"1",color:"#E02020"}},Qn==null?void 0:Qn.rank),(Qn==null?void 0:Qn.rank)===2&&e.a.createElement("span",{style:{flex:"1",color:"#FA6400"}},Qn==null?void 0:Qn.rank),(Qn==null?void 0:Qn.rank)===3&&e.a.createElement("span",{style:{flex:"1",color:"#F7B500"}},Qn==null?void 0:Qn.rank),(Qn==null?void 0:Qn.rank)>3&&e.a.createElement("span",{style:{flex:"1"}},Qn==null?void 0:Qn.rank),e.a.createElement("span",{style:{flex:"1"}},Qn==null?void 0:Qn.user_real_name),Be==="1"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num),Be==="2"&&e.a.createElement("span",{style:{flex:"3"}},Object(fe.Z)(Qn==null?void 0:Qn.num)),Be==="3"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num),Be==="4"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num))}):e.a.createElement(eo.a,null),(Bt==null?void 0:Bt.count)>10&&e.a.createElement(si.a,{current:it,pageSize:10,showSizeChanger:!1,total:Bt==null?void 0:Bt.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(kr){dt(kr)}})))};return e.a.createElement("div",null,e.a.createElement(m.a,{activeKey:Be,style:{background:"#fff",padding:"0px 20px"},onChange:function(Xn){at(Xn),dt(1)}},e.a.createElement(cs,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},e.a.createElement(bn,null)),e.a.createElement(cs,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},e.a.createElement(bn,null)),e.a.createElement(cs,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},e.a.createElement(bn,null)),e.a.createElement(cs,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},e.a.createElement(bn,null))))},$s=M("XzQ7"),xo=M.n($s),ms=M("ho57"),Qa=M.n(ms),_s=m.a.TabPane;function _o(Ge){var Ye=function(at,nt){if(at.localName===nt)return at;for(var st=0,it=at;it=it.parentNode;st++){if(it.localName===nt)return it;if(it==document.documentElement)return!1}},Je=Ge.target,Te=Ye(Je,"a");if(console.log([Te],Te==null?void 0:Te.href,44),Te!=null&&Te.href)return;if(Je.tagName.toUpperCase()==="IMG"){var Ve=Je.src||Je.getAttribute("src");Ve&&Ve.indexOf("/images/avatars/User")===-1&&(Ge.stopPropagation(),Ge.preventDefault(),Dr.a.publish("preview-image",Ve))}}var Hs=function(Ye){var Je,Te,Ve=Ye.pathsDetail,Be=Ye.globalSetting,at=Ye.loading,nt=Ye.dispatch,st=Object(_.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),it=Object(s.i)(),dt=st.location.query,Dt=Object(n.useRef)(),Qt=Object(n.useState)("stage"),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function(qt){var yn;return(yn=Ve.detail)!==null&&yn!==void 0&&yn.excellent?!0:qt.key!=="certificate"});Object(n.useEffect)(function(){if(Dt.current)return Dt.current.addEventListener("mousedown",_o),function(){Dt.current.removeEventListener("mousedown",_o)}},[Dt.current]),Object(n.useEffect)(function(){if(!it.pathId)return;Wt()},[it.pathId]),Object(n.useEffect)(function(){var qt;Object(fe.V)((qt=Ve.detail)===null||qt===void 0?void 0:qt.name)},[Ve]);var Wt=function(){var qt=Object(y.a)(r.a.mark(function yn(){var Rn;return r.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return bn.next=2,nt({type:"pathsDetail/getPathsDetail",payload:Object(P.a)({id:it.pathId},dt)});case 2:Rn=bn.sent,nt({type:"pathsDetail/getRightData",payload:{id:it.pathId}}),nt({type:"pathsDetail/getStageData",payload:{subject_id:it.pathId}}),Rn!=null&&Rn.id&&dt.token&&(location.href=location.pathname);case 6:case"end":return bn.stop()}},yn)}));return function(){return qt.apply(this,arguments)}}();return e.a.createElement(Y.a,{spinning:!1},e.a.createElement("section",{className:xo.a.bg},e.a.createElement(At,null),e.a.createElement(zo.a,null),e.a.createElement("section",{style:{marginTop:((Je=Ve.detail)===null||Je===void 0?void 0:Je.excellent)&&"89px"},className:"edu-container mb80 ".concat(xo.a.wrap)},e.a.createElement("aside",{className:xo.a.content},e.a.createElement("div",{className:xo.a.intro},e.a.createElement("div",{className:xo.a.introTitle},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{src:Qa.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),e.a.createElement("div",{ref:Dt},e.a.createElement(ze.a,{value:(Te=Ve.detail)===null||Te===void 0?void 0:Te.description}))),e.a.createElement(m.a,{className:xo.a.wrapTabs,activeKey:$t,onChange:function(yn){return ln(yn)},tabBarGutter:50,tabBarStyle:{height:76}},On.map(function(qt){return e.a.createElement(_s,{tab:qt.name,key:qt.key})})),$t==="stage"&&e.a.createElement(us,null),$t==="ranking"&&e.a.createElement(dl,null),$t==="certificate"&&e.a.createElement(Zs,null)),e.a.createElement(xa,null))))},ut=we.default=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{pathsDetail:Ye,globalSetting:Te,loading:Je}})(Hs)},Aky1:function(Ze,we,M){"use strict";M.d(we,"a",function(){return c});var ue=M("ErOA"),Y=M("ppsT"),P=M.n(Y),y="",E,_="";function C(r){m(r)}function m(r){E=new P.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(e){console.log("addFileSuccess: "+e.file.name),r.addFileSuccess&&r.addFileSuccess(e),E.startUpload()},onUploadstarted:function(e){var s=e.file.name;if(e.videoId){var f="/api/users/".concat(y,"/video_auths.json");Object(ue.a)(f,{method:"put",body:{video_id:e.videoId,title:s,file_name:s,virtual_classroom_id:_}}).then(function(d){if(d.status==-1){r.onUploadError&&r.onUploadError(e);return}var a=d.data,h=a.UploadAuth,g=a.UploadAddress,p=a.VideoId;E.setUploadAuthAndAddress(e,h,g)}).catch(function(d){E.deleteFile(E._curIndex),E.nextUpload(),console.log(d)})}else{var u="/api/users/".concat(y,"/video_auths.json"),o="";Object(ue.a)(u,{method:"Post",body:{title:o+s,file_name:o+s,virtual_classroom_id:_}}).then(function(d){if(d){var a=d.data,h=a.UploadAuth,g=a.UploadAddress,p=a.VideoId;E.setUploadAuthAndAddress(e,h,g,p)}}).catch(function(d){E.deleteFile(E._curIndex),E.nextUpload(),console.log(d)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(e){r.onUploadSucceed&&r.onUploadSucceed(e),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(e,s,u){r.onUploadFailed&&r.onUploadFailed(e),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(e,s,u){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(e,s,u){r.onUploadProgress&&r.onUploadProgress(e,s,u);var o=Math.ceil(u*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(e){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var s="/api/users/".concat(y,"/video_auths.json");Object(ue.a)(s,{method:"put",body:{video_id:e.videoId}}).then(function(u){var o=u.data,f=o.UploadAuth;E.resumeUploadWithAuth(f)}).catch(function(u){console.log(u)})},onUploadEnd:function(e){r.onUploadEnd&&r.onUploadEnd(e),console.log("onUploadEnd: uploaded all the files")}}),r.gotUploader&&r.gotUploader(E)}function c(r,n,e){r&&(y=r),n&&(_=n),C(e)}},BPZU:function(Ze,we){var M=32,ue=7,Y=256;function P(n){for(var e=0;n>=M;)e|=n&1,n>>=1;return n+e}function y(n,e,s,u){var o=e+1;if(o===s)return 1;if(u(n[o++],n[e])<0){for(;o=0;)o++;return o-e}function E(n,e,s){for(s--;e>>1,o(f,n[h])<0?a=h:d=h+1;var g=u-d;switch(g){case 3:n[d+3]=n[d+2];case 2:n[d+2]=n[d+1];case 1:n[d+1]=n[d];break;default:for(;g>0;)n[d+g]=n[d+g-1],g--}n[d]=f}}function C(n,e,s,u,o,f){var d=0,a=0,h=1;if(f(n,e[s+o])>0){for(a=u-o;h0;)d=h,h=(h<<1)+1,h<=0&&(h=a);h>a&&(h=a),d+=o,h+=o}else{for(a=o+1;ha&&(h=a);var g=d;d=o-h,h=o-g}for(d++;d>>1);f(n,e[s+p])>0?d=p+1:h=p}return h}function m(n,e,s,u,o,f){var d=0,a=0,h=1;if(f(n,e[s+o])<0){for(a=o+1;ha&&(h=a);var g=d;d=o-h,h=o-g}else{for(a=u-o;h=0;)d=h,h=(h<<1)+1,h<=0&&(h=a);h>a&&(h=a),d+=o,h+=o}for(d++;d>>1);f(n,e[s+p])<0?h=p:d=p+1}return h}function c(n,e){var s=ue,u=0,o=Y,f=0,d,a,h=0;u=n.length,u<2*Y&&(o=u>>>1);var g=[];f=u<120?5:u<1542?10:u<119151?19:40,d=[],a=[];function p(l,i){d[h]=l,a[h]=i,h+=1}function S(){for(;h>1;){var l=h-2;if(l>=1&&a[l-1]<=a[l]+a[l+1]||l>=2&&a[l-2]<=a[l]+a[l-1])a[l-1]a[l+1])break;B(l)}}function w(){for(;h>1;){var l=h-2;l>0&&a[l-1]=ue||U>=ue);if(K)break;H<0&&(H=0),H+=2}if(s=H,s<1&&(s=1),i===1){for(T=0;T=0;T--)n[J+T]=n[H+T];n[k]=g[R];return}for(var U=s;;){var K=0,G=0,N=!1;do if(e(g[R],n[D])<0){if(n[k--]=n[D--],K++,G=0,--i===0){N=!0;break}}else if(n[k--]=g[R--],G++,K=0,--O===1){N=!0;break}while((K|G)=0;T--)n[J+T]=n[H+T];if(i===0){N=!0;break}}if(n[k--]=g[R--],--O===1){N=!0;break}if(G=O-C(n[D],g,0,O,O-1,e),G!==0){for(k-=G,R-=G,O-=G,J=k+1,H=R+1,T=0;T=ue||G>=ue);if(N)break;U<0&&(U=0),U+=2}if(s=U,s<1&&(s=1),O===1){for(k-=i,D-=i,J=k+1,H=D+1,T=i-1;T>=0;T--)n[J+T]=n[H+T];n[k]=g[R]}else{if(O===0)throw new Error;for(H=k-(O-1),T=0;Ta&&(h=a),_(n,s,s+h,s+f,e),f=h}d.pushRun(s,f),d.mergeRuns(),o-=f,s+=f}while(o!==0);d.forceMergeRuns()}Ze.exports=r},BU3w:function(Ze,we,M){"use strict";M.d(we,"a",function(){return _});var ue=M("MNnm"),Y="rc-util-key";function P(C){if(C.attachTo)return C.attachTo;var m=document.querySelector("head");return m||document.body}function y(C){var m,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ue.a)())return null;var r=document.createElement("style");if((m=c.csp)===null||m===void 0?void 0:m.nonce){var n;r.nonce=(n=c.csp)===null||n===void 0?void 0:n.nonce}r.innerHTML=C;var e=P(c),s=e.firstChild;return c.prepend&&e.prepend?e.prepend(r):c.prepend&&s?e.insertBefore(r,s):e.appendChild(r),r}var E=new Map;function _(C,m){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=P(c);if(!E.has(r)){var n=y("",c),e=n.parentNode;E.set(r,e),e.removeChild(n)}var s=Array.from(E.get(r).children).find(function(a){return a.tagName==="STYLE"&&a[Y]===m});if(s){var u,o;if(((u=c.csp)===null||u===void 0?void 0:u.nonce)&&s.nonce!==((o=c.csp)===null||o===void 0?void 0:o.nonce)){var f;s.nonce=(f=c.csp)===null||f===void 0?void 0:f.nonce}return s.innerHTML!==C&&(s.innerHTML=C),s}var d=y(C,c);return d[Y]=m,d}},Bd2K:function(Ze,we,M){(function(ue){ue(M("VrN/"),M("osHv"))})(function(ue){ue.defineOption("autoCloseTags",!1,function(c,r,n){if(n!=ue.Init&&n&&c.removeKeyMap("autoCloseTags"),!r)return;var e={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(e["'/'"]=function(s){return _(s)}),(typeof r!="object"||r.whenOpening!==!1)&&(e["'>'"]=function(s){return y(s)}),c.addKeyMap(e)});var Y=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["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 y(c){if(c.getOption("disableInput"))return ue.Pass;for(var r=c.listSelections(),n=[],e=c.getOption("autoCloseTags"),s=0;su.ch&&(h=h.slice(0,h.length-o.end+u.ch));var w=h.toLowerCase();if(!h||o.type=="string"&&(o.end!=u.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.close||o.string.indexOf("/")==u.ch-o.start-1||p&&C(p,w)>-1||m(c,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(d)||[],h,u,!0))return ue.Pass;var B=typeof e=="object"&&e.emptyTags;if(B&&C(B,h)>-1){n[s]={text:"/>",newPos:ue.Pos(u.line,u.ch+2)};continue}var b=S&&C(S,w)>-1;n[s]={indent:b,text:">"+(b?` `:"")+"",newPos:b?ue.Pos(u.line+1,0):ue.Pos(u.line,u.ch+1)}}for(var A=typeof e=="object"&&e.dontIndentOnAutoClose,s=r.length-1;s>=0;s--){var l=n[s];c.replaceRange(l.text,r[s].head,r[s].anchor,"+insert");var i=c.listSelections().slice(0);i[s]={head:l.newPos,anchor:l.newPos},c.setSelections(i),!A&&l.indent&&(c.indentLine(l.newPos.line,null,!0),c.indentLine(l.newPos.line+1,null,!0))}}function E(c,r){for(var n=c.listSelections(),e=[],s=r?"/":""&&(p+=">"),e[f]=p}if(c.replaceSelections(e),n=c.listSelections(),!o)for(var f=0;f=0&&r[d]==n;d--)++f;e=o.to;for(var d=1;d0){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:"",r=[],n=0;n.5?S:p}function r(p,S,w,B,b){var A=p.length;if(b===1)for(var l=0;lb;if(A)p.length=b;else for(var l=B;l=0&&!(U[ke]<=Fe);ke--);ke=Math.min(ke,O-2)}else{for(ke=me;keFe);ke++);ke=Math.min(ke-1,O-2)}me=ke,se=Fe;var re=U[ke+1]-U[ke];if(re===0)return;if(Ae=(Fe-U[ke])/re,x)if(pe=K[ke],Ee=K[ke===0?ke:ke-1],he=K[ke>O-2?O-1:ke+1],ie=K[ke>O-3?O-1:ke+2],D)s(Ee,pe,he,ie,Ae,Ae*Ae,Ae*Ae*Ae,l(Ie,b),H);else{var F;if(R)F=s(Ee,pe,he,ie,Ae,Ae*Ae,Ae*Ae*Ae,fe,1),F=f(fe);else{if(k)return c(pe,he,Ae);F=u(Ee,pe,he,ie,Ae,Ae*Ae,Ae*Ae*Ae)}i(Ie,b,F)}else if(D)r(K[ke],K[ke+1],Ae,l(Ie,b),H);else{var F;if(R)r(K[ke],K[ke+1],Ae,fe,1),F=f(fe);else{if(k)return c(K[ke],K[ke+1],Ae);F=m(K[ke],K[ke+1],Ae)}i(Ie,b,F)}},ce=new ue({target:p._target,life:J,loop:p._loop,delay:p._delay,onframe:ge,ondestroy:w});return S&&S!=="spline"&&(ce.easing=S),ce}var h=function(p,S,w,B){this._tracks={},this._target=p,this._loop=S||!1,this._getter=w||_,this._setter=B||C,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(p,S){var w=this._tracks;for(var B in S){if(!S.hasOwnProperty(B))continue;if(!w[B]){w[B]=[];var b=this._getter(this._target,B);if(b==null)continue;p!==0&&w[B].push({time:0,value:o(b)})}w[B].push({time:p,value:S[B]})}return this},during:function(p){return this._onframeList.push(p),this},pause:function(){for(var p=0;p1&&r&&r.length>1){var e=P(r)/P(n);!isFinite(e)&&(e=1),m.pinchScale=e;var s=y(r);return m.pinchX=s[0],m.pinchY=s[1],{type:"pinch",target:C[0].target,event:m}}}},_=Y;Ze.exports=_},CnIC:function(Ze,we){Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAWCAYAAADTlvzyAAAAAXNSR0IArs4c6QAAA+JJREFUSA2dVltslEUUPmf+f7cXt+oKRKzVtCoICbARtVEJIA+mQiMaI00UXuCBRCT2AZPGaCJvWjUmQowPSBpN+kK8RKVNCIZLorIEVEqFmABVgxsuspi2wHZ3Z+f4za7/9r9sSe0k7Zz55pzzzZzL7M80zdHaJ7fnx+g9EeokptkklGGm/geX0PZDq1hP0w1MpzHm7pA5LLQfZKka6t/MaqZ1p7q4UGMvArkRBMC+IWnTpvC4EMeEzI+bD9NWoZpk1nzt1Yu0cXB44js27qMlY+pE0fAzqfjPtXxHCPcOFZdr0tuIlWOvfyXnnBWmTQjh1MNQtynSBVaynhFnROOFgZP6y84lbl/YSPmBPackAeBVOHc8vP8MuVgnvHWtGQdacO66ygT2jDw/eKLwUADDIkDYmNePIU/1fqWR626V3I8HZMT+eBYHCw3AHSEoSEjKzA0rzLuNcmGs1np+MnY5jDNJcxgL3NBRztWwwsuLdAy1PBbGQ+uRpclCJOwiEvEXINTaBPMAr66hFSieSPL9hErRVyLc7sfKsnL+CmMBwtzZ2K9EcsmvBLL2jpZiP4rvhh+vyrj9ylbqU8RPVzFPKBX3e6I3Bwi7uriE8O3yNu2MbuCuB/hZiBuwV/Lv4RATsxto/YZ79eZwsQnJt51LG/7061s5QGiBzlT8qGL+3MresC/MruV6HP2108PsjHZ4+532UhzifX4cUTl9PBX7xI95coTQbhjhBk/Bzqi20fGSm4UwJ4ALzUPLHqVQcaBY6lb+QfYgkYHDTI69JwsPs+GXgMyvoHLpWsF8/dqxullaUw9uumBSuyIhrMcScerdsayUE0OrEcrW/2z/IaW+uJw9v2/jqrYJz65MODh0o0UoZl+YhXYDoctlS/xpzw/OQuSwG0QtnsFUM4h/g7N3P1qhf4+zbIKXZFlXZIwV716Tih2wax4YlkeopF+HXAmByLm3foqlM9fofZDdXTb6H/9AfLolSVu2L9YdSMFizxSHObQ65X7AAycKH4O3fAPE/sK2tDo8mnc+g2LN/HoObjbb6r2jXq/pbZcX8Zjf5emyMT3WaeXqEFjR7rG88wbEGZNZ57ZFsjn3TXbUgF1XB6ukwo/JLziRwUlyrxyI5RHGch6rSjMXnjyYkcn3FalicjOVoknLrbq+cM+W7+MJVGN65hw+S/RSoo4WfbiMGuONdOap+3nU7pYJfWrUvFOeM4a2olKfwG0D/ejXm0qGQ/upkcaj0HuxmwfDehFCT2HdHnGO/E1tukhJx6Em9FgTctOEz4cmtM8t+BOkwn485TCPk6Er+Nk+n7yTRm72ffMvtr1U/uTpxS8AAAAASUVORK5CYII="},DBLp:function(Ze,we){function M(){}M.prototype={diff:function(E,_,C){C||(C=function(h,g){return h===g}),this.equals=C;var m=this;E=E.slice(),_=_.slice();var c=_.length,r=E.length,n=1,e=c+r,s=[{newPos:-1,components:[]}],u=this.extractCommon(s[0],_,E,0);if(s[0].newPos+1>=c&&u+1>=r){for(var o=[],f=0;f<_.length;f++)o.push(f);return[{indices:o,count:_.length}]}function d(){for(var h=-1*n;h<=n;h+=2){var g,p=s[h-1],S=s[h+1],w=(S?S.newPos:0)-h;p&&(s[h-1]=void 0);var B=p&&p.newPos+1=c&&w+1>=r)return ue(m,g.components,_,E);s[h]=g}n++}for(;n<=e;){var a=d();if(a)return a}},pushComponent:function(E,_,C){var m=E[E.length-1];m&&m.added===_&&m.removed===C?E[E.length-1]={count:m.count+1,added:_,removed:C}:E.push({count:1,added:_,removed:C})},extractCommon:function(E,_,C,m){for(var c=_.length,r=C.length,n=E.newPos,e=n-m,s=0;n+1y||e<-y}var _=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},C=_.prototype;C.transform=null,C.needLocalTransform=function(){return E(this.rotation)||E(this.position[0])||E(this.position[1])||E(this.scale[0]-1)||E(this.scale[1]-1)};var m=[];C.updateTransform=function(){var e=this.parent,s=e&&e.transform,u=this.needLocalTransform(),o=this.transform;if(!(u||s)){o&&P(o);return}o=o||ue.create(),u?this.getLocalTransform(o):P(o),s&&(u?ue.mul(o,e.transform,o):ue.copy(o,e.transform)),this.transform=o;var f=this.globalScaleRatio;if(f!=null&&f!==1){this.getGlobalScale(m);var d=m[0]<0?-1:1,a=m[1]<0?-1:1,h=((m[0]-d)*f+d)/m[0]||0,g=((m[1]-a)*f+a)/m[1]||0;o[0]*=h,o[1]*=h,o[2]*=g,o[3]*=g}this.invTransform=this.invTransform||ue.create(),ue.invert(this.invTransform,o)},C.getLocalTransform=function(e){return _.getLocalTransform(this,e)},C.setTransform=function(e){var s=this.transform,u=e.dpr||1;s?e.setTransform(u*s[0],u*s[1],u*s[2],u*s[3],u*s[4],u*s[5]):e.setTransform(u,0,0,u,0,0)},C.restoreTransform=function(e){var s=e.dpr||1;e.setTransform(s,0,0,s,0,0)};var c=[],r=ue.create();C.setLocalTransform=function(e){if(!e)return;var s=e[0]*e[0]+e[1]*e[1],u=e[2]*e[2]+e[3]*e[3],o=this.position,f=this.scale;E(s-1)&&(s=Math.sqrt(s)),E(u-1)&&(u=Math.sqrt(u)),e[0]<0&&(s=-s),e[3]<0&&(u=-u),o[0]=e[4],o[1]=e[5],f[0]=s,f[1]=u,this.rotation=Math.atan2(-e[1]/u,e[0]/s)},C.decomposeTransform=function(){if(!this.transform)return;var e=this.parent,s=this.transform;e&&e.transform&&(ue.mul(c,e.invTransform,s),s=c);var u=this.origin;u&&(u[0]||u[1])&&(r[4]=u[0],r[5]=u[1],ue.mul(c,s,r),c[4]-=u[0],c[5]-=u[1],s=c),this.setLocalTransform(s)},C.getGlobalScale=function(e){var s=this.transform;return e=e||[],s?(e[0]=Math.sqrt(s[0]*s[0]+s[1]*s[1]),e[1]=Math.sqrt(s[2]*s[2]+s[3]*s[3]),s[0]<0&&(e[0]=-e[0]),s[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},C.transformCoordToLocal=function(e,s){var u=[e,s],o=this.invTransform;return o&&Y.applyTransform(u,u,o),u},C.transformCoordToGlobal=function(e,s){var u=[e,s],o=this.transform;return o&&Y.applyTransform(u,u,o),u},_.getLocalTransform=function(e,s){s=s||[],P(s);var u=e.origin,o=e.scale||[1,1],f=e.rotation||0,d=e.position||[0,0];return u&&(s[4]-=u[0],s[5]-=u[1]),ue.scale(s,s,o),f&&ue.rotate(s,s,f),u&&(s[4]+=u[0],s[5]+=u[1]),s[4]+=d[0],s[5]+=d[1],s};var n=_;Ze.exports=n},Dagg:function(Ze,we,M){var ue=M("Gev7"),Y=M("mFDi"),P=M("bYtY"),y=M("Xnb7");function E(C){ue.call(this,C)}E.prototype={constructor:E,type:"image",brush:function(C,m){var c=this.style,r=c.image;c.bind(C,this,m);var n=this._image=y.createOrUpdateImage(r,this._image,this,this.onload);if(!n||!y.isImageReady(n))return;var e=c.x||0,s=c.y||0,u=c.width,o=c.height,f=n.width/n.height;if(u==null&&o!=null?u=o*f:o==null&&u!=null?o=u/f:u==null&&o==null&&(u=n.width,o=n.height),this.setTransform(C),c.sWidth&&c.sHeight){var d=c.sx||0,a=c.sy||0;C.drawImage(n,d,a,c.sWidth,c.sHeight,e,s,u,o)}else if(c.sx&&c.sy){var d=c.sx,a=c.sy,h=u-d,g=o-a;C.drawImage(n,d,a,h,g,e,s,u,o)}else C.drawImage(n,e,s,u,o);c.text!=null&&(this.restoreTransform(C),this.drawRectText(C,this.getBoundingRect()))},getBoundingRect:function(){var C=this.style;return this._rect||(this._rect=new Y(C.x||0,C.y||0,C.width||0,C.height||0)),this._rect}},P.inherits(E,ue);var _=E;Ze.exports=_},DlQD:function(Ze,we,M){(function(ue,Y){Ze.exports=Y()})(this,function(){"use strict";function ue(rt,qe){for(var $e=0;$ert.length)&&(qe=rt.length);for(var $e=0,Pe=new Array(qe);$e=rt.length?{done:!0}:{done:!1,value:rt[Pe++]}}}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 $e=rt[Symbol.iterator](),$e.next.bind($e)}function _(rt,qe){return qe={exports:{}},rt(qe,qe.exports),qe.exports}var C=_(function(rt){function qe(){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 $e(Pe){rt.exports.defaults=Pe}rt.exports={defaults:qe(),getDefaults:qe,changeDefaults:$e}}),m=C.defaults,c=C.getDefaults,r=C.changeDefaults,n=/[&<>"']/,e=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(qe){return o[qe]};function d(rt,qe){if(qe){if(n.test(rt))return rt.replace(e,f)}else if(s.test(rt))return rt.replace(u,f);return rt}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(rt){return rt.replace(a,function(qe,$e){return $e=$e.toLowerCase(),$e==="colon"?":":$e.charAt(0)==="#"?$e.charAt(1)==="x"?String.fromCharCode(parseInt($e.substring(2),16)):String.fromCharCode(+$e.substring(1)):""})}var g=/(^|[^\[])\^/g;function p(rt,qe){rt=rt.source||rt,qe=qe||"";var $e={replace:function(je,Ne){return Ne=Ne.source||Ne,Ne=Ne.replace(g,"$1"),rt=rt.replace(je,Ne),$e},getRegex:function(){return new RegExp(rt,qe)}};return $e}var S=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function B(rt,qe,$e){if(rt){var Pe;try{Pe=decodeURIComponent(h($e)).replace(S,"").toLowerCase()}catch(je){return null}if(Pe.indexOf("javascript:")===0||Pe.indexOf("vbscript:")===0||Pe.indexOf("data:")===0)return null}qe&&!w.test($e)&&($e=x(qe,$e));try{$e=encodeURI($e).replace(/%25/g,"%")}catch(je){return null}return $e}var b={},A=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(rt,qe){b[" "+rt]||(A.test(rt)?b[" "+rt]=rt+"/":b[" "+rt]=R(rt,"/",!0)),rt=b[" "+rt];var $e=rt.indexOf(":")===-1;return qe.substring(0,2)==="//"?$e?qe:rt.replace(l,"$1")+qe:qe.charAt(0)==="/"?$e?qe:rt.replace(i,"$1")+qe:rt+qe}var O={exec:function(){}};function T(rt){for(var qe=1,$e,Pe;qe=0&&mt[Ut]==="\\";)At=!At;return At?"|":" |"}),Pe=$e.split(/ \|/),je=0;if(Pe.length>qe)Pe.splice(qe);else for(;Pe.length=Pe.length?je.slice(Pe.length):je}).join(` `)}var oe=function(){function rt($e){this.options=$e||U}var qe=rt.prototype;return qe.space=function(Pe){var je=this.rules.block.newline.exec(Pe);if(je)return je[0].length>1?{type:"space",raw:je[0]}:{raw:` `}},qe.code=function(Pe,je){var Ne=this.rules.block.code.exec(Pe);if(Ne){var et=je[je.length-1];if(et&&et.type==="paragraph")return{raw:Ne[0],text:Ne[0].trimRight()};var mt=Ne[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ne[0],codeBlockStyle:"indented",text:this.options.pedantic?mt:K(mt,` `)}}},qe.fences=function(Pe){var je=this.rules.block.fences.exec(Pe);if(je){var Ne=je[0],et=te(Ne,je[3]||"");return{type:"code",raw:Ne,lang:je[2]?je[2].trim():je[2],text:et}}},qe.heading=function(Pe){var je=this.rules.block.heading.exec(Pe);if(je)return{type:"heading",raw:je[0],depth:je[1].length,text:je[2]}},qe.nptable=function(Pe){var je=this.rules.block.nptable.exec(Pe);if(je){var Ne={type:"table",header:G(je[1].replace(/^ *| *\| *$/g,"")),align:je[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:je[3]?je[3].replace(/\n$/,"").split(` `):[],raw:je[0]};if(Ne.header.length===Ne.align.length){var et=Ne.align.length,mt;for(mt=0;mt ?/gm,"");return{type:"blockquote",raw:je[0],text:Ne}}},qe.list=function(Pe){var je=this.rules.block.list.exec(Pe);if(je){for(var Ne=je[0],et=je[2],mt=et.length>1,At=et[et.length-1]===")",Ut={type:"list",raw:Ne,ordered:mt,start:mt?+et.slice(0,-1):"",loose:!1,items:[]},Xt=je[0].match(this.rules.block.item),un=!1,jt,Zt,Mt,Tt,Ct,Re,We,St=Xt.length,ft=0;ft1||this.options.smartLists&&Mt!==et)&&(Tt=Xt.slice(ft+1).join(` `),Ut.raw=Ut.raw.substring(0,Ut.raw.length-Tt.length),ft=St-1)),Ct=un||/\n\n(?!\s*$)/.test(jt),ft!==St-1&&(un=jt.charAt(jt.length-1)===` `,Ct||(Ct=un)),Ct&&(Ut.loose=!0),Re=/^\[[ xX]\] /.test(jt),We=void 0,Re&&(We=jt[1]!==" ",jt=jt.replace(/^\[[ xX]\] +/,"")),Ut.items.push({type:"list_item",raw:Ne,task:Re,checked:We,loose:Ct,text:jt});return Ut}},qe.html=function(Pe){var je=this.rules.block.html.exec(Pe);if(je)return{type:this.options.sanitize?"paragraph":"html",raw:je[0],pre:!this.options.sanitizer&&(je[1]==="pre"||je[1]==="script"||je[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(je[0]):N(je[0]):je[0]}},qe.def=function(Pe){var je=this.rules.block.def.exec(Pe);if(je){je[3]&&(je[3]=je[3].substring(1,je[3].length-1));var Ne=je[1].toLowerCase().replace(/\s+/g," ");return{tag:Ne,raw:je[0],href:je[2],title:je[3]}}},qe.table=function(Pe){var je=this.rules.block.table.exec(Pe);if(je){var Ne={type:"table",header:G(je[1].replace(/^ *| *\| *$/g,"")),align:je[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:je[3]?je[3].replace(/\n$/,"").split(` `):[]};if(Ne.header.length===Ne.align.length){Ne.raw=je[0];var et=Ne.align.length,mt;for(mt=0;mt/i.test(et[0])&&(je=!1),!Ne&&/^<(pre|code|kbd|script)(\s|>)/i.test(et[0])?Ne=!0:Ne&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(et[0])&&(Ne=!1),{type:this.options.sanitize?"text":"html",raw:et[0],inLink:je,inRawBlock:Ne,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(et[0]):N(et[0]):et[0]}},qe.link=function(Pe){var je=this.rules.inline.link.exec(Pe);if(je){var Ne=Q(je[2],"()");if(Ne>-1){var et=je[0].indexOf("!")===0?5:4,mt=et+je[1].length+Ne;je[2]=je[2].substring(0,Ne),je[0]=je[0].substring(0,mt).trim(),je[3]=""}var At=je[2],Ut="";if(this.options.pedantic){var Xt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(At);Xt?(At=Xt[1],Ut=Xt[3]):Ut=""}else Ut=je[3]?je[3].slice(1,-1):"";At=At.trim().replace(/^<([\s\S]*)>$/,"$1");var un=X(je,{href:At&&At.replace(this.rules.inline._escapes,"$1"),title:Ut&&Ut.replace(this.rules.inline._escapes,"$1")},je[0]);return un}},qe.reflink=function(Pe,je){var Ne;if((Ne=this.rules.inline.reflink.exec(Pe))||(Ne=this.rules.inline.nolink.exec(Pe))){var et=(Ne[2]||Ne[1]).replace(/\s+/g," ");if(et=je[et.toLowerCase()],!et||!et.href){var mt=Ne[0].charAt(0);return{type:"text",raw:mt,text:mt}}var At=X(Ne,et,Ne[0]);return At}},qe.strong=function(Pe,je,Ne){Ne===void 0&&(Ne="");var et=this.rules.inline.strong.start.exec(Pe);if(et&&(!et[1]||et[1]&&(Ne===""||this.rules.inline.punctuation.exec(Ne)))){je=je.slice(-1*Pe.length);var mt=et[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;mt.lastIndex=0;for(var At;(et=mt.exec(je))!=null;)if(At=this.rules.inline.strong.middle.exec(je.slice(0,et.index+3)),At)return{type:"strong",raw:Pe.slice(0,At[0].length),text:Pe.slice(2,At[0].length-2)}}},qe.em=function(Pe,je,Ne){Ne===void 0&&(Ne="");var et=this.rules.inline.em.start.exec(Pe);if(et&&(!et[1]||et[1]&&(Ne===""||this.rules.inline.punctuation.exec(Ne)))){je=je.slice(-1*Pe.length);var mt=et[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;mt.lastIndex=0;for(var At;(et=mt.exec(je))!=null;)if(At=this.rules.inline.em.middle.exec(je.slice(0,et.index+2)),At)return{type:"em",raw:Pe.slice(0,At[0].length),text:Pe.slice(1,At[0].length-1)}}},qe.codespan=function(Pe){var je=this.rules.inline.code.exec(Pe);if(je){var Ne=je[2].replace(/\n/g," "),et=/[^ ]/.test(Ne),mt=Ne.startsWith(" ")&&Ne.endsWith(" ");return et&&mt&&(Ne=Ne.substring(1,Ne.length-1)),Ne=N(Ne,!0),{type:"codespan",raw:je[0],text:Ne}}},qe.br=function(Pe){var je=this.rules.inline.br.exec(Pe);if(je)return{type:"br",raw:je[0]}},qe.del=function(Pe){var je=this.rules.inline.del.exec(Pe);if(je)return{type:"del",raw:je[0],text:je[1]}},qe.autolink=function(Pe,je){var Ne=this.rules.inline.autolink.exec(Pe);if(Ne){var et,mt;return Ne[2]==="@"?(et=N(this.options.mangle?je(Ne[1]):Ne[1]),mt="mailto:"+et):(et=N(Ne[1]),mt=et),{type:"link",raw:Ne[0],text:et,href:mt,tokens:[{type:"text",raw:et,text:et}]}}},qe.url=function(Pe,je){var Ne;if(Ne=this.rules.inline.url.exec(Pe)){var et,mt;if(Ne[2]==="@")et=N(this.options.mangle?je(Ne[0]):Ne[0]),mt="mailto:"+et;else{var At;do At=Ne[0],Ne[0]=this.rules.inline._backpedal.exec(Ne[0])[0];while(At!==Ne[0]);et=N(Ne[0]),Ne[1]==="www."?mt="http://"+et:mt=et}return{type:"link",raw:Ne[0],text:et,href:mt,tokens:[{type:"text",raw:et,text:et}]}}},qe.inlineText=function(Pe,je,Ne){var et=this.rules.inline.text.exec(Pe);if(et){var mt;return je?mt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(et[0]):N(et[0]):et[0]:mt=N(this.options.smartypants?Ne(et[0]):et[0]),{type:"text",raw:et[0],text:mt}}},rt}(),me=J.noopTest,se=J.edit,_e=J.merge,Ae={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:me,table:me,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ae._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ae._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ae.def=se(Ae.def).replace("label",Ae._label).replace("title",Ae._title).getRegex(),Ae.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ae.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ae.item=se(Ae.item,"gm").replace(/bull/g,Ae.bullet).getRegex(),Ae.list=se(Ae.list).replace(/bull/g,Ae.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ae.def.source+")").getRegex(),Ae._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",Ae._comment=//,Ae.html=se(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae.paragraph=se(Ae._paragraph).replace("hr",Ae.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",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.blockquote=se(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex(),Ae.normal=_e({},Ae),Ae.gfm=_e({},Ae.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*|$)"}),Ae.gfm.nptable=se(Ae.gfm.nptable).replace("hr",Ae.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",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.gfm.table=se(Ae.gfm.table).replace("hr",Ae.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",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.pedantic=_e({},Ae.normal,{html:se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ae._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:me,paragraph:se(Ae.normal._paragraph).replace("hr",Ae.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",Ae.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ee={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:me,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:me,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Ee.punctuation=se(Ee.punctuation).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Ee._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Ee.em.start=se(Ee.em.start).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.em.middle=se(Ee.em.middle).replace(/punctuation/g,Ee._punctuation).replace(/overlapSkip/g,Ee._overlapSkip).getRegex(),Ee.em.endAst=se(Ee.em.endAst,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.em.endUnd=se(Ee.em.endUnd,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.start=se(Ee.strong.start).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.middle=se(Ee.strong.middle).replace(/punctuation/g,Ee._punctuation).replace(/blockSkip/g,Ee._blockSkip).getRegex(),Ee.strong.endAst=se(Ee.strong.endAst,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.endUnd=se(Ee.strong.endUnd,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.blockSkip=se(Ee._blockSkip,"g").getRegex(),Ee.overlapSkip=se(Ee._overlapSkip,"g").getRegex(),Ee._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ee._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ee._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])?)+(?![-_])/,Ee.autolink=se(Ee.autolink).replace("scheme",Ee._scheme).replace("email",Ee._email).getRegex(),Ee._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ee.tag=se(Ee.tag).replace("comment",Ae._comment).replace("attribute",Ee._attribute).getRegex(),Ee._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ee._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Ee._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ee.link=se(Ee.link).replace("label",Ee._label).replace("href",Ee._href).replace("title",Ee._title).getRegex(),Ee.reflink=se(Ee.reflink).replace("label",Ee._label).getRegex(),Ee.reflinkSearch=se(Ee.reflinkSearch,"g").replace("reflink",Ee.reflink).replace("nolink",Ee.nolink).getRegex(),Ee.normal=_e({},Ee),Ee.pedantic=_e({},Ee.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:se(/^!?\[(label)\]\((.*?)\)/).replace("label",Ee._label).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ee._label).getRegex()}),Ee.gfm=_e({},Ee.normal,{escape:se(Ee.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]*?(?:(?=[\\.5&&(Pe="x"+Pe.toString(16)),qe+="&#"+Pe+";";return qe}var Ie=function(){function rt($e){this.tokens=[],this.tokens.links=Object.create(null),this.options=$e||he,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Pe={block:ie.normal,inline:fe.normal};this.options.pedantic?(Pe.block=ie.pedantic,Pe.inline=fe.pedantic):this.options.gfm&&(Pe.block=ie.gfm,this.options.breaks?Pe.inline=fe.breaks:Pe.inline=fe.gfm),this.tokenizer.rules=Pe}rt.lex=function(Pe,je){var Ne=new rt(je);return Ne.lex(Pe)};var qe=rt.prototype;return qe.lex=function(Pe){return Pe=Pe.replace(/\r\n|\r/g,` `).replace(/\t/g," "),this.blockTokens(Pe,this.tokens,!0),this.inline(this.tokens),this.tokens},qe.blockTokens=function(Pe,je,Ne){je===void 0&&(je=[]),Ne===void 0&&(Ne=!0),Pe=Pe.replace(/^ +$/gm,"");for(var et,mt,At,Ut;Pe;){if(et=this.tokenizer.space(Pe)){Pe=Pe.substring(et.raw.length),et.type&&je.push(et);continue}if(et=this.tokenizer.code(Pe,je)){Pe=Pe.substring(et.raw.length),et.type?je.push(et):(Ut=je[je.length-1],Ut.raw+=` `+et.raw,Ut.text+=` `+et.text);continue}if(et=this.tokenizer.fences(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.heading(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.nptable(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.hr(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.blockquote(Pe)){Pe=Pe.substring(et.raw.length),et.tokens=this.blockTokens(et.text,[],Ne),je.push(et);continue}if(et=this.tokenizer.list(Pe)){for(Pe=Pe.substring(et.raw.length),At=et.items.length,mt=0;mt0)for(;(Xt=this.tokenizer.rules.inline.reflinkSearch.exec(Ut))!=null;)un.includes(Xt[0].slice(Xt[0].lastIndexOf("[")+1,-1))&&(Ut=Ut.slice(0,Xt.index)+"["+"a".repeat(Xt[0].length-2)+"]"+Ut.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Xt=this.tokenizer.rules.inline.blockSkip.exec(Ut))!=null;)Ut=Ut.slice(0,Xt.index)+"["+"a".repeat(Xt[0].length-2)+"]"+Ut.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Pe;){if(At=this.tokenizer.escape(Pe)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.tag(Pe,Ne,et)){Pe=Pe.substring(At.raw.length),Ne=At.inLink,et=At.inRawBlock,je.push(At);continue}if(At=this.tokenizer.link(Pe)){Pe=Pe.substring(At.raw.length),At.type==="link"&&(At.tokens=this.inlineTokens(At.text,[],!0,et)),je.push(At);continue}if(At=this.tokenizer.reflink(Pe,this.tokens.links)){Pe=Pe.substring(At.raw.length),At.type==="link"&&(At.tokens=this.inlineTokens(At.text,[],!0,et)),je.push(At);continue}if(At=this.tokenizer.strong(Pe,Ut,mt)){Pe=Pe.substring(At.raw.length),At.tokens=this.inlineTokens(At.text,[],Ne,et),je.push(At);continue}if(At=this.tokenizer.em(Pe,Ut,mt)){Pe=Pe.substring(At.raw.length),At.tokens=this.inlineTokens(At.text,[],Ne,et),je.push(At);continue}if(At=this.tokenizer.codespan(Pe)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.br(Pe)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.del(Pe)){Pe=Pe.substring(At.raw.length),At.tokens=this.inlineTokens(At.text,[],Ne,et),je.push(At);continue}if(At=this.tokenizer.autolink(Pe,ce)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(!Ne&&(At=this.tokenizer.url(Pe,ce))){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.inlineText(Pe,et,ge)){Pe=Pe.substring(At.raw.length),mt=At.raw.slice(-1),je.push(At);continue}if(Pe){var jt="Infinite loop on byte: "+Pe.charCodeAt(0);if(this.options.silent){console.error(jt);break}else throw new Error(jt)}}return je},Y(rt,null,[{key:"rules",get:function(){return{block:ie,inline:fe}}}]),rt}(),Fe=C.defaults,ke=J.cleanUrl,re=J.escape,F=function(){function rt($e){this.options=$e||Fe}var qe=rt.prototype;return qe.code=function(Pe,je,Ne){var et=(je||"").match(/\S*/)[0];if(this.options.highlight){var mt=this.options.highlight(Pe,et);mt!=null&&mt!==Pe&&(Ne=!0,Pe=mt)}return et?'
    '+(Ne?Pe:re(Pe,!0))+`
    `:"
    "+(Ne?Pe:re(Pe,!0))+`
    `},qe.blockquote=function(Pe){return`
    `+Pe+`
    `},qe.html=function(Pe){return Pe},qe.heading=function(Pe,je,Ne,et){return this.options.headerIds?"'+Pe+" `:""+Pe+" `},qe.hr=function(){return this.options.xhtml?`
    `:`
    `},qe.list=function(Pe,je,Ne){var et=je?"ol":"ul",mt=je&&Ne!==1?' start="'+Ne+'"':"";return"<"+et+mt+`> `+Pe+" `},qe.listitem=function(Pe){return"
  • "+Pe+`
  • `},qe.checkbox=function(Pe){return" "},qe.paragraph=function(Pe){return"

    "+Pe+`

    `},qe.table=function(Pe,je){return je&&(je=""+je+""),` `+Pe+` `+je+`
    `},qe.tablerow=function(Pe){return` `+Pe+` `},qe.tablecell=function(Pe,je){var Ne=je.header?"th":"td",et=je.align?"<"+Ne+' align="'+je.align+'">':"<"+Ne+">";return et+Pe+" `},qe.strong=function(Pe){return""+Pe+""},qe.em=function(Pe){return""+Pe+""},qe.codespan=function(Pe){return""+Pe+""},qe.br=function(){return this.options.xhtml?"
    ":"
    "},qe.del=function(Pe){return""+Pe+""},qe.link=function(Pe,je,Ne){if(Pe=ke(this.options.sanitize,this.options.baseUrl,Pe),Pe===null)return Ne;var et='",et},qe.image=function(Pe,je,Ne){if(Pe=ke(this.options.sanitize,this.options.baseUrl,Pe),Pe===null)return Ne;var et=''+Ne+'":">",et},qe.text=function(Pe){return Pe},rt}(),W=function(){function rt(){}var qe=rt.prototype;return qe.strong=function(Pe){return Pe},qe.em=function(Pe){return Pe},qe.codespan=function(Pe){return Pe},qe.del=function(Pe){return Pe},qe.html=function(Pe){return Pe},qe.text=function(Pe){return Pe},qe.link=function(Pe,je,Ne){return""+Ne},qe.image=function(Pe,je,Ne){return""+Ne},qe.br=function(){return""},rt}(),de=function(){function rt(){this.seen={}}var qe=rt.prototype;return qe.slug=function(Pe){var je=Pe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(je)){var Ne=je;do this.seen[Ne]++,je=Ne+"-"+this.seen[Ne];while(this.seen.hasOwnProperty(je))}return this.seen[je]=0,je},rt}(),ne=C.defaults,le=J.unescape,De=function(){function rt($e){this.options=$e||ne,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new de}rt.parse=function(Pe,je){var Ne=new rt(je);return Ne.parse(Pe)};var qe=rt.prototype;return qe.parse=function(Pe,je){je===void 0&&(je=!0);var Ne="",et,mt,At,Ut,Xt,un,jt,Zt,Mt,Tt,Ct,Re,We,St,ft,It,Ot,bt,Ht=Pe.length;for(et=0;et0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=bt+" "+ft.tokens[0].text,ft.tokens[0].tokens&&ft.tokens[0].tokens.length>0&&ft.tokens[0].tokens[0].type==="text"&&(ft.tokens[0].tokens[0].text=bt+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:bt}):St+=bt),St+=this.parse(ft.tokens,We),Mt+=this.renderer.listitem(St,Ot,It);Ne+=this.renderer.list(Mt,Ct,Re);continue}case"html":{Ne+=this.renderer.html(Tt.text);continue}case"paragraph":{Ne+=this.renderer.paragraph(this.parseInline(Tt.tokens));continue}case"text":{for(Mt=Tt.tokens?this.parseInline(Tt.tokens):Tt.text;et+1An error occurred:

    "+Ke(At.message+"",!0)+"
    ";throw At}}ct.options=ct.setOptions=function(rt){return Xe(ct.defaults,rt),yt(ct.defaults),ct},ct.getDefaults=ze,ct.defaults=Et,ct.use=function(rt){var qe=Xe({},rt);if(rt.renderer&&function(){var Pe=ct.defaults.renderer||new F,je=function(mt){var At=Pe[mt];Pe[mt]=function(){for(var Ut=arguments.length,Xt=new Array(Ut),un=0;un`,triples:"",explode:"[]{}"},P=ue.Pos;ue.defineOption("autoCloseBrackets",!1,function(o,f,d){d&&d!=ue.Init&&(o.removeKeyMap(E),o.state.closeBrackets=null),f&&(_(y(f,"pairs")),o.state.closeBrackets=f,o.addKeyMap(E))});function y(o,f){return f=="pairs"&&typeof o=="string"?o:typeof o=="object"&&o[f]!=null?o[f]:Y[f]}var E={Backspace:c,Enter:r};function _(o){for(var f=0;f=0;h--){var p=a[h].head;o.replaceRange("",P(p.line,p.ch-1),P(p.line,p.ch+1),"+delete")}}function r(o){var f=m(o),d=f&&y(f,"explode");if(!d||o.getOption("disableInput"))return ue.Pass;for(var a=o.listSelections(),h=0;h0;return{anchor:new P(o.anchor.line,o.anchor.ch+(f?-1:1)),head:new P(o.head.line,o.head.ch+(f?1:-1))}}function e(o,f){var d=m(o);if(!d||o.getOption("disableInput"))return ue.Pass;var a=y(d,"pairs"),h=a.indexOf(f);if(h==-1)return ue.Pass;for(var g=y(d,"closeBefore"),p=y(d,"triples"),S=a.charAt(h+1)==f,w=o.listSelections(),B=h%2==0,b,A=0;A=0&&o.getRange(i,P(i.line,i.ch+3))==f+f+f?x="skipThree":x="skip";else if(S&&i.ch>1&&p.indexOf(f)>=0&&o.getRange(P(i.line,i.ch-2),i)==f+f){if(i.ch>2&&/\bstring/.test(o.getTokenTypeAt(P(i.line,i.ch-2))))return ue.Pass;x="addFour"}else if(S){var T=i.ch==0?" ":o.getRange(P(i.line,i.ch-1),i);if(!ue.isWordChar(O)&&T!=f&&!ue.isWordChar(T))x="both";else return ue.Pass}else if(B&&(O.length===0||/\s/.test(O)||g.indexOf(O)>-1))x="both";else return ue.Pass;if(!b)b=x;else if(b!=x)return ue.Pass}var D=h%2?a.charAt(h-1):f,R=h%2?f:a.charAt(h+1);o.operation(function(){if(b=="skip")o.execCommand("goCharRight");else if(b=="skipThree")for(var k=0;k<3;k++)o.execCommand("goCharRight");else if(b=="surround"){for(var H=o.getSelections(),k=0;k0&&(Q.percent=Q.loaded/Q.total*100),J.onProgress(Q)});var K=new FormData;J.data&&Object.keys(J.data).forEach(function(N){var Q=J.data[N];if(Array.isArray(Q)){Q.forEach(function(X){K.append(N+"[]",X)});return}K.append(N,J.data[N])}),J.file instanceof Blob?K.append(J.filename,J.file,J.file.name):K.append(J.filename,J.file),U.onerror=function(Q){J.onError(Q)},U.onload=function(){return U.status<200||U.status>=300?J.onError(E(J,U),_(U)):J.onSuccess(_(U),U)},U.open(J.method,J.action,!0),J.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var G=J.headers||{};return G["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(G).forEach(function(N){G[N]!==null&&U.setRequestHeader(N,G[N])}),U.send(K),{abort:function(){U.abort()}}}var m=+new Date,c=0;function r(){return"rc-upload-"+m+"-"+ ++c}function n(J,U){return J.indexOf(U,J.length-U.length)!==-1}var e=function(J,U){if(J&&U){var K=Array.isArray(U)?U:U.split(","),G=J.name||"",N=J.type||"",Q=N.replace(/\/.*$/,"");return K.some(function(X){var te=X.trim();return te.charAt(0)==="."?n(G.toLowerCase(),te.toLowerCase()):/\/\*$/.test(te)?Q===te.replace(/\/.*$/,""):N===te})}return!0};function s(J,U){var K=J.createReader(),G=[];function N(){K.readEntries(function(Q){var X=Array.prototype.slice.apply(Q);G=G.concat(X);var te=!X.length;te?U(G):N()})}N()}var u=function(U,K,G){var N=function Q(X,te){te=te||"",X.isFile?X.file(function(oe){G(oe)&&(X.fullPath&&!oe.webkitRelativePath&&(Object.defineProperties(oe,{webkitRelativePath:{writable:!0}}),oe.webkitRelativePath=X.fullPath.replace(/^\//,""),Object.defineProperties(oe,{webkitRelativePath:{writable:!1}})),K([oe]))}):X.isDirectory&&s(X,function(oe){oe.forEach(function(me){Q(me,""+te+X.name+"/")})})};U.forEach(function(Q){N(Q.webkitGetAsEntry())})},o=u,f=Object.assign||function(J){for(var U=1;U=0)continue;if(!Object.prototype.hasOwnProperty.call(J,G))continue;K[G]=J[G]}return K}function p(J,U){if(!(J instanceof U))throw new TypeError("Cannot call a class as a function")}function S(J,U){if(!J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:J}function w(J,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);J.prototype=Object.create(U&&U.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(J,U):J.__proto__=U)}var B=function(U){return Object.keys(U).reduce(function(K,G){return(G.substr(0,5)==="data-"||G.substr(0,5)==="aria-"||G==="role")&&(K[G]=U[G]),K},{})},b=function(J){w(U,J);function U(){var K,G,N,Q;p(this,U);for(var X=arguments.length,te=Array(X),oe=0;oe3&&(m=M.call(m,1));for(var r=_.length,n=0;n4&&(m=M.call(m,1,m.length-1));for(var r=m[m.length-1],n=_.length,e=0;ethis._ux||d(S-this._yi)>this._uy||this._len<5;return this.addData(C.L,p,S),this._ctx&&w&&(this._needsDash()?this._dashedLineTo(p,S):this._ctx.lineTo(p,S)),w&&(this._xi=p,this._yi=S),this},bezierCurveTo:function(p,S,w,B,b,A){return this.addData(C.C,p,S,w,B,b,A),this._ctx&&(this._needsDash()?this._dashedBezierTo(p,S,w,B,b,A):this._ctx.bezierCurveTo(p,S,w,B,b,A)),this._xi=b,this._yi=A,this},quadraticCurveTo:function(p,S,w,B){return this.addData(C.Q,p,S,w,B),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(p,S,w,B):this._ctx.quadraticCurveTo(p,S,w,B)),this._xi=w,this._yi=B,this},arc:function(p,S,w,B,b,A){return this.addData(C.A,p,S,w,w,B,b-B,0,A?0:1),this._ctx&&this._ctx.arc(p,S,w,B,b,A),this._xi=u(b)*w+p,this._yi=o(b)*w+S,this},arcTo:function(p,S,w,B,b){return this._ctx&&this._ctx.arcTo(p,S,w,B,b),this},rect:function(p,S,w,B){return this._ctx&&this._ctx.rect(p,S,w,B),this.addData(C.R,p,S,w,B),this},closePath:function(){this.addData(C.Z);var p=this._ctx,S=this._x0,w=this._y0;return p&&(this._needsDash()&&this._dashedLineTo(S,w),p.closePath()),this._xi=S,this._yi=w,this},fill:function(p){p&&p.fill(),this.toStatic()},stroke:function(p){p&&p.stroke(),this.toStatic()},setLineDash:function(p){if(p instanceof Array){this._lineDash=p,this._dashIdx=0;for(var S=0,w=0;wS.length&&(this._expandData(),S=this.data);for(var w=0;w0&&D<=p||x<0&&D>=p||x===0&&(O>0&&R<=S||O<0&&R>=S);){if(J=this._dashIdx,k=b[J],D+=x*k,R+=O*k,this._dashIdx=(J+1)%H,x>0&&Dl||O>0&&Ri)continue;A[J%2?"moveTo":"lineTo"](x>=0?e(D,p):s(D,p),O>=0?e(R,S):s(R,S))}x=D-p,O=R-S,this._dashOffset=-f(x*x+O*O)},_dashedBezierTo:function(p,S,w,B,b,A){var l=this._dashSum,i=this._dashOffset,x=this._lineDash,O=this._ctx,T=this._xi,D=this._yi,R,k,H,J=ue.cubicAt,U=0,K=this._dashIdx,G=x.length,N,Q,X=0;for(i<0&&(i=l+i),i%=l,R=0;R<1;R+=.1)k=J(T,p,w,b,R+.1)-J(T,p,w,b,R),H=J(D,S,B,A,R+.1)-J(D,S,B,A,R),U+=f(k*k+H*H);for(;Ki);K++);for(R=(X-i)/U;R<=1;)N=J(T,p,w,b,R),Q=J(D,S,B,A,R),K%2?O.moveTo(N,Q):O.lineTo(N,Q),R+=x[K]/U,K=(K+1)%G;K%2!==0&&O.lineTo(b,A),k=b-N,H=A-Q,this._dashOffset=-f(k*k+H*H)},_dashedQuadraticTo:function(p,S,w,B){var b=w,A=B;w=(w+2*p)/3,B=(B+2*S)/3,p=(this._xi+2*p)/3,S=(this._yi+2*S)/3,this._dashedBezierTo(p,S,w,B,b,A)},toStatic:function(){var p=this.data;p instanceof Array&&(p.length=this._len,a&&(this.data=new Float32Array(p)))},getBoundingRect:function(){m[0]=m[1]=r[0]=r[1]=Number.MAX_VALUE,c[0]=c[1]=n[0]=n[1]=-Number.MAX_VALUE;for(var p=this.data,S=0,w=0,B=0,b=0,A=0;Ax||d(i-A)>O||D===T-1)&&(p.lineTo(l,i),b=l,A=i);break;case C.C:p.bezierCurveTo(S[D++],S[D++],S[D++],S[D++],S[D++],S[D++]),b=S[D-2],A=S[D-1];break;case C.Q:p.quadraticCurveTo(S[D++],S[D++],S[D++],S[D++]),b=S[D-2],A=S[D-1];break;case C.A:var k=S[D++],H=S[D++],J=S[D++],U=S[D++],K=S[D++],G=S[D++],N=S[D++],Q=S[D++],X=J>U?J:U,te=J>U?1:J/U,oe=J>U?U/J:1,me=Math.abs(J-U)>.001,se=K+G;me?(p.translate(k,H),p.rotate(N),p.scale(te,oe),p.arc(0,0,X,K,se,1-Q),p.scale(1/te,1/oe),p.rotate(-N),p.translate(-k,-H)):p.arc(k,H,X,K,se,1-Q),D===1&&(w=u(K)*J+k,B=o(K)*U+H),b=u(se)*J+k,A=o(se)*U+H;break;case C.R:w=b=S[D],B=A=S[D+1],p.rect(S[D++],S[D++],S[D++],S[D++]);break;case C.Z:p.closePath(),b=w,A=B}}}},h.CMD=C;var g=h;Ze.exports=g},ItGF:function(Ze,we){var M={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?M={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?M={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?M={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:M=Y(navigator.userAgent);var ue=M;function Y(P){var y={},E={},_=P.match(/Firefox\/([\d.]+)/),C=P.match(/MSIE\s([\d.]+)/)||P.match(/Trident\/.+?rv:(([\d.]+))/),m=P.match(/Edge\/([\d.]+)/),c=/micromessenger/i.test(P);return _&&(E.firefox=!0,E.version=_[1]),C&&(E.ie=!0,E.version=C[1]),m&&(E.edge=!0,E.version=m[1]),c&&(E.weChat=!0),{browser:E,os:y,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!E.ie&&!E.edge,pointerEventsSupported:"onpointerdown"in window&&(E.edge||E.ie&&E.version>=11),domSupported:typeof document!="undefined"}}Ze.exports=ue},IxHN:function(Ze,we,M){"use strict";var ue=M("q1tI"),Y=M.n(ue),P=M("07cG"),y=M.n(P);we.a=function(E){var _=E.message,C=E.className,m=E.children,c=E.style,r=c===void 0?{}:c;return Y.a.createElement("div",{className:"".concat(y.a.idsRingWrapper," ").concat(C)},Y.a.createElement("div",{className:y.a.ldsRing},Y.a.createElement("div",null),Y.a.createElement("div",null),Y.a.createElement("div",null),Y.a.createElement("div",null)),_?Y.a.createElement("p",{style:r},_):null,m)}},JTSX:function(Ze,we,M){Ze.exports={flex_box_center:"flex_box_center___2jvp9",flex_space_between:"flex_space_between___YQ3n3",flex_box_vertical_center:"flex_box_vertical_center___lMDl8",flex_box_center_end:"flex_box_center_end___14pJI",flex_box_column:"flex_box_column___3MPcr",banner:"banner___1CNID",wrp:"wrp___2yuj2",titleWrap:"titleWrap___3rqyq",titleFlexEnd:"titleFlexEnd___3qeo-",title:"title___1sz3A",titleIcon:"titleIcon___oKhIk",contentWrap:"contentWrap___2hSfm",verticalLine:"verticalLine___1hWY5",contentLeftWrap:"contentLeftWrap___3cPFj",openCourseTag:"openCourseTag___2nNhU",ratingWrap:"ratingWrap___QZ8mo",ratingTitle:"ratingTitle___1sMbV",rating:"rating___tJ9xt",popoverWrap:"popoverWrap___16eNE",popverLeft:"popverLeft___1EzpC",popoverRight:"popoverRight___1dYpr",popverScore:"popverScore___2QZ2F",popoverRateWrap:"popoverRateWrap___2O45Q",popoverProgress:"popoverProgress___2jOeY",button:"button___1WaHd",operationWrap:"operationWrap___3_Xdi",forkWrap:"forkWrap___36Nap",fork:"fork___1AtQN",forkNum:"forkNum___3b1MG",buttonTransparent:"buttonTransparent___INxBh",buttonLearnStatistics:"buttonLearnStatistics___350-U",publishPopverWrap:"publishPopverWrap___2uMcI",colorFF6802:"colorFF6802___W5JBU",w140:"w140___20QZ6",nav:"nav___UcDQM",navLeft:"navLeft___1IpLj",navContent:"navContent___g-IkK",flexRow:"flexRow___2Srtn",navRight:"navRight___1wX_D",navLeftIcon:"navLeftIcon___33sNL",colorOrange:"colorOrange___1lWTV",contentItem:"contentItem___3BAmt",contentItemTitle:"contentItemTitle___3X1lp",contentItemText:"contentItemText___2Px0w",classButton:"classButton___1uAy6",bg28e:"bg28e___34ke7",bgGray:"bgGray___1wX3O"}},JWDV:function(Ze,we,M){Ze.exports=M.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(Ze,we){Ze.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=="},Jq4h:function(Ze,we,M){Ze.exports=M.p+"static/qrcode.54870d9b.png"},K2GJ:function(Ze,we,M){var ue=M("fW2E"),Y=M("gut8"),P=Y.ContextCachedBy,y=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],E=function(e){this.extendFrom(e,!1)};function _(e,s,u){var o=s.x==null?0:s.x,f=s.x2==null?1:s.x2,d=s.y==null?0:s.y,a=s.y2==null?0:s.y2;s.global||(o=o*u.width+u.x,f=f*u.width+u.x,d=d*u.height+u.y,a=a*u.height+u.y),o=isNaN(o)?0:o,f=isNaN(f)?1:f,d=isNaN(d)?0:d,a=isNaN(a)?0:a;var h=e.createLinearGradient(o,d,f,a);return h}function C(e,s,u){var o=u.width,f=u.height,d=Math.min(o,f),a=s.x==null?.5:s.x,h=s.y==null?.5:s.y,g=s.r==null?.5:s.r;s.global||(a=a*o+u.x,h=h*f+u.y,g=g*d);var p=e.createRadialGradient(a,h,0,a,h,g);return p}E.prototype={constructor:E,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,s,u){var o=this,f=u&&u.style,d=!f||e.__attrCachedBy!==P.STYLE_BIND;e.__attrCachedBy=P.STYLE_BIND;for(var a=0;a0},extendFrom:function(e,s){if(e)for(var u in e)e.hasOwnProperty(u)&&(s===!0||(s===!1?!this.hasOwnProperty(u):e[u]!=null))&&(this[u]=e[u])},set:function(e,s){typeof e=="string"?this[e]=s:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,s,u){for(var o=s.type==="radial"?C:_,f=o(e,s,u),d=s.colorStops,a=0;a=0)continue;if(!Object.prototype.hasOwnProperty.call(e,o))continue;u[o]=e[o]}return u}function m(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function c(e,s){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:e}function r(e,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);e.prototype=Object.create(s&&s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(e,s):e.__proto__=s)}var n=function(e){r(s,e);function s(u){m(this,s);var o=c(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return o.scrollListener=o.scrollListener.bind(o),o.eventListenerOptions=o.eventListenerOptions.bind(o),o.mousewheelListener=o.mousewheelListener.bind(o),o}return ue(s,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var o=this.getParentElement(this.scrollComponent);o.scrollTop=o.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var o=!1,f={get passive(){o=!0}};try{document.addEventListener("test",null,f),document.removeEventListener("test",null,f)}catch(d){}return o}},{key:"eventListenerOptions",value:function(){var o=this.props.useCapture;return this.isPassiveSupported()&&(o={useCapture:this.props.useCapture,passive:!0}),o}},{key:"setDefaultLoader",value:function(o){this.defaultLoader=o}},{key:"detachMousewheelListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.scrollComponent.parentNode),o.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.getParentElement(this.scrollComponent)),o.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(o){var f=this.props.getScrollParent&&this.props.getScrollParent();return f!=null?f:o&&o.parentNode}},{key:"filterProps",value:function(o){return o}},{key:"attachScrollListener",value:function(){var o=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!o)return;var f=window;this.props.useWindow===!1&&(f=o),f.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),f.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),f.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(o){o.deltaY===1&&!this.isPassiveSupported()&&o.preventDefault()}},{key:"scrollListener",value:function(){var o=this.scrollComponent,f=window,d=this.getParentElement(o),a=void 0;if(this.props.useWindow){var h=document.documentElement||document.body.parentNode||document.body,g=f.pageYOffset!==void 0?f.pageYOffset:h.scrollTop;this.props.isReverse?a=g:a=this.calculateOffset(o,g)}else this.props.isReverse?a=d.scrollTop:a=o.scrollHeight-d.scrollTop-d.clientHeight;a1&&arguments[1]!==void 0?arguments[1]:1,$e=W.length,Pe=0;Pe<$e;Pe+=1){var je=(rt+Pe*qe+$e)%$e,Ne=W[je],et=Ne.group,mt=Ne.data;if(!et&&!mt.disabled)return je}return-1},Xe=E.useState(function(){return De(0)}),xt=Object(m.a)(Xe,2),Ke=xt[0],ze=xt[1],yt=function(rt){ze(rt);var qe=W[rt];if(!qe){Fe(null,-1);return}Fe(qe.data.value,rt)};E.useEffect(function(){yt(Ae!==!1?De(0):-1)},[W.length,se]),E.useEffect(function(){var lt=setTimeout(function(){if(!_e&&ie&&me.size===1){var rt=Array.from(me)[0],qe=W.findIndex(function($e){var Pe=$e.data;return Pe.value===rt});yt(qe),le(qe)}});return function(){return clearTimeout(lt)}},[ie]);var Et=function(rt){rt!==void 0&&ce(rt,{selected:!me.has(rt)}),_e||Ie(!1)};if(E.useImperativeHandle(N,function(){return{onKeyDown:function(rt){var qe=rt.which;switch(qe){case c.a.UP:case c.a.DOWN:{var $e=0;if(qe===c.a.UP?$e=-1:qe===c.a.DOWN&&($e=1),$e!==0){var Pe=De(Ke+$e,$e);le(Pe),yt(Pe)}break}case c.a.ENTER:{var je=W[Ke];je&&!je.data.disabled?Et(je.data.value):Et(void 0),ie&&rt.preventDefault();break}case c.a.ESC:Ie(!1)}},onKeyUp:function(){},scrollTo:function(rt){le(rt)}}}),W.length===0)return E.createElement("div",{role:"listbox",id:"".concat(X,"_list"),className:"".concat(F,"-empty"),onMouseDown:ne},he);function ct(lt){var rt=W[lt];if(!rt)return null;var qe=rt.data||{},$e=qe.value,Pe=qe.label,je=qe.children,Ne=Object(r.a)(qe,!0),et=oe?je:Pe;return rt?E.createElement("div",Object.assign({"aria-label":typeof et=="string"?et:null},Ne,{key:lt,role:"option",id:"".concat(X,"_list_").concat(lt),"aria-selected":me.has($e)}),$e):null}return E.createElement(E.Fragment,null,E.createElement("div",{role:"listbox",id:"".concat(X,"_list"),style:{height:0,width:0,overflow:"hidden"}},ct(Ke-1),ct(Ke),ct(Ke+1)),E.createElement(u.a,{itemKey:"key",ref:de,data:W,height:Ee,itemHeight:pe,fullHeight:!1,onMouseDown:ne,onScroll:ke,virtual:ge,onMouseEnter:re},function(lt,rt){var qe,$e=lt.group,Pe=lt.groupOption,je=lt.data,Ne=je.label,et=je.key;if($e)return E.createElement("div",{className:s()(F,"".concat(F,"-group"))},Ne!==void 0?Ne:et);var mt=je.disabled,At=je.value,Ut=je.title,Xt=je.children,un=je.style,jt=je.className,Zt=Object(C.a)(je,["disabled","value","title","children","style","className"]),Mt=me.has(At),Tt="".concat(F,"-option"),Ct=s()(F,Tt,jt,(qe={},Object(_.a)(qe,"".concat(Tt,"-grouped"),Pe),Object(_.a)(qe,"".concat(Tt,"-active"),Ke===rt&&!mt),Object(_.a)(qe,"".concat(Tt,"-disabled"),mt),Object(_.a)(qe,"".concat(Tt,"-selected"),Mt),qe)),Re=oe?Xt:Ne,We=!fe||typeof fe=="function"||Mt;return E.createElement("div",Object.assign({},Zt,{"aria-selected":Mt,className:Ct,title:Ut,onMouseMove:function(){if(Ke===rt||mt)return;yt(rt)},onClick:function(){mt||Et(At)},style:un}),E.createElement("div",{className:"".concat(Tt,"-content")},Re||At),E.isValidElement(fe)||Mt,We&&E.createElement(o.a,{className:"".concat(F,"-option-state"),customizeIcon:fe,customizeIconProps:{isSelected:Mt}},Mt?"\u2713":null))}))},d=E.forwardRef(f);d.displayName="OptionList";var a=d,h=function(){return null};h.isSelectOption=!0;var g=h,p=function(){return null};p.isSelectOptGroup=!0;var S=p,w=M("VTBJ"),B=M("Zm9Q");function b(K){var G=K.key,N=K.props,Q=N.children,X=N.value,te=Object(C.a)(N,["children","value"]);return Object(w.a)({key:G,value:X!==void 0?X:G,children:Q},te)}function A(K){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(K).map(function(N,Q){if(!E.isValidElement(N)||!N.type)return null;var X=N.type.isSelectOptGroup,te=N.key,oe=N.props,me=oe.children,se=Object(C.a)(oe,["children"]);return G||!X?b(N):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(te===null?Q:te,"__"),label:te},se),{},{options:A(me)})}).filter(function(N){return N})}var l=M("2Qr1"),i=M("qNPg"),x=M("U8pU"),O=M("Kwbf"),T=M("WKfj");function D(K){var G=K.mode,N=K.options,Q=K.children,X=K.backfill,te=K.allowClear,oe=K.placeholder,me=K.getInputElement,se=K.showSearch,_e=K.onSearch,Ae=K.defaultOpen,Ee=K.autoFocus,pe=K.labelInValue,he=K.value,ie=K.inputValue,fe=K.optionLabelProp,ge=G==="multiple"||G==="tags",ce=se!==void 0?se:ge||G==="combobox",Ie=N||A(Q);if(Object(O.a)(G!=="tags"||Ie.every(function(F){return!F.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var Fe=Ie.some(function(F){return F.options?F.options.some(function(W){return typeof("value"in W?W.value:W.key)=="number"}):typeof("value"in F?F.value:F.key)=="number"});Object(O.a)(!Fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(O.a)(G!=="combobox"||!fe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(O.a)(G==="combobox"||!X,"`backfill` only works with `combobox` mode."),Object(O.a)(G==="combobox"||!me,"`getInputElement` only work with `combobox` mode."),Object(O.b)(G!=="combobox"||!me||!te||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_e&&!ce&&G!=="combobox"&&G!=="tags"&&Object(O.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(O.b)(!Ae||Ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),he!=null){var ke=Object(T.d)(he);Object(O.a)(!pe||ke.every(function(F){return Object(x.a)(F)==="object"&&("key"in F||"value"in F)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(O.a)(!ge||Array.isArray(he),"`value` should be array when `mode` is `multiple` or `tags`")}if(Q){var re=null;Object(B.a)(Q).some(function(F){if(!E.isValidElement(F)||!F.type)return!1;var W=F.type;if(W.isSelectOption)return!1;if(W.isSelectOptGroup){var de=Object(B.a)(F.props.children).every(function(ne){return!E.isValidElement(ne)||!F.type||ne.type.isSelectOption?!0:(re=ne.type,!1)});return!de}return re=W,!0}),re&&Object(O.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),Object(O.a)(ie===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var R=D,k=Object(i.a)({prefixCls:"rc-select",components:{optionList:a},convertChildrenToData:A,flattenOptions:l.d,getLabeledValue:l.e,filterOptions:l.b,isValueDisabled:l.g,findValueOption:l.c,warningProps:R,fillOptionsWithMissingValue:l.a}),H=function(K){Object(P.a)(N,K);var G=Object(y.a)(N);function N(){var Q;return Object(ue.a)(this,N),Q=G.apply(this,arguments),Q.selectRef=E.createRef(),Q.focus=function(){Q.selectRef.current.focus()},Q.blur=function(){Q.selectRef.current.blur()},Q}return Object(Y.a)(N,[{key:"render",value:function(){return E.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),N}(E.Component);H.Option=g,H.OptGroup=S;var J=H,U=we.c=J},M8RZ:function(Ze,we,M){"use strict";M.d(we,"a",function(){return c});var ue=M("fWQN"),Y=M("mtLc"),P=M("yKVA"),y=M("879j"),E=M("q1tI"),_=M.n(E),C=M("i8i4"),m=M.n(C),c=function(r){Object(P.a)(e,r);var n=Object(y.a)(e);function e(s){var u;Object(ue.a)(this,e),u=n.call(this,s);var o=window.document;return u.node=o.createElement("div"),o.body.appendChild(u.node),u}return Object(Y.a)(e,[{key:"render",value:function(){var u=this.props.children;return Object(C.createPortal)(u,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),e}(_.a.Component)},MEGo:function(Ze,we,M){var ue=M("4fz+"),Y=M("Dagg"),P=M("dqUG"),y=M("2fw6"),E=M("x6Kt"),_=M("rmlV"),C=M("yxFR"),m=M("y+Vt"),c=M("h7HQ"),r=M("1Jh7"),n=M("SKnc"),e=M("K2GJ"),s=M("Fofx"),u=M("NC18"),o=u.createFromString,f=M("bYtY"),d=f.isString,a=f.extend,h=f.defaults,g=f.trim,p=f.each,S=/[\s,]+/;function w(N){if(d(N)){var Q=new DOMParser;N=Q.parseFromString(N,"text/xml")}for(N.nodeType===9&&(N=N.firstChild);N.nodeName.toLowerCase()!=="svg"||N.nodeType!==1;)N=N.nextSibling;return N}function B(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}B.prototype.parse=function(N,Q){Q=Q||{};var X=w(N);if(!X)throw new Error("Illegal svg");var te=new ue;this._root=te;var oe=X.getAttribute("viewBox")||"",me=parseFloat(X.getAttribute("width")||Q.width),se=parseFloat(X.getAttribute("height")||Q.height);isNaN(me)&&(me=null),isNaN(se)&&(se=null),T(X,te,null,!0);for(var _e=X.firstChild;_e;)this._parseNode(_e,te),_e=_e.nextSibling;var Ae,Ee;if(oe){var pe=g(oe).split(S);pe.length>=4&&(Ae={x:parseFloat(pe[0]||0),y:parseFloat(pe[1]||0),width:parseFloat(pe[2]),height:parseFloat(pe[3])})}if(Ae&&me!=null&&se!=null&&(Ee=K(Ae,me,se),!Q.ignoreViewBox)){var he=te;te=new ue,te.add(he),he.scale=Ee.scale.slice(),he.position=Ee.position.slice()}return!Q.ignoreRootClip&&me!=null&&se!=null&&te.setClipPath(new E({shape:{x:0,y:0,width:me,height:se}})),{root:te,width:me,height:se,viewBoxRect:Ae,viewBoxTransform:Ee}},B.prototype._parseNode=function(N,Q){var X=N.nodeName.toLowerCase();X==="defs"?this._isDefine=!0:X==="text"&&(this._isText=!0);var te;if(this._isDefine){var oe=A[X];if(oe){var me=oe.call(this,N),se=N.getAttribute("id");se&&(this._defs[se]=me)}}else{var oe=b[X];oe&&(te=oe.call(this,N,Q),Q.add(te))}for(var _e=N.firstChild;_e;)_e.nodeType===1&&this._parseNode(_e,te),_e.nodeType===3&&this._isText&&this._parseText(_e,te),_e=_e.nextSibling;X==="defs"?this._isDefine=!1:X==="text"&&(this._isText=!1)},B.prototype._parseText=function(N,Q){if(N.nodeType===1){var X=N.getAttribute("dx")||0,te=N.getAttribute("dy")||0;this._textX+=parseFloat(X),this._textY+=parseFloat(te)}var oe=new P({style:{text:N.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});i(Q,oe),T(N,oe,this._defs);var me=oe.style.fontSize;me&&me<9&&(oe.style.fontSize=9,oe.scale=oe.scale||[1,1],oe.scale[0]*=me/9,oe.scale[1]*=me/9);var se=oe.getBoundingRect();return this._textX+=se.width,Q.add(oe),oe};var b={g:function(N,Q){var X=new ue;return i(Q,X),T(N,X,this._defs),X},rect:function(N,Q){var X=new E;return i(Q,X),T(N,X,this._defs),X.setShape({x:parseFloat(N.getAttribute("x")||0),y:parseFloat(N.getAttribute("y")||0),width:parseFloat(N.getAttribute("width")||0),height:parseFloat(N.getAttribute("height")||0)}),X},circle:function(N,Q){var X=new y;return i(Q,X),T(N,X,this._defs),X.setShape({cx:parseFloat(N.getAttribute("cx")||0),cy:parseFloat(N.getAttribute("cy")||0),r:parseFloat(N.getAttribute("r")||0)}),X},line:function(N,Q){var X=new C;return i(Q,X),T(N,X,this._defs),X.setShape({x1:parseFloat(N.getAttribute("x1")||0),y1:parseFloat(N.getAttribute("y1")||0),x2:parseFloat(N.getAttribute("x2")||0),y2:parseFloat(N.getAttribute("y2")||0)}),X},ellipse:function(N,Q){var X=new _;return i(Q,X),T(N,X,this._defs),X.setShape({cx:parseFloat(N.getAttribute("cx")||0),cy:parseFloat(N.getAttribute("cy")||0),rx:parseFloat(N.getAttribute("rx")||0),ry:parseFloat(N.getAttribute("ry")||0)}),X},polygon:function(N,Q){var X=N.getAttribute("points");X&&(X=x(X));var te=new c({shape:{points:X||[]}});return i(Q,te),T(N,te,this._defs),te},polyline:function(N,Q){var X=new m;i(Q,X),T(N,X,this._defs);var te=N.getAttribute("points");te&&(te=x(te));var oe=new r({shape:{points:te||[]}});return oe},image:function(N,Q){var X=new Y;return i(Q,X),T(N,X,this._defs),X.setStyle({image:N.getAttribute("xlink:href"),x:N.getAttribute("x"),y:N.getAttribute("y"),width:N.getAttribute("width"),height:N.getAttribute("height")}),X},text:function(N,Q){var X=N.getAttribute("x")||0,te=N.getAttribute("y")||0,oe=N.getAttribute("dx")||0,me=N.getAttribute("dy")||0;this._textX=parseFloat(X)+parseFloat(oe),this._textY=parseFloat(te)+parseFloat(me);var se=new ue;return i(Q,se),T(N,se,this._defs),se},tspan:function(N,Q){var X=N.getAttribute("x"),te=N.getAttribute("y");X!=null&&(this._textX=parseFloat(X)),te!=null&&(this._textY=parseFloat(te));var oe=N.getAttribute("dx")||0,me=N.getAttribute("dy")||0,se=new ue;return i(Q,se),T(N,se,this._defs),this._textX+=oe,this._textY+=me,se},path:function(N,Q){var X=N.getAttribute("d")||"",te=o(X);return i(Q,te),T(N,te,this._defs),te}},A={lineargradient:function(N){var Q=parseInt(N.getAttribute("x1")||0,10),X=parseInt(N.getAttribute("y1")||0,10),te=parseInt(N.getAttribute("x2")||10,10),oe=parseInt(N.getAttribute("y2")||0,10),me=new n(Q,X,te,oe);return l(N,me),me},radialgradient:function(N){}};function l(N,Q){for(var X=N.firstChild;X;){if(X.nodeType===1){var te=X.getAttribute("offset");te.indexOf("%")>0?te=parseInt(te,10)/100:te?te=parseFloat(te):te=0;var oe=X.getAttribute("stop-color")||"#000000";Q.addColorStop(te,oe)}X=X.nextSibling}}function i(N,Q){N&&N.__inheritedStyle&&(Q.__inheritedStyle||(Q.__inheritedStyle={}),h(Q.__inheritedStyle,N.__inheritedStyle))}function x(N){for(var Q=g(N).split(S),X=[],te=0;te0;me-=2){var se=oe[me],_e=oe[me-1];te=te||s.create();switch(_e){case"translate":se=g(se).split(S),s.translate(te,te,[parseFloat(se[0]),parseFloat(se[1]||0)]);break;case"scale":se=g(se).split(S),s.scale(te,te,[parseFloat(se[0]),parseFloat(se[1]||se[0])]);break;case"rotate":se=g(se).split(S),s.rotate(te,te,parseFloat(se[0]));break;case"skew":se=g(se).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var se=g(se).split(S);te[0]=parseFloat(se[0]),te[1]=parseFloat(se[1]),te[2]=parseFloat(se[2]),te[3]=parseFloat(se[3]),te[4]=parseFloat(se[4]),te[5]=parseFloat(se[5]);break}}Q.setLocalTransform(te)}}var J=/([^\s:;]+)\s*:\s*([^:;]+)/g;function U(N){var Q=N.getAttribute("style"),X={};if(!Q)return X;var te={};J.lastIndex=0;for(var oe;(oe=J.exec(Q))!=null;)te[oe[1]]=oe[2];for(var me in O)O.hasOwnProperty(me)&&te[me]!=null&&(X[O[me]]=te[me]);return X}function K(N,Q,X){var te=Q/N.width,oe=X/N.height,me=Math.min(te,oe),se=[me,me],_e=[-(N.x+N.width/2)*me+Q/2,-(N.y+N.height/2)*me+X/2];return{scale:se,position:_e}}function G(N,Q){var X=new B;return X.parse(N,Q)}we.parseXML=w,we.makeViewBoxTransform=K,we.parseSVG=G},MKOG:function(Ze,we,M){var ue=M("bYtY"),Y=M("YH21"),P=Y.Dispatcher,y=M("mLcG"),E=M("Bq2U"),_=function(m){m=m||{},this.stage=m.stage||{},this.onframe=m.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,P.call(this)};_.prototype={constructor:_,addClip:function(m){this._clips.push(m)},addAnimator:function(m){m.animation=this;for(var c=m.getClips(),r=0;r=0&&this._clips.splice(c,1)},removeAnimator:function(m){for(var c=m.getClips(),r=0;r1&&(b*=y(R),A*=y(R));var k=(w===B?-1:1)*y((b*b*(A*A)-b*b*(D*D)-A*A*(T*T))/(b*b*(D*D)+A*A*(T*T)))||0,H=k*b*D/A,J=k*-A*T/b,U=(h+p)/2+_(O)*H-E(O)*J,K=(g+S)/2+E(O)*H+_(O)*J,G=r([1,0],[(T-H)/b,(D-J)/A]),N=[(T-H)/b,(D-J)/A],Q=[(-1*T-H)/b,(-1*D-J)/A],X=r(N,Q);c(N,Q)<=-1&&(X=C),c(N,Q)>=1&&(X=0),B===0&&X>0&&(X=X-2*C),B===1&&X<0&&(X=X+2*C),x.addData(i,U,K,b,A,G,X,O,B)}var e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,s=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(h){if(!h)return new Y;for(var g=0,p=0,S=g,w=p,B,b=new Y,A=Y.CMD,l=h.match(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;return!!(S(x)&&w(O))},S=function(x){return Object(n.p)()?!0:(x({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},w=function(){var x,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=Object(r.c)()._store.getState(),D=T.user;return(x=D.userInfo)!==null&&x!==void 0&&x.profile_completed?!0:(E.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:O?"\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(){r.d.push("/account/profile/edit")}}),!1)},B=function(){var x,O=Object(r.c)()._store.getState(),T=O.user;return(x=T.userInfo)!==null&&x!==void 0&&x.professional_certification?!0:(E.a.confirm({title:"\u63D0\u793A",centered:!0,content:c.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(e.Q)("/account/certification")}}),!1)},b=function(){return Object(n.a)()?!0:(E.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),c.a.createElement("img",{src:Object(n.t)()?h.a:"".concat(g.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},A=function(x,O){return x?!0:(E.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("p",null,O||"\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"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:d.a,width:200}),c.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(e.Q)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},l=function(x){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",T=Object(r.c)()._store.getState(),D=T.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?(E.a.info({centered:!0,icon:c.a.createElement(s.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\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",O,"\u3002"),c.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),c.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:o.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(D==null?void 0:D.shixun_status)===2?(E.a.confirm({centered:!0,icon:c.a.createElement(s.a,null),title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",O,"\u3002"),c.a.createElement("br",null),c.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(){E.a.confirm({width:440,centered:!0,icon:c.a.createElement(s.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 k=Object(P.a)(C.a.mark(function J(){var U;return C.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,x({type:"shixunsDetail/cancelRelease",payload:{id:D==null?void 0:D.identifier}});case 2:U=G.sent,U.status!==401&&(Y.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),x({type:"shixunsDetail/getShixunsDetail",payload:{id:D==null?void 0:D.identifier}}),x({type:"practiceSetting/getCommonData",payload:{id:D==null?void 0:D.identifier}}));case 4:case"end":return G.stop()}},J)}));function H(){return k.apply(this,arguments)}return H}()})}}),!0):!1}},Nddv:function(Ze,we,M){Ze.exports=M.p+"static/sz.d6b17ad9.svg"},Nmxd:function(Ze,we){Ze.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=="},NohK:function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.default=void 0;var ue=function(P){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,E=null;return function(){for(var _=this,C=arguments.length,m=new Array(C),c=0;c=0;f-=1){var d=m.get(f)||new Set;d.forEach(function(a){var h=a.parent,g=a.node;if(r(g)||!a.parent||o.has(a.parent.key))return;if(r(a.parent.node)){o.add(h.key);return}var p=!0,S=!1;(h.children||[]).filter(function(w){return!r(w.node)}).forEach(function(w){var B=w.key,b=n.has(B);p&&!b&&(p=!1),!S&&(b||e.has(B))&&(S=!0)}),p&&n.add(h.key),S&&e.add(h.key),o.add(h.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(Y(e,n))}}function E(C,m,c,r,n){for(var e=new Set(C),s=new Set(m),u=0;u<=r;u+=1){var o=c.get(u)||new Set;o.forEach(function(h){var g=h.key,p=h.node,S=h.children,w=S===void 0?[]:S;!e.has(g)&&!s.has(g)&&!n(p)&&w.filter(function(B){return!n(B.node)}).forEach(function(B){e.delete(B.key)})})}s=new Set;for(var f=new Set,d=r;d>=0;d-=1){var a=c.get(d)||new Set;a.forEach(function(h){var g=h.parent,p=h.node;if(n(p)||!h.parent||f.has(h.parent.key))return;if(n(h.parent.node)){f.add(g.key);return}var S=!0,w=!1;(g.children||[]).filter(function(B){return!n(B.node)}).forEach(function(B){var b=B.key,A=e.has(b);S&&!A&&(S=!1),!w&&(A||s.has(b))&&(w=!0)}),S||e.delete(g.key),w&&s.add(g.key),f.add(g.key)})}return{checkedKeys:Array.from(e),halfCheckedKeys:Array.from(Y(s,e))}}function _(C,m,c,r){var n=[],e;r?e=r:e=P;var s=new Set(C.filter(function(d){var a=!!c[d];return a||n.push(d),a})),u=new Map,o=0;Object.keys(c).forEach(function(d){var a=c[d],h=a.level,g=u.get(h);g||(g=new Set,u.set(h,g)),g.add(a),o=Math.max(o,h)}),Object(ue.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var f;return m===!0?f=y(s,u,o,e):f=E(s,m.halfCheckedKeys,u,o,e),f}},OC45:function(Ze,we,M){Ze.exports={applyPublicContainer:"applyPublicContainer___3sK8L",applyPublicContent:"applyPublicContent___3Hye1",spin:"spin___3-Uh7",tips:"tips___3d-sF",action:"action___3Uny2"}},OLES:function(Ze,we,M){"use strict";var ue=M("U8pU"),Y=M("VTBJ"),P=M("Ff2n"),y=M("q1tI"),E=M("uciX"),_=M("7ixt"),C=function(s){var u=s.overlay,o=s.prefixCls,f=s.id,d=s.overlayInnerStyle;return y.createElement("div",{className:"".concat(o,"-inner"),id:f,role:"tooltip",style:d},typeof u=="function"?u():u)},m=C,c=function(s,u){var o=s.overlayClassName,f=s.trigger,d=f===void 0?["hover"]:f,a=s.mouseEnterDelay,h=a===void 0?0:a,g=s.mouseLeaveDelay,p=g===void 0?.1:g,S=s.overlayStyle,w=s.prefixCls,B=w===void 0?"rc-tooltip":w,b=s.children,A=s.onVisibleChange,l=s.afterVisibleChange,i=s.transitionName,x=s.animation,O=s.placement,T=O===void 0?"right":O,D=s.align,R=D===void 0?{}:D,k=s.destroyTooltipOnHide,H=k===void 0?!1:k,J=s.defaultVisible,U=s.getTooltipContainer,K=s.overlayInnerStyle,G=Object(P.a)(s,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),N=Object(y.useRef)(null);Object(y.useImperativeHandle)(u,function(){return N.current});var Q=Object(Y.a)({},G);"visible"in s&&(Q.popupVisible=s.visible);var X=function(){var _e=s.arrowContent,Ae=_e===void 0?null:_e,Ee=s.overlay,pe=s.id;return[y.createElement("div",{className:"".concat(B,"-arrow"),key:"arrow"},Ae),y.createElement(m,{key:"content",prefixCls:B,id:pe,overlay:Ee,overlayInnerStyle:K})]},te=!1,oe=!1;if(typeof H=="boolean")te=H;else if(H&&Object(ue.a)(H)==="object"){var me=H.keepParent;te=me===!0,oe=me===!1}return y.createElement(E.a,Object.assign({popupClassName:o,prefixCls:B,popup:X,action:d,builtinPlacements:_.a,popupPlacement:T,ref:N,popupAlign:R,getPopupContainer:U,onPopupVisibleChange:A,afterPopupVisibleChange:l,popupTransitionName:i,popupAnimation:x,defaultPopupVisible:J,destroyPopupOnHide:te,autoDestroy:oe,mouseLeaveDelay:p,popupStyle:S,mouseEnterDelay:h},Q),b)},r=Object(y.forwardRef)(c),n=we.a=r},OS9S:function(Ze,we,M){var ue=M("bYtY"),Y=ue.inherits,P=M("Gev7"),y=M("mFDi");function E(m){P.call(this,m),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}E.prototype.incremental=!0,E.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},E.prototype.addDisplayable=function(m,c){c?this._temporaryDisplayables.push(m):this._displayables.push(m),this.dirty()},E.prototype.addDisplayables=function(m,c){c=c||!1;for(var r=0;r=0&&b.splice(A,1),b}function n(w,B){var b=w.slice();return b.indexOf(B)===-1&&b.push(B),b}function e(w){return w.split("-")}function s(w,B){return"".concat(w,"-").concat(B)}function u(w){return w&&w.type&&w.type.isTreeNode}function o(w,B){var b=[w],A=B[w];function l(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(x){var O=x.key,T=x.children;b.push(O),l(T)})}return l(A.children),b}function f(w,B){var b=w.clientY,A=B.selectHandle.getBoundingClientRect(),l=A.top,i=A.bottom,x=A.height,O=Math.max(x*m,c);return b<=l+O?-1:b>=i-O?1:0}function d(w,B){if(!w)return;var b=B.multiple;return b?w.slice():w.length?[w[0]]:w}var a=function(B){return B};function h(w,B){if(!w)return[];var b=B||{},A=b.processProps,l=A===void 0?a:A,i=Array.isArray(w)?w:[w];return i.map(function(x){var O=x.children,T=Object(P.a)(x,["children"]),D=h(O,B);return E.a.createElement(C.a,Object.assign({},l(T)),D)})}function g(w){if(!w)return null;var B;if(Array.isArray(w))B={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(Y.a)(w)==="object")B={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(_.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function p(w,B){var b=new Set;function A(l){if(b.has(l))return;var i=B[l];if(!i)return;b.add(l);var x=i.parent,O=i.node;if(O.disabled)return;x&&A(x.key)}return(w||[]).forEach(function(l){A(l)}),Object(ue.a)(b)}function S(w){var B={};return Object.keys(w).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(B[b]=w[b])}),B}},Ohmc:function(Ze,we,M){Ze.exports=M.p+"static/certificate.fc32dc1b.jpg"},OljG:function(Ze,we,M){Ze.exports=M.p+"static/banner.4c45dd73.png"},Ot1p:function(Ze,we,M){"use strict";var ue=M("2qtc"),Y=M("kLXV"),P=M("rAM+"),y=M("miYZ"),E=M("tsqr"),_=M("9og8"),C=M("tJVT"),m=M("jrin"),c=M("WmNS"),r=M.n(c),n=M("q1tI"),e=M.n(n),s=M("VrN/"),u=M.n(s),o=M("bdgK"),f=M("p77/"),d=M("Bd2K"),a=M("ELLl"),h=M("19Vz"),g=M("lZu9"),p=M("+NIl"),S=M("kSUc"),w=M("9Bee"),B=function(At){var Ut=At.value,Xt=Ut===void 0?"":Ut,un=At.className,jt=At.showTextOnly,Zt=At.showLines,Mt=At.style,Tt=Mt===void 0?{}:Mt,Ct=Object(n.useMemo)(function(){return""},[Xt]);return e.a.createElement(e.a.Fragment,null,e.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},b=M("0Owb"),A=M("dejd"),l=M("C+DQ"),i=M("1vsH"),x=M("m3rI"),O=[{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 T(At){var Ut=At.onActionCallback,Xt=At.title,un=At.icon,jt=At.actionName,Zt=At.className,Mt=Zt===void 0?"":Zt,Tt=At.children;function Ct(){Ut(jt)}return e.a.createElement("a",{title:Xt,className:Mt,onClick:Ct},e.a.createElement("i",{className:"md-iconfont ".concat(un)}),Tt)}var D=function(At){var Ut=At.watch,Xt=At.showNullButton,un=At.onActionCallback,jt=At.fullScreen,Zt=At.insertTemp,Mt=At.hidetoolBar,Tt=At.uuid,Ct=At.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(i.E)("_educoder_session_login"),"&_educoder_session=").concat(Object(i.E)("_educoder_session"),"&key=").concat(Tt,"&api=").concat(encodeURIComponent(x.a.PROXY_SERVER)));var Re=[].concat(O,[{title:"".concat(Ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Ut?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return e.a.createElement("ul",{className:"markdown-toolbar-container"},!Mt&&Re.map(function(We,St){return e.a.createElement("li",{key:St},We.actionName?e.a.createElement(T,Object(b.a)({},We,{onActionCallback:un})):e.a.createElement("span",{className:"v-line"}))}),Xt?e.a.createElement("li",null,e.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:un},e.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Zt&&e.a.createElement("li",null,e.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Zt),onActionCallback:un},e.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),e.a.createElement("li",{className:"btn-full-screen"},e.a.createElement(T,{icon:"".concat(jt?"icon-shrink":"icon-enlarge"),title:jt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:un})))},R=M("M8RZ"),k=M("+L6B"),H=M("2/Rp"),J=M("y8nQ"),U=M("Vl3Y"),K=M("5NDa"),G=M("5rEg"),N={labelCol:{span:4},wrapperCol:{span:20}},Q=function(At){var Ut=At.callback,Xt=At.onCancel;function un(jt){Ut(jt)}return e.a.createElement(U.a,Object(b.a)({},N,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:un}),e.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},e.a.createElement(G.a,null)),e.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},e.a.createElement(G.a,null)),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(H.a,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},X=M("7ahc"),te=M("k1fw"),oe=M("HmJG"),me=M("BjJ7"),se=U.a.useForm,_e={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}},Ee=function(At){var Ut=At.callback,Xt=At.onCancel,un=se(),jt=Object(C.a)(un,1),Zt=jt[0],Mt=Object(n.useRef)();function Tt(We){Ut(Object(te.a)(Object(te.a)({},We),{},{name:Mt.current}))}function Ct(We,St){Zt.setFieldsValue({src:"/api/attachments/".concat(We.id,"?type=").concat(We.content_type),type:St.type})}function Re(We){var St=We.target.files[0];Mt.current=St.name,he(St,Ct)}return e.a.createElement(U.a,Object(b.a)({form:Zt},Ae,{className:"upload-image-panel",onFinish:Tt}),e.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},e.a.createElement("div",{className:"flex-container"},e.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},e.a.createElement(G.a,{style:_e})),e.a.createElement(pe,{onFileChange:Re}))),e.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},e.a.createElement(G.a,{style:{width:264}})),e.a.createElement(U.a.Item,{style:{textAlign:"right"}},e.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(H.a,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))};function pe(At){var Ut=At.onFileChange;return e.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",e.a.createElement("input",{type:"file",onChange:Ut}))}function he(At,Ut){if(!At)throw new String("\u6CA1\u6709\u6587\u4EF6");var Xt=new FormData;Xt.append("editormd-image-file",At),Xt.append("file_param_name","editormd-image-file"),Xt.append("byxhr","true");var un=new window.XMLHttpRequest;un.withCredentials=!0,un.addEventListener("load",function(jt){Ut(JSON.parse(jt.target.responseText),At)},!1),un.addEventListener("error",function(jt){console.error(jt)},!1),un.open("POST","".concat(me.a,"/api/attachments.json")),un.send(Xt)}var ie=M("giR+"),fe=M("fyUT"),ge=M("7Kak"),ce=M("9yH6"),Ie=ce.a.Group,Fe={margin:"0 8px"},ke=function(At){var Ut=At.callback,Xt=At.onCancel;function un(jt){Ut(jt)}return e.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:un},e.a.createElement("div",{className:"flex-container"},e.a.createElement("span",{style:Fe},"\u5355\u5143\u683C\u6570\uFF1A"),e.a.createElement("span",{style:Fe},"\u884C\u6570"),e.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},e.a.createElement(fe.a,null)),e.a.createElement("span",{style:Fe},"\u5217\u6570"),e.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},e.a.createElement(fe.a,null))),e.a.createElement("div",{className:"flex-container",style:{marginTop:12}},e.a.createElement("span",{style:Fe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),e.a.createElement(U.a.Item,{name:"align"},e.a.createElement(Ie,null,e.a.createElement(ce.a,{value:"default"},e.a.createElement("i",{className:"fa fa-align-justify"})),e.a.createElement(ce.a,{value:"left"},e.a.createElement("i",{className:"fa fa-align-left"})),e.a.createElement(ce.a,{value:"center"},e.a.createElement("i",{className:"fa fa-align-center"})),e.a.createElement(ce.a,{value:"right"},e.a.createElement("i",{className:"fa fa-align-right"}))))),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(H.a,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},re=M("ErOA"),F=M("7Cbv"),W="link",de="upload-image",ne="code-block",le="add-table",De="------------",Xe={default:De,left:":".concat(De),center:":".concat(De,":"),right:"".concat(De,":")},xt=M("9VGf"),Ke,ze;function yt(){}var Et=0,ct=1e4,lt="\u2581",rt=` **\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 qe(At){return/^\d+$/.test(At)?"".concat(At,"px"):At}var $e=navigator.platform.toUpperCase().indexOf("MAC")>=0,Pe=$e?"Cmd":"Ctrl",je=["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"],Ne=(Ke={},Object(m.a)(Ke,Pe+"-B","bold"),Object(m.a)(Ke,Pe+"-I","italic"),Ke),et=(ze={},Object(m.a)(ze,W,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(ze,ne,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(ze,de,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(ze,le,"\u6DFB\u52A0\u8868\u683C"),ze),mt=we.a=function(At){var Ut=At.defaultValue,Xt=Ut===void 0?"":Ut,un=At.onChange,jt=At.width,Zt=jt===void 0?"100%":jt,Mt=At.height,Tt=Mt===void 0?400:Mt,Ct=At.miniToolbar,Re=Ct===void 0?!1:Ct,We=At.isFocus,St=We===void 0?!1:We,ft=At.watch,It=At.insertTemp,Ot=At.mode,bt=Ot===void 0?"markdown":Ot,Ht=At.id,Gt=Ht===void 0?"markdown-editor-id":Ht,xn=At.showResizeBar,vn=xn===void 0?!1:xn,sr=At.noStorage,xr=sr===void 0?!1:sr,Kn=At.showNullButton,En=Kn===void 0?!1:Kn,Qr=At.hidetoolBar,sa=Qr===void 0?!1:Qr,Xr=At.fullScreen,Nr=Xr===void 0?!1:Xr,ba=At.onBlur,ja=At.onCMBeforeChange,oi=At.onFullScreen,Le=At.className,Qe=Le===void 0?"":Le,ot=At.disablePaste,_t=ot===void 0?!1:ot,Kt=At.placeholder,nn=Kt===void 0?"":Kt,ve=At.values,z=ve===void 0?"":ve,Z=Object(n.useState)(null),ye=Object(C.a)(Z,2),Ce=ye[0],be=ye[1],ht=Object(n.useState)(Xt),Nt=Object(C.a)(ht,2),sn=Nt[0],pn=Nt[1],zt=Object(n.useState)(ft),qn=Object(C.a)(zt,2),Un=qn[0],rr=qn[1],Sr=Object(n.useState)(Nr),ia=Object(C.a)(Sr,2),Dr=ia[0],na=ia[1],Tr=Object(n.useState)(""),ma=Object(C.a)(Tr,2),ha=ma[0],Oa=ma[1],xa=Object(n.useState)(0),ka=Object(C.a)(xa,2),Ha=ka[0],Ia=ka[1],Yr=Object(n.useState)(Tt),za=Object(C.a)(Yr,2),Ga=za[0],Da=za[1],si=Object(n.useState)(!1),di=Object(C.a)(si,2),Ma=di[0],zr=di[1],Ar=Object(n.useRef)(Object(F.a)()),Gr=Object(n.useRef)(!1),qr=Object(n.useRef)(),_a=Object(n.useRef)(),Jr=Object(n.useRef)(),ji=Object(n.useRef)(),Fa=Object(n.useRef)(),vi=function(){var kn=Object(_.a)(r.a.mark(function Cr(){var gr,Vr;return r.a.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return Sa.next=2,Object(re.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ar.current}});case 2:Vr=Sa.sent,Vr!=null&&(gr=Vr.attachments)!==null&&gr!==void 0&&gr.length&&(console.log("cm:",Ce,_a),Vr.attachments.map(function(la){la.content_type.indexOf("image")>-1?Ce.replaceSelection("![,](/api/attachments/".concat(la.id,"?type=").concat(la.content_type,")")):la.content_type.indexOf("video")>-1?Ce.replaceSelection('')):la.content_type.indexOf("pdf")>-1?Ce.replaceSelection('
    ').concat(la.name,"")):Ce.replaceSelection("[".concat(la.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(la.id,"?type=").concat(la.content_type,")"))}));case 4:case"end":return Sa.stop()}},Cr)}));return function(){return kn.apply(this,arguments)}}();Object(n.useEffect)(function(){pn(z),Ce==null||Ce.setValue(z)},[z]),Object(n.useEffect)(function(){oi==null||oi(Dr)},[Dr]),Object(n.useEffect)(function(){if(_a.current){var kn=u.a.fromTextArea(_a.current,{mode:bt,lineNumbers:!Re,lineWrapping:!0,value:Xt,autoCloseTags:!0,autoCloseBrackets:!0});St&&kn.focus();function Cr(gr,Vr){if(_t){Vr.preventDefault();return}var Aa=Vr.clipboardData;if(Aa){var Sa=Aa.types.toString(),la=Aa.items;if(Sa==="Files"||Aa.types.indexOf("Files")>-1){if(Vr.preventDefault(),bt=="stex")return;try{var Ai,Hi=la[1];((Ai=la[0])===null||Ai===void 0?void 0:Ai.kind)==="file"&&(Hi=la[0]);var ra=Hi.getAsFile(),zo=ra.name.split(".").pop();he(ra,function(fa){if(fa.id){var Si,uo,Gi;(ra==null||((Si=ra.type)===null||Si===void 0)?void 0:Si.indexOf("image"))>-1?kn.replaceSelection("![,](/api/attachments/".concat(fa.id,"?type=").concat(fa.content_type,")")):(ra==null||((uo=ra.type)===null||uo===void 0)?void 0:uo.indexOf("video"))>-1?kn.replaceSelection('')):(ra==null||((Gi=ra.type)===null||Gi===void 0)?void 0:Gi.indexOf("pdf"))>-1?kn.replaceSelection('').concat(ra.name,"")):je.includes(zo)?kn.replaceSelection('').concat(ra.name,"")):kn.replaceSelection("[".concat(ra.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,"?type=").concat(fa.content_type,")"))}else(fa==null?void 0:fa.status)===401&&(document.location.href="/user/login")})}catch(fa){E.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return kn.on("paste",Cr),kn.on("dragleave",function(gr,Vr){Jr.current.classList.remove("mouse-hover-md")}),kn.on("dragover",function(gr,Vr){Jr.current.classList.add("mouse-hover-md")}),kn.on("drop",function(gr,Vr){Jr.current.classList.add("mouse-hover-md");var Aa;if(Aa=Vr.dataTransfer.files,Aa.length>0){Vr.preventDefault(),Vr.stopPropagation();for(var Sa=function(Hi){var ra=Aa[Hi],zo=ra.name.split(".").pop();he(ra,function(fa){if(fa.id){var Si,uo,Gi;(ra==null||((Si=ra.type)===null||Si===void 0)?void 0:Si.indexOf("image"))>-1?kn.replaceSelection("![,](/api/attachments/".concat(fa.id,"?type=").concat(fa.content_type,")")):(ra==null||((uo=ra.type)===null||uo===void 0)?void 0:uo.indexOf("video"))>-1?kn.replaceSelection('')):(ra==null||((Gi=ra.type)===null||Gi===void 0)?void 0:Gi.indexOf("pdf"))>-1?kn.replaceSelection('').concat(ra.name,"")):je.includes(zo)?kn.replaceSelection('').concat(ra.name,"")):kn.replaceSelection("[".concat(ra.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,"?type=").concat(fa.content_type,")"))}else(fa==null?void 0:fa.status)===401&&(document.location.href="/user/login")})},la=0;la0||la.target.offsetWidth>0)&&(vo(),Ce.setSize("100%","100%"),Ce.refresh())}}catch(Ai){Aa.e(Ai)}finally{Aa.f()}});return gr.observe(_a.current.parentElement),gr}if(Ce){var Cr=kn();return function(){Cr.unobserve(_a.current.parentElement)}}},[Ce,vo]),Object(n.useEffect)(function(){if(Ce){for(var kn=[],Cr=function(){var la=Vr[gr];Aa=Object(C.a)(la,2);var Ai=Aa[0],Hi=Aa[1],ra=Object(m.a)({},Ai,function(){Wo(Hi)});kn.push(ra),Ce.addKeyMap(ra)},gr=0,Vr=Object.entries(Ne);gr0){var kn=new Date().getTime(),Cr=window.sessionStorage.getItem(Gt);kn>=Ha+ct&&(!Cr||Cr!==sn)&&(window.sessionStorage.setItem(Gt,sn),zr(!0))}},ct),Object(n.useEffect)(function(){rr(ft)},[Ce,ft]),Object(n.useEffect)(function(){Ce&&(St&&Ce.focus())},[Ce,St]),Object(n.useEffect)(function(){if(Un&&Ce){var kn=Ce.getScrollerElement();function Cr(gr){var Vr=gr.target;if(Fa.current){var Aa=Vr.scrollTop/Vr.scrollHeight;Fa.current.scrollTop=Fa.current.scrollHeight*Aa}}return kn.addEventListener("scroll",Cr),function(){kn.removeEventListener("scroll",Cr)}}},[Ce,Un]),Object(n.useEffect)(function(){if(Ce&&ja){function kn(Cr,gr){ja(Cr,gr)}return Ce.on("beforeChange",kn),function(){Ce.off("beforeChange",kn)}}},[Ce,ja]),Object(n.useEffect)(function(){if(Ce&&ba){function kn(){ba(Ce.getValue())}return Ce.on("blur",kn),function(){Ce.off("blur",kn)}}},[Ce,ba]),Object(n.useEffect)(function(){if(Ce){function kn(Cr){var gr=Cr.getValue();pn(gr),Ia(new Date().getTime()),Cr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),un&&un(gr)}return Ce.on("change",kn),function(){Ce.off("change",kn)}}},[Ce,un]),Object(n.useEffect)(function(){Ce&&(Xt==null?(Ce.setValue(""),pn("")):Xt!==Ce.getValue()&&(Ce.setValue(Xt),pn(Xt),Ce.setCursor(Ce.lineCount(),0)))},[Ce,Xt]);var Wo=Object(n.useCallback)(function(kn){var Cr=Ce.getCursor(),gr=Ce.getSelection(),Vr=gr.split(` `);switch(kn){case"bold":return Ce.replaceSelection("**"+gr+"**"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+gr+"*"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+gr+"`"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+1),Ce.focus();case"inline-latex":return Ce.replaceSelection("`$$"+gr+"$$`"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+3),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+gr+"\n```"),Ce.setCursor(Cr.line+1,gr.length+1),Ce.focus();case"line-break":return Ce.replaceSelection(`
    `),Ce.focus();case"list-ul":return gr===""?Ce.replaceSelection("- "+gr):Ce.replaceSelection(Vr.map(function(Aa){return Aa===""?"":"- ".concat(Aa)}).join(` `)),Ce.focus();case"list-ol":return gr===""?Ce.replaceSelection("1. "+gr):Ce.replaceSelection(Vr.map(function(Aa,Sa){return Aa===""?"":"".concat(Sa+1,". ").concat(Aa)}).join(` `)),Ce.focus();case"add-null-ch":return gr===""&&Ce.setCursor(Cr.line,Cr.ch+1),Ce.replaceSelection(lt),Ce.focus();case"inster-template-1":return gr===""&&Ce.setCursor(Cr.line,Cr.ch),Ce.replaceSelection(rt),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return rr(!Un),Ce.focus();case"trigger-full-screen":return na(!Dr),Ce.focus();case W:Oa(W);return;case ne:Oa(ne);return;case de:Oa(de);return;case le:Oa(le);return;default:throw new Error}},[Ce,Un,Dr]),Ca=Object(n.useCallback)(function(kn){Oa("");switch(ha){case W:var Cr=kn.title,gr=kn.link;return Ce.replaceSelection("[".concat(Cr,"](").concat(gr,")")),Ce.focus();case ne:var Vr=kn.language,Aa=kn.content;return Ce.replaceSelection(["```"+Vr,Aa,"```"].join(` `)),Ce.focus();case de:var Sa=kn.src,la=kn.alt,Ai=kn.name;return Sa.indexOf("type=image")>-1?Ce.replaceSelection("![ ".concat(la||""," ]( ").concat(Sa,' "').concat(la||"",'" )')):Sa.indexOf("type=application/pdf")>-1?Ce.replaceSelection('').concat(Ai,"")):Ce.replaceSelection('').concat(Ai,"")),Ce.focus();case le:for(var Hi=kn.row,ra=kn.col,zo=kn.align,fa=` `,Si=0;Si300&&(Ai=300);var Hi=Tt+Ai+"px";Da(Hi)}}return kn.addEventListener("mousedown",Vr),document.addEventListener("mousemove",Sa),document.addEventListener("mouseup",Aa),function(){kn.removeEventListener("mousedown",Vr),document.removeEventListener("mousemove",Sa),document.removeEventListener("mouseup",Aa)}}},[Ce,ji]),Object(n.useEffect)(function(){Da(Tt)},[Tt]);var os=qe(Zt),eo=qe(Ga),ss={width:os,height:eo},Jo=Object(n.useMemo)(function(){if(Ha){var kn=new Date(Ha),Cr=kn.getHours(),gr=kn.getMinutes(),Vr=kn.getSeconds();return Cr=Cr<10?"0"+Cr:Cr,gr=gr<10?"0"+gr:gr,Vr=Vr<10?"0"+Vr:Vr,"".concat(Cr,":").concat(gr,":").concat(Vr)}return 0},[Ha]);function Ui(){window.sessionStorage.removeItem(Gt),zr(!1),Ia(0)}function Zo(){zr(!1),Ia(0),Ce.setValue(window.sessionStorage.getItem(Gt))}function ps(kn,Cr){var gr=Ce.getValue();gr=gr.replace(kn,Cr),pn(gr),Ce==null||Ce.setValue(gr)}return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"markdown-editor-wrapper",ref:Jr},e.a.createElement("div",{className:"markdown-editor-container ".concat(Qe," ").concat(Un?"on-preview":""," ").concat(Re?"mini":""," ").concat(Dr?"full-screen":""),style:ss},e.a.createElement(D,{insertTemp:It,watch:Un,fullScreen:Dr,showNullButton:En,onActionCallback:Wo,hidetoolBar:sa,uuid:Ar.current,setOpenPhones:function(){Gr.current=!0}}),e.a.createElement("div",{className:"markdown-editor-body"},e.a.createElement("div",{className:"codemirror-container"},e.a.createElement("textarea",{ref:_a,placeholder:nn})),Un?e.a.createElement("div",{ref:Fa,className:"preview-container"},bt==="stex"&&e.a.createElement(B,{value:sn}),bt!=="stex"&&e.a.createElement(w.a,{edit:!0,value:sn,replaces:ps})):null))),vn?e.a.createElement("a",{ref:ji,className:"editor-resize"}):null,e.a.createElement(R.a,null,et[ha]?e.a.createElement(Y.a,{centered:!0,title:et[ha],visible:!0,onCancel:hi,footer:null},Ro):null))}},P47w:function(Ze,we,M){var ue=M("hydK"),Y=ue.createElement,P=M("IMiH"),y=M("mFDi"),E=M("Fofx"),_=M("6GrX"),C=M("pzxd"),m=M("dqUG"),c=P.CMD,r=Array.prototype.join,n="none",e=Math.round,s=Math.sin,u=Math.cos,o=Math.PI,f=Math.PI*2,d=180/o,a=1e-4;function h(N){return e(N*1e4)/1e4}function g(N){return N-a}function p(N,Q){var X=Q?N.textFill:N.fill;return X!=null&&X!==n}function S(N,Q){var X=Q?N.textStroke:N.stroke;return X!=null&&X!==n}function w(N,Q){Q&&B(N,"transform","matrix("+r.call(Q,",")+")")}function B(N,Q,X){(!X||X.type!=="linear"&&X.type!=="radial")&&N.setAttribute(Q,X)}function b(N,Q,X){N.setAttributeNS("http://www.w3.org/1999/xlink",Q,X)}function A(N,Q,X,te){if(p(Q,X)){var oe=X?Q.textFill:Q.fill;oe=oe==="transparent"?n:oe,B(N,"fill",oe),B(N,"fill-opacity",Q.fillOpacity!=null?Q.fillOpacity*Q.opacity:Q.opacity)}else B(N,"fill",n);if(S(Q,X)){var me=X?Q.textStroke:Q.stroke;me=me==="transparent"?n:me,B(N,"stroke",me);var se=X?Q.textStrokeWidth:Q.lineWidth,_e=!X&&Q.strokeNoScale?te.getLineScale():1;B(N,"stroke-width",se/_e),B(N,"paint-order",X?"stroke":"fill"),B(N,"stroke-opacity",Q.strokeOpacity!=null?Q.strokeOpacity:Q.opacity);var Ae=Q.lineDash;Ae?(B(N,"stroke-dasharray",Q.lineDash.join(",")),B(N,"stroke-dashoffset",e(Q.lineDashOffset||0))):B(N,"stroke-dasharray",""),Q.lineCap&&B(N,"stroke-linecap",Q.lineCap),Q.lineJoin&&B(N,"stroke-linejoin",Q.lineJoin),Q.miterLimit&&B(N,"stroke-miterlimit",Q.miterLimit)}else B(N,"stroke",n)}function l(N){for(var Q=[],X=N.data,te=N.len(),oe=0;oe=f:-fe>=f),ke=fe>0?fe%f:fe%f+f,re=!1;Fe?re=!0:g(Ie)?re=!1:re=ke>=o===!!ce;var F=h(Ae+pe*u(ie)),W=h(Ee+he*s(ie));Fe&&(ce?fe=f-1e-4:fe=-f+1e-4,re=!0,oe===9&&Q.push("M",F,W));var de=h(Ae+pe*u(ie+fe)),ne=h(Ee+he*s(ie+fe));Q.push("A",h(pe),h(he),e(ge*d),+re,+ce,de,ne);break;case c.Z:se="Z";break;case c.R:var de=h(X[oe++]),ne=h(X[oe++]),le=h(X[oe++]),De=h(X[oe++]);Q.push("M",de,ne,"L",de+le,ne,"L",de+le,ne+De,"L",de,ne+De,"L",de,ne);break}se&&Q.push(se);for(var Xe=0;Xe<_e;Xe++)Q.push(h(X[oe++]))}return Q.join(" ")}var i={};i.brush=function(N){var Q=N.style,X=N.__svgEl;X||(X=Y("path"),N.__svgEl=X),N.path||N.createPathProxy();var te=N.path;if(N.__dirtyPath){te.beginPath(),te.subPixelOptimize=!1,N.buildPath(te,N.shape),N.__dirtyPath=!1;var oe=l(te);oe.indexOf("NaN")<0&&B(X,"d",oe)}A(X,Q,!1,N),w(X,N.transform),Q.text!=null?H(N,N.getBoundingRect()):G(N)};var x={};x.brush=function(N){var Q=N.style,X=Q.image;if(X instanceof HTMLImageElement){var te=X.src;X=te}if(!X)return;var oe=Q.x||0,me=Q.y||0,se=Q.width,_e=Q.height,Ae=N.__svgEl;Ae||(Ae=Y("image"),N.__svgEl=Ae),X!==N.__imageSrc&&(b(Ae,"href",X),N.__imageSrc=X),B(Ae,"width",se),B(Ae,"height",_e),B(Ae,"x",oe),B(Ae,"y",me),w(Ae,N.transform),Q.text!=null?H(N,N.getBoundingRect()):G(N)};var O={},T=new y,D={},R=[],k={left:"start",right:"end",center:"middle",middle:"middle"},H=function(N,Q){var X=N.style,te=N.transform,oe=N instanceof m||X.transformText;N.__dirty&&C.normalizeTextStyle(X,!0);var me=X.text;if(me!=null&&(me+=""),!C.needDrawText(me,X))return;me==null&&(me=""),!oe&&te&&(T.copy(Q),T.applyTransform(te),Q=T);var se=N.__textSvgEl;se||(se=Y("text"),N.__textSvgEl=se);var _e=se.style,Ae=X.font||_.DEFAULT_FONT,Ee=se.__computedFont;Ae!==se.__styleFont&&(_e.font=se.__styleFont=Ae,Ee=se.__computedFont=_e.font);var pe=X.textPadding,he=X.textLineHeight,ie=N.__textCotentBlock;(!ie||N.__dirtyText)&&(ie=N.__textCotentBlock=_.parsePlainText(me,Ee,pe,he,X.truncate));var fe=ie.outerHeight,ge=ie.lineHeight;C.getBoxPosition(D,N,X,Q);var ce=D.baseX,Ie=D.baseY,Fe=D.textAlign||"left",ke=D.textVerticalAlign;J(se,oe,te,X,Q,ce,Ie);var re=_.adjustTextY(Ie,fe,ke),F=ce,W=re;pe&&(F=U(ce,Fe,pe),W+=pe[0]),W+=ge/2,A(se,X,!0,N);var de=ie.canCacheByTextString,ne=N.__tspanList||(N.__tspanList=[]),le=ne.length;if(de&&N.__canCacheByTextString&&N.__text===me){if(N.__dirtyText&&le)for(var De=0;Dext){for(;De255?255:l}function y(l){return l=Math.round(l),l<0?0:l>360?360:l}function E(l){return l<0?0:l>1?1:l}function _(l){return l.length&&l.charAt(l.length-1)==="%"?P(parseFloat(l)/100*255):P(parseInt(l,10))}function C(l){return l.length&&l.charAt(l.length-1)==="%"?E(parseFloat(l)/100):E(parseFloat(l))}function m(l,i,x){return x<0?x+=1:x>1&&(x-=1),x*6<1?l+(i-l)*x*6:x*2<1?i:x*3<2?l+(i-l)*(2/3-x)*6:l}function c(l,i,x){return l+(i-l)*x}function r(l,i,x,O,T){return l[0]=i,l[1]=x,l[2]=O,l[3]=T,l}function n(l,i){return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}var e=new ue(20),s=null;function u(l,i){s&&n(s,i),s=e.put(l,s||i.slice())}function o(l,i){if(!l)return;i=i||[];var x=e.get(l);if(x)return n(i,x);l=l+"";var O=l.replace(/ /g,"").toLowerCase();if(O in Y)return n(i,Y[O]),u(l,i),i;if(O.charAt(0)==="#"){if(O.length===4){var T=parseInt(O.substr(1),16);if(!(T>=0&&T<=4095)){r(i,0,0,0,1);return}return r(i,(T&3840)>>4|(T&3840)>>8,T&240|(T&240)>>4,T&15|(T&15)<<4,1),u(l,i),i}else if(O.length===7){var T=parseInt(O.substr(1),16);if(!(T>=0&&T<=16777215)){r(i,0,0,0,1);return}return r(i,(T&16711680)>>16,(T&65280)>>8,T&255,1),u(l,i),i}return}var D=O.indexOf("("),R=O.indexOf(")");if(D!==-1&&R+1===O.length){var k=O.substr(0,D),H=O.substr(D+1,R-(D+1)).split(","),J=1;switch(k){case"rgba":if(H.length!==4){r(i,0,0,0,1);return}J=C(H.pop());case"rgb":if(H.length!==3){r(i,0,0,0,1);return}return r(i,_(H[0]),_(H[1]),_(H[2]),J),u(l,i),i;case"hsla":if(H.length!==4){r(i,0,0,0,1);return}return H[3]=C(H[3]),f(H,i),u(l,i),i;case"hsl":if(H.length!==3){r(i,0,0,0,1);return}return f(H,i),u(l,i),i;default:return}}r(i,0,0,0,1);return}function f(l,i){var x=(parseFloat(l[0])%360+360)%360/360,O=C(l[1]),T=C(l[2]),D=T<=.5?T*(O+1):T+O-T*O,R=T*2-D;return i=i||[],r(i,P(m(R,D,x+1/3)*255),P(m(R,D,x)*255),P(m(R,D,x-1/3)*255),1),l.length===4&&(i[3]=l[3]),i}function d(l){if(!l)return;var i=l[0]/255,x=l[1]/255,O=l[2]/255,T=Math.min(i,x,O),D=Math.max(i,x,O),R=D-T,k=(D+T)/2,H,J;if(R===0)H=0,J=0;else{k<.5?J=R/(D+T):J=R/(2-D-T);var U=((D-i)/6+R/2)/R,K=((D-x)/6+R/2)/R,G=((D-O)/6+R/2)/R;i===D?H=G-K:x===D?H=1/3+U-G:O===D&&(H=2/3+K-U),H<0&&(H+=1),H>1&&(H-=1)}var N=[H*360,J,k];return l[3]!=null&&N.push(l[3]),N}function a(l,i){var x=o(l);if(x){for(var O=0;O<3;O++)i<0?x[O]=x[O]*(1-i)|0:x[O]=(255-x[O])*i+x[O]|0,x[O]>255?x[O]=255:l[O]<0&&(x[O]=0);return A(x,x.length===4?"rgba":"rgb")}}function h(l){var i=o(l);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function g(l,i,x){if(!(i&&i.length)||!(l>=0&&l<=1))return;x=x||[];var O=l*(i.length-1),T=Math.floor(O),D=Math.ceil(O),R=i[T],k=i[D],H=O-T;return x[0]=P(c(R[0],k[0],H)),x[1]=P(c(R[1],k[1],H)),x[2]=P(c(R[2],k[2],H)),x[3]=E(c(R[3],k[3],H)),x}var p=g;function S(l,i,x){if(!(i&&i.length)||!(l>=0&&l<=1))return;var O=l*(i.length-1),T=Math.floor(O),D=Math.ceil(O),R=o(i[T]),k=o(i[D]),H=O-T,J=A([P(c(R[0],k[0],H)),P(c(R[1],k[1],H)),P(c(R[2],k[2],H)),E(c(R[3],k[3],H))],"rgba");return x?{color:J,leftIndex:T,rightIndex:D,value:O}:J}var w=S;function B(l,i,x,O){if(l=o(l),l)return l=d(l),i!=null&&(l[0]=y(i)),x!=null&&(l[1]=C(x)),O!=null&&(l[2]=C(O)),A(f(l),"rgba")}function b(l,i){if(l=o(l),l&&i!=null)return l[3]=E(i),A(l,"rgba")}function A(l,i){if(!l||!l.length)return;var x=l[0]+","+l[1]+","+l[2];return(i==="rgba"||i==="hsva"||i==="hsla")&&(x+=","+l[3]),i+"("+x+")"}we.parse=o,we.lift=a,we.toHex=h,we.fastLerp=g,we.fastMapToColor=p,we.lerp=S,we.mapToColor=w,we.modifyHSL=B,we.modifyAlpha=b,we.stringify=A},QuXc:function(Ze,we){var M=function(Y){this.colorStops=Y||[]};M.prototype={constructor:M,addColorStop:function(Y,P){this.colorStops.push({offset:Y,color:P})}};var ue=M;Ze.exports=ue},RDYZ:function(Ze,we,M){var ue=M("dMvE");function Y(y){this._target=y.target,this._life=y.life||1e3,this._delay=y.delay||0,this._initialized=!1,this.loop=y.loop==null?!1:y.loop,this.gap=y.gap||0,this.easing=y.easing||"Linear",this.onframe=y.onframe,this.ondestroy=y.ondestroy,this.onrestart=y.onrestart,this._pausedTime=0,this._paused=!1}Y.prototype={constructor:Y,step:function(y,E){if(this._initialized||(this._startTime=y+this._delay,this._initialized=!0),this._paused){this._pausedTime+=E;return}var _=(y-this._startTime-this._pausedTime)/this._life;if(_<0)return;_=Math.min(_,1);var C=this.easing,m=typeof C=="string"?ue[C]:C,c=typeof m=="function"?m(_):_;return this.fire("frame",c),_===1?this.loop?(this.restart(y),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(y){var E=(y-this._startTime-this._pausedTime)%this._life;this._startTime=y-E+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(y,E){y="on"+y,this[y]&&this[y](this._target,E)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var P=Y;Ze.exports=P},RMFE:function(Ze,we){Ze.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"},RXMa:function(Ze,we,M){var ue=M("y+Vt"),Y=ue.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(P,y){var E=y.cx,_=y.cy,C=Math.PI*2;P.moveTo(E+y.r,_),P.arc(E,_,y.r,0,C,!1),P.moveTo(E+y.r0,_),P.arc(E,_,y.r0,0,C,!0)}});Ze.exports=Y},RotF:function(Ze,we,M){Ze.exports=M("LSTS")},RxwV:function(Ze,we,M){"use strict";var ue=M("q1tI"),Y=M("uciX"),P=M("2W6z"),y=M.n(P),E=M("4IlW"),_=M("uK0f"),C=M.n(_);function m(se,_e){if(se===_e)return!0;if(!se||!_e)return!1;var Ae=se.length;if(_e.length!==Ae)return!1;for(var Ee=0;Ee0;(ne||he.isLeaf===!1)&&(W+=" ".concat(ge,"-menu-item-expand"),he.loading||(de=ue.createElement("span",{className:"".concat(ge,"-menu-item-expand-icon")},Ie))),ce==="hover"&&(ne||he.isLeaf===!1)&&(F={onMouseEnter:this.delayOnSelect.bind(this,ke),onMouseLeave:this.delayOnSelect.bind(this),onClick:ke}),this.isActiveOption(he,ie)&&(W+=" ".concat(ge,"-menu-item-active"),F.ref=this.saveMenuItem(ie)),he.disabled&&(W+=" ".concat(ge,"-menu-item-disabled"));var le=null;he.loading&&(W+=" ".concat(ge,"-menu-item-loading"),le=Fe||null);var De="";return"title"in he?De=he.title:typeof he[this.getFieldName("label")]=="string"&&(De=he[this.getFieldName("label")]),ue.createElement("li",Object.assign({key:he[this.getFieldName("value")],className:W,title:De},F,{role:"menuitem",onMouseDown:function(xt){return xt.preventDefault()}}),he[this.getFieldName("label")],de,le)}},{key:"getActiveOptions",value:function(he){var ie=this,fe=this.props.options,ge=he||this.props.activeValue;return C()(fe,function(ce,Ie){return ce[ie.getFieldName("value")]===ge[Ie]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var he=this,ie=this.props.options,fe=this.getActiveOptions().map(function(ge){return ge[he.getFieldName("children")]}).filter(function(ge){return!!ge});return fe.unshift(ie),fe}},{key:"delayOnSelect",value:function(he){for(var ie=this,fe=arguments.length,ge=new Array(fe>1?fe-1:0),ce=1;ce=0)continue;if(!Object.prototype.propertyIsEnumerable.call(se,Ee))continue;Ae[Ee]=se[Ee]}}return Ae}function A(se,_e){if(se==null)return{};var Ae={},Ee=Object.keys(se),pe,he;for(he=0;he=0)continue;Ae[pe]=se[pe]}return Ae}function l(se){return T(se)||O(se)||x(se)||i()}function i(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(se,_e){if(!se)return;if(typeof se=="string")return D(se,_e);var Ae=Object.prototype.toString.call(se).slice(8,-1);if(Ae==="Object"&&se.constructor&&(Ae=se.constructor.name),Ae==="Map"||Ae==="Set")return Array.from(se);if(Ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return D(se,_e)}function O(se){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(se))return Array.from(se)}function T(se){if(Array.isArray(se))return D(se)}function D(se,_e){(_e==null||_e>se.length)&&(_e=se.length);for(var Ae=0,Ee=new Array(_e);Ae<_e;Ae++)Ee[Ae]=se[Ae];return Ee}function R(se,_e){if(!(se instanceof _e))throw new TypeError("Cannot call a class as a function")}function k(se,_e){for(var Ae=0;Ae<_e.length;Ae++){var Ee=_e[Ae];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(se,Ee.key,Ee)}}function H(se,_e,Ae){return _e&&k(se.prototype,_e),Ae&&k(se,Ae),se}function J(se,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(_e&&_e.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),_e&&U(se,_e)}function U(se,_e){return U=Object.setPrototypeOf||function(Ee,pe){return Ee.__proto__=pe,Ee},U(se,_e)}function K(se){var _e=Q();return function(){var Ae=X(se),Ee;if(_e){var pe=X(this).constructor;Ee=Reflect.construct(Ae,arguments,pe)}else Ee=Ae.apply(this,arguments);return G(this,Ee)}}function G(se,_e){return _e&&(B(_e)==="object"||typeof _e=="function")?_e:N(se)}function N(se){if(se===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se}function Q(){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(se){return!1}}function X(se){return X=Object.setPrototypeOf?Object.getPrototypeOf:function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)},X(se)}var te=function(){var se=function(_e){J(Ee,_e);var Ae=K(Ee);function Ee(pe){var he;R(this,Ee),he=Ae.call(this,pe),he.setPopupVisible=function(fe){var ge=he.state.value;"popupVisible"in he.props||he.setState({popupVisible:fe}),fe&&!he.state.popupVisible&&he.setState({activeValue:ge}),he.props.onPopupVisibleChange(fe)},he.handleChange=function(fe,ge,ce){var Ie=ge.visible;(ce.type!=="keydown"||ce.keyCode===E.a.ENTER)&&(he.props.onChange(fe.map(function(Fe){return Fe[he.getFieldName("value")]}),fe),he.setPopupVisible(Ie))},he.handlePopupVisibleChange=function(fe){he.setPopupVisible(fe)},he.handleMenuSelect=function(fe,ge,ce){var Ie=he.trigger.getRootDomNode();Ie&&Ie.focus&&Ie.focus();var Fe=he.props,ke=Fe.changeOnSelect,re=Fe.loadData,F=Fe.expandTrigger;if(!fe||fe.disabled)return;var W=he.state.activeValue;W=W.slice(0,ge+1),W[ge]=fe[he.getFieldName("value")];var de=he.getActiveOptions(W);if(fe.isLeaf===!1&&!fe[he.getFieldName("children")]&&re){ke&&he.handleChange(de,{visible:!0},ce),he.setState({activeValue:W}),re(de);return}var ne={};!fe[he.getFieldName("children")]||!fe[he.getFieldName("children")].length?(he.handleChange(de,{visible:!1},ce),ne.value=W):ke&&(ce.type==="click"||ce.type==="keydown")&&(F==="hover"?he.handleChange(de,{visible:!1},ce):he.handleChange(de,{visible:!0},ce),ne.value=W),ne.activeValue=W,("value"in he.props||ce.type==="keydown"&&ce.keyCode!==E.a.ENTER)&&delete ne.value,he.setState(ne)},he.handleItemDoubleClick=function(){var fe=he.props.changeOnSelect;fe&&he.setPopupVisible(!1)},he.handleKeyDown=function(fe){var ge=he.props.children;if(ge&&ge.props.onKeyDown){ge.props.onKeyDown(fe);return}var ce=l(he.state.activeValue),Ie=ce.length-1<0?0:ce.length-1,Fe=he.getCurrentLevelOptions(),ke=Fe.map(function(de){return de[he.getFieldName("value")]}).indexOf(ce[Ie]);if(fe.keyCode!==E.a.DOWN&&fe.keyCode!==E.a.UP&&fe.keyCode!==E.a.LEFT&&fe.keyCode!==E.a.RIGHT&&fe.keyCode!==E.a.ENTER&&fe.keyCode!==E.a.SPACE&&fe.keyCode!==E.a.BACKSPACE&&fe.keyCode!==E.a.ESC&&fe.keyCode!==E.a.TAB)return;if(!he.state.popupVisible&&fe.keyCode!==E.a.BACKSPACE&&fe.keyCode!==E.a.LEFT&&fe.keyCode!==E.a.RIGHT&&fe.keyCode!==E.a.ESC&&fe.keyCode!==E.a.TAB){he.setPopupVisible(!0);return}if(fe.keyCode===E.a.DOWN||fe.keyCode===E.a.UP){fe.preventDefault();var re=ke;re!==-1?fe.keyCode===E.a.DOWN?(re+=1,re=re>=Fe.length?0:re):(re-=1,re=re<0?Fe.length-1:re):re=0,ce[Ie]=Fe[re][he.getFieldName("value")]}else if(fe.keyCode===E.a.LEFT||fe.keyCode===E.a.BACKSPACE)fe.preventDefault(),ce.splice(ce.length-1,1);else if(fe.keyCode===E.a.RIGHT)fe.preventDefault(),Fe[ke]&&Fe[ke][he.getFieldName("children")]&&ce.push(Fe[ke][he.getFieldName("children")][0][he.getFieldName("value")]);else if(fe.keyCode===E.a.ESC||fe.keyCode===E.a.TAB){he.setPopupVisible(!1);return}(!ce||ce.length===0)&&he.setPopupVisible(!1);var F=he.getActiveOptions(ce),W=F[F.length-1];he.handleMenuSelect(W,F.length-1,fe),he.props.onKeyDown&&he.props.onKeyDown(fe)},he.saveTrigger=function(fe){he.trigger=fe};var ie=[];return"value"in pe?ie=pe.value||[]:"defaultValue"in pe&&(ie=pe.defaultValue||[]),y()(!("filedNames"in pe),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),he.state={popupVisible:pe.popupVisible,activeValue:ie,value:ie,prevProps:pe},he.defaultFieldNames={label:"label",value:"value",children:"children"},he}return H(Ee,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(he){var ie=this.defaultFieldNames,fe=this.props,ge=fe.fieldNames,ce=fe.filedNames;return"filedNames"in this.props?ce[he]||ie[he]:ge[he]||ie[he]}},{key:"getFieldNames",value:function(){var he=this.props,ie=he.fieldNames,fe=he.filedNames;return"filedNames"in this.props?fe:ie}},{key:"getCurrentLevelOptions",value:function(){var he=this,ie=this.props.options,fe=ie===void 0?[]:ie,ge=this.state.activeValue,ce=ge===void 0?[]:ge,Ie=C()(fe,function(Fe,ke){return Fe[he.getFieldName("value")]===ce[ke]},{childrenKeyName:this.getFieldName("children")});return Ie[Ie.length-2]?Ie[Ie.length-2][this.getFieldName("children")]:l(fe).filter(function(Fe){return!Fe.disabled})}},{key:"getActiveOptions",value:function(he){var ie=this;return C()(this.props.options||[],function(fe,ge){return fe[ie.getFieldName("value")]===he[ge]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var he=this.props,ie=he.prefixCls,fe=he.transitionName,ge=he.popupClassName,ce=he.options,Ie=ce===void 0?[]:ce,Fe=he.disabled,ke=he.builtinPlacements,re=he.popupPlacement,F=he.children,W=he.dropdownRender,de=b(he,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ne=ue.createElement("div",null),le="";Ie&&Ie.length>0?ne=ue.createElement(p,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):le=" ".concat(ie,"-menus-empty");var De=ne;return W&&(De=W(ne)),ue.createElement(Y.a,Object.assign({ref:this.saveTrigger},de,{popupPlacement:re,builtinPlacements:ke,popupTransitionName:fe,action:Fe?[]:["click"],popupVisible:Fe?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ie,"-menus"),popupClassName:ge+le,popup:De}),ue.cloneElement(F,{onKeyDown:this.handleKeyDown,tabIndex:Fe?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(he,ie){var fe=ie.prevProps,ge=fe===void 0?{}:fe,ce={prevProps:he};return"value"in he&&!m(ge.value,he.value)&&(ce.value=he.value||[],"loadData"in he||(ce.activeValue=he.value||[])),"popupVisible"in he&&(ce.popupVisible=he.popupVisible),ce}}]),Ee}(ue.Component);return se.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:w,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},se}(),oe=te,me=we.a=oe},"SA+Z":function(Ze,we,M){var ue=M("wTVA"),Y=M("EbDI"),P=M("ZhPi"),y=M("wkBT");function E(_){return ue(_)||Y(_)||P(_)||y()}Ze.exports=E,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports},SJMd:function(Ze,we){/** * @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 M,ue,Y,P=!1,y,E;window.PR_SHOULD_USE_CONTINUATION=!0;var _,C;(function(){var m=window,c=["break,continue,do,else,for,if,return,while"],r=[c,"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=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],e=[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"],s=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],u=[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"],o="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",f=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="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",a=[c,"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"],h=[c,"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"],g=[c,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],p=[e,u,s,f,d,a,h,g],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",B="kwd",b="com",A="typ",l="lit",i="pun",x="pln",O="tag",T="dec",D="src",R="atn",k="atv",H="nocode",J="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(ce){for(var Ie=0,Fe=!1,ke=!1,re=0,F=ce.length;re122||(Pe<65||$e>90||yt.push([Math.max(65,$e)|32,Math.min(Pe,90)|32]),Pe<97||$e>122||yt.push([Math.max(97,$e)&~32,Math.min(Pe,122)&~32]))}}yt.sort(function(mt,At){return mt[0]-At[0]||At[1]-mt[1]});for(var je=[],Ne=[],lt=0;ltet[0]&&(et[1]+1>et[0]&&ct.push("-"),ct.push(le(et[1])))}return ct.push("]"),ct.join("")}function Xe(Ke){for(var ze=Ke.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")),yt=ze.length,Et=[],ct=0,lt=0;ct=2&&$e==="["?ze[ct]=De(rt):$e!=="\\"&&(ze[ct]=rt.replace(/[a-zA-Z]/g,function(Ne){var et=Ne.charCodeAt(0);return"["+String.fromCharCode(et&~32,et|32)+"]"}))}return ze.join("")}for(var xt=[],re=0,F=ce.length;re=0;)Fe[xt.charAt(Ke)]=Xe;var ze=Xe[1],yt=""+ze;ne.hasOwnProperty(yt)||(de.push(ze),ne[yt]=null)}de.push(/[\0-\uffff]/),ke=U(de)})();var re=Ie.length,F=function(W){for(var de=W.sourceCode,ne=W.basePos,le=W.sourceNode,De=[ne,x],Xe=0,xt=de.match(ke)||[],Ke={},ze=0,yt=xt.length;ze=5&&ct.substring(0,5)==="lang-",rt&&!(lt&&typeof lt[1]=="string")&&(rt=!1,ct=D),rt||(Ke[Et]=ct)}var Pe=Xe;if(Xe+=Et.length,!rt)De.push(ne+Pe,ct);else{var je=lt[1],Ne=Et.indexOf(je),et=Ne+je.length;lt[2]&&(et=Et.length-lt[2].length,Ne=et-je.length);var mt=ct.substring(5);G(le,ne+Pe,Et.substring(0,Ne),F,De),G(le,ne+Pe+Ne,je,Ee(mt,je),De),G(le,ne+Pe+et,Et.substring(et),F,De)}}W.decorations=De};return F}function te(ce){var Ie=[],Fe=[];ce.tripleQuotedStrings?Ie.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ce.multiLineStrings?Ie.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ie.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ce.verbatimStrings&&Fe.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ke=ce.hashComments;ke&&(ce.cStyleComments?(ke>1?Ie.push([b,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ie.push([b,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Fe.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ie.push([b,/^#[^\r\n]*/,null,"#"])),ce.cStyleComments&&(Fe.push([b,/^\/\/[^\r\n]*/,null]),Fe.push([b,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var re=ce.regexLiterals;if(re){var F=re>1?"":` \r`,W=F?".":"[\\S\\s]",de="/(?=[^/*"+F+"])(?:[^/\\x5B\\x5C"+F+"]|\\x5C"+W+"|\\x5B(?:[^\\x5C\\x5D"+F+"]|\\x5C"+W+")*(?:\\x5D|$))+/";Fe.push(["lang-regex",RegExp("^"+J+"("+de+")")])}var ne=ce.types;ne&&Fe.push([A,ne]);var le=(""+ce.keywords).replace(/^ | $/g,"");le.length&&Fe.push([B,new RegExp("^(?:"+le.replace(/[\s,]+/g,"|")+")\\b"),null]),Ie.push([x,/^\s+/,null,` \r \xA0`]);var De="^.[^\\s\\w.$@'\"`/\\\\]*";return ce.regexLiterals&&(De+="(?!s*/)"),Fe.push([l,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[x,/^[a-z_$][a-z_$@0-9]*/i,null],[l,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[x,/^\\[\s\S]?/,null],[i,new RegExp(De),null]),X(Ie,Fe)}var oe=te({keywords:p,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function me(ce,Ie,Fe){for(var ke=/(?:^|\s)nocode(?:\s|$)/,re=/\r\n?|\n/,F=ce.ownerDocument,W=F.createElement("li");ce.firstChild;)W.appendChild(ce.firstChild);var de=[W];function ne(ze){var yt=ze.nodeType;if(yt==1&&!ke.test(ze.className))if(ze.nodeName==="br")le(ze),ze.parentNode&&ze.parentNode.removeChild(ze);else for(var Et=ze.firstChild;Et;Et=Et.nextSibling)ne(Et);else if((yt==3||yt==4)&&Fe){var ct=ze.nodeValue,lt=ct.match(re);if(lt){var rt=ct.substring(0,lt.index);ze.nodeValue=rt;var qe=ct.substring(lt.index+lt[0].length);if(qe){var $e=ze.parentNode;$e.insertBefore(F.createTextNode(qe),ze.nextSibling)}le(ze),rt||ze.parentNode.removeChild(ze)}}}function le(ze){for(;!ze.nextSibling;)if(ze=ze.parentNode,!ze)return;function yt(lt,rt){var qe=rt?lt.cloneNode(!1):lt,$e=lt.parentNode;if($e){var Pe=yt($e,1),je=lt.nextSibling;Pe.appendChild(qe);for(var Ne=je;Ne;Ne=je)je=Ne.nextSibling,Pe.appendChild(Ne)}return qe}for(var Et=yt(ze.nextSibling,0),ct;(ct=Et.parentNode)&&ct.nodeType===1;)Et=ct;de.push(Et)}for(var De=0;De=$e&&(ne+=2),F>=Pe&&(Xe+=2)}}finally{ct&&(ct.style.display=lt)}}var _e={};function Ae(ce,Ie){for(var Fe=Ie.length;--Fe>=0;){var ke=Ie[Fe];_e.hasOwnProperty(ke)?m.console&&console.warn("cannot override language handler %s",ke):_e[ke]=ce}}function Ee(ce,Ie){return ce&&_e.hasOwnProperty(ce)||(ce=/^\s*]*(?:>|$)/],[b,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[i,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ae(X([[x,/^[\s]+/,null,` \r `],[k,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[O,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[i,/^[=<>\/]+/],["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"]),Ae(X([],[[k,/^[\s\S]+/]]),["uq.val"]),Ae(te({keywords:e,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),Ae(te({keywords:"null,true,false"}),["json"]),Ae(te({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),Ae(te({keywords:s,cStyleComments:!0}),["java"]),Ae(te({keywords:g,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ae(te({keywords:a,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ae(te({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ae(te({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ae(te({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ae(te({keywords:o,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ae(X([],[[w,/^[\s\S]+/]]),["regex"]);function pe(ce){var Ie=ce.langExtension;try{var Fe=K(ce.sourceNode,ce.pre),ke=Fe.sourceCode;ce.sourceCode=ke,ce.spans=Fe.spans,ce.basePos=0,Ee(Ie,ke)(ce),se(ce)}catch(re){m.console&&console.log(re&&re.stack||re)}}function he(ce,Ie,Fe){var ke=Fe||!1,re=Ie||null,F=document.createElement("div");F.innerHTML="
    "+ce+"
    ",F=F.firstChild,ke&&me(F,ke,!0);var W={langExtension:re,numberLines:ke,sourceNode:F,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return pe(W),F.innerHTML}function ie(ce,Ie){var Fe=Ie||document.body,ke=Fe.ownerDocument||document;function re(qe){return Fe.getElementsByTagName(qe)}for(var F=[re("pre"),re("code"),re("xmp")],W=[],de=0;de-_&&l<_}function u(l){return l>_||l<-_}function o(l,i,x,O,T){var D=1-T;return D*D*(D*l+3*T*i)+T*T*(T*O+3*D*x)}function f(l,i,x,O,T){var D=1-T;return 3*(((i-l)*D+2*(x-i)*T)*D+(O-x)*T*T)}function d(l,i,x,O,T,D){var R=O+3*(i-x)-l,k=3*(x-i*2+l),H=3*(i-l),J=l-T,U=k*k-3*R*H,K=k*H-9*R*J,G=H*H-3*k*J,N=0;if(s(U)&&s(K))if(s(k))D[0]=0;else{var Q=-H/k;Q>=0&&Q<=1&&(D[N++]=Q)}else{var X=K*K-4*U*G;if(s(X)){var te=K/U,Q=-k/R+te,oe=-te/2;Q>=0&&Q<=1&&(D[N++]=Q),oe>=0&&oe<=1&&(D[N++]=oe)}else if(X>0){var me=E(X),se=U*k+1.5*R*(-K+me),_e=U*k+1.5*R*(-K-me);se<0?se=-y(-se,c):se=y(se,c),_e<0?_e=-y(-_e,c):_e=y(_e,c);var Q=(-k-(se+_e))/(3*R);Q>=0&&Q<=1&&(D[N++]=Q)}else{var Ae=(2*U*k-3*R*K)/(2*E(U*U*U)),Ee=Math.acos(Ae)/3,pe=E(U),he=Math.cos(Ee),Q=(-k-2*pe*he)/(3*R),oe=(-k+pe*(he+m*Math.sin(Ee)))/(3*R),ie=(-k+pe*(he-m*Math.sin(Ee)))/(3*R);Q>=0&&Q<=1&&(D[N++]=Q),oe>=0&&oe<=1&&(D[N++]=oe),ie>=0&&ie<=1&&(D[N++]=ie)}}return N}function a(l,i,x,O,T){var D=6*x-12*i+6*l,R=9*i+3*O-3*l-9*x,k=3*i-3*l,H=0;if(s(R)){if(u(D)){var J=-k/D;J>=0&&J<=1&&(T[H++]=J)}}else{var U=D*D-4*R*k;if(s(U))T[0]=-D/(2*R);else if(U>0){var K=E(U),J=(-D+K)/(2*R),G=(-D-K)/(2*R);J>=0&&J<=1&&(T[H++]=J),G>=0&&G<=1&&(T[H++]=G)}}return H}function h(l,i,x,O,T,D){var R=(i-l)*T+l,k=(x-i)*T+i,H=(O-x)*T+x,J=(k-R)*T+R,U=(H-k)*T+k,K=(U-J)*T+J;D[0]=l,D[1]=R,D[2]=J,D[3]=K,D[4]=K,D[5]=U,D[6]=H,D[7]=O}function g(l,i,x,O,T,D,R,k,H,J,U){var K,G=.005,N=Infinity,Q,X,te,oe;r[0]=H,r[1]=J;for(var me=0;me<1;me+=.05)n[0]=o(l,x,T,R,me),n[1]=o(i,O,D,k,me),te=P(r,n),te=0&&te=0&&J<=1&&(T[H++]=J)}}else{var U=R*R-4*D*k;if(s(U)){var J=-R/(2*D);J>=0&&J<=1&&(T[H++]=J)}else if(U>0){var K=E(U),J=(-R+K)/(2*D),G=(-R-K)/(2*D);J>=0&&J<=1&&(T[H++]=J),G>=0&&G<=1&&(T[H++]=G)}}return H}function B(l,i,x){var O=l+x-2*i;return O===0?.5:(l-i)/O}function b(l,i,x,O,T){var D=(i-l)*O+l,R=(x-i)*O+i,k=(R-D)*O+D;T[0]=l,T[1]=D,T[2]=k,T[3]=k,T[4]=R,T[5]=x}function A(l,i,x,O,T,D,R,k,H){var J,U=.005,K=Infinity;r[0]=R,r[1]=k;for(var G=0;G<1;G+=.05){n[0]=p(l,x,T,G),n[1]=p(i,O,D,G);var N=P(r,n);N=0&&N=0;--g)if(h[g]===a)return!0;return!1}),d):null:d[0]},s.prototype.update=function(o,f){if(!o)return;var d=this.getDefs(!1);if(o[this._domName]&&d.contains(o[this._domName]))typeof f=="function"&&f(o);else{var a=this.add(o);a&&(o[this._domName]=a)}},s.prototype.addDom=function(o){var f=this.getDefs(!0);f.appendChild(o)},s.prototype.removeDom=function(o){var f=this.getDefs(!1);f&&o[this._domName]&&(f.removeChild(o[this._domName]),o[this._domName]=null)},s.prototype.getDoms=function(){var o=this.getDefs(!1);if(!o)return[];var f=[];return P.each(this._tagNames,function(d){var a=o.getElementsByTagName(d);f=f.concat([].slice.call(a))}),f},s.prototype.markAllUnused=function(){var o=this.getDoms(),f=this;P.each(o,function(d){d[f._markLabel]=n})},s.prototype.markUsed=function(o){o&&(o[this._markLabel]=e)},s.prototype.removeUnused=function(){var o=this.getDefs(!1);if(!o)return;var f=this.getDoms(),d=this;P.each(f,function(a){a[d._markLabel]!==e&&o.removeChild(a)})},s.prototype.getSvgProxy=function(o){return o instanceof y?m:o instanceof E?c:o instanceof _?r:m},s.prototype.getTextSvgElement=function(o){return o.__textSvgEl},s.prototype.getSvgElement=function(o){return o.__svgEl};var u=s;Ze.exports=u},T6xi:function(Ze,we,M){var ue=M("YgsL"),Y=M("nCxF");function P(y,E,_){var C=E.points,m=E.smooth;if(C&&C.length>=2){if(m&&m!=="spline"){var c=Y(C,m,_,E.smoothConstraint);y.moveTo(C[0][0],C[0][1]);for(var r=C.length,n=0;n<(_?r:r-1);n++){var e=c[n*2],s=c[n*2+1],u=C[(n+1)%r];y.bezierCurveTo(e[0],e[1],s[0],s[1],u[0],u[1])}}else{m==="spline"&&(C=ue(C,_)),y.moveTo(C[0][0],C[0][1]);for(var n=1,o=C.length;nE&&(e=m+c,m*=E/e,c*=E/e),r+n>E&&(e=r+n,r*=E/e,n*=E/e),c+r>_&&(e=c+r,c*=_/e,r*=_/e),m+n>_&&(e=m+n,m*=_/e,n*=_/e),ue.moveTo(P+m,y),ue.lineTo(P+E-c,y),c!==0&&ue.arc(P+E-c,y+c,c,-Math.PI/2,0),ue.lineTo(P+E,y+_-r),r!==0&&ue.arc(P+E-r,y+_-r,r,0,Math.PI/2),ue.lineTo(P+n,y+_),n!==0&&ue.arc(P+n,y+_-n,n,Math.PI/2,Math.PI),ue.lineTo(P,y+m),m!==0&&ue.arc(P+m,y+m,m,Math.PI,Math.PI*1.5)}we.buildPath=M},"VrN/":function(Ze,we,M){(function(ue,Y){Ze.exports=Y()})(this,function(){"use strict";var ue=navigator.userAgent,Y=navigator.platform,P=/gecko\/\d/i.test(ue),y=/MSIE \d/.test(ue),E=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ue),_=/Edge\/(\d+)/.exec(ue),C=y||E||_,m=C&&(y?document.documentMode||6:+(_||E)[1]),c=!_&&/WebKit\//.test(ue),r=c&&/Qt\/\d+\.\d+/.test(ue),n=!_&&/Chrome\//.test(ue),e=/Opera\//.test(ue),s=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ue),o=/PhantomJS/.test(ue),f=!_&&/AppleWebKit/.test(ue)&&/Mobile\/\w+/.test(ue),d=/Android/.test(ue),a=f||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ue),h=f||/Mac/.test(Y),g=/\bCrOS\b/.test(ue),p=/win/i.test(Y),S=e&&ue.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(e=!1,c=!0);var w=h&&(r||e&&(S==null||S<12.11)),B=P||C&&m>=9;function b(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var A=function(t,v){var L=t.className,I=b(v).exec(L);if(I){var j=L.slice(I.index+I[0].length);t.className=L.slice(0,I.index)+(j?I[1]+j:"")}};function l(t){for(var v=t.childNodes.length;v>0;--v)t.removeChild(t.firstChild);return t}function i(t,v){return l(t).appendChild(v)}function x(t,v,L,I){var j=document.createElement(t);if(L&&(j.className=L),I&&(j.style.cssText=I),typeof v=="string")j.appendChild(document.createTextNode(v));else if(v)for(var ae=0;ae=v)return xe+(v-ae);xe+=Oe-ae,xe+=L-xe%L,ae=Oe+1}}var N=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};N.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},N.prototype.set=function(t,v){this.f=v;var L=+new Date+t;(!this.id||L=v)return I+Math.min(xe,v-j);if(j+=ae-I,j+=L-j%L,I=ae+1,j>=v)return I}}var Ae=[""];function Ee(t){for(;Ae.length<=t;)Ae.push(pe(Ae)+" ");return Ae[t]}function pe(t){return t[t.length-1]}function he(t,v){for(var L=[],I=0;I"\x80"&&(t.toUpperCase()!=t.toLowerCase()||ce.test(t))}function Fe(t,v){return v?v.source.indexOf("\\w")>-1&&Ie(t)?!0:v.test(t):Ie(t)}function ke(t){for(var v in t)if(t.hasOwnProperty(v)&&t[v])return!1;return!0}var re=/[\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 F(t){return t.charCodeAt(0)>=768&&re.test(t)}function W(t,v,L){for(;(L<0?v>0:vL?-1:1;;){if(v==L)return v;var j=(v+L)/2,ae=I<0?Math.ceil(j):Math.floor(j);if(ae==v)return t(ae)?v:L;t(ae)?L=ae:v=ae+I}}function ne(t,v,L,I){if(!t)return I(v,L,"ltr",0);for(var j=!1,ae=0;aev||v==L&&xe.to==v)&&(I(Math.max(xe.from,v),Math.min(xe.to,L),xe.level==1?"rtl":"ltr",ae),j=!0)}j||I(v,L,"ltr")}var le=null;function De(t,v,L){var I;le=null;for(var j=0;jv)return j;ae.to==v&&(ae.from!=ae.to&&L=="before"?I=j:le=j),ae.from==v&&(ae.from!=ae.to&&L!="before"?I=j:le=j)}return I!=null?I:le}var Xe=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",v="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function L(He){return He<=247?t.charAt(He):1424<=He&&He<=1524?"R":1536<=He&&He<=1785?v.charAt(He-1536):1774<=He&&He<=2220?"r":8192<=He&&He<=8203?"w":He==8204?"b":"L"}var I=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,ae=/[LRr]/,xe=/[Lb1n]/,Oe=/[1n]/;function Me(He,gt,wt){this.level=He,this.from=gt,this.to=wt}return function(He,gt){var wt=gt=="ltr"?"L":"R";if(He.length==0||gt=="ltr"&&!I.test(He))return!1;for(var kt=He.length,Pt=[],an=0;an-1&&(I[v]=j.slice(0,ae).concat(j.slice(ae+1)))}}}function ct(t,v){var L=yt(t,v);if(!L.length)return;for(var I=Array.prototype.slice.call(arguments,2),j=0;j0}function $e(t){t.prototype.on=function(v,L){ze(this,v,L)},t.prototype.off=function(v,L){Et(this,v,L)}}function Pe(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function je(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ne(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function et(t){Pe(t),je(t)}function mt(t){return t.target||t.srcElement}function At(t){var v=t.which;return v==null&&(t.button&1?v=1:t.button&2?v=3:t.button&4&&(v=2)),h&&t.ctrlKey&&v==1&&(v=3),v}var Ut=function(){if(C&&m<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Xt;function un(t){if(Xt==null){var v=x("span","\u200B");i(t,x("span",[v,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Xt=v.offsetWidth<=1&&v.offsetHeight>2&&!(C&&m<8))}var L=Xt?x("span","\u200B"):x("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return L.setAttribute("cm-text",""),L}var jt;function Zt(t){if(jt!=null)return jt;var v=i(t,document.createTextNode("A\u062EA")),L=T(v,0,1).getBoundingClientRect(),I=T(v,1,2).getBoundingClientRect();return l(t),!L||L.left==L.right?!1:jt=I.right-L.right<3}var Mt=` b`.split(/\n/).length!=3?function(t){for(var v=0,L=[],I=t.length;v<=I;){var j=t.indexOf(` `,v);j==-1&&(j=t.length);var ae=t.slice(v,t.charAt(j-1)=="\r"?j-1:j),xe=ae.indexOf("\r");xe!=-1?(L.push(ae.slice(0,xe)),v+=xe+1):(L.push(ae),v=j+1)}return L}:function(t){return t.split(/\r\n?|\n/)},Tt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(v){return!1}}:function(t){var v;try{v=t.ownerDocument.selection.createRange()}catch(L){}return!v||v.parentElement()!=t?!1:v.compareEndPoints("StartToEnd",v)!=0},Ct=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Re=null;function We(t){if(Re!=null)return Re;var v=i(t,x("span","x")),L=v.getBoundingClientRect(),I=T(v,0,1).getBoundingClientRect();return Re=Math.abs(L.left-I.left)>1}var St={},ft={};function It(t,v){arguments.length>2&&(v.dependencies=Array.prototype.slice.call(arguments,2)),St[t]=v}function Ot(t,v){ft[t]=v}function bt(t){if(typeof t=="string"&&ft.hasOwnProperty(t))t=ft[t];else if(t&&typeof t.name=="string"&&ft.hasOwnProperty(t.name)){var v=ft[t.name];typeof v=="string"&&(v={name:v}),t=ge(v,t),t.name=v.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return bt("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return bt("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Ht(t,v){v=bt(v);var L=St[v.name];if(!L)return Ht(t,"text/plain");var I=L(t,v);if(Gt.hasOwnProperty(v.name)){var j=Gt[v.name];for(var ae in j){if(!j.hasOwnProperty(ae))continue;I.hasOwnProperty(ae)&&(I["_"+ae]=I[ae]),I[ae]=j[ae]}}if(I.name=v.name,v.helperType&&(I.helperType=v.helperType),v.modeProps)for(var xe in v.modeProps)I[xe]=v.modeProps[xe];return I}var Gt={};function xn(t,v){var L=Gt.hasOwnProperty(t)?Gt[t]:Gt[t]={};K(v,L)}function vn(t,v){if(v===!0)return v;if(t.copyState)return t.copyState(v);var L={};for(var I in v){var j=v[I];j instanceof Array&&(j=j.concat([])),L[I]=j}return L}function sr(t,v){for(var L;t.innerMode&&!(L=t.innerMode(v),!L||L.mode==t);)v=L.state,t=L.mode;return L||{mode:t,state:v}}function xr(t,v,L){return t.startState?t.startState(v,L):!0}var Kn=function(t,v,L){this.pos=this.start=0,this.string=t,this.tabSize=v||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=L};Kn.prototype.eol=function(){return this.pos>=this.string.length},Kn.prototype.sol=function(){return this.pos==this.lineStart},Kn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kn.prototype.next=function(){if(this.posv},Kn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Kn.prototype.skipToEnd=function(){this.pos=this.string.length},Kn.prototype.skipTo=function(t){var v=this.string.indexOf(t,this.pos);if(v>-1)return this.pos=v,!0},Kn.prototype.backUp=function(t){this.pos-=t},Kn.prototype.column=function(){return this.lastColumnPos0?null:(ae&&v!==!1&&(this.pos+=ae[0].length),ae)}},Kn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kn.prototype.hideFirstChars=function(t,v){this.lineStart+=t;try{return v()}finally{this.lineStart-=t}},Kn.prototype.lookAhead=function(t){var v=this.lineOracle;return v&&v.lookAhead(t)},Kn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function En(t,v){if(v-=t.first,v<0||v>=t.size)throw new Error("There is no line "+(v+t.first)+" in the document.");for(var L=t;!L.lines;)for(var I=0;;++I){var j=L.children[I],ae=j.chunkSize();if(v=t.first&&vL?Le(L,En(t,L).text.length):Z(v,En(t,v.line).text.length)}function Z(t,v){var L=t.ch;return L==null||L>v?Le(t.line,v):L<0?Le(t.line,0):t}function ye(t,v){for(var L=[],I=0;Ithis.maxLookAhead&&(this.maxLookAhead=t),v},be.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var v=this.baseTokens[this.baseTokenPos+1];return{type:v&&v.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},be.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},be.fromSaved=function(t,v,L){return v instanceof Ce?new be(t,vn(t.mode,v.state),L,v.lookAhead):new be(t,vn(t.mode,v),L)},be.prototype.save=function(t){var v=t!==!1?vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ce(v,this.maxLookAhead):v};function ht(t,v,L,I){var j=[t.state.modeGen],ae={};ia(t,v.text,t.doc.mode,L,function(He,gt){return j.push(He,gt)},ae,I);for(var xe=L.state,Oe=function(He){L.baseTokens=j;var gt=t.state.overlays[He],wt=1,kt=0;L.state=!0,ia(t,v.text,gt.mode,L,function(Pt,an){for(var gn=wt;ktPt&&j.splice(wt,1,Pt,j[wt+1],Mn),wt+=2,kt=Math.min(Pt,Mn)}if(!an)return;if(gt.opaque)j.splice(gn,wt-gn,Pt,"overlay "+an),wt=gn+2;else for(;gnt.options.maxHighlightLength&&vn(t.doc.mode,I.state),ae=ht(t,v,I);j&&(I.state=j),v.stateAfter=I.save(!j),v.styles=ae.styles,ae.classes?v.styleClasses=ae.classes:v.styleClasses&&(v.styleClasses=null),L===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return v.styles}function sn(t,v,L){var I=t.doc,j=t.display;if(!I.mode.startState)return new be(I,!0,v);var ae=Dr(t,v,L),xe=ae>I.first&&En(I,ae-1).stateAfter,Oe=xe?be.fromSaved(I,xe,ae):new be(I,xr(I.mode),ae);return I.iter(ae,v,function(Me){pn(t,Me.text,Oe);var He=Oe.line;Me.stateAfter=He==v-1||He%5==0||He>=j.viewFrom&&Hev.start)return ae}throw new Error("Mode "+t.name+" failed to advance stream.")}var Un=function(t,v,L){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=v||null,this.state=L};function rr(t,v,L,I){var j=t.doc,ae=j.mode,xe;v=z(j,v);var Oe=En(j,v.line),Me=sn(t,v.line,L),He=new Kn(Oe.text,t.options.tabSize,Me),gt;for(I&&(gt=[]);(I||He.post.options.maxHighlightLength?(Oe=!1,xe&&pn(t,v,I,gt.pos),gt.pos=v.length,wt=null):wt=Sr(qn(L,gt,I.state,kt),ae),kt){var Pt=kt[0].name;Pt&&(wt="m-"+(wt?Pt+" "+wt:Pt))}if(!Oe||He!=wt){for(;Mexe;--Oe){if(Oe<=ae.first)return ae.first;var Me=En(ae,Oe-1),He=Me.stateAfter;if(He&&(!L||Oe+(He instanceof Ce?He.lookAhead:0)<=ae.modeFrontier))return Oe;var gt=G(Me.text,null,t.options.tabSize);(j==null||I>gt)&&(j=Oe-1,I=gt)}return j}function na(t,v){if(t.modeFrontier=Math.min(t.modeFrontier,v),t.highlightFrontierL;I--){var j=En(t,I).stateAfter;if(j&&(!(j instanceof Ce)||I+j.lookAhead=v:ae.to>v);(I||(I=[])).push(new xa(xe,ae.from,Me?null:ae.to))}}return I}function za(t,v,L){var I;if(t)for(var j=0;j=v:ae.to>v);if(Oe||ae.from==v&&xe.type=="bookmark"&&(!L||ae.marker.insertLeft)){var Me=ae.from==null||(xe.inclusiveLeft?ae.from<=v:ae.from0&&Oe)for(var pr=0;pr0)continue;var gt=[Me,1],wt=Qe(He.from,Oe.from),kt=Qe(He.to,Oe.to);(wt<0||!xe.inclusiveLeft&&!wt)&>.push({from:He.from,to:Oe.from}),(kt>0||!xe.inclusiveRight&&!kt)&>.push({from:Oe.to,to:He.to}),j.splice.apply(j,gt),Me+=gt.length-3}return j}function di(t){var v=t.markedSpans;if(!v)return;for(var L=0;Lv)&&(!I||Gr(I,ae.marker)<0)&&(I=ae.marker)}return I}function Fa(t,v,L,I,j){var ae=En(t,v),xe=ma&&ae.markedSpans;if(xe)for(var Oe=0;Oe=0&&wt<=0||gt<=0&&wt>=0)continue;if(gt<=0&&(Me.marker.inclusiveRight&&j.inclusiveLeft?Qe(He.to,L)>=0:Qe(He.to,L)>0)||gt>=0&&(Me.marker.inclusiveRight&&j.inclusiveLeft?Qe(He.from,I)<=0:Qe(He.from,I)<0))return!0}}function vi(t){for(var v;v=_a(t);)t=v.find(-1,!0).line;return t}function vo(t){for(var v;v=Jr(t);)t=v.find(1,!0).line;return t}function Wo(t){for(var v,L;v=Jr(t);)t=v.find(1,!0).line,(L||(L=[])).push(t);return L}function Ca(t,v){var L=En(t,v),I=vi(L);return L==I?v:Nr(I)}function Ro(t,v){if(v>t.lastLine())return v;var L=En(t,v),I;if(!hi(t,L))return v;for(;I=Jr(L);)L=I.find(1,!0).line;return Nr(L)+1}function hi(t,v){var L=ma&&v.markedSpans;if(L)for(var I=void 0,j=0;jv.maxLineLength&&(v.maxLineLength=j,v.maxLine=I)})}var Ui=function(t,v,L){this.text=t,Ma(this,v),this.height=L?L(this):1};Ui.prototype.lineNo=function(){return Nr(this)},$e(Ui);function Zo(t,v,L,I){t.text=v,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),di(t),Ma(t,L);var j=I?I(t):1;j!=t.height&&Xr(t,j)}function ps(t){t.parent=null,di(t)}var kn={},Cr={};function gr(t,v){if(!t||/^\s*$/.test(t))return null;var L=v.addModeClass?Cr:kn;return L[t]||(L[t]=t.replace(/\S+/g,"cm-$&"))}function Vr(t,v){var L=O("span",null,null,c?"padding-right: .1px":null),I={pre:O("pre",[L],"CodeMirror-line"),content:L,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};v.measure={};for(var j=0;j<=(v.rest?v.rest.length:0);j++){var ae=j?v.rest[j-1]:v.line,xe=void 0;I.pos=0,I.addToken=Sa,Zt(t.display.measure)&&(xe=xt(ae,t.doc.direction))&&(I.addToken=Ai(I.addToken,xe)),I.map=[];var Oe=v!=t.display.externalMeasured&&Nr(ae);ra(ae,I,Nt(t,ae,Oe)),ae.styleClasses&&(ae.styleClasses.bgClass&&(I.bgClass=H(ae.styleClasses.bgClass,I.bgClass||"")),ae.styleClasses.textClass&&(I.textClass=H(ae.styleClasses.textClass,I.textClass||""))),I.map.length==0&&I.map.push(0,0,I.content.appendChild(un(t.display.measure))),j==0?(v.measure.map=I.map,v.measure.cache={}):((v.measure.maps||(v.measure.maps=[])).push(I.map),(v.measure.caches||(v.measure.caches=[])).push({}))}if(c){var Me=I.content.lastChild;(/\bcm-tab\b/.test(Me.className)||Me.querySelector&&Me.querySelector(".cm-tab"))&&(I.content.className="cm-tab-wrap-hack")}return ct(t,"renderLine",t,v.line,I.pre),I.pre.className&&(I.textClass=H(I.pre.className,I.textClass||"")),I}function Aa(t){var v=x("span","\u2022","cm-invalidchar");return v.title="\\u"+t.charCodeAt(0).toString(16),v.setAttribute("aria-label",v.title),v}function Sa(t,v,L,I,j,ae,xe){if(!v)return;var Oe=t.splitSpaces?la(v,t.trailingSpace):v,Me=t.cm.state.specialChars,He=!1,gt;if(!Me.test(v))t.col+=v.length,gt=document.createTextNode(Oe),t.map.push(t.pos,t.pos+v.length,gt),C&&m<9&&(He=!0),t.pos+=v.length;else{gt=document.createDocumentFragment();for(var wt=0;;){Me.lastIndex=wt;var kt=Me.exec(v),Pt=kt?kt.index-wt:v.length-wt;if(Pt){var an=document.createTextNode(Oe.slice(wt,wt+Pt));C&&m<9?gt.appendChild(x("span",[an])):gt.appendChild(an),t.map.push(t.pos,t.pos+Pt,an),t.col+=Pt,t.pos+=Pt}if(!kt)break;wt+=Pt+1;var gn=void 0;if(kt[0]==" "){var Mn=t.cm.options.tabSize,Vn=Mn-t.col%Mn;gn=gt.appendChild(x("span",Ee(Vn),"cm-tab")),gn.setAttribute("role","presentation"),gn.setAttribute("cm-text"," "),t.col+=Vn}else kt[0]=="\r"||kt[0]==` `?(gn=gt.appendChild(x("span",kt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),gn.setAttribute("cm-text",kt[0]),t.col+=1):(gn=t.cm.options.specialCharPlaceholder(kt[0]),gn.setAttribute("cm-text",kt[0]),C&&m<9?gt.appendChild(x("span",[gn])):gt.appendChild(gn),t.col+=1);t.map.push(t.pos,t.pos+1,gn),t.pos++}}if(t.trailingSpace=Oe.charCodeAt(v.length-1)==32,L||I||j||He||ae||xe){var or=L||"";I&&(or+=I),j&&(or+=j);var Yn=x("span",[gt],or,ae);if(xe)for(var pr in xe)xe.hasOwnProperty(pr)&&pr!="style"&&pr!="class"&&Yn.setAttribute(pr,xe[pr]);return t.content.appendChild(Yn)}t.content.appendChild(gt)}function la(t,v){if(t.length>1&&!/ /.test(t))return t;for(var L=v,I="",j=0;jHe&&wt.from<=He);kt++);if(wt.to>=gt)return t(L,I,j,ae,xe,Oe,Me);t(L,I.slice(0,wt.to-He),j,ae,null,Oe,Me),ae=null,I=I.slice(wt.to-He),He=wt.to}}}function Hi(t,v,L,I){var j=!I&&L.widgetNode;j&&t.map.push(t.pos,t.pos+v,j),!I&&t.cm.display.input.needsContentAttribute&&(j||(j=t.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",L.id)),j&&(t.cm.display.input.setUneditable(j),t.content.appendChild(j)),t.pos+=v,t.trailingSpace=!1}function ra(t,v,L){var I=t.markedSpans,j=t.text,ae=0;if(!I){for(var xe=1;xeMe||pa.collapsed&&Lr.to==Me&&Lr.from==Me)){if(Lr.to!=null&&Lr.to!=Me&&Pt>Lr.to&&(Pt=Lr.to,gn=""),pa.className&&(an+=" "+pa.className),pa.css&&(kt=(kt?kt+";":"")+pa.css),pa.startStyle&&Lr.from==Me&&(Mn+=" "+pa.startStyle),pa.endStyle&&Lr.to==Pt&&(pr||(pr=[])).push(pa.endStyle,Lr.to),pa.title&&((or||(or={})).title=pa.title),pa.attributes)for(var ci in pa.attributes)(or||(or={}))[ci]=pa.attributes[ci];pa.collapsed&&(!Vn||Gr(Vn.marker,pa)<0)&&(Vn=Lr)}else Lr.from>Me&&Pt>Lr.from&&(Pt=Lr.from)}if(pr)for(var so=0;so=Oe)break;for(var Yo=Math.min(Oe,Pt);;){if(gt){var Co=Me+gt.length;if(!Vn){var zi=Co>Yo?gt.slice(0,Yo-Me):gt;v.addToken(v,zi,wt?wt+an:an,Mn,Me+zi.length==Pt?gn:"",kt,or)}if(Co>=Yo){gt=gt.slice(Yo-Me),Me=Yo;break}Me=Co,Mn=""}gt=j.slice(ae,ae=L[He++]),wt=gr(L[He++],v.cm.options)}}}function zo(t,v,L){this.line=v,this.rest=Wo(v),this.size=this.rest?Nr(pe(this.rest))-L+1:1,this.node=this.text=null,this.hidden=hi(t,v)}function fa(t,v,L){for(var I=[],j,ae=v;ae2&&ae.push((Me.bottom+He.top)/2-L.top)}}ae.push(L.bottom-L.top)}}function Be(t,v,L){if(t.line==v)return{map:t.measure.map,cache:t.measure.cache};for(var I=0;IL)return{map:t.measure.maps[j],cache:t.measure.caches[j],before:!0}}function at(t,v){v=vi(v);var L=Nr(v),I=t.display.externalMeasured=new zo(t.doc,v,L);I.lineN=L;var j=I.built=Vr(t,I);return I.text=j.pre,i(t.display.lineMeasure,j.pre),I}function nt(t,v,L,I){return dt(t,it(t,v),L,I)}function st(t,v){if(v>=t.display.viewFrom&&v=L.lineN&&vv)&&(ae=Me-Oe,j=ae-1,v>=Me&&(xe="right")),j!=null){if(I=t[He+2],Oe==Me&&L==(I.insertLeft?"left":"right")&&(xe=L),L=="left"&&j==0)for(;He&&t[He-2]==t[He-3]&&t[He-1].insertLeft;)I=t[(He-=3)+2],xe="left";if(L=="right"&&j==Me-Oe)for(;He=0&&!((L=t[j]).left!=L.right);j--);return L}function $t(t,v,L,I){var j=Qt(v.map,L,I),ae=j.node,xe=j.start,Oe=j.end,Me=j.collapse,He;if(ae.nodeType==3){for(var gt=0;gt<4;gt++){for(;xe&&F(v.line.text.charAt(j.coverStart+xe));)--xe;for(;j.coverStart+Oe0&&(Me=I="right");var wt;t.options.lineWrapping&&(wt=ae.getClientRects()).length>1?He=wt[I=="right"?wt.length-1:0]:He=ae.getBoundingClientRect()}if(C&&m<9&&!xe&&(!He||!He.left&&!He.right)){var kt=ae.parentNode.getClientRects()[0];kt?He={left:kt.left,right:kt.left+Qn(t.display),top:kt.top,bottom:kt.bottom}:He=Dt}for(var Pt=He.top-v.rect.top,an=He.bottom-v.rect.top,gn=(Pt+an)/2,Mn=v.view.measure.heights,Vn=0;Vn=I.text.length?(Me=I.text.length,He="before"):Me<=0&&(Me=0,He="after"),!Oe)return xe(He=="before"?Me-1:Me,He=="before");function gt(an,gn,Mn){var Vn=Oe[gn],or=Vn.level==1;return xe(Mn?an-1:an,or!=Mn)}var wt=De(Oe,Me,He),kt=le,Pt=gt(Me,wt,He=="before");return kt!=null&&(Pt.other=gt(Me,kt,He!="before")),Pt}function hn(t,v){var L=0;v=z(t.doc,v),t.options.lineWrapping||(L=Qn(t.display)*v.ch);var I=En(t.doc,v.line),j=eo(I)+Hs(t.display);return{left:L,right:L,top:j,bottom:j+I.height}}function An(t,v,L,I,j){var ae=Le(t,v,L);return ae.xRel=j,I&&(ae.outside=I),ae}function _n(t,v,L){var I=t.doc;if(L+=t.display.viewOffset,L<0)return An(I.first,0,null,-1,-1);var j=ba(I,L),ae=I.first+I.size-1;if(j>ae)return An(I.first+I.size-1,En(I,ae).text.length,null,1,1);v<0&&(v=0);for(var xe=En(I,j);;){var Oe=Ir(t,xe,j,v,L),Me=ji(xe,Oe.ch+(Oe.xRel>0||Oe.outside>0?1:0));if(!Me)return Oe;var He=Me.find(1);if(He.line==j)return He;xe=En(I,j=He.line)}}function tr(t,v,L,I){I-=tn(v);var j=v.text.length,ae=de(function(xe){return dt(t,L,xe-1).bottom<=I},j,0);return j=de(function(xe){return dt(t,L,xe).top>I},ae,j),{begin:ae,end:j}}function cn(t,v,L,I){L||(L=it(t,v));var j=bn(t,v,dt(t,L,I),"line").top;return tr(t,v,L,j)}function Fn(t,v,L,I){return t.bottom<=L?!1:t.top>L?!0:(I?t.left:t.right)>v}function Ir(t,v,L,I,j){j-=eo(v);var ae=it(t,v),xe=tn(v),Oe=0,Me=v.text.length,He=!0,gt=xt(v,t.doc.direction);if(gt){var wt=(t.options.lineWrapping?Br:hr)(t,v,L,ae,gt,I,j);He=wt.level!=1,Oe=He?wt.from:wt.to-1,Me=He?wt.to:wt.from-1}var kt=null,Pt=null,an=de(function(Hr){var Lr=dt(t,ae,Hr);return Lr.top+=xe,Lr.bottom+=xe,Fn(Lr,I,j,!1)?(Lr.top<=j&&Lr.left<=I&&(kt=Hr,Pt=Lr),!0):!1},Oe,Me),gn,Mn,Vn=!1;if(Pt){var or=I-Pt.left=pr.bottom?1:0}return an=W(v.text,an,1),An(L,an,Mn,Vn,I-gn)}function hr(t,v,L,I,j,ae,xe){var Oe=de(function(wt){var kt=j[wt],Pt=kt.level!=1;return Fn(rn(t,Le(L,Pt?kt.to:kt.from,Pt?"before":"after"),"line",v,I),ae,xe,!0)},0,j.length-1),Me=j[Oe];if(Oe>0){var He=Me.level!=1,gt=rn(t,Le(L,He?Me.from:Me.to,He?"after":"before"),"line",v,I);Fn(gt,ae,xe,!0)&>.top>xe&&(Me=j[Oe-1])}return Me}function Br(t,v,L,I,j,ae,xe){var Oe=tr(t,v,I,xe),Me=Oe.begin,He=Oe.end;/\s/.test(v.text.charAt(He-1))&&He--;for(var gt=null,wt=null,kt=0;kt=He||Pt.to<=Me)continue;var an=Pt.level!=1,gn=dt(t,I,an?Math.min(He,Pt.to)-1:Math.max(Me,Pt.from)).right,Mn=gnMn)&&(gt=Pt,wt=Mn)}return gt||(gt=j[j.length-1]),gt.fromHe&&(gt={from:gt.from,to:He,level:gt.level}),gt}var ur;function Fr(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(ur==null){ur=x("pre",null,"CodeMirror-line-like");for(var v=0;v<49;++v)ur.appendChild(document.createTextNode("x")),ur.appendChild(x("br"));ur.appendChild(document.createTextNode("x"))}i(t.measure,ur);var L=ur.offsetHeight/50;return L>3&&(t.cachedTextHeight=L),l(t.measure),L||1}function Qn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var v=x("span","xxxxxxxxxx"),L=x("pre",[v],"CodeMirror-line-like");i(t.measure,L);var I=v.getBoundingClientRect(),j=(I.right-I.left)/10;return j>2&&(t.cachedCharWidth=j),j||10}function kr(t){for(var v=t.display,L={},I={},j=v.gutters.clientLeft,ae=v.gutters.firstChild,xe=0;ae;ae=ae.nextSibling,++xe){var Oe=t.display.gutterSpecs[xe].className;L[Oe]=ae.offsetLeft+ae.clientLeft+j,I[Oe]=ae.clientWidth}return{fixedPos:ta(v),gutterTotalWidth:v.gutters.offsetWidth,gutterLeft:L,gutterWidth:I,wrapperWidth:v.wrapper.clientWidth}}function ta(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Wr(t){var v=Fr(t.display),L=t.options.lineWrapping,I=L&&Math.max(5,t.display.scroller.clientWidth/Qn(t.display)-3);return function(j){if(hi(t.doc,j))return 0;var ae=0;if(j.widgets)for(var xe=0;xe0&&(He=En(t.doc,Me.line).text).length==Me.ch){var gt=G(He,He.length,t.options.tabSize)-He.length;Me=Le(Me.line,Math.max(0,Math.round((ae-Ge(t.display).left)/Qn(t.display))-gt))}return Me}function ar(t,v){if(v>=t.display.viewTo)return null;if(v-=t.display.viewFrom,v<0)return null;for(var L=t.display.view,I=0;Iv)&&(j.updateLineNumbers=v),t.curOp.viewChanged=!0,v>=j.viewTo)ma&&Ca(t.doc,v)j.viewFrom?$n(t):(j.viewFrom+=I,j.viewTo+=I);else if(v<=j.viewFrom&&L>=j.viewTo)$n(t);else if(v<=j.viewFrom){var ae=ir(t,L,L+I,1);ae?(j.view=j.view.slice(ae.index),j.viewFrom=ae.lineN,j.viewTo+=I):$n(t)}else if(L>=j.viewTo){var xe=ir(t,v,v,-1);xe?(j.view=j.view.slice(0,xe.index),j.viewTo=xe.lineN):$n(t)}else{var Oe=ir(t,v,v,-1),Me=ir(t,L,L+I,1);Oe&&Me?(j.view=j.view.slice(0,Oe.index).concat(fa(t,Oe.lineN,Me.lineN)).concat(j.view.slice(Me.index)),j.viewTo+=I):$n(t)}var He=j.externalMeasured;He&&(L=j.lineN&&v=I.viewTo)return;var ae=I.view[ar(t,v)];if(ae.node==null)return;var xe=ae.changes||(ae.changes=[]);Q(xe,L)==-1&&xe.push(L)}function $n(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ir(t,v,L,I){var j=ar(t,v),ae,xe=t.display.view;if(!ma||L==t.doc.first+t.doc.size)return{index:j,lineN:L};for(var Oe=t.display.viewFrom,Me=0;Me0){if(j==xe.length-1)return null;ae=Oe+xe[j].size-v,j++}else ae=Oe-v;v+=ae,L+=ae}for(;Ca(t.doc,L)!=L;){if(j==(I<0?0:xe.length-1))return null;L+=I*xe[j-(I<0?1:0)].size,j+=I}return{index:j,lineN:L}}function Zn(t,v,L){var I=t.display,j=I.view;j.length==0||v>=I.viewTo||L<=I.viewFrom?(I.view=fa(t,v,L),I.viewFrom=v):(I.viewFrom>v?I.view=fa(t,v,I.viewFrom).concat(I.view):I.viewFromL&&(I.view=I.view.slice(0,ar(t,L)))),I.viewTo=L}function zn(t){for(var v=t.display.view,L=0,I=0;I=t.display.viewTo||Oe.to().line0?v.blinker=setInterval(function(){t.hasFocus()||aa(t),v.cursorDiv.style.visibility=(L=!L)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(v.cursorDiv.style.visibility="hidden")}function Kr(t){t.state.focused||(t.display.input.focus(),Ra(t))}function Va(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,aa(t))},100)}function Ra(t,v){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(ct(t,"focus",t,v),t.state.focused=!0,k(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),c&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),mr(t)}function aa(t,v){if(t.state.delayingBlurEvent)return;t.state.focused&&(ct(t,"blur",t,v),t.state.focused=!1,A(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function gi(t){for(var v=t.display,L=v.lineDiv.offsetTop,I=0;I.005||gt<-.005)&&(Xr(j.line,xe),ti(j.line),j.rest))for(var wt=0;wtt.display.sizerWidth){var kt=Math.ceil(Oe/Qn(t.display));kt>t.display.maxLineLength&&(t.display.maxLineLength=kt,t.display.maxLine=j.line,t.display.maxLineChanged=!0)}}}function ti(t){if(t.widgets)for(var v=0;v=xe&&(ae=ba(v,eo(En(v,Me))-t.wrapper.clientHeight),xe=Me)}return{from:ae,to:Math.max(xe,ae+1)}}function no(t,v){if(lt(t,"scrollCursorIntoView"))return;var L=t.display,I=L.sizer.getBoundingClientRect(),j=null;if(v.top+I.top<0?j=!0:v.bottom+I.top>(window.innerHeight||document.documentElement.clientHeight)&&(j=!1),j!=null&&!o){var ae=x("div","\u200B",null,`position: absolute; top: `+(v.top-L.viewOffset-Hs(t.display))+`px; height: `+(v.bottom-v.top+Ye(t)+L.barHeight)+`px; left: `+v.left+"px; width: "+Math.max(2,v.right-v.left)+"px;");t.display.lineSpace.appendChild(ae),ae.scrollIntoView(j),t.display.lineSpace.removeChild(ae)}}function ro(t,v,L,I){I==null&&(I=0);var j;!t.options.lineWrapping&&v==L&&(v=v.ch?Le(v.line,v.sticky=="before"?v.ch-1:v.ch,"after"):v,L=v.sticky=="before"?Le(v.line,v.ch+1,"before"):v);for(var ae=0;ae<5;ae++){var xe=!1,Oe=rn(t,v),Me=!L||L==v?Oe:rn(t,L);j={left:Math.min(Oe.left,Me.left),top:Math.min(Oe.top,Me.top)-I,right:Math.max(Oe.left,Me.left),bottom:Math.max(Oe.bottom,Me.bottom)+I};var He=Io(t,j),gt=t.doc.scrollTop,wt=t.doc.scrollLeft;if(He.scrollTop!=null&&(ho(t,He.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(xe=!0)),He.scrollLeft!=null&&(Mi(t,He.scrollLeft),Math.abs(t.doc.scrollLeft-wt)>1&&(xe=!0)),!xe)break}return j}function Di(t,v){var L=Io(t,v);L.scrollTop!=null&&ho(t,L.scrollTop),L.scrollLeft!=null&&Mi(t,L.scrollLeft)}function Io(t,v){var L=t.display,I=Fr(t.display);v.top<0&&(v.top=0);var j=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:L.scroller.scrollTop,ae=Te(t),xe={};v.bottom-v.top>ae&&(v.bottom=v.top+ae);var Oe=t.doc.height+ut(L),Me=v.topOe-I;if(v.topj+ae){var gt=Math.min(v.top,(He?Oe:v.bottom)-ae);gt!=j&&(xe.scrollTop=gt)}var wt=t.options.fixedGutter?0:L.gutters.offsetWidth,kt=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:L.scroller.scrollLeft-wt,Pt=Je(t)-L.gutters.offsetWidth,an=v.right-v.left>Pt;return an&&(v.right=v.left+Pt),v.left<10?xe.scrollLeft=0:v.leftPt+kt-3&&(xe.scrollLeft=v.right+(an?0:10)-Pt),xe}function Mo(t,v){if(v==null)return;So(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+v}function ao(t){So(t);var v=t.getCursor();t.curOp.scrollToPos={from:v,to:v,margin:t.options.cursorScrollMargin}}function Ii(t,v,L){(v!=null||L!=null)&&So(t),v!=null&&(t.curOp.scrollLeft=v),L!=null&&(t.curOp.scrollTop=L)}function ki(t,v){So(t),t.curOp.scrollToPos=v}function So(t){var v=t.curOp.scrollToPos;if(v){t.curOp.scrollToPos=null;var L=hn(t,v.from),I=hn(t,v.to);co(t,L,I,v.margin)}}function co(t,v,L,I){var j=Io(t,{left:Math.min(v.left,L.left),top:Math.min(v.top,L.top)-I,right:Math.max(v.right,L.right),bottom:Math.max(v.bottom,L.bottom)+I});Ii(t,j.scrollLeft,j.scrollTop)}function ho(t,v){if(Math.abs(t.doc.scrollTop-v)<2)return;P||Ji(t,{top:v}),Qi(t,v,!0),P&&Ji(t),Yi(t,100)}function Qi(t,v,L){if(v=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,v)),t.display.scroller.scrollTop==v&&!L)return;t.doc.scrollTop=v,t.display.scrollbars.setScrollTop(v),t.display.scroller.scrollTop!=v&&(t.display.scroller.scrollTop=v)}function Mi(t,v,L,I){if(v=Math.max(0,Math.min(v,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(L?v==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-v)<2)&&!I)return;t.doc.scrollLeft=v,Ur(t),t.display.scroller.scrollLeft!=v&&(t.display.scroller.scrollLeft=v),t.display.scrollbars.setScrollLeft(v)}function Vi(t){var v=t.display,L=v.gutters.offsetWidth,I=Math.round(t.doc.height+ut(t.display));return{clientHeight:v.scroller.clientHeight,viewHeight:v.wrapper.clientHeight,scrollWidth:v.scroller.scrollWidth,clientWidth:v.scroller.clientWidth,viewWidth:v.wrapper.clientWidth,barLeft:t.options.fixedGutter?L:0,docHeight:I,scrollHeight:I+Ye(t)+v.barHeight,nativeBarWidth:v.nativeBarWidth,gutterWidth:L}}var Ki=function(t,v,L){this.cm=L;var I=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=j.tabIndex=-1,t(I),t(j),ze(I,"scroll",function(){I.clientHeight&&v(I.scrollTop,"vertical")}),ze(j,"scroll",function(){j.clientWidth&&v(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,C&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ki.prototype.update=function(t){var v=t.scrollWidth>t.clientWidth+1,L=t.scrollHeight>t.clientHeight+1,I=t.nativeBarWidth;if(L){this.vert.style.display="block",this.vert.style.bottom=v?I+"px":"0";var j=t.viewHeight-(v?I:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+j)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(v){this.horiz.style.display="block",this.horiz.style.right=L?I+"px":"0",this.horiz.style.left=t.barLeft+"px";var ae=t.viewWidth-t.barLeft-(L?I:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+ae)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:L?I:0,bottom:v?I:0}},Ki.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ki.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ki.prototype.zeroWidthHack=function(){var t=h&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new N,this.disableVert=new N},Ki.prototype.enableZeroWidthBar=function(t,v,L){t.style.pointerEvents="auto";function I(){var j=t.getBoundingClientRect(),ae=L=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);ae!=t?t.style.pointerEvents="none":v.set(1e3,I)}v.set(1e3,I)},Ki.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var go=function(){};go.prototype.update=function(){return{bottom:0,right:0}},go.prototype.setScrollLeft=function(){},go.prototype.setScrollTop=function(){},go.prototype.clear=function(){};function Fi(t,v){v||(v=Vi(t));var L=t.display.barWidth,I=t.display.barHeight;yo(t,v);for(var j=0;j<4&&L!=t.display.barWidth||I!=t.display.barHeight;j++)L!=t.display.barWidth&&t.options.lineWrapping&&gi(t),yo(t,Vi(t)),L=t.display.barWidth,I=t.display.barHeight}function yo(t,v){var L=t.display,I=L.scrollbars.update(v);L.sizer.style.paddingRight=(L.barWidth=I.right)+"px",L.sizer.style.paddingBottom=(L.barHeight=I.bottom)+"px",L.heightForcer.style.borderBottom=I.bottom+"px solid transparent",I.right&&I.bottom?(L.scrollbarFiller.style.display="block",L.scrollbarFiller.style.height=I.bottom+"px",L.scrollbarFiller.style.width=I.right+"px"):L.scrollbarFiller.style.display="",I.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(L.gutterFiller.style.display="block",L.gutterFiller.style.height=I.bottom+"px",L.gutterFiller.style.width=v.gutterWidth+"px"):L.gutterFiller.style.display=""}var Xa={native:Ki,null:go};function io(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Xa[t.options.scrollbarStyle](function(v){t.display.wrapper.insertBefore(v,t.display.scrollbarFiller),ze(v,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),v.setAttribute("cm-not-content","true")},function(v,L){L=="horizontal"?Mi(t,v):ho(t,v)},t),t.display.scrollbars.addClass&&k(t.display.wrapper,t.display.scrollbars.addClass)}var Lo=0;function Wi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++Lo},uo(t.curOp)}function Ti(t){var v=t.curOp;v&&va(v,function(L){for(var I=0;I=L.viewTo)||L.maxLineChanged&&v.options.lineWrapping,t.update=t.mustUpdate&&new Li(v,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function $o(t){t.updatedDisplay=t.mustUpdate&&Bi(t.cm,t.update)}function Go(t){var v=t.cm,L=v.display;t.updatedDisplay&&gi(v),t.barMeasure=Vi(v),L.maxLineChanged&&!v.options.lineWrapping&&(t.adjustWidthTo=nt(v,L.maxLine,L.maxLine.text.length).left+3,v.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(L.scroller.clientWidth,L.sizer.offsetLeft+t.adjustWidthTo+Ye(v)+v.display.barWidth),t.maxScrollLeft=Math.max(0,L.sizer.offsetLeft+t.adjustWidthTo-Je(v))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=L.input.prepareSelection())}function Xi(t){var v=t.cm;t.adjustWidthTo!=null&&(v.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)return;var L=+new Date+t.options.workTime,I=sn(t,v.highlightFrontier),j=[];v.iter(I.line,Math.min(v.first+v.size,t.display.viewTo+500),function(ae){if(I.line>=t.display.viewFrom){var xe=ae.styles,Oe=ae.text.length>t.options.maxHighlightLength?vn(v.mode,I.state):null,Me=ht(t,ae,I,!0);Oe&&(I.state=Oe),ae.styles=Me.styles;var He=ae.styleClasses,gt=Me.classes;gt?ae.styleClasses=gt:He&&(ae.styleClasses=null);for(var wt=!xe||xe.length!=ae.styles.length||He!=gt&&(!He||!gt||He.bgClass!=gt.bgClass||He.textClass!=gt.textClass),kt=0;!wt&&ktL)return Yi(t,t.options.workDelay),!0}),v.highlightFrontier=I.line,v.modeFrontier=Math.max(v.modeFrontier,I.line),j.length&&yi(t,function(){for(var ae=0;ae=L.viewFrom&&v.visible.to<=L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo)&&L.renderedView==L.view&&zn(t)==0)return!1;ui(t)&&($n(t),v.dims=kr(t));var j=I.first+I.size,ae=Math.max(v.visible.from-t.options.viewportMargin,I.first),xe=Math.min(j,v.visible.to+t.options.viewportMargin);L.viewFromxe&&L.viewTo-xe<20&&(xe=Math.min(j,L.viewTo)),ma&&(ae=Ca(t.doc,ae),xe=Ro(t.doc,xe));var Oe=ae!=L.viewFrom||xe!=L.viewTo||L.lastWrapHeight!=v.wrapperHeight||L.lastWrapWidth!=v.wrapperWidth;Zn(t,ae,xe),L.viewOffset=eo(En(t.doc,L.viewFrom)),t.display.mover.style.top=L.viewOffset+"px";var Me=zn(t);if(!Oe&&Me==0&&!v.force&&L.renderedView==L.view&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo))return!1;var He=Po(t);return Me>4&&(L.lineDiv.style.display="none"),vs(t,L.updateLineNumbers,v.dims),Me>4&&(L.lineDiv.style.display=""),L.renderedView=L.view,Xo(He),l(L.cursorDiv),l(L.selectionDiv),L.gutters.style.height=L.sizer.style.minHeight=0,Oe&&(L.lastWrapHeight=v.wrapperHeight,L.lastWrapWidth=v.wrapperWidth,Yi(t,400)),L.updateLineNumbers=null,!0}function In(t,v){for(var L=v.viewport,I=!0;;I=!1){if(!I||!t.options.lineWrapping||v.oldDisplayWidth==Je(t)){if(L&&L.top!=null&&(L={top:Math.min(t.doc.height+ut(t.display)-Te(t),L.top)}),v.visible=Ka(t.display,t.doc,L),v.visible.from>=t.display.viewFrom&&v.visible.to<=t.display.viewTo)break}else I&&(v.visible=Ka(t.display,t.doc,L));if(!Bi(t,v))break;gi(t);var j=Vi(t);fn(t),Fi(t,j),ca(t,j),v.force=!1}v.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(v.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Ji(t,v){var L=new Li(t,v);if(Bi(t,L)){gi(t),In(t,L);var I=Vi(t);fn(t),Fi(t,I),ca(t,I),L.finish()}}function vs(t,v,L){var I=t.display,j=t.options.lineNumbers,ae=I.lineDiv,xe=ae.firstChild;function Oe(an){var gn=an.nextSibling;return c&&h&&t.display.currentWheelTarget==an?an.style.display="none":an.parentNode.removeChild(an),gn}for(var Me=I.view,He=I.viewFrom,gt=0;gt-1&&(Pt=!1),ls(t,wt,He,L)),Pt&&(l(wt.lineNumber),wt.lineNumber.appendChild(document.createTextNode(oi(t.options,He)))),xe=wt.node.nextSibling}He+=wt.size}for(;xe;)xe=Oe(xe)}function ts(t){var v=t.gutters.offsetWidth;t.sizer.style.marginLeft=v+"px"}function ca(t,v){t.display.sizer.style.minHeight=v.docHeight+"px",t.display.heightForcer.style.top=v.docHeight+"px",t.display.gutters.style.height=v.docHeight+t.display.barHeight+Ye(t)+"px"}function Ur(t){var v=t.display,L=v.view;if(!v.alignWidgets&&(!v.gutters.firstChild||!t.options.fixedGutter))return;for(var I=ta(v)-v.scroller.scrollLeft+t.doc.scrollLeft,j=v.gutters.offsetWidth,ae=I+"px",xe=0;xexe.clientWidth,Me=xe.scrollHeight>xe.clientHeight;if(!(I&&Oe||j&&Me))return;if(j&&h&&c){e:for(var He=v.target,gt=ae.view;He!=xe;He=He.parentNode)for(var wt=0;wt=0&&Qe(t,I.to())<=0)return L}return-1};var Tn=function(t,v){this.anchor=t,this.head=v};Tn.prototype.from=function(){return nn(this.anchor,this.head)},Tn.prototype.to=function(){return Kt(this.anchor,this.head)},Tn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Lt(t,v,L){var I=t&&t.options.selectionsMayTouch,j=v[L];v.sort(function(kt,Pt){return Qe(kt.from(),Pt.from())}),L=Q(v,j);for(var ae=1;ae0:Me>=0){var He=nn(Oe.from(),xe.from()),gt=Kt(Oe.to(),xe.to()),wt=Oe.empty()?xe.from()==xe.head:Oe.from()==Oe.head;ae<=L&&--L,v.splice(--ae,2,new Tn(wt?gt:He,wt?He:gt))}}return new Za(v,L)}function Yt(t,v){return new Za([new Tn(t,v||t)],0)}function Cn(t){return t.text?Le(t.from.line+t.text.length-1,pe(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Vt(t,v){if(Qe(t,v.from)<0)return t;if(Qe(t,v.to)<=0)return Cn(v);var L=t.line+v.text.length-(v.to.line-v.from.line)-1,I=t.ch;return t.line==v.to.line&&(I+=Cn(v).ch-v.to.ch),Le(L,I)}function er(t,v){for(var L=[],I=0;I1&&t.remove(Oe.line+1,an-1),t.insert(Oe.line+1,Vn)}ua(t,"change",t,v)}function La(t,v,L){function I(j,ae,xe){if(j.linked)for(var Oe=0;Oe1&&!t.done[t.done.length-2].ranges)return t.done.pop(),pe(t.done)}function Fo(t,v,L,I){var j=t.history;j.undone.length=0;var ae=+new Date,xe,Oe;if((j.lastOp==I||j.lastOrigin==v.origin&&v.origin&&(v.origin.charAt(0)=="+"&&j.lastModTime>ae-(t.cm?t.cm.options.historyEventDelay:500)||v.origin.charAt(0)=="*"))&&(xe=ko(j,j.lastOp==I)))Oe=pe(xe.changes),Qe(v.from,v.to)==0&&Qe(v.from,Oe.to)==0?Oe.to=Cn(v):xe.changes.push(Ya(t,v));else{var Me=pe(j.done);for((!Me||!Me.ranges)&&Ts(t.sel,j.done),xe={changes:[Ya(t,v)],generation:j.generation},j.done.push(xe);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(L),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=ae,j.lastOp=j.lastSelOp=I,j.lastOrigin=j.lastSelOrigin=v.origin,Oe||ct(t,"historyAdded")}function No(t,v,L,I){var j=v.charAt(0);return j=="*"||j=="+"&&L.ranges.length==I.ranges.length&&L.somethingSelected()==I.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function jo(t,v,L,I){var j=t.history,ae=I&&I.origin;L==j.lastSelOp||ae&&j.lastSelOrigin==ae&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==ae||No(t,ae,pe(j.done),v))?j.done[j.done.length-1]=v:Ts(v,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=ae,j.lastSelOp=L,I&&I.clearRedo!==!1&&fi(j.undone)}function Ts(t,v){var L=pe(v);L&&L.ranges&&L.equals(t)||v.push(t)}function hl(t,v,L,I){var j=v["spans_"+t.id],ae=0;t.iter(Math.max(t.first,L),Math.min(t.first+t.size,I),function(xe){xe.markedSpans&&((j||(j=v["spans_"+t.id]={}))[ae]=xe.markedSpans),++ae})}function Al(t){if(!t)return null;for(var v,L=0;L-1&&(pe(Oe)[wt]=He[wt],delete He[wt]))}}return I}function Ks(t,v,L,I){if(I){var j=t.anchor;if(L){var ae=Qe(v,j)<0;ae!=Qe(L,j)<0?(j=v,v=L):ae!=Qe(v,L)<0&&(v=L)}return new Tn(j,v)}else return new Tn(L||v,v)}function Bs(t,v,L,I,j){j==null&&(j=t.cm&&(t.cm.display.shift||t.extend)),Ni(t,new Za([Ks(t.sel.primary(),v,L,j)],0),I)}function fo(t,v,L){for(var I=[],j=t.cm&&(t.cm.display.shift||t.extend),ae=0;ae=v.ch:Oe.to>v.ch))){if(j&&(ct(Me,"beforeCursorEnter"),Me.explicitlyCleared))if(ae.markedSpans){--xe;continue}else break;if(!Me.atomic)continue;if(L){var wt=Me.find(I<0?1:-1),kt=void 0;if((I<0?gt:He)&&(wt=Rr(t,wt,-I,wt&&wt.line==v.line?ae:null)),wt&&wt.line==v.line&&(kt=Qe(wt,L))&&(I<0?kt<0:kt>0))return Qo(t,wt,v,I,j)}var Pt=Me.find(I<0?-1:1);return(I<0?He:gt)&&(Pt=Rr(t,Pt,I,Pt.line==v.line?ae:null)),Pt?Qo(t,Pt,v,I,j):null}}return v}function Zr(t,v,L,I,j){var ae=I||1,xe=Qo(t,v,L,ae,j)||!j&&Qo(t,v,L,ae,!0)||Qo(t,v,L,-ae,j)||!j&&Qo(t,v,L,-ae,!0);return xe||(t.cantEdit=!0,Le(t.first,0))}function Rr(t,v,L,I){return L<0&&v.ch==0?v.line>t.first?z(t,Le(v.line-1)):null:L>0&&v.ch==(I||En(t,v.line)).text.length?v.line=0;--j)Pn(t,{from:I[j].from,to:I[j].to,text:j?[""]:v.text,origin:v.origin});else Pn(t,v)}function Pn(t,v){if(v.text.length==1&&v.text[0]==""&&Qe(v.from,v.to)==0)return;var L=er(t,v);Fo(t,v,L,t.cm?t.cm.curOp.id:NaN),Bn(t,v,L,Ga(t,v));var I=[];La(t,function(j,ae){!ae&&Q(I,j.history)==-1&&(Ja(j.history,v),I.push(j.history)),Bn(j,v,null,Ga(j,v))})}function wn(t,v,L){var I=t.cm&&t.cm.state.suppressEdits;if(I&&!L)return;for(var j=t.history,ae,xe=t.sel,Oe=v=="undo"?j.done:j.undone,Me=v=="undo"?j.undone:j.done,He=0;He=0;--Pt){var an=kt(Pt);if(an)return an.v}}function nr(t,v){if(v==0)return;if(t.first+=v,t.sel=new Za(he(t.sel.ranges,function(j){return new Tn(Le(j.anchor.line+v,j.anchor.ch),Le(j.head.line+v,j.head.ch))}),t.sel.primIndex),t.cm){Pr(t.cm,t.first,t.first-v,v);for(var L=t.cm.display,I=L.viewFrom;It.lastLine())return;if(v.from.lineae&&(v={from:v.from,to:Le(ae,En(t,ae).text.length),text:[v.text[0]],origin:v.origin}),v.removed=Qr(t,v.from,v.to),L||(L=er(t,v)),t.cm?_r(t.cm,v,I):Pi(t,v,I),zs(t,L,oe),t.cantEdit&&Zr(t,Le(t.firstLine(),0))&&(t.cantEdit=!1)}function _r(t,v,L){var I=t.doc,j=t.display,ae=v.from,xe=v.to,Oe=!1,Me=ae.line;t.options.lineWrapping||(Me=Nr(vi(En(I,ae.line))),I.iter(Me,xe.line+1,function(Pt){if(Pt==j.maxLine)return Oe=!0,!0})),I.sel.contains(v.from,v.to)>-1&&rt(t),Pi(I,v,L,Wr(t)),t.options.lineWrapping||(I.iter(Me,ae.line+v.text.length,function(Pt){var an=ss(Pt);an>j.maxLineLength&&(j.maxLine=Pt,j.maxLineLength=an,j.maxLineChanged=!0,Oe=!1)}),Oe&&(t.curOp.updateMaxLine=!0)),na(I,ae.line),Yi(t,400);var He=v.text.length-(xe.line-ae.line)-1;v.full?Pr(t):ae.line==xe.line&&v.text.length==1&&!ni(t.doc,v)?jn(t,ae.line,"text"):Pr(t,ae.line,xe.line+1,He);var gt=qe(t,"changes"),wt=qe(t,"change");if(wt||gt){var kt={from:ae,to:xe,text:v.text,removed:v.removed,origin:v.origin};wt&&ua(t,"change",t,kt),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(kt)}t.display.selForContextMenu=null}function Mr(t,v,L,I,j){var ae;I||(I=L),Qe(I,L)<0&&(ae=[I,L],L=ae[0],I=ae[1]),typeof v=="string"&&(v=t.splitLines(v)),Wn(t,{from:L,to:I,text:v,origin:j})}function jr(t,v,L,I){L1||!(this.children[0]instanceof pi))){var Oe=[];this.collapse(Oe),this.children=[new pi(Oe)],this.children[0].parent=this}},collapse:function(t){for(var v=0;v50){for(var xe=j.lines.length%25+25,Oe=xe;Oe10);t.parent.maybeSpill()},iterN:function(t,v,L){for(var I=0;It.display.maxLineLength&&(t.display.maxLine=He,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}I!=null&&t&&this.collapsed&&Pr(t,I,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ho(t.doc)),t&&ua(t,"markerCleared",t,this,I,j),v&&Ti(t),this.parent&&this.parent.clear()},ns.prototype.find=function(t,v){t==null&&this.type=="bookmark"&&(t=1);for(var L,I,j=0;j0||xe==0&&ae.clearWhenEmpty!==!1)return ae;if(ae.replacedWith&&(ae.collapsed=!0,ae.widgetNode=O("span",[ae.replacedWith],"CodeMirror-widget"),I.handleMouseEvents||ae.widgetNode.setAttribute("cm-ignore-events","true"),I.insertLeft&&(ae.widgetNode.insertLeft=!0)),ae.collapsed){if(Fa(t,v.line,v,L,ae)||v.line!=L.line&&Fa(t,L.line,v,L,ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oa()}ae.addToHistory&&Fo(t,{from:v,to:L,origin:"markText"},t.sel,NaN);var Oe=v.line,Me=t.cm,He;if(t.iter(Oe,L.line+1,function(wt){Me&&ae.collapsed&&!Me.options.lineWrapping&&vi(wt)==Me.display.maxLine&&(He=!0),ae.collapsed&&Oe!=v.line&&Xr(wt,0),Ia(wt,new xa(ae,Oe==v.line?v.ch:null,Oe==L.line?L.ch:null)),++Oe}),ae.collapsed&&t.iter(v.line,L.line+1,function(wt){hi(t,wt)&&Xr(wt,0)}),ae.clearOnEnter&&ze(ae,"beforeCursorEnter",function(){return ae.clear()}),ae.readOnly&&(ha(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ae.collapsed&&(ae.id=++el,ae.atomic=!0),Me){if(He&&(Me.curOp.updateMaxLine=!0),ae.collapsed)Pr(Me,v.line,L.line+1);else if(ae.className||ae.startStyle||ae.endStyle||ae.css||ae.attributes||ae.title)for(var gt=v.line;gt<=L.line;gt++)jn(Me,gt,"text");ae.atomic&&Ho(Me.doc),ua(Me,"markerAdded",Me,ae)}return ae}var tl=function(t,v){this.markers=t,this.primary=v;for(var L=0;L=0;Me--)Wn(this,I[Me]);Oe?Es(this,Oe):this.cm&&ao(this.cm)}),undo:Na(function(){wn(this,"undo")}),redo:Na(function(){wn(this,"redo")}),undoSelection:Na(function(){wn(this,"undo",!0)}),redoSelection:Na(function(){wn(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,v=0,L=0,I=0;I=t.ch)&&v.push(j.marker.parent||j.marker)}return v},findMarks:function(t,v,L){t=z(this,t),v=z(this,v);var I=[],j=t.line;return this.iter(t.line,v.line+1,function(ae){var xe=ae.markedSpans;if(xe)for(var Oe=0;Oe=Me.to||Me.from==null&&j!=t.line||Me.from!=null&&j==v.line&&Me.from>=v.ch)&&(!L||L(Me.marker))&&I.push(Me.marker.parent||Me.marker)}++j}),I},getAllMarks:function(){var t=[];return this.iter(function(v){var L=v.markedSpans;if(L)for(var I=0;It)return v=t,!0;t-=ae,++L}),z(this,Le(L,v))},indexFromPos:function(t){t=z(this,t);var v=t.ch;if(t.linev&&(v=t.from),t.to!=null&&t.to-1){v.state.draggingText(t),setTimeout(function(){return v.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var wt;if(v.state.draggingText&&!v.state.draggingText.copy&&(wt=v.listSelections()),zs(v.doc,Yt(L,L)),wt)for(var kt=0;kt=0;Oe--)Mr(t.doc,"",I[Oe].from,I[Oe].to,"+delete");ao(t)})}function au(t,v,L){var I=W(t.text,v+L,L);return I<0||I>t.text.length?null:I}function iu(t,v,L){var I=au(t,v.ch,L);return I==null?null:new Le(v.line,I,L<0?"after":"before")}function Nl(t,v,L,I,j){if(t){v.doc.direction=="rtl"&&(j=-j);var ae=xt(L,v.doc.direction);if(ae){var xe=j<0?pe(ae):ae[0],Oe=j<0==(xe.level==1),Me=Oe?"after":"before",He;if(xe.level>0||v.doc.direction=="rtl"){var gt=it(v,L);He=j<0?L.text.length-1:0;var wt=dt(v,gt,He).top;He=de(function(kt){return dt(v,gt,kt).top==wt},j<0==(xe.level==1)?xe.from:xe.to-1,He),Me=="before"&&(He=au(L,He,1))}else He=j<0?xe.to:xe.from;return new Le(I,He,Me)}}return new Le(I,j<0?L.text.length:0,j<0?"before":"after")}function ou(t,v,L,I){var j=xt(v,t.doc.direction);if(!j)return iu(v,L,I);L.ch>=v.text.length?(L.ch=v.text.length,L.sticky="before"):L.ch<=0&&(L.ch=0,L.sticky="after");var ae=De(j,L.ch,L.sticky),xe=j[ae];if(t.doc.direction=="ltr"&&xe.level%2==0&&(I>0?xe.to>L.ch:xe.from=xe.from&&kt>=gt.begin)){var Pt=wt?"before":"after";return new Le(L.line,kt,Pt)}}var an=function(Vn,or,Yn){for(var pr=function(ci,so){return so?new Le(L.line,Oe(ci,1),"before"):new Le(L.line,ci,"after")};Vn>=0&&Vn0==(Hr.level!=1),pa=Lr?Yn.begin:Oe(Yn.end,-1);if(Hr.from<=pa&&pa0?gt.end:Oe(gt.begin,-1);return Mn!=null&&!(I>0&&Mn==v.text.length)&&(gn=an(I>0?0:j.length-1,I,He(Mn)),gn)?gn:null}var xl={selectAll:Ta,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),oe)},killLine:function(t){return Os(t,function(v){if(v.empty()){var L=En(t.doc,v.head.line).text.length;return v.head.ch==L&&v.head.line0)j=new Le(j.line,j.ch+1),t.replaceRange(ae.charAt(j.ch-1)+ae.charAt(j.ch-2),Le(j.line,j.ch-2),j,"+transpose");else if(j.line>t.doc.first){var xe=En(t.doc,j.line-1).text;xe&&(j=new Le(j.line,1),t.replaceRange(ae.charAt(0)+t.doc.lineSeparator()+xe.charAt(xe.length-1),Le(j.line-1,xe.length-1),j,"+transpose"))}}L.push(new Tn(j,j))}t.setSelections(L)})},newlineAndIndent:function(t){return yi(t,function(){for(var v=t.listSelections(),L=v.length-1;L>=0;L--)t.replaceRange(t.doc.lineSeparator(),v[L].anchor,v[L].head,"+input");v=t.listSelections();for(var I=0;It&&Qe(v,this.pos)==0&&L==this.button};var Vs,Sl;function Su(t,v){var L=+new Date;return Sl&&Sl.compare(L,t,v)?(Vs=Sl=null,"triple"):Vs&&Vs.compare(L,t,v)?(Sl=new fl(L,t,v),Vs=null,"double"):(Vs=new fl(L,t,v),Sl=null,"single")}function Kl(t){var v=this,L=v.display;if(lt(v,t)||L.activeTouch&&L.input.supportsTouch())return;if(L.input.ensurePolled(),L.shift=t.shiftKey,_o(L,t)){c||(L.scroller.draggable=!1,setTimeout(function(){return L.scroller.draggable=!0},100));return}if(uu(v,t))return;var I=Dn(v,t),j=At(t),ae=I?Su(I,j):"single";if(window.focus(),j==1&&v.state.selectingText&&v.state.selectingText(t),I&&Tu(v,j,I,ae,t))return;j==1?I?Ou(v,I,ae,t):mt(t)==L.scroller&&Pe(t):j==2?(I&&Bs(v.doc,I),setTimeout(function(){return L.input.focus()},20)):j==3&&(B?v.display.input.onContextMenu(t):Va(v))}function Tu(t,v,L,I,j){var ae="Click";return I=="double"?ae="Double"+ae:I=="triple"&&(ae="Triple"+ae),ae=(v==1?"Left":v==2?"Middle":"Right")+ae,_l(t,Fl(ae,j),j,function(xe){if(typeof xe=="string"&&(xe=xl[xe]),!xe)return!1;var Oe=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),Oe=xe(t,L)!=te}finally{t.state.suppressEdits=!1}return Oe})}function Bu(t,v,L){var I=t.getOption("configureMouse"),j=I?I(t,v,L):{};if(j.unit==null){var ae=g?L.shiftKey&&L.metaKey:L.altKey;j.unit=ae?"rectangle":v=="single"?"char":v=="double"?"word":"line"}return(j.extend==null||t.doc.extend)&&(j.extend=t.doc.extend||L.shiftKey),j.addNew==null&&(j.addNew=h?L.metaKey:L.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(h?L.altKey:L.ctrlKey)),j}function Ou(t,v,L,I){C?setTimeout(U(Kr,t),0):t.curOp.focus=R();var j=Bu(t,L,I),ae=t.doc.sel,xe;t.options.dragDrop&&Ut&&!t.isReadOnly()&&L=="single"&&(xe=ae.contains(v))>-1&&(Qe((xe=ae.ranges[xe]).from(),v)<0||v.xRel>0)&&(Qe(xe.to(),v)>0||v.xRel<0)?ec(t,I,v,j):Du(t,I,v,j)}function ec(t,v,L,I){var j=t.display,ae=!1,xe=Ua(t,function(He){c&&(j.scroller.draggable=!1),t.state.draggingText=!1,Et(j.wrapper.ownerDocument,"mouseup",xe),Et(j.wrapper.ownerDocument,"mousemove",Oe),Et(j.scroller,"dragstart",Me),Et(j.scroller,"drop",xe),ae||(Pe(He),I.addNew||Bs(t.doc,L,null,null,I.extend),c&&!s||C&&m==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),Oe=function(He){ae=ae||Math.abs(v.clientX-He.clientX)+Math.abs(v.clientY-He.clientY)>=10},Me=function(){return ae=!0};c&&(j.scroller.draggable=!0),t.state.draggingText=xe,xe.copy=!I.moveOnDrag,j.scroller.dragDrop&&j.scroller.dragDrop(),ze(j.wrapper.ownerDocument,"mouseup",xe),ze(j.wrapper.ownerDocument,"mousemove",Oe),ze(j.scroller,"dragstart",Me),ze(j.scroller,"drop",xe),Va(t),setTimeout(function(){return j.input.focus()},20)}function Tl(t,v,L){if(L=="char")return new Tn(v,v);if(L=="word")return t.findWordAt(v);if(L=="line")return new Tn(Le(v.line,0),z(t.doc,Le(v.line+1,0)));var I=L(t,v);return new Tn(I.from,I.to)}function Du(t,v,L,I){var j=t.display,ae=t.doc;Pe(v);var xe,Oe,Me=ae.sel,He=Me.ranges;if(I.addNew&&!I.extend?(Oe=ae.sel.contains(L),Oe>-1?xe=He[Oe]:xe=new Tn(L,L)):(xe=ae.sel.primary(),Oe=ae.sel.primIndex),I.unit=="rectangle")I.addNew||(xe=new Tn(L,L)),L=Dn(t,v,!0,!0),Oe=-1;else{var gt=Tl(t,L,I.unit);I.extend?xe=Ks(xe,gt.anchor,gt.head,I.extend):xe=gt}I.addNew?Oe==-1?(Oe=He.length,Ni(ae,Lt(t,He.concat([xe]),Oe),{scroll:!1,origin:"*mouse"})):He.length>1&&He[Oe].empty()&&I.unit=="char"&&!I.extend?(Ni(ae,Lt(t,He.slice(0,Oe).concat(He.slice(Oe+1)),0),{scroll:!1,origin:"*mouse"}),Me=ae.sel):bs(ae,Oe,xe,me):(Oe=0,Ni(ae,new Za([xe],0),me),Me=ae.sel);var wt=L;function kt(Yn){if(Qe(wt,Yn)==0)return;if(wt=Yn,I.unit=="rectangle"){for(var pr=[],Hr=t.options.tabSize,Lr=G(En(ae,L.line).text,L.ch,Hr),pa=G(En(ae,Yn.line).text,Yn.ch,Hr),ci=Math.min(Lr,pa),so=Math.max(Lr,pa),Ri=Math.min(L.line,Yn.line),Yo=Math.min(t.lastLine(),Math.max(L.line,Yn.line));Ri<=Yo;Ri++){var Co=En(ae,Ri).text,zi=_e(Co,ci,Hr);ci==so?pr.push(new Tn(Le(Ri,zi),Le(Ri,zi))):Co.length>zi&&pr.push(new Tn(Le(Ri,zi),Le(Ri,_e(Co,so,Hr))))}pr.length||pr.push(new Tn(L,L)),Ni(ae,Lt(t,Me.ranges.slice(0,Oe).concat(pr),Oe),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Yn)}else{var wo=xe,mo=Tl(t,Yn,I.unit),Hn=wo.anchor,wi;Qe(mo.anchor,Hn)>0?(wi=mo.head,Hn=nn(wo.from(),mo.anchor)):(wi=mo.anchor,Hn=Kt(wo.to(),mo.head));var xi=Me.ranges.slice(0);xi[Oe]=Ru(t,new Tn(z(ae,Hn),wi)),Ni(ae,Lt(t,xi,Oe),me)}}var Pt=j.wrapper.getBoundingClientRect(),an=0;function gn(Yn){var pr=++an,Hr=Dn(t,Yn,!0,I.unit=="rectangle");if(!Hr)return;if(Qe(Hr,wt)!=0){t.curOp.focus=R(),kt(Hr);var Lr=Ka(j,ae);(Hr.line>=Lr.to||Hr.linePt.bottom?20:0;pa&&setTimeout(Ua(t,function(){if(an!=pr)return;j.scroller.scrollTop+=pa,gn(Yn)}),50)}}function Mn(Yn){t.state.selectingText=!1,an=Infinity,Yn&&(Pe(Yn),j.input.focus()),Et(j.wrapper.ownerDocument,"mousemove",Vn),Et(j.wrapper.ownerDocument,"mouseup",or),ae.history.lastSelOrigin=null}var Vn=Ua(t,function(Yn){Yn.buttons===0||!At(Yn)?Mn(Yn):gn(Yn)}),or=Ua(t,Mn);t.state.selectingText=or,ze(j.wrapper.ownerDocument,"mousemove",Vn),ze(j.wrapper.ownerDocument,"mouseup",or)}function Ru(t,v){var L=v.anchor,I=v.head,j=En(t.doc,L.line);if(Qe(L,I)==0&&L.sticky==I.sticky)return v;var ae=xt(j);if(!ae)return v;var xe=De(ae,L.ch,L.sticky),Oe=ae[xe];if(Oe.from!=L.ch&&Oe.to!=L.ch)return v;var Me=xe+(Oe.from==L.ch==(Oe.level!=1)?0:1);if(Me==0||Me==ae.length)return v;var He;if(I.line!=L.line)He=(I.line-L.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=De(ae,I.ch,I.sticky),wt=gt-xe||(I.ch-L.ch)*(Oe.level==1?-1:1);gt==Me-1||gt==Me?He=wt<0:He=wt>0}var kt=ae[Me+(He?-1:0)],Pt=He==(kt.level==1),an=Pt?kt.from:kt.to,gn=Pt?"after":"before";return L.ch==an&&L.sticky==gn?v:new Tn(new Le(L.line,an,gn),I)}function Iu(t,v,L,I){var j,ae;if(v.touches)j=v.touches[0].clientX,ae=v.touches[0].clientY;else try{j=v.clientX,ae=v.clientY}catch(kt){return!1}if(j>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;I&&Pe(v);var xe=t.display,Oe=xe.lineDiv.getBoundingClientRect();if(ae>Oe.bottom||!qe(t,L))return Ne(v);ae-=Oe.top-xe.viewOffset;for(var Me=0;Me=j){var gt=ba(t.doc,ae),wt=t.display.gutterSpecs[Me];return ct(t,L,t,gt,wt.className,v),Ne(v)}}}function uu(t,v){return Iu(t,v,"gutterClick",!0)}function cu(t,v){if(_o(t.display,v)||pl(t,v))return;if(lt(t,v,"contextmenu"))return;B||t.display.input.onContextMenu(v)}function pl(t,v){return qe(t,"gutterContextMenu")?Iu(t,v,"gutterContextMenu",!1):!1}function Wl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qt(t)}var Us={toString:function(){return"CodeMirror.Init"}},Mu={},zl={};function tc(t){var v=t.optionHandlers;function L(I,j,ae,xe){t.defaults[I]=j,ae&&(v[I]=xe?function(Oe,Me,He){He!=Us&&ae(Oe,Me,He)}:ae)}t.defineOption=L,t.Init=Us,L("value","",function(I,j){return I.setValue(j)},!0),L("mode",null,function(I,j){I.doc.modeOption=j,$r(I)},!0),L("indentUnit",2,$r,!0),L("indentWithTabs",!1),L("smartIndent",!0),L("tabSize",4,function(I){mn(I),qt(I),Pr(I)},!0),L("lineSeparator",null,function(I,j){if(I.doc.lineSep=j,!j)return;var ae=[],xe=I.doc.first;I.doc.iter(function(Me){for(var He=0;;){var gt=Me.text.indexOf(j,He);if(gt==-1)break;He=gt+j.length,ae.push(Le(xe,gt))}xe++});for(var Oe=ae.length-1;Oe>=0;Oe--)Mr(I.doc,j,ae[Oe],Le(ae[Oe].line,ae[Oe].ch+j.length))}),L("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(I,j,ae){I.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),ae!=Us&&I.refresh()}),L("specialCharPlaceholder",Aa,function(I){return I.refresh()},!0),L("electricChars",!0),L("inputStyle",a?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),L("spellcheck",!1,function(I,j){return I.getInputField().spellcheck=j},!0),L("autocorrect",!1,function(I,j){return I.getInputField().autocorrect=j},!0),L("autocapitalize",!1,function(I,j){return I.getInputField().autocapitalize=j},!0),L("rtlMoveVisually",!p),L("wholeLineUpdateBefore",!0),L("theme","default",function(I){Wl(I),Zi(I)},!0),L("keyMap","default",function(I,j,ae){var xe=$i(j),Oe=ae!=Us&&$i(ae);Oe&&Oe.detach&&Oe.detach(I,xe),xe.attach&&xe.attach(I,Oe||null)}),L("extraKeys",null),L("configureMouse",null),L("lineWrapping",!1,Lu,!0),L("gutters",[],function(I,j){I.display.gutterSpecs=wa(j,I.options.lineNumbers),Zi(I)},!0),L("fixedGutter",!0,function(I,j){I.display.gutters.style.left=j?ta(I.display)+"px":"0",I.refresh()},!0),L("coverGutterNextToScrollbar",!1,function(I){return Fi(I)},!0),L("scrollbarStyle","native",function(I){io(I),Fi(I),I.display.scrollbars.setScrollTop(I.doc.scrollTop),I.display.scrollbars.setScrollLeft(I.doc.scrollLeft)},!0),L("lineNumbers",!1,function(I,j){I.display.gutterSpecs=wa(I.options.gutters,j),Zi(I)},!0),L("firstLineNumber",1,Zi,!0),L("lineNumberFormatter",function(I){return I},Zi,!0),L("showCursorWhenSelecting",!1,fn,!0),L("resetSelectionOnContextMenu",!0),L("lineWiseCopyCut",!0),L("pasteLinesPerSelection",!0),L("selectionsMayTouch",!1),L("readOnly",!1,function(I,j){j=="nocursor"&&(aa(I),I.display.input.blur()),I.display.input.readOnlyChanged(j)}),L("screenReaderLabel",null,function(I,j){j=j===""?null:j,I.display.input.screenReaderLabelChanged(j)}),L("disableInput",!1,function(I,j){j||I.display.input.reset()},!0),L("dragDrop",!0,nc),L("allowDropFileTypes",null),L("cursorBlinkRate",530),L("cursorScrollMargin",0),L("cursorHeight",1,fn,!0),L("singleCursorHeightPerLine",!0,fn,!0),L("workTime",100),L("workDelay",100),L("flattenSpans",!0,mn,!0),L("addModeClass",!1,mn,!0),L("pollInterval",100),L("undoDepth",200,function(I,j){return I.doc.history.undoDepth=j}),L("historyEventDelay",1250),L("viewportMargin",10,function(I){return I.refresh()},!0),L("maxHighlightLength",1e4,mn,!0),L("moveInputWithCursor",!0,function(I,j){j||I.display.input.resetPosition()}),L("tabindex",null,function(I,j){return I.display.input.getField().tabIndex=j||""}),L("autofocus",null),L("direction","ltr",function(I,j){return I.doc.setDirection(j)},!0),L("phrases",null)}function nc(t,v,L){var I=L&&L!=Us;if(!v!=!I){var j=t.display.dragFunctions,ae=v?ze:Et;ae(t.display.scroller,"dragstart",j.start),ae(t.display.scroller,"dragenter",j.enter),ae(t.display.scroller,"dragover",j.over),ae(t.display.scroller,"dragleave",j.leave),ae(t.display.scroller,"drop",j.drop)}}function Lu(t){t.options.lineWrapping?(k(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(A(t.display.wrapper,"CodeMirror-wrap"),Jo(t)),yr(t),Pr(t),qt(t),setTimeout(function(){return Fi(t)},100)}function mi(t,v){var L=this;if(!(this instanceof mi))return new mi(t,v);this.options=v=v?K(v):{},K(Mu,v,!1);var I=v.value;typeof I=="string"?I=new Bo(I,v.mode,null,v.lineSeparator,v.direction):v.mode&&(I.modeOption=v.mode),this.doc=I;var j=new mi.inputStyles[v.inputStyle](this),ae=this.display=new Eo(t,I,j,v);ae.wrapper.CodeMirror=this,Wl(this),v.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),io(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 N,keySeq:null,specialChars:null},v.autofocus&&!a&&ae.input.focus(),C&&m<11&&setTimeout(function(){return L.display.input.reset(!0)},20),Pu(this),nu(),Wi(this),this.curOp.forceUpdate=!0,da(this,I),v.autofocus&&!a||this.hasFocus()?setTimeout(function(){L.hasFocus()&&!L.state.focused&&Ra(L)},20):aa(this);for(var xe in zl)zl.hasOwnProperty(xe)&&zl[xe](this,v[xe],Us);ui(this),v.finishInit&&v.finishInit(this);for(var Oe=0;Oe20*20}ze(v.scroller,"touchstart",function(Me){if(!lt(t,Me)&&!ae(Me)&&!uu(t,Me)){v.input.ensurePolled(),clearTimeout(L);var He=+new Date;v.activeTouch={start:He,moved:!1,prev:He-I.end<=300?I:null},Me.touches.length==1&&(v.activeTouch.left=Me.touches[0].pageX,v.activeTouch.top=Me.touches[0].pageY)}}),ze(v.scroller,"touchmove",function(){v.activeTouch&&(v.activeTouch.moved=!0)}),ze(v.scroller,"touchend",function(Me){var He=v.activeTouch;if(He&&!_o(v,Me)&&He.left!=null&&!He.moved&&new Date-He.start<300){var gt=t.coordsChar(v.activeTouch,"page"),wt;!He.prev||xe(He,He.prev)?wt=new Tn(gt,gt):!He.prev.prev||xe(He,He.prev.prev)?wt=t.findWordAt(gt):wt=new Tn(Le(gt.line,0),z(t.doc,Le(gt.line+1,0))),t.setSelection(wt.anchor,wt.head),t.focus(),Pe(Me)}j()}),ze(v.scroller,"touchcancel",j),ze(v.scroller,"scroll",function(){v.scroller.clientHeight&&(ho(t,v.scroller.scrollTop),Mi(t,v.scroller.scrollLeft,!0),ct(t,"scroll",t))}),ze(v.scroller,"mousewheel",function(Me){return gs(t,Me)}),ze(v.scroller,"DOMMouseScroll",function(Me){return gs(t,Me)}),ze(v.wrapper,"scroll",function(){return v.wrapper.scrollTop=v.wrapper.scrollLeft=0}),v.dragFunctions={enter:function(Me){lt(t,Me)||et(Me)},over:function(Me){lt(t,Me)||(Wu(t,Me),et(Me))},start:function(Me){return tu(t,Me)},drop:Ua(t,vu),leave:function(Me){lt(t,Me)||gu(t)}};var Oe=v.input.getField();ze(Oe,"keyup",function(Me){return xu.call(t,Me)}),ze(Oe,"keydown",Ua(t,Ql)),ze(Oe,"keypress",Ua(t,_u)),ze(Oe,"focus",function(Me){return Ra(t,Me)}),ze(Oe,"blur",function(Me){return aa(t,Me)})}var Gl=[];mi.defineInitHook=function(t){return Gl.push(t)};function al(t,v,L,I){var j=t.doc,ae;L==null&&(L="add"),L=="smart"&&(j.mode.indent?ae=sn(t,v).state:L="prev");var xe=t.options.tabSize,Oe=En(j,v),Me=G(Oe.text,null,xe);Oe.stateAfter&&(Oe.stateAfter=null);var He=Oe.text.match(/^\s*/)[0],gt;if(!I&&!/\S/.test(Oe.text))gt=0,L="not";else if(L=="smart"&&(gt=j.mode.indent(ae,Oe.text.slice(He.length),Oe.text),gt==te||gt>150)){if(!I)return;L="prev"}L=="prev"?v>j.first?gt=G(En(j,v-1).text,null,xe):gt=0:L=="add"?gt=Me+t.options.indentUnit:L=="subtract"?gt=Me-t.options.indentUnit:typeof L=="number"&&(gt=Me+L),gt=Math.max(0,gt);var wt="",kt=0;if(t.options.indentWithTabs)for(var Pt=Math.floor(gt/xe);Pt;--Pt)kt+=xe,wt+=" ";if(ktxe,Me=Mt(v),He=null;if(Oe&&I.ranges.length>1)if(As&&As.text.join(` `)==v){if(I.ranges.length%As.text.length==0){He=[];for(var gt=0;gt=0;kt--){var Pt=I.ranges[kt],an=Pt.from(),gn=Pt.to();Pt.empty()&&(L&&L>0?an=Le(an.line,an.ch-L):t.state.overwrite&&!Oe?gn=Le(gn.line,Math.min(En(ae,gn.line).text.length,gn.ch+pe(Me).length)):Oe&&As&&As.lineWise&&As.text.join(` `)==Me.join(` `)&&(an=gn=Le(an.line,0)));var Mn={from:an,to:gn,text:He?He[kt%He.length]:Me,origin:j||(Oe?"paste":t.state.cutIncoming>xe?"cut":"+input")};Wn(t.doc,Mn),ua(t,"inputRead",t,Mn)}v&&!Oe&&Dl(t,v),ao(t),t.curOp.updateInput<2&&(t.curOp.updateInput=wt),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ol(t,v){var L=t.clipboardData&&t.clipboardData.getData("Text");if(L)return t.preventDefault(),!v.isReadOnly()&&!v.options.disableInput&&yi(v,function(){return du(v,L,0,null,"paste")}),!0}function Dl(t,v){if(!t.options.electricChars||!t.options.smartIndent)return;for(var L=t.doc.sel,I=L.ranges.length-1;I>=0;I--){var j=L.ranges[I];if(j.head.ch>100||I&&L.ranges[I-1].head.line==j.head.line)continue;var ae=t.getModeAt(j.head),xe=!1;if(ae.electricChars){for(var Oe=0;Oe-1){xe=al(t,j.head.line,"smart");break}}else ae.electricInput&&(ae.electricInput.test(En(t.doc,j.head.line).text.slice(0,j.head.ch))&&(xe=al(t,j.head.line,"smart")));xe&&ua(t,"electricInput",t,j.head.line)}}function hu(t){for(var v=[],L=[],I=0;Iae&&(al(this,Oe.head.line,I,!0),ae=Oe.head.line,xe==this.doc.sel.primIndex&&ao(this));else{var Me=Oe.from(),He=Oe.to(),gt=Math.max(ae,Me.line);ae=Math.min(this.lastLine(),He.line-(He.ch?0:1))+1;for(var wt=gt;wt0&&bs(this.doc,xe,new Tn(Me,kt[xe].to()),oe)}}}),getTokenAt:function(I,j){return rr(this,I,j)},getLineTokens:function(I,j){return rr(this,Le(I),j,!0)},getTokenTypeAt:function(I){I=z(this.doc,I);var j=Nt(this,En(this.doc,I.line)),ae=0,xe=(j.length-1)/2,Oe=I.ch,Me;if(Oe==0)Me=j[2];else for(;;){var He=ae+xe>>1;if((He?j[He*2-1]:0)>=Oe)xe=He;else if(j[He*2+1]Me&&(I=Me,xe=!0),Oe=En(this.doc,I)}else Oe=I;return bn(this,Oe,{top:0,left:0},j||"page",ae||xe).top+(xe?this.doc.height-eo(Oe):0)},defaultTextHeight:function(){return Fr(this.display)},defaultCharWidth:function(){return Qn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(I,j,ae,xe,Oe){var Me=this.display;I=rn(this,z(this.doc,I));var He=I.bottom,gt=I.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),Me.sizer.appendChild(j),xe=="over")He=I.top;else if(xe=="above"||xe=="near"){var wt=Math.max(Me.wrapper.clientHeight,this.doc.height),kt=Math.max(Me.sizer.clientWidth,Me.lineSpace.clientWidth);(xe=="above"||I.bottom+j.offsetHeight>wt)&&I.top>j.offsetHeight?He=I.top-j.offsetHeight:I.bottom+j.offsetHeight<=wt&&(He=I.bottom),gt+j.offsetWidth>kt&&(gt=kt-j.offsetWidth)}j.style.top=He+"px",j.style.left=j.style.right="",Oe=="right"?(gt=Me.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(Oe=="left"?gt=0:Oe=="middle"&&(gt=(Me.sizer.clientWidth-j.offsetWidth)/2),j.style.left=gt+"px"),ae&&Di(this,{left:gt,top:He,right:gt+j.offsetWidth,bottom:He+j.offsetHeight})},triggerOnKeyDown:li(Ql),triggerOnKeyPress:li(_u),triggerOnKeyUp:xu,triggerOnMouseDown:li(Kl),execCommand:function(I){if(xl.hasOwnProperty(I))return xl[I].call(null,this)},triggerElectric:li(function(I){Dl(this,I)}),findPosH:function(I,j,ae,xe){var Oe=1;j<0&&(Oe=-1,j=-j);for(var Me=z(this.doc,I),He=0;He0&>(ae.charAt(xe-1));)--xe;for(;Oe.5||this.options.lineWrapping)&&yr(this),ct(this,"refresh",this)}),swapDoc:li(function(I){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),da(this,I),qt(this),this.display.input.reset(),Ii(this,I.scrollLeft,I.scrollTop),this.curOp.forceScroll=!0,ua(this,"swapDoc",this,j),j}),phrase:function(I){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,I)?j[I]:I},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}},$e(t),t.registerHelper=function(I,j,ae){L.hasOwnProperty(I)||(L[I]=t[I]={_global:[]}),L[I][j]=ae},t.registerGlobalHelper=function(I,j,ae,xe){t.registerHelper(I,j,xe),L[I]._global.push({pred:ae,val:xe})}}function Vl(t,v,L,I,j){var ae=v,xe=L,Oe=En(t,v.line),Me=j&&t.direction=="rtl"?-L:L;function He(){var or=v.line+Me;return or=t.first+t.size?!1:(v=new Le(or,v.ch,v.sticky),Oe=En(t,or))}function gt(or){var Yn;if(I=="codepoint"){var pr=Oe.text.charCodeAt(v.ch+(I>0?0:-1));isNaN(pr)?Yn=null:Yn=new Le(v.line,Math.max(0,Math.min(Oe.text.length,v.ch+L*(pr>=55296&&pr<56320?2:1))),-L)}else j?Yn=ou(t.cm,Oe,v,L):Yn=iu(Oe,v,L);if(Yn==null)if(!or&&He())v=Nl(j,t.cm,Oe,v.line,Me);else return!1;else v=Yn;return!0}if(I=="char"||I=="codepoint")gt();else if(I=="column")gt(!0);else if(I=="word"||I=="group")for(var wt=null,kt=I=="group",Pt=t.cm&&t.cm.getHelper(v,"wordChars"),an=!0;!(L<0&&!gt(!an));an=!1){var gn=Oe.text.charAt(v.ch)||` `,Mn=Fe(gn,Pt)?"w":kt&&gn==` `?"n":!kt||/\s/.test(gn)?null:"p";if(kt&&!an&&!Mn&&(Mn="s"),wt&&wt!=Mn){L<0&&(L=1,gt(),v.sticky="after");break}if(Mn&&(wt=Mn),L>0&&!gt(!an))break}var Vn=Zr(t,v,ae,xe,!0);return ot(ae,Vn)&&(Vn.hitSide=!0),Vn}function Fu(t,v,L,I){var j=t.doc,ae=v.left,xe;if(I=="page"){var Oe=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Me=Math.max(Oe-.5*Fr(t.display),3);xe=(L>0?v.bottom:v.top)+L*Me}else I=="line"&&(xe=L>0?v.bottom+3:v.top-3);for(var He;!(He=_n(t,ae,xe),!He.outside);){if(L<0?xe<=0:xe>=j.height){He.hitSide=!0;break}xe+=L*5}return He}var $a=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new N,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};$a.prototype.init=function(t){var v=this,L=this,I=L.cm,j=L.div=t.lineDiv;Au(j,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function ae(Oe){for(var Me=Oe.target;Me;Me=Me.parentNode){if(Me==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Me.className))break}return!1}ze(j,"paste",function(Oe){if(!ae(Oe)||lt(I,Oe)||Ol(Oe,I))return;m<=11&&setTimeout(Ua(I,function(){return v.updateFromDOM()}),20)}),ze(j,"compositionstart",function(Oe){v.composing={data:Oe.data,done:!1}}),ze(j,"compositionupdate",function(Oe){v.composing||(v.composing={data:Oe.data,done:!1})}),ze(j,"compositionend",function(Oe){v.composing&&(Oe.data!=v.composing.data&&v.readFromDOMSoon(),v.composing.done=!0)}),ze(j,"touchstart",function(){return L.forceCompositionEnd()}),ze(j,"input",function(){v.composing||v.readFromDOMSoon()});function xe(Oe){if(!ae(Oe)||lt(I,Oe))return;if(I.somethingSelected())Bl({lineWise:!1,text:I.getSelections()}),Oe.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var Me=hu(I);Bl({lineWise:!0,text:Me.text}),Oe.type=="cut"&&I.operation(function(){I.setSelections(Me.ranges,0,oe),I.replaceSelection("",null,"cut")})}else return;if(Oe.clipboardData){Oe.clipboardData.clearData();var He=As.text.join(` `);if(Oe.clipboardData.setData("Text",He),Oe.clipboardData.getData("Text")==He){Oe.preventDefault();return}}var gt=Uu(),wt=gt.firstChild;I.display.lineSpace.insertBefore(gt,I.display.lineSpace.firstChild),wt.value=As.text.join(` `);var kt=document.activeElement;J(wt),setTimeout(function(){I.display.lineSpace.removeChild(gt),kt.focus(),kt==j&&L.showPrimarySelection()},50)}ze(j,"copy",xe),ze(j,"cut",xe)},$a.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var t=on(this.cm,!1);return t.focus=document.activeElement==this.div,t},$a.prototype.showSelection=function(t,v){if(!t||!this.cm.display.view.length)return;(t.focus||v)&&this.showPrimarySelection(),this.showMultipleSelections(t)},$a.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$a.prototype.showPrimarySelection=function(){var t=this.getSelection(),v=this.cm,L=v.doc.sel.primary(),I=L.from(),j=L.to();if(v.display.viewTo==v.display.viewFrom||I.line>=v.display.viewTo||j.line=v.display.viewFrom&&il(v,I)||{node:Oe[0].measure.map[2],offset:0},He=j.linet.firstLine()&&(I=Le(I.line-1,En(t.doc,I.line-1).length)),j.ch==En(t.doc,j.line).text.length&&j.linev.viewTo-1)return!1;var ae,xe,Oe;I.line==v.viewFrom||(ae=ar(t,I.line))==0?(xe=Nr(v.view[0].line),Oe=v.view[0].node):(xe=Nr(v.view[ae].line),Oe=v.view[ae-1].node.nextSibling);var Me=ar(t,j.line),He,gt;if(Me==v.view.length-1?(He=v.viewTo-1,gt=v.lineDiv.lastChild):(He=Nr(v.view[Me+1].line)-1,gt=v.view[Me+1].node.previousSibling),!Oe)return!1;for(var wt=t.doc.splitLines(ol(t,Oe,gt,xe,He)),kt=Qr(t.doc,Le(xe,0),Le(He,En(t.doc,He).text.length));wt.length>1&&kt.length>1;)if(pe(wt)==pe(kt))wt.pop(),kt.pop(),He--;else if(wt[0]==kt[0])wt.shift(),kt.shift(),xe++;else break;for(var Pt=0,an=0,gn=wt[0],Mn=kt[0],Vn=Math.min(gn.length,Mn.length);PtI.ch&&or.charCodeAt(or.length-an-1)==Yn.charCodeAt(Yn.length-an-1);)Pt--,an++;wt[wt.length-1]=or.slice(0,or.length-an).replace(/^\u200b+/,""),wt[0]=wt[0].slice(Pt).replace(/\u200b+$/,"");var Hr=Le(xe,Pt),Lr=Le(He,kt.length?pe(kt).length-an:0);if(wt.length>1||wt[0]||Qe(Hr,Lr))return Mr(t.doc,wt,Hr,Lr,"+input"),!0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},$a.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},$a.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&yi(this.cm,function(){return Pr(t.cm)})},$a.prototype.setUneditable=function(t){t.contentEditable="false"},$a.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ua(this.cm,du)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},$a.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;function il(t,v){var L=st(t,v.line);if(!L||L.hidden)return null;var I=En(t.doc,v.line),j=Be(L,I,v.line),ae=xt(I,t.doc.direction),xe="left";if(ae){var Oe=De(ae,v.ch);xe=Oe%2?"right":"left"}var Me=Qt(j.map,v.ch,xe);return Me.offset=Me.collapse=="right"?Me.end:Me.start,Me}function Nu(t){for(var v=t;v;v=v.parentNode)if(/CodeMirror-gutter-wrapper/.test(v.className))return!0;return!1}function Ci(t,v){return v&&(t.bad=!0),t}function ol(t,v,L,I,j){var ae="",xe=!1,Oe=t.doc.lineSeparator(),Me=!1;function He(Pt){return function(an){return an.id==Pt}}function gt(){xe&&(ae+=Oe,Me&&(ae+=Oe),xe=Me=!1)}function wt(Pt){Pt&&(gt(),ae+=Pt)}function kt(Pt){if(Pt.nodeType==1){var an=Pt.getAttribute("cm-text");if(an){wt(an);return}var gn=Pt.getAttribute("cm-marker"),Mn;if(gn){var Vn=t.findMarks(Le(I,0),Le(j+1,0),He(+gn));Vn.length&&(Mn=Vn[0].find(0))&&wt(Qr(t.doc,Mn.from,Mn.to).join(Oe));return}if(Pt.getAttribute("contenteditable")=="false")return;var or=/^(pre|div|p|li|table|br)$/i.test(Pt.nodeName);if(!/^br$/i.test(Pt.nodeName)&&Pt.textContent.length==0)return;or&>();for(var Yn=0;Yn=9&&v.hasSelection&&(v.hasSelection=null),L.poll()}),ze(j,"paste",function(xe){if(lt(I,xe)||Ol(xe,I))return;I.state.pasteIncoming=+new Date,L.fastPoll()});function ae(xe){if(lt(I,xe))return;if(I.somethingSelected())Bl({lineWise:!1,text:I.getSelections()});else if(I.options.lineWiseCopyCut){var Oe=hu(I);Bl({lineWise:!0,text:Oe.text}),xe.type=="cut"?I.setSelections(Oe.ranges,null,oe):(L.prevInput="",j.value=Oe.text.join(` `),J(j))}else return;xe.type=="cut"&&(I.state.cutIncoming=+new Date)}ze(j,"cut",ae),ze(j,"copy",ae),ze(t.scroller,"paste",function(xe){if(_o(t,xe)||lt(I,xe))return;if(!j.dispatchEvent){I.state.pasteIncoming=+new Date,L.focus();return}var Oe=new Event("paste");Oe.clipboardData=xe.clipboardData,j.dispatchEvent(Oe)}),ze(t.lineSpace,"selectstart",function(xe){_o(t,xe)||Pe(xe)}),ze(j,"compositionstart",function(){var xe=I.getCursor("from");L.composing&&L.composing.range.clear(),L.composing={start:xe,range:I.markText(xe,I.getCursor("to"),{className:"CodeMirror-composing"})}}),ze(j,"compositionend",function(){L.composing&&(L.poll(),L.composing.range.clear(),L.composing=null)})},ri.prototype.createField=function(t){this.wrapper=Uu(),this.textarea=this.wrapper.firstChild},ri.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ri.prototype.prepareSelection=function(){var t=this.cm,v=t.display,L=t.doc,I=on(t);if(t.options.moveInputWithCursor){var j=rn(t,L.sel.primary().head,"div"),ae=v.wrapper.getBoundingClientRect(),xe=v.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(v.wrapper.clientHeight-10,j.top+xe.top-ae.top)),I.teLeft=Math.max(0,Math.min(v.wrapper.clientWidth-10,j.left+xe.left-ae.left))}return I},ri.prototype.showSelection=function(t){var v=this.cm,L=v.display;i(L.cursorDiv,t.cursors),i(L.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ri.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var v=this.cm;if(v.somethingSelected()){this.prevInput="";var L=v.getSelection();this.textarea.value=L,v.state.focused&&J(this.textarea),C&&m>=9&&(this.hasSelection=L)}else t||(this.prevInput=this.textarea.value="",C&&m>=9&&(this.hasSelection=null))},ri.prototype.getField=function(){return this.textarea},ri.prototype.supportsTouch=function(){return!1},ri.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!a||R()!=this.textarea))try{this.textarea.focus()}catch(t){}},ri.prototype.blur=function(){this.textarea.blur()},ri.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ri.prototype.receivedFocus=function(){this.slowPoll()},ri.prototype.slowPoll=function(){var t=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ri.prototype.fastPoll=function(){var t=!1,v=this;v.pollingFast=!0;function L(){var I=v.poll();!I&&!t?(t=!0,v.polling.set(60,L)):(v.pollingFast=!1,v.slowPoll())}v.polling.set(20,L)},ri.prototype.poll=function(){var t=this,v=this.cm,L=this.textarea,I=this.prevInput;if(this.contextMenuPending||!v.state.focused||Tt(L)&&!I&&!this.composing||v.isReadOnly()||v.options.disableInput||v.state.keySeq)return!1;var j=L.value;if(j==I&&!v.somethingSelected())return!1;if(C&&m>=9&&this.hasSelection===j||h&&/[\uf700-\uf7ff]/.test(j))return v.display.input.reset(),!1;if(v.doc.sel==v.display.selForContextMenu){var ae=j.charCodeAt(0);if(ae==8203&&!I&&(I="\u200B"),ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var xe=0,Oe=Math.min(I.length,j.length);xe1e3||j.indexOf(` `)>-1?L.value=t.prevInput="":t.prevInput=j,t.composing&&(t.composing.range.clear(),t.composing.range=v.markText(t.composing.start,v.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ri.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ri.prototype.onKeyPress=function(){C&&m>=9&&(this.hasSelection=null),this.fastPoll()},ri.prototype.onContextMenu=function(t){var v=this,L=v.cm,I=L.display,j=v.textarea;v.contextMenuPending&&v.contextMenuPending();var ae=Dn(L,t),xe=I.scroller.scrollTop;if(!ae||e)return;var Oe=L.options.resetSelectionOnContextMenu;Oe&&L.doc.sel.contains(ae)==-1&&Ua(L,Ni)(L.doc,Yt(ae),oe);var Me=j.style.cssText,He=v.wrapper.style.cssText,gt=v.wrapper.offsetParent.getBoundingClientRect();v.wrapper.style.cssText="position: static",j.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(t.clientY-gt.top-5)+"px; left: "+(t.clientX-gt.left-5)+`px; z-index: 1000; background: `+(C?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var wt;c&&(wt=window.scrollY),I.input.focus(),c&&window.scrollTo(null,wt),I.input.reset(),L.somethingSelected()||(j.value=v.prevInput=" "),v.contextMenuPending=Pt,I.selForContextMenu=L.doc.sel,clearTimeout(I.detectingSelectAll);function kt(){if(j.selectionStart!=null){var gn=L.somethingSelected(),Mn="\u200B"+(gn?j.value:"");j.value="\u21DA",j.value=Mn,v.prevInput=gn?"":"\u200B",j.selectionStart=1,j.selectionEnd=Mn.length,I.selForContextMenu=L.doc.sel}}function Pt(){if(v.contextMenuPending!=Pt)return;if(v.contextMenuPending=!1,v.wrapper.style.cssText=He,j.style.cssText=Me,C&&m<9&&I.scrollbars.setScrollTop(I.scroller.scrollTop=xe),j.selectionStart!=null){(!C||C&&m<9)&&kt();var gn=0,Mn=function(){I.selForContextMenu==L.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&v.prevInput=="\u200B"?Ua(L,Ta)(L):gn++<10?I.detectingSelectAll=setTimeout(Mn,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(Mn,200)}}if(C&&m>=9&&kt(),B){et(t);var an=function(){Et(window,"mouseup",an),setTimeout(Pt,20)};ze(window,"mouseup",an)}else setTimeout(Pt,50)},ri.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ri.prototype.setUneditable=function(){},ri.prototype.needsContentAttribute=!1;function Rl(t,v){if(v=v?K(v):{},v.value=t.value,!v.tabindex&&t.tabIndex&&(v.tabindex=t.tabIndex),!v.placeholder&&t.placeholder&&(v.placeholder=t.placeholder),v.autofocus==null){var L=R();v.autofocus=L==t||t.getAttribute("autofocus")!=null&&L==document.body}function I(){t.value=Oe.getValue()}var j;if(t.form&&(ze(t.form,"submit",I),!v.leaveSubmitMethodAlone)){var ae=t.form;j=ae.submit;try{var xe=ae.submit=function(){I(),ae.submit=j,ae.submit(),ae.submit=xe}}catch(Me){}}v.finishInit=function(Me){Me.save=I,Me.getTextArea=function(){return t},Me.toTextArea=function(){Me.toTextArea=isNaN,I(),t.parentNode.removeChild(Me.getWrapperElement()),t.style.display="",t.form&&(Et(t.form,"submit",I),!v.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=j))}},t.style.display="none";var Oe=mi(function(Me){return t.parentNode.insertBefore(Me,t.nextSibling)},v);return Oe}function Fs(t){t.off=Et,t.on=ze,t.wheelEventPixels=Ss,t.Doc=Bo,t.splitLines=Mt,t.countColumn=G,t.findColumn=_e,t.isWordChar=Ie,t.Pass=te,t.signal=ct,t.Line=Ui,t.changeEnd=Cn,t.scrollbarModel=Xa,t.Pos=Le,t.cmpPos=Qe,t.modes=St,t.mimeModes=ft,t.resolveMode=bt,t.getMode=Ht,t.modeExtensions=Gt,t.extendMode=xn,t.copyState=vn,t.startState=xr,t.innerMode=sr,t.commands=xl,t.keyMap=Ps,t.keyName=ru,t.isModifierKey=bu,t.lookupKey=rl,t.normalizeKeyMap=Xu,t.StringStream=Kn,t.SharedTextMarker=tl,t.TextMarker=ns,t.LineWidget=Ko,t.e_preventDefault=Pe,t.e_stopPropagation=je,t.e_stop=et,t.addClass=k,t.contains=D,t.rmClass=A,t.keyNames=Gs}tc(mi),ku(mi);var ju="iter insert remove copy getEditor constructor".split(" ");for(var Il in Bo.prototype)Bo.prototype.hasOwnProperty(Il)&&Q(ju,Il)<0&&(mi.prototype[Il]=function(t){return function(){return t.apply(this.doc,arguments)}}(Bo.prototype[Il]));return $e(Bo),mi.inputStyles={textarea:ri,contenteditable:$a},mi.defineMode=function(t){!mi.defaults.mode&&t!="null"&&(mi.defaults.mode=t),It.apply(this,arguments)},mi.defineMIME=Ot,mi.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),mi.defineMIME("text/plain","null"),mi.defineExtension=function(t,v){mi.prototype[t]=v},mi.defineDocExtension=function(t,v){Bo.prototype[t]=v},mi.fromTextArea=Rl,Fs(mi),mi.version="5.58.2",mi})},W6BS:function(Ze,we){Ze.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="},W6us:function(Ze,we){Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAv9JREFUSA2dVV1IVEEU/s7sqkuiUAahgREkQVjmS0FEBRWELz1Yj5ZSJBEaVm8RBOFbQSZIQUU9hFT4EqRuBdIP0oOia5lIZBRZoBWYy+a6O3M6s3DxXrurez1wOeee+b7zzZ05dwYIaD0x3dk9rNsD0hAOSgBjDwHTQXmBhZgwB7A8wcwjFI1xYYiw7sA2mshWJqRUHSkkso3b/LMPXJHOw9eaCko6OOUE1muY1pQx490xPuLOO3HZLV7b8BJz9X1QNnbybt8zok/plBlHwlxw5z1CIajbIMwQm87no1xugZeZVVkbN5S28YD5i2mTxmDmkdjm1t/geoux2O5hrpY9vCnhJOWrBzbnmOyr12T5Kg3M8UixunSyF8WJeXQxY7cX5X0jwmvZu9rH+5CeZXMxn1TH4uX/T8gpsfkOF83E0S8zrHRyS3rCu5Iwdo2eobgfzrN0bsCfWVzLWcQSGVt/p4WTxXy/aEM7b0wafBRyKAvPP03QBQoVX5ro82JA+MUYl+h5bKIwkge3IEZELCK1gUVsZZlYhgtcZWmQ6Ai2y5fk6VUYU6mkeaVZv02n9FDviD5m8TJYbf1KzOFGY6bFsB60tSmhn4SJ1HnA7JTZJCMR9TRTnFGyEhE315B6KHUjIhxWpPrCh6qoVwD2WTDCLxFemVmuWE0VfRPX6hTx7TrRGHIAQX02rq+QdE6XbJQOKmI5Ga4P0VfIticx7vrgl0xZjl9rW5KvkB1Yk4dzMsP3Ns7JBFtcBGksf8sqZI+Swnzsl3PsjT91IWsxFjt+gmYXst4oq5CFfTpNU43N2BtSaJBig16q/G+Ss2MWY7GLx93v0ua5W+YOSiFzfUAutu+N9DNXdk5C5R28Op1GnRQtcBc2QFwV4L4ILnnjWo7nKncXccc6jcPGoM2dc2Kex4TEUec9m8/pi44+4lD/FHbInxVxF9KM+I+zGLAHsTvvF+ck5BBLr3OL3KRNcjyxNMGVyWa654wt53NaOqeIzColcVL+L1nJTOwMLev/AaJkF76u7DFoAAAAAElFTkSuQmCC"},WPnJ:function(Ze,we,M){Ze.exports={"sort-list-panel":"sort-list-panel___3NFo7","sort-list-tip":"sort-list-tip___1C7gJ","ant-drawer-content":"ant-drawer-content___z72s9","dragging-li":"dragging-li___2fI-b","task-list-container":"task-list-container___O3FkA",imgradius:"imgradius___2naxh",directionItemWrap:"directionItemWrap___12VCj",groupActionWrap:"groupActionWrap___3JLr9",teamHeight:"teamHeight___1JFgn",divHeight:"divHeight___3DCc8"}},WaYH:function(Ze,we,M){"use strict";var ue=M("rePB"),Y=M("Ff2n"),P=M("VTBJ"),y=M("1OyB"),E=M("vuIU"),_=M("JX7q"),C=M("Ji7U"),m=M("LK+K"),c=M("q1tI"),r=M("TSYQ"),n=M.n(r),e=M("sboe"),s=M("OZM5"),u=function(B){var b=B.prefixCls,A=B.level,l=B.isStart,i=B.isEnd;if(!A)return null;for(var x="".concat(b,"-indent-unit"),O=[],T=0;T1&&arguments[1]!==void 0?arguments[1]:!1,se=oe.getAttribute("id")||oe.getAttribute("data-reactid")||oe.getAttribute("name");if(me&&R[se])return R[se];var _e=window.getComputedStyle(oe),Ae=_e.getPropertyValue("box-sizing")||_e.getPropertyValue("-moz-box-sizing")||_e.getPropertyValue("-webkit-box-sizing"),Ee=parseFloat(_e.getPropertyValue("padding-bottom"))+parseFloat(_e.getPropertyValue("padding-top")),pe=parseFloat(_e.getPropertyValue("border-bottom-width"))+parseFloat(_e.getPropertyValue("border-top-width")),he=D.map(function(fe){return"".concat(fe,":").concat(_e.getPropertyValue(fe))}).join(";"),ie={sizingStyle:he,paddingSize:Ee,borderSize:pe,boxSizing:Ae};return me&&se&&(R[se]=ie),ie}function J(oe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),oe.getAttribute("wrap")?k.setAttribute("wrap",oe.getAttribute("wrap")):k.removeAttribute("wrap");var Ae=H(oe,me),Ee=Ae.paddingSize,pe=Ae.borderSize,he=Ae.boxSizing,ie=Ae.sizingStyle;k.setAttribute("style","".concat(ie,";").concat(T)),k.value=oe.value||oe.placeholder||"";var fe=Number.MIN_SAFE_INTEGER,ge=Number.MAX_SAFE_INTEGER,ce=k.scrollHeight,Ie;if(he==="border-box"?ce+=pe:he==="content-box"&&(ce-=Ee),se!==null||_e!==null){k.value=" ";var Fe=k.scrollHeight-Ee;se!==null&&(fe=Fe*se,he==="border-box"&&(fe=fe+Ee+pe),ce=Math.max(fe,ce)),_e!==null&&(ge=Fe*_e,he==="border-box"&&(ge=ge+Ee+pe),Ie=ce>ge?"":"hidden",ce=Math.min(ge,ce))}return{height:ce,minHeight:fe,maxHeight:ge,overflowY:Ie,resize:"none"}}var U=M("Gytx"),K=M.n(U),G;(function(oe){oe[oe.NONE=0]="NONE",oe[oe.RESIZING=1]="RESIZING",oe[oe.RESIZED=2]="RESIZED"})(G||(G={}));var N=function(oe){Object(y.a)(se,oe);var me=Object(E.a)(se);function se(_e){var Ae;return Object(Y.a)(this,se),Ae=me.call(this,_e),Ae.nextFrameActionId=void 0,Ae.resizeFrameId=void 0,Ae.textArea=void 0,Ae.saveTextArea=function(Ee){Ae.textArea=Ee},Ae.handleResize=function(Ee){var pe=Ae.state.resizeStatus,he=Ae.props,ie=he.autoSize,fe=he.onResize;if(pe!==G.NONE)return;typeof fe=="function"&&fe(Ee),ie&&Ae.resizeOnNextFrame()},Ae.resizeOnNextFrame=function(){cancelAnimationFrame(Ae.nextFrameActionId),Ae.nextFrameActionId=requestAnimationFrame(Ae.resizeTextarea)},Ae.resizeTextarea=function(){var Ee=Ae.props.autoSize;if(!Ee||!Ae.textArea)return;var pe=Ee.minRows,he=Ee.maxRows,ie=J(Ae.textArea,!1,pe,he);Ae.setState({textareaStyles:ie,resizeStatus:G.RESIZING},function(){cancelAnimationFrame(Ae.resizeFrameId),Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:G.RESIZED},function(){Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:G.NONE}),Ae.fixFirefoxAutoScroll()})})})})},Ae.renderTextArea=function(){var Ee=Ae.props,pe=Ee.prefixCls,he=pe===void 0?"rc-textarea":pe,ie=Ee.autoSize,fe=Ee.onResize,ge=Ee.className,ce=Ee.disabled,Ie=Ae.state,Fe=Ie.textareaStyles,ke=Ie.resizeStatus,re=Object(i.a)(Ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),F=O()(he,ge,Object(m.a)({},"".concat(he,"-disabled"),ce));"value"in re&&(re.value=re.value||"");var W=Object(C.a)(Object(C.a)(Object(C.a)({},Ae.props.style),Fe),ke===G.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return _.createElement(l,{onResize:Ae.handleResize,disabled:!(ie||fe)},_.createElement("textarea",Object(ue.a)({},re,{className:F,style:W,ref:Ae.saveTextArea})))},Ae.state={textareaStyles:{},resizeStatus:G.NONE},Ae}return Object(P.a)(se,[{key:"componentDidUpdate",value:function(Ae){(Ae.value!==this.props.value||!K()(Ae.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 Ae=this.textArea.selectionStart,Ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ae,Ee)}}catch(pe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(_.Component),Q=N,X=function(oe){Object(y.a)(se,oe);var me=Object(E.a)(se);function se(_e){var Ae;Object(Y.a)(this,se),Ae=me.call(this,_e),Ae.resizableTextArea=void 0,Ae.focus=function(){Ae.resizableTextArea.textArea.focus()},Ae.saveTextArea=function(pe){Ae.resizableTextArea=pe},Ae.handleChange=function(pe){var he=Ae.props.onChange;Ae.setValue(pe.target.value,function(){Ae.resizableTextArea.resizeTextarea()}),he&&he(pe)},Ae.handleKeyDown=function(pe){var he=Ae.props,ie=he.onPressEnter,fe=he.onKeyDown;pe.keyCode===13&&ie&&ie(pe),fe&&fe(pe)};var Ee=typeof _e.value=="undefined"||_e.value===null?_e.defaultValue:_e.value;return Ae.state={value:Ee},Ae}return Object(P.a)(se,[{key:"setValue",value:function(Ae,Ee){"value"in this.props||this.setState({value:Ae},Ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return _.createElement(Q,Object(ue.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ae){return"value"in Ae?{value:Ae.value}:null}}]),se}(_.Component),te=we.default=X},YH21:function(Ze,we,M){var ue=M("H6uX");we.Dispatcher=ue;var Y=M("ItGF"),P=M("Ze12"),y=P.isCanvasEl,E=P.transformCoordWithViewport,_=typeof window!="undefined"&&!!window.addEventListener,C=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,m=[];function c(a,h,g,p){return g=g||{},p||!Y.canvasSupported?r(a,h,g):Y.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(g.zrX=h.layerX,g.zrY=h.layerY):h.offsetX!=null?(g.zrX=h.offsetX,g.zrY=h.offsetY):r(a,h,g),g}function r(a,h,g){if(Y.domSupported&&a.getBoundingClientRect){var p=h.clientX,S=h.clientY;if(y(a)){var w=a.getBoundingClientRect();g.zrX=p-w.left,g.zrY=S-w.top;return}else if(E(m,a,p,S)){g.zrX=m[0],g.zrY=m[1];return}}g.zrX=g.zrY=0}function n(a){return a||window.event}function e(a,h,g){if(h=n(h),h.zrX!=null)return h;var p=h.type,S=p&&p.indexOf("touch")>=0;if(!S)c(a,h,h,g),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var w=p!=="touchend"?h.targetTouches[0]:h.changedTouches[0];w&&c(a,w,h,g)}var B=h.button;return h.which==null&&B!==void 0&&C.test(h.type)&&(h.which=B&1?1:B&2?3:B&4?2:0),h}function s(a,h,g,p){_?a.addEventListener(h,g,p):a.attachEvent("on"+h,g)}function u(a,h,g,p){_?a.removeEventListener(h,g,p):a.detachEvent("on"+h,g)}var o=_?function(a){a.preventDefault(),a.stopPropagation(),a.cancelBubble=!0}:function(a){a.returnValue=!1,a.cancelBubble=!0};function f(a){return a.which===2||a.which===3}function d(a){return a.which>1}we.clientToLocal=c,we.getNativeEvent=n,we.normalizeEvent=e,we.addEventListener=s,we.removeEventListener=u,we.stop=o,we.isMiddleOrRightButtonOnMouseUpDown=f,we.notLeftMouse=d},"Ye+n":function(Ze,we,M){Ze.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},YgsL:function(Ze,we,M){var ue=M("QBsz"),Y=ue.distance;function P(E,_,C,m,c,r,n){var e=(C-E)*.5,s=(m-_)*.5;return(2*(_-C)+e+s)*n+(-3*(_-C)-2*e-s)*r+e*c+_}function y(E,_){for(var C=E.length,m=[],c=0,r=1;rC-2?C-1:s+1],a=E[s>C-3?C-1:s+2]);var h=u*u,g=u*h;m.push([P(o[0],f[0],d[0],a[0],u,h,g),P(o[1],f[1],d[1],a[1],u,h,g)])}return m}Ze.exports=y},ZW9T:function(Ze,we,M){"use strict";M.d(we,"a",function(){return p});var ue=M("k1fw"),Y=M("miYZ"),P=M("tsqr"),y=M("rAM+"),E=M("tJVT"),_=M("PpiC"),C=M("q1tI"),m=M.n(C),c=M("bdgK");function r(S,w,B,b,A){var l=w.getWordUntilPosition(B),i={startLineNumber:B.lineNumber,endLineNumber:B.lineNumber,startColumn:l.startColumn,endColumn:l.endColumn},x=b.map(function(O){return{label:O,kind:S.languages.CompletionItemKind.Keyword,insertText:O,insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:i}});return A.map(function(O){x.push(Object(ue.a)(Object(ue.a)({},O),{},{range:i}))}),x}var n=function(S){var w={label:"ifelse",kind:S.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet},B=["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","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];S.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(i,x){var O=r(S,i,x,B,[w]);return{suggestions:O}}});var b=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];S.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(i,x){var O=[{label:"print",kind:S.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` `),insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=r(S,i,x,b,O);return{suggestions:T}}});var A=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];S.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(i,x){var O=[w,{label:"main",kind:S.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:S.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` `),insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=r(S,i,x,A,O);return{suggestions:T}}})},e="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",s=M("LvDl");function u(S){return/^\d+$/.test(S)?"".concat(S,"px"):S}function o(){}var f=!1,d={"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 a(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=S;if(Array.isArray(S)){for(var B=0;B0||Ut.target.offsetWidth>0)&&ge.current.instance.layout()}}catch(Xt){mt.e(Xt)}finally{mt.f()}}),Ne.observe(fe.current)),Ne}function ne(){P.b.warn(decodeURIComponent(e))}var le=function(){var et=ge.current.instance;if(l!=null&&et&&F){var mt=et.getModel();mt&&l!==mt.getValue()&&(f=!0,mt.setValue(l),et.layout(),f=!1)}};Object(C.useEffect)(function(){ce.current&&clearTimeout(ce.current),ce.current=setTimeout(function(){le()},500)},[l,F,ge.current]);function De(){var Ne=ge.current.instance;if(Ne){var et=Ne.getSelection(),mt=ge.current.pastePos||{},At=new h.Range(mt.startLineNumber||et.endLineNumber,mt.startColumn||et.endColumn,mt.endLineNumber||et.endLineNumber,mt.endColumn||et.endColumn);setTimeout(function(){Ne.executeEdits("",[{range:At,text:""}])},300)}}function Xe(Ne){(window.navigator.platform.match("Mac")?Ne.metaKey:Ne.ctrlKey)&&Ne.keyCode==83&&(Ne.preventDefault(),G())}var xt=function(){if(Q&&ge.current.instance){var et=ge.current.instance.getContentHeight();Pe(et0||se.target.offsetWidth>0)&&Q.layout()}}catch(_e){oe.e(_e)}finally{oe.f()}}),X.observe(D.current)),X}Object(C.useEffect)(function(){D.current&&M.e(27).then(M.t.bind(null,"M/lh",7)).then(function(Q){h=Q;var X=h.editor.createDiffEditor(D.current,Object(ue.a)(Object(ue.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},T),{},{wordWrap:!0}));J(X);var te=U(X);return function(){X.dispose();var oe=X.getModel();oe&&oe.dispose(),te.unobserve(D.current)}})},[]),Object(C.useEffect)(function(){H&&H.setModel({original:h.editor.createModel(l,x),modified:h.editor.createModel(i,x)})},[l,i,x,H]);var K=u(B),G=u(A),N={width:K,height:G};return m.a.createElement("div",{className:"my-diff-editor",ref:D,style:N})}},Ze12:function(Ze,we,M){var ue=M("ItGF"),Y=M("hOwI"),P=Y.buildTransformer,y="___zrEVENTSAVED",E=[];function _(n,e,s,u,o){return C(E,e,u,o,!0)&&C(n,s,E[0],E[1])}function C(n,e,s,u,o){if(e.getBoundingClientRect&&ue.domSupported&&!r(e)){var f=e[y]||(e[y]={}),d=m(e,f),a=c(d,f,o);if(a)return a(n,s,u),!0}return!1}function m(n,e){var s=e.markers;if(s)return s;s=e.markers=[];for(var u=["left","right"],o=["top","bottom"],f=0;f<4;f++){var d=document.createElement("div"),a=d.style,h=f%2,g=(f>>1)%2;a.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[h]+":0",o[g]+":0",u[1-h]+":auto",o[1-g]+":auto",""].join("!important;"),n.appendChild(d),s.push(d)}return s}function c(n,e,s){for(var u=s?"invTrans":"trans",o=e[u],f=e.srcCoords,d=!0,a=[],h=[],g=0;g<4;g++){var p=n[g].getBoundingClientRect(),S=2*g,w=p.left,B=p.top;a.push(w,B),d=d&&f&&w===f[S]&&B===f[S+1],h.push(n[g].offsetLeft,n[g].offsetTop)}return d&&o?o:(e.srcCoords=a,e[u]=s?P(h,a):P(a,h))}function r(n){return n.nodeName.toUpperCase()==="CANVAS"}we.transformLocalCoord=_,we.transformCoordWithViewport=C,we.isCanvasEl=r},ZpRC:function(Ze,we,M){"use strict";function ue(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function Y(n,e){return(!e||n!=="hidden")&&n!=="visible"&&n!=="clip"}function P(n,e){if(n.clientHeighte||f>n&&d=e&&a>=s?f-n-u:d>e&&as?d-e+o:0}var E=function(n,e){var s=window,u=e.scrollMode,o=e.block,f=e.inline,d=e.boundary,a=e.skipOverflowHiddenElements,h=typeof d=="function"?d:function(Fe){return Fe!==d};if(!ue(n))throw new TypeError("Invalid target");for(var g=document.scrollingElement||document.documentElement,p=[],S=n;ue(S)&&h(S);){if((S=S.parentElement)===g){p.push(S);break}S!=null&&S===document.body&&P(S)&&!P(document.documentElement)||S!=null&&P(S,a)&&p.push(S)}for(var w=s.visualViewport?s.visualViewport.width:innerWidth,B=s.visualViewport?s.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,l=n.getBoundingClientRect(),i=l.height,x=l.width,O=l.top,T=l.right,D=l.bottom,R=l.left,k=o==="start"||o==="nearest"?O:o==="end"?D:O+i/2,H=f==="center"?R+x/2:f==="end"?T:R,J=[],U=0;U=0&&R>=0&&D<=B&&T<=w&&O>=X&&D<=oe&&R>=me&&T<=te)return J;var se=getComputedStyle(K),_e=parseInt(se.borderLeftWidth,10),Ae=parseInt(se.borderTopWidth,10),Ee=parseInt(se.borderRightWidth,10),pe=parseInt(se.borderBottomWidth,10),he=0,ie=0,fe="offsetWidth"in K?K.offsetWidth-K.clientWidth-_e-Ee:0,ge="offsetHeight"in K?K.offsetHeight-K.clientHeight-Ae-pe:0;if(g===K)he=o==="start"?k:o==="end"?k-B:o==="nearest"?y(A,A+B,B,Ae,pe,A+k,A+k+i,i):k-B/2,ie=f==="start"?H:f==="center"?H-w/2:f==="end"?H-w:y(b,b+w,w,_e,Ee,b+H,b+H+x,x),he=Math.max(0,he+A),ie=Math.max(0,ie+b);else{he=o==="start"?k-X-Ae:o==="end"?k-oe+pe+ge:o==="nearest"?y(X,oe,N,Ae,pe+ge,k,k+i,i):k-(X+N/2)+ge/2,ie=f==="start"?H-me-_e:f==="center"?H-(me+Q/2)+fe/2:f==="end"?H-te+Ee+fe:y(me,te,Q,_e,Ee+fe,H,H+x,x);var ce=K.scrollLeft,Ie=K.scrollTop;k+=Ie-(he=Math.max(0,Math.min(Ie+he,K.scrollHeight-N+ge))),H+=ce-(ie=Math.max(0,Math.min(ce+ie,K.scrollWidth-Q+fe)))}J.push({el:K,top:he,left:ie})}return J};function _(n){return n===Object(n)&&Object.keys(n).length!==0}function C(n,e){e===void 0&&(e="auto");var s="scrollBehavior"in document.body.style;n.forEach(function(u){var o=u.el,f=u.top,d=u.left;o.scroll&&s?o.scroll({top:f,left:d,behavior:e}):(o.scrollTop=f,o.scrollLeft=d)})}function m(n){return n===!1?{block:"end",inline:"nearest"}:_(n)?n:{block:"start",inline:"nearest"}}function c(n,e){var s=!n.ownerDocument.documentElement.contains(n);if(_(e)&&typeof e.behavior=="function")return e.behavior(s?[]:E(n,e));if(s)return;var u=m(e);return C(E(n,u),u.behavior)}var r=we.a=c},Zss7:function(Ze,we,M){var ue;(function(Y){var P=/^\s+/,y=/\s+$/,E=0,_=Y.round,C=Y.min,m=Y.max,c=Y.random;function r(pe,he){if(pe=pe||"",he=he||{},pe instanceof r)return pe;if(!(this instanceof r))return new r(pe,he);var ie=n(pe);this._originalInput=pe,this._r=ie.r,this._g=ie.g,this._b=ie.b,this._a=ie.a,this._roundA=_(100*this._a)/100,this._format=he.format||ie.format,this._gradientType=he.gradientType,this._r<1&&(this._r=_(this._r)),this._g<1&&(this._g=_(this._g)),this._b<1&&(this._b=_(this._b)),this._ok=ie.ok,this._tc_id=E++}r.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 pe=this.toRgb();return(pe.r*299+pe.g*587+pe.b*114)/1e3},getLuminance:function(){var pe=this.toRgb(),he,ie,fe,ge,ce,Ie;return he=pe.r/255,ie=pe.g/255,fe=pe.b/255,he<=.03928?ge=he/12.92:ge=Y.pow((he+.055)/1.055,2.4),ie<=.03928?ce=ie/12.92:ce=Y.pow((ie+.055)/1.055,2.4),fe<=.03928?Ie=fe/12.92:Ie=Y.pow((fe+.055)/1.055,2.4),.2126*ge+.7152*ce+.0722*Ie},setAlpha:function(pe){return this._a=J(pe),this._roundA=_(100*this._a)/100,this},toHsv:function(){var pe=o(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,v:pe.v,a:this._a}},toHsvString:function(){var pe=o(this._r,this._g,this._b),he=_(pe.h*360),ie=_(pe.s*100),fe=_(pe.v*100);return this._a==1?"hsv("+he+", "+ie+"%, "+fe+"%)":"hsva("+he+", "+ie+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var pe=s(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,l:pe.l,a:this._a}},toHslString:function(){var pe=s(this._r,this._g,this._b),he=_(pe.h*360),ie=_(pe.s*100),fe=_(pe.l*100);return this._a==1?"hsl("+he+", "+ie+"%, "+fe+"%)":"hsla("+he+", "+ie+"%, "+fe+"%, "+this._roundA+")"},toHex:function(pe){return d(this._r,this._g,this._b,pe)},toHexString:function(pe){return"#"+this.toHex(pe)},toHex8:function(pe){return a(this._r,this._g,this._b,this._a,pe)},toHex8String:function(pe){return"#"+this.toHex8(pe)},toRgb:function(){return{r:_(this._r),g:_(this._g),b:_(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+_(this._r)+", "+_(this._g)+", "+_(this._b)+")":"rgba("+_(this._r)+", "+_(this._g)+", "+_(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:_(U(this._r,255)*100)+"%",g:_(U(this._g,255)*100)+"%",b:_(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+_(U(this._r,255)*100)+"%, "+_(U(this._g,255)*100)+"%, "+_(U(this._b,255)*100)+"%)":"rgba("+_(U(this._r,255)*100)+"%, "+_(U(this._g,255)*100)+"%, "+_(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(pe){var he="#"+h(this._r,this._g,this._b,this._a),ie=he,fe=this._gradientType?"GradientType = 1, ":"";if(pe){var ge=r(pe);ie="#"+h(ge._r,ge._g,ge._b,ge._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+he+",endColorstr="+ie+")"},toString:function(pe){var he=!!pe;pe=pe||this._format;var ie=!1,fe=this._a<1&&this._a>=0,ge=!he&&fe&&(pe==="hex"||pe==="hex6"||pe==="hex3"||pe==="hex4"||pe==="hex8"||pe==="name");return ge?pe==="name"&&this._a===0?this.toName():this.toRgbString():(pe==="rgb"&&(ie=this.toRgbString()),pe==="prgb"&&(ie=this.toPercentageRgbString()),(pe==="hex"||pe==="hex6")&&(ie=this.toHexString()),pe==="hex3"&&(ie=this.toHexString(!0)),pe==="hex4"&&(ie=this.toHex8String(!0)),pe==="hex8"&&(ie=this.toHex8String()),pe==="name"&&(ie=this.toName()),pe==="hsl"&&(ie=this.toHslString()),pe==="hsv"&&(ie=this.toHsvString()),ie||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(pe,he){var ie=pe.apply(null,[this].concat([].slice.call(he)));return this._r=ie._r,this._g=ie._g,this._b=ie._b,this.setAlpha(ie._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(pe,he){return pe.apply(null,[this].concat([].slice.call(he)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(l,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(i,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},r.fromRatio=function(pe,he){if(typeof pe=="object"){var ie={};for(var fe in pe)pe.hasOwnProperty(fe)&&(fe==="a"?ie[fe]=pe[fe]:ie[fe]=te(pe[fe]));pe=ie}return r(pe,he)};function n(pe){var he={r:0,g:0,b:0},ie=1,fe=null,ge=null,ce=null,Ie=!1,Fe=!1;return typeof pe=="string"&&(pe=Ae(pe)),typeof pe=="object"&&(_e(pe.r)&&_e(pe.g)&&_e(pe.b)?(he=e(pe.r,pe.g,pe.b),Ie=!0,Fe=String(pe.r).substr(-1)==="%"?"prgb":"rgb"):_e(pe.h)&&_e(pe.s)&&_e(pe.v)?(fe=te(pe.s),ge=te(pe.v),he=f(pe.h,fe,ge),Ie=!0,Fe="hsv"):_e(pe.h)&&_e(pe.s)&&_e(pe.l)&&(fe=te(pe.s),ce=te(pe.l),he=u(pe.h,fe,ce),Ie=!0,Fe="hsl"),pe.hasOwnProperty("a")&&(ie=pe.a)),ie=J(ie),{ok:Ie,format:pe.format||Fe,r:C(255,m(he.r,0)),g:C(255,m(he.g,0)),b:C(255,m(he.b,0)),a:ie}}function e(pe,he,ie){return{r:U(pe,255)*255,g:U(he,255)*255,b:U(ie,255)*255}}function s(pe,he,ie){pe=U(pe,255),he=U(he,255),ie=U(ie,255);var fe=m(pe,he,ie),ge=C(pe,he,ie),ce,Ie,Fe=(fe+ge)/2;if(fe==ge)ce=Ie=0;else{var ke=fe-ge;Ie=Fe>.5?ke/(2-fe-ge):ke/(fe+ge);switch(fe){case pe:ce=(he-ie)/ke+(he1&&(W-=1),W<1/6?re+(F-re)*6*W:W<1/2?F:W<2/3?re+(F-re)*(2/3-W)*6:re}if(he===0)fe=ge=ce=ie;else{var Fe=ie<.5?ie*(1+he):ie+he-ie*he,ke=2*ie-Fe;fe=Ie(ke,Fe,pe+1/3),ge=Ie(ke,Fe,pe),ce=Ie(ke,Fe,pe-1/3)}return{r:fe*255,g:ge*255,b:ce*255}}function o(pe,he,ie){pe=U(pe,255),he=U(he,255),ie=U(ie,255);var fe=m(pe,he,ie),ge=C(pe,he,ie),ce,Ie,Fe=fe,ke=fe-ge;if(Ie=fe===0?0:ke/fe,fe==ge)ce=0;else{switch(fe){case pe:ce=(he-ie)/ke+(he>1)+720)%360;--he;)fe.h=(fe.h+ge)%360,ce.push(r(fe));return ce}function D(pe,he){he=he||6;for(var ie=r(pe).toHsv(),fe=ie.h,ge=ie.s,ce=ie.v,Ie=[],Fe=1/he;he--;)Ie.push(r({h:fe,s:ge,v:ce})),ce=(ce+Fe)%1;return Ie}r.mix=function(pe,he,ie){ie=ie===0?0:ie||50;var fe=r(pe).toRgb(),ge=r(he).toRgb(),ce=ie/100,Ie={r:(ge.r-fe.r)*ce+fe.r,g:(ge.g-fe.g)*ce+fe.g,b:(ge.b-fe.b)*ce+fe.b,a:(ge.a-fe.a)*ce+fe.a};return r(Ie)},r.readability=function(pe,he){var ie=r(pe),fe=r(he);return(Y.max(ie.getLuminance(),fe.getLuminance())+.05)/(Y.min(ie.getLuminance(),fe.getLuminance())+.05)},r.isReadable=function(pe,he,ie){var fe=r.readability(pe,he),ge,ce;ce=!1,ge=Ee(ie);switch(ge.level+ge.size){case"AAsmall":case"AAAlarge":ce=fe>=4.5;break;case"AAlarge":ce=fe>=3;break;case"AAAsmall":ce=fe>=7;break}return ce},r.mostReadable=function(pe,he,ie){var fe=null,ge=0,ce,Ie,Fe,ke;ie=ie||{},Ie=ie.includeFallbackColors,Fe=ie.level,ke=ie.size;for(var re=0;rege&&(ge=ce,fe=r(he[re]));return r.isReadable(pe,fe,{level:Fe,size:ke})||!Ie?fe:(ie.includeFallbackColors=!1,r.mostReadable(pe,["#fff","#000"],ie))};var R=r.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"},k=r.hexNames=H(R);function H(pe){var he={};for(var ie in pe)pe.hasOwnProperty(ie)&&(he[pe[ie]]=ie);return he}function J(pe){return pe=parseFloat(pe),(isNaN(pe)||pe<0||pe>1)&&(pe=1),pe}function U(pe,he){N(pe)&&(pe="100%");var ie=Q(pe);return pe=C(he,m(0,parseFloat(pe))),ie&&(pe=parseInt(pe*he,10)/100),Y.abs(pe-he)<1e-6?1:pe%he/parseFloat(he)}function K(pe){return C(1,m(0,pe))}function G(pe){return parseInt(pe,16)}function N(pe){return typeof pe=="string"&&pe.indexOf(".")!=-1&&parseFloat(pe)===1}function Q(pe){return typeof pe=="string"&&pe.indexOf("%")!=-1}function X(pe){return pe.length==1?"0"+pe:""+pe}function te(pe){return pe<=1&&(pe=pe*100+"%"),pe}function oe(pe){return Y.round(parseFloat(pe)*255).toString(16)}function me(pe){return G(pe)/255}var se=function(){var pe="[-\\+]?\\d+%?",he="[-\\+]?\\d*\\.\\d+%?",ie="(?:"+he+")|(?:"+pe+")",fe="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?",ge="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?";return{CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+ge),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+ge),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+ge),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 _e(pe){return!!se.CSS_UNIT.exec(pe)}function Ae(pe){pe=pe.replace(P,"").replace(y,"").toLowerCase();var he=!1;if(R[pe])pe=R[pe],he=!0;else if(pe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ie;return(ie=se.rgb.exec(pe))?{r:ie[1],g:ie[2],b:ie[3]}:(ie=se.rgba.exec(pe))?{r:ie[1],g:ie[2],b:ie[3],a:ie[4]}:(ie=se.hsl.exec(pe))?{h:ie[1],s:ie[2],l:ie[3]}:(ie=se.hsla.exec(pe))?{h:ie[1],s:ie[2],l:ie[3],a:ie[4]}:(ie=se.hsv.exec(pe))?{h:ie[1],s:ie[2],v:ie[3]}:(ie=se.hsva.exec(pe))?{h:ie[1],s:ie[2],v:ie[3],a:ie[4]}:(ie=se.hex8.exec(pe))?{r:G(ie[1]),g:G(ie[2]),b:G(ie[3]),a:me(ie[4]),format:he?"name":"hex8"}:(ie=se.hex6.exec(pe))?{r:G(ie[1]),g:G(ie[2]),b:G(ie[3]),format:he?"name":"hex"}:(ie=se.hex4.exec(pe))?{r:G(ie[1]+""+ie[1]),g:G(ie[2]+""+ie[2]),b:G(ie[3]+""+ie[3]),a:me(ie[4]+""+ie[4]),format:he?"name":"hex8"}:(ie=se.hex3.exec(pe))?{r:G(ie[1]+""+ie[1]),g:G(ie[2]+""+ie[2]),b:G(ie[3]+""+ie[3]),format:he?"name":"hex"}:!1}function Ee(pe){var he,ie;return pe=pe||{level:"AA",size:"small"},he=(pe.level||"AA").toUpperCase(),ie=(pe.size||"small").toLowerCase(),he!=="AA"&&he!=="AAA"&&(he="AA"),ie!=="small"&&ie!=="large"&&(ie="small"),{level:he,size:ie}}Ze.exports?Ze.exports=r:!(ue=function(){return r}.call(we,M,we,Ze),ue!==void 0&&(Ze.exports=ue))})(Math)},aKvl:function(Ze,we,M){var ue=M("Sj9i"),Y=ue.quadraticProjectPoint;function P(y,E,_,C,m,c,r,n,e){if(r===0)return!1;var s=r;if(e>E+s&&e>C+s&&e>c+s||ey+s&&n>_+s&&n>m+s||n>>1|(d&21845)<<1;a=(a&52428)>>>2|(a&13107)<<2,a=(a&61680)>>>4|(a&3855)<<4,f[d]=((a&65280)>>>8|(a&255)<<8)>>>1}for(var h=function(Le,Qe,ot){for(var _t=Le.length,Kt=0,nn=new y(Qe);Kt<_t;++Kt)++nn[Le[Kt]-1];var ve=new y(Qe);for(Kt=0;Kt>>Z]=ye}else for(z=new y(_t),Kt=0;Kt<_t;++Kt)z[Kt]=f[ve[Le[Kt]-1]++]>>>15-Le[Kt];return z},g=new P(288),d=0;d<144;++d)g[d]=8;for(var d=144;d<256;++d)g[d]=9;for(var d=256;d<280;++d)g[d]=7;for(var d=280;d<288;++d)g[d]=8;for(var p=new P(32),d=0;d<32;++d)p[d]=5;var S=h(g,9,0),w=h(g,9,1),B=h(p,5,0),b=h(p,5,1),A=function(Le){for(var Qe=Le[0],ot=1;otQe&&(Qe=Le[ot]);return Qe},l=function(Le,Qe,ot){var _t=Qe/8>>0;return(Le[_t]|Le[_t+1]<<8)>>>(Qe&7)&ot},i=function(Le,Qe){var ot=Qe/8>>0;return(Le[ot]|Le[ot+1]<<8|Le[ot+2]<<16)>>>(Qe&7)},x=function(Le){return(Le/8>>0)+(Le&7&&1)},O=function(Le,Qe,ot){(Qe==null||Qe<0)&&(Qe=0),(ot==null||ot>Le.length)&&(ot=Le.length);var _t=new(Le instanceof y?y:Le instanceof E?E:P)(ot-Qe);return _t.set(Le.subarray(Qe,ot)),_t},T=function(Le,Qe,ot){var _t=Le.length,Kt=!Qe||ot,nn=!ot||ot.i;ot||(ot={}),Qe||(Qe=new P(_t*3));var ve=function(qr){var _a=Qe.length;if(qr>_a){var Jr=new P(Math.max(_a*2,qr));Jr.set(Qe),Qe=Jr}},z=ot.f||0,Z=ot.p||0,ye=ot.b||0,Ce=ot.l,be=ot.d,ht=ot.m,Nt=ot.n,sn=_t*8;do{if(!Ce){ot.f=z=l(Le,Z,1);var pn=l(Le,Z+1,3);if(Z+=3,pn)if(pn==1)Ce=w,be=b,ht=9,Nt=5;else if(pn==2){var rr=l(Le,Z,31)+257,Sr=l(Le,Z+10,15)+4,ia=rr+l(Le,Z+5,31)+1;Z+=14;for(var Dr=new P(ia),na=new P(19),Tr=0;Trsn)break;for(var Oa=h(na,ma,1),Tr=0;Tr>>4;if(zt<16)Dr[Tr++]=zt;else{var ka=0,Ha=0;for(zt==16?(Ha=3+l(Le,Z,3),Z+=2,ka=Dr[Tr-1]):zt==17?(Ha=3+l(Le,Z,7),Z+=3):zt==18&&(Ha=11+l(Le,Z,127),Z+=7);Ha--;)Dr[Tr++]=ka}}var Ia=Dr.subarray(0,rr),Yr=Dr.subarray(rr);ht=A(Ia),Nt=A(Yr),Ce=h(Ia,ht,1),be=h(Yr,Nt,1)}else throw"invalid block type";else{var zt=x(Z)+4,qn=Le[zt-4]|Le[zt-3]<<8,Un=zt+qn;if(Un>_t){if(nn)throw"unexpected EOF";break}Kt&&ve(ye+qn),Qe.set(Le.subarray(zt,Un),ye),ot.b=ye+=qn,ot.p=Z=Un*8;continue}if(Z>sn)throw"unexpected EOF"}Kt&&ve(ye+131072);for(var za=(1<>>4;if(Z+=ka&15,Z>sn)throw"unexpected EOF";if(!ka)throw"invalid length/literal";if(si<256)Qe[ye++]=si;else if(si==256){Ce=null;break}else{var di=si-254;if(si>264){var Tr=si-257,Ma=_[Tr];di=l(Le,Z,(1<>>4;if(!zr)throw"invalid distance";Z+=zr&15;var Yr=u[Ar];if(Ar>3){var Ma=C[Ar];Yr+=i(Le,Z)&(1<sn)throw"unexpected EOF";Kt&&ve(ye+131072);for(var Gr=ye+di;ye>0;Le[_t]|=ot,Le[_t+1]|=ot>>>8},R=function(Le,Qe,ot){ot<<=Qe&7;var _t=Qe/8>>0;Le[_t]|=ot,Le[_t+1]|=ot>>>8,Le[_t+2]|=ot>>>16},k=function(Le,Qe){for(var ot=[],_t=0;_tht&&(ht=nn[_t].s);var Nt=new y(ht+1),sn=H(ot[Ce-1],Nt,0);if(sn>Qe){var _t=0,pn=0,zt=sn-Qe,qn=1<Qe)pn+=qn-(1<>>=zt;pn>0;){var rr=nn[_t].s;Nt[rr]=0&&pn;--_t){var Sr=nn[_t].s;Nt[Sr]==Qe&&(--Nt[Sr],++pn)}sn=Qe}return[new P(Nt),sn]},H=function(Le,Qe,ot){return Le.s==-1?Math.max(H(Le.l,Qe,ot+1),H(Le.r,Qe,ot+1)):Qe[Le.s]=ot},J=function(Le){for(var Qe=Le.length;Qe&&!Le[--Qe];);for(var ot=new y(++Qe),_t=0,Kt=Le[0],nn=1,ve=function(Z){ot[_t++]=Z},z=1;z<=Qe;++z)if(Le[z]==Kt&&z!=Qe)++nn;else{if(!Kt&&nn>2){for(;nn>138;nn-=138)ve(32754);nn>2&&(ve(nn>10?nn-11<<5|28690:nn-3<<5|12305),nn=0)}else if(nn>3){for(ve(Kt),--nn;nn>6;nn-=6)ve(8304);nn>2&&(ve(nn-3<<5|8208),nn=0)}for(;nn--;)ve(Kt);nn=1,Kt=Le[z]}return[ot.subarray(0,_t),Qe]},U=function(Le,Qe){for(var ot=0,_t=0;_t>>8,Le[Kt+2]=Le[Kt]^255,Le[Kt+3]=Le[Kt+1]^255;for(var nn=0;nn<_t;++nn)Le[Kt+nn+4]=ot[nn];return(Kt+4+_t)*8},G=function(Le,Qe,ot,_t,Kt,nn,ve,z,Z,ye,Ce){D(Qe,Ce++,ot),++Kt[256];for(var be=k(Kt,15),ht=be[0],Nt=be[1],sn=k(nn,15),pn=sn[0],zt=sn[1],qn=J(ht),Un=qn[0],rr=qn[1],Sr=J(pn),ia=Sr[0],Dr=Sr[1],na=new y(19),Tr=0;Tr4&&!ha[m[xa-1]];--xa);var ka=ye+5<<3,Ha=U(Kt,g)+U(nn,p)+ve,Ia=U(Kt,ht)+U(nn,pn)+ve+14+3*xa+U(na,ha)+(2*na[16]+3*na[17]+7*na[18]);if(ka<=Ha&&ka<=Ia)return K(Qe,Ce,Le.subarray(Z,Z+ye));var Yr,za,Ga,Da;if(D(Qe,Ce,1+(Ia15&&(D(Qe,Ce,zr[Tr]>>>5&127),Ce+=zr[Tr]>>>12)}}else Yr=S,za=g,Ga=B,Da=p;for(var Tr=0;Tr255){var Ar=_t[Tr]>>>18&31;R(Qe,Ce,Yr[Ar+257]),Ce+=za[Ar+257],Ar>7&&(D(Qe,Ce,_t[Tr]>>>23&31),Ce+=_[Ar]);var Gr=_t[Tr]&31;R(Qe,Ce,Ga[Gr]),Ce+=Da[Gr],Gr>3&&(R(Qe,Ce,_t[Tr]>>>5&8191),Ce+=C[Gr])}else R(Qe,Ce,Yr[_t[Tr]]),Ce+=za[_t[Tr]];return R(Qe,Ce,Yr[256]),Ce+za[256]},N=new E([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Q=new P(0),X=function(Le,Qe,ot,_t,Kt,nn){var ve=Le.length,z=new P(_t+ve+5*(1+Math.floor(ve/7e3))+Kt),Z=z.subarray(_t,z.length-Kt),ye=0;if(!Qe||ve<8)for(var Ce=0;Ce<=ve;Ce+=65535){var be=Ce+65535;be>>13,sn=ht&8191,pn=(1<7e3||ha>24576)&&Yr>423){ye=G(Le,Z,0,ia,Dr,na,ma,ha,xa,Ce-xa,ye),ha=Tr=ma=0,xa=Ce;for(var za=0;za<286;++za)Dr[za]=0;for(var za=0;za<30;++za)na[za]=0}var Ga=2,Da=0,si=sn,di=Ha-Ia&32767;if(Yr>2&&ka==Sr(Ce-di))for(var Ma=Math.min(Nt,Yr)-1,zr=Math.min(32767,Ce),Ar=Math.min(258,Yr);di<=zr&&--si&&Ha!=Ia;){if(Le[Ce+Ga]==Le[Ce+Ga-di]){for(var Gr=0;GrGa){if(Ga=Gr,Da=di,Gr>Ma)break;for(var qr=Math.min(di,Gr-2),_a=0,za=0;za_a&&(_a=Fa,Ia=Jr)}}}Ha=Ia,Ia=zt[Ha],di+=Ha-Ia+32768&32767}if(Da){ia[ha++]=268435456|e[Ga]<<18|o[Da];var vi=e[Ga]&31,vo=o[Da]&31;ma+=_[vi]+C[vo],++Dr[257+vi],++na[vo],Oa=Ce+Ga,++Tr}else ia[ha++]=Le[Ce],++Dr[Le[Ce]]}}ye=G(Le,Z,nn,ia,Dr,na,ma,ha,xa,Ce-xa,ye),nn||(ye=K(Z,ye,Q))}return O(z,0,_t+x(ye)+Kt)},te=function(){for(var Le=new E(256),Qe=0;Qe<256;++Qe){for(var ot=Qe,_t=9;--_t;)ot=(ot&1&&3988292384)^ot>>>1;Le[Qe]=ot}return Le}(),oe=function(){var Le=4294967295;return{p:function(Qe){for(var ot=Le,_t=0;_t>>8;Le=ot},d:function(){return Le^4294967295}}},me=function(){var Le=1,Qe=0;return{p:function(ot){for(var _t=Le,Kt=Qe,nn=ot.length,ve=0;ve!=nn;){for(var z=Math.min(ve+5552,nn);ve>>8<<16|(Qe&255)<<8|Qe>>>8)+((Le&255)<<23)*2}}},se=function(Le,Qe,ot,_t,Kt){return X(Le,Qe.level==null?6:Qe.level,Qe.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(Le.length)))*1.5):12+Qe.mem,ot,_t,!Kt)},_e=function(Le,Qe){var ot={};for(var _t in Le)ot[_t]=Le[_t];for(var _t in Qe)ot[_t]=Qe[_t];return ot},Ae=function(Le,Qe,ot){for(var _t=Le(),Kt=Le.toString(),nn=Kt.slice(Kt.indexOf("[")+1,Kt.lastIndexOf("]")).replace(/ /g,"").split(","),ve=0;ve<_t.length;++ve){var z=_t[ve],Z=nn[ve];if(typeof z=="function"){Qe+=";"+Z+"=";var ye=z.toString();if(z.prototype)if(ye.indexOf("[native code]")!=-1){var Ce=ye.indexOf(" ",8)+1;Qe+=ye.slice(Ce,ye.indexOf("(",Ce))}else{Qe+=ye;for(var be in z.prototype)Qe+=";"+Z+".prototype."+be+"="+z.prototype[be].toString()}else Qe+=ye}else ot[Z]=z}return[Qe,ot]},Ee=[],pe=function(Le){var Qe=[];for(var ot in Le)(Le[ot]instanceof P||Le[ot]instanceof y||Le[ot]instanceof E)&&Qe.push((Le[ot]=new Le[ot].constructor(Le[ot])).buffer);return Qe},he=function(Le,Qe,ot,_t){var Kt;if(!Ee[ot]){for(var nn="",ve={},z=Le.length-1,Z=0;Z>>=8},Xe=function(Le,Qe){var ot=Qe.filename;if(Le[0]=31,Le[1]=139,Le[2]=8,Le[8]=Qe.level<2?4:Qe.level==9?2:0,Le[9]=3,Qe.mtime!=0&&De(Le,4,Math.floor(new Date(Qe.mtime||Date.now())/1e3)),ot){Le[3]=8;for(var _t=0;_t<=ot.length;++_t)Le[_t+10]=ot.charCodeAt(_t)}},xt=function(Le){if(Le[0]!=31||Le[1]!=139||Le[2]!=8)throw"invalid gzip data";var Qe=Le[3],ot=10;Qe&4&&(ot+=Le[10]|(Le[11]<<8)+2);for(var _t=(Qe>>3&1)+(Qe>>4&1);_t>0;_t-=!Le[ot++]);return ot+(Qe&2)},Ke=function(Le){var Qe=Le.length;return(Le[Qe-4]|Le[Qe-3]<<8|Le[Qe-2]<<16)+2*(Le[Qe-1]<<23)},ze=function(Le){return 10+(Le.filename&&Le.filename.length+1||0)},yt=function(Le,Qe){var ot=Qe.level,_t=ot==0?0:ot<6?1:ot==9?3:2;Le[0]=120,Le[1]=_t<<6|(_t?32-2*_t:1)},Et=function(Le){if((Le[0]&15)!=8||Le[0]>>>4>7||(Le[0]<<8|Le[1])%31)throw"invalid zlib data";if(Le[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ct(Le,Qe){return!Qe&&typeof Le=="function"&&(Qe=Le,Le={}),this.ondata=Qe,Le}var lt=function(){function Le(Qe,ot){!ot&&typeof Qe=="function"&&(ot=Qe,Qe={}),this.ondata=ot,this.o=Qe||{}}return Le.prototype.p=function(Qe,ot){this.ondata(se(Qe,this.o,0,0,!ot),ot)},Le.prototype.push=function(Qe,ot){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=ot,this.p(Qe,ot||!1)},Le}(),rt=function(){function Le(Qe,ot){de([fe,function(){return[W,lt]}],this,ct.call(this,Qe,ot),function(_t){var Kt=new lt(_t.data);onmessage=W(Kt)},6)}return Le}();function qe(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[fe],function(_t){return ke($e(_t.data[0],_t.data[1]))},0,ot)}function $e(Le,Qe){return Qe===void 0&&(Qe={}),se(Le,Qe,0,0)}var Pe=function(){function Le(Qe){this.s={},this.p=new P(0),this.ondata=Qe}return Le.prototype.e=function(Qe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var ot=this.p.length,_t=new P(ot+Qe.length);_t.set(this.p),_t.set(Qe,ot),this.p=_t},Le.prototype.c=function(Qe){this.d=this.s.i=Qe||!1;var ot=this.s.b,_t=T(this.p,this.o,this.s);this.ondata(O(_t,ot,this.s.b),this.d),this.o=O(_t,this.s.b-32768),this.s.b=this.o.length,this.p=O(this.p,this.s.p/8>>0),this.s.p&=7},Le.prototype.push=function(Qe,ot){this.e(Qe),this.c(ot)},Le}(),je=function(){function Le(Qe){this.ondata=Qe,de([ie,function(){return[W,Pe]}],this,0,function(){var ot=new Pe;onmessage=W(ot)},7)}return Le}();function Ne(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[ie],function(_t){return ke(et(_t.data[0],re(_t.data[1])))},1,ot)}function et(Le,Qe){return T(Le,Qe)}var mt=function(){function Le(Qe,ot){this.c=oe(),this.l=0,this.v=1,lt.call(this,Qe,ot)}return Le.prototype.push=function(Qe,ot){lt.prototype.push.call(this,Qe,ot)},Le.prototype.p=function(Qe,ot){this.c.p(Qe),this.l+=Qe.length;var _t=se(Qe,this.o,this.v&&ze(this.o),ot&&8,!ot);this.v&&(Xe(_t,this.o),this.v=0),ot&&(De(_t,_t.length-8,this.c.d()),De(_t,_t.length-4,this.l)),this.ondata(_t,ot)},Le}(),At=function(){function Le(Qe,ot){de([fe,ge,function(){return[W,lt,mt]}],this,ct.call(this,Qe,ot),function(_t){var Kt=new mt(_t.data);onmessage=W(Kt)},8)}return Le}();function Ut(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[fe,ge,function(){return[Xt]}],function(_t){return ke(Xt(_t.data[0],_t.data[1]))},2,ot)}function Xt(Le,Qe){Qe===void 0&&(Qe={});var ot=oe(),_t=Le.length;ot.p(Le);var Kt=se(Le,Qe,ze(Qe),8),nn=Kt.length;return Xe(Kt,Qe),De(Kt,nn-8,ot.d()),De(Kt,nn-4,_t),Kt}var un=function(){function Le(Qe){this.v=1,Pe.call(this,Qe)}return Le.prototype.push=function(Qe,ot){if(Pe.prototype.e.call(this,Qe),this.v){var _t=xt(this.p);if(_t>=this.p.length&&!ot)return;this.p=this.p.subarray(_t),this.v=0}if(ot){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Pe.prototype.c.call(this,ot)},Le}(),jt=function(){function Le(Qe){this.ondata=Qe,de([ie,ce,function(){return[W,Pe,un]}],this,0,function(){var ot=new un;onmessage=W(ot)},9)}return Le}();function Zt(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[ie,ce,function(){return[Mt]}],function(_t){return ke(Mt(_t.data[0]))},3,ot)}function Mt(Le,Qe){return T(Le.subarray(xt(Le),-8),Qe||new P(Ke(Le)))}var Tt=function(){function Le(Qe,ot){this.c=me(),this.v=1,lt.call(this,Qe,ot)}return Le.prototype.push=function(Qe,ot){lt.prototype.push.call(this,Qe,ot)},Le.prototype.p=function(Qe,ot){this.c.p(Qe);var _t=se(Qe,this.o,this.v&&2,ot&&4,!ot);this.v&&(yt(_t,this.o),this.v=0),ot&&De(_t,_t.length-4,this.c.d()),this.ondata(_t,ot)},Le}(),Ct=function(){function Le(Qe,ot){de([fe,Ie,function(){return[W,lt,Tt]}],this,ct.call(this,Qe,ot),function(_t){var Kt=new Tt(_t.data);onmessage=W(Kt)},10)}return Le}();function Re(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[fe,Ie,function(){return[We]}],function(_t){return ke(We(_t.data[0],_t.data[1]))},4,ot)}function We(Le,Qe){Qe===void 0&&(Qe={});var ot=me();ot.p(Le);var _t=se(Le,Qe,2,4);return yt(_t,Qe),De(_t,_t.length-4,ot.d()),_t}var St=function(){function Le(Qe){this.v=1,Pe.call(this,Qe)}return Le.prototype.push=function(Qe,ot){if(Pe.prototype.e.call(this,Qe),this.v){if(this.p.length<2&&!ot)return;this.p=this.p.subarray(2),this.v=0}if(ot){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Pe.prototype.c.call(this,ot)},Le}(),ft=function(){function Le(Qe){this.ondata=Qe,de([ie,Fe,function(){return[W,Pe,St]}],this,0,function(){var ot=new St;onmessage=W(ot)},11)}return Le}();function It(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[ie,Fe,function(){return[Ot]}],function(_t){return ke(Ot(_t.data[0],re(_t.data[1])))},5,ot)}function Ot(Le,Qe){return T((Et(Le),Le.subarray(2,-4)),Qe)}var bt=function(){function Le(Qe){this.G=un,this.I=Pe,this.Z=St,this.ondata=Qe}return Le.prototype.push=function(Qe,ot){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Qe,ot);else{if(this.p&&this.p.length){var _t=new P(this.p.length+Qe.length);_t.set(this.p),_t.set(Qe,this.p.length)}else this.p=Qe;if(this.p.length>2){var Kt=this,nn=function(){Kt.ondata.apply(Kt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(nn):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(nn):new this.Z(nn),this.s.push(this.p,ot),this.p=null}}},Le}(),Ht=function(){function Le(Qe){this.G=jt,this.I=je,this.Z=ft,this.ondata=Qe}return Le.prototype.push=function(Qe,ot){bt.prototype.push.call(this,Qe,ot)},Le}();function Gt(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return Le[0]==31&&Le[1]==139&&Le[2]==8?Zt(Le,Qe,ot):(Le[0]&15)!=8||Le[0]>>4>7||(Le[0]<<8|Le[1])%31?Ne(Le,Qe,ot):It(Le,Qe,ot)}function xn(Le,Qe){return Le[0]==31&&Le[1]==139&&Le[2]==8?Mt(Le,Qe):(Le[0]&15)!=8||Le[0]>>4>7||(Le[0]<<8|Le[1])%31?et(Le,Qe):Ot(Le,Qe)}var vn=function(Le,Qe,ot,_t){for(var Kt in Le){var nn=Le[Kt],ve=Qe+Kt;nn instanceof P?ot[ve]=[nn,_t]:Array.isArray(nn)?ot[ve]=[nn[0],_e(_t,nn[1])]:vn(nn,ve+"/",ot,_t)}};function sr(Le,Qe){var ot=Le.length;if(!Qe&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Le);for(var _t=new P(Le.length+(Le.length>>>1)),Kt=0,nn=function(ye){_t[Kt++]=ye},ve=0;ve_t.length){var z=new P(Kt+8+(ot-ve<<1));z.set(_t),_t=z}var Z=Le.charCodeAt(ve);Z<128||Qe?nn(Z):Z<2048?(nn(192|Z>>>6),nn(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1023<<10)|Le.charCodeAt(++ve)&1023,nn(240|Z>>>18),nn(128|Z>>>12&63),nn(128|Z>>>6&63),nn(128|Z&63)):(nn(224|Z>>>12),nn(128|Z>>>6&63),nn(128|Z&63))}return O(_t,0,Kt)}function xr(Le,Qe){var ot="";if(!Qe&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Le);for(var _t=0;_t>10,56320|Kt&1023))}return ot}var Kn=function(Le,Qe){return Qe+30+ne(Le,Qe+26)+ne(Le,Qe+28)},En=function(Le,Qe,ot){var _t=ne(Le,Qe+28),Kt=xr(Le.subarray(Qe+46,Qe+46+_t),!(ne(Le,Qe+8)&2048)),nn=Qe+46+_t,ve=ot?Qr(Le,nn):[le(Le,Qe+20),le(Le,Qe+24),le(Le,Qe+42)],z=ve[0],Z=ve[1],ye=ve[2];return[ne(Le,Qe+10),z,Z,Kt,nn+ne(Le,Qe+30)+ne(Le,Qe+32),ye]},Qr=function(Le,Qe){for(;ne(Le,Qe)!=1;Qe+=4+ne(Le,Qe+2));return[le(Le,Qe+12),le(Le,Qe+4),le(Le,Qe+20)]},sa=function(Le,Qe,ot,_t,Kt,nn,ve,z,Z,ye){var Ce=nn.length,be=_t.length;De(Le,Qe,Z!=null?33639248:67324752),Qe+=4,Z!=null&&(Le[Qe]=20,Qe+=2),Le[Qe]=20,Qe+=2,Le[Qe++]=ye==8&&(z.level==1?6:z.level<6?4:z.level==9?2:0),Le[Qe++]=ve&&8,Le[Qe]=ye,Qe+=2;var ht=new Date(z.mtime||Date.now()),Nt=ht.getFullYear()-1980;if(Nt<0||Nt>119)throw"date not in range 1980-2099";De(Le,Qe,(Nt<<24)*2|ht.getMonth()+1<<21|ht.getDate()<<16|ht.getHours()<<11|ht.getMinutes()<<5|ht.getSeconds()>>>1),Qe+=4,De(Le,Qe,ot),De(Le,Qe+4,be),De(Le,Qe+8,Kt),De(Le,Qe+12,Ce),Qe+=16,Z!=null&&(De(Le,Qe+=10,Z),Qe+=4),Le.set(nn,Qe),Qe+=Ce,Z==null&&Le.set(_t,Qe)},Xr=function(Le,Qe,ot,_t,Kt){De(Le,Qe,101010256),De(Le,Qe+8,ot),De(Le,Qe+10,ot),De(Le,Qe+12,_t),De(Le,Qe+16,Kt)};function Nr(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";var _t={};vn(Le,"",_t,Qe);var Kt=Object.keys(_t),nn=Kt.length,ve=0,z=0,Z=nn,ye=new Array(nn),Ce=[],be=function(){for(var pn=0;pn65535&&ma("filename too long",null),!Tr)ma(null,Un);else if(ia<16e4)try{ma(null,$e(Un,rr))}catch(ha){ma(ha,null)}else Ce.push(qe(Un,rr,ma))},sn=0;sn65535)throw"filename too long";var Nt=Ce?$e(Z,ye):Z,sn=Nt.length,pn=oe();pn.p(Z),_t.push({t:Ce,d:Nt,m:Z.length,c:pn.d(),u:ve.length!=ht,n:be,o:Kt,p:ye}),Kt+=30+ht+sn,nn+=76+2*ht+sn}for(var zt=new P(nn+22),qn=Kt,Un=nn-Kt,rr=0;rr<_t.length;++rr){var Sr=_t[rr];sa(zt,Sr.o,Sr.c,Sr.d,Sr.m,Sr.n,Sr.u,Sr.p,null,Sr.t),sa(zt,Kt,Sr.c,Sr.d,Sr.m,Sr.n,Sr.u,Sr.p,Sr.o,Sr.t),Kt+=46+Sr.n.length}return Xr(zt,Kt,_t.length,Un,qn),zt}function ja(Le,Qe){if(typeof Qe!="function")throw"no callback";for(var ot=[],_t=function(){for(var ht=0;ht65558){Qe("invalid zip file",null);return}var ve=ne(Le,nn+8);ve||Qe(null,{});var z=ve,Z=le(Le,nn+16),ye=Z==4294967295;if(ye){if(nn=le(Le,nn-12),le(Le,nn)!=101075792)throw"invalid zip file";z=ve=le(Le,nn+32),Z=le(Le,nn+48)}for(var Ce=function(ht){var Nt=En(Le,Z,ye),sn=Nt[0],pn=Nt[1],zt=Nt[2],qn=Nt[3],Un=Nt[4],rr=Nt[5],Sr=Kn(Le,rr);Z=Un;var ia=function(na,Tr){na?(_t(),Qe(na,null)):(Kt[qn]=Tr,--ve||Qe(null,Kt))};if(!sn)ia(null,O(Le,Sr,Sr+pn));else if(sn==8){var Dr=Le.subarray(Sr,Sr+pn);if(pn<32e4)try{ia(null,et(Dr,new P(zt)))}catch(na){ia(na,null)}else ot.push(Ne(Dr,{size:zt},ia))}else ia("unknown compression type "+sn,null)},be=0;be65558)throw"invalid zip file";var _t=ne(Le,ot+8);if(!_t)return{};var Kt=le(Le,ot+16),nn=Kt==4294967295;if(nn){if(ot=le(Le,ot-12),le(Le,ot)!=101075792)throw"invalid zip file";_t=le(Le,ot+32),Kt=le(Le,ot+48)}for(var ve=0;ve<_t;++ve){var z=En(Le,Kt,nn),Z=z[0],ye=z[1],Ce=z[2],be=z[3],ht=z[4],Nt=z[5],sn=Kn(Le,Nt);if(Kt=ht,!Z)Qe[be]=O(Le,sn,sn+ye);else if(Z==8)Qe[be]=et(Le.subarray(sn,sn+ye),new P(Ce));else throw"unknown compression type "+Z}return Qe}},csWT:function(Ze,we,M){Ze.exports=M.p+"static/choose.4ad1045f.svg"},dMvE:function(Ze,we){var M={linear:function(Y){return Y},quadraticIn:function(Y){return Y*Y},quadraticOut:function(Y){return Y*(2-Y)},quadraticInOut:function(Y){return(Y*=2)<1?.5*Y*Y:-.5*(--Y*(Y-2)-1)},cubicIn:function(Y){return Y*Y*Y},cubicOut:function(Y){return--Y*Y*Y+1},cubicInOut:function(Y){return(Y*=2)<1?.5*Y*Y*Y:.5*((Y-=2)*Y*Y+2)},quarticIn:function(Y){return Y*Y*Y*Y},quarticOut:function(Y){return 1- --Y*Y*Y*Y},quarticInOut:function(Y){return(Y*=2)<1?.5*Y*Y*Y*Y:-.5*((Y-=2)*Y*Y*Y-2)},quinticIn:function(Y){return Y*Y*Y*Y*Y},quinticOut:function(Y){return--Y*Y*Y*Y*Y+1},quinticInOut:function(Y){return(Y*=2)<1?.5*Y*Y*Y*Y*Y:.5*((Y-=2)*Y*Y*Y*Y+2)},sinusoidalIn:function(Y){return 1-Math.cos(Y*Math.PI/2)},sinusoidalOut:function(Y){return Math.sin(Y*Math.PI/2)},sinusoidalInOut:function(Y){return .5*(1-Math.cos(Math.PI*Y))},exponentialIn:function(Y){return Y===0?0:Math.pow(1024,Y-1)},exponentialOut:function(Y){return Y===1?1:1-Math.pow(2,-10*Y)},exponentialInOut:function(Y){return Y===0?0:Y===1?1:(Y*=2)<1?.5*Math.pow(1024,Y-1):.5*(-Math.pow(2,-10*(Y-1))+2)},circularIn:function(Y){return 1-Math.sqrt(1-Y*Y)},circularOut:function(Y){return Math.sqrt(1- --Y*Y)},circularInOut:function(Y){return(Y*=2)<1?-.5*(Math.sqrt(1-Y*Y)-1):.5*(Math.sqrt(1-(Y-=2)*Y)+1)},elasticIn:function(Y){var P,y=.1,E=.4;return Y===0?0:Y===1?1:(!y||y<1?(y=1,P=E/4):P=E*Math.asin(1/y)/(2*Math.PI),-(y*Math.pow(2,10*(Y-=1))*Math.sin((Y-P)*(2*Math.PI)/E)))},elasticOut:function(Y){var P,y=.1,E=.4;return Y===0?0:Y===1?1:(!y||y<1?(y=1,P=E/4):P=E*Math.asin(1/y)/(2*Math.PI),y*Math.pow(2,-10*Y)*Math.sin((Y-P)*(2*Math.PI)/E)+1)},elasticInOut:function(Y){var P,y=.1,E=.4;return Y===0?0:Y===1?1:(!y||y<1?(y=1,P=E/4):P=E*Math.asin(1/y)/(2*Math.PI),(Y*=2)<1?-.5*(y*Math.pow(2,10*(Y-=1))*Math.sin((Y-P)*(2*Math.PI)/E)):y*Math.pow(2,-10*(Y-=1))*Math.sin((Y-P)*(2*Math.PI)/E)*.5+1)},backIn:function(Y){var P=1.70158;return Y*Y*((P+1)*Y-P)},backOut:function(Y){var P=1.70158;return--Y*Y*((P+1)*Y+P)+1},backInOut:function(Y){var P=1.70158*1.525;return(Y*=2)<1?.5*(Y*Y*((P+1)*Y-P)):.5*((Y-=2)*Y*((P+1)*Y+P)+2)},bounceIn:function(Y){return 1-M.bounceOut(1-Y)},bounceOut:function(Y){return Y<1/2.75?7.5625*Y*Y:Y<2/2.75?7.5625*(Y-=1.5/2.75)*Y+.75:Y<2.5/2.75?7.5625*(Y-=2.25/2.75)*Y+.9375:7.5625*(Y-=2.625/2.75)*Y+.984375},bounceInOut:function(Y){return Y<.5?M.bounceIn(Y*2)*.5:M.bounceOut(Y*2-1)*.5+.5}},ue=M;Ze.exports=ue},dejd:function(Ze,we,M){},djh8:function(Ze,we,M){Ze.exports=M.p+"static/qrCode.42927872.png"},dmUQ:function(Ze,we,M){"use strict";var ue=M("Ff2n"),Y=M("rePB"),P=M("1OyB"),y=M("vuIU"),E=M("Ji7U"),_=M("md7G"),C=M("foSv"),m=M("q1tI"),c=M.n(m),r=M("TSYQ"),n=M.n(r),e=M("4IlW");function s(i,x){var O=Object.keys(i);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(i);x&&(T=T.filter(function(D){return Object.getOwnPropertyDescriptor(i,D).enumerable})),O.push.apply(O,T)}return O}function u(i){for(var x=1;x1?Q-1:0),te=1;te1?U-1:0),G=1;G=0)return parseInt(J.slice(J.indexOf("e-")+2),10);var U=0;return J.indexOf(".")>=0&&(U=J.length-J.indexOf(".")-1),U},D.getInputDisplayValue=function(H){var J=H||D.state,U=J.focused,K=J.inputValue,G=J.value,N;U?N=K:N=D.toPrecisionAsStep(G),N==null&&(N="");var Q=D.formatWrapper(N);return w(D.props.decimalSeparator)&&(Q=Q.toString().replace(".",D.props.decimalSeparator)),Q},D.recordCursorPosition=function(){try{D.cursorStart=D.input.selectionStart,D.cursorEnd=D.input.selectionEnd,D.currentValue=D.input.value,D.cursorBefore=D.input.value.substring(0,D.cursorStart),D.cursorAfter=D.input.value.substring(D.cursorEnd)}catch(H){}},D.restoreByAfter=function(H){if(H===void 0)return!1;var J=D.input.value,U=J.lastIndexOf(H);if(U===-1)return!1;var K=D.cursorBefore.length;return D.lastKeyCode===e.a.DELETE&&D.cursorBefore.charAt(K-1)===H[0]?(D.fixCaret(K,K),!0):U+H.length===J.length?(D.fixCaret(U,U),!0):!1},D.partRestoreByAfter=function(H){return H===void 0?!1:Array.prototype.some.call(H,function(J,U){var K=H.substring(U);return D.restoreByAfter(K)})},D.isNotCompleteNumber=function(H){return isNaN(H)||H===""||H===null||H&&H.toString().indexOf(".")===H.toString().length-1},D.stop=function(){D.autoStepTimer&&clearTimeout(D.autoStepTimer)},D.down=function(H,J,U){D.pressingUpOrDown=!0,D.step("down",H,J,U)},D.up=function(H,J,U){D.pressingUpOrDown=!0,D.step("up",H,J,U)},D.saveInput=function(H){D.input=H};var R=T.value;R===void 0&&(R=T.defaultValue),D.state={focused:T.autoFocus};var k=D.getValidValue(D.toNumber(R));return D.state=u(u({},D.state),{},{inputValue:D.toPrecisionAsStep(k),value:k}),D}return Object(y.a)(O,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(D){var R=this.props,k=R.value,H=R.onChange,J=R.max,U=R.min,K=this.state.focused;if(D){if(!B(D.value,k)||!B(D.max,J)||!B(D.min,U)){var G=K?k:this.getValidValue(k),N;this.pressingUpOrDown?N=G:this.inputting?N=this.rawInput:N=this.toPrecisionAsStep(G),this.setState({value:G,inputValue:N})}var Q="value"in this.props?k:this.state.value;"max"in this.props&&D.max!==J&&typeof Q=="number"&&Q>J&&H&&H(J),"min"in this.props&&D.min!==U&&typeof Q=="number"&&Q1&&arguments[1]!==void 0?arguments[1]:this.props.min,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,H=parseFloat(D);return isNaN(H)?D:(Hk&&(H=k),H)}},{key:"setValue",value:function(D,R){var k=this.props.precision,H=this.isNotCompleteNumber(parseFloat(D))?null:parseFloat(D),J=this.state.value,U=J===void 0?null:J,K=this.state.inputValue,G=K===void 0?null:K,N=typeof H=="number"?H.toFixed(k):"".concat(H),Q=H!==U||N!=="".concat(G);return"value"in this.props?(G=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:G},R)):this.setState({value:H,inputValue:this.toPrecisionAsStep(D)},R),Q&&this.props.onChange(H),H}},{key:"getMaxPrecision",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=this.props,H=k.precision,J=k.step;if(w(H))return H;var U=this.getPrecision(R),K=this.getPrecision(J),G=this.getPrecision(D);return D?Math.max(G,U+K):U+K}},{key:"getPrecisionFactor",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=this.getMaxPrecision(D,R);return Math.pow(10,k)}},{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(D){return this.props.formatter?this.props.formatter(D):D}},{key:"toPrecisionAsStep",value:function(D){if(this.isNotCompleteNumber(D)||D==="")return D;var R=Math.abs(this.getMaxPrecision(D));return isNaN(R)?D.toString():Number(D).toFixed(R)}},{key:"toNumber",value:function(D){var R=this.props.precision,k=this.state.focused,H=D&&D.length>16&&k;return this.isNotCompleteNumber(D)||H?D:w(R)?Math.round(D*Math.pow(10,R))/Math.pow(10,R):Number(D)}},{key:"upStep",value:function(D,R){var k=this.props.step,H=this.getPrecisionFactor(D,R),J=Math.abs(this.getMaxPrecision(D,R)),U=((H*D+H*k*R)/H).toFixed(J);return this.toNumber(U)}},{key:"downStep",value:function(D,R){var k=this.props.step,H=this.getPrecisionFactor(D,R),J=Math.abs(this.getMaxPrecision(D,R)),U=((H*D-H*k*R)/H).toFixed(J);return this.toNumber(U)}},{key:"step",value:function(D,R){var k=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,J=arguments.length>3?arguments[3]:void 0;this.stop(),R&&(R.persist(),R.preventDefault());var U=this.props;if(U.disabled)return;var K=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(K))return;var G=this["".concat(D,"Step")](K,H),N=G>U.max||GU.max?G=U.max:G=X),lt=(Xe||Xe===0)&&(isNaN(Xe)||Number(Xe)<=te),rt=ct||H||J,qe=lt||H||J,$e=n()("".concat(k,"-handler"),"".concat(k,"-handler-up"),Object(Y.a)({},"".concat(k,"-handler-up-disabled"),rt)),Pe=n()("".concat(k,"-handler"),"".concat(k,"-handler-down"),Object(Y.a)({},"".concat(k,"-handler-down-disabled"),qe)),je=U?{onTouchStart:rt?d:this.up,onTouchEnd:this.stop}:{onMouseDown:rt?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ne=U?{onTouchStart:qe?d:this.down,onTouchEnd:this.stop}:{onMouseDown:qe?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return c.a.createElement("div",{className:Ke,style:oe,title:me,onMouseEnter:se,onMouseLeave:_e,onMouseOver:Ae,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},c.a.createElement("div",{className:"".concat(k,"-handler-wrap")},c.a.createElement("span",Object.assign({unselectable:"on"},je,{role:"button","aria-label":"Increase Value","aria-disabled":rt,className:$e}),G||c.a.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-up-inner"),onClick:a})),c.a.createElement("span",Object.assign({unselectable:"on"},Ne,{role:"button","aria-label":"Decrease Value","aria-disabled":qe,className:Pe}),N||c.a.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-down-inner"),onClick:a}))),c.a.createElement("div",{className:"".concat(k,"-input-wrap")},c.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":te,"aria-valuemax":X,"aria-valuenow":Xe,required:pe,type:fe,placeholder:ge,onPaste:de,onClick:he,onMouseUp:this.onMouseUp,className:"".concat(k,"-input"),tabIndex:ie,autoComplete:K,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:yt?this.onKeyDown:d,onKeyUp:yt?this.onKeyUp:d,autoFocus:F,maxLength:re,readOnly:J,disabled:H,max:X,min:te,step:ke,name:W,title:me,id:ce,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Et),pattern:Fe,inputMode:Ie,onInput:ne},ze))))}}]),O}(c.a.Component);b.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:S,min:-S,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:h,required:!1,autoComplete:"off"};var A=b,l=we.a=A},dqUG:function(Ze,we,M){var ue=M("Gev7"),Y=M("bYtY"),P=M("6GrX"),y=M("pzxd"),E=M("gut8"),_=E.ContextCachedBy,C=function(c){ue.call(this,c)};C.prototype={constructor:C,type:"text",brush:function(c,r){var n=this.style;this.__dirty&&y.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!y.needDrawText(e,n)){c.__attrCachedBy=_.NONE;return}this.setTransform(c),y.renderText(this,c,e,n,null,r),this.restoreTransform(c)},getBoundingRect:function(){var c=this.style;if(this.__dirty&&y.normalizeTextStyle(c,!0),!this._rect){var r=c.text;r!=null?r+="":r="";var n=P.getBoundingRect(c.text+"",c.font,c.textAlign,c.textVerticalAlign,c.textPadding,c.textLineHeight,c.rich);if(n.x+=c.x||0,n.y+=c.y||0,y.getStroke(c.textStroke,c.textStrokeWidth)){var e=c.textStrokeWidth;n.x-=e/2,n.y-=e/2,n.width+=e,n.height+=e}this._rect=n}return this._rect}},Y.inherits(C,ue);var m=C;Ze.exports=m},dwhp:function(Ze,we,M){},fAei:function(Ze,we,M){"use strict";M.d(we,"a",function(){return g.a});var ue=M("rePB"),Y=M("VTBJ"),P=M("KQm4"),y=M("1OyB"),E=M("vuIU"),_=M("Ji7U"),C=M("LK+K"),m=M("q1tI"),c=M("4IlW"),r=M("Kwbf"),n=M("TSYQ"),e=M.n(n),s=M("sboe"),u=M("OZM5"),o=M("815F"),f=M("ODXe"),d=M("Ff2n"),a=M("+nKL"),h=M("8XRh"),g=M("WaYH"),p=function(te,oe){var me=te.className,se=te.style,_e=te.motion,Ae=te.motionNodes,Ee=te.motionType,pe=te.onMotionStart,he=te.onMotionEnd,ie=te.active,fe=te.treeNodeRequiredProps,ge=Object(d.a)(te,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ce=m.useState(!0),Ie=Object(f.a)(ce,2),Fe=Ie[0],ke=Ie[1],re=m.useContext(s.a),F=re.prefixCls,W=m.useRef(!1),de=function(){W.current||he(),W.current=!0};return Object(m.useEffect)(function(){Ae&&Ee==="hide"&&Fe&&ke(!1)},[Ae]),Object(m.useEffect)(function(){return Ae&&pe(),function(){Ae&&de()}},[]),Ae?m.createElement(h.default,Object.assign({ref:oe,visible:Fe},_e,{motionAppear:Ee==="show",onAppearEnd:de,onLeaveEnd:de}),function(ne,le){var De=ne.className,Xe=ne.style;return m.createElement("div",{ref:le,className:e()("".concat(F,"-treenode-motion"),De),style:Xe},Ae.map(function(xt){var Ke=xt.data,ze=Ke.key,yt=Object(d.a)(Ke,["key"]),Et=xt.isStart,ct=xt.isEnd;delete yt.children;var lt=Object(o.f)(ze,fe);return m.createElement(g.a,Object.assign({},yt,lt,{active:ie,data:xt.data,key:ze,isStart:Et,isEnd:ct}))}))}):m.createElement(g.a,Object.assign({domRef:oe,className:me,style:se},ge,{active:ie}))};p.displayName="MotionTreeNode";var S=m.forwardRef(p),w=S;function B(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],oe=X.length,me=te.length;if(Math.abs(oe-me)!==1)return{add:!1,key:null};function se(_e,Ae){var Ee=new Map;_e.forEach(function(he){Ee.set(he,!0)});var pe=Ae.filter(function(he){return!Ee.has(he)});return pe.length===1?pe[0]:null}return oe ").concat(te);return te}var H=function(te,oe){var me=te.prefixCls,se=te.data,_e=te.selectable,Ae=te.checkable,Ee=te.expandedKeys,pe=te.selectedKeys,he=te.checkedKeys,ie=te.loadedKeys,fe=te.loadingKeys,ge=te.halfCheckedKeys,ce=te.keyEntities,Ie=te.disabled,Fe=te.dragging,ke=te.dragOverNodeKey,re=te.dropPosition,F=te.motion,W=te.height,de=te.itemHeight,ne=te.virtual,le=te.focusable,De=te.activeItem,Xe=te.focused,xt=te.tabIndex,Ke=te.onKeyDown,ze=te.onFocus,yt=te.onBlur,Et=te.onActiveChange,ct=te.onListChangeStart,lt=te.onListChangeEnd,rt=Object(d.a)(te,["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"]),qe=m.useRef(null);m.useImperativeHandle(oe,function(){return{scrollTo:function(xn){qe.current.scrollTo(xn)}}});var $e=m.useState(Ee),Pe=Object(f.a)($e,2),je=Pe[0],Ne=Pe[1],et=m.useState(se),mt=Object(f.a)(et,2),At=mt[0],Ut=mt[1],Xt=m.useState(se),un=Object(f.a)(Xt,2),jt=un[0],Zt=un[1],Mt=m.useState([]),Tt=Object(f.a)(Mt,2),Ct=Tt[0],Re=Tt[1],We=m.useState(null),St=Object(f.a)(We,2),ft=St[0],It=St[1];function Ot(){Ut(se),Zt(se),Re([]),It(null),lt()}m.useEffect(function(){Ne(Ee);var Gt=B(je,Ee);if(Gt.key!==null)if(Gt.add){var xn=At.findIndex(function(Qr){var sa=Qr.data.key;return sa===Gt.key}),vn=D(b(At,se,Gt.key),ne,W,de),sr=At.slice();sr.splice(xn+1,0,T),Zt(sr),Re(vn),It("show")}else{var xr=se.findIndex(function(Qr){var sa=Qr.data.key;return sa===Gt.key}),Kn=D(b(se,At,Gt.key),ne,W,de),En=se.slice();En.splice(xr+1,0,T),Zt(En),Re(Kn),It("hide")}else At!==se&&(Ut(se),Zt(se))},[Ee,se]),m.useEffect(function(){Fe||Ot()},[Fe]);var bt=F?jt:se,Ht={expandedKeys:Ee,selectedKeys:pe,loadedKeys:ie,loadingKeys:fe,checkedKeys:he,halfCheckedKeys:ge,dragOverNodeKey:ke,dropPosition:re,keyEntities:ce};return m.createElement(m.Fragment,null,Xe&&De&&m.createElement("span",{style:A,"aria-live":"assertive"},k(De)),m.createElement("div",{role:"tree"},m.createElement("input",{style:A,disabled:le===!1||Ie,tabIndex:le!==!1?xt:null,onKeyDown:Ke,onFocus:ze,onBlur:yt,value:"",onChange:l})),m.createElement(a.a,Object.assign({},rt,{data:bt,itemKey:R,height:W,fullHeight:!1,virtual:ne,itemHeight:de,prefixCls:"".concat(me,"-list"),ref:qe}),function(Gt){var xn=Gt.pos,vn=Gt.data,sr=vn.key,xr=Object(d.a)(vn,["key"]),Kn=Gt.isStart,En=Gt.isEnd,Qr=Object(o.e)(sr,xn);delete xr.children;var sa=Object(o.f)(Qr,Ht);return m.createElement(w,Object.assign({},xr,sa,{active:De&&sr===De.data.key,pos:xn,data:Gt.data,isStart:Kn,isEnd:En,motion:F,motionNodes:sr===i?Ct:null,motionType:ft,onMotionStart:ct,onMotionEnd:Ot,treeNodeRequiredProps:Ht,onMouseMove:function(){Et(null)}}))}))},J=m.forwardRef(H);J.displayName="NodeList";var U=J,K=M("NvD2"),G=function(X){Object(_.a)(oe,X);var te=Object(C.a)(oe);function oe(){var me;return Object(y.a)(this,oe),me=te.apply(this,arguments),me.destroyed=!1,me.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},me.listRef=m.createRef(),me.onNodeDragStart=function(se,_e){var Ae=me.state,Ee=Ae.expandedKeys,pe=Ae.keyEntities,he=me.props.onDragStart,ie=_e.props.eventKey;me.dragNode=_e;var fe=Object(u.b)(Ee,ie);me.setState({dragging:!0,dragNodesKeys:Object(u.g)(ie,pe)}),me.setExpandedKeys(fe),he&&he({event:se,node:Object(o.b)(_e.props)})},me.onNodeDragEnter=function(se,_e){var Ae=me.state,Ee=Ae.expandedKeys,pe=Ae.keyEntities,he=Ae.dragNodesKeys,ie=me.props.onDragEnter,fe=_e.props,ge=fe.pos,ce=fe.eventKey;if(!me.dragNode||he.indexOf(ce)!==-1)return;var Ie=Object(u.c)(se,_e);if(me.dragNode.props.eventKey===ce&&Ie===0){me.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){me.setState({dragOverNodeKey:ce,dropPosition:Ie}),me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(Fe){clearTimeout(me.delayedDragEnterLogic[Fe])}),me.delayedDragEnterLogic[ge]=window.setTimeout(function(){if(!me.state.dragging)return;var Fe=Object(P.a)(Ee),ke=pe[ce];ke&&(ke.children||[]).length&&(Fe=Object(u.a)(Ee,ce)),"expandedKeys"in me.props||me.setExpandedKeys(Fe),ie&&ie({event:se,node:Object(o.b)(_e.props),expandedKeys:Fe})},400)},0)},me.onNodeDragOver=function(se,_e){var Ae=me.state.dragNodesKeys,Ee=me.props.onDragOver,pe=_e.props.eventKey;if(Ae.indexOf(pe)!==-1)return;if(me.dragNode&&pe===me.state.dragOverNodeKey){var he=Object(u.c)(se,_e);if(he===me.state.dropPosition)return;me.setState({dropPosition:he})}Ee&&Ee({event:se,node:Object(o.b)(_e.props)})},me.onNodeDragLeave=function(se,_e){var Ae=me.props.onDragLeave;me.setState({dragOverNodeKey:""}),Ae&&Ae({event:se,node:Object(o.b)(_e.props)})},me.onNodeDragEnd=function(se,_e){var Ae=me.props.onDragEnd;me.setState({dragOverNodeKey:""}),me.cleanDragState(),Ae&&Ae({event:se,node:Object(o.b)(_e.props)}),me.dragNode=null},me.onNodeDrop=function(se,_e){var Ae=me.state,Ee=Ae.dragNodesKeys,pe=Ee===void 0?[]:Ee,he=Ae.dropPosition,ie=me.props.onDrop,fe=_e.props,ge=fe.eventKey,ce=fe.pos;if(me.setState({dragOverNodeKey:""}),me.cleanDragState(),pe.indexOf(ge)!==-1){Object(r.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Ie=Object(u.k)(ce),Fe={event:se,node:Object(o.b)(_e.props),dragNode:me.dragNode?Object(o.b)(me.dragNode.props):null,dragNodesKeys:pe.slice(),dropPosition:he+Number(Ie[Ie.length-1]),dropToGap:!1};he!==0&&(Fe.dropToGap=!0),ie&&ie(Fe),me.dragNode=null},me.cleanDragState=function(){var se=me.state.dragging;se&&me.setState({dragging:!1})},me.onNodeClick=function(se,_e){var Ae=me.props.onClick;Ae&&Ae(se,_e)},me.onNodeDoubleClick=function(se,_e){var Ae=me.props.onDoubleClick;Ae&&Ae(se,_e)},me.onNodeSelect=function(se,_e){var Ae=me.state.selectedKeys,Ee=me.state.keyEntities,pe=me.props,he=pe.onSelect,ie=pe.multiple,fe=_e.selected,ge=_e.key,ce=!fe;ce?ie?Ae=Object(u.a)(Ae,ge):Ae=[ge]:Ae=Object(u.b)(Ae,ge);var Ie=Ae.map(function(Fe){var ke=Ee[Fe];return ke?ke.node:null}).filter(function(Fe){return Fe});me.setUncontrolledState({selectedKeys:Ae}),he&&he(Ae,{event:"select",selected:ce,node:_e,selectedNodes:Ie,nativeEvent:se.nativeEvent})},me.onNodeCheck=function(se,_e,Ae){var Ee=me.state,pe=Ee.keyEntities,he=Ee.checkedKeys,ie=Ee.halfCheckedKeys,fe=me.props,ge=fe.checkStrictly,ce=fe.onCheck,Ie=_e.key,Fe,ke={event:"check",node:_e,checked:Ae,nativeEvent:se.nativeEvent};if(ge){var re=Ae?Object(u.a)(he,Ie):Object(u.b)(he,Ie),F=Object(u.b)(ie,Ie);Fe={checked:re,halfChecked:F},ke.checkedNodes=re.map(function(Xe){return pe[Xe]}).filter(function(Xe){return Xe}).map(function(Xe){return Xe.node}),me.setUncontrolledState({checkedKeys:re})}else{var W=Object(K.a)([].concat(Object(P.a)(he),[Ie]),!0,pe),de=W.checkedKeys,ne=W.halfCheckedKeys;if(!Ae){var le=new Set(de);le.delete(Ie);var De=Object(K.a)(Array.from(le),{checked:!1,halfCheckedKeys:ne},pe);de=De.checkedKeys,ne=De.halfCheckedKeys}Fe=de,ke.checkedNodes=[],ke.checkedNodesPositions=[],ke.halfCheckedKeys=ne,de.forEach(function(Xe){var xt=pe[Xe];if(!xt)return;var Ke=xt.node,ze=xt.pos;ke.checkedNodes.push(Ke),ke.checkedNodesPositions.push({node:Ke,pos:ze})}),me.setUncontrolledState({checkedKeys:de},!1,{halfCheckedKeys:ne})}ce&&ce(Fe,ke)},me.onNodeLoad=function(se){return new Promise(function(_e){me.setState(function(Ae){var Ee=Ae.loadedKeys,pe=Ee===void 0?[]:Ee,he=Ae.loadingKeys,ie=he===void 0?[]:he,fe=me.props,ge=fe.loadData,ce=fe.onLoad,Ie=se.key;if(!ge||pe.indexOf(Ie)!==-1||ie.indexOf(Ie)!==-1)return{};var Fe=ge(se);return Fe.then(function(){var ke=me.state,re=ke.loadedKeys,F=ke.loadingKeys,W=Object(u.a)(re,Ie),de=Object(u.b)(F,Ie);ce&&ce(W,{event:"load",node:se}),me.setUncontrolledState({loadedKeys:W}),me.setState({loadingKeys:de}),_e()}),{loadingKeys:Object(u.a)(ie,Ie)}})})},me.onNodeMouseEnter=function(se,_e){var Ae=me.props.onMouseEnter;Ae&&Ae({event:se,node:_e})},me.onNodeMouseLeave=function(se,_e){var Ae=me.props.onMouseLeave;Ae&&Ae({event:se,node:_e})},me.onNodeContextMenu=function(se,_e){var Ae=me.props.onRightClick;Ae&&(se.preventDefault(),Ae({event:se,node:_e}))},me.onFocus=function(){var se=me.props.onFocus;me.setState({focused:!0}),se&&se.apply(void 0,arguments)},me.onBlur=function(){var se=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null),se&&se.apply(void 0,arguments)},me.getTreeNodeRequiredProps=function(){var se=me.state,_e=se.expandedKeys,Ae=se.selectedKeys,Ee=se.loadedKeys,pe=se.loadingKeys,he=se.checkedKeys,ie=se.halfCheckedKeys,fe=se.dragOverNodeKey,ge=se.dropPosition,ce=se.keyEntities;return{expandedKeys:_e||[],selectedKeys:Ae||[],loadedKeys:Ee||[],loadingKeys:pe||[],checkedKeys:he||[],halfCheckedKeys:ie||[],dragOverNodeKey:fe,dropPosition:ge,keyEntities:ce}},me.setExpandedKeys=function(se){var _e=me.state.treeData,Ae=Object(o.d)(_e,se);me.setUncontrolledState({expandedKeys:se,flattenNodes:Ae},!0)},me.onNodeExpand=function(se,_e){var Ae=me.state.expandedKeys,Ee=me.state.listChanging,pe=me.props,he=pe.onExpand,ie=pe.loadData,fe=_e.key,ge=_e.expanded;if(Ee)return;var ce=Ae.indexOf(fe),Ie=!ge;if(Object(r.a)(ge&&ce!==-1||!ge&&ce===-1,"Expand state not sync with index check"),Ie?Ae=Object(u.a)(Ae,fe):Ae=Object(u.b)(Ae,fe),me.setExpandedKeys(Ae),he&&he(Ae,{node:_e,expanded:Ie,nativeEvent:se.nativeEvent}),Ie&&ie){var Fe=me.onNodeLoad(_e);Fe&&Fe.then(function(){var ke=Object(o.d)(me.state.treeData,Ae);me.setUncontrolledState({flattenNodes:ke})})}},me.onListChangeStart=function(){me.setUncontrolledState({listChanging:!0})},me.onListChangeEnd=function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})},me.onActiveChange=function(se){var _e=me.state.activeKey,Ae=me.props.onActiveChange;if(_e===se)return;me.setState({activeKey:se}),se!==null&&me.scrollTo({key:se}),Ae&&Ae(se)},me.getActiveItem=function(){var se=me.state,_e=se.activeKey,Ae=se.flattenNodes;return _e===null?null:Ae.find(function(Ee){var pe=Ee.data.key;return pe===_e})||null},me.offsetActiveKey=function(se){var _e=me.state,Ae=_e.flattenNodes,Ee=_e.activeKey,pe=Ae.findIndex(function(fe){var ge=fe.data.key;return ge===Ee});pe===-1&&se<0&&(pe=Ae.length),pe=(pe+se+Ae.length)%Ae.length;var he=Ae[pe];if(he){var ie=he.data.key;me.onActiveChange(ie)}else me.onActiveChange(null)},me.onKeyDown=function(se){var _e=me.state,Ae=_e.activeKey,Ee=_e.expandedKeys,pe=_e.checkedKeys,he=me.props,ie=he.onKeyDown,fe=he.checkable,ge=he.selectable;switch(se.which){case c.a.UP:{me.offsetActiveKey(-1),se.preventDefault();break}case c.a.DOWN:{me.offsetActiveKey(1),se.preventDefault();break}}var ce=me.getActiveItem();if(ce&&ce.data){var Ie=me.getTreeNodeRequiredProps(),Fe=ce.data.isLeaf===!1||!!(ce.data.children||[]).length,ke=Object(o.b)(Object(Y.a)(Object(Y.a)({},Object(o.f)(Ae,Ie)),{},{data:ce.data,active:!0}));switch(se.which){case c.a.LEFT:{Fe&&Ee.includes(Ae)?me.onNodeExpand({},ke):ce.parent&&me.onActiveChange(ce.parent.data.key),se.preventDefault();break}case c.a.RIGHT:{Fe&&!Ee.includes(Ae)?me.onNodeExpand({},ke):ce.children&&ce.children.length&&me.onActiveChange(ce.children[0].data.key),se.preventDefault();break}case c.a.ENTER:case c.a.SPACE:{fe&&!ke.disabled&&ke.checkable!==!1&&!ke.disableCheckbox?me.onNodeCheck({},ke,!pe.includes(Ae)):!fe&&ge&&!ke.disabled&&ke.selectable!==!1&&me.onNodeSelect({},ke);break}}}ie&&ie(se)},me.setUncontrolledState=function(se){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(me.destroyed)return;var Ee=!1,pe=!0,he={};Object.keys(se).forEach(function(ie){if(ie in me.props){pe=!1;return}Ee=!0,he[ie]=se[ie]}),Ee&&(!_e||pe)&&me.setState(Object(Y.a)(Object(Y.a)({},he),Ae))},me.scrollTo=function(se){me.listRef.current.scrollTo(se)},me}return Object(E.a)(oe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var se,_e=this.state,Ae=_e.focused,Ee=_e.flattenNodes,pe=_e.keyEntities,he=_e.dragging,ie=_e.activeKey,fe=this.props,ge=fe.prefixCls,ce=fe.className,Ie=fe.style,Fe=fe.showLine,ke=fe.focusable,re=fe.tabIndex,F=re===void 0?0:re,W=fe.selectable,de=fe.showIcon,ne=fe.icon,le=fe.switcherIcon,De=fe.draggable,Xe=fe.checkable,xt=fe.checkStrictly,Ke=fe.disabled,ze=fe.motion,yt=fe.loadData,Et=fe.filterTreeNode,ct=fe.height,lt=fe.itemHeight,rt=fe.virtual,qe=fe.titleRender,$e=fe.onContextMenu,Pe=Object(u.f)(this.props);return m.createElement(s.a.Provider,{value:{prefixCls:ge,selectable:W,showIcon:de,icon:ne,switcherIcon:le,draggable:De,checkable:Xe,checkStrictly:xt,disabled:Ke,keyEntities:pe,loadData:yt,filterTreeNode:Et,titleRender:qe,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}},m.createElement("div",{className:e()(ge,ce,(se={},Object(ue.a)(se,"".concat(ge,"-show-line"),Fe),Object(ue.a)(se,"".concat(ge,"-focused"),Ae),Object(ue.a)(se,"".concat(ge,"-active-focused"),ie!==null),se))},m.createElement(U,Object.assign({ref:this.listRef,prefixCls:ge,style:Ie,data:Ee,disabled:Ke,selectable:W,checkable:!!Xe,motion:ze,dragging:he,height:ct,itemHeight:lt,virtual:rt,focusable:ke,focused:Ae,tabIndex:F,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$e},this.getTreeNodeRequiredProps(),Pe))))}}],[{key:"getDerivedStateFromProps",value:function(se,_e){var Ae=_e.prevProps,Ee={prevProps:se};function pe(ne){return!Ae&&ne in se||Ae&&Ae[ne]!==se[ne]}var he;if(pe("treeData")?he=se.treeData:pe("children")&&(Object(r.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),he=Object(o.c)(se.children)),he){Ee.treeData=he;var ie=Object(o.a)(he);Ee.keyEntities=Object(Y.a)(Object(ue.a)({},i,O),ie.keyEntities)}var fe=Ee.keyEntities||_e.keyEntities;if(pe("expandedKeys")||Ae&&pe("autoExpandParent"))Ee.expandedKeys=se.autoExpandParent||!Ae&&se.defaultExpandParent?Object(u.e)(se.expandedKeys,fe):se.expandedKeys;else if(!Ae&&se.defaultExpandAll){var ge=Object(Y.a)({},fe);delete ge[i],Ee.expandedKeys=Object.keys(ge).map(function(ne){return ge[ne].key})}else!Ae&&se.defaultExpandedKeys&&(Ee.expandedKeys=se.autoExpandParent||se.defaultExpandParent?Object(u.e)(se.defaultExpandedKeys,fe):se.defaultExpandedKeys);if(Ee.expandedKeys||delete Ee.expandedKeys,he||Ee.expandedKeys){var ce=Object(o.d)(he||_e.treeData,Ee.expandedKeys||_e.expandedKeys);Ee.flattenNodes=ce}if(se.selectable&&(pe("selectedKeys")?Ee.selectedKeys=Object(u.d)(se.selectedKeys,se):!Ae&&se.defaultSelectedKeys&&(Ee.selectedKeys=Object(u.d)(se.defaultSelectedKeys,se))),se.checkable){var Ie;if(pe("checkedKeys")?Ie=Object(u.j)(se.checkedKeys)||{}:!Ae&&se.defaultCheckedKeys?Ie=Object(u.j)(se.defaultCheckedKeys)||{}:he&&(Ie=Object(u.j)(se.checkedKeys)||{checkedKeys:_e.checkedKeys,halfCheckedKeys:_e.halfCheckedKeys}),Ie){var Fe=Ie,ke=Fe.checkedKeys,re=ke===void 0?[]:ke,F=Fe.halfCheckedKeys,W=F===void 0?[]:F;if(!se.checkStrictly){var de=Object(K.a)(re,!0,fe);re=de.checkedKeys,W=de.halfCheckedKeys}Ee.checkedKeys=re,Ee.halfCheckedKeys=W}}return pe("loadedKeys")&&(Ee.loadedKeys=se.loadedKeys),Ee}}]),oe}(m.Component);G.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:[]},G.TreeNode=g.a;var N=G,Q=we.b=N},fW2E:function(Ze,we){var M={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function ue(Y,P,y){return M.hasOwnProperty(P)?y*=Y.dpr:y}Ze.exports=ue},fXAG:function(Ze,we,M){"use strict";M.d(we,"j",function(){return ue}),M.d(we,"i",function(){return Y}),M.d(we,"k",function(){return P}),M.d(we,"eb",function(){return y}),M.d(we,"o",function(){return E}),M.d(we,"S",function(){return _}),M.d(we,"fb",function(){return C}),M.d(we,"u",function(){return m}),M.d(we,"v",function(){return c}),M.d(we,"cb",function(){return r}),M.d(we,"A",function(){return n}),M.d(we,"m",function(){return e}),M.d(we,"Y",function(){return s}),M.d(we,"s",function(){return u}),M.d(we,"N",function(){return o}),M.d(we,"bb",function(){return f}),M.d(we,"db",function(){return d}),M.d(we,"l",function(){return a}),M.d(we,"Q",function(){return h}),M.d(we,"ab",function(){return g}),M.d(we,"x",function(){return p}),M.d(we,"z",function(){return S}),M.d(we,"X",function(){return w}),M.d(we,"b",function(){return B}),M.d(we,"H",function(){return b}),M.d(we,"a",function(){return A}),M.d(we,"c",function(){return i}),M.d(we,"P",function(){return x}),M.d(we,"g",function(){return O}),M.d(we,"t",function(){return T}),M.d(we,"Z",function(){return D}),M.d(we,"y",function(){return R}),M.d(we,"B",function(){return k}),M.d(we,"f",function(){return H}),M.d(we,"e",function(){return J}),M.d(we,"W",function(){return U}),M.d(we,"h",function(){return K}),M.d(we,"d",function(){return G}),M.d(we,"R",function(){return Q}),M.d(we,"n",function(){return X}),M.d(we,"F",function(){return te}),M.d(we,"I",function(){return oe}),M.d(we,"D",function(){return me}),M.d(we,"E",function(){return se}),M.d(we,"C",function(){return _e}),M.d(we,"G",function(){return Ae}),M.d(we,"U",function(){return Ee}),M.d(we,"q",function(){return pe}),M.d(we,"r",function(){return he}),M.d(we,"V",function(){return ie}),M.d(we,"T",function(){return fe}),M.d(we,"p",function(){return ge}),M.d(we,"M",function(){return ce}),M.d(we,"L",function(){return Ie}),M.d(we,"J",function(){return Fe}),M.d(we,"K",function(){return ke}),M.d(we,"O",function(){return re}),M.d(we,"w",function(){return F});var ue="FETCH_TASK_START",Y="FETCH_TASK_FAILURE",P="FETCH_TASK_SUCCESS",y="UPDATE_TASK_DATA",E="HIDE_EVALUATE_RESULT",_="SHOW_EVALUATE_RESULT",C="UPDATE_TIMESTRAP",m="MOVE_X",c="MOVE_Y",r="TRIGGER_RIGHT_PANEL_MASK ",n="SET_ACTIVE_INDEX",e="GET_TASK_LIST",s="SHOW_TASK_LIST",u="HIDE_TASK_LIST",o="SET_TASK_STAR",f="TRIGGER_ENLARGE_UNITY3D ",d="TRIGGER_TAB_FIXED ",a="GET_DISCUSSES",h="SHOW_DISCUSSES_LOADING",g="TOP_OR_DOWN_DISCUSS",p="PLUS_DISCUSS",S="SET_ACTION_TYPE",w="SHOW_REWARD_DIALOG",B="CANCEL_REWARD_DIALOG",b="SET_REWARD",A="ACTIVE_DISCUSS_INDEX",l="CREATE_DISCUSS",i="DISABLE_DISCUSS",x="SHOW_ANSWER_LOADING",O="FETCH_ANSWER_INFO",T="HIGH_TIP_MODAL",D="SHOW_TIP_MODAL",R="SELECT_UNLOCK_ANSWER",k="SET_CHOOSE_ANSWERS",H="EVAL_CHOOSE_START",J="EVAL_CHOOSE_END",U="SHOW_REP_loading",K="FETCH_REP_CONTENT",G="EDIT_REP_CONTENT",N="SET_REP_PATH",Q="SHOW_EVALUATE_LOADING",X="HIDE_EVALUATE_LOADING",te="SET_EVALUATE_MESSAGE",oe="SET_SHOW_DIR",me="SET_EDITOR_SETTING",se="SET_EDITOR_THEME",_e="SET_EDITOR_FONTSIZE",Ae="SET_REPOS",Ee="SHOW_PATH_LIST",pe="HIDE_PATH_LIST",he="HIDE_PICTURE_VIEW",ie="SHOW_PICTURE_VIEW",fe="SHOW_NOTICE",ge="HIDE_NOTICE",ce="SET_TAB_INDEX",Ie="SET_SSH_TABS",Fe="SET_SSH_CONFIGDATA",ke="SET_SSH_CONFIGDATAARR",re="SET_VNC_LOADING ",F="ON_TAB_TO_SPACE "},fcSX:function(Ze,we,M){"use strict";var ue=M("Ff2n"),Y=M("1OyB"),P=M("vuIU"),y=M("Ji7U"),E=M("md7G"),_=M("foSv"),C=M("1W/9"),m=M("q1tI"),c=M("rePB"),r=M("JX7q"),n=M("TSYQ"),e=M.n(n),s=M("qx4F"),u=M("4IlW");function o(H){return Array.isArray(H)?H:[H]}var f={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},d=Object.keys(f).filter(function(H){if(typeof document=="undefined")return!1;var J=document.getElementsByTagName("html")[0];return H in(J?J.style:{})})[0],a=f[d];function h(H,J,U,K){H.addEventListener?H.addEventListener(J,U,K):H.attachEvent&&H.attachEvent("on".concat(J),U)}function g(H,J,U,K){H.removeEventListener?H.removeEventListener(J,U,K):H.attachEvent&&H.detachEvent("on".concat(J),U)}function p(H,J){var U=typeof H=="function"?H(J):H;return Array.isArray(U)?U.length===2?U:[U[0],U[1]]:[U]}var S=function(J){return!isNaN(parseFloat(J))&&isFinite(J)},w=!(typeof window!="undefined"&&window.document&&window.document.createElement),B=function H(J,U,K,G){if(!U||U===document||U instanceof Document)return!1;if(U===J.parentNode)return!0;var N=Math.max(Math.abs(K),Math.abs(G))===Math.abs(G),Q=Math.max(Math.abs(K),Math.abs(G))===Math.abs(K),X=U.scrollHeight-U.clientHeight,te=U.scrollWidth-U.clientWidth,oe=document.defaultView.getComputedStyle(U),me=oe.overflowY==="auto"||oe.overflowY==="scroll",se=oe.overflowX==="auto"||oe.overflowX==="scroll",_e=X&&me,Ae=te&&se;return N&&(!_e||_e&&(U.scrollTop>=X&&G<0||U.scrollTop<=0&&G>0))||Q&&(!Ae||Ae&&(U.scrollLeft>=te&&K<0||U.scrollLeft<=0&&K>0))?H(J,U.parentNode,K,G):!1};function b(H){var J=A();return function(){var K=Object(_.a)(H),G;if(J){var N=Object(_.a)(this).constructor;G=Reflect.construct(K,arguments,N)}else G=K.apply(this,arguments);return Object(E.a)(this,G)}}function A(){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(H){return!1}}var l={},i=function(H){Object(y.a)(U,H);var J=b(U);function U(K){var G;return Object(Y.a)(this,U),G=J.call(this,K),G.domFocus=function(){G.dom&&G.dom.focus()},G.removeStartHandler=function(N){if(N.touches.length>1)return;G.startPos={x:N.touches[0].clientX,y:N.touches[0].clientY}},G.removeMoveHandler=function(N){if(N.changedTouches.length>1)return;var Q=N.currentTarget,X=N.changedTouches[0].clientX-G.startPos.x,te=N.changedTouches[0].clientY-G.startPos.y;(Q===G.maskDom||Q===G.handlerDom||Q===G.contentDom&&B(Q,N.target,X,te))&&N.cancelable&&N.preventDefault()},G.transitionEnd=function(N){var Q=N.target;g(Q,a,G.transitionEnd),Q.style.transition=""},G.onKeyDown=function(N){if(N.keyCode===u.a.ESC){var Q=G.props.onClose;N.stopPropagation(),Q&&Q(N)}},G.onWrapperTransitionEnd=function(N){var Q=G.props,X=Q.open,te=Q.afterVisibleChange;N.target===G.contentWrapper&&N.propertyName.match(/transform$/)&&(G.dom.style.transition="",!X&&G.getCurrentDrawerSome()&&(document.body.style.overflowX="",G.maskDom&&(G.maskDom.style.left="",G.maskDom.style.width="")),te&&te(!!X))},G.openLevelTransition=function(){var N=G.props,Q=N.open,X=N.width,te=N.height,oe=G.getHorizontalBoolAndPlacementName(),me=oe.isHorizontal,se=oe.placementName,_e=G.contentDom?G.contentDom.getBoundingClientRect()[me?"width":"height"]:0,Ae=(me?X:te)||_e;G.setLevelAndScrolling(Q,se,Ae)},G.setLevelTransform=function(N,Q,X,te){var oe=G.props,me=oe.placement,se=oe.levelMove,_e=oe.duration,Ae=oe.ease,Ee=oe.showMask;G.levelDom.forEach(function(pe){pe.style.transition="transform ".concat(_e," ").concat(Ae),h(pe,a,G.transitionEnd);var he=N?X:0;if(se){var ie=p(se,{target:pe,open:N});he=N?ie[0]:ie[1]||0}var fe=typeof he=="number"?"".concat(he,"px"):he,ge=me==="left"||me==="top"?fe:"-".concat(fe);ge=Ee&&me==="right"&&te?"calc(".concat(ge," + ").concat(te,"px)"):ge,pe.style.transform=he?"".concat(Q,"(").concat(ge,")"):""})},G.setLevelAndScrolling=function(N,Q,X){var te=G.props.onChange;if(!w){var oe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(s.a)(!0):0;G.setLevelTransform(N,Q,X,oe),G.toggleScrollingToDrawerAndBody(oe)}te&&te(N)},G.toggleScrollingToDrawerAndBody=function(N){var Q=G.props,X=Q.getOpenCount,te=Q.getContainer,oe=Q.showMask,me=Q.open,se=te&&te(),_e=X&&X();if(se&&se.parentNode===document.body&&oe){var Ae=["touchstart"],Ee=[document.body,G.maskDom,G.handlerDom,G.contentDom];me&&document.body.style.overflow!=="hidden"?(N&&G.addScrollingEffect(N),_e===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Ee.forEach(function(pe,he){if(!pe)return;h(pe,Ae[he]||"touchmove",he?G.removeMoveHandler:G.removeStartHandler,G.passive)})):G.getCurrentDrawerSome()&&(_e||(document.body.style.overflow=""),document.body.style.touchAction="",N&&G.remScrollingEffect(N),Ee.forEach(function(pe,he){if(!pe)return;g(pe,Ae[he]||"touchmove",he?G.removeMoveHandler:G.removeStartHandler,G.passive)}))}},G.addScrollingEffect=function(N){var Q=G.props,X=Q.placement,te=Q.duration,oe=Q.ease,me=Q.getOpenCount,se=Q.switchScrollingEffect,_e=me&&me();_e===1&&se();var Ae="width ".concat(te," ").concat(oe),Ee="transform ".concat(te," ").concat(oe);G.dom.style.transition="none";switch(X){case"right":G.dom.style.transform="translateX(-".concat(N,"px)");break;case"top":case"bottom":G.dom.style.width="calc(100% - ".concat(N,"px)"),G.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(G.timeout),G.timeout=setTimeout(function(){G.dom&&(G.dom.style.transition="".concat(Ee,",").concat(Ae),G.dom.style.width="",G.dom.style.transform="")})},G.remScrollingEffect=function(N){var Q=G.props,X=Q.placement,te=Q.duration,oe=Q.ease,me=Q.getOpenCount,se=Q.switchScrollingEffect,_e=me&&me();_e||se(!0),d&&(document.body.style.overflowX="hidden"),G.dom.style.transition="none";var Ae,Ee="width ".concat(te," ").concat(oe),pe="transform ".concat(te," ").concat(oe);switch(X){case"left":{G.dom.style.width="100%",Ee="width 0s ".concat(oe," ").concat(te);break}case"right":{G.dom.style.transform="translateX(".concat(N,"px)"),G.dom.style.width="100%",Ee="width 0s ".concat(oe," ").concat(te),G.maskDom&&(G.maskDom.style.left="-".concat(N,"px"),G.maskDom.style.width="calc(100% + ".concat(N,"px)"));break}case"top":case"bottom":{G.dom.style.width="calc(100% + ".concat(N,"px)"),G.dom.style.height="100%",G.dom.style.transform="translateZ(0)",Ae="height 0s ".concat(oe," ").concat(te);break}default:break}clearTimeout(G.timeout),G.timeout=setTimeout(function(){G.dom&&(G.dom.style.transition="".concat(pe,",").concat(Ae?"".concat(Ae,","):"").concat(Ee),G.dom.style.transform="",G.dom.style.width="",G.dom.style.height="")})},G.getCurrentDrawerSome=function(){return!Object.keys(l).some(function(N){return l[N]})},G.getLevelDom=function(N){var Q=N.level,X=N.getContainer;if(w)return;var te=X&&X(),oe=te?te.parentNode:null;if(G.levelDom=[],Q==="all"){var me=oe?Array.prototype.slice.call(oe.children):[];me.forEach(function(se){se.nodeName!=="SCRIPT"&&se.nodeName!=="STYLE"&&se.nodeName!=="LINK"&&se!==te&&G.levelDom.push(se)})}else Q&&o(Q).forEach(function(se){document.querySelectorAll(se).forEach(function(_e){G.levelDom.push(_e)})})},G.getHorizontalBoolAndPlacementName=function(){var N=G.props.placement,Q=N==="left"||N==="right",X="translate".concat(Q?"X":"Y");return{isHorizontal:Q,placementName:X}},G.state={_self:Object(r.a)(G)},G}return Object(P.a)(U,[{key:"componentDidMount",value:function(){var G=this;if(!w){var N=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return N=!0,null}}))}catch(me){}this.passive=N?{passive:!1}:!1}var Q=this.props,X=Q.open,te=Q.getContainer,oe=te&&te();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),X&&(oe&&oe.parentNode===document.body&&(l[this.drawerId]=X),this.openLevelTransition(),this.forceUpdate(function(){G.domFocus()}))}},{key:"componentDidUpdate",value:function(G){var N=this.props,Q=N.open,X=N.getContainer,te=X&&X();Q!==G.open&&(Q&&this.domFocus(),te&&te.parentNode===document.body&&(l[this.drawerId]=!!Q),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var G=this.props,N=G.getOpenCount,Q=G.open,X=G.switchScrollingEffect,te=typeof N=="function"&&N();delete l[this.drawerId],Q&&(this.setLevelTransform(!1),document.body.style.touchAction=""),te||(document.body.style.overflow="",X(!0))}},{key:"render",value:function(){var G,N=this,Q=this.props,X=Q.className,te=Q.children,oe=Q.style,me=Q.width,se=Q.height,_e=Q.defaultOpen,Ae=Q.open,Ee=Q.prefixCls,pe=Q.placement,he=Q.level,ie=Q.levelMove,fe=Q.ease,ge=Q.duration,ce=Q.getContainer,Ie=Q.handler,Fe=Q.onChange,ke=Q.afterVisibleChange,re=Q.showMask,F=Q.maskClosable,W=Q.maskStyle,de=Q.onClose,ne=Q.onHandleClick,le=Q.keyboard,De=Q.getOpenCount,Xe=Q.switchScrollingEffect,xt=Object(ue.a)(Q,["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"]),Ke=this.dom?Ae:!1,ze=e()(Ee,(G={},Object(c.a)(G,"".concat(Ee,"-").concat(pe),!0),Object(c.a)(G,"".concat(Ee,"-open"),Ke),Object(c.a)(G,X||"",!!X),Object(c.a)(G,"no-mask",!re),G)),yt=this.getHorizontalBoolAndPlacementName(),Et=yt.placementName,ct=pe==="left"||pe==="top"?"-100%":"100%",lt=Ke?"":"".concat(Et,"(").concat(ct,")"),rt=Ie&&m.cloneElement(Ie,{onClick:function($e){Ie.props.onClick&&Ie.props.onClick(),ne&&ne($e)},ref:function($e){N.handlerDom=$e}});return m.createElement("div",Object.assign({},xt,{tabIndex:-1,className:ze,style:oe,ref:function($e){N.dom=$e},onKeyDown:Ke&&le?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),re&&m.createElement("div",{className:"".concat(Ee,"-mask"),onClick:F?de:void 0,style:W,ref:function($e){N.maskDom=$e}}),m.createElement("div",{className:"".concat(Ee,"-content-wrapper"),style:{transform:lt,msTransform:lt,width:S(me)?"".concat(me,"px"):me,height:S(se)?"".concat(se,"px"):se},ref:function($e){N.contentWrapper=$e}},m.createElement("div",{className:"".concat(Ee,"-content"),ref:function($e){N.contentDom=$e},onTouchStart:Ke&&re?this.removeStartHandler:void 0,onTouchMove:Ke&&re?this.removeMoveHandler:void 0},te),rt))}}],[{key:"getDerivedStateFromProps",value:function(G,N){var Q=N.prevProps,X=N._self,te={prevProps:G};if(Q!==void 0){var oe=G.placement,me=G.level;oe!==Q.placement&&(X.contentDom=null),me!==Q.level&&X.getLevelDom(G)}return te}}]),U}(m.Component);i.defaultProps={switchScrollingEffect:function(){}};var x=i;function O(H){var J=T();return function(){var K=Object(_.a)(H),G;if(J){var N=Object(_.a)(this).constructor;G=Reflect.construct(K,arguments,N)}else G=K.apply(this,arguments);return Object(E.a)(this,G)}}function T(){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(H){return!1}}var D=function(H){Object(y.a)(U,H);var J=O(U);function U(K){var G;Object(Y.a)(this,U),G=J.call(this,K),G.onHandleClick=function(Q){var X=G.props,te=X.onHandleClick,oe=X.open;if(te&&te(Q),typeof oe=="undefined"){var me=G.state.open;G.setState({open:!me})}},G.onClose=function(Q){var X=G.props,te=X.onClose,oe=X.open;te&&te(Q),typeof oe=="undefined"&&G.setState({open:!1})};var N=typeof K.open!="undefined"?K.open:!!K.defaultOpen;return G.state={open:N},"onMaskClick"in K&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),G}return Object(P.a)(U,[{key:"render",value:function(){var G=this,N=this.props,Q=N.defaultOpen,X=N.getContainer,te=N.wrapperClassName,oe=N.forceRender,me=N.handler,se=Object(ue.a)(N,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),_e=this.state.open;if(!X)return m.createElement("div",{className:te,ref:function(pe){G.dom=pe}},m.createElement(x,Object.assign({},se,{open:_e,handler:me,getContainer:function(){return G.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ae=!!me||oe;return m.createElement(C.a,{visible:_e,forceRender:Ae,getContainer:X,wrapperClassName:te},function(Ee){var pe=Ee.visible,he=Ee.afterClose,ie=Object(ue.a)(Ee,["visible","afterClose"]);return m.createElement(x,Object.assign({},se,ie,{open:pe!==void 0?pe:_e,afterVisibleChange:he!==void 0?he:se.afterVisibleChange,handler:me,onClose:G.onClose,onHandleClick:G.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(G,N){var Q=N.prevProps,X={prevProps:G};return typeof Q!="undefined"&&G.open!==Q.open&&(X.open=G.open),X}}]),U}(m.Component);D.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:m.createElement("div",{className:"drawer-handle"},m.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var R=D,k=we.a=R},fyJ8:function(Ze,we,M){"use strict";var ue=M("rePB"),Y=M("VTBJ"),P=M("Ff2n"),y=M("U8pU"),E=M("q1tI"),_=M.n(E),C=M("TSYQ"),m=M.n(C),c=M("c+Xe"),r=M("sR1s");function n(f){return f&&Object(y.a)(f)==="object"&&!Array.isArray(f)&&!E.isValidElement(f)}function e(f){return typeof f=="string"?!0:Object(c.c)(f)}function s(f,d){var a,h=f.prefixCls,g=f.className,p=f.record,S=f.index,w=f.dataIndex,B=f.render,b=f.children,A=f.component,l=A===void 0?"td":A,i=f.colSpan,x=f.rowSpan,O=f.fixLeft,T=f.fixRight,D=f.firstFixLeft,R=f.lastFixLeft,k=f.firstFixRight,H=f.lastFixRight,J=f.appendNode,U=f.additionalProps,K=U===void 0?{}:U,G=f.ellipsis,N=f.align,Q=f.rowType,X=f.isSticky,te="".concat(h,"-cell"),oe,me;if(b)me=b;else{var se=Object(r.b)(p,w);if(me=se,B){var _e=B(se,p,S);n(_e)?(me=_e.children,oe=_e.props):me=_e}}Object(y.a)(me)==="object"&&!Array.isArray(me)&&!E.isValidElement(me)&&(me=null),G&&(R||k)&&(me=E.createElement("span",{className:"".concat(te,"-content")},me));var Ae=oe||{},Ee=Ae.colSpan,pe=Ae.rowSpan,he=Ae.style,ie=Ae.className,fe=Object(P.a)(Ae,["colSpan","rowSpan","style","className"]),ge=Ee!==void 0?Ee:i,ce=pe!==void 0?pe:x;if(ge===0||ce===0)return null;var Ie={},Fe=typeof O=="number",ke=typeof T=="number";Fe&&(Ie.position="sticky",Ie.left=O),ke&&(Ie.position="sticky",Ie.right=T);var re={};N&&(re.textAlign=N);var F,W=G===!0?{showTitle:!0}:G;W&&(W.showTitle||Q==="header")&&(typeof me=="string"||typeof me=="number"?F=me.toString():E.isValidElement(me)&&typeof me.props.children=="string"&&(F=me.props.children));var de=Object(Y.a)(Object(Y.a)(Object(Y.a)({title:F},fe),K),{},{colSpan:ge&&ge!==1?ge:null,rowSpan:ce&&ce!==1?ce:null,className:m()(te,g,(a={},Object(ue.a)(a,"".concat(te,"-fix-left"),Fe),Object(ue.a)(a,"".concat(te,"-fix-left-first"),D),Object(ue.a)(a,"".concat(te,"-fix-left-last"),R),Object(ue.a)(a,"".concat(te,"-fix-right"),ke),Object(ue.a)(a,"".concat(te,"-fix-right-first"),k),Object(ue.a)(a,"".concat(te,"-fix-right-last"),H),Object(ue.a)(a,"".concat(te,"-ellipsis"),G),Object(ue.a)(a,"".concat(te,"-with-append"),J),Object(ue.a)(a,"".concat(te,"-fix-sticky"),(Fe||ke)&&X),a),K.className,ie),style:Object(Y.a)(Object(Y.a)(Object(Y.a)(Object(Y.a)({},K.style),re),Ie),he),ref:e(l)?d:null});return E.createElement(l,Object.assign({},de),J,me)}var u=E.forwardRef(s);u.displayName="Cell";var o=E.memo(u,function(f,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,f.record):!1});we.a=o},gut8:function(Ze,we){var M={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},ue=9;we.ContextCachedBy=M,we.WILL_BE_RESTORED=ue},"h/US":function(Ze,we,M){"use strict";var ue=M("DZo9"),Y=M("8z0m"),P=M("+L6B"),y=M("2/Rp"),E=M("tJVT"),_=M("q1tI"),C=M.n(_),m=M("z7Xi"),c=M("jN4g"),r=M("m3rI"),n=M("w8Aa"),e=M.n(n),s=function(o){var f=o.value,d=o.onChange,a=o.getFileProgress,h=Object(_.useState)(!1),g=Object(E.a)(h,2),p=g[0],S=g[1],w=C.a.createElement(y.a,{loading:p,icon:C.a.createElement(m.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),B=function(){return C.a.createElement("div",{className:e.a.img},C.a.createElement("img",{src:r.a.API_SERVER+"/api/attachments/"+f,alt:"avatar",style:{width:288}}),C.a.createElement("div",null,C.a.createElement(c.a,{onClick:function(){return d("")},style:{fontSize:"16px",color:"red"}})))},b=function(l){if(a&&a(l),l.file.status==="uploading"){S(!0);return}if(l.file.status==="done"){var i,x;S(!1),d(l==null||((i=l.file)===null||i===void 0||((x=i.response)===null||x===void 0))?void 0:x.id)}};return C.a.createElement(C.a.Fragment,null,f?B():C.a.createElement("div",null,C.a.createElement(Y.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(r.a.API_SERVER,"/api/attachments.json"),onChange:b,accept:"image/*"},w),C.a.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),C.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};we.a=s},h78n:function(Ze,we,M){"use strict";M.d(we,"a",function(){return D});var ue=M("q1tI"),Y=M.n(ue),P=M("TSYQ"),y=M.n(P),E={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},_=function(H){var J=H.map(function(){return Object(ue.useRef)()}),U=Object(ue.useRef)();return Object(ue.useEffect)(function(){var K=Date.now(),G=!1;Object.keys(J).forEach(function(N){var Q=J[N].current;if(!Q)return;G=!0;var X=Q.style;X.transitionDuration=".3s, .3s, .3s, .06s",U.current&&K-U.current<100&&(X.transitionDuration="0s, 0s")}),G&&(U.current=Date.now())}),[J]};function C(){return C=Object.assign||function(k){for(var H=1;Hk.length)&&(H=k.length);for(var J=0,U=new Array(H);J=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,U))continue;J[U]=k[U]}}return J}function o(k,H){if(k==null)return{};var J={},U=Object.keys(k),K,G;for(G=0;G=0)continue;J[K]=k[K]}return J}var f=function(H){var J=H.className,U=H.percent,K=H.prefixCls,G=H.strokeColor,N=H.strokeLinecap,Q=H.strokeWidth,X=H.style,te=H.trailColor,oe=H.trailWidth,me=H.transition,se=u(H,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete se.gapPosition;var _e=Array.isArray(U)?U:[U],Ae=Array.isArray(G)?G:[G],Ee=_(_e),pe=m(Ee,1),he=pe[0],ie=Q/2,fe=100-Q/2,ge="M ".concat(N==="round"?ie:0,",").concat(ie,` L `).concat(N==="round"?fe:100,",").concat(ie),ce="0 0 100 ".concat(Q),Ie=0;return Y.a.createElement("svg",C({className:y()("".concat(K,"-line"),J),viewBox:ce,preserveAspectRatio:"none",style:X},se),Y.a.createElement("path",{className:"".concat(K,"-line-trail"),d:ge,strokeLinecap:N,stroke:te,strokeWidth:oe||Q,fillOpacity:"0"}),_e.map(function(Fe,ke){var re={strokeDasharray:"".concat(Fe,"px, 100px"),strokeDashoffset:"-".concat(Ie,"px"),transition:me||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},F=Ae[ke]||Ae[Ae.length-1];return Ie+=Fe,Y.a.createElement("path",{key:ke,className:"".concat(K,"-line-path"),d:ge,strokeLinecap:N,stroke:F,strokeWidth:Q,fillOpacity:"0",ref:he[ke],style:re})}))};f.defaultProps=E;var d=f;function a(){return a=Object.assign||function(k){for(var H=1;Hk.length)&&(H=k.length);for(var J=0,U=new Array(H);J=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,U))continue;J[U]=k[U]}}return J}function A(k,H){if(k==null)return{};var J={},U=Object.keys(k),K,G;for(G=0;G=0)continue;J[K]=k[K]}return J}var l=0;function i(k){return+k.replace("%","")}function x(k){return Array.isArray(k)?k:[k]}function O(k,H,J,U){var K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,G=arguments.length>5?arguments[5]:void 0,N=50-U/2,Q=0,X=-N,te=0,oe=-2*N;switch(G){case"left":Q=-N,X=0,te=2*N,oe=0;break;case"right":Q=N,X=0,te=-2*N,oe=0;break;case"bottom":X=N,oe=2*N;break;default:}var me="M 50,50 m ".concat(Q,",").concat(X,` a `).concat(N,",").concat(N," 0 1 1 ").concat(te,",").concat(-oe,` a `).concat(N,",").concat(N," 0 1 1 ").concat(-te,",").concat(oe),se=Math.PI*2*N,_e={stroke:J,strokeDasharray:"".concat(H/100*(se-K),"px ").concat(se,"px"),strokeDashoffset:"-".concat(K/2+k/100*(se-K),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:me,pathStyle:_e}}var T=function(H){var J=H.prefixCls,U=H.strokeWidth,K=H.trailWidth,G=H.gapDegree,N=H.gapPosition,Q=H.trailColor,X=H.strokeLinecap,te=H.style,oe=H.className,me=H.strokeColor,se=H.percent,_e=b(H,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ae=Object(ue.useMemo)(function(){return l+=1,l},[]),Ee=O(0,100,Q,U,G,N),pe=Ee.pathString,he=Ee.pathStyle,ie=x(se),fe=x(me),ge=fe.find(function(re){return Object.prototype.toString.call(re)==="[object Object]"}),ce=_(ie),Ie=h(ce,1),Fe=Ie[0],ke=function(){var F=0;return ie.map(function(W,de){var ne=fe[de]||fe[fe.length-1],le=Object.prototype.toString.call(ne)==="[object Object]"?"url(#".concat(J,"-gradient-").concat(Ae,")"):"",De=O(F,W,ne,U,G,N);return F+=W,Y.a.createElement("path",{key:de,className:"".concat(J,"-circle-path"),d:De.pathString,stroke:le,strokeLinecap:X,strokeWidth:U,opacity:W===0?0:1,fillOpacity:"0",style:De.pathStyle,ref:Fe[de]})})};return Y.a.createElement("svg",a({className:y()("".concat(J,"-circle"),oe),viewBox:"0 0 100 100",style:te},_e),ge&&Y.a.createElement("defs",null,Y.a.createElement("linearGradient",{id:"".concat(J,"-gradient-").concat(Ae),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ge).sort(function(re,F){return i(re)-i(F)}).map(function(re,F){return Y.a.createElement("stop",{key:F,offset:re,stopColor:ge[re]})}))),Y.a.createElement("path",{className:"".concat(J,"-circle-trail"),d:pe,stroke:Q,strokeLinecap:X,strokeWidth:K||U,fillOpacity:"0",style:he}),ke().reverse())};T.defaultProps=E;var D=T,R={Line:d,Circle:D}},h7HQ:function(Ze,we,M){var ue=M("y+Vt"),Y=M("T6xi"),P=ue.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(y,E){Y.buildPath(y,E,!0)}});Ze.exports=P},hOwI:function(Ze,we){var M=Math.log(2);function ue(P,y,E,_,C,m){var c=_+"-"+C,r=P.length;if(m.hasOwnProperty(c))return m[c];if(y===1){var n=Math.round(Math.log((1<Y&&_>y||_E?C:0}Ze.exports=M},iXp4:function(Ze,we,M){var ue=M("ItGF"),Y=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function P(y){return ue.browser.ie&&ue.browser.version>=11?function(){var E=this.__clipPaths,_=this.style,C;if(E)for(var m=0;m-1?It:0}else{var Ot,bt,Ht,Gt,xn,vn=(Ot=Ae.detail)===null||Ot===void 0||((bt=Ot.courses)===null||bt===void 0||((Ht=bt.map(function(xr){var Kn;return parseInt((Kn=xr.course_status)===null||Kn===void 0?void 0:Kn.status)}))===null||Ht===void 0))?void 0:Ht.lastIndexOf(2);We=vn>-1?vn:0,vn=(Gt=Ae.detail)===null||Gt===void 0||((xn=Gt.courses)===null||xn===void 0)?void 0:xn.findIndex(function(xr){var Kn;return parseInt((Kn=xr.course_status)===null||Kn===void 0?void 0:Kn.status)===0}),We=vn>-1?vn:We}if((Re=Ae.detail)!==null&&Re!==void 0&&Re.courses){var sr;ct(((sr=Ae.detail)===null||sr===void 0?void 0:sr.courses[We])||{})}},[Ae.detail]);var Pe=function(Re,We){d.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){}})},je=function(Re){d.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var We=Object(o.a)(B.a.mark(function ft(){return B.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:case"end":return Ot.stop()}},ft)}));function St(){return We.apply(this,arguments)}return St}()})},Ne=function(){var Ct=Object(o.a)(B.a.mark(function Re(We,St){var ft;return B.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(ge({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!St){Ot.next=7;break}return Ot.next=4,Object(k.C)({id:We});case 4:Ot.t0=Ot.sent,Ot.next=10;break;case 7:return Ot.next=9,Object(k.D)({id:We});case 9:Ot.t0=Ot.sent;case 10:if(ft=Ot.t0,ge({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(ft!=null&&ft.game_identifier||ft!=null&&ft.identifier)){Ot.next=15;break}return Object(T.Q)(St?"/tasks/".concat(ft==null?void 0:ft.identifier,"/jupyter"):"/tasks/".concat(ft.game_identifier,"?subject_id=").concat(le.pathId||"")),Ot.abrupt("return");case 15:(ft==null?void 0:ft.status)===-3?Object(T.o)():(ft==null?void 0:ft.status)===2?et(ft==null?void 0:ft.message):(ft==null?void 0:ft.status)===3&&mt(ft==null?void 0:ft.message);case 16:case"end":return Ot.stop()}},Re)}));return function(We,St){return Ct.apply(this,arguments)}}(),et=function Ct(Re){var We;Re=(We=Re)!==null&&We!==void 0&&We.includes(".json")?Re:"".concat(Re,".json"),d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:A.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var St=Object(o.a)(B.a.mark(function It(){var Ot,bt;return B.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,Object(R.S)({url:Re});case 2:if(Ot=Gt.sent,Ot){Gt.next=5;break}return Gt.abrupt("return");case 5:return u.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Gt.next=8,Object(k.D)({id:Ot.shixun_identifier});case 8:if(bt=Gt.sent,!(bt!=null&&bt.game_identifier)){Gt.next=12;break}return Object(T.Q)("/tasks/".concat(bt.game_identifier)),Gt.abrupt("return");case 12:(bt==null?void 0:bt.status)===2?Ct(bt==null?void 0:bt.message):(bt==null?void 0:bt.status)===3&&mt(bt==null?void 0:bt.message);case 13:case"end":return Gt.stop()}},It)}));function ft(){return St.apply(this,arguments)}return ft}()})},mt=function(Re){d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:A.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Re,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},At=function(Re){console.log("onDragEnter:",Re)},Ut=function(){var Ct=Object(o.a)(B.a.mark(function Re(We){var St,ft,It,Ot,bt,Ht,Gt,xn,vn;return B.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:if(console.log("onDrop:",We),St=We.node.props.eventKey,ft=We.dragNode.props.eventKey,It=We.node.props.pos.split("-"),Ot=We.dropPosition-Number(It[It.length-1]),!(It.length>2&&!We.node.dragOverGapBottom&&!We.node.dragOverGapTop)){xr.next=7;break}return xr.abrupt("return",!1);case 7:if(!(We.node.dragOver&&We.dragNodesKeys.length>1)){xr.next=9;break}return xr.abrupt("return",!1);case 9:if(!(It.length>2&&We.dragNodesKeys.length>1)){xr.next=11;break}return xr.abrupt("return",!1);case 11:return bt=function Kn(En,Qr,sa){for(var Xr=0;Xr0&&We.node.props.expanded&&Ot===1?bt(Ht,St,function(Kn){Kn.children=Kn.children||[],Kn.children.unshift(Gt)}):(bt(Ht,St,function(Kn,En,Qr){xn=Qr,vn=En}),Ot===-1?xn.splice(vn,0,Gt):xn.splice(vn+1,0,Gt)):bt(Ht,St,function(Kn){Kn.children=Kn.children||[],Kn.children.unshift(Gt)}),xr.next=17,fe({stage_id:ce.stage_id,list:Ht});case 17:Xt(Ht,0,0,!0),console.log("data:",Ht),Ke(Object(a.a)(Ht)),re([].concat(Object(a.a)(ke),[We.node.key]));case 21:case"end":return xr.stop()}},Re)}));return function(We){return Ct.apply(this,arguments)}}(),Xt=function Ct(Re,We,St,ft){We=We||0,Re.map(function(It,Ot){try{var bt;return It.key2=We+1+"-"+(Ot+1),It.key3=ce.index+1+"-"+(Ot+1),It.title="",ft||(It.key=We+1+"-"+(Ot+1)),We?It.index=St+"-"+(Ot+1):It.index=It.key3,(bt=It.children)!==null&&bt!==void 0&&bt.length&&(de.push(It.key2),Ct(It.children,It.key2,It.index,ft)),It}catch(Ht){}})},un=function(Re){var We=Re.learning_status,St=Re.name,ft=(We==null?void 0:We[0])==="can"&&(We==null?void 0:We[1])==="try";return ft?A.a.createElement("div",{className:J.a.learn},A.a.createElement("span",{className:J.a.name},St),A.a.createElement("span",{className:J.a.sign},"\u514D\u8D39\u8BD5\u5B66")):St},jt=function(Re){if(ie!=="All")return;ke.includes(Re)?re(ke.filter(function(We){return We!=Re})):re(ke.concat(Re))},Zt=function(){var Ct=Object(o.a)(B.a.mark(function Re(We){return B.a.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(Object(Q.e)(ge,!0)){ft.next=2;break}return ft.abrupt("return");case 2:if(!(We!=null&&We.need_authorize)){ft.next=5;break}return Object(Q.a)(!1),ft.abrupt("return");case 5:if(!(Et!=null&&Et.course_id)){ft.next=8;break}return ft.next=8,Object(O.L)({id:Et==null?void 0:Et.course_id});case 8:Ne(We.identifier,We.is_jupyter||We.is_jupyter_lab);case 9:case"end":return ft.stop()}},Re)}));return function(We){return Ct.apply(this,arguments)}}(),Mt=function(){var Ct=Object(o.a)(B.a.mark(function Re(We){var St,ft,It,Ot,bt,Ht;return B.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:if(Object(Q.e)(ge)){xn.next=2;break}return xn.abrupt("return");case 2:if(!(!((St=pe.userInfo)!==null&&St!==void 0&&St.admin)&&!((ft=pe.userInfo)!==null&&ft!==void 0&&ft.business)&&!We.can_view&&We.item_type!=="Attachment")){xn.next=4;break}return xn.abrupt("return",d.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:A.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")}));case 4:We.link&&Object(D.n)({is_f:1,id:We.id,point:0,total:0}),bt=ce!=null&&ce.course_id?"course_id=".concat(ce==null?void 0:ce.course_id):"subject_id=".concat(le.pathId||ce.subject_id),Ht=We==null||((It=We.name)===null||It===void 0)?void 0:It.substr(We==null||((Ot=We.name)===null||Ot===void 0)?void 0:Ot.lastIndexOf(".")),Ht.toUpperCase()===".ZIP"?Object(T.t)(We.name,X.a.API_SERVER+We.url):Object(T.Q)(We.link||"/video/".concat(We.id,"?").concat(bt));case 8:case"end":return xn.stop()}},Re)}));return function(We){return Ct.apply(this,arguments)}}(),Tt=function(Re){var We;return Re.item_type==="Shixun"?Re.is_all_choice?We=A.a.createElement(e.a,{title:"\u9009\u62E9\u9898"},A.a.createElement("i",{className:"iconfont icon-xuanzeti3 c-lake-blue font20"})):We=A.a.createElement(e.a,{title:"\u5B9E\u8BAD\u9898"},A.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})):Re.item_type==="VideoItem"?We=A.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):Re.item_type==="StageCatalog"?We=A.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):We=A.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"}),We;Re.item_type==="Shixun"||Re.item_type==="StageCatalog"};return A.a.createElement(A.a.Fragment,null,A.a.createElement(te.a,Object(c.a)({},qe,{onClose:function(){$e(Object(r.a)(Object(r.a)({},qe),{},{type:""})),ge({type:"attachment/setActionTabs",payload:{}})}})),A.a.createElement(Y.a,{className:J.a.tree,disabled:ce.disabled,expandedKeys:Object(a.a)(ke),draggable:!0,onDragEnter:At,onDrop:Ut,onExpand:jt,blockNode:!0,titleRender:function(Re){var We,St,ft,It,Ot=Re;if(Ot.item_type!==ie&&ie!=="All")return null;var bt=Re.index.slice(0,1)==="1",Ht=(Re==null||((We=Re.learning_status)===null||We===void 0)?void 0:We[0])==="can";return A.a.createElement(y.a,{align:"middle",className:"font14",onClick:function(){return jt(Ot.key)}},A.a.createElement(m.a,{flex:"30px"},Tt(Re)),A.a.createElement(m.a,{flex:"1",className:"c-grey-333"},ce.cust_seq&&A.a.createElement("span",{className:"mr10"},Re.index),Re.item_type!=="Attachment"&&un(Re),Re.item_type==="Attachment"&&A.a.createElement("a",{target:"_blank",onClick:Object(o.a)(B.a.mark(function Gt(){var xn;return B.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(Object(Q.e)(ge)){sr.next=2;break}return sr.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){sr.next=6;break}return sr.next=5,Object(O.L)({id:Et==null?void 0:Et.course_id});case 5:xn=sr.sent;case 6:sr.t0=Re.item_type,sr.next=sr.t0==="Attachment"?9:sr.t0==="VideoItem"?13:sr.t0==="Shixun"?15:17;break;case 9:return qe.type=Ot.file_type,qe.data=X.a.API_SERVER+Ot.url,$e(Object(r.a)({},qe)),sr.abrupt("break",17);case 13:return Mt(Re),sr.abrupt("break",17);case 15:return Zt(Re),sr.abrupt("break",17);case 17:case"end":return sr.stop()}},Gt)}))},Re.name),Re.item_type==="Shixun"&&Re.is_unity_3d&&A.a.createElement("span",{style:{background:"#a300d8",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"68px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"\u865A\u62DF\u4EFF\u771F"),!!((St=Re.schools)!==null&&St!==void 0&&St.length)&&A.a.createElement(e.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},A.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),Re.item_type==="Shixun"&&!!(Re!=null&&Re.finished_challenges_count)&&A.a.createElement(e.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((Re==null?void 0:Re.finished_challenges_count)/(Re==null?void 0:Re.challenges_count)*100),"%")},A.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((Re==null?void 0:Re.finished_challenges_count)-(Re==null?void 0:Re.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!ce.disabled&&A.a.createElement("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),A.a.createElement(m.a,{className:"tr"},(Ot.item_type==="VideoItem"||(Ot==null?void 0:Ot.item_type)==="Attachment")&&!ce.disabled&&A.a.createElement(e.a,{title:"\u7F16\u8F91"},A.a.createElement("span",{onClick:function(){ce.editVidoItem(Ot)},style:{color:"#ccc",marginRight:"10px"}},A.a.createElement(x.a,null))),!ce.disabled&&A.a.createElement(A.a.Fragment,null,A.a.createElement(e.a,{title:"\u5220\u9664"},A.a.createElement("span",{onClick:function(){ce.deleteStages({id:Ot.stage_item_id,stage_id:ce.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),ce.showVideoPlay&&ce.disabled&&Ot.item_type==="VideoItem"&&Ht&&A.a.createElement("aside",null,A.a.createElement(_.a,{type:"primary",onClick:Object(o.a)(B.a.mark(function Gt(){return B.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:Mt(Ot);case 1:case"end":return vn.stop()}},Gt)}))},Ot.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((ft=pe.userInfo)===null||ft===void 0?void 0:ft.admin)||Ot.allow_visit||Ot.to_be_built||Ot.shixun_status!=="\u6682\u672A\u516C\u5F00"&&Ot.shixun_status!=="\u5DF2\u5220\u9664")&&ce.disabled&&Ot.item_type==="Shixun"&&Ht&&A.a.createElement("aside",null,A.a.createElement(_.a,{className:"ml10",type:"primary",onClick:Object(o.a)(B.a.mark(function Gt(){return B.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(Object(Q.e)(ge)){vn.next=2;break}return vn.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){vn.next=5;break}return vn.next=5,Object(O.L)({id:Et==null?void 0:Et.course_id});case 5:window.open("/shixuns/".concat(Ot.identifier,"/challenges"));case 6:case"end":return vn.stop()}},Gt)}))},"\u67E5\u770B\u8BE6\u60C5"),Ot.shixun_status!=="\u6682\u672A\u516C\u5F00"&&A.a.createElement(_.a,{className:"ml10",type:"primary",onClick:Object(o.a)(B.a.mark(function Gt(){return B.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:Zt(Ot);case 1:case"end":return vn.stop()}},Gt)}))},Ot!=null&&Ot.need_authorize?"\u9700\u6388\u6743":Re!=null&&Re.finished_challenges_count?(Re==null?void 0:Re.finished_challenges_count)-(Re==null?void 0:Re.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),ce.disabled&&!Ot.allow_visit&&!Ot.to_be_built&&Ot.shixun_status==="\u6682\u672A\u516C\u5F00"&&A.a.createElement("span",{className:J.a.color204},"\u6682\u672A\u516C\u5F00"),!Ot.allow_visit&&!Ot.to_be_built&&Ot.shixun_status==="\u5DF2\u5220\u9664"&&A.a.createElement("span",{className:J.a.color204},"\u5DF2\u5220\u9664"),ce.disabled&&Ot.item_type==="Shixun"&&!!Ot.challenges_count&&A.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Ot.challenges_count),ie==="All"&&!!((It=Re.children)!==null&&It!==void 0&&It.length)&&A.a.createElement("span",{className:"ml10"},ke.includes(Re.key)?A.a.createElement(G.a,null):A.a.createElement(N.a,null))))},treeData:xt}))};we.a=Object(i.a)(function(se){var _e=se.pathsDetail,Ae=se.loading,Ee=se.user,pe=se.globalSetting;return{pathsDetail:_e,globalSetting:pe,user:Ee,loading:Ae.effects}})(me)},ji0R:function(Ze,we,M){Ze.exports=M.p+"static/douyu.3e6df9ee.jpg"},juDX:function(Ze,we,M){M("P47w");var ue=M("aX58"),Y=ue.registerPainter,P=M("3CBa");Y("svg",P)},k3GJ:function(Ze,we,M){"use strict";M.d(we,"a",function(){return $s});var ue=M("rePB"),Y=M("ODXe"),P=M("Ff2n"),y=M("VTBJ"),E=M("q1tI"),_=M("TSYQ"),C=M.n(_),m=M("Zm9Q"),c=M("6cGi"),r=M("KQm4"),n=M("xEkU"),e=M.n(n),s=M("t23M");function u(ut){var Ge=Object(E.useRef)(),Ye=Object(E.useRef)(!1);function Je(){for(var Te=arguments.length,Ve=new Array(Te),Be=0;Bedt&&(Bt=dt-Qt),Object(E.useMemo)(function(){if(!Ve.length)return[0,0];for(var $t=Ve.length,ln=$t,On=0;On<$t;On+=1){var Wt=ut.get(Ve[On].key)||p;if(Wt[st]+Wt[nt]>it+Bt){ln=On-1;break}}for(var qt=0,yn=$t-1;yn>=0;yn-=1){var Rn=ut.get(Ve[yn].key)||p;if(Rn[st]1&&arguments[1]!==void 0?arguments[1]:!1,Je=Ge&&typeof Ge.getBoundingClientRect=="function"&&Ge.getBoundingClientRect().width;if(Je){if(Ye){var Te=getComputedStyle(Ge),Ve=Te.marginLeft,Be=Te.marginRight;Je+=+Ve.replace("px","")+ +Be.replace("px","")}Je=+Je.toFixed(6)}return Je||0},F=function(Ge,Ye,Je){Ge&&Object(k.a)(Ge.style)==="object"&&(Ge.style[Ye]=Je)},W=function(){return ie.any},de=M("bdgK"),ne=M("i8i4"),le=M.n(ne),De=M("wgJM"),Xe=M("l4aY"),xt=M("m+aA"),Ke=M("c+Xe"),ze=M("zT1h"),yt=M("QC+M");function Et(ut,Ge,Ye){return Ye?ut[0]===Ge[0]:ut[0]===Ge[0]&&ut[1]===Ge[1]}function ct(ut,Ge,Ye){var Je=ut[Ge]||{};return Object(y.a)(Object(y.a)({},Je),Ye)}function lt(ut,Ge,Ye,Je){for(var Te=Ye.points,Ve=Object.keys(ut),Be=0;Be1&&arguments[1]!==void 0?arguments[1]:2;Ge();var Ve=Object(De.a)(function(){Te<=1?Je({isCanceled:function(){return Ve!==ut.current}}):Ye(Je,Te-1)});ut.current=Ve}return E.useEffect(function(){return function(){Ge()}},[]),[Ye,Ge]},sr=[ft,It,Ot,bt],xr=!1,Kn=!0;function En(ut){return ut===Ot||ut===bt}var Qr=function(ut,Ge){var Ye=E.useState(St),Je=Object(Y.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=vn(),at=Object(Y.a)(Be,2),nt=at[0],st=at[1];function it(){Ve(ft)}return xn(function(){if(Te!==St&&Te!==bt){var dt=sr.indexOf(Te),Dt=sr[dt+1],Qt=Ge(Te);Qt===xr?Ve(Dt):nt(function(Bt){function $t(){if(Bt.isCanceled())return;Ve(Dt)}Qt===!0?$t():Promise.resolve(Qt).then($t)})}},[ut,Te]),E.useEffect(function(){return function(){st()}},[]),[it,Te]},sa=function(ut){var Ge=Object(E.useRef)(),Ye=Object(E.useRef)(ut);Ye.current=ut;var Je=E.useCallback(function(Be){Ye.current(Be)},[]);function Te(Be){Be&&(Be.removeEventListener(Zt,Je),Be.removeEventListener(jt,Je))}function Ve(Be){Ge.current&&Ge.current!==Be&&Te(Ge.current),Be&&Be!==Ge.current&&(Be.addEventListener(Zt,Je),Be.addEventListener(jt,Je),Ge.current=Be)}return E.useEffect(function(){return function(){Te(Ge.current)}},[]),[Ve,Te]};function Xr(ut,Ge,Ye,Je){var Te=Je.motionEnter,Ve=Te===void 0?!0:Te,Be=Je.motionAppear,at=Be===void 0?!0:Be,nt=Je.motionLeave,st=nt===void 0?!0:nt,it=Je.motionDeadline,dt=Je.motionLeaveImmediately,Dt=Je.onAppearPrepare,Qt=Je.onEnterPrepare,Bt=Je.onLeavePrepare,$t=Je.onAppearStart,ln=Je.onEnterStart,On=Je.onLeaveStart,Wt=Je.onAppearActive,qt=Je.onEnterActive,yn=Je.onLeaveActive,Rn=Je.onAppearEnd,tn=Je.onEnterEnd,bn=Je.onLeaveEnd,Ln=Je.onVisibleChanged,Xn=Ht(),rn=Object(Y.a)(Xn,2),hn=rn[0],An=rn[1],_n=Ht(Tt),tr=Object(Y.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=Ht(null),hr=Object(Y.a)(Ir,2),Br=hr[0],ur=hr[1],Fr=Object(E.useRef)(!1),Qn=Object(E.useRef)(null),kr=Object(E.useRef)(!1),ta=Object(E.useRef)(null);function Wr(){var Jn=Ye();return Jn||ta.current}var yr=Object(E.useRef)(!1);function Dn(Jn){var Sn=Wr();if(Jn&&!Jn.deadline&&Jn.target!==Sn)return;var mr;cn===Ct&&yr.current?mr=Rn==null?void 0:Rn(Sn,Jn):cn===Re&&yr.current?mr=tn==null?void 0:tn(Sn,Jn):cn===We&&yr.current&&(mr=bn==null?void 0:bn(Sn,Jn)),mr!==!1&&!kr.current&&(Fn(Tt),ur(null))}var ar=sa(Dn),Pr=Object(Y.a)(ar,1),jn=Pr[0],$n=E.useMemo(function(){var Jn,Sn,mr;switch(cn){case"appear":return Jn={},Object(ue.a)(Jn,ft,Dt),Object(ue.a)(Jn,It,$t),Object(ue.a)(Jn,Ot,Wt),Jn;case"enter":return Sn={},Object(ue.a)(Sn,ft,Qt),Object(ue.a)(Sn,It,ln),Object(ue.a)(Sn,Ot,qt),Sn;case"leave":return mr={},Object(ue.a)(mr,ft,Bt),Object(ue.a)(mr,It,On),Object(ue.a)(mr,Ot,yn),mr;default:return{}}},[cn]),ir=Qr(cn,function(Jn){if(Jn===ft){var Sn=$n[ft];return Sn?Sn(Wr()):xr}if(fn in $n){var mr;ur(((mr=$n[fn])===null||mr===void 0?void 0:mr.call($n,Wr(),null))||null)}return fn===Ot&&(jn(Wr()),it>0&&(clearTimeout(Qn.current),Qn.current=setTimeout(function(){Dn({deadline:!0})},it))),Kn}),Zn=Object(Y.a)(ir,2),zn=Zn[0],fn=Zn[1],on=En(fn);yr.current=on,xn(function(){An(Ge);var Jn=Fr.current;if(Fr.current=!0,!ut)return;var Sn;!Jn&&Ge&&at&&(Sn=Ct),Jn&&Ge&&Ve&&(Sn=Re),(Jn&&!Ge&&st||!Jn&&dt&&!Ge&&st)&&(Sn=We),Sn&&(Fn(Sn),zn())},[Ge]),Object(E.useEffect)(function(){(cn===Ct&&!at||cn===Re&&!Ve||cn===We&&!st)&&Fn(Tt)},[at,Ve,st]),Object(E.useEffect)(function(){return function(){clearTimeout(Qn.current),kr.current=!0}},[]),Object(E.useEffect)(function(){hn!==void 0&&cn===Tt&&(Ln==null||Ln(hn))},[hn,cn]);var Gn=Br;return $n[ft]&&fn===It&&(Gn=Object(y.a)({transition:"none"},Gn)),[cn,fn,Gn,hn!=null?hn:Ge]}var Nr=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(){return Object(B.a)(this,Ye),Ge.apply(this,arguments)}return Object(b.a)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(E.Component),ba=Nr;function ja(ut){var Ge=ut;Object(k.a)(ut)==="object"&&(Ge=ut.transitionSupport);function Ye(Te){return!!(Te.motionName&&Ge)}var Je=E.forwardRef(function(Te,Ve){var Be=Te.visible,at=Be===void 0?!0:Be,nt=Te.removeOnLeave,st=nt===void 0?!0:nt,it=Te.forceRender,dt=Te.children,Dt=Te.motionName,Qt=Te.leavedClassName,Bt=Te.eventProps,$t=Ye(Te),ln=Object(E.useRef)(),On=Object(E.useRef)();function Wt(){try{return Object(xt.a)(ln.current||On.current)}catch(Fn){return null}}var qt=Xr($t,at,Wt,Te),yn=Object(Y.a)(qt,4),Rn=yn[0],tn=yn[1],bn=yn[2],Ln=yn[3],Xn=E.useRef(Ln);Ln&&(Xn.current=!0);var rn=Object(E.useRef)(Ve);rn.current=Ve;var hn=E.useCallback(function(Fn){ln.current=Fn,Object(Ke.b)(rn.current,Fn)},[]),An,_n=Object(y.a)(Object(y.a)({},Bt),{},{visible:at});if(!dt)An=null;else if(Rn===Tt||!Ye(Te))Ln?An=dt(Object(y.a)({},_n),hn):!st&&Xn.current?An=dt(Object(y.a)(Object(y.a)({},_n),{},{className:Qt}),hn):it?An=dt(Object(y.a)(Object(y.a)({},_n),{},{style:{display:"none"}}),hn):An=null;else{var tr,cn;tn===ft?cn="prepare":En(tn)?cn="active":tn===It&&(cn="start"),An=dt(Object(y.a)(Object(y.a)({},_n),{},{className:C()(Mt(Dt,Rn),(tr={},Object(ue.a)(tr,Mt(Dt,"".concat(Rn,"-").concat(cn)),cn),Object(ue.a)(tr,Dt,typeof Dt=="string"),tr)),style:bn}),hn)}return E.createElement(ba,{ref:On},An)});return Je.displayName="CSSMotion",Je}var oi=ja(un),Le="add",Qe="keep",ot="remove",_t="removed";function Kt(ut){var Ge;return ut&&Object(k.a)(ut)==="object"&&"key"in ut?Ge=ut:Ge={key:ut},Object(y.a)(Object(y.a)({},Ge),{},{key:String(Ge.key)})}function nn(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ut.map(Kt)}function ve(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],Je=0,Te=Ge.length,Ve=nn(ut),Be=nn(Ge);Ve.forEach(function(st){for(var it=!1,dt=Je;dt1});return nt.forEach(function(st){Ye=Ye.filter(function(it){var dt=it.key,Dt=it.status;return dt!==st||Dt!==ot}),Ye.forEach(function(it){it.key===st&&(it.status=Qe)})}),Ye}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Z(ut){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oi,Ye=function(Je){Object(l.a)(Ve,Je);var Te=Object(i.a)(Ve);function Ve(){var Be;return Object(B.a)(this,Ve),Be=Te.apply(this,arguments),Be.state={keyEntities:[]},Be.removeKey=function(at){Be.setState(function(nt){var st=nt.keyEntities;return{keyEntities:st.map(function(it){return it.key!==at?it:Object(y.a)(Object(y.a)({},it),{},{status:_t})})}})},Be}return Object(b.a)(Ve,[{key:"render",value:function(){var at=this,nt=this.state.keyEntities,st=this.props,it=st.component,dt=st.children,Dt=st.onVisibleChanged,Qt=Object(P.a)(st,["component","children","onVisibleChanged"]),Bt=it||E.Fragment,$t={};return z.forEach(function(ln){$t[ln]=Qt[ln],delete Qt[ln]}),delete Qt.keys,E.createElement(Bt,Qt,nt.map(function(ln){var On=ln.status,Wt=Object(P.a)(ln,["status"]),qt=On===Le||On===Qe;return E.createElement(Ge,Object(w.a)({},$t,{key:Wt.key,visible:qt,eventProps:Wt,onVisibleChanged:function(Rn){Dt==null||Dt(Rn,{key:Wt.key}),Rn||at.removeKey(Wt.key)}}),dt)}))}}],[{key:"getDerivedStateFromProps",value:function(at,nt){var st=at.keys,it=nt.keyEntities,dt=nn(st),Dt=ve(it,dt);return{keyEntities:Dt.filter(function(Qt){var Bt=it.find(function($t){var ln=$t.key;return Qt.key===ln});return!(Bt&&Bt.status===_t&&Qt.status===ot)})}}}]),Ve}(E.Component);return Ye.defaultProps={component:"div"},Ye}var ye=Z(un),Ce=oi;function be(ut){var Ge=ut.prefixCls,Ye=ut.motion,Je=ut.animation,Te=ut.transitionName;return Ye||(Je?{motionName:"".concat(Ge,"-").concat(Je)}:Te?{motionName:Te}:null)}function ht(ut){var Ge=ut.prefixCls,Ye=ut.visible,Je=ut.zIndex,Te=ut.mask,Ve=ut.maskMotion,Be=ut.maskAnimation,at=ut.maskTransitionName;if(!Te)return null;var nt={};return(Ve||at||Be)&&(nt=Object(y.a)({motionAppear:!0},be({motion:Ve,prefixCls:Ge,transitionName:at,animation:Be}))),E.createElement(Ce,Object(w.a)({},nt,{visible:Ye,removeOnLeave:!0}),function(st){var it=st.className;return E.createElement("div",{style:{zIndex:Je},className:C()("".concat(Ge,"-mask"),it)})})}var Nt=M("9mu1"),sn=M("o0o1"),pn=M.n(sn),zt=M("HaE+"),qn=["measure","align",null,"motion"],Un=function(ut,Ge){var Ye=Object(E.useState)(null),Je=Object(Y.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=Object(E.useRef)(),at=Object(E.useRef)(!1);function nt(dt){at.current||Ve(dt)}function st(){De.a.cancel(Be.current)}function it(dt){st(),Be.current=Object(De.a)(function(){nt(function(Dt){switch(Te){case"align":return"motion";case"motion":return"stable";default:}return Dt}),dt==null||dt()})}return Object(E.useEffect)(function(){nt("measure")},[ut]),Object(E.useEffect)(function(){switch(Te){case"measure":Ge();break;default:}Te&&(Be.current=Object(De.a)(Object(zt.a)(pn.a.mark(function dt(){var Dt,Qt;return pn.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:Dt=qn.indexOf(Te),Qt=qn[Dt+1],Qt&&Dt!==-1&&nt(Qt);case 3:case"end":return $t.stop()}},dt)}))))},[Te]),Object(E.useEffect)(function(){return function(){at.current=!0,st()}},[]),[Te,it]},rr=function(ut){var Ge=E.useState({width:0,height:0}),Ye=Object(Y.a)(Ge,2),Je=Ye[0],Te=Ye[1];function Ve(at){Te({width:at.offsetWidth,height:at.offsetHeight})}var Be=E.useMemo(function(){var at={};if(ut){var nt=Je.width,st=Je.height;ut.indexOf("height")!==-1&&st?at.height=st:ut.indexOf("minHeight")!==-1&&st&&(at.minHeight=st),ut.indexOf("width")!==-1&&nt?at.width=nt:ut.indexOf("minWidth")!==-1&&nt&&(at.minWidth=nt)}return at},[ut,Je]);return[Be,Ve]},Sr=E.forwardRef(function(ut,Ge){var Ye=ut.visible,Je=ut.prefixCls,Te=ut.className,Ve=ut.style,Be=ut.children,at=ut.zIndex,nt=ut.stretch,st=ut.destroyPopupOnHide,it=ut.forceRender,dt=ut.align,Dt=ut.point,Qt=ut.getRootDomNode,Bt=ut.getClassNameFromAlign,$t=ut.onAlign,ln=ut.onMouseEnter,On=ut.onMouseLeave,Wt=ut.onMouseDown,qt=ut.onTouchStart,yn=Object(E.useRef)(),Rn=Object(E.useRef)(),tn=Object(E.useState)(),bn=Object(Y.a)(tn,2),Ln=bn[0],Xn=bn[1],rn=rr(nt),hn=Object(Y.a)(rn,2),An=hn[0],_n=hn[1];function tr(){nt&&_n(Qt())}var cn=Un(Ye,tr),Fn=Object(Y.a)(cn,2),Ir=Fn[0],hr=Fn[1],Br=Object(E.useRef)();function ur(){return Dt||Qt}function Fr(){var ar;(ar=yn.current)===null||ar===void 0||ar.forceAlign()}function Qn(ar,Pr){var jn=Bt(Pr);Ln!==jn&&Xn(jn),Ir==="align"&&(Ln!==jn?Promise.resolve().then(function(){Fr()}):hr(function(){var $n;($n=Br.current)===null||$n===void 0||$n.call(Br)}),$t==null||$t(ar,Pr))}var kr=Object(y.a)({},be(ut));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ar){var Pr=kr[ar];kr[ar]=function(jn,$n){return hr(),Pr==null?void 0:Pr(jn,$n)}});function ta(){return new Promise(function(ar){Br.current=ar})}E.useEffect(function(){!kr.motionName&&Ir==="motion"&&hr()},[kr.motionName,Ir]),E.useImperativeHandle(Ge,function(){return{forceAlign:Fr,getElement:function(){return Rn.current}}});var Wr=Object(y.a)(Object(y.a)({},An),{},{zIndex:at,opacity:Ir==="motion"||Ir==="stable"||!Ye?void 0:0,pointerEvents:Ir==="stable"?void 0:"none"},Ve),yr=!0;(dt==null?void 0:dt.points)&&(Ir==="align"||Ir==="stable")&&(yr=!1);var Dn=Be;return E.Children.count(Be)>1&&(Dn=E.createElement("div",{className:"".concat(Je,"-content")},Be)),E.createElement(Ce,Object(w.a)({visible:Ye,ref:Rn,leavedClassName:"".concat(Je,"-hidden")},kr,{onAppearPrepare:ta,onEnterPrepare:ta,removeOnLeave:st,forceRender:it}),function(ar,Pr){var jn=ar.className,$n=ar.style,ir=C()(Je,Te,Ln,jn);return E.createElement(Nt.a,{target:ur(),key:"popup",ref:yn,monitorWindowResize:!0,disabled:yr,align:dt,onAlign:Qn},E.createElement("div",{ref:Pr,className:ir,onMouseEnter:ln,onMouseLeave:On,onMouseDownCapture:Wt,onTouchStartCapture:qt,style:Object(y.a)(Object(y.a)({},$n),Wr)},Dn))})});Sr.displayName="PopupInner";var ia=Sr,Dr=E.forwardRef(function(ut,Ge){var Ye=ut.prefixCls,Je=ut.visible,Te=ut.zIndex,Ve=ut.children,Be=ut.mobile;Be=Be===void 0?{}:Be;var at=Be.popupClassName,nt=Be.popupStyle,st=Be.popupMotion,it=st===void 0?{}:st,dt=Be.popupRender,Dt=E.useRef();E.useImperativeHandle(Ge,function(){return{forceAlign:function(){},getElement:function(){return Dt.current}}});var Qt=Object(y.a)({zIndex:Te},nt),Bt=Ve;return E.Children.count(Ve)>1&&(Bt=E.createElement("div",{className:"".concat(Ye,"-content")},Ve)),dt&&(Bt=dt(Bt)),E.createElement(Ce,Object(w.a)({visible:Je,ref:Dt,removeOnLeave:!0},it),function($t,ln){var On=$t.className,Wt=$t.style,qt=C()(Ye,at,On);return E.createElement("div",{ref:ln,className:qt,style:Object(y.a)(Object(y.a)({},Wt),Qt)},Bt)})});Dr.displayName="MobilePopupInner";var na=Dr,Tr=["visible","mobile"],ma=E.forwardRef(function(ut,Ge){var Ye=ut.visible,Je=ut.mobile,Te=Object(P.a)(ut,Tr),Ve=Object(E.useState)(Ye),Be=Object(Y.a)(Ve,2),at=Be[0],nt=Be[1],st=Object(E.useState)(!1),it=Object(Y.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(y.a)(Object(y.a)({},Te),{},{visible:at});Object(E.useEffect)(function(){nt(Ye),Ye&&Je&&Dt(rt())},[Ye,Je]);var Bt=dt?E.createElement(na,Object(w.a)({},Qt,{mobile:Je,ref:Ge})):E.createElement(ia,Object(w.a)({},Qt,{ref:Ge}));return E.createElement("div",null,E.createElement(ht,Qt),Bt)});ma.displayName="Popup";var ha=ma,Oa=E.createContext(null),xa=Oa;function ka(){}function Ha(){return""}function Ia(ut){return ut?ut.ownerDocument:window.document}var Yr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function za(ut){var Ge=function(Ye){Object(l.a)(Te,Ye);var Je=Object(i.a)(Te);function Te(Ve){var Be;Object(B.a)(this,Te),Be=Je.call(this,Ve),Be.popupRef=E.createRef(),Be.triggerRef=E.createRef(),Be.attachId=void 0,Be.clickOutsideHandler=void 0,Be.touchOutsideHandler=void 0,Be.contextMenuOutsideHandler1=void 0,Be.contextMenuOutsideHandler2=void 0,Be.mouseDownTimeout=void 0,Be.focusTime=void 0,Be.preClickTime=void 0,Be.preTouchTime=void 0,Be.delayTimer=void 0,Be.hasPopupMouseDown=void 0,Be.onMouseEnter=function(nt){var st=Be.props.mouseEnterDelay;Be.fireEvents("onMouseEnter",nt),Be.delaySetPopupVisible(!0,st,st?null:nt)},Be.onMouseMove=function(nt){Be.fireEvents("onMouseMove",nt),Be.setPoint(nt)},Be.onMouseLeave=function(nt){Be.fireEvents("onMouseLeave",nt),Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onPopupMouseEnter=function(){Be.clearDelayTimer()},Be.onPopupMouseLeave=function(nt){var st;if(nt.relatedTarget&&!nt.relatedTarget.setTimeout&&Object(Xe.a)((st=Be.popupRef.current)===null||st===void 0?void 0:st.getElement(),nt.relatedTarget))return;Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onFocus=function(nt){Be.fireEvents("onFocus",nt),Be.clearDelayTimer(),Be.isFocusToShow()&&(Be.focusTime=Date.now(),Be.delaySetPopupVisible(!0,Be.props.focusDelay))},Be.onMouseDown=function(nt){Be.fireEvents("onMouseDown",nt),Be.preClickTime=Date.now()},Be.onTouchStart=function(nt){Be.fireEvents("onTouchStart",nt),Be.preTouchTime=Date.now()},Be.onBlur=function(nt){Be.fireEvents("onBlur",nt),Be.clearDelayTimer(),Be.isBlurToHide()&&Be.delaySetPopupVisible(!1,Be.props.blurDelay)},Be.onContextMenu=function(nt){nt.preventDefault(),Be.fireEvents("onContextMenu",nt),Be.setPopupVisible(!0,nt)},Be.onContextMenuClose=function(){Be.isContextMenuToShow()&&Be.close()},Be.onClick=function(nt){if(Be.fireEvents("onClick",nt),Be.focusTime){var st;if(Be.preClickTime&&Be.preTouchTime?st=Math.min(Be.preClickTime,Be.preTouchTime):Be.preClickTime?st=Be.preClickTime:Be.preTouchTime&&(st=Be.preTouchTime),Math.abs(st-Be.focusTime)<20)return;Be.focusTime=0}Be.preClickTime=0,Be.preTouchTime=0,Be.isClickToShow()&&(Be.isClickToHide()||Be.isBlurToHide())&&nt&&nt.preventDefault&&nt.preventDefault();var it=!Be.state.popupVisible;(Be.isClickToHide()&&!it||it&&Be.isClickToShow())&&Be.setPopupVisible(!Be.state.popupVisible,nt)},Be.onPopupMouseDown=function(){if(Be.hasPopupMouseDown=!0,clearTimeout(Be.mouseDownTimeout),Be.mouseDownTimeout=window.setTimeout(function(){Be.hasPopupMouseDown=!1},0),Be.context){var nt;(nt=Be.context).onPopupMouseDown.apply(nt,arguments)}},Be.onDocumentClick=function(nt){if(Be.props.mask&&!Be.props.maskClosable)return;var st=nt.target,it=Be.getRootDomNode(),dt=Be.getPopupDomNode();(!Object(Xe.a)(it,st)||Be.isContextMenuOnly())&&!Object(Xe.a)(dt,st)&&!Be.hasPopupMouseDown&&Be.close()},Be.getRootDomNode=function(){var nt=Be.props.getTriggerDOMNode;if(nt)return nt(Be.triggerRef.current);try{var st=Object(xt.a)(Be.triggerRef.current);if(st)return st}catch(it){}return le.a.findDOMNode(Object(A.a)(Be))},Be.getPopupClassNameFromAlign=function(nt){var st=[],it=Be.props,dt=it.popupPlacement,Dt=it.builtinPlacements,Qt=it.prefixCls,Bt=it.alignPoint,$t=it.getPopupClassNameFromAlign;return dt&&Dt&&st.push(lt(Dt,Qt,nt,Bt)),$t&&st.push($t(nt)),st.join(" ")},Be.getComponent=function(){var nt=Be.props,st=nt.prefixCls,it=nt.destroyPopupOnHide,dt=nt.popupClassName,Dt=nt.onPopupAlign,Qt=nt.popupMotion,Bt=nt.popupAnimation,$t=nt.popupTransitionName,ln=nt.popupStyle,On=nt.mask,Wt=nt.maskAnimation,qt=nt.maskTransitionName,yn=nt.maskMotion,Rn=nt.zIndex,tn=nt.popup,bn=nt.stretch,Ln=nt.alignPoint,Xn=nt.mobile,rn=nt.forceRender,hn=Be.state,An=hn.popupVisible,_n=hn.point,tr=Be.getPopupAlign(),cn={};return Be.isMouseEnterToShow()&&(cn.onMouseEnter=Be.onPopupMouseEnter),Be.isMouseLeaveToHide()&&(cn.onMouseLeave=Be.onPopupMouseLeave),cn.onMouseDown=Be.onPopupMouseDown,cn.onTouchStart=Be.onPopupMouseDown,E.createElement(ha,Object(w.a)({prefixCls:st,destroyPopupOnHide:it,visible:An,point:Ln&&_n,className:dt,align:tr,onAlign:Dt,animation:Bt,getClassNameFromAlign:Be.getPopupClassNameFromAlign},cn,{stretch:bn,getRootDomNode:Be.getRootDomNode,style:ln,mask:On,zIndex:Rn,transitionName:$t,maskAnimation:Wt,maskTransitionName:qt,maskMotion:yn,ref:Be.popupRef,motion:Qt,mobile:Xn,forceRender:rn}),typeof tn=="function"?tn():tn)},Be.attachParent=function(nt){De.a.cancel(Be.attachId);var st=Be.props,it=st.getPopupContainer,dt=st.getDocument,Dt=Be.getRootDomNode(),Qt;it?(Dt||it.length===0)&&(Qt=it(Dt)):Qt=dt(Be.getRootDomNode()).body,Qt?Qt.appendChild(nt):Be.attachId=Object(De.a)(function(){Be.attachParent(nt)})},Be.getContainer=function(){var nt=Be.props.getDocument,st=nt(Be.getRootDomNode()).createElement("div");return st.style.position="absolute",st.style.top="0",st.style.left="0",st.style.width="100%",Be.attachParent(st),st},Be.setPoint=function(nt){var st=Be.props.alignPoint;if(!st||!nt)return;Be.setState({point:{pageX:nt.pageX,pageY:nt.pageY}})},Be.handlePortalUpdate=function(){Be.state.prevPopupVisible!==Be.state.popupVisible&&Be.props.afterPopupVisibleChange(Be.state.popupVisible)},Be.triggerContextValue={onPopupMouseDown:Be.onPopupMouseDown};var at;return"popupVisible"in Ve?at=!!Ve.popupVisible:at=!!Ve.defaultPopupVisible,Be.state={prevPopupVisible:at,popupVisible:at},Yr.forEach(function(nt){Be["fire".concat(nt)]=function(st){Be.fireEvents(nt,st)}}),Be}return Object(b.a)(Te,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this.props,at=this.state;if(at.popupVisible){var nt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(nt=Be.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ze.a)(nt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nt=nt||Be.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ze.a)(nt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nt=nt||Be.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ze.a)(nt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ze.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),De.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Be;return((Be=this.popupRef.current)===null||Be===void 0?void 0:Be.getElement())||null}},{key:"getPopupAlign",value:function(){var Be=this.props,at=Be.popupPlacement,nt=Be.popupAlign,st=Be.builtinPlacements;return at&&st?ct(st,at,nt):nt}},{key:"setPopupVisible",value:function(Be,at){var nt=this.props.alignPoint,st=this.state.popupVisible;this.clearDelayTimer(),st!==Be&&("popupVisible"in this.props||this.setState({popupVisible:Be,prevPopupVisible:st}),this.props.onPopupVisibleChange(Be)),nt&&at&&Be&&this.setPoint(at)}},{key:"delaySetPopupVisible",value:function(Be,at,nt){var st=this,it=at*1e3;if(this.clearDelayTimer(),it){var dt=nt?{pageX:nt.pageX,pageY:nt.pageY}:null;this.delayTimer=window.setTimeout(function(){st.setPopupVisible(Be,dt),st.clearDelayTimer()},it)}else this.setPopupVisible(Be,nt)}},{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(Be){var at=this.props.children.props,nt=this.props;return at[Be]&&nt[Be]?this["fire".concat(Be)]:at[Be]||nt[Be]}},{key:"isClickToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("click")!==-1||nt.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Be=this.props.action;return Be==="contextMenu"||Be.length===1&&Be[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("contextMenu")!==-1||nt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Be=this.props,at=Be.action,nt=Be.hideAction;return at.indexOf("click")!==-1||nt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("hover")!==-1||nt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Be=this.props,at=Be.action,nt=Be.hideAction;return at.indexOf("hover")!==-1||nt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("focus")!==-1||nt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Be=this.props,at=Be.action,nt=Be.hideAction;return at.indexOf("focus")!==-1||nt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Be;(Be=this.popupRef.current)===null||Be===void 0||Be.forceAlign()}}},{key:"fireEvents",value:function(Be,at){var nt=this.props.children.props[Be];nt&&nt(at);var st=this.props[Be];st&&st(at)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Be=this.state.popupVisible,at=this.props,nt=at.children,st=at.forceRender,it=at.alignPoint,dt=at.className,Dt=at.autoDestroy,Qt=E.Children.only(nt),Bt={key:"trigger"};this.isContextMenuToShow()?Bt.onContextMenu=this.onContextMenu:Bt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Bt.onClick=this.onClick,Bt.onMouseDown=this.onMouseDown,Bt.onTouchStart=this.onTouchStart):(Bt.onClick=this.createTwoChains("onClick"),Bt.onMouseDown=this.createTwoChains("onMouseDown"),Bt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Bt.onMouseEnter=this.onMouseEnter,it&&(Bt.onMouseMove=this.onMouseMove)):Bt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Bt.onMouseLeave=this.onMouseLeave:Bt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Bt.onFocus=this.onFocus,Bt.onBlur=this.onBlur):(Bt.onFocus=this.createTwoChains("onFocus"),Bt.onBlur=this.createTwoChains("onBlur"));var $t=C()(Qt&&Qt.props&&Qt.props.className,dt);$t&&(Bt.className=$t);var ln=Object(y.a)({},Bt);Object(Ke.c)(Qt)&&(ln.ref=Object(Ke.a)(this.triggerRef,Qt.ref));var On=E.cloneElement(Qt,ln),Wt;return(Be||this.popupRef.current||st)&&(Wt=E.createElement(ut,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Be&&Dt&&(Wt=null),E.createElement(xa.Provider,{value:this.triggerContextValue},On,Wt)}}],[{key:"getDerivedStateFromProps",value:function(Be,at){var nt=Be.popupVisible,st={};return nt!==void 0&&at.popupVisible!==nt&&(st.popupVisible=nt,st.prevPopupVisible=at.popupVisible),st}}]),Te}(E.Component);return Ge.contextType=xa,Ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ha,getDocument:Ia,onPopupVisibleChange:ka,afterPopupVisibleChange:ka,onPopupAlign:ka,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ge}var Ga=za(yt.a),Da={adjustX:1,adjustY:1},si={topLeft:{points:["bl","tl"],overflow:Da,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Da,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Da,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Da,offset:[4,0]}},di={topLeft:{points:["bl","tl"],overflow:Da,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Da,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Da,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Da,offset:[4,0]}},Ma=si,zr=0,Ar={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Gr=function(Ge,Ye,Je){var Te=ce(Ye),Ve=Ge.getState();Ge.setState({defaultActiveFirst:Object(y.a)(Object(y.a)({},Ve.defaultActiveFirst),{},Object(ue.a)({},Te,Je))})},qr=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(Je){var Te;Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onDestroy=function(it){Te.props.onDestroy(it)},Te.onKeyDown=function(it){var dt=it.keyCode,Dt=Te.menuInstance,Qt=Te.props.store,Bt=Te.getVisible();if(dt===f.a.ENTER)return Te.onTitleClick(it),Gr(Qt,Te.props.eventKey,!0),!0;if(dt===f.a.RIGHT)return Bt?Dt.onKeyDown(it):(Te.triggerOpenChange(!0),Gr(Qt,Te.props.eventKey,!0)),!0;if(dt===f.a.LEFT){var $t;if(Bt)$t=Dt.onKeyDown(it);else return;return $t||(Te.triggerOpenChange(!1),$t=!0),$t}return Bt&&(dt===f.a.UP||dt===f.a.DOWN)?Dt.onKeyDown(it):void 0},Te.onOpenChange=function(it){Te.props.onOpenChange(it)},Te.onPopupVisibleChange=function(it){Te.triggerOpenChange(it,it?"mouseenter":"mouseleave")},Te.onMouseEnter=function(it){var dt=Te.props,Dt=dt.eventKey,Qt=dt.onMouseEnter,Bt=dt.store;Gr(Bt,Te.props.eventKey,!1),Qt({key:Dt,domEvent:it})},Te.onMouseLeave=function(it){var dt=Te.props,Dt=dt.parentMenu,Qt=dt.eventKey,Bt=dt.onMouseLeave;Dt.subMenuInstance=Object(A.a)(Te),Bt({key:Qt,domEvent:it})},Te.onTitleMouseEnter=function(it){var dt=Te.props,Dt=dt.eventKey,Qt=dt.onItemHover,Bt=dt.onTitleMouseEnter;Qt({key:Dt,hover:!0}),Bt({key:Dt,domEvent:it})},Te.onTitleMouseLeave=function(it){var dt=Te.props,Dt=dt.parentMenu,Qt=dt.eventKey,Bt=dt.onItemHover,$t=dt.onTitleMouseLeave;Dt.subMenuInstance=Object(A.a)(Te),Bt({key:Qt,hover:!1}),$t({key:Qt,domEvent:it})},Te.onTitleClick=function(it){var dt=Object(A.a)(Te),Dt=dt.props;if(Dt.onTitleClick({key:Dt.eventKey,domEvent:it}),Dt.triggerSubMenuAction==="hover")return;Te.triggerOpenChange(!Te.getVisible(),"click"),Gr(Dt.store,Te.props.eventKey,!1)},Te.onSubMenuClick=function(it){typeof Te.props.onClick=="function"&&Te.props.onClick(Te.addKeyPath(it))},Te.onSelect=function(it){Te.props.onSelect(it)},Te.onDeselect=function(it){Te.props.onDeselect(it)},Te.getPrefixCls=function(){return"".concat(Te.props.rootPrefixCls,"-submenu")},Te.getActiveClassName=function(){return"".concat(Te.getPrefixCls(),"-active")},Te.getDisabledClassName=function(){return"".concat(Te.getPrefixCls(),"-disabled")},Te.getSelectedClassName=function(){return"".concat(Te.getPrefixCls(),"-selected")},Te.getOpenClassName=function(){return"".concat(Te.props.rootPrefixCls,"-submenu-open")},Te.getVisible=function(){return Te.state.isOpen},Te.getMode=function(){return Te.state.mode},Te.saveMenuInstance=function(it){Te.menuInstance=it},Te.addKeyPath=function(it){return Object(y.a)(Object(y.a)({},it),{},{keyPath:(it.keyPath||[]).concat(Te.props.eventKey)})},Te.triggerOpenChange=function(it,dt){var Dt=Te.props.eventKey,Qt=function(){Te.onOpenChange({key:Dt,item:Object(A.a)(Te),trigger:dt,open:it})};dt==="mouseenter"?Te.mouseenterTimeout=setTimeout(function(){Qt()},0):Qt()},Te.isChildrenSelected=function(){var it={find:!1};return Fe(Te.props.children,Te.props.selectedKeys,it),it.find},Te.isInlineMode=function(){return Te.getMode()==="inline"},Te.adjustWidth=function(){if(!Te.subMenuTitle||!Te.menuInstance)return;var it=ne.findDOMNode(Te.menuInstance);if(it.offsetWidth>=Te.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(Te.subMenuTitle.offsetWidth,"px")},Te.saveSubMenuTitle=function(it){Te.subMenuTitle=it},Te.getBaseProps=function(){var it=Object(A.a)(Te),dt=it.props,Dt=Te.getMode();return{mode:Dt==="horizontal"?"vertical":Dt,visible:Te.getVisible(),level:dt.level+1,inlineIndent:dt.inlineIndent,focusable:!1,onClick:Te.onSubMenuClick,onSelect:Te.onSelect,onDeselect:Te.onDeselect,onDestroy:Te.onDestroy,selectedKeys:dt.selectedKeys,eventKey:"".concat(dt.eventKey,"-menu-"),openKeys:dt.openKeys,motion:dt.motion,onOpenChange:Te.onOpenChange,subMenuOpenDelay:dt.subMenuOpenDelay,parentMenu:Object(A.a)(Te),subMenuCloseDelay:dt.subMenuCloseDelay,forceSubMenuRender:dt.forceSubMenuRender,triggerSubMenuAction:dt.triggerSubMenuAction,builtinPlacements:dt.builtinPlacements,defaultActiveFirst:dt.store.getState().defaultActiveFirst[ce(dt.eventKey)],multiple:dt.multiple,prefixCls:dt.rootPrefixCls,id:Te.internalMenuId,manualRef:Te.saveMenuInstance,itemIcon:dt.itemIcon,expandIcon:dt.expandIcon,direction:dt.direction}},Te.getMotion=function(it,dt){var Dt=Object(A.a)(Te),Qt=Dt.haveRendered,Bt=Te.props,$t=Bt.motion,ln=Bt.rootPrefixCls,On=Object(y.a)(Object(y.a)({},$t),{},{leavedClassName:"".concat(ln,"-hidden"),removeOnLeave:!1,motionAppear:Qt||!dt||it!=="inline"});return On};var Ve=Je.store,Be=Je.eventKey,at=Ve.getState(),nt=at.defaultActiveFirst;Te.isRootMenu=!1;var st=!1;return nt&&(st=nt[Be]),Gr(Ve,Be,st),Te.state={mode:Je.mode,isOpen:Je.isOpen},Te}return Object(b.a)(Ye,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this,Ve=this.props,Be=Ve.mode,at=Ve.parentMenu,nt=Ve.manualRef,st=Ve.isOpen,it=function(){Te.setState({mode:Be,isOpen:st})},dt=st!==this.state.isOpen,Dt=Be!==this.state.mode;if((Dt||dt)&&(De.a.cancel(this.updateStateRaf),Dt?this.updateStateRaf=Object(De.a)(it):it()),nt&&nt(this),Be!=="horizontal"||!(at==null?void 0:at.isRootMenu)||!st)return;this.minWidthTimeout=setTimeout(function(){return Te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Te=this.props,Ve=Te.onDestroy,Be=Te.eventKey;Ve&&Ve(Be),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),De.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Te,Ve){var Be=this.getBaseProps();return E.createElement(Jo,Object(w.a)({},Be,{id:this.internalMenuId,className:Te,style:Ve}),this.props.children)}},{key:"renderChildren",value:function(){var Te=this,Ve=this.getBaseProps(),Be=Ve.mode,at=Ve.visible,nt=Ve.forceSubMenuRender,st=Ve.direction,it=this.getMotion(Be,at);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||at||nt,!this.haveOpened)return E.createElement("div",null);var dt=C()("".concat(Ve.prefixCls,"-sub"),Object(ue.a)({},"".concat(Ve.prefixCls,"-rtl"),st==="rtl"));return this.isInlineMode()?E.createElement(Ce,Object(w.a)({visible:Ve.visible,forceRender:nt},it),function(Dt){var Qt=Dt.className,Bt=Dt.style,$t=C()(dt,Qt);return Te.renderPopupMenu($t,Bt)}):this.renderPopupMenu(dt)}},{key:"render",value:function(){var Te,Ve,Be,at=Object(y.a)({},this.props),nt=this.getVisible(),st=this.getPrefixCls(),it=this.isInlineMode(),dt=this.getMode(),Dt=C()(st,"".concat(st,"-").concat(dt),(Te={},Object(ue.a)(Te,at.className,!!at.className),Object(ue.a)(Te,this.getOpenClassName(),nt),Object(ue.a)(Te,this.getActiveClassName(),at.active||nt&&!it),Object(ue.a)(Te,this.getDisabledClassName(),at.disabled),Object(ue.a)(Te,this.getSelectedClassName(),this.isChildrenSelected()),Te));this.internalMenuId||(at.eventKey?this.internalMenuId="".concat(at.eventKey,"$Menu"):(zr+=1,this.internalMenuId="$__$".concat(zr,"$Menu")));var Qt={},Bt={},$t={};at.disabled||(Qt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Bt={onClick:this.onTitleClick},$t={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ln={},On=at.direction,Wt=On==="rtl";it&&(Wt?ln.paddingRight=at.inlineIndent*at.level:ln.paddingLeft=at.inlineIndent*at.level);var qt={};this.getVisible()&&(qt={"aria-owns":this.internalMenuId});var yn=null;dt!=="horizontal"&&(yn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(yn=E.createElement(this.props.expandIcon,Object(y.a)({},this.props))));var Rn=E.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:ln,className:"".concat(st,"-title"),role:"button"},$t,Bt,{"aria-expanded":nt},qt,{"aria-haspopup":"true",title:typeof at.title=="string"?at.title:void 0}),at.title,yn||E.createElement("i",{className:"".concat(st,"-arrow")})),tn=this.renderChildren(),bn=((Ve=at.parentMenu)===null||Ve===void 0?void 0:Ve.isRootMenu)?at.parentMenu.props.getPopupContainer:function(ur){return ur.parentNode},Ln=Ar[dt],Xn=at.popupOffset?{offset:at.popupOffset}:{},rn=C()((Be={},Object(ue.a)(Be,at.popupClassName,at.popupClassName&&!it),Object(ue.a)(Be,"".concat(st,"-rtl"),Wt),Be)),hn=at.disabled,An=at.triggerSubMenuAction,_n=at.subMenuOpenDelay,tr=at.forceSubMenuRender,cn=at.subMenuCloseDelay,Fn=at.builtinPlacements;ke.forEach(function(ur){return delete at[ur]}),delete at.onClick;var Ir=Wt?Object(y.a)(Object(y.a)({},di),Fn):Object(y.a)(Object(y.a)({},si),Fn);delete at.direction;var hr=this.getBaseProps(),Br=it?null:this.getMotion(hr.mode,hr.visible);return E.createElement("li",Object(w.a)({},at,Qt,{className:Dt,role:"menuitem"}),E.createElement(Ga,{prefixCls:st,popupClassName:C()("".concat(st,"-popup"),rn),getPopupContainer:bn,builtinPlacements:Ir,popupPlacement:Ln,popupVisible:it?!1:nt,popupAlign:Xn,popup:it?null:tn,action:hn||it?[]:[An],mouseEnterDelay:_n,mouseLeaveDelay:cn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:tr,popupMotion:Br},Rn),it?tn:null)}}]),Ye}(E.Component);qr.defaultProps={onMouseEnter:fe,onMouseLeave:fe,onTitleMouseEnter:fe,onTitleMouseLeave:fe,onTitleClick:fe,manualRef:fe,mode:"vertical",title:""};var _a=Object(x.b)(function(ut,Ge){var Ye=ut.openKeys,Je=ut.activeKey,Te=ut.selectedKeys,Ve=Ge.eventKey,Be=Ge.subMenuKey;return{isOpen:Ye.indexOf(Ve)>-1,active:Je[Be]===Ve,selectedKeys:Te}})(qr);_a.isSubMenu=!0;var Jr=_a,ji="menuitem-overflowed",Fa=.5,vi=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ge.apply(this,arguments),Je.resizeObserver=null,Je.mutationObserver=null,Je.originalTotalWidth=0,Je.overflowedItems=[],Je.menuItemSizes=[],Je.cancelFrameId=null,Je.state={lastVisibleIndex:void 0},Je.childRef=E.createRef(),Je.getMenuItemNodes=function(){var Te=Je.props.prefixCls,Ve=Je.childRef.current;return Ve?[].slice.call(Ve.children).filter(function(Be){return Be.className.split(" ").indexOf("".concat(Te,"-overflowed-submenu"))<0}):[]},Je.getOverflowedSubMenuItem=function(Te,Ve,Be){var at=Je.props,nt=at.overflowedIndicator,st=at.level,it=at.mode,dt=at.prefixCls,Dt=at.theme;if(st!==1||it!=="horizontal")return null;var Qt=Je.props.children[0],Bt=Qt.props,$t=Bt.children,ln=Bt.title,On=Bt.style,Wt=Object(P.a)(Bt,["children","title","style"]),qt=Object(y.a)({},On),yn="".concat(Te,"-overflowed-indicator"),Rn="".concat(Te,"-overflowed-indicator");Ve.length===0&&Be!==!0?qt=Object(y.a)(Object(y.a)({},qt),{},{display:"none"}):Be&&(qt=Object(y.a)(Object(y.a)({},qt),{},{visibility:"hidden",position:"absolute"}),yn="".concat(yn,"-placeholder"),Rn="".concat(Rn,"-placeholder"));var tn=Dt?"".concat(dt,"-").concat(Dt):"",bn={};return ke.forEach(function(Ln){Wt[Ln]!==void 0&&(bn[Ln]=Wt[Ln])}),E.createElement(Jr,Object(w.a)({title:nt,className:"".concat(dt,"-overflowed-submenu"),popupClassName:tn},bn,{key:yn,eventKey:Rn,disabled:!1,style:qt}),Ve)},Je.setChildrenWidthAndResize=function(){if(Je.props.mode!=="horizontal")return;var Te=Je.childRef.current;if(!Te)return;var Ve=Te.children;if(!Ve||Ve.length===0)return;var Be=Te.children[Ve.length-1];F(Be,"display","inline-block");var at=Je.getMenuItemNodes(),nt=at.filter(function(st){return st.className.split(" ").indexOf(ji)>=0});nt.forEach(function(st){F(st,"display","inline-block")}),Je.menuItemSizes=at.map(function(st){return re(st,!0)}),nt.forEach(function(st){F(st,"display","none")}),Je.overflowedIndicatorWidth=re(Te.children[Te.children.length-1],!0),Je.originalTotalWidth=Je.menuItemSizes.reduce(function(st,it){return st+it},0),Je.handleResize(),F(Be,"display","none")},Je.handleResize=function(){if(Je.props.mode!=="horizontal")return;var Te=Je.childRef.current;if(!Te)return;var Ve=re(Te);Je.overflowedItems=[];var Be=0,at;Je.originalTotalWidth>Ve+Fa&&(at=-1,Je.menuItemSizes.forEach(function(nt){Be+=nt,Be+Je.overflowedIndicatorWidth<=Ve&&(at+=1)})),Je.setState({lastVisibleIndex:at})},Je}return Object(b.a)(Ye,[{key:"componentDidMount",value:function(){var Te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ve=this.childRef.current;if(!Ve)return;this.resizeObserver=new de.default(function(Be){Be.forEach(function(){var at=Te.cancelFrameId;cancelAnimationFrame(at),Te.cancelFrameId=requestAnimationFrame(Te.setChildrenWidthAndResize)})}),[].slice.call(Ve.children).concat(Ve).forEach(function(Be){Te.resizeObserver.observe(Be)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Te.resizeObserver.disconnect(),[].slice.call(Ve.children).concat(Ve).forEach(function(Be){Te.resizeObserver.observe(Be)}),Te.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ve,{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(Te){var Ve=this,Be=this.state.lastVisibleIndex;return(Te||[]).reduce(function(at,nt,st){var it=nt;if(Ve.props.mode==="horizontal"){var dt=Ve.getOverflowedSubMenuItem(nt.props.eventKey,[]);Be!==void 0&&Ve.props.className.indexOf("".concat(Ve.props.prefixCls,"-root"))!==-1&&(st>Be&&(it=E.cloneElement(nt,{style:{display:"none"},eventKey:"".concat(nt.props.eventKey,"-hidden"),className:"".concat(ji)})),st===Be+1&&(Ve.overflowedItems=Te.slice(Be+1).map(function(Qt){return E.cloneElement(Qt,{key:Qt.props.eventKey,mode:"vertical-left"})}),dt=Ve.getOverflowedSubMenuItem(nt.props.eventKey,Ve.overflowedItems)));var Dt=[].concat(Object(r.a)(at),[dt,it]);return st===Te.length-1&&Dt.push(Ve.getOverflowedSubMenuItem(nt.props.eventKey,[],!0)),Dt}return[].concat(Object(r.a)(at),[it])},[])}},{key:"render",value:function(){var Te=this.props,Ve=Te.visible,Be=Te.prefixCls,at=Te.overflowedIndicator,nt=Te.mode,st=Te.level,it=Te.tag,dt=Te.children,Dt=Te.theme,Qt=Object(P.a)(Te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Bt=it;return E.createElement(Bt,Object(w.a)({ref:this.childRef},Qt),this.renderChildren(dt))}}]),Ye}(E.Component);vi.defaultProps={tag:"div",className:""};var vo=vi;function Wo(ut){return ut.length?ut.every(function(Ge){return!!Ge.props.disabled}):!0}function Ca(ut,Ge,Ye){var Je=ut.getState();ut.setState({activeKey:Object(y.a)(Object(y.a)({},Je.activeKey),{},Object(ue.a)({},Ge,Ye))})}function Ro(ut){return ut.eventKey||"0-menu-"}function hi(ut,Ge){var Ye=Ge,Je=ut.children,Te=ut.eventKey;if(Ye){var Ve;if(Ie(Je,function(Be,at){Be&&Be.props&&!Be.props.disabled&&Ye===ge(Be,Te,at)&&(Ve=!0)}),Ve)return Ye}return Ye=null,ut.defaultActiveFirst&&Ie(Je,function(Be,at){!Ye&&Be&&!Be.props.disabled&&(Ye=ge(Be,Te,at))}),Ye}function os(ut){if(!ut)return;var Ge=this.instanceArray.indexOf(ut);Ge!==-1?this.instanceArray[Ge]=ut:this.instanceArray.push(ut)}var eo=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(Je){var Te;return Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onKeyDown=function(Ve,Be){var at=Ve.keyCode,nt;if(Te.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(nt=it.onKeyDown(Ve))}),nt)return 1;var st=null;return(at===f.a.UP||at===f.a.DOWN)&&(st=Te.step(at===f.a.UP?-1:1)),st?(Ve.preventDefault(),Ca(Te.props.store,Ro(Te.props),st.props.eventKey),typeof Be=="function"&&Be(st),1):void 0},Te.onItemHover=function(Ve){var Be=Ve.key,at=Ve.hover;Ca(Te.props.store,Ro(Te.props),at?Be:null)},Te.onDeselect=function(Ve){Te.props.onDeselect(Ve)},Te.onSelect=function(Ve){Te.props.onSelect(Ve)},Te.onClick=function(Ve){Te.props.onClick(Ve)},Te.onOpenChange=function(Ve){Te.props.onOpenChange(Ve)},Te.onDestroy=function(Ve){Te.props.onDestroy(Ve)},Te.getFlatInstanceArray=function(){return Te.instanceArray},Te.step=function(Ve){var Be=Te.getFlatInstanceArray(),at=Te.props.store.getState().activeKey[Ro(Te.props)],nt=Be.length;if(!nt)return null;Ve<0&&(Be=Be.concat().reverse());var st=-1;if(Be.every(function(Qt,Bt){return Qt&&Qt.props.eventKey===at?(st=Bt,!1):!0}),!Te.props.defaultActiveFirst&&st!==-1&&Wo(Be.slice(st,nt-1)))return;var it=(st+1)%nt,dt=it;do{var Dt=Be[dt];if(!Dt||Dt.props.disabled)dt=(dt+1)%nt;else return Dt}while(dt!==it);return null},Te.renderCommonMenuItem=function(Ve,Be,at){var nt=Te.props.store.getState(),st=Object(A.a)(Te),it=st.props,dt=ge(Ve,it.eventKey,Be),Dt=Ve.props;if(!Dt||typeof Ve.type=="string")return Ve;var Qt=dt===nt.activeKey,Bt=Object(y.a)(Object(y.a)({mode:Dt.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:Te.renderMenuItem,rootPrefixCls:it.prefixCls,index:Be,parentMenu:it.parentMenu,manualRef:Dt.disabled?void 0:Object(T.a)(Ve.ref,os.bind(Object(A.a)(Te))),eventKey:dt,active:!Dt.disabled&&Qt,multiple:it.multiple,onClick:function(ln){(Dt.onClick||fe)(ln),Te.onClick(ln)},onItemHover:Te.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:Te.onOpenChange,onDeselect:Te.onDeselect,onSelect:Te.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:Dt.itemIcon||Te.props.itemIcon,expandIcon:Dt.expandIcon||Te.props.expandIcon},at),{},{direction:it.direction});return(it.mode==="inline"||W())&&(Bt.triggerSubMenuAction="click"),E.cloneElement(Ve,Object(y.a)(Object(y.a)({},Bt),{},{key:dt||Be}))},Te.renderMenuItem=function(Ve,Be,at){if(!Ve)return null;var nt=Te.props.store.getState(),st={openKeys:nt.openKeys,selectedKeys:nt.selectedKeys,triggerSubMenuAction:Te.props.triggerSubMenuAction,subMenuKey:at};return Te.renderCommonMenuItem(Ve,Be,st)},Je.store.setState({activeKey:Object(y.a)(Object(y.a)({},Je.store.getState().activeKey),{},Object(ue.a)({},Je.eventKey,hi(Je,Je.activeKey)))}),Te.instanceArray=[],Te}return Object(b.a)(Ye,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Te){return this.props.visible||Te.visible||this.props.className!==Te.className||!R()(this.props.style,Te.style)}},{key:"componentDidUpdate",value:function(Te){var Ve=this.props,Be="activeKey"in Ve?Ve.activeKey:Ve.store.getState().activeKey[Ro(Ve)],at=hi(Ve,Be);if(at!==Be)Ca(Ve.store,Ro(Ve),at);else if("activeKey"in Te){var nt=hi(Te,Te.activeKey);at!==nt&&Ca(Ve.store,Ro(Ve),at)}}},{key:"render",value:function(){var Te=this,Ve=Object(w.a)({},this.props);this.instanceArray=[];var Be=C()(Ve.prefixCls,Ve.className,"".concat(Ve.prefixCls,"-").concat(Ve.mode)),at={className:Be,role:Ve.role||"menu"};Ve.id&&(at.id=Ve.id),Ve.focusable&&(at.tabIndex=0,at.onKeyDown=this.onKeyDown);var nt=Ve.prefixCls,st=Ve.eventKey,it=Ve.visible,dt=Ve.level,Dt=Ve.mode,Qt=Ve.overflowedIndicator,Bt=Ve.theme;return ke.forEach(function($t){return delete Ve[$t]}),delete Ve.onClick,E.createElement(vo,Object(w.a)({},Ve,{prefixCls:nt,mode:Dt,tag:"ul",level:dt,theme:Bt,visible:it,overflowedIndicator:Qt},at),Object(m.a)(Ve.children).map(function($t,ln){return Te.renderMenuItem($t,ln,st||"0-menu-")}))}}]),Ye}(E.Component);eo.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:fe};var ss=Object(x.b)()(eo),Jo=ss,Ui=M("Kwbf");function Zo(ut,Ge,Ye){var Je=ut.prefixCls,Te=ut.motion,Ve=ut.defaultMotions,Be=Ve===void 0?{}:Ve,at=ut.openAnimation,nt=ut.openTransitionName,st=Ge.switchingModeFromInline;if(Te)return Te;if(Object(k.a)(at)==="object"&&at)Object(Ui.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof at=="string")return{motionName:"".concat(Je,"-open-").concat(at)};if(nt)return{motionName:nt};var it=Be[Ye];return it||(st?null:Be.other)}var ps=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(Je){var Te;Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onSelect=function(at){var nt=Object(A.a)(Te),st=nt.props;if(st.selectable){var it=Te.store.getState(),dt=it.selectedKeys,Dt=at.key;st.multiple?dt=dt.concat([Dt]):dt=[Dt],"selectedKeys"in st||Te.store.setState({selectedKeys:dt}),st.onSelect(Object(y.a)(Object(y.a)({},at),{},{selectedKeys:dt}))}},Te.onClick=function(at){var nt=Te.getRealMenuMode(),st=Object(A.a)(Te),it=st.store,dt=st.props.onOpenChange;nt!=="inline"&&!("openKeys"in Te.props)&&(it.setState({openKeys:[]}),dt([])),Te.props.onClick(at)},Te.onKeyDown=function(at,nt){Te.innerMenu.getWrappedInstance().onKeyDown(at,nt)},Te.onOpenChange=function(at){var nt=Object(A.a)(Te),st=nt.props,it=Te.store.getState().openKeys.concat(),dt=!1,Dt=function(Bt){var $t=!1;if(Bt.open)$t=it.indexOf(Bt.key)===-1,$t&&it.push(Bt.key);else{var ln=it.indexOf(Bt.key);$t=ln!==-1,$t&&it.splice(ln,1)}dt=dt||$t};Array.isArray(at)?at.forEach(Dt):Dt(at),dt&&("openKeys"in Te.props||Te.store.setState({openKeys:it}),st.onOpenChange(it))},Te.onDeselect=function(at){var nt=Object(A.a)(Te),st=nt.props;if(st.selectable){var it=Te.store.getState().selectedKeys.concat(),dt=at.key,Dt=it.indexOf(dt);Dt!==-1&&it.splice(Dt,1),"selectedKeys"in st||Te.store.setState({selectedKeys:it}),st.onDeselect(Object(y.a)(Object(y.a)({},at),{},{selectedKeys:it}))}},Te.onMouseEnter=function(at){Te.restoreModeVerticalFromInline();var nt=Te.props.onMouseEnter;nt&&nt(at)},Te.onTransitionEnd=function(at){var nt=at.propertyName==="width"&&at.target===at.currentTarget,st=at.target.className,it=Object.prototype.toString.call(st)==="[object SVGAnimatedString]"?st.animVal:st,dt=at.propertyName==="font-size"&&it.indexOf("anticon")>=0;(nt||dt)&&Te.restoreModeVerticalFromInline()},Te.setInnerMenu=function(at){Te.innerMenu=at},Te.isRootMenu=!0;var Ve=Je.defaultSelectedKeys,Be=Je.defaultOpenKeys;return"selectedKeys"in Je&&(Ve=Je.selectedKeys||[]),"openKeys"in Je&&(Be=Je.openKeys||[]),Te.store=Object(x.c)({selectedKeys:Ve,openKeys:Be,activeKey:{"0-menu-":hi(Je,Je.activeKey)}}),Te.state={switchingModeFromInline:!1,prevProps:Je,inlineOpenKeys:[],store:Te.store},Te}return Object(b.a)(Ye,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Te){var Ve=this.props,Be=Ve.siderCollapsed,at=Ve.inlineCollapsed,nt=Ve.onOpenChange;(!Te.inlineCollapsed&&at||!Te.siderCollapsed&&Be)&&nt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Te=this.props.collapsedWidth,Ve=this.store,Be=this.prevOpenKeys,at=this.getInlineCollapsed()&&(Te===0||Te==="0"||Te==="0px");at?(this.prevOpenKeys=Ve.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Be&&(this.store.setState({openKeys:Be}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Te=this.props.mode,Ve=this.state.switchingModeFromInline,Be=this.getInlineCollapsed();return Ve&&Be?"inline":Be?"vertical":Te}},{key:"getInlineCollapsed",value:function(){var Te=this.props,Ve=Te.inlineCollapsed,Be=Te.siderCollapsed;return Be!==void 0?Be:Ve}},{key:"restoreModeVerticalFromInline",value:function(){var Te=this.state.switchingModeFromInline;Te&&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 Te=Object(y.a)({},Object(O.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ve=this.getRealMenuMode();return Te.className+=" ".concat(Te.prefixCls,"-root"),Te.direction==="rtl"&&(Te.className+=" ".concat(Te.prefixCls,"-rtl")),Te=Object(y.a)(Object(y.a)({},Te),{},{mode:Ve,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Zo(this.props,this.state,Ve)}),delete Te.openAnimation,delete Te.openTransitionName,E.createElement(x.a,{store:this.store},E.createElement(Jo,Object(w.a)({},Te,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ve){var Be=Ve.prevProps,at=Ve.store,nt=at.getState(),st={},it={prevProps:Te};return Be.mode==="inline"&&Te.mode!=="inline"&&(it.switchingModeFromInline=!0),"openKeys"in Te?st.openKeys=Te.openKeys||[]:((Te.inlineCollapsed&&!Be.inlineCollapsed||Te.siderCollapsed&&!Be.siderCollapsed)&&(it.switchingModeFromInline=!0,it.inlineOpenKeys=nt.openKeys,st.openKeys=[]),(!Te.inlineCollapsed&&Be.inlineCollapsed||!Te.siderCollapsed&&Be.siderCollapsed)&&(st.openKeys=Ve.inlineOpenKeys,it.inlineOpenKeys=[])),Object.keys(st).length&&at.setState(st),it}}]),Ye}(E.Component);ps.defaultProps={selectable:!0,onClick:fe,onSelect:fe,onOpenChange:fe,onDeselect:fe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:E.createElement("span",null,"\xB7\xB7\xB7")};var kn=ps,Cr=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ge.apply(this,arguments),Je.onKeyDown=function(Te){var Ve=Te.keyCode;return Ve===f.a.ENTER?(Je.onClick(Te),!0):void 0},Je.onMouseLeave=function(Te){var Ve=Je.props,Be=Ve.eventKey,at=Ve.onItemHover,nt=Ve.onMouseLeave;at({key:Be,hover:!1}),nt({key:Be,domEvent:Te})},Je.onMouseEnter=function(Te){var Ve=Je.props,Be=Ve.eventKey,at=Ve.onItemHover,nt=Ve.onMouseEnter;at({key:Be,hover:!0}),nt({key:Be,domEvent:Te})},Je.onClick=function(Te){var Ve=Je.props,Be=Ve.eventKey,at=Ve.multiple,nt=Ve.onClick,st=Ve.onSelect,it=Ve.onDeselect,dt=Ve.isSelected,Dt={key:Be,keyPath:[Be],item:Object(A.a)(Je),domEvent:Te};nt(Dt),at?dt?it(Dt):st(Dt):dt||st(Dt)},Je.saveNode=function(Te){Je.node=Te},Je}return Object(b.a)(Ye,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Te=this.props;Te.onDestroy&&Te.onDestroy(Te.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 Te,Ve=Object(y.a)({},this.props),Be=C()(this.getPrefixCls(),Ve.className,(Te={},Object(ue.a)(Te,this.getActiveClassName(),!Ve.disabled&&Ve.active),Object(ue.a)(Te,this.getSelectedClassName(),Ve.isSelected),Object(ue.a)(Te,this.getDisabledClassName(),Ve.disabled),Te)),at=Object(y.a)(Object(y.a)({},Ve.attribute),{},{title:typeof Ve.title=="string"?Ve.title:void 0,className:Be,role:Ve.role||"menuitem","aria-disabled":Ve.disabled});Ve.role==="option"?at=Object(y.a)(Object(y.a)({},at),{},{role:"option","aria-selected":Ve.isSelected}):(Ve.role===null||Ve.role==="none")&&(at.role="none");var nt={onClick:Ve.disabled?null:this.onClick,onMouseLeave:Ve.disabled?null:this.onMouseLeave,onMouseEnter:Ve.disabled?null:this.onMouseEnter},st=Object(y.a)({},Ve.style);Ve.mode==="inline"&&(Ve.direction==="rtl"?st.paddingRight=Ve.inlineIndent*Ve.level:st.paddingLeft=Ve.inlineIndent*Ve.level),ke.forEach(function(dt){return delete Ve[dt]}),delete Ve.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=E.createElement(this.props.itemIcon,this.props)),E.createElement("li",Object(w.a)({},Object(O.a)(Ve,["onClick","onMouseEnter","onMouseLeave","onSelect"]),at,nt,{style:st,ref:this.saveNode}),Ve.children,it)}}]),Ye}(E.Component);Cr.isMenuItem=!0,Cr.defaultProps={onSelect:fe,onMouseEnter:fe,onMouseLeave:fe,manualRef:fe};var gr=Object(x.b)(function(ut,Ge){var Ye=ut.activeKey,Je=ut.selectedKeys,Te=Ge.eventKey,Ve=Ge.subMenuKey;return{active:Ye[Ve]===Te,isSelected:Array.isArray(Je)?Je.indexOf(Te)!==-1:Je===Te}})(Cr),Vr=gr,Aa=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ge.apply(this,arguments),Je.renderInnerMenuItem=function(Te){var Ve=Je.props,Be=Ve.renderMenuItem,at=Ve.index;return Be(Te,at,Je.props.subMenuKey)},Je}return Object(b.a)(Ye,[{key:"render",value:function(){var Te=Object(w.a)({},this.props),Ve=Te.className,Be=Ve===void 0?"":Ve,at=Te.rootPrefixCls,nt="".concat(at,"-item-group-title"),st="".concat(at,"-item-group-list"),it=Te.title,dt=Te.children;return ke.forEach(function(Dt){return delete Te[Dt]}),delete Te.direction,E.createElement("li",Object(w.a)({},Te,{onClick:function(Qt){return Qt.stopPropagation()},className:"".concat(Be," ").concat(at,"-item-group")}),E.createElement("div",{className:nt,title:typeof it=="string"?it:void 0},it),E.createElement("ul",{className:st},E.Children.map(dt,this.renderInnerMenuItem)))}}]),Ye}(E.Component);Aa.isMenuItemGroup=!0,Aa.defaultProps={disabled:!0};var Sa=Aa,la=function(Ge){var Ye=Ge.className,Je=Ge.rootPrefixCls,Te=Ge.style;return E.createElement("li",{className:"".concat(Ye," ").concat(Je,"-item-divider"),style:Te})};la.defaultProps={disabled:!0,className:"",style:{}};var Ai=la,Hi=kn,ra=M("eDIo");function zo(ut,Ge){var Ye=ut.prefixCls,Je=ut.editable,Te=ut.locale,Ve=ut.style;return!Je||Je.showAdd===!1?null:E.createElement("button",{ref:Ge,type:"button",className:"".concat(Ye,"-nav-add"),style:Ve,"aria-label":(Te==null?void 0:Te.addAriaLabel)||"Add tab",onClick:function(at){Je.onEdit("add",{event:at})}},Je.addIcon||"+")}var fa=E.forwardRef(zo);function Si(ut,Ge){var Ye=ut.prefixCls,Je=ut.id,Te=ut.tabs,Ve=ut.locale,Be=ut.mobile,at=ut.moreIcon,nt=at===void 0?"More":at,st=ut.moreTransitionName,it=ut.style,dt=ut.className,Dt=ut.editable,Qt=ut.tabBarGutter,Bt=ut.rtl,$t=ut.onTabClick,ln=Object(E.useState)(!1),On=Object(Y.a)(ln,2),Wt=On[0],qt=On[1],yn=Object(E.useState)(null),Rn=Object(Y.a)(yn,2),tn=Rn[0],bn=Rn[1],Ln="".concat(Je,"-more-popup"),Xn="".concat(Ye,"-dropdown"),rn=tn!==null?"".concat(Ln,"-").concat(tn):null,hn=Ve==null?void 0:Ve.dropdownAriaLabel,An=E.createElement(Hi,{onClick:function(Br){var ur=Br.key,Fr=Br.domEvent;$t(ur,Fr),qt(!1)},id:Ln,tabIndex:-1,role:"listbox","aria-activedescendant":rn,selectedKeys:[tn],"aria-label":hn!==void 0?hn:"expanded dropdown"},Te.map(function(hr){return E.createElement(Vr,{key:hr.key,id:"".concat(Ln,"-").concat(hr.key),role:"option","aria-controls":Je&&"".concat(Je,"-panel-").concat(hr.key),disabled:hr.disabled},hr.tab)}));function _n(hr){for(var Br=Te.filter(function(ta){return!ta.disabled}),ur=Br.findIndex(function(ta){return ta.key===tn})||0,Fr=Br.length,Qn=0;QnFn?(tr=An,Ln.current="x"):(tr=_n,Ln.current="y");var Ir=Date.now();Ir-tn.current>100&&(bn.current=!1),(Ge(-tr,-tr)||bn.current)&&(hn.preventDefault(),bn.current=!0),tn.current=Ir}var rn=Object(E.useRef)(null);rn.current={onTouchStart:qt,onTouchMove:yn,onTouchEnd:Rn,onWheel:Xn},E.useEffect(function(){function hn(cn){rn.current.onTouchStart(cn)}function An(cn){rn.current.onTouchMove(cn)}function _n(cn){rn.current.onTouchEnd(cn)}function tr(cn){rn.current.onWheel(cn)}return document.addEventListener("touchmove",An,{passive:!1}),document.addEventListener("touchend",_n,{passive:!1}),ut.current.addEventListener("touchstart",hn,{passive:!1}),ut.current.addEventListener("wheel",tr),function(){document.removeEventListener("touchmove",An),document.removeEventListener("touchend",_n)}},[])}function Is(){var ut=Object(E.useRef)(new Map);function Ge(Je){return ut.current.has(Je)||ut.current.set(Je,E.createRef()),ut.current.get(Je)}function Ye(Je){ut.current.delete(Je)}return[Ge,Ye]}function xs(ut,Ge){var Ye=E.useRef(ut),Je=E.useState({}),Te=Object(Y.a)(Je,2),Ve=Te[1];function Be(at){var nt=typeof at=="function"?at(Ye.current):at;nt!==Ye.current&&Ge(nt,Ye.current),Ye.current=nt,Ve({})}return[Ye.current,Be]}var js=function(Ge){var Ye=Ge.position,Je=Ge.prefixCls,Te=Ge.extra;if(!Te)return null;var Ve,Be=Te;return Ye==="right"&&(Ve=Be.right||!Be.left&&Be||null),Ye==="left"&&(Ve=Be.left||null),Ve?E.createElement("div",{className:"".concat(Je,"-extra-content")},Ve):null};function Zs(ut,Ge){var Ye,Je=E.useContext(Gi),Te=Je.prefixCls,Ve=Je.tabs,Be=ut.className,at=ut.style,nt=ut.id,st=ut.animated,it=ut.activeKey,dt=ut.rtl,Dt=ut.extra,Qt=ut.editable,Bt=ut.locale,$t=ut.tabPosition,ln=ut.tabBarGutter,On=ut.children,Wt=ut.onTabClick,qt=ut.onTabScroll,yn=Object(E.useRef)(),Rn=Object(E.useRef)(),tn=Object(E.useRef)(),bn=Object(E.useRef)(),Ln=Is(),Xn=Object(Y.a)(Ln,2),rn=Xn[0],hn=Xn[1],An=$t==="top"||$t==="bottom",_n=xs(0,function(ca,Ur){An&&qt&&qt({direction:ca>Ur?"left":"right"})}),tr=Object(Y.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=xs(0,function(ca,Ur){!An&&qt&&qt({direction:ca>Ur?"top":"bottom"})}),hr=Object(Y.a)(Ir,2),Br=hr[0],ur=hr[1],Fr=Object(E.useState)(0),Qn=Object(Y.a)(Fr,2),kr=Qn[0],ta=Qn[1],Wr=Object(E.useState)(0),yr=Object(Y.a)(Wr,2),Dn=yr[0],ar=yr[1],Pr=Object(E.useState)(0),jn=Object(Y.a)(Pr,2),$n=jn[0],ir=jn[1],Zn=Object(E.useState)(0),zn=Object(Y.a)(Zn,2),fn=zn[0],on=zn[1],Gn=Object(E.useState)(null),Jn=Object(Y.a)(Gn,2),Sn=Jn[0],mr=Jn[1],Kr=Object(E.useState)(null),Va=Object(Y.a)(Kr,2),Ra=Va[0],aa=Va[1],gi=Object(E.useState)(0),ti=Object(Y.a)(gi,2),Ka=ti[0],no=ti[1],ro=Object(E.useState)(0),Di=Object(Y.a)(ro,2),Io=Di[0],Mo=Di[1],ao=o(new Map),Ii=Object(Y.a)(ao,2),ki=Ii[0],So=Ii[1],co=g(Ve,ki,kr),ho="".concat(Te,"-nav-operations-hidden"),Qi=0,Mi=0;An?dt?(Qi=0,Mi=Math.max(0,kr-Sn)):(Qi=Math.min(0,Sn-kr),Mi=0):(Qi=Math.min(0,Ra-Dn),Mi=0);function Vi(ca){return caMi?[Mi,!1]:[ca,!0]}var Ki=Object(E.useRef)(),go=Object(E.useState)(),Fi=Object(Y.a)(go,2),yo=Fi[0],Xa=Fi[1];function io(){Xa(Date.now())}function Lo(){window.clearTimeout(Ki.current)}us(yn,function(ca,Ur){var ui=!1;function wa(To,Zi){To(function(Eo){var oo=Vi(Eo+Zi),dn=Object(Y.a)(oo,2),Uo=dn[0],Ss=dn[1];return ui=Ss,Uo})}if(An){if(Sn>=kr)return ui;wa(Fn,ca)}else{if(Ra>=Dn)return ui;wa(ur,Ur)}return Lo(),io(),ui}),Object(E.useEffect)(function(){return Lo(),yo&&(Ki.current=window.setTimeout(function(){Xa(0)},100)),Lo},[yo]);function Wi(){var ca=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it,Ur=co.get(ca);if(!Ur)return;if(An){var ui=cn;dt?Ur.rightcn+Sn&&(ui=Ur.right+Ur.width-Sn):Ur.left<-cn?ui=-Ur.left:Ur.left+Ur.width>-cn+Sn&&(ui=-(Ur.left+Ur.width-Sn)),ur(0),Fn(Vi(ui)[0])}else{var wa=Br;Ur.top<-Br?wa=-Ur.top:Ur.top+Ur.height>-Br+Ra&&(wa=-(Ur.top+Ur.height-Ra)),Fn(0),ur(Vi(wa)[0])}}var Ti=S(co,{width:Sn,height:Ra,left:cn,top:Br},{width:$n,height:fn},{width:Ka,height:Io},Object(y.a)(Object(y.a)({},ut),{},{tabs:Ve})),Ao=Object(Y.a)(Ti,2),qo=Ao[0],$o=Ao[1],Go=Ve.map(function(ca){var Ur=ca.key;return E.createElement(a,{id:nt,prefixCls:Te,key:Ur,rtl:dt,tab:ca,closable:ca.closable,editable:Qt,active:Ur===it,tabPosition:$t,tabBarGutter:ln,renderWrapper:On,removeAriaLabel:Bt==null?void 0:Bt.removeAriaLabel,ref:rn(Ur),onClick:function(wa){Wt(Ur,wa)},onRemove:function(){hn(Ur)},onFocus:function(){Wi(Ur),io(),dt||(yn.current.scrollLeft=0),yn.current.scrollTop=0}})}),Xi=u(function(){var ca,Ur,ui,wa,To,Zi,Eo,oo,dn,Uo=((ca=yn.current)===null||ca===void 0?void 0:ca.offsetWidth)||0,Ss=((Ur=yn.current)===null||Ur===void 0?void 0:Ur.offsetHeight)||0,gs=((ui=bn.current)===null||ui===void 0?void 0:ui.offsetWidth)||0,Za=((wa=bn.current)===null||wa===void 0?void 0:wa.offsetHeight)||0,Tn=((To=tn.current)===null||To===void 0?void 0:To.offsetWidth)||0,Lt=((Zi=tn.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0;mr(Uo),aa(Ss),no(gs),Mo(Za);var Yt=(((Eo=Rn.current)===null||Eo===void 0?void 0:Eo.offsetWidth)||0)-gs,Cn=(((oo=Rn.current)===null||oo===void 0?void 0:oo.offsetHeight)||0)-Za;ta(Yt),ar(Cn);var Vt=(dn=tn.current)===null||dn===void 0?void 0:dn.className.includes(ho);ir(Yt-(Vt?0:Tn)),on(Cn-(Vt?0:Lt)),So(function(){var er=new Map;return Ve.forEach(function(lr){var fr=lr.key,$r=rn(fr).current;$r&&er.set(fr,{width:$r.offsetWidth,height:$r.offsetHeight,left:$r.offsetLeft,top:$r.offsetTop})}),er})}),es=Ve.slice(0,qo),yi=Ve.slice($o+1),Ua=[].concat(Object(r.a)(es),Object(r.a)(yi)),li=Object(E.useState)(),Na=Object(Y.a)(li,2),Yi=Na[0],bo=Na[1],Li=co.get(it),Vo=Object(E.useRef)();function Po(){e.a.cancel(Vo.current)}Object(E.useEffect)(function(){var ca={};return Li&&(An?(dt?ca.right=Li.right:ca.left=Li.left,ca.width=Li.width):(ca.top=Li.top,ca.height=Li.height)),Po(),Vo.current=e()(function(){bo(ca)}),Po},[Li,An,dt]),Object(E.useEffect)(function(){Wi()},[it,Li,co,An]),Object(E.useEffect)(function(){Xi()},[dt,ln,it,Ve.map(function(ca){return ca.key}).join("_")]);var Xo=!!Ua.length,Bi="".concat(Te,"-nav-wrap"),In,Ji,vs,ts;return An?dt?(Ji=cn>0,In=cn+Sn` "'(~:]+/,o=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,a=" ";function h(U,K,G){return K.f=K.inline=G,G(U,K)}function g(U,K,G){return K.f=K.block=G,G(U,K)}function p(U){return!U||!/\S/.test(U.string)}function S(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==B){var K=E;if(!K){var G=ue.innerMode(y,U.htmlState);K=G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText}K&&(U.f=i,U.block=w,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function w(U,K){var G=U.column()===K.indentation,N=p(K.prevLine.stream),Q=K.indentedCode,X=K.prevLine.hr,te=K.list!==!1,oe=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var me=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,te)){for(K.list=null;me=4&&(Q||K.prevLine.fencedCodeEnd||K.prevLine.header||N))return U.skipToEnd(),K.indentedCode=!0,C.code;if(U.eatSpace())return null;if(G&&K.indentation<=oe&&(Ae=U.match(e))&&Ae[1].length<=6)return K.quote=0,K.header=Ae[1].length,K.thisLine.header=!0,P.highlightFormatting&&(K.formatting="header"),K.f=K.inline,A(K);if(K.indentation<=oe&&U.eat(">"))return K.quote=G?1:K.quote+1,P.highlightFormatting&&(K.formatting="quote"),U.eatSpace(),A(K);if(!_e&&!K.setext&&G&&K.indentation<=oe&&(Ae=U.match(r))){var Ee=Ae[1]?"ol":"ul";return K.indentation=me+U.current().length,K.list=!0,K.quote=0,K.listStack.push(K.indentation),K.em=!1,K.strong=!1,K.code=!1,K.strikethrough=!1,P.taskLists&&U.match(n,!1)&&(K.taskList=!0),K.f=K.inline,P.highlightFormatting&&(K.formatting=["list","list-"+Ee]),A(K)}else{if(G&&K.indentation<=oe&&(Ae=U.match(o,!0)))return K.quote=0,K.fencedEndRE=new RegExp(Ae[1]+"+ *$"),K.localMode=P.fencedCodeBlockHighlighting&&_(Ae[2]||P.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=ue.startState(K.localMode)),K.f=K.block=b,P.highlightFormatting&&(K.formatting="code-block"),K.code=-1,A(K);if(K.setext||(!se||!te)&&!K.quote&&K.list===!1&&!K.code&&!_e&&!f.test(U.string)&&(Ae=U.lookAhead(1))&&(Ae=Ae.match(s)))return K.setext?(K.header=K.setext,K.setext=0,U.skipToEnd(),P.highlightFormatting&&(K.formatting="header")):(K.header=Ae[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,A(K);if(_e)return U.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,C.hr;if(U.peek()==="[")return h(U,K,R)}return h(U,K,K.inline)}function B(U,K){var G=y.token(U,K.htmlState);if(!E){var N=ue.innerMode(y,K.htmlState);(N.mode.name=="xml"&&N.state.tagStart===null&&!N.state.context&&N.state.tokenize.isInText||K.md_inside&&U.current().indexOf(">")>-1)&&(K.f=i,K.block=w,K.htmlState=null)}return G}function b(U,K){var G=K.listStack[K.listStack.length-1]||0,N=K.indentation=U.quote?K.push(C.formatting+"-"+U.formatting[G]+"-"+U.quote):K.push("error"))}if(U.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(U.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(U.linkHref?K.push(C.linkHref,"url"):(U.strong&&K.push(C.strong),U.em&&K.push(C.em),U.strikethrough&&K.push(C.strikethrough),U.emoji&&K.push(C.emoji),U.linkText&&K.push(C.linkText),U.code&&K.push(C.code),U.image&&K.push(C.image),U.imageAltText&&K.push(C.imageAltText,"link"),U.imageMarker&&K.push(C.imageMarker)),U.header&&K.push(C.header,C.header+"-"+U.header),U.quote&&(K.push(C.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=U.quote?K.push(C.quote+"-"+U.quote):K.push(C.quote+"-"+P.maxBlockquoteDepth)),U.list!==!1){var N=(U.listStack.length-1)%3;N?N===1?K.push(C.list2):K.push(C.list3):K.push(C.list1)}return U.trailingSpaceNewLine?K.push("trailing-space-new-line"):U.trailingSpace&&K.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function l(U,K){return U.match(u,!0)?A(K):void 0}function i(U,K){var G=K.text(U,K);if(typeof G!="undefined")return G;if(K.list)return K.list=null,A(K);if(K.taskList){var N=U.match(n,!0)[1]===" ";return N?K.taskOpen=!0:K.taskClosed=!0,P.highlightFormatting&&(K.formatting="task"),K.taskList=!1,A(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&U.match(/^#+$/,!0))return P.highlightFormatting&&(K.formatting="header"),A(K);var Q=U.next();if(K.linkTitle){K.linkTitle=!1;var X=Q;Q==="("&&(X=")"),X=(X+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var te="^\\s*(?:[^"+X+"\\\\]+|\\\\\\\\|\\\\.)"+X;if(U.match(new RegExp(te),!0))return C.linkHref}if(Q==="`"){var oe=K.formatting;P.highlightFormatting&&(K.formatting="code"),U.eatWhile("`");var me=U.current().length;if(K.code==0&&(!K.quote||me==1))return K.code=me,A(K);if(me==K.code){var se=A(K);return K.code=0,se}else return K.formatting=oe,A(K)}else if(K.code)return A(K);if(Q==="\\"&&(U.next(),P.highlightFormatting)){var _e=A(K),Ae=C.formatting+"-escape";return _e?_e+" "+Ae:Ae}if(Q==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,P.highlightFormatting&&(K.formatting="image"),A(K);if(Q==="["&&K.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,P.highlightFormatting&&(K.formatting="image"),A(K);if(Q==="]"&&K.imageAltText){P.highlightFormatting&&(K.formatting="image");var _e=A(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=O,_e}if(Q==="["&&!K.image)return K.linkText&&U.match(/^.*?\]/)||(K.linkText=!0,P.highlightFormatting&&(K.formatting="link")),A(K);if(Q==="]"&&K.linkText){P.highlightFormatting&&(K.formatting="link");var _e=A(K);return K.linkText=!1,K.inline=K.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?O:i,_e}if(Q==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=x,P.highlightFormatting&&(K.formatting="link");var _e=A(K);return _e?_e+=" ":_e="",_e+C.linkInline}if(Q==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=x,P.highlightFormatting&&(K.formatting="link");var _e=A(K);return _e?_e+=" ":_e="",_e+C.linkEmail}if(P.xml&&Q==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ee=U.string.indexOf(">",U.pos);if(Ee!=-1){var pe=U.string.substring(U.start,Ee);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pe)&&(K.md_inside=!0)}return U.backUp(1),K.htmlState=ue.startState(y),g(U,K,B)}if(P.xml&&Q==="<"&&U.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(Q==="*"||Q==="_"){for(var he=1,ie=U.pos==1?" ":U.string.charAt(U.pos-2);he<3&&U.eat(Q);)he++;var fe=U.peek()||" ",ge=!/\s/.test(fe)&&(!d.test(fe)||/\s/.test(ie)||d.test(ie)),ce=!/\s/.test(ie)&&(!d.test(ie)||/\s/.test(fe)||d.test(fe)),Ie=null,Fe=null;if(he%2&&(!K.em&&ge&&(Q==="*"||!ce||d.test(ie))?Ie=!0:K.em==Q&&ce&&(Q==="*"||!ge||d.test(fe))&&(Ie=!1)),he>1&&(!K.strong&&ge&&(Q==="*"||!ce||d.test(ie))?Fe=!0:K.strong==Q&&ce&&(Q==="*"||!ge||d.test(fe))&&(Fe=!1)),Fe!=null||Ie!=null){P.highlightFormatting&&(K.formatting=Ie==null?"strong":Fe==null?"em":"strong em"),Ie===!0&&(K.em=Q),Fe===!0&&(K.strong=Q);var se=A(K);return Ie===!1&&(K.em=!1),Fe===!1&&(K.strong=!1),se}}else if(Q===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return A(K);U.backUp(1)}if(P.strikethrough){if(Q==="~"&&U.eatWhile(Q)){if(K.strikethrough){P.highlightFormatting&&(K.formatting="strikethrough");var se=A(K);return K.strikethrough=!1,se}else if(U.match(/^[^\s]/,!1))return K.strikethrough=!0,P.highlightFormatting&&(K.formatting="strikethrough"),A(K)}else if(Q===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return A(K);U.backUp(2)}}if(P.emoji&&Q===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,P.highlightFormatting&&(K.formatting="emoji");var ke=A(K);return K.emoji=!1,ke}return Q===" "&&(U.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),A(K)}function x(U,K){var G=U.next();if(G===">"){K.f=K.inline=i,P.highlightFormatting&&(K.formatting="link");var N=A(K);return N?N+=" ":N="",N+C.linkInline}return U.match(/^[^>]+/,!0),C.linkInline}function O(U,K){if(U.eatSpace())return null;var G=U.next();return G==="("||G==="["?(K.f=K.inline=D(G==="("?")":"]"),P.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,A(K)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(U){return function(K,G){var N=K.next();if(N===U){G.f=G.inline=i,P.highlightFormatting&&(G.formatting="link-string");var Q=A(G);return G.linkHref=!1,Q}return K.match(T[U]),G.linkHref=!0,A(G)}}function R(U,K){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=k,U.next(),P.highlightFormatting&&(K.formatting="link"),K.linkText=!0,A(K)):h(U,K,i)}function k(U,K){if(U.match(/^\]:/,!0)){K.f=K.inline=H,P.highlightFormatting&&(K.formatting="link");var G=A(K);return K.linkText=!1,G}return U.match(/^([^\]\\]|\\.)+/,!0),C.linkText}function H(U,K){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?K.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=i,C.linkHref+" url")}var J={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:i,text:l,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&&ue.copyState(y,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?ue.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,K){if(K.formatting=!1,U!=K.thisLine.stream){if(K.header=0,K.hr=!1,U.match(/^\s*$/,!0))return S(K),null;if(K.prevLine=K.thisLine,K.thisLine={stream:U},K.taskList=!1,K.trailingSpace=0,K.trailingSpaceNewLine=!1,!K.localState&&(K.f=K.block,K.f!=B)){var G=U.match(/^\s*/,!0)[0].replace(/\t/g,a).length;if(K.indentation=G,K.indentationDiff=null,G>0)return null}}return K.f(U,K)},innerMode:function(U){return U.block==B?{state:U.htmlState,mode:y}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:J}},indent:function(U,K,G){return U.block==B&&y.indent?y.indent(U.htmlState,K,G):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,K,G):ue.Pass},blankLine:S,getType:A,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return J},"xml"),ue.defineMIME("text/markdown","markdown"),ue.defineMIME("text/x-markdown","markdown")})},loD1:function(Ze,we){function M(ue,Y,P,y,E,_,C){if(E===0)return!1;var m=E,c=0,r=ue;if(C>Y+m&&C>y+m||Cue+m&&_>P+m||_=r.x&&m<=r.x+r.width&&c>=r.y&&c<=r.y+r.height},clone:function(){return new _(this.x,this.y,this.width,this.height)},copy:function(m){this.x=m.x,this.y=m.y,this.width=m.width,this.height=m.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},_.create=function(m){return new _(m.x,m.y,m.width,m.height)};var C=_;Ze.exports=C},mLcG:function(Ze,we){var M=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(ue){setTimeout(ue,16)};Ze.exports=M},mOS8:function(Ze,we,M){Ze.exports=M.p+"static/403Qrcode.6c17b6f4.png"},n1HI:function(Ze,we,M){var ue=M("hX1E"),Y=ue.normalizeRadian,P=Math.PI*2;function y(E,_,C,m,c,r,n,e,s){if(n===0)return!1;var u=n;e-=E,s-=_;var o=Math.sqrt(e*e+s*s);if(o-u>C||o+uc&&(c+=P);var d=Math.atan2(s,e);return d<0&&(d+=P),d>=m&&d<=c||d+P>=m&&d+P<=c}we.containStroke=y},n6Mw:function(Ze,we,M){var ue=M("SrGk"),Y=M("bYtY"),P=M("Fofx");function y(_,C){ue.call(this,_,C,"clipPath","__clippath_in_use__")}Y.inherits(y,ue),y.prototype.update=function(_){var C=this.getSvgElement(_);C&&this.updateDom(C,_.__clipPaths,!1);var m=this.getTextSvgElement(_);m&&this.updateDom(m,_.__clipPaths,!0),this.markUsed(_)},y.prototype.updateDom=function(_,C,m){if(C&&C.length>0){var c=this.getDefs(!0),r=C[0],n,e,s=m?"_textDom":"_dom";r[s]?(e=r[s].getAttribute("id"),n=r[s],c.contains(n)||c.appendChild(n)):(e="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",e),c.appendChild(n),r[s]=n);var u=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!m){var o=Array.prototype.slice.call(r.transform);P.mul(r.transform,r.parent.invTransform,r.transform),u.brush(r),r.transform=o}else u.brush(r);var f=this.getSvgElement(r);n.innerHTML="",n.appendChild(f.cloneNode()),_.setAttribute("clip-path","url(#"+e+")"),C.length>1&&this.updateDom(n,C.slice(1),m)}else _&&_.setAttribute("clip-path","none")},y.prototype.markUsed=function(_){var C=this;_.__clipPaths&&Y.each(_.__clipPaths,function(m){m._dom&&ue.prototype.markUsed.call(C,m._dom),m._textDom&&ue.prototype.markUsed.call(C,m._textDom)})};var E=y;Ze.exports=E},n6Qo:function(Ze,we,M){"use strict";M.d(we,"a",function(){return m});var ue=M("q1tI"),Y=M("biw7"),P=M("fyJ8");function y(c){var r=c.className,n=c.index,e=c.children,s=c.colSpan,u=c.rowSpan,o=ue.useContext(Y.a),f=o.prefixCls,d=o.fixedInfoList,a=d[n];return ue.createElement(P.a,Object.assign({className:r,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:e,props:{colSpan:s,rowSpan:u}}}},a))}function E(c){return ue.createElement("tr",Object.assign({},c))}function _(c){var r=c.children,n=ue.useContext(Y.a),e=n.prefixCls;return ue.createElement("tfoot",{className:"".concat(e,"-summary")},r)}var C=we.b=_,m={Cell:y,Row:E}},nCxF:function(Ze,we,M){var ue=M("QBsz"),Y=ue.min,P=ue.max,y=ue.scale,E=ue.distance,_=ue.add,C=ue.clone,m=ue.sub;function c(r,n,e,s){var u=[],o=[],f=[],d=[],a,h,g,p;if(s){g=[Infinity,Infinity],p=[-Infinity,-Infinity];for(var S=0,w=r.length;S=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function r(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function n(d){for(;;){var a=d.text.indexOf(">",d.ch);if(a==-1){if(c(d))continue;return}if(!m(d,a+1)){d.ch=a+1;continue}var h=d.text.lastIndexOf("/",a),g=h>-1&&!/\S/.test(d.text.slice(h+1,a));return d.ch=a+1,g?"selfClose":"regular"}}function e(d){for(;;){var a=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(a==-1){if(r(d))continue;return}if(!m(d,a+1)){d.ch=a;continue}_.lastIndex=a,d.ch=a;var h=_.exec(d.text);if(h&&h.index==a)return h}}function s(d){for(;;){_.lastIndex=d.ch;var a=_.exec(d.text);if(!a){if(c(d))continue;return}if(!m(d,a.index+1)){d.ch=a.index+1;continue}return d.ch=a.index+a[0].length,a}}function u(d){for(;;){var a=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(a==-1){if(r(d))continue;return}if(!m(d,a+1)){d.ch=a;continue}var h=d.text.lastIndexOf("/",a),g=h>-1&&!/\S/.test(d.text.slice(h+1,a));return d.ch=a+1,g?"selfClose":"regular"}}function o(d,a){for(var h=[];;){var g=s(d),p,S=d.line,w=d.ch-(g?g[0].length:0);if(!g||!(p=n(d)))return;if(p=="selfClose")continue;if(g[1]){for(var B=h.length-1;B>=0;--B)if(h[B]==g[2]){h.length=B;break}if(B<0&&(!a||a==g[2]))return{tag:g[2],from:Y(S,w),to:Y(d.line,d.ch)}}else h.push(g[2])}}function f(d,a){for(var h=[];;){var g=u(d);if(!g)return;if(g=="selfClose"){e(d);continue}var p=d.line,S=d.ch,w=e(d);if(!w)return;if(w[1])h.push(w[2]);else{for(var B=h.length-1;B>=0;--B)if(h[B]==w[2]){h.length=B;break}if(B<0&&(!a||a==w[2]))return{tag:w[2],from:Y(d.line,d.ch),to:Y(p,S)}}}}ue.registerHelper("fold","xml",function(d,a){for(var h=new C(d,a.line,0);;){var g=s(h);if(!g||h.line!=a.line)return;var p=n(h);if(!p)return;if(!g[1]&&p!="selfClose"){var S=Y(h.line,h.ch),w=o(h,g[2]);return w&&P(w.from,S)>0?{from:S,to:w.from}:null}}}),ue.findMatchingTag=function(d,a,h){var g=new C(d,a.line,a.ch,h);if(g.text.indexOf(">")==-1&&g.text.indexOf("<")==-1)return;var p=n(g),S=p&&Y(g.line,g.ch),w=p&&e(g);if(!p||!w||P(g,a)>0)return;var B={from:Y(g.line,g.ch),to:S,tag:w[2]};return p=="selfClose"?{open:B,close:null,at:"open"}:w[1]?{open:f(g,w[2]),close:B,at:"close"}:(g=new C(d,S.line,S.ch,h),{open:B,close:o(g,w[2]),at:"open"})},ue.findEnclosingTag=function(d,a,h,g){for(var p=new C(d,a.line,a.ch,h);;){var S=f(p,g);if(!S)break;var w=new C(d,a.line,a.ch,h),B=o(w,S.tag);if(B)return{open:S,close:B}}},ue.scanForClosingTag=function(d,a,h,g){var p=new C(d,a.line,a.ch,g?{from:0,to:g}:null);return o(p,h)}})},p5ED:function(Ze,we,M){"use strict";var ue=M("+L6B"),Y=M("2/Rp"),P=M("5Dmo"),y=M("3S7+"),E=M("k1fw"),_=M("9og8"),C=M("tJVT"),m=M("WmNS"),c=M.n(m),r=M("q1tI"),n=M.n(r),e=M("vHTk"),s=M.n(e),u=M("yEEn"),o=M("ZW9T"),f=M("1vsH"),d=M("V0Rq"),a=M("m3rI"),h=function(p){var S=p.name,w=p.data,B=p.theme,b=p.type,A=p.filename,l=p.monacoEditor,i=p.className,x=p.style,O=p.close,T=p.onClose,D=p.hasMask,R=p.otherData,k=R===void 0?{}:R,H=Object(r.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),J=Object(C.a)(H,2),U=J[0],K=J[1],G=Object(r.useState)(""),N=Object(C.a)(G,2),Q=N[0],X=N[1],te=Object(r.useState)(),oe=Object(C.a)(te,2),me=oe[0],se=oe[1],_e=window.ENV==="build"?"/react/build/office.html":"/office.html",Ae,Ee=1024*1024,pe=10*Ee,he=Object(r.useRef)();b==="office"&&(Ae=Object(f.R)(w).filesize,Ae>pe&&(b="other")),A&&(l.filename=A),Object(r.useEffect)(function(){var ce,Ie,Fe=(ce=document.cookie)===null||ce===void 0||((Ie=ce.replace(/\s/g,""))===null||Ie===void 0)?void 0:Ie.split(";");Fe==null||Fe.map(function(ke){var re=ke.split("=");re[0]==="_educoder_session"&&X(re[1])})},[]),Object(r.useEffect)(function(){b==="office"&&ie()},[b]);var ie=function(){var ce=Object(_.a)(c.a.mark(function Ie(){var Fe,ke,re;return c.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return console.log("data:",w),Fe=w,w.startsWith("http")||(Fe=location.origin+Fe),ke=new URL(Fe).pathname.split("/").pop(),W.next=6,Object(d.U)({attachment_id:ke});case 6:re=W.sent,se(re);case 8:case"end":return W.stop()}},Ie)}));return function(){return ce.apply(this,arguments)}}(),fe=function(){if(w.startsWith("http")||w.startsWith("/api")||w.startsWith("blob:")){ge();return}Object(f.x)(A||"educoder",w,A||"educoder")},ge=function(){Object(f.v)(A||"educoder",decodeURIComponent(w))};return n.a.createElement("div",{style:Object(E.a)({},x||{}),className:"".concat(D&&s.a.bgBlack," ").concat(b?s.a.wrp:"hide")},O&&n.a.createElement("div",{className:s.a.close,ref:he},n.a.createElement(y.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return he.current}},n.a.createElement("span",{onClick:ge},n.a.createElement("i",{className:"icon-quxiaozhiding"}))),n.a.createElement(y.a,{title:"\u5173\u95ED",getPopupContainer:function(){return he.current}},n.a.createElement("span",{className:"",onClick:function(){T(),se(null)}},n.a.createElement("i",{className:"icon-guanbi1"})))),n.a.createElement("div",{className:"".concat(s.a[i]," ").concat(i," ").concat(s.a.monaco," ").concat(b==="txt"?"show":"hide")},b==="txt"&&n.a.createElement(o.b,l)),b==="audio"&&n.a.createElement("audio",{src:"".concat((w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(w),autoPlay:!0}),b==="video"&&n.a.createElement(n.a.Fragment,null,(w==null?void 0:w.indexOf("/api"))>-1?n.a.createElement("video",{controls:!0,src:"".concat(w),autoPlay:!0}):n.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(w),autoPlay:!0})),b==="office"&&me&&n.a.createElement("iframe",{src:"".concat(_e,"?key=").concat(me.key,"&url=").concat(a.a.API_SERVER+me.url,"&callbackUrl=").concat(a.a.API_SERVER+me.callbackUrl,"&fileType=").concat(me.fileType,"&title=").concat(me.title,"&model=view")}),(b==="xlsx"||b==="doc"||b==="pptx"||b==="docx")&&n.a.createElement("iframe",{src:"".concat(_e,"?key=").concat(k.key,"&url=").concat(a.a.API_SERVER+k.url,"&callbackUrl=").concat(a.a.API_SERVER+k.callbackUrl,"&fileType=").concat(k.fileType,"&title=").concat(k.title,"&model=").concat(k.model)}),b==="html"&&n.a.createElement("iframe",{src:w+"&disposition=inline"}),b==="pdf"&&n.a.createElement("embed",{className:s.a.embed,src:w,type:"application/pdf"}),b==="image"&&n.a.createElement("img",{src:"".concat((w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(w)}),b==="other"&&n.a.createElement("div",null,n.a.createElement(Y.a,{type:"primary",size:"large",onClick:fe},n.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),b==="download"&&n.a.createElement(Y.a,{type:"primary",size:"large",onClick:fe},n.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))};we.a=h},"p77/":function(Ze,we,M){},ppsT:function(Ze,we,M){(function(ue){var Y,Y;!function(P){if(!0)window.OSS=P(),Ze.exports=P();else var y}(function(){var P;return function(){function y(E,_,C){function m(n,e){if(!_[n]){if(!E[n]){var s=typeof Y=="function"&&Y;if(!e&&s)return Y(n,!0);if(c)return c(n,!0);var u=new Error("Cannot find module '"+n+"'");throw u.code="MODULE_NOT_FOUND",u}var o=_[n]={exports:{}};E[n][0].call(o.exports,function(f){return m(E[n][1][f]||f)},o,o.exports,y,E,_,C)}return _[n].exports}for(var c=typeof Y=="function"&&Y,r=0;r0?Q["Content-Type"]=N.mime:Q["Content-Type"]=w.getType(N.mime||p.extname(N.object||""))||"application/octet-stream"),N.content&&(Q["Content-Md5"]=g.createHash("md5").update(new m(N.content,"utf8")).digest("base64"),Q["Content-Length"]||(Q["Content-Length"]=N.content.length));var X=this._getResource(N);Q.authorization=this.authorization(N.method,X,N.subres,Q);var te=this._getReqUrl(N);h("request %s %s, with headers %j, !!stream: %s",N.method,te,Q,!!N.stream);var oe=N.timeout||this.options.timeout;return{url:te,params:{agent:this.agent,method:N.method,content:N.content,stream:N.stream,headers:Q,timeout:oe,writeStream:N.writeStream,customResponse:N.customResponse,ctx:N.ctx||this.ctx}}},G.request=f.default.mark(function N(Q){var X,te,oe,me;return f.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return X=this.createRequest(Q),te=void 0,oe=void 0,se.prev=3,se.next=6,this.urllib.request(X.url,X.params);case 6:te=se.sent,h("response %s %s, got %s, headers: %j",Q.method,X.url,te.status,te.headers),se.next=13;break;case 10:se.prev=10,se.t0=se.catch(3),oe=se.t0;case 13:if(me=void 0,!te||!Q.successStatuses||Q.successStatuses.indexOf(te.status)!==-1){se.next=26;break}return se.next=17,this.requestError(te);case 17:if(me=se.sent,me.code!=="RequestTimeTooSkewed"){se.next=23;break}return this.options.amendTimeSkewed=+new Date(me.serverTime)-new Date,se.next=22,this.request(Q);case 22:return se.abrupt("return",se.sent);case 23:me.params=Q,se.next=30;break;case 26:if(!oe){se.next=30;break}return se.next=29,this.requestError(oe);case 29:me=se.sent;case 30:if(!me){se.next=32;break}throw me;case 32:if(!Q.xmlResponse){se.next=36;break}return se.next=35,this.parseXML(te.data);case 35:te.data=se.sent;case 36:return se.abrupt("return",te);case 37:case"end":return se.stop()}},N,this,[[3,10]])}),G._getResource=function(N){var Q="/";return N.bucket&&(Q+=N.bucket+"/"),N.object&&(Q+=N.object),Q},G._isIP=function(N){return U._isIP(N)},G._escape=function(N){return T.encodeURIComponent(N).replace(/%2F/g,"/")},G._getReqUrl=function(N){var Q={};S(this.options.endpoint).to(Q);var X=this._isIP(Q.hostname),te=this.options.cname;!N.bucket||te||X||(Q.host=N.bucket+"."+Q.host);var oe="/";N.bucket&&X&&(oe+=N.bucket+"/"),N.object&&(oe+=this._escape(N.object).replace(/\+/g,"%2B")),Q.pathname=oe;var me={};if(N.query&&l(me,N.query),N.subres){var se={};x.string(N.subres)?se[N.subres]="":x.array(N.subres)?N.subres.forEach(function(_e){se[_e]=""}):se=N.subres,l(me,se)}return Q.query=me,i.format(Q)},G._getUserAgent=function(){var N=C&&C.browser?"js":"nodejs",Q="aliyun-sdk-"+N+"/"+R.version,X=O.description;return!X&&C&&(X="Node.js "+C.version.slice(1)+" on "+C.platform+" "+C.arch),this._checkUserAgent(Q+" "+X)},G._checkUserAgent=function(N){return N.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},G.checkBrowserAndVersion=function(N,Q){return H.name===N&&H.version.split(".")[0]===Q},G.parseXML=function(N){return function(Q){m.isBuffer(N)&&(N=N.toString()),B.parseString(N,{explicitRoot:!1,explicitArray:!1},Q)}},G.requestError=f.default.mark(function N(Q){var X,te,oe,me;return f.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(X=null,Q.data&&Q.data.length){se.next=5;break}Q.status===-1||Q.status===-2?(X=new Error(Q.message),X.name=Q.name,X.status=Q.status,X.code=Q.name):(Q.status===404?(X=new Error("Object not exists"),X.name="NoSuchKeyError",X.status=404,X.code="NoSuchKey"):Q.status===412?(X=new Error("Pre condition failed"),X.name="PreconditionFailedError",X.status=412,X.code="PreconditionFailed"):(X=new Error("Unknow error, status: "+Q.status),X.name="UnknowError",X.status=Q.status),X.requestId=Q.headers["x-oss-request-id"],X.host=""),se.next=30;break;case 5:return te=String(Q.data),h("request response error data: %s",te),oe=void 0,se.prev=8,se.next=11,this.parseXML(te)||{};case 11:oe=se.sent,se.next=21;break;case 14:return se.prev=14,se.t0=se.catch(8),h(te),se.t0.message+=` raw xml: `+te,se.t0.status=Q.status,se.t0.requestId=Q.headers["x-oss-request-id"],se.abrupt("return",se.t0);case 21:me=oe.Message||"unknow request error, status: "+Q.status,oe.Condition&&(me+=" (condition: "+oe.Condition+")"),X=new Error(me),X.name=oe.Code?oe.Code+"Error":"UnknowError",X.status=Q.status,X.code=oe.Code,X.requestId=oe.RequestId,X.hostId=oe.HostId,X.serverTime=oe.ServerTime;case 30:return h("generate error %j",X),se.abrupt("return",X);case 32:case"end":return se.stop()}},N,this,[[8,14]])})}).call(this,y("_process"),y("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(y,E,_){(function(C){"use strict";function m(S){return S&&S.__esModule?S:{default:S}}function c(S,w){if(!(this instanceof c))return new c(S,w);p.call(this,w),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var r=y("babel-runtime/core-js/array/from"),n=m(r),e=y("babel-runtime/regenerator"),s=m(e),u=y("is-type-of"),o=y("util"),f=y("path"),d=y("mime"),a=y("copy-to"),h=_;h.multipartUpload=s.default.mark(function S(w,B,b){var A,l,i,x,O,T,D,R,k;return s.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),b=b||{},!b.checkpoint||!b.checkpoint.uploadId){H.next=6;break}return H.next=5,this._resumeMultipart(b.checkpoint,b);case 5:return H.abrupt("return",H.sent);case 6:return A=102400,b.mime||(u.file(B)?b.mime=d.getType(f.extname(B.name)):u.blob(B)?b.mime=B.type:b.mime=d.getType(f.extname(B))),b.headers=b.headers||{},this._convertMetaToHeaders(b.meta,b.headers),H.next=12,this._getFileSize(B);case 12:if(!((l=H.sent)0&&a(x).to(T),D=this._divideParts(A,l),R=D.length,k=!1,H=s.default.mark(function _e(Ae,Ee){var pe,he,ie;return s.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(Ae.isCancel()){fe.next=21;break}return fe.prev=1,pe=D[Ee-1],he={stream:Ae._createStream(b,pe.start,pe.end),size:pe.end-pe.start},fe.next=6,Ae._uploadPart(O,i,Ee,he);case 6:if(ie=fe.sent,Ae.isCancel()||k){fe.next=13;break}if(w.doneParts.push({number:Ee,etag:ie.res.headers.etag}),T.push({number:Ee,etag:ie.res.headers.etag}),!B||!B.progress){fe.next=13;break}return fe.next=13,B.progress(x.length/R,w,ie.res);case 13:fe.next=21;break;case 15:if(fe.prev=15,fe.t0=fe.catch(1),Ae.isCancel()){fe.next=21;break}throw Ae.cancel(),fe.t0.partNum=Ee,fe.t0;case 21:case"end":return fe.stop()}},_e,this,[[1,15]])}),J=(0,n.default)(new Array(R),function(_e,Ae){return Ae+1}),U=T.map(function(_e){return _e.number}),K=J.filter(function(_e){return U.indexOf(_e)<0}),G=5,N=B.parallel||G,!this.checkBrowserAndVersion("Internet Explorer","10")&&N!==1){se.next=26;break}Q=0;case 16:if(!(Q0)){se.next=37;break}throw this.resetCancelFlag(),me=oe[0],me.message="Failed to upload some parts with error: "+me.toString()+" part_num: "+me.partNum,me;case 37:if(!this.isCancel()){se.next=40;break}throw X=null,this._makeCancelEvent();case 40:return se.next=42,this.completeMultipartUpload(O,i,T,B);case 42:return se.abrupt("return",se.sent);case 43:case"end":return se.stop()}},S,this)}),u.file=function(S){return typeof File!="undefined"&&S instanceof File},u.blob=function(S){return typeof Blob!="undefined"&&S instanceof Blob},h._getFileSize=s.default.mark(function S(w){var B;return s.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!u.buffer(w)){b.next=4;break}return b.abrupt("return",w.length);case 4:if(!u.blob(w)&&!u.file(w)){b.next=6;break}return b.abrupt("return",w.size);case 6:if(!u.string(w)){b.next=11;break}return b.next=9,this._statFile(w);case 9:return B=b.sent,b.abrupt("return",B.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return b.stop()}},S,this)});var g=y("stream"),p=g.Readable;o.inherits(c,p),c.prototype.readFileAndPush=function(S){if(this.fileBuffer)for(var w=!0;w&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:b,this.start=b,w=this.push(this.fileBuffer.slice(B,b))}},c.prototype._read=function(S){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);S=S||16384;var w=this;this.reader.onload=function(B){w.fileBuffer=new C(new Uint8Array(B.target.result)),w.file=null,w.readFileAndPush(S)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(S)},h._createStream=function(S,w,B){if(u.blob(S)||u.file(S))return new c(S.slice(w,B));throw new Error("_createStream requires File/String.")},h._getPartSize=function(S,w){return w?Math.max(Math.ceil(S/1e4),w):1048576},h._divideParts=function(S,w){for(var B=Math.ceil(S/w),b=[],A=0;A `,b.quiet?A+=` true `:A+=` false `,l=0;l"+s.escape(this._objectName(B[l]))+` `;return A+="",e("delete multi objects: %s",A),b.subres="delete",i=this._objectRequestParams("POST","",b),i.mime="xml",i.content=A,i.xmlResponse=!0,i.successStatuses=[200],D.next=14,this.request(i);case 14:return x=D.sent,O=x.data,T=O&&O.Deleted||null,T&&(Array.isArray(T)||(T=[T]),T=T.map(function(R){return R.Key})),D.abrupt("return",{res:x.res,deleted:T});case 19:case"end":return D.stop()}},w,this)}),S.copy=n.default.mark(function w(B,b,A){var l,i,x;return n.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=A||{},A.headers=A.headers||{},(0,c.default)(A.headers).forEach(function(T){A.headers["x-oss-copy-source-"+T.toLowerCase()]=A.headers[T]}),A.meta&&(A.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(A.meta,A.headers),b=b[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(b):"/"+encodeURIComponent(b.slice(1)),A.headers["x-oss-copy-source"]=b,l=this._objectRequestParams("PUT",B,A),l.xmlResponse=!0,l.successStatuses=[200,304],O.next=12,this.request(l);case 12:return i=O.sent,x=i.data,x&&(x={etag:x.ETag,lastModified:x.LastModified}),O.abrupt("return",{data:x,res:i.res});case 16:case"end":return O.stop()}},w,this)}),S.putMeta=n.default.mark(function w(B,b,A){return n.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.copy(B,B,{meta:b||{},timeout:A&&A.timeout,ctx:A&&A.ctx});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},w,this)}),S.list=n.default.mark(function w(B,b){var A,l,i,x,O;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return A=this._objectRequestParams("GET","",b),A.query=B,A.xmlResponse=!0,A.successStatuses=[200],T.next=6,this.request(A);case 6:return l=T.sent,i=l.data.Contents,x=this,i&&(Array.isArray(i)||(i=[i]),i=i.map(function(D){return{name:D.Key,url:x._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),O=l.data.CommonPrefixes||null,O&&(Array.isArray(O)||(O=[O]),O=O.map(function(D){return D.Prefix})),T.abrupt("return",{res:l.res,objects:i,prefixes:O,nextMarker:l.data.NextMarker||null,isTruncated:l.data.IsTruncated==="true"});case 13:case"end":return T.stop()}},w,this)}),S.putACL=n.default.mark(function w(B,b,A){var l,i;return n.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return A=A||{},A.subres="acl",A.headers=A.headers||{},A.headers["x-oss-object-acl"]=b,B=this._objectName(B),l=this._objectRequestParams("PUT",B,A),l.successStatuses=[200],x.next=9,this.request(l);case 9:return i=x.sent,x.abrupt("return",{res:i.res});case 11:case"end":return x.stop()}},w,this)}),S.getACL=n.default.mark(function w(B,b){var A,l;return n.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return b=b||{},b.subres="acl",B=this._objectName(B),A=this._objectRequestParams("GET",B,b),A.successStatuses=[200],A.xmlResponse=!0,i.next=8,this.request(A);case 8:return l=i.sent,i.abrupt("return",{acl:l.data.AccessControlList.Grant,owner:{id:l.data.Owner.ID,displayName:l.data.Owner.DisplayName},res:l.res});case 10:case"end":return i.stop()}},w,this)}),S.restore=n.default.mark(function w(B,b){var A,l;return n.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return b=b||{},b.subres="restore",A=this._objectRequestParams("POST",B,b),A.successStatuses=[202],i.next=6,this.request(A);case 6:return l=i.sent,i.abrupt("return",{res:l.res});case 8:case"end":return i.stop()}},w,this)}),S.signatureUrl=function(w,B){B=B||{},w=this._objectName(w),B.method=B.method||"GET";var b=s.timestamp()+(B.expires||1800),A={bucket:this.options.bucket,object:w},l=this._getResource(A);this.options.stsToken&&(B["security-token"]=this.options.stsToken);var i=p._signatureForURL(this.options.accessKeySecret,B,l,b),x=f.parse(this._getReqUrl(A));return x.query={OSSAccessKeyId:this.options.accessKeyId,Expires:b,Signature:i.Signature},d(i.subResource).to(x.query),x.format()},S.getObjectUrl=function(w,B){return B?B[B.length-1]!=="/"&&(B+="/"):B=this.options.endpoint.format(),B+this._escape(this._objectName(w))},S._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},S.generateObjectUrl=function(w,B){if(B)B[B.length-1]!=="/"&&(B+="/");else{B=this.options.endpoint.format();var b=f.parse(B),A=this.options.bucket;b.hostname=A+"."+b.hostname,b.host=A+"."+b.host,B=b.format()}return B+this._escape(this._objectName(w))},S._objectRequestParams=function(w,B,b){if(!this.options.bucket)throw new Error("Please create a bucket first");b=b||{},B=this._objectName(B);var A={object:B,bucket:this.options.bucket,method:w,subres:b&&b.subres,timeout:b&&b.timeout,ctx:b&&b.ctx};return b.headers&&(A.headers={},d(b.headers).to(A.headers)),A},S._objectName=function(w){return w.replace(/^\/+/,"")},S._statFile=function(w){return function(B){u.stat(w,B)}},S._convertMetaToHeaders=function(w,B){w&&(0,c.default)(w).forEach(function(b){B["x-oss-meta-"+b]=w[b]})},S._deleteFileSafe=function(w){return function(B){u.exists(w,function(b){b?u.unlink(w,function(A){A&&e("unlink %j error: %s",w,A),B()}):B()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(y,E,_){"use strict";_.version="5.3.1"},{}],6:[function(y,E,_){"use strict";function C(a){return a&&a.__esModule?a:{default:a}}function m(a){return a&&typeof a.next=="function"&&typeof a.throw=="function"}function c(a){if(!a)return!1;var h=a.constructor;return!!h&&(h.name==="GeneratorFunction"||h.displayName==="GeneratorFunction"||m(h.prototype)||m(a.prototype))}function r(a,h){var g=new a(h),p=(0,o.default)(g),S=(0,o.default)((0,s.default)(g));p.concat(S).forEach(function(w){c(g[w])?this[w]=f.wrap(g[w]).bind(g):this[w]=g[w]},this)}function n(a){if(!(this instanceof n))return new n(a);r.call(this,d,a)}var e=y("babel-runtime/core-js/object/get-prototype-of"),s=C(e),u=y("babel-runtime/core-js/object/keys"),o=C(u),f=y("co"),d=y("./client");E.exports=n,n.STS=function a(h){if(!(this instanceof a))return new a(h);r.call(this,d.STS,h)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(y,E,_){(function(C){"use strict";function m(s){return s&&s.__esModule?s:{default:s}}var c=y("babel-runtime/core-js/object/keys"),r=m(c),n=y("babel-runtime/core-js/json/stringify"),e=m(n);_.encodeCallback=function(s,u){if(s.headers=s.headers||{},!Object.prototype.hasOwnProperty.call(s.headers,"x-oss-callback")&&u.callback){var o={callbackUrl:encodeURI(u.callback.url),callbackBody:u.callback.body};u.callback.host&&(o.callbackHost=u.callback.host),u.callback.contentType&&(o.callbackBodyType=u.callback.contentType);var f=new C((0,e.default)(o)).toString("base64");if(s.headers["x-oss-callback"]=f,u.callback.customValue){var d={};(0,r.default)(u.callback.customValue).forEach(function(a){d["x:"+a]=u.callback.customValue[a]}),s.headers["x-oss-callback-var"]=new C((0,e.default)(d)).toString("base64")}}}}).call(this,y("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(y,E,_){"use strict";var C=y("babel-runtime/regenerator"),m=function(e){return e&&e.__esModule?e:{default:e}}(C),c=y("copy-to"),r=y("./callback"),n=_;n.listUploads=m.default.mark(function e(s,u){var o,f,d,a;return m.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return u=u||{},o={},c(u).to(o),o.subres="uploads",f=this._objectRequestParams("GET","",o),f.query=s,f.xmlResponse=!0,f.successStatuses=[200],h.next=10,this.request(f);case 10:return d=h.sent,a=d.data.Upload||[],Array.isArray(a)||(a=[a]),a=a.map(function(g){return{name:g.Key,uploadId:g.UploadId,initiated:g.Initiated}}),h.abrupt("return",{res:d.res,uploads:a,bucket:d.data.Bucket,nextKeyMarker:d.data.NextKeyMarker,nextUploadIdMarker:d.data.NextUploadIdMarker,isTruncated:d.data.IsTruncated==="true"});case 15:case"end":return h.stop()}},e,this)}),n.listParts=m.default.mark(function e(s,u,o,f){var d,a,h;return m.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return f=f||{},d={},c(f).to(d),d.subres={uploadId:u},a=this._objectRequestParams("GET",s,d),a.query=o,a.xmlResponse=!0,a.successStatuses=[200],g.next=10,this.request(a);case 10:return h=g.sent,g.abrupt("return",{res:h.res,uploadId:h.data.UploadId,bucket:h.data.Bucket,name:h.data.Key,partNumberMarker:h.data.PartNumberMarker,nextPartNumberMarker:h.data.NextPartNumberMarker,maxParts:h.data.MaxParts,isTruncated:h.data.IsTruncated,parts:h.data.Part||[]});case 12:case"end":return g.stop()}},e,this)}),n.abortMultipartUpload=m.default.mark(function e(s,u,o){var f,d,a;return m.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return this.cancel(),o=o||{},f={},c(o).to(f),f.subres={uploadId:u},d=this._objectRequestParams("DELETE",s,f),d.successStatuses=[204],h.next=9,this.request(d);case 9:return a=h.sent,h.abrupt("return",{res:a.res});case 11:case"end":return h.stop()}},e,this)}),n.initMultipartUpload=m.default.mark(function e(s,u){var o,f,d;return m.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return u=u||{},o={},c(u).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(u.meta,o.headers),o.subres="uploads",f=this._objectRequestParams("POST",s,o),f.mime=u.mime,f.xmlResponse=!0,f.successStatuses=[200],a.next=12,this.request(f);case 12:return d=a.sent,a.abrupt("return",{res:d.res,bucket:d.data.Bucket,name:d.data.Key,uploadId:d.data.UploadId});case 14:case"end":return a.stop()}},e,this)}),n.uploadPart=m.default.mark(function e(s,u,o,f,d,a,h){var g;return m.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return g={stream:this._createStream(f,d,a),size:a-d},p.next=3,this._uploadPart(s,u,o,g,h);case 3:return p.abrupt("return",p.sent);case 4:case"end":return p.stop()}},e,this)}),n.completeMultipartUpload=m.default.mark(function e(s,u,o,f){var d,a,h,g,p,S,w,B;return m.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:for(d=o.concat().sort(function(A,l){return A.number-l.number}).filter(function(A,l,i){return!l||A.number!==i[l-1].number}),a=` `,h=0;h `,a+=""+g.number+` `,a+=""+g.etag+` `,a+=` `;return a+="",f=f||{},p={},c(f).to(p),p.subres={uploadId:u},S=this._objectRequestParams("POST",s,p),r.encodeCallback(S,p),S.mime="xml",S.content=a,S.headers&&S.headers["x-oss-callback"]||(S.xmlResponse=!0),S.successStatuses=[200],b.next=16,this.request(S);case 16:return w=b.sent,B={res:w.res,bucket:S.bucket,name:s,etag:w.res.headers.etag},S.headers&&S.headers["x-oss-callback"]&&(B.data=JSON.parse(w.data.toString())),b.abrupt("return",B);case 20:case"end":return b.stop()}},e,this)}),n._uploadPart=m.default.mark(function e(s,u,o,f,d){var a,h,g;return m.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return d=d||{},a={},c(d).to(a),a.headers={"Content-Length":f.size},a.subres={partNumber:o,uploadId:u},h=this._objectRequestParams("PUT",s,a),h.mime=a.mime,h.stream=f.stream,h.successStatuses=[200],p.next=11,this.request(h);case 11:return g=p.sent,f.stream=null,h.stream=null,p.abrupt("return",{name:s,etag:g.res.headers.etag,res:g.res});case 15:case"end":return p.stop()}},e,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(y,E,_){(function(C){"use strict";function m(o){return o&&o.__esModule?o:{default:o}}var c=y("babel-runtime/core-js/json/stringify"),r=m(c),n=y("babel-runtime/core-js/object/keys"),e=m(n),s=y("./../../shims/crypto/crypto.js"),u=y("is-type-of");_.buildCanonicalizedResource=function(o,f){var d=""+o,a="?";if(u.string(f)&&f.trim()!=="")d+=a+f;else if(u.array(f))f.sort(),d+=a+f.join("&");else if(f){var h=function(p,S){return p[0]>S[0]?1:p[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var S=g.indexOf("=");return S===-1&&(S=p),[S,S===p?0:4-S%4]}function m(g){var p=C(g),S=p[0],w=p[1];return 3*(S+w)/4-w}function c(g,p,S){return 3*(p+S)/4-S}function r(g){for(var p,S=C(g),w=S[0],B=S[1],b=new f(c(g,w,B)),A=0,l=B>0?w-4:w,i=0;i>16&255,b[A++]=p>>8&255,b[A++]=255&p;return B===2&&(p=o[g.charCodeAt(i)]<<2|o[g.charCodeAt(i+1)]>>4,b[A++]=255&p),B===1&&(p=o[g.charCodeAt(i)]<<10|o[g.charCodeAt(i+1)]<<4|o[g.charCodeAt(i+2)]>>2,b[A++]=p>>8&255,b[A++]=255&p),b}function n(g){return u[g>>18&63]+u[g>>12&63]+u[g>>6&63]+u[63&g]}function e(g,p,S){for(var w,B=[],b=p;bA?A:b+16383));return w===1?(p=g[S-1],B.push(u[p>>2]+u[p<<4&63]+"==")):w===2&&(p=(g[S-2]<<8)+g[S-1],B.push(u[p>>10]+u[p>>4&63]+u[p<<2&63]+"=")),B.join("")}_.byteLength=m,_.toByteArray=r,_.fromByteArray=s;for(var u=[],o=[],f=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,h=d.length;a1&&Q[1]||""}function d(N){var Q=o.match(N);return Q&&Q.length>1&&Q[2]||""}var a,h=f(/(ipod|iphone|ipad)/i).toLowerCase(),g=/like android/i.test(o),p=!g&&/android/i.test(o),S=/nexus\s*[0-6]\s*/i.test(o),w=!S&&/nexus\s*[0-9]+/i.test(o),B=/CrOS/.test(o),b=/silk/i.test(o),A=/sailfish/i.test(o),l=/tizen/i.test(o),i=/(web|hpw)os/i.test(o),x=/windows phone/i.test(o),O=(/SamsungBrowser/i.test(o),!x&&/windows/i.test(o)),T=!h&&!b&&/macintosh/i.test(o),D=!p&&!A&&!l&&!i&&/linux/i.test(o),R=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),k=f(/version\/(\d+(\.\d+)?)/i),H=/tablet/i.test(o)&&!/tablet pc/i.test(o),J=!H&&/[^-]mobi/i.test(o),U=/xbox/i.test(o);/opera/i.test(o)?a={name:"Opera",opera:s,version:k||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?a={name:"Opera",opera:s,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||k}:/SamsungBrowser/i.test(o)?a={name:"Samsung Internet for Android",samsungBrowser:s,version:k||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(o)?a={name:"Opera Coast",coast:s,version:k||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(o)?a={name:"Yandex Browser",yandexbrowser:s,version:k||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?a={name:"UC Browser",ucbrowser:s,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?a={name:"Maxthon",maxthon:s,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?a={name:"Epiphany",epiphany:s,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?a={name:"Puffin",puffin:s,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?a={name:"Sleipnir",sleipnir:s,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?a={name:"K-Meleon",kMeleon:s,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:x?(a={name:"Windows Phone",osname:"Windows Phone",windowsphone:s},R?(a.msedge=s,a.version=R):(a.msie=s,a.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?a={name:"Internet Explorer",msie:s,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:B?a={name:"Chrome",osname:"Chrome OS",chromeos:s,chromeBook:s,chrome:s,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?a={name:"Microsoft Edge",msedge:s,version:R}:/vivaldi/i.test(o)?a={name:"Vivaldi",vivaldi:s,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||k}:A?a={name:"Sailfish",osname:"Sailfish OS",sailfish:s,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?a={name:"SeaMonkey",seamonkey:s,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(a={name:"Firefox",firefox:s,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(a.firefoxos=s,a.osname="Firefox OS")):b?a={name:"Amazon Silk",silk:s,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?a={name:"PhantomJS",phantom:s,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?a={name:"SlimerJS",slimer:s,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?a={name:"BlackBerry",osname:"BlackBerry OS",blackberry:s,version:k||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:i?(a={name:"WebOS",osname:"WebOS",webos:s,version:k||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(a.touchpad=s)):/bada/i.test(o)?a={name:"Bada",osname:"Bada",bada:s,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:l?a={name:"Tizen",osname:"Tizen",tizen:s,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||k}:/qupzilla/i.test(o)?a={name:"QupZilla",qupzilla:s,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||k}:/chromium/i.test(o)?a={name:"Chromium",chromium:s,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||k}:/chrome|crios|crmo/i.test(o)?a={name:"Chrome",chrome:s,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?a={name:"Android",version:k}:/safari|applewebkit/i.test(o)?(a={name:"Safari",safari:s},k&&(a.version=k)):h?(a={name:h=="iphone"?"iPhone":h=="ipad"?"iPad":"iPod"},k&&(a.version=k)):a=/googlebot/i.test(o)?{name:"Googlebot",googlebot:s,version:f(/googlebot\/(\d+(\.\d+))/i)||k}:{name:f(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!a.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(a.name=a.name||"Blink",a.blink=s):(a.name=a.name||"Webkit",a.webkit=s),!a.version&&k&&(a.version=k)):!a.opera&&/gecko\//i.test(o)&&(a.name=a.name||"Gecko",a.gecko=s,a.version=a.version||f(/gecko\/(\d+(\.\d+)?)/i)),a.windowsphone||!p&&!a.silk?!a.windowsphone&&h?(a[h]=s,a.ios=s,a.osname="iOS"):T?(a.mac=s,a.osname="macOS"):U?(a.xbox=s,a.osname="Xbox"):O?(a.windows=s,a.osname="Windows"):D&&(a.linux=s,a.osname="Linux"):(a.android=s,a.osname="Android");var K="";a.windows?K=function(N){switch(N){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}}(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):a.windowsphone?K=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):a.mac?(K=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),K=K.replace(/[_\s]/g,".")):h?(K=f(/os (\d+([_\s]\d+)*) like mac os x/i),K=K.replace(/[_\s]/g,".")):p?K=f(/android[ \/-](\d+(\.\d+)*)/i):a.webos?K=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):a.blackberry?K=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):a.bada?K=f(/bada\/(\d+(\.\d+)*)/i):a.tizen&&(K=f(/tizen[\/\s](\d+(\.\d+)*)/i)),K&&(a.osversion=K);var G=!a.windows&&K.split(".")[0];return H||w||h=="ipad"||p&&(G==3||G>=4&&!J)||a.silk?a.tablet=s:(J||h=="iphone"||h=="ipod"||p||S||a.blackberry||a.webos||a.bada)&&(a.mobile=s),a.msedge||a.msie&&a.version>=10||a.yandexbrowser&&a.version>=15||a.vivaldi&&a.version>=1||a.chrome&&a.version>=20||a.samsungBrowser&&a.version>=4||a.firefox&&a.version>=20||a.safari&&a.version>=6||a.opera&&a.version>=10||a.ios&&a.osversion&&a.osversion.split(".")[0]>=6||a.blackberry&&a.version>=10.1||a.chromium&&a.version>=20?a.a=s:a.msie&&a.version<10||a.chrome&&a.version<20||a.firefox&&a.version<20||a.safari&&a.version<6||a.opera&&a.version<10||a.ios&&a.osversion&&a.osversion.split(".")[0]<6||a.chromium&&a.version<20?a.c=s:a.x=s,a}function m(o){return o.split(".").length}function c(o,f){var d,a=[];if(Array.prototype.map)return Array.prototype.map.call(o,f);for(d=0;d=0;){if(d[0][f]>d[1][f])return 1;if(d[0][f]!==d[1][f])return-1;if(f===0)return 0}}function n(o,f,d){var a=u;typeof f=="string"&&(d=f,f=void 0),f===void 0&&(f=!1),d&&(a=C(d));var h=""+a.version;for(var g in o)if(o.hasOwnProperty(g)&&a[g]){if(typeof o[g]!="string")throw new Error("Browser version in the minVersion map should be a string: "+g+": "+String(o));return r([h,o[g]])<0}return f}function e(o,f,d){return!n(o,f,d)}var s=!0,u=C(typeof navigator!="undefined"&&navigator.userAgent||"");return u.test=function(o){for(var f=0;f=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived=55296&&a<=56319)){if(this.charReceived=this.charLength=0,u.length===0)return o;break}this.charLength+=this.surrogateSize,o=""}this.detectIncompleteChar(u);var d=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,d),d-=this.charReceived),o+=u.toString(this.encoding,0,d);var d=o.length-1,a=o.charCodeAt(d);if(a>=55296&&a<=56319){var h=this.surrogateSize;return this.charLength+=h,this.charReceived+=h,this.charBuffer.copy(this.charBuffer,h,0,h),u.copy(this.charBuffer,0,0,h),o.substring(0,d)}return o},s.prototype.detectIncompleteChar=function(u){for(var o=u.length>=3?3:u.length;o>0;o--){var f=u[u.length-o];if(o==1&&f>>5==6){this.charLength=2;break}if(o<=2&&f>>4==14){this.charLength=3;break}if(o<=3&&f>>3==30){this.charLength=4;break}}this.charReceived=o},s.prototype.end=function(u){var o="";if(u&&u.length&&(o=this.write(u)),this.charReceived){var f=this.charReceived,d=this.charBuffer,a=this.encoding;o+=d.slice(0,f).toString(a)}return o}},{buffer:38}],38:[function(y,E,_){(function(C){"use strict";function m(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(F,W){if(m()=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|F}function g(F){return+F!=F&&(F=0),r.alloc(+F)}function p(F,W){if(r.isBuffer(F))return F.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(F)||F instanceof ArrayBuffer))return F.byteLength;typeof F!="string"&&(F=""+F);var de=F.length;if(de===0)return 0;for(var ne=!1;;)switch(W){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":case void 0:return Ee(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return ie(F).length;default:if(ne)return Ee(F).length;W=(""+W).toLowerCase(),ne=!0}}function S(F,W,de){var ne=!1;if((W===void 0||W<0)&&(W=0),W>this.length)return"";if((de===void 0||de>this.length)&&(de=this.length),de<=0)return"";if(de>>>=0,W>>>=0,de<=W)return"";for(F||(F="utf8");;)switch(F){case"hex":return U(this,W,de);case"utf8":case"utf-8":return R(this,W,de);case"ascii":return H(this,W,de);case"latin1":case"binary":return J(this,W,de);case"base64":return D(this,W,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,W,de);default:if(ne)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),ne=!0}}function w(F,W,de){var ne=F[W];F[W]=F[de],F[de]=ne}function B(F,W,de,ne,le){if(F.length===0)return-1;if(typeof de=="string"?(ne=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),de=+de,isNaN(de)&&(de=le?0:F.length-1),de<0&&(de=F.length+de),de>=F.length){if(le)return-1;de=F.length-1}else if(de<0){if(!le)return-1;de=0}if(typeof W=="string"&&(W=r.from(W,ne)),r.isBuffer(W))return W.length===0?-1:b(F,W,de,ne,le);if(typeof W=="number")return W&=255,r.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(F,W,de):Uint8Array.prototype.lastIndexOf.call(F,W,de):b(F,[W],de,ne,le);throw new TypeError("val must be string, number or Buffer")}function b(F,W,de,ne,le){function De(lt,rt){return Xe===1?lt[rt]:lt.readUInt16BE(rt*Xe)}var Xe=1,xt=F.length,Ke=W.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(F.length<2||W.length<2)return-1;Xe=2,xt/=2,Ke/=2,de/=2}var ze;if(le){var yt=-1;for(ze=de;zext&&(de=xt-Ke),ze=de;ze>=0;ze--){for(var Et=!0,ct=0;ctle&&(ne=le):ne=le;var De=W.length;if(De%2!=0)throw new TypeError("Invalid hex string");ne>De/2&&(ne=De/2);for(var Xe=0;Xe239?4:De>223?3:De>191?2:1;if(le+xt<=de){var Ke,ze,yt,Et;switch(xt){case 1:De<128&&(Xe=De);break;case 2:Ke=F[le+1],(192&Ke)==128&&(Et=(31&De)<<6|63&Ke)>127&&(Xe=Et);break;case 3:Ke=F[le+1],ze=F[le+2],(192&Ke)==128&&(192&ze)==128&&(Et=(15&De)<<12|(63&Ke)<<6|63&ze)>2047&&(Et<55296||Et>57343)&&(Xe=Et);break;case 4:Ke=F[le+1],ze=F[le+2],yt=F[le+3],(192&Ke)==128&&(192&ze)==128&&(192&yt)==128&&(Et=(15&De)<<18|(63&Ke)<<12|(63&ze)<<6|63&yt)>65535&&Et<1114112&&(Xe=Et)}}Xe===null?(Xe=65533,xt=1):Xe>65535&&(Xe-=65536,ne.push(Xe>>>10&1023|55296),Xe=56320|1023&Xe),ne.push(Xe),le+=xt}return k(ne)}function k(F){var W=F.length;if(W<=ke)return String.fromCharCode.apply(String,F);for(var de="",ne=0;nene)&&(de=ne);for(var le="",De=W;Dede)throw new RangeError("Trying to access beyond buffer length")}function N(F,W,de,ne,le,De){if(!r.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>le||WF.length)throw new RangeError("Index out of range")}function Q(F,W,de,ne){W<0&&(W=65535+W+1);for(var le=0,De=Math.min(F.length-de,2);le>>8*(ne?le:1-le)}function X(F,W,de,ne){W<0&&(W=4294967295+W+1);for(var le=0,De=Math.min(F.length-de,4);le>>8*(ne?le:3-le)&255}function te(F,W,de,ne,le,De){if(de+ne>F.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function oe(F,W,de,ne,le){return le||te(F,W,de,4,34028234663852886e22,-34028234663852886e22),Ie.write(F,W,de,ne,23,4),de+4}function me(F,W,de,ne,le){return le||te(F,W,de,8,17976931348623157e292,-17976931348623157e292),Ie.write(F,W,de,ne,52,8),de+8}function se(F){if(F=_e(F).replace(re,""),F.length<2)return"";for(;F.length%4!=0;)F+="=";return F}function _e(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}function Ae(F){return F<16?"0"+F.toString(16):F.toString(16)}function Ee(F,W){W=W||1/0;for(var de,ne=F.length,le=null,De=[],Xe=0;Xe55295&&de<57344){if(!le){if(de>56319){(W-=3)>-1&&De.push(239,191,189);continue}if(Xe+1===ne){(W-=3)>-1&&De.push(239,191,189);continue}le=de;continue}if(de<56320){(W-=3)>-1&&De.push(239,191,189),le=de;continue}de=65536+(le-55296<<10|de-56320)}else le&&(W-=3)>-1&&De.push(239,191,189);if(le=null,de<128){if((W-=1)<0)break;De.push(de)}else if(de<2048){if((W-=2)<0)break;De.push(de>>6|192,63&de|128)}else if(de<65536){if((W-=3)<0)break;De.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;De.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return De}function pe(F){for(var W=[],de=0;de>8,le=de%256,De.push(le),De.push(ne);return De}function ie(F){return ce.toByteArray(se(F))}function fe(F,W,de,ne){for(var le=0;le=W.length||le>=F.length);++le)W[le+de]=F[le];return le}function ge(F){return F!==F}var ce=y("base64-js"),Ie=y("ieee754"),Fe=y("isarray");_.Buffer=r,_.SlowBuffer=g,_.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=C.TYPED_ARRAY_SUPPORT!==void 0?C.TYPED_ARRAY_SUPPORT:function(){try{var F=new Uint8Array(1);return F.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},F.foo()===42&&typeof F.subarray=="function"&&F.subarray(1,1).byteLength===0}catch(W){return!1}}(),_.kMaxLength=m(),r.poolSize=8192,r._augment=function(F){return F.__proto__=r.prototype,F},r.from=function(F,W,de){return n(null,F,W,de)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(F,W,de){return s(null,F,W,de)},r.allocUnsafe=function(F){return u(null,F)},r.allocUnsafeSlow=function(F){return u(null,F)},r.isBuffer=function(F){return!(F==null||!F._isBuffer)},r.compare=function(F,W){if(!r.isBuffer(F)||!r.isBuffer(W))throw new TypeError("Arguments must be Buffers");if(F===W)return 0;for(var de=F.length,ne=W.length,le=0,De=Math.min(de,ne);le0&&(F=this.toString("hex",0,W).match(/.{2}/g).join(" "),this.length>W&&(F+=" ... ")),""},r.prototype.compare=function(F,W,de,ne,le){if(!r.isBuffer(F))throw new TypeError("Argument must be a Buffer");if(W===void 0&&(W=0),de===void 0&&(de=F?F.length:0),ne===void 0&&(ne=0),le===void 0&&(le=this.length),W<0||de>F.length||ne<0||le>this.length)throw new RangeError("out of range index");if(ne>=le&&W>=de)return 0;if(ne>=le)return-1;if(W>=de)return 1;if(W>>>=0,de>>>=0,ne>>>=0,le>>>=0,this===F)return 0;for(var De=le-ne,Xe=de-W,xt=Math.min(De,Xe),Ke=this.slice(ne,le),ze=F.slice(W,de),yt=0;ytle)&&(de=le),F.length>0&&(de<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var De=!1;;)switch(ne){case"hex":return A(this,F,W,de);case"utf8":case"utf-8":return l(this,F,W,de);case"ascii":return i(this,F,W,de);case"latin1":case"binary":return x(this,F,W,de);case"base64":return O(this,F,W,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,F,W,de);default:if(De)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),De=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ke=4096;r.prototype.slice=function(F,W){var de=this.length;F=~~F,W=W===void 0?de:~~W,F<0?(F+=de)<0&&(F=0):F>de&&(F=de),W<0?(W+=de)<0&&(W=0):W>de&&(W=de),W0&&(le*=256);)ne+=this[F+--W]*le;return ne},r.prototype.readUInt8=function(F,W){return W||G(F,1,this.length),this[F]},r.prototype.readUInt16LE=function(F,W){return W||G(F,2,this.length),this[F]|this[F+1]<<8},r.prototype.readUInt16BE=function(F,W){return W||G(F,2,this.length),this[F]<<8|this[F+1]},r.prototype.readUInt32LE=function(F,W){return W||G(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+16777216*this[F+3]},r.prototype.readUInt32BE=function(F,W){return W||G(F,4,this.length),16777216*this[F]+(this[F+1]<<16|this[F+2]<<8|this[F+3])},r.prototype.readIntLE=function(F,W,de){F|=0,W|=0,de||G(F,W,this.length);for(var ne=this[F],le=1,De=0;++De=le&&(ne-=Math.pow(2,8*W)),ne},r.prototype.readIntBE=function(F,W,de){F|=0,W|=0,de||G(F,W,this.length);for(var ne=W,le=1,De=this[F+--ne];ne>0&&(le*=256);)De+=this[F+--ne]*le;return le*=128,De>=le&&(De-=Math.pow(2,8*W)),De},r.prototype.readInt8=function(F,W){return W||G(F,1,this.length),128&this[F]?-1*(255-this[F]+1):this[F]},r.prototype.readInt16LE=function(F,W){W||G(F,2,this.length);var de=this[F]|this[F+1]<<8;return 32768&de?4294901760|de:de},r.prototype.readInt16BE=function(F,W){W||G(F,2,this.length);var de=this[F+1]|this[F]<<8;return 32768&de?4294901760|de:de},r.prototype.readInt32LE=function(F,W){return W||G(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},r.prototype.readInt32BE=function(F,W){return W||G(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},r.prototype.readFloatLE=function(F,W){return W||G(F,4,this.length),Ie.read(this,F,!0,23,4)},r.prototype.readFloatBE=function(F,W){return W||G(F,4,this.length),Ie.read(this,F,!1,23,4)},r.prototype.readDoubleLE=function(F,W){return W||G(F,8,this.length),Ie.read(this,F,!0,52,8)},r.prototype.readDoubleBE=function(F,W){return W||G(F,8,this.length),Ie.read(this,F,!1,52,8)},r.prototype.writeUIntLE=function(F,W,de,ne){(F=+F,W|=0,de|=0,!ne)&&N(this,F,W,de,Math.pow(2,8*de)-1,0);var le=1,De=0;for(this[W]=255&F;++De=0&&(De*=256);)this[W+le]=F/De&255;return W+de},r.prototype.writeUInt8=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,1,255,0),r.TYPED_ARRAY_SUPPORT||(F=Math.floor(F)),this[W]=255&F,W+1},r.prototype.writeUInt16LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[W]=255&F,this[W+1]=F>>>8):Q(this,F,W,!0),W+2},r.prototype.writeUInt16BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>8,this[W+1]=255&F):Q(this,F,W,!1),W+2},r.prototype.writeUInt32LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[W+3]=F>>>24,this[W+2]=F>>>16,this[W+1]=F>>>8,this[W]=255&F):X(this,F,W,!0),W+4},r.prototype.writeUInt32BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>24,this[W+1]=F>>>16,this[W+2]=F>>>8,this[W+3]=255&F):X(this,F,W,!1),W+4},r.prototype.writeIntLE=function(F,W,de,ne){if(F=+F,W|=0,!ne){var le=Math.pow(2,8*de-1);N(this,F,W,de,le-1,-le)}var De=0,Xe=1,xt=0;for(this[W]=255&F;++De>0)-xt&255;return W+de},r.prototype.writeIntBE=function(F,W,de,ne){if(F=+F,W|=0,!ne){var le=Math.pow(2,8*de-1);N(this,F,W,de,le-1,-le)}var De=de-1,Xe=1,xt=0;for(this[W+De]=255&F;--De>=0&&(Xe*=256);)F<0&&xt===0&&this[W+De+1]!==0&&(xt=1),this[W+De]=(F/Xe>>0)-xt&255;return W+de},r.prototype.writeInt8=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,1,127,-128),r.TYPED_ARRAY_SUPPORT||(F=Math.floor(F)),F<0&&(F=255+F+1),this[W]=255&F,W+1},r.prototype.writeInt16LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[W]=255&F,this[W+1]=F>>>8):Q(this,F,W,!0),W+2},r.prototype.writeInt16BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>8,this[W+1]=255&F):Q(this,F,W,!1),W+2},r.prototype.writeInt32LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[W]=255&F,this[W+1]=F>>>8,this[W+2]=F>>>16,this[W+3]=F>>>24):X(this,F,W,!0),W+4},r.prototype.writeInt32BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>24,this[W+1]=F>>>16,this[W+2]=F>>>8,this[W+3]=255&F):X(this,F,W,!1),W+4},r.prototype.writeFloatLE=function(F,W,de){return oe(this,F,W,!0,de)},r.prototype.writeFloatBE=function(F,W,de){return oe(this,F,W,!1,de)},r.prototype.writeDoubleLE=function(F,W,de){return me(this,F,W,!0,de)},r.prototype.writeDoubleBE=function(F,W,de){return me(this,F,W,!1,de)},r.prototype.copy=function(F,W,de,ne){if(de||(de=0),ne||ne===0||(ne=this.length),W>=F.length&&(W=F.length),W||(W=0),ne>0&&ne=this.length)throw new RangeError("sourceStart out of bounds");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),F.length-W=0;--le)F[le+W]=this[le+de];else if(De<1e3||!r.TYPED_ARRAY_SUPPORT)for(le=0;le>>=0,de=de===void 0?this.length:de>>>0,F||(F=0);var De;if(typeof F=="number")for(De=W;De>>1;n(c[u])2&&(S=f.call(arguments,1)),h(S)})})}function r(d){return Promise.all(d.map(m,this))}function n(d){for(var a=new d.constructor,h=Object.keys(d),g=[],p=0;pd;)if((u=o[d++])!=u)return!0}else for(;f>d;d++)if((r||d in o)&&o[d]===e)return r||d||0;return!r&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(y,E,_){var C=y("./_cof"),m=y("./_wks")("toStringTag"),c=C(function(){return arguments}())=="Arguments",r=function(n,e){try{return n[e]}catch(s){}};E.exports=function(n){var e,s,u;return n===void 0?"Undefined":n===null?"Null":typeof(s=r(e=Object(n),m))=="string"?s:c?C(e):(u=C(e))=="Object"&&typeof e.callee=="function"?"Arguments":u}},{"./_cof":64,"./_wks":131}],64:[function(y,E,_){var C={}.toString;E.exports=function(m){return C.call(m).slice(8,-1)}},{}],65:[function(y,E,_){var C=E.exports={version:"2.5.7"};typeof __e=="number"&&(__e=C)},{}],66:[function(y,E,_){"use strict";var C=y("./_object-dp"),m=y("./_property-desc");E.exports=function(c,r,n){r in c?C.f(c,r,m(0,n)):c[r]=n}},{"./_object-dp":98,"./_property-desc":111}],67:[function(y,E,_){var C=y("./_a-function");E.exports=function(m,c,r){if(C(m),c===void 0)return m;switch(r){case 1:return function(n){return m.call(c,n)};case 2:return function(n,e){return m.call(c,n,e)};case 3:return function(n,e,s){return m.call(c,n,e,s)}}return function(){return m.apply(c,arguments)}}},{"./_a-function":58}],68:[function(y,E,_){E.exports=function(C){if(C==null)throw TypeError("Can't call method on "+C);return C}},{}],69:[function(y,E,_){E.exports=!y("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(y,E,_){var C=y("./_is-object"),m=y("./_global").document,c=C(m)&&C(m.createElement);E.exports=function(r){return c?m.createElement(r):{}}},{"./_global":76,"./_is-object":85}],71:[function(y,E,_){E.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(y,E,_){var C=y("./_object-keys"),m=y("./_object-gops"),c=y("./_object-pie");E.exports=function(r){var n=C(r),e=m.f;if(e)for(var s,u=e(r),o=c.f,f=0;u.length>f;)o.call(r,s=u[f++])&&n.push(s);return n}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(y,E,_){var C=y("./_global"),m=y("./_core"),c=y("./_ctx"),r=y("./_hide"),n=y("./_has"),e=function(s,u,o){var f,d,a,h=s&e.F,g=s&e.G,p=s&e.S,S=s&e.P,w=s&e.B,B=s&e.W,b=g?m:m[u]||(m[u]={}),A=b.prototype,l=g?C:p?C[u]:(C[u]||{}).prototype;g&&(o=u);for(f in o)(d=!h&&l&&l[f]!==void 0)&&n(b,f)||(a=d?l[f]:o[f],b[f]=g&&typeof l[f]!="function"?o[f]:w&&d?c(a,C):B&&l[f]==a?function(i){var x=function(O,T,D){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(O);case 2:return new i(O,T)}return new i(O,T,D)}return i.apply(this,arguments)};return x.prototype=i.prototype,x}(a):S&&typeof a=="function"?c(Function.call,a):a,S&&((b.virtual||(b.virtual={}))[f]=a,s&e.R&&A&&!A[f]&&r(A,f,a)))};e.F=1,e.G=2,e.S=4,e.P=8,e.B=16,e.W=32,e.U=64,e.R=128,E.exports=e},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(y,E,_){E.exports=function(C){try{return!!C()}catch(m){return!0}}},{}],75:[function(y,E,_){var C=y("./_ctx"),m=y("./_iter-call"),c=y("./_is-array-iter"),r=y("./_an-object"),n=y("./_to-length"),e=y("./core.get-iterator-method"),s={},u={},_=E.exports=function(o,f,d,a,h){var g,p,S,w,B=h?function(){return o}:e(o),b=C(d,a,f?2:1),A=0;if(typeof B!="function")throw TypeError(o+" is not iterable!");if(c(B)){for(g=n(o.length);g>A;A++)if((w=f?b(r(p=o[A])[0],p[1]):b(o[A]))===s||w===u)return w}else for(S=B.call(o);!(p=S.next()).done;)if((w=m(S,b,p.value,f))===s||w===u)return w};_.BREAK=s,_.RETURN=u},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(y,E,_){var C=E.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=C)},{}],77:[function(y,E,_){var C={}.hasOwnProperty;E.exports=function(m,c){return C.call(m,c)}},{}],78:[function(y,E,_){var C=y("./_object-dp"),m=y("./_property-desc");E.exports=y("./_descriptors")?function(c,r,n){return C.f(c,r,m(1,n))}:function(c,r,n){return c[r]=n,c}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(y,E,_){var C=y("./_global").document;E.exports=C&&C.documentElement},{"./_global":76}],80:[function(y,E,_){E.exports=!y("./_descriptors")&&!y("./_fails")(function(){return Object.defineProperty(y("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(y,E,_){E.exports=function(C,m,c){var r=c===void 0;switch(m.length){case 0:return r?C():C.call(c);case 1:return r?C(m[0]):C.call(c,m[0]);case 2:return r?C(m[0],m[1]):C.call(c,m[0],m[1]);case 3:return r?C(m[0],m[1],m[2]):C.call(c,m[0],m[1],m[2]);case 4:return r?C(m[0],m[1],m[2],m[3]):C.call(c,m[0],m[1],m[2],m[3])}return C.apply(c,m)}},{}],82:[function(y,E,_){var C=y("./_cof");E.exports=Object("z").propertyIsEnumerable(0)?Object:function(m){return C(m)=="String"?m.split(""):Object(m)}},{"./_cof":64}],83:[function(y,E,_){var C=y("./_iterators"),m=y("./_wks")("iterator"),c=Array.prototype;E.exports=function(r){return r!==void 0&&(C.Array===r||c[m]===r)}},{"./_iterators":91,"./_wks":131}],84:[function(y,E,_){var C=y("./_cof");E.exports=Array.isArray||function(m){return C(m)=="Array"}},{"./_cof":64}],85:[function(y,E,_){E.exports=function(C){return typeof C=="object"?C!==null:typeof C=="function"}},{}],86:[function(y,E,_){var C=y("./_an-object");E.exports=function(m,c,r,n){try{return n?c(C(r)[0],r[1]):c(r)}catch(s){var e=m.return;throw e!==void 0&&C(e.call(m)),s}}},{"./_an-object":61}],87:[function(y,E,_){"use strict";var C=y("./_object-create"),m=y("./_property-desc"),c=y("./_set-to-string-tag"),r={};y("./_hide")(r,y("./_wks")("iterator"),function(){return this}),E.exports=function(n,e,s){n.prototype=C(r,{next:m(1,s)}),c(n,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(y,E,_){"use strict";var C=y("./_library"),m=y("./_export"),c=y("./_redefine"),r=y("./_hide"),n=y("./_iterators"),e=y("./_iter-create"),s=y("./_set-to-string-tag"),u=y("./_object-gpo"),o=y("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};E.exports=function(a,h,g,p,S,w,B){e(g,h,p);var b,A,l,i=function(U){if(!f&&U in D)return D[U];switch(U){case"keys":case"values":return function(){return new g(this,U)}}return function(){return new g(this,U)}},x=h+" Iterator",O=S=="values",T=!1,D=a.prototype,R=D[o]||D["@@iterator"]||S&&D[S],k=R||i(S),H=S?O?i("entries"):k:void 0,J=h=="Array"&&D.entries||R;if(J&&(l=u(J.call(new a)))!==Object.prototype&&l.next&&(s(l,x,!0),C||typeof l[o]=="function"||r(l,o,d)),O&&R&&R.name!=="values"&&(T=!0,k=function(){return R.call(this)}),C&&!B||!f&&!T&&D[o]||r(D,o,k),n[h]=k,n[x]=d,S)if(b={values:O?k:i("values"),keys:w?k:i("keys"),entries:H},B)for(A in b)A in D||c(D,A,b[A]);else m(m.P+m.F*(f||T),h,b);return b}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(y,E,_){var C=y("./_wks")("iterator"),m=!1;try{var c=[7][C]();c.return=function(){m=!0},Array.from(c,function(){throw 2})}catch(r){}E.exports=function(r,n){if(!n&&!m)return!1;var e=!1;try{var s=[7],u=s[C]();u.next=function(){return{done:e=!0}},s[C]=function(){return u},r(s)}catch(o){}return e}},{"./_wks":131}],90:[function(y,E,_){E.exports=function(C,m){return{value:m,done:!!C}}},{}],91:[function(y,E,_){E.exports={}},{}],92:[function(y,E,_){E.exports=!0},{}],93:[function(y,E,_){var C=y("./_uid")("meta"),m=y("./_is-object"),c=y("./_has"),r=y("./_object-dp").f,n=0,e=Object.isExtensible||function(){return!0},s=!y("./_fails")(function(){return e(Object.preventExtensions({}))}),u=function(h){r(h,C,{value:{i:"O"+ ++n,w:{}}})},o=function(h,g){if(!m(h))return typeof h=="symbol"?h:(typeof h=="string"?"S":"P")+h;if(!c(h,C)){if(!e(h))return"F";if(!g)return"E";u(h)}return h[C].i},f=function(h,g){if(!c(h,C)){if(!e(h))return!0;if(!g)return!1;u(h)}return h[C].w},d=function(h){return s&&a.NEED&&e(h)&&!c(h,C)&&u(h),h},a=E.exports={KEY:C,NEED:!1,fastKey:o,getWeak:f,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(y,E,_){var C=y("./_global"),m=y("./_task").set,c=C.MutationObserver||C.WebKitMutationObserver,r=C.process,n=C.Promise,e=y("./_cof")(r)=="process";E.exports=function(){var s,u,o,f=function(){var g,p;for(e&&(g=r.domain)&&g.exit();s;){p=s.fn,s=s.next;try{p()}catch(S){throw s?o():u=void 0,S}}u=void 0,g&&g.enter()};if(e)o=function(){r.nextTick(f)};else if(!c||C.navigator&&C.navigator.standalone)if(n&&n.resolve){var d=n.resolve(void 0);o=function(){d.then(f)}}else o=function(){m.call(C,f)};else{var a=!0,h=document.createTextNode("");new c(f).observe(h,{characterData:!0}),o=function(){h.data=a=!a}}return function(g){var p={fn:g,next:void 0};u&&(u.next=p),s||(s=p,o()),u=p}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(y,E,_){"use strict";function C(c){var r,n;this.promise=new c(function(e,s){if(r!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");r=e,n=s}),this.resolve=m(r),this.reject=m(n)}var m=y("./_a-function");E.exports.f=function(c){return new C(c)}},{"./_a-function":58}],96:[function(y,E,_){"use strict";var C=y("./_object-keys"),m=y("./_object-gops"),c=y("./_object-pie"),r=y("./_to-object"),n=y("./_iobject"),e=Object.assign;E.exports=!e||y("./_fails")(function(){var s={},u={},o=Symbol(),f="abcdefghijklmnopqrst";return s[o]=7,f.split("").forEach(function(d){u[d]=d}),e({},s)[o]!=7||Object.keys(e({},u)).join("")!=f})?function(s,u){for(var o=r(s),f=arguments.length,d=1,a=m.f,h=c.f;f>d;)for(var g,p=n(arguments[d++]),S=a?C(p).concat(a(p)):C(p),w=S.length,B=0;w>B;)h.call(p,g=S[B++])&&(o[g]=p[g]);return o}:e},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(y,E,_){var C=y("./_an-object"),m=y("./_object-dps"),c=y("./_enum-bug-keys"),r=y("./_shared-key")("IE_PROTO"),n=function(){},e=function(){var s,u=y("./_dom-create")("iframe"),o=c.length;for(u.style.display="none",y("./_html").appendChild(u),u.src="javascript:",s=u.contentWindow.document,s.open(),s.write(""),s.close(),e=s.F;o--;)delete e.prototype[c[o]];return e()};E.exports=Object.create||function(s,u){var o;return s!==null?(n.prototype=C(s),o=new n,n.prototype=null,o[r]=s):o=e(),u===void 0?o:m(o,u)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(y,E,_){var C=y("./_an-object"),m=y("./_ie8-dom-define"),c=y("./_to-primitive"),r=Object.defineProperty;_.f=y("./_descriptors")?Object.defineProperty:function(n,e,s){if(C(n),e=c(e,!0),C(s),m)try{return r(n,e,s)}catch(u){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(n[e]=s.value),n}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(y,E,_){var C=y("./_object-dp"),m=y("./_an-object"),c=y("./_object-keys");E.exports=y("./_descriptors")?Object.defineProperties:function(r,n){m(r);for(var e,s=c(n),u=s.length,o=0;u>o;)C.f(r,e=s[o++],n[e]);return r}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(y,E,_){var C=y("./_object-pie"),m=y("./_property-desc"),c=y("./_to-iobject"),r=y("./_to-primitive"),n=y("./_has"),e=y("./_ie8-dom-define"),s=Object.getOwnPropertyDescriptor;_.f=y("./_descriptors")?s:function(u,o){if(u=c(u),o=r(o,!0),e)try{return s(u,o)}catch(f){}if(n(u,o))return m(!C.f.call(u,o),u[o])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(y,E,_){var C=y("./_to-iobject"),m=y("./_object-gopn").f,c={}.toString,r=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(e){try{return m(e)}catch(s){return r.slice()}};E.exports.f=function(e){return r&&c.call(e)=="[object Window]"?n(e):m(C(e))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(y,E,_){var C=y("./_object-keys-internal"),m=y("./_enum-bug-keys").concat("length","prototype");_.f=Object.getOwnPropertyNames||function(c){return C(c,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(y,E,_){_.f=Object.getOwnPropertySymbols},{}],104:[function(y,E,_){var C=y("./_has"),m=y("./_to-object"),c=y("./_shared-key")("IE_PROTO"),r=Object.prototype;E.exports=Object.getPrototypeOf||function(n){return n=m(n),C(n,c)?n[c]:typeof n.constructor=="function"&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?r:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(y,E,_){var C=y("./_has"),m=y("./_to-iobject"),c=y("./_array-includes")(!1),r=y("./_shared-key")("IE_PROTO");E.exports=function(n,e){var s,u=m(n),o=0,f=[];for(s in u)s!=r&&C(u,s)&&f.push(s);for(;e.length>o;)C(u,s=e[o++])&&(~c(f,s)||f.push(s));return f}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(y,E,_){var C=y("./_object-keys-internal"),m=y("./_enum-bug-keys");E.exports=Object.keys||function(c){return C(c,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(y,E,_){_.f={}.propertyIsEnumerable},{}],108:[function(y,E,_){var C=y("./_export"),m=y("./_core"),c=y("./_fails");E.exports=function(r,n){var e=(m.Object||{})[r]||Object[r],s={};s[r]=n(e),C(C.S+C.F*c(function(){e(1)}),"Object",s)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(y,E,_){E.exports=function(C){try{return{e:!1,v:C()}}catch(m){return{e:!0,v:m}}}},{}],110:[function(y,E,_){var C=y("./_an-object"),m=y("./_is-object"),c=y("./_new-promise-capability");E.exports=function(r,n){if(C(r),m(n)&&n.constructor===r)return n;var e=c.f(r);return(0,e.resolve)(n),e.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(y,E,_){E.exports=function(C,m){return{enumerable:!(1&C),configurable:!(2&C),writable:!(4&C),value:m}}},{}],112:[function(y,E,_){var C=y("./_hide");E.exports=function(m,c,r){for(var n in c)r&&m[n]?m[n]=c[n]:C(m,n,c[n]);return m}},{"./_hide":78}],113:[function(y,E,_){E.exports=y("./_hide")},{"./_hide":78}],114:[function(y,E,_){"use strict";var C=y("./_global"),m=y("./_core"),c=y("./_object-dp"),r=y("./_descriptors"),n=y("./_wks")("species");E.exports=function(e){var s=typeof m[e]=="function"?m[e]:C[e];r&&s&&!s[n]&&c.f(s,n,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(y,E,_){var C=y("./_object-dp").f,m=y("./_has"),c=y("./_wks")("toStringTag");E.exports=function(r,n,e){r&&!m(r=e?r:r.prototype,c)&&C(r,c,{configurable:!0,value:n})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(y,E,_){var C=y("./_shared")("keys"),m=y("./_uid");E.exports=function(c){return C[c]||(C[c]=m(c))}},{"./_shared":117,"./_uid":127}],117:[function(y,E,_){var C=y("./_core"),m=y("./_global"),c=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(E.exports=function(r,n){return c[r]||(c[r]=n!==void 0?n:{})})("versions",[]).push({version:C.version,mode:y("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(y,E,_){var C=y("./_an-object"),m=y("./_a-function"),c=y("./_wks")("species");E.exports=function(r,n){var e,s=C(r).constructor;return s===void 0||(e=C(s)[c])==null?n:m(e)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(y,E,_){var C=y("./_to-integer"),m=y("./_defined");E.exports=function(c){return function(r,n){var e,s,u=String(m(r)),o=C(n),f=u.length;return o<0||o>=f?c?"":void 0:(e=u.charCodeAt(o),e<55296||e>56319||o+1===f||(s=u.charCodeAt(o+1))<56320||s>57343?c?u.charAt(o):e:c?u.slice(o,o+2):s-56320+(e-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(y,E,_){var C,m,c,r=y("./_ctx"),n=y("./_invoke"),e=y("./_html"),s=y("./_dom-create"),u=y("./_global"),o=u.process,f=u.setImmediate,d=u.clearImmediate,a=u.MessageChannel,h=u.Dispatch,g=0,p={},S=function(){var B=+this;if(p.hasOwnProperty(B)){var b=p[B];delete p[B],b()}},w=function(B){S.call(B.data)};f&&d||(f=function(B){for(var b=[],A=1;arguments.length>A;)b.push(arguments[A++]);return p[++g]=function(){n(typeof B=="function"?B:Function(B),b)},C(g),g},d=function(B){delete p[B]},y("./_cof")(o)=="process"?C=function(B){o.nextTick(r(S,B,1))}:h&&h.now?C=function(B){h.now(r(S,B,1))}:a?(m=new a,c=m.port2,m.port1.onmessage=w,C=r(c.postMessage,c,1)):u.addEventListener&&typeof postMessage=="function"&&!u.importScripts?(C=function(B){u.postMessage(B+"","*")},u.addEventListener("message",w,!1)):C="onreadystatechange"in s("script")?function(B){e.appendChild(s("script")).onreadystatechange=function(){e.removeChild(this),S.call(B)}}:function(B){setTimeout(r(S,B,1),0)}),E.exports={set:f,clear:d}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(y,E,_){var C=y("./_to-integer"),m=Math.max,c=Math.min;E.exports=function(r,n){return r=C(r),r<0?m(r+n,0):c(r,n)}},{"./_to-integer":122}],122:[function(y,E,_){var C=Math.ceil,m=Math.floor;E.exports=function(c){return isNaN(c=+c)?0:(c>0?m:C)(c)}},{}],123:[function(y,E,_){var C=y("./_iobject"),m=y("./_defined");E.exports=function(c){return C(m(c))}},{"./_defined":68,"./_iobject":82}],124:[function(y,E,_){var C=y("./_to-integer"),m=Math.min;E.exports=function(c){return c>0?m(C(c),9007199254740991):0}},{"./_to-integer":122}],125:[function(y,E,_){var C=y("./_defined");E.exports=function(m){return Object(C(m))}},{"./_defined":68}],126:[function(y,E,_){var C=y("./_is-object");E.exports=function(m,c){if(!C(m))return m;var r,n;if(c&&typeof(r=m.toString)=="function"&&!C(n=r.call(m)))return n;if(typeof(r=m.valueOf)=="function"&&!C(n=r.call(m)))return n;if(!c&&typeof(r=m.toString)=="function"&&!C(n=r.call(m)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(y,E,_){var C=0,m=Math.random();E.exports=function(c){return"Symbol(".concat(c===void 0?"":c,")_",(++C+m).toString(36))}},{}],128:[function(y,E,_){var C=y("./_global"),m=C.navigator;E.exports=m&&m.userAgent||""},{"./_global":76}],129:[function(y,E,_){var C=y("./_global"),m=y("./_core"),c=y("./_library"),r=y("./_wks-ext"),n=y("./_object-dp").f;E.exports=function(e){var s=m.Symbol||(m.Symbol=c?{}:C.Symbol||{});e.charAt(0)=="_"||e in s||n(s,e,{value:r.f(e)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(y,E,_){_.f=y("./_wks")},{"./_wks":131}],131:[function(y,E,_){var C=y("./_shared")("wks"),m=y("./_uid"),c=y("./_global").Symbol,r=typeof c=="function";(E.exports=function(n){return C[n]||(C[n]=r&&c[n]||(r?c:m)("Symbol."+n))}).store=C},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(y,E,_){var C=y("./_classof"),m=y("./_wks")("iterator"),c=y("./_iterators");E.exports=y("./_core").getIteratorMethod=function(r){if(r!=null)return r[m]||r["@@iterator"]||c[C(r)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(y,E,_){"use strict";var C=y("./_ctx"),m=y("./_export"),c=y("./_to-object"),r=y("./_iter-call"),n=y("./_is-array-iter"),e=y("./_to-length"),s=y("./_create-property"),u=y("./core.get-iterator-method");m(m.S+m.F*!y("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(o){var f,d,a,h,g=c(o),p=typeof this=="function"?this:Array,S=arguments.length,w=S>1?arguments[1]:void 0,B=w!==void 0,b=0,A=u(g);if(B&&(w=C(w,S>2?arguments[2]:void 0,2)),A==null||p==Array&&n(A))for(f=e(g.length),d=new p(f);f>b;b++)s(d,b,B?w(g[b],b):g[b]);else for(h=A.call(g),d=new p;!(a=h.next()).done;b++)s(d,b,B?r(h,w,[a.value,b],!0):a.value);return d.length=b,d}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(y,E,_){"use strict";var C=y("./_add-to-unscopables"),m=y("./_iter-step"),c=y("./_iterators"),r=y("./_to-iobject");E.exports=y("./_iter-define")(Array,"Array",function(n,e){this._t=r(n),this._i=0,this._k=e},function(){var n=this._t,e=this._k,s=this._i++;return!n||s>=n.length?(this._t=void 0,m(1)):e=="keys"?m(0,s):e=="values"?m(0,n[s]):m(0,[s,n[s]])},"values"),c.Arguments=c.Array,C("keys"),C("values"),C("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(y,E,_){"use strict";var C=y("./_is-object"),m=y("./_object-gpo"),c=y("./_wks")("hasInstance"),r=Function.prototype;c in r||y("./_object-dp").f(r,c,{value:function(n){if(typeof this!="function"||!C(n))return!1;if(!C(this.prototype))return n instanceof this;for(;n=m(n);)if(this.prototype===n)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(y,E,_){var C=y("./_export");C(C.S+C.F,"Object",{assign:y("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(y,E,_){var C=y("./_export");C(C.S,"Object",{create:y("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(y,E,_){var C=y("./_export");C(C.S+C.F*!y("./_descriptors"),"Object",{defineProperty:y("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(y,E,_){y("./_object-sap")("getOwnPropertyNames",function(){return y("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(y,E,_){var C=y("./_to-object"),m=y("./_object-gpo");y("./_object-sap")("getPrototypeOf",function(){return function(c){return m(C(c))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(y,E,_){var C=y("./_to-object"),m=y("./_object-keys");y("./_object-sap")("keys",function(){return function(c){return m(C(c))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(y,E,_){arguments[4][36][0].apply(_,arguments)},{dup:36}],143:[function(y,E,_){"use strict";var C,m,c,r,n=y("./_library"),e=y("./_global"),s=y("./_ctx"),u=y("./_classof"),o=y("./_export"),f=y("./_is-object"),d=y("./_a-function"),a=y("./_an-instance"),h=y("./_for-of"),g=y("./_species-constructor"),p=y("./_task").set,S=y("./_microtask")(),w=y("./_new-promise-capability"),B=y("./_perform"),b=y("./_user-agent"),A=y("./_promise-resolve"),l=e.TypeError,i=e.process,x=i&&i.versions,O=x&&x.v8||"",T=e.Promise,D=u(i)=="process",R=function(){},k=m=w.f,H=!!function(){try{var te=T.resolve(1),oe=(te.constructor={})[y("./_wks")("species")]=function(me){me(R,R)};return(D||typeof PromiseRejectionEvent=="function")&&te.then(R)instanceof oe&&O.indexOf("6.6")!==0&&b.indexOf("Chrome/66")===-1}catch(me){}}(),J=function(te){var oe;return!(!f(te)||typeof(oe=te.then)!="function")&&oe},U=function(te,oe){if(!te._n){te._n=!0;var me=te._c;S(function(){for(var se=te._v,_e=te._s==1,Ae=0;me.length>Ae;)!function(Ee){var pe,he,ie,fe=_e?Ee.ok:Ee.fail,ge=Ee.resolve,ce=Ee.reject,Ie=Ee.domain;try{fe?(_e||(te._h==2&&N(te),te._h=1),fe===!0?pe=se:(Ie&&Ie.enter(),pe=fe(se),Ie&&(Ie.exit(),ie=!0)),pe===Ee.promise?ce(l("Promise-chain cycle")):(he=J(pe))?he.call(pe,ge,ce):ge(pe)):ce(se)}catch(Fe){Ie&&!ie&&Ie.exit(),ce(Fe)}}(me[Ae++]);te._c=[],te._n=!1,oe&&!te._h&&K(te)})}},K=function(te){p.call(e,function(){var oe,me,se,_e=te._v,Ae=G(te);if(Ae&&(oe=B(function(){D?i.emit("unhandledRejection",_e,te):(me=e.onunhandledrejection)?me({promise:te,reason:_e}):(se=e.console)&&se.error&&se.error("Unhandled promise rejection",_e)}),te._h=D||G(te)?2:1),te._a=void 0,Ae&&oe.e)throw oe.v})},G=function(te){return te._h!==1&&(te._a||te._c).length===0},N=function(te){p.call(e,function(){var oe;D?i.emit("rejectionHandled",te):(oe=e.onrejectionhandled)&&oe({promise:te,reason:te._v})})},Q=function(te){var oe=this;oe._d||(oe._d=!0,oe=oe._w||oe,oe._v=te,oe._s=2,oe._a||(oe._a=oe._c.slice()),U(oe,!0))},X=function(te){var oe,me=this;if(!me._d){me._d=!0,me=me._w||me;try{if(me===te)throw l("Promise can't be resolved itself");(oe=J(te))?S(function(){var se={_w:me,_d:!1};try{oe.call(te,s(X,se,1),s(Q,se,1))}catch(_e){Q.call(se,_e)}}):(me._v=te,me._s=1,U(me,!1))}catch(se){Q.call({_w:me,_d:!1},se)}}};H||(T=function(te){a(this,T,"Promise","_h"),d(te),C.call(this);try{te(s(X,this,1),s(Q,this,1))}catch(oe){Q.call(this,oe)}},C=function(te){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=y("./_redefine-all")(T.prototype,{then:function(te,oe){var me=k(g(this,T));return me.ok=typeof te!="function"||te,me.fail=typeof oe=="function"&&oe,me.domain=D?i.domain:void 0,this._c.push(me),this._a&&this._a.push(me),this._s&&U(this,!1),me.promise},catch:function(te){return this.then(void 0,te)}}),c=function(){var te=new C;this.promise=te,this.resolve=s(X,te,1),this.reject=s(Q,te,1)},w.f=k=function(te){return te===T||te===r?new c(te):m(te)}),o(o.G+o.W+o.F*!H,{Promise:T}),y("./_set-to-string-tag")(T,"Promise"),y("./_set-species")("Promise"),r=y("./_core").Promise,o(o.S+o.F*!H,"Promise",{reject:function(te){var oe=k(this);return(0,oe.reject)(te),oe.promise}}),o(o.S+o.F*(n||!H),"Promise",{resolve:function(te){return A(n&&this===r?T:this,te)}}),o(o.S+o.F*!(H&&y("./_iter-detect")(function(te){T.all(te).catch(R)})),"Promise",{all:function(te){var oe=this,me=k(oe),se=me.resolve,_e=me.reject,Ae=B(function(){var Ee=[],pe=0,he=1;h(te,!1,function(ie){var fe=pe++,ge=!1;Ee.push(void 0),he++,oe.resolve(ie).then(function(ce){ge||(ge=!0,Ee[fe]=ce,--he||se(Ee))},_e)}),--he||se(Ee)});return Ae.e&&_e(Ae.v),me.promise},race:function(te){var oe=this,me=k(oe),se=me.reject,_e=B(function(){h(te,!1,function(Ae){oe.resolve(Ae).then(me.resolve,se)})});return _e.e&&se(_e.v),me.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(y,E,_){var C=y("./_export"),m=y("./_to-absolute-index"),c=String.fromCharCode,r=String.fromCodePoint;C(C.S+C.F*(!!r&&r.length!=1),"String",{fromCodePoint:function(n){for(var e,s=[],u=arguments.length,o=0;u>o;){if(e=+arguments[o++],m(e,1114111)!==e)throw RangeError(e+" is not a valid code point");s.push(e<65536?c(e):c(55296+((e-=65536)>>10),e%1024+56320))}return s.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(y,E,_){"use strict";var C=y("./_string-at")(!0);y("./_iter-define")(String,"String",function(m){this._t=String(m),this._i=0},function(){var m,c=this._t,r=this._i;return r>=c.length?{value:void 0,done:!0}:(m=C(c,r),this._i+=m.length,{value:m,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(y,E,_){"use strict";var C=y("./_global"),m=y("./_has"),c=y("./_descriptors"),r=y("./_export"),n=y("./_redefine"),e=y("./_meta").KEY,s=y("./_fails"),u=y("./_shared"),o=y("./_set-to-string-tag"),f=y("./_uid"),d=y("./_wks"),a=y("./_wks-ext"),h=y("./_wks-define"),g=y("./_enum-keys"),p=y("./_is-array"),S=y("./_an-object"),w=y("./_is-object"),B=y("./_to-iobject"),b=y("./_to-primitive"),A=y("./_property-desc"),l=y("./_object-create"),i=y("./_object-gopn-ext"),x=y("./_object-gopd"),O=y("./_object-dp"),T=y("./_object-keys"),D=x.f,R=O.f,k=i.f,H=C.Symbol,J=C.JSON,U=J&&J.stringify,K=d("_hidden"),G=d("toPrimitive"),N={}.propertyIsEnumerable,Q=u("symbol-registry"),X=u("symbols"),te=u("op-symbols"),oe=Object.prototype,me=typeof H=="function",se=C.QObject,_e=!se||!se.prototype||!se.prototype.findChild,Ae=c&&s(function(){return l(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a!=7})?function(de,ne,le){var De=D(oe,ne);De&&delete oe[ne],R(de,ne,le),De&&de!==oe&&R(oe,ne,De)}:R,Ee=function(de){var ne=X[de]=l(H.prototype);return ne._k=de,ne},pe=me&&typeof H.iterator=="symbol"?function(de){return typeof de=="symbol"}:function(de){return de instanceof H},he=function(de,ne,le){return de===oe&&he(te,ne,le),S(de),ne=b(ne,!0),S(le),m(X,ne)?(le.enumerable?(m(de,K)&&de[K][ne]&&(de[K][ne]=!1),le=l(le,{enumerable:A(0,!1)})):(m(de,K)||R(de,K,A(1,{})),de[K][ne]=!0),Ae(de,ne,le)):R(de,ne,le)},ie=function(de,ne){S(de);for(var le,De=g(ne=B(ne)),Xe=0,xt=De.length;xt>Xe;)he(de,le=De[Xe++],ne[le]);return de},fe=function(de,ne){return ne===void 0?l(de):ie(l(de),ne)},ge=function(de){var ne=N.call(this,de=b(de,!0));return!(this===oe&&m(X,de)&&!m(te,de))&&(!(ne||!m(this,de)||!m(X,de)||m(this,K)&&this[K][de])||ne)},ce=function(de,ne){if(de=B(de),ne=b(ne,!0),de!==oe||!m(X,ne)||m(te,ne)){var le=D(de,ne);return!le||!m(X,ne)||m(de,K)&&de[K][ne]||(le.enumerable=!0),le}},Ie=function(de){for(var ne,le=k(B(de)),De=[],Xe=0;le.length>Xe;)m(X,ne=le[Xe++])||ne==K||ne==e||De.push(ne);return De},Fe=function(de){for(var ne,le=de===oe,De=k(le?te:B(de)),Xe=[],xt=0;De.length>xt;)!m(X,ne=De[xt++])||le&&!m(oe,ne)||Xe.push(X[ne]);return Xe};me||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var de=f(arguments.length>0?arguments[0]:void 0),ne=function(le){this===oe&&ne.call(te,le),m(this,K)&&m(this[K],de)&&(this[K][de]=!1),Ae(this,de,A(1,le))};return c&&_e&&Ae(oe,de,{configurable:!0,set:ne}),Ee(de)},n(H.prototype,"toString",function(){return this._k}),x.f=ce,O.f=he,y("./_object-gopn").f=i.f=Ie,y("./_object-pie").f=ge,y("./_object-gops").f=Fe,c&&!y("./_library")&&n(oe,"propertyIsEnumerable",ge,!0),a.f=function(de){return Ee(d(de))}),r(r.G+r.W+r.F*!me,{Symbol:H});for(var ke="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ke.length>re;)d(ke[re++]);for(var F=T(d.store),W=0;F.length>W;)h(F[W++]);r(r.S+r.F*!me,"Symbol",{for:function(de){return m(Q,de+="")?Q[de]:Q[de]=H(de)},keyFor:function(de){if(!pe(de))throw TypeError(de+" is not a symbol!");for(var ne in Q)if(Q[ne]===de)return ne},useSetter:function(){_e=!0},useSimple:function(){_e=!1}}),r(r.S+r.F*!me,"Object",{create:fe,defineProperty:he,defineProperties:ie,getOwnPropertyDescriptor:ce,getOwnPropertyNames:Ie,getOwnPropertySymbols:Fe}),J&&r(r.S+r.F*(!me||s(function(){var de=H();return U([de])!="[null]"||U({a:de})!="{}"||U(Object(de))!="{}"})),"JSON",{stringify:function(de){for(var ne,le,De=[de],Xe=1;arguments.length>Xe;)De.push(arguments[Xe++]);if(le=ne=De[1],(w(ne)||de!==void 0)&&!pe(de))return p(ne)||(ne=function(xt,Ke){if(typeof le=="function"&&(Ke=le.call(this,xt,Ke)),!pe(Ke))return Ke}),De[1]=ne,U.apply(J,De)}}),H.prototype[G]||y("./_hide")(H.prototype,G,H.prototype.valueOf),o(H,"Symbol"),o(Math,"Math",!0),o(C.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(y,E,_){"use strict";var C=y("./_export"),m=y("./_core"),c=y("./_global"),r=y("./_species-constructor"),n=y("./_promise-resolve");C(C.P+C.R,"Promise",{finally:function(e){var s=r(this,m.Promise||c.Promise),u=typeof e=="function";return this.then(u?function(o){return n(s,e()).then(function(){return o})}:e,u?function(o){return n(s,e()).then(function(){throw o})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(y,E,_){"use strict";var C=y("./_export"),m=y("./_new-promise-capability"),c=y("./_perform");C(C.S,"Promise",{try:function(r){var n=m.f(this),e=c(r);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(y,E,_){y("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(y,E,_){y("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(y,E,_){y("./es6.array.iterator");for(var C=y("./_global"),m=y("./_hide"),c=y("./_iterators"),r=y("./_wks")("toStringTag"),n="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(","),e=0;e0?"-":"+")+r(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][B%10>3?0:(B%100-B%10!=10)*B%10],W:R,N:k};return h.replace(o,function(J){return J in H?H[J]:J.slice(1,J.length-1)})}}();u.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"},u.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"]},typeof P=="function"&&P.amd?P(function(){return u}):(_===void 0?"undefined":(0,m.default)(_))==="object"?E.exports=u:c.dateFormat=u}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(y,E,_){(function(C){function m(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function c(s){var u=this.useColors;if(s[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+s[0]+(u?"%c ":" ")+"+"+_.humanize(this.diff),u){var o="color: "+this.color;s.splice(1,0,o,"color: inherit");var f=0,d=0;s[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(f++,a==="%c"&&(d=f))}),s.splice(d,0,o)}}function r(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(s){try{s==null?_.storage.removeItem("debug"):_.storage.debug=s}catch(u){}}function e(){var s;try{s=_.storage.debug}catch(u){}return!s&&C!==void 0&&"env"in C&&(s=C.env.DEBUG),s}_=E.exports=y("./debug"),_.log=r,_.formatArgs=c,_.save=n,_.load=e,_.useColors=m,_.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(s){}}(),_.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],_.formatters.j=function(s){try{return JSON.stringify(s)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}},_.enable(e())}).call(this,y("_process"))},{"./debug":156,_process:173}],156:[function(y,E,_){function C(u){var o,f=0;for(o in u)f=(f<<5)-f+u.charCodeAt(o),f|=0;return _.colors[Math.abs(f)%_.colors.length]}function m(u){function o(){if(o.enabled){var f=o,d=+new Date,a=d-(s||d);f.diff=a,f.prev=s,f.curr=d,s=d;for(var h=new Array(arguments.length),g=0;g]/;E.exports=C},{}],158:[function(y,E,_){function C(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function m(e){return typeof e=="function"}function c(e){return typeof e=="number"}function r(e){return typeof e=="object"&&e!==null}function n(e){return e===void 0}E.exports=C,C.EventEmitter=C,C.prototype._events=void 0,C.prototype._maxListeners=void 0,C.defaultMaxListeners=10,C.prototype.setMaxListeners=function(e){if(!c(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},C.prototype.emit=function(e){var s,u,o,f,d,a;if(this._events||(this._events={}),e==="error"&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var h=new Error('Uncaught, unspecified "error" event. ('+s+")");throw h.context=s,h}if(u=this._events[e],n(u))return!1;if(m(u))switch(arguments.length){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),u.apply(this,f)}else if(r(u))for(f=Array.prototype.slice.call(arguments,1),a=u.slice(),o=a.length,d=0;d0&&this._events[e].length>u&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace()),this},C.prototype.on=C.prototype.addListener,C.prototype.once=function(e,s){function u(){this.removeListener(e,u),o||(o=!0,s.apply(this,arguments))}if(!m(s))throw TypeError("listener must be a function");var o=!1;return u.listener=s,this.on(e,u),this},C.prototype.removeListener=function(e,s){var u,o,f,d;if(!m(s))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(u=this._events[e],f=u.length,o=-1,u===s||m(u.listener)&&u.listener===s)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,s);else if(r(u)){for(d=f;d-- >0;)if(u[d]===s||u[d].listener&&u[d].listener===s){o=d;break}if(o<0)return this;u.length===1?(u.length=0,delete this._events[e]):u.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,s)}return this},C.prototype.removeAllListeners=function(e){var s,u;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(u=this._events[e],m(u))this.removeListener(e,u);else if(u)for(;u.length;)this.removeListener(e,u[u.length-1]);return delete this._events[e],this},C.prototype.listeners=function(e){return this._events&&this._events[e]?m(this._events[e])?[this._events[e]]:this._events[e].slice():[]},C.prototype.listenerCount=function(e){if(this._events){var s=this._events[e];if(m(s))return 1;if(s)return s.length}return 0},C.listenerCount=function(e,s){return e.listenerCount(s)}},{}],159:[function(y,E,_){var C=y("http"),m=E.exports;for(var c in C)C.hasOwnProperty(c)&&(m[c]=C[c]);m.request=function(r,n){return r||(r={}),r.scheme="https",r.protocol="https:",C.request.call(this,r,n)}},{http:196}],160:[function(y,E,_){"use strict";var C=y("util"),m=y("ms");E.exports=function(c){if(typeof c=="number")return c;var r=m(c);if(r===void 0){var n=new Error(C.format("humanize-ms(%j) result undefined",c));console.warn(n.stack)}return r}},{ms:169,util:207}],161:[function(y,E,_){_.read=function(C,m,c,r,n){var e,s,u=8*n-r-1,o=(1<>1,d=-7,a=c?n-1:0,h=c?-1:1,g=C[m+a];for(a+=h,e=g&(1<<-d)-1,g>>=-d,d+=u;d>0;e=256*e+C[m+a],a+=h,d-=8);for(s=e&(1<<-d)-1,e>>=-d,d+=r;d>0;s=256*s+C[m+a],a+=h,d-=8);if(e===0)e=1-f;else{if(e===o)return s?NaN:1/0*(g?-1:1);s+=Math.pow(2,r),e-=f}return(g?-1:1)*s*Math.pow(2,e-r)},_.write=function(C,m,c,r,n,e){var s,u,o,f=8*e-n-1,d=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:e-1,p=r?1:-1,S=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(u=isNaN(m)?1:0,s=d):(s=Math.floor(Math.log(m)/Math.LN2),m*(o=Math.pow(2,-s))<1&&(s--,o*=2),m+=s+a>=1?h/o:h*Math.pow(2,1-a),m*o>=2&&(s++,o/=2),s+a>=d?(u=0,s=d):s+a>=1?(u=(m*o-1)*Math.pow(2,n),s+=a):(u=m*Math.pow(2,a-1)*Math.pow(2,n),s=0));n>=8;C[c+g]=255&u,g+=p,u/=256,n-=8);for(s=s<0;C[c+g]=255&s,g+=p,s/=256,f-=8);C[c+g-p]|=128*S}},{}],162:[function(y,E,_){typeof Object.create=="function"?E.exports=function(C,m){C.super_=m,C.prototype=Object.create(m.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}})}:E.exports=function(C,m){C.super_=m;var c=function(){};c.prototype=m.prototype,C.prototype=new c,C.prototype.constructor=C}},{}],163:[function(y,E,_){function C(c){return!!c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c)}function m(c){return typeof c.readFloatLE=="function"&&typeof c.slice=="function"&&C(c.slice(0,0))}E.exports=function(c){return c!=null&&(C(c)||m(c)||!!c._isBuffer)}},{}],164:[function(y,E,_){!function(C){function m(n){return r.call(n).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function c(n){return typeof n=="function"&&(/^class(\s|\{\}$)/.test(r.call(n))||/^.*classCallCheck\(/.test(m(n)))}var r=Function.prototype.toString;_!==void 0?(E!==void 0&&E.exports&&(_=E.exports=c),_.isClass=c):typeof P=="function"&&P.amd?P([],function(){return c}):C.isClass=c}(this)},{}],165:[function(y,E,_){"use strict";function C(e){var s=e.slice(2);return s=s[0].toLowerCase()+s.slice(1)}var m=y("core-util-is"),c=y("isstream"),r=y("is-class");Object.keys(m).map(function(e){_[C(e)]=m[e]}),_.stream=c,_.readableStream=c.isReadable,_.writableStream=c.isWritable,_.duplexStream=c.isDuplex,_.class=r,_.finite=function(e){return Number.isFinite(e)},_.NaN=function(e){return Number.isNaN(e)},_.generator=function(e){return e&&typeof e.next=="function"&&typeof e.throw=="function"},_.generatorFunction=function(e){return e&&e.constructor&&e.constructor.name==="GeneratorFunction"},_.asyncFunction=function(e){return e&&e.constructor&&e.constructor.name==="AsyncFunction"},_.promise=function(e){return e&&typeof e.then=="function"};var n=Math.pow(2,31);_.int=function(e){return m.isNumber(e)&&e%1==0},_.int32=function(e){return _.int(e)&&e=-n},_.long=function(e){return _.int(e)&&(e>=n||e<-n)},_.Long=function(e){return _.object(e)&&_.number(e.high)&&_.number(e.low)},_.double=function(e){return m.isNumber(e)&&!isNaN(e)&&e%1!=0},_.date=function(e){return e instanceof Date},_.regExp=function(e){return e instanceof RegExp},_.regexp=_.regExp,_.error=function(e){return e instanceof Error},_.array=function(e){return Array.isArray(e)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(y,E,_){var C={}.toString;E.exports=Array.isArray||function(m){return C.call(m)=="[object Array]"}},{}],167:[function(y,E,_){function C(e){return e instanceof n.Stream}function m(e){return C(e)&&typeof e._read=="function"&&typeof e._readableState=="object"}function c(e){return C(e)&&typeof e._write=="function"&&typeof e._writableState=="object"}function r(e){return m(e)&&c(e)}var n=y("stream");E.exports=C,E.exports.isReadable=m,E.exports.isWritable=c,E.exports.isDuplex=r},{stream:195}],168:[function(y,E,_){"use strict";function C(c,r,n){if(!c)throw new TypeError("argument dest is required");if(!r)throw new TypeError("argument src is required");return n===void 0&&(n=!0),Object.getOwnPropertyNames(r).forEach(function(e){if(n||!m.call(c,e)){var s=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(c,e,s)}}),c}E.exports=C;var m=Object.prototype.hasOwnProperty},{}],169:[function(y,E,_){function C(f){if(f=String(f),!(f.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(f);if(d){var a=parseFloat(d[1]);switch((d[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*o;case"days":case"day":case"d":return a*u;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*e;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function m(f){return f>=u?Math.round(f/u)+"d":f>=s?Math.round(f/s)+"h":f>=e?Math.round(f/e)+"m":f>=n?Math.round(f/n)+"s":f+"ms"}function c(f){return r(f,u,"day")||r(f,s,"hour")||r(f,e,"minute")||r(f,n,"second")||f+" ms"}function r(f,d,a){if(!(f0)return C(f);if(a==="number"&&isNaN(f)===!1)return d.long?c(f):m(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},{}],170:[function(y,E,_){(function(C){function m(e,s){for(var u=0,o=e.length-1;o>=0;o--){var f=e[o];f==="."?e.splice(o,1):f===".."?(e.splice(o,1),u++):u&&(e.splice(o,1),u--)}if(s)for(;u--;u)e.unshift("..");return e}function c(e){typeof e!="string"&&(e+="");var s,u=0,o=-1,f=!0;for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!f){u=s+1;break}}else o===-1&&(f=!1,o=s+1);return o===-1?"":e.slice(u,o)}function r(e,s){if(e.filter)return e.filter(s);for(var u=[],o=0;o=-1&&!s;u--){var o=u>=0?arguments[u]:C.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,s=o.charAt(0)==="/")}return e=m(r(e.split("/"),function(f){return!!f}),!s).join("/"),(s?"/":"")+e||"."},_.normalize=function(e){var s=_.isAbsolute(e),u=n(e,-1)==="/";return e=m(r(e.split("/"),function(o){return!!o}),!s).join("/"),e||s||(e="."),e&&u&&(e+="/"),(s?"/":"")+e},_.isAbsolute=function(e){return e.charAt(0)==="/"},_.join=function(){var e=Array.prototype.slice.call(arguments,0);return _.normalize(r(e,function(s,u){if(typeof s!="string")throw new TypeError("Arguments to path.join must be strings");return s}).join("/"))},_.relative=function(e,s){function u(p){for(var S=0;S=0&&p[w]==="";w--);return S>w?[]:p.slice(S,w-S+1)}e=_.resolve(e).substr(1),s=_.resolve(s).substr(1);for(var o=u(e.split("/")),f=u(s.split("/")),d=Math.min(o.length,f.length),a=d,h=0;h=1;--d)if((s=e.charCodeAt(d))===47){if(!f){o=d;break}}else f=!1;return o===-1?u?"/":".":u&&o===1?"/":e.slice(0,o)},_.basename=function(e,s){var u=c(e);return s&&u.substr(-1*s.length)===s&&(u=u.substr(0,u.length-s.length)),u},_.extname=function(e){typeof e!="string"&&(e+="");for(var s=-1,u=0,o=-1,f=!0,d=0,a=e.length-1;a>=0;--a){var h=e.charCodeAt(a);if(h!==47)o===-1&&(f=!1,o=a+1),h===46?s===-1?s=a:d!==1&&(d=1):s!==-1&&(d=-1);else if(!f){u=a+1;break}}return s===-1||o===-1||d===0||d===1&&s===o-1&&s===u+1?"":e.slice(s,o)};var n="ab".substr(-1)==="b"?function(e,s,u){return e.substr(s,u)}:function(e,s,u){return s<0&&(s=e.length+s),e.substr(s,u)}}).call(this,y("_process"))},{_process:173}],171:[function(y,E,_){(function(C){(function(){"use strict";function m(O){return O=String(O),O.charAt(0).toUpperCase()+O.slice(1)}function c(O,T,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 T&&D&&/^Win/i.test(O)&&!/^Windows Phone /i.test(O)&&(R=R[/[\d.]+$/.exec(O)])&&(O="Windows "+R),O=String(O),T&&D&&(O=O.replace(RegExp(T,"i"),D)),O=n(O.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])}function r(O,T){var D=-1,R=O?O.length:0;if(typeof R=="number"&&R>-1&&R<=B)for(;++D3&&"WebKit"||/\bOpera\b/.test(Fe)&&(/\bOPR\b/.test(O)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(O)&&!/^(?:Trident|EdgeHTML)$/.test(Ie)&&"WebKit"||!Ie&&/\bMSIE\b/i.test(O)&&(F=="Mac OS"?"Tasman":"Trident")||Ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Fe)&&"NetFront")&&(Ie=[U]),Fe=="IE"&&(U=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(O)||0)[1])?(Fe+=" Mobile",F="Windows Phone "+(/\+$/.test(U)?U:U+".x"),ie.unshift("desktop mode")):/\bWPDesktop\b/i.test(O)?(Fe="IE Mobile",F="Windows Phone 8.x",ie.unshift("desktop mode"),ce||(ce=(/\brv:([\d.]+)/.exec(O)||0)[1])):Fe!="IE"&&Ie=="Trident"&&(U=/\brv:([\d.]+)/.exec(O))&&(Fe&&ie.push("identifying as "+Fe+(ce?" "+ce:"")),Fe="IE",ce=U[1]),ge){if(u(R,"global"))if(oe&&(U=oe.lang.System,he=U.getProperty("os.arch"),F=F||U.getProperty("os.name")+" "+U.getProperty("os.version")),me){try{ce=R.require("ringo/engine").version.join("."),Fe="RingoJS"}catch(de){(U=R.system)&&U.global.system==R.system&&(Fe="Narwhal",F||(F=U[0].os||null))}Fe||(Fe="Rhino")}else typeof R.process=="object"&&!R.process.browser&&(U=R.process)&&(typeof U.versions=="object"&&(typeof U.versions.electron=="string"?(ie.push("Node "+U.versions.node),Fe="Electron",ce=U.versions.electron):typeof U.versions.nw=="string"&&(ie.push("Chromium "+ce,"Node "+U.versions.node),Fe="NW.js",ce=U.versions.nw)),Fe||(Fe="Node.js",he=U.arch,F=U.platform,ce=/[\d.]+/.exec(U.version),ce=ce?ce[0]:null));else s(U=R.runtime)==N?(Fe="Adobe AIR",F=U.flash.system.Capabilities.os):s(U=R.phantom)==te?(Fe="PhantomJS",ce=(U=U.version||null)&&U.major+"."+U.minor+"."+U.patch):typeof Ae.documentMode=="number"&&(U=/\bTrident\/(\d+)/i.exec(O))?(ce=[ce,Ae.documentMode],(U=+U[1]+4)!=ce[1]&&(ie.push("IE "+ce[1]+" mode"),Ie&&(Ie[1]=""),ce[1]=U),ce=Fe=="IE"?String(ce[1].toFixed(1)):ce[0]):typeof Ae.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Fe)&&(ie.push("masking as "+Fe+" "+ce),Fe="IE",ce="11.0",Ie=["Trident"],F="Windows");F=F&&n(F)}if(ce&&(U=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ce)||/(?:alpha|beta)(?: ?\d)?/i.exec(O+";"+(ge&&H.appMinorVersion))||/\bMinefield\b/i.test(O)&&"a")&&(fe=/b/i.test(U)?"beta":"alpha",ce=ce.replace(RegExp(U+"\\+?$"),"")+(fe=="beta"?_e:se)+(/\d+\+?/.exec(U)||"")),Fe=="Fennec"||Fe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(F))Fe="Firefox Mobile";else if(Fe=="Maxthon"&&ce)ce=ce.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ke))ke=="Xbox 360"&&(F=null),ke=="Xbox 360"&&/\bIEMobile\b/.test(O)&&ie.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Fe)&&(!Fe||ke||/Browser|Mobi/.test(Fe))||F!="Windows CE"&&!/Mobi/i.test(O))if(Fe=="IE"&&ge)try{R.external===null&&ie.unshift("platform preview")}catch(de){ie.unshift("embedded")}else(/\bBlackBerry\b/.test(ke)||/\bBB10\b/.test(O))&&(U=(RegExp(ke.replace(/ +/g," *")+"/([.\\d]+)","i").exec(O)||0)[1]||ce)?(U=[U,/BB10/.test(O)],F=(U[1]?(ke=null,re="BlackBerry"):"Device Software")+" "+U[0],ce=null):this!=e&&ke!="Wii"&&(ge&&Ee||/Opera/.test(Fe)&&/\b(?:MSIE|Firefox)\b/i.test(O)||Fe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(F)||Fe=="IE"&&(F&&!/^Win/.test(F)&&ce>5.5||/\bWindows XP\b/.test(F)&&ce>8||ce==8&&!/\bTrident\b/.test(O)))&&!b.test(U=a.call(e,O.replace(b,"")+";"))&&U.name&&(U="ing as "+U.name+((U=U.version)?" "+U:""),b.test(Fe)?(/\bIE\b/.test(U)&&F=="Mac OS"&&(F=null),U="identify"+U):(U="mask"+U,Fe=pe?n(pe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(U)&&(F=null),ge||(ce=null)),Ie=["Presto"],ie.push(U));else Fe+=" Mobile";(U=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(O)||0)[1])&&(U=[parseFloat(U.replace(/\.(\d)$/,".0$1")),U],Fe=="Safari"&&U[1].slice(-1)=="+"?(Fe="WebKit Nightly",fe="alpha",ce=U[1].slice(0,-1)):ce!=U[1]&&ce!=(U[2]=(/\bSafari\/([\d.]+\+?)/i.exec(O)||0)[1])||(ce=null),U[1]=(/\bChrome\/([\d.]+)/i.exec(O)||0)[1],U[0]==537.36&&U[2]==537.36&&parseFloat(U[1])>=28&&Ie=="WebKit"&&(Ie=["Blink"]),ge&&(G||U[1])?(Ie&&(Ie[1]="like Chrome"),U=U[1]||(U=U[0],U<530?1:U<532?2:U<532.05?3:U<533?4:U<534.03?5:U<534.07?6:U<534.1?7:U<534.13?8:U<534.16?9:U<534.24?10:U<534.3?11:U<535.01?12:U<535.02?"13+":U<535.07?15:U<535.11?16:U<535.19?17:U<536.05?18:U<536.1?19:U<537.01?20:U<537.11?"21+":U<537.13?23:U<537.18?24:U<537.24?25:U<537.36?26:Ie!="Blink"?"27":"28")):(Ie&&(Ie[1]="like Safari"),U=U[0],U=U<400?1:U<500?2:U<526?3:U<533?4:U<534?"4+":U<535?5:U<537?6:U<538?7:U<601?8:"8"),Ie&&(Ie[1]+=" "+(U+=typeof U=="number"?".x":/[.+]/.test(U)?"":"+")),Fe=="Safari"&&(!ce||parseInt(ce)>45)&&(ce=U)),Fe=="Opera"&&(U=/\bzbov|zvav$/.exec(F))?(Fe+=" ",ie.unshift("desktop mode"),U=="zvav"?(Fe+="Mini",ce=null):Fe+="Mobile",F=F.replace(RegExp(" *"+U+"$"),"")):Fe=="Safari"&&/\bChrome\b/.exec(Ie&&Ie[1])&&(ie.unshift("desktop mode"),Fe="Chrome Mobile",ce=null,/\bOS X\b/.test(F)?(re="Apple",F="iOS 4.3+"):F=null),ce&&ce.indexOf(U=/[\d.]+$/.exec(F))==0&&O.indexOf("/"+U+"-")>-1&&(F=d(F.replace(U,""))),Ie&&!/\b(?:Avant|Nook)\b/.test(Fe)&&(/Browser|Lunascape|Maxthon/.test(Fe)||Fe!="Safari"&&/^iOS/.test(F)&&/\bSafari\b/.test(Ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Fe)&&Ie[1])&&(U=Ie[Ie.length-1])&&ie.push(U),ie.length&&(ie=["("+ie.join("; ")+")"]),re&&ke&&ke.indexOf(re)<0&&ie.push("on "+re),ke&&ie.push((/^on /.test(ie[ie.length-1])?"":"on ")+ke),F&&(U=/ ([\d.+]+)$/.exec(F),K=U&&F.charAt(F.length-U[0].length-1)=="/",F={architecture:32,family:U&&!K?F.replace(U[0],""):F,version:U?U[1]:null,toString:function(){var de=this.version;return this.family+(de&&!K?" "+de:"")+(this.architecture==64?" 64-bit":"")}}),(U=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(he))&&!/\bi686\b/i.test(he)?(F&&(F.architecture=64,F.family=F.family.replace(RegExp(" *"+U),"")),Fe&&(/\bWOW64\b/i.test(O)||ge&&/\w(?:86|32)$/.test(H.cpuClass||H.platform)&&!/\bWin64; x64\b/i.test(O))&&ie.unshift("32-bit")):F&&/^OS X/.test(F.family)&&Fe=="Chrome"&&parseFloat(ce)>=39&&(F.architecture=64),O||(O=null);var W={};return W.description=O,W.layout=Ie&&Ie[0],W.manufacturer=re,W.name=Fe,W.prerelease=fe,W.product=ke,W.ua=O,W.version=Fe&&ce,W.os=F||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=a,W.toString=D,W.version&&ie.unshift(ce),W.name&&ie.unshift(Fe),F&&Fe&&(F!=String(F).split(" ")[0]||F!=Fe.split(" ")[0]&&!ke)&&ie.push(ke?"("+F+")":"on "+F),ie.length&&(W.description=ie.join(" ")),W}var h={function:!0,object:!0},g=h[typeof window]&&window||this,p=h[typeof _]&&_,S=h[typeof E]&&E&&!E.nodeType&&E,w=p&&S&&typeof C=="object"&&C;!w||w.global!==w&&w.window!==w&&w.self!==w||(g=w);var B=Math.pow(2,53)-1,b=/\bOpera/,A=Object.prototype,l=A.hasOwnProperty,i=A.toString,x=a();typeof P=="function"&&typeof P.amd=="object"&&P.amd?(g.platform=x,P(function(){return x})):p&&S?e(x,function(O,T){p[T]=O}):g.platform=x}).call(this)}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(y,E,_){(function(C){"use strict";function m(c,r,n,e){if(typeof c!="function")throw new TypeError('"callback" argument must be a function');var s,u,o=arguments.length;switch(o){case 0:case 1:return C.nextTick(c);case 2:return C.nextTick(function(){c.call(null,r)});case 3:return C.nextTick(function(){c.call(null,r,n)});case 4:return C.nextTick(function(){c.call(null,r,n,e)});default:for(s=new Array(o-1),u=0;u1)for(var B=1;B1&&(me=oe[0]+"@",X=oe[1]),X=X.replace(U,"."),me+r(X.split("."),te).join(".")}function e(X){for(var te,oe,me=[],se=0,_e=X.length;se<_e;)te=X.charCodeAt(se++),te>=55296&&te<=56319&&se<_e?(oe=X.charCodeAt(se++),(64512&oe)==56320?me.push(((1023&te)<<10)+(1023&oe)+65536):(me.push(te),se--)):me.push(te);return me}function s(X){return r(X,function(te){var oe="";return te>65535&&(te-=65536,oe+=Q(te>>>10&1023|55296),te=56320|1023&te),oe+=Q(te)}).join("")}function u(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:l}function o(X,te){return X+22+75*(X<26)-((te!=0)<<5)}function f(X,te,oe){var me=0;for(X=oe?N(X/T):X>>1,X+=N(X/te);X>G*x>>1;me+=l)X=N(X/G);return N(me+(G+1)*X/(X+O))}function d(X){var te,oe,me,se,_e,Ae,Ee,pe,he,ie,fe=[],ge=X.length,ce=0,Ie=R,Fe=D;for(oe=X.lastIndexOf(k),oe<0&&(oe=0),me=0;me=128&&c("not-basic"),fe.push(X.charCodeAt(me));for(se=oe>0?oe+1:0;se=ge&&c("invalid-input"),pe=u(X.charCodeAt(se++)),(pe>=l||pe>N((A-ce)/Ae))&&c("overflow"),ce+=pe*Ae,he=Ee<=Fe?i:Ee>=Fe+x?x:Ee-Fe,!(peN(A/ie)&&c("overflow"),Ae*=ie;te=fe.length+1,Fe=f(ce-_e,te,_e==0),N(ce/te)>A-Ie&&c("overflow"),Ie+=N(ce/te),ce%=te,fe.splice(ce++,0,Ie)}return s(fe)}function a(X){var te,oe,me,se,_e,Ae,Ee,pe,he,ie,fe,ge,ce,Ie,Fe,ke=[];for(X=e(X),ge=X.length,te=R,oe=0,_e=D,Ae=0;Ae=te&&feN((A-oe)/ce)&&c("overflow"),oe+=(Ee-te)*ce,te=Ee,Ae=0;AeA&&c("overflow"),fe==te){for(pe=oe,he=l;ie=he<=_e?i:he>=_e+x?x:he-_e,!(pe= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=l-i,N=Math.floor,Q=String.fromCharCode;if(B={version:"1.4.1",ucs2:{decode:e,encode:s},decode:d,encode:a,toASCII:g,toUnicode:h},typeof P=="function"&&typeof P.amd=="object"&&P.amd)P("punycode",function(){return B});else if(p&&S)if(E.exports==p)S.exports=B;else for(b in B)B.hasOwnProperty(b)&&(p[b]=B[b]);else m.punycode=B}(this)}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(y,E,_){"use strict";function C(c,r){return Object.prototype.hasOwnProperty.call(c,r)}E.exports=function(c,r,n,e){r=r||"&",n=n||"=";var s={};if(typeof c!="string"||c.length===0)return s;var u=/\+/g;c=c.split(r);var o=1e3;e&&typeof e.maxKeys=="number"&&(o=e.maxKeys);var f=c.length;o>0&&f>o&&(f=o);for(var d=0;d=0?(a=S.substr(0,w),h=S.substr(w+1)):(a=S,h=""),g=decodeURIComponent(a),p=decodeURIComponent(h),C(s,g)?m(s[g])?s[g].push(p):s[g]=[s[g],p]:s[g]=p}return s};var m=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"}},{}],176:[function(y,E,_){"use strict";function C(n,e){if(n.map)return n.map(e);for(var s=[],u=0;u0?(typeof ce=="string"||re.objectMode||(0,K.default)(ce)===oe.prototype||(ce=c(ce)),Fe?re.endEmitted?ge.emit("error",new Error("stream.unshift() after end event")):o(ge,re,ce,!0):re.ended?ge.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!Ie?(ce=re.decoder.write(ce),re.objectMode||ce.length!==0?o(ge,re,ce,!1):w(ge,re)):o(ge,re,ce,!1))):Fe||(re.reading=!1)}return d(re)}function o(ge,ce,Ie,Fe){ce.flowing&&ce.length===0&&!ce.sync?(ge.emit("data",Ie),ge.read(0)):(ce.length+=ce.objectMode?1:Ie.length,Fe?ce.buffer.unshift(Ie):ce.buffer.push(Ie),ce.needReadable&&p(ge)),w(ge,ce)}function f(ge,ce){var Ie;return r(ce)||typeof ce=="string"||ce===void 0||ge.objectMode||(Ie=new TypeError("Invalid non-string/buffer chunk")),Ie}function d(ge){return!ge.ended&&(ge.needReadable||ge.length=fe?ge=fe:(ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++),ge}function h(ge,ce){return ge<=0||ce.length===0&&ce.ended?0:ce.objectMode?1:ge!==ge?ce.flowing&&ce.length?ce.buffer.head.data.length:ce.length:(ge>ce.highWaterMark&&(ce.highWaterMark=a(ge)),ge<=ce.length?ge:ce.ended?ce.length:(ce.needReadable=!0,0))}function g(ge,ce){if(!ce.ended){if(ce.decoder){var Ie=ce.decoder.end();Ie&&Ie.length&&(ce.buffer.push(Ie),ce.length+=ce.objectMode?1:Ie.length)}ce.ended=!0,p(ge)}}function p(ge){var ce=ge._readableState;ce.needReadable=!1,ce.emittedReadable||(Ae("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?G.nextTick(S,ge):S(ge))}function S(ge){Ae("emit readable"),ge.emit("readable"),x(ge)}function w(ge,ce){ce.readingMore||(ce.readingMore=!0,G.nextTick(B,ge,ce))}function B(ge,ce){for(var Ie=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length=ce.length?(Ie=ce.decoder?ce.buffer.join(""):ce.buffer.length===1?ce.buffer.head.data:ce.buffer.concat(ce.length),ce.buffer.clear()):Ie=T(ge,ce.buffer,ce.decoder),Ie}function T(ge,ce,Ie){var Fe;return gere.length?re.length:ge;if(F===re.length?ke+=re:ke+=re.slice(0,ge),(ge-=F)===0){F===re.length?(++Fe,Ie.next?ce.head=Ie.next:ce.head=ce.tail=null):(ce.head=Ie,Ie.data=re.slice(F));break}++Fe}return ce.length-=Fe,ke}function R(ge,ce){var Ie=oe.allocUnsafe(ge),Fe=ce.head,ke=1;for(Fe.data.copy(Ie),ge-=Fe.data.length;Fe=Fe.next;){var re=Fe.data,F=ge>re.length?re.length:ge;if(re.copy(Ie,Ie.length-ge,0,F),(ge-=F)===0){F===re.length?(++ke,Fe.next?ce.head=Fe.next:ce.head=ce.tail=null):(ce.head=Fe,Fe.data=re.slice(F));break}++ke}return ce.length-=ke,Ie}function k(ge){var ce=ge._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,G.nextTick(H,ce,ge))}function H(ge,ce){ge.endEmitted||ge.length!==0||(ge.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function J(ge,ce){for(var Ie=0,Fe=ge.length;Ie=ce.highWaterMark||ce.ended))return Ae("read: emitReadable",ce.length,ce.ended),ce.length===0&&ce.ended?k(this):p(this),null;if((ge=h(ge,ce))===0&&ce.ended)return ce.length===0&&k(this),null;var Fe=ce.needReadable;Ae("need readable",Fe),(ce.length===0||ce.length-ge0?O(ge,ce):null,ke===null?(ce.needReadable=!0,ge=0):ce.length-=ge,ce.length===0&&(ce.ended||(ce.needReadable=!0),Ie!==ge&&ce.ended&&k(this)),ke!==null&&this.emit("data",ke),ke},s.prototype._read=function(ge){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(ge,ce){function Ie(Et,ct){Ae("onunpipe"),Et===le&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,ke())}function Fe(){Ae("onend"),ge.end()}function ke(){Ae("cleanup"),ge.removeListener("close",W),ge.removeListener("finish",de),ge.removeListener("drain",Ke),ge.removeListener("error",F),ge.removeListener("unpipe",Ie),le.removeListener("end",Fe),le.removeListener("end",ne),le.removeListener("data",re),ze=!0,!De.awaitDrain||ge._writableState&&!ge._writableState.needDrain||Ke()}function re(Et){Ae("ondata"),yt=!1,ge.write(Et)!==!1||yt||((De.pipesCount===1&&De.pipes===ge||De.pipesCount>1&&J(De.pipes,ge)!==-1)&&!ze&&(Ae("false write response, pause",le._readableState.awaitDrain),le._readableState.awaitDrain++,yt=!0),le.pause())}function F(Et){Ae("onerror",Et),ne(),ge.removeListener("error",F),X(ge,"error")===0&&ge.emit("error",Et)}function W(){ge.removeListener("finish",de),ne()}function de(){Ae("onfinish"),ge.removeListener("close",W),ne()}function ne(){Ae("unpipe"),le.unpipe(ge)}var le=this,De=this._readableState;switch(De.pipesCount){case 0:De.pipes=ge;break;case 1:De.pipes=[De.pipes,ge];break;default:De.pipes.push(ge)}De.pipesCount+=1,Ae("pipe count=%d opts=%j",De.pipesCount,ce);var Xe=(!ce||ce.end!==!1)&&ge!==C.stdout&&ge!==C.stderr,xt=Xe?Fe:ne;De.endEmitted?G.nextTick(xt):le.once("end",xt),ge.on("unpipe",Ie);var Ke=b(le);ge.on("drain",Ke);var ze=!1,yt=!1;return le.on("data",re),n(ge,"error",F),ge.once("close",W),ge.once("finish",de),ge.emit("pipe",le),De.flowing||(Ae("pipe resume"),le.resume()),ge},s.prototype.unpipe=function(ge){var ce=this._readableState,Ie={hasUnpiped:!1};if(ce.pipesCount===0)return this;if(ce.pipesCount===1)return ge&&ge!==ce.pipes?this:(ge||(ge=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,ge&&ge.emit("unpipe",this,Ie),this);if(!ge){var Fe=ce.pipes,ke=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var re=0;re-1?N.default:Q.nextTick;o.WritableState=u;var oe=y("core-util-is");oe.inherits=y("inherits");var me={deprecate:y("util-deprecate")},se=y("./internal/streams/stream"),_e=y("safe-buffer").Buffer,Ae=m.Uint8Array||function(){},Ee=y("./internal/streams/destroy");oe.inherits(o,se),u.prototype.getBuffer=function(){for(var he=this.bufferedRequest,ie=[];he;)ie.push(he),he=he.next;return ie},function(){try{Object.defineProperty(u.prototype,"buffer",{get:me.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(he){}}();var pe;typeof K.default=="function"&&J.default&&typeof Function.prototype[J.default]=="function"?(pe=Function.prototype[J.default],(0,k.default)(o,J.default,{value:function(he){return!!pe.call(this,he)||this===o&&he&&he._writableState instanceof u}})):pe=function(he){return he instanceof this},o.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},o.prototype.write=function(he,ie,fe){var ge=this._writableState,ce=!1,Ie=!ge.objectMode&&e(he);return Ie&&!_e.isBuffer(he)&&(he=n(he)),typeof ie=="function"&&(fe=ie,ie=null),Ie?ie="buffer":ie||(ie=ge.defaultEncoding),typeof fe!="function"&&(fe=s),ge.ended?f(this,fe):(Ie||d(this,ge,he,fe))&&(ge.pendingcb++,ce=h(this,ge,Ie,he,ie,fe)),ce},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var he=this._writableState;he.corked&&(he.corked--,he.writing||he.corked||he.finished||he.bufferProcessing||!he.bufferedRequest||A(this,he))},o.prototype.setDefaultEncoding=function(he){if(typeof he=="string"&&(he=he.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((he+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+he);return this._writableState.defaultEncoding=he,this},Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),o.prototype._write=function(he,ie,fe){fe(new Error("_write() is not implemented"))},o.prototype._writev=null,o.prototype.end=function(he,ie,fe){var ge=this._writableState;typeof he=="function"?(fe=he,he=null,ie=null):typeof ie=="function"&&(fe=ie,ie=null),he!=null&&this.write(he,ie),ge.corked&&(ge.corked=1,this.uncork()),ge.ending||ge.finished||T(this,ge,fe)},Object.defineProperty(o.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(he){this._writableState&&(this._writableState.destroyed=he)}}),o.prototype.destroy=Ee.destroy,o.prototype._undestroy=Ee.undestroy,o.prototype._destroy=function(he,ie){this.end(),ie(he)}}).call(this,y("_process"),typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(y,E,_){"use strict";function C(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function m(n,e,s){n.copy(e,s)}var c=y("safe-buffer").Buffer,r=y("util");E.exports=function(){function n(){C(this,n),this.head=null,this.tail=null,this.length=0}return n.prototype.push=function(e){var s={data:e,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length},n.prototype.unshift=function(e){var s={data:e,next:this.head};this.length===0&&(this.tail=s),this.head=s,++this.length},n.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},n.prototype.clear=function(){this.head=this.tail=null,this.length=0},n.prototype.join=function(e){if(this.length===0)return"";for(var s=this.head,u=""+s.data;s=s.next;)u+=e+s.data;return u},n.prototype.concat=function(e){if(this.length===0)return c.alloc(0);if(this.length===1)return this.head.data;for(var s=c.allocUnsafe(e>>>0),u=this.head,o=0;u;)m(u.data,s,o),o+=u.data.length,u=u.next;return s},n}(),r&&r.inspect&&r.inspect.custom&&(E.exports.prototype[r.inspect.custom]=function(){var n=r.inspect({length:this.length});return this.constructor.name+" "+n})},{"safe-buffer":193,util:36}],185:[function(y,E,_){"use strict";function C(n,e){var s=this,u=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return u||o?(e?e(n):!n||this._writableState&&this._writableState.errorEmitted||r.nextTick(c,this,n),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(f){!e&&f?(r.nextTick(c,s,f),s._writableState&&(s._writableState.errorEmitted=!0)):e&&e(f)}),this)}function m(){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 c(n,e){n.emit("error",e)}var r=y("process-nextick-args");E.exports={destroy:C,undestroy:m}},{"process-nextick-args":172}],186:[function(y,E,_){"use strict";E.exports=y("events").EventEmitter},{events:158}],187:[function(y,E,_){E.exports=y("./readable").PassThrough},{"./readable":188}],188:[function(y,E,_){_=E.exports=y("./lib/_stream_readable.js"),_.Stream=_,_.Readable=_,_.Writable=y("./lib/_stream_writable.js"),_.Duplex=y("./lib/_stream_duplex.js"),_.Transform=y("./lib/_stream_transform.js"),_.PassThrough=y("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(y,E,_){E.exports=y("./readable").Transform},{"./readable":188}],190:[function(y,E,_){E.exports=y("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(y,E,_){var C=function(){return this}()||Function("return this")(),m=C.regeneratorRuntime&&Object.getOwnPropertyNames(C).indexOf("regeneratorRuntime")>=0,c=m&&C.regeneratorRuntime;if(C.regeneratorRuntime=void 0,E.exports=y("./runtime"),m)C.regeneratorRuntime=c;else try{delete C.regeneratorRuntime}catch(r){C.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(y,E,_){!function(C){"use strict";function m(N,Q,X,te){var oe=Q&&Q.prototype instanceof r?Q:r,me=Object.create(oe.prototype),se=new h(te||[]);return me._invoke=o(N,X,se),me}function c(N,Q,X){try{return{type:"normal",arg:N.call(Q,X)}}catch(te){return{type:"throw",arg:te}}}function r(){}function n(){}function e(){}function s(N){["next","throw","return"].forEach(function(Q){N[Q]=function(X){return this._invoke(Q,X)}})}function u(N){function Q(oe,me,se,_e){var Ae=c(N[oe],N,me);if(Ae.type!=="throw"){var Ee=Ae.arg,pe=Ee.value;return pe&&typeof pe=="object"&&B.call(pe,"__await")?Promise.resolve(pe.__await).then(function(he){Q("next",he,se,_e)},function(he){Q("throw",he,se,_e)}):Promise.resolve(pe).then(function(he){Ee.value=he,se(Ee)},_e)}_e(Ae.arg)}function X(oe,me){function se(){return new Promise(function(_e,Ae){Q(oe,me,_e,Ae)})}return te=te?te.then(se,se):se()}var te;this._invoke=X}function o(N,Q,X){var te=T;return function(oe,me){if(te===R)throw new Error("Generator is already running");if(te===k){if(oe==="throw")throw me;return p()}for(X.method=oe,X.arg=me;;){var se=X.delegate;if(se){var _e=f(se,X);if(_e){if(_e===H)continue;return _e}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(te===T)throw te=k,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);te=R;var Ae=c(N,Q,X);if(Ae.type==="normal"){if(te=X.done?k:D,Ae.arg===H)continue;return{value:Ae.arg,done:X.done}}Ae.type==="throw"&&(te=k,X.method="throw",X.arg=Ae.arg)}}}function f(N,Q){var X=N.iterator[Q.method];if(X===S){if(Q.delegate=null,Q.method==="throw"){if(N.iterator.return&&(Q.method="return",Q.arg=S,f(N,Q),Q.method==="throw"))return H;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var te=c(X,N.iterator,Q.arg);if(te.type==="throw")return Q.method="throw",Q.arg=te.arg,Q.delegate=null,H;var oe=te.arg;return oe?oe.done?(Q[N.resultName]=oe.value,Q.next=N.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=S),Q.delegate=null,H):oe:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,H)}function d(N){var Q={tryLoc:N[0]};1 in N&&(Q.catchLoc=N[1]),2 in N&&(Q.finallyLoc=N[2],Q.afterLoc=N[3]),this.tryEntries.push(Q)}function a(N){var Q=N.completion||{};Q.type="normal",delete Q.arg,N.completion=Q}function h(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(d,this),this.reset(!0)}function g(N){if(N){var Q=N[A];if(Q)return Q.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var X=-1,te=function oe(){for(;++X=0;--te){var oe=this.tryEntries[te],me=oe.completion;if(oe.tryLoc==="root")return Q("end");if(oe.tryLoc<=this.prev){var se=B.call(oe,"catchLoc"),_e=B.call(oe,"finallyLoc");if(se&&_e){if(this.prev=0;--X){var te=this.tryEntries[X];if(te.tryLoc<=this.prev&&B.call(te,"finallyLoc")&&this.prev=0;--Q){var X=this.tryEntries[Q];if(X.finallyLoc===N)return this.complete(X.completion,X.afterLoc),a(X),H}},catch:function(N){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q];if(X.tryLoc===N){var te=X.completion;if(te.type==="throw"){var oe=te.arg;a(X)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(N,Q,X){return this.delegate={iterator:g(N),resultName:Q,nextLoc:X},this.method==="next"&&(this.arg=S),H}}}(function(){return this}()||Function("return this")())},{}],193:[function(y,E,_){function C(n,e){for(var s in n)e[s]=n[s]}function m(n,e,s){return r(n,e,s)}var c=y("buffer"),r=c.Buffer;r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?E.exports=c:(C(c,_),_.Buffer=m),C(r,m),m.from=function(n,e,s){if(typeof n=="number")throw new TypeError("Argument must not be a number");return r(n,e,s)},m.alloc=function(n,e,s){if(typeof n!="number")throw new TypeError("Argument must be a number");var u=r(n);return e!==void 0?typeof s=="string"?u.fill(e,s):u.fill(e):u.fill(0),u},m.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r(n)},m.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return c.SlowBuffer(n)}},{buffer:38}],194:[function(y,E,_){(function(C){"use strict";function m(p){return p&&p.__esModule?p:{default:p}}var c=y("babel-runtime/core-js/string/from-code-point"),r=m(c),n=y("babel-runtime/core-js/json/stringify"),e=m(n),s=y("babel-runtime/helpers/typeof"),u=m(s),o=y("babel-runtime/core-js/object/define-property"),f=m(o),d=y("babel-runtime/core-js/object/keys"),a=m(d),h=y("babel-runtime/core-js/object/create"),g=m(h);!function(p){function S(ne,le){if(!(this instanceof S))return new S(ne,le);var De=this;B(De),De.q=De.c="",De.bufferCheckPosition=p.MAX_BUFFER_LENGTH,De.opt=le||{},De.opt.lowercase=De.opt.lowercase||De.opt.lowercasetags,De.looseCase=De.opt.lowercase?"toLowerCase":"toUpperCase",De.tags=[],De.closed=De.closedRoot=De.sawRoot=!1,De.tag=De.error=null,De.strict=!!ne,De.noscript=!(!ne&&!De.opt.noscript),De.state=W.BEGIN,De.strictEntities=De.opt.strictEntities,De.ENTITIES=De.strictEntities?(0,g.default)(p.XML_ENTITIES):(0,g.default)(p.ENTITIES),De.attribList=[],De.opt.xmlns&&(De.ns=(0,g.default)(Ie)),De.trackPosition=De.opt.position!==!1,De.trackPosition&&(De.position=De.line=De.column=0),R(De,"onready")}function w(ne){for(var le=Math.max(p.MAX_BUFFER_LENGTH,10),De=0,Xe=0,xt=Ee.length;Xele)switch(Ee[Xe]){case"textNode":H(ne);break;case"cdata":k(ne,"oncdata",ne.cdata),ne.cdata="";break;case"script":k(ne,"onscript",ne.script),ne.script="";break;default:U(ne,"Max buffer length exceeded: "+Ee[Xe])}De=Math.max(De,Ke)}var ze=p.MAX_BUFFER_LENGTH-De;ne.bufferCheckPosition=ze+ne.position}function B(ne){for(var le=0,De=Ee.length;le"||i(ne)}function T(ne,le){return ne.test(le)}function D(ne,le){return!T(ne,le)}function R(ne,le,De){ne[le]&&ne[le](De)}function k(ne,le,De){ne.textNode&&H(ne),R(ne,le,De)}function H(ne){ne.textNode=J(ne.opt,ne.textNode),ne.textNode&&R(ne,"ontext",ne.textNode),ne.textNode=""}function J(ne,le){return ne.trim&&(le=le.trim()),ne.normalize&&(le=le.replace(/\s+/g," ")),le}function U(ne,le){return H(ne),ne.trackPosition&&(le+=` Line: `+ne.line+` Column: `+ne.column+` Char: `+ne.c),le=new Error(le),ne.error=le,R(ne,"onerror",le),ne}function K(ne){return ne.sawRoot&&!ne.closedRoot&&G(ne,"Unclosed root tag"),ne.state!==W.BEGIN&&ne.state!==W.BEGIN_WHITESPACE&&ne.state!==W.TEXT&&U(ne,"Unexpected end"),H(ne),ne.c="",ne.closed=!0,R(ne,"onend"),S.call(ne,ne.strict,ne.opt),ne}function G(ne,le){if((ne===void 0?"undefined":(0,u.default)(ne))!=="object"||!(ne instanceof S))throw new Error("bad call to strictFail");ne.strict&&U(ne,le)}function N(ne){ne.strict||(ne.tagName=ne.tagName[ne.looseCase]());var le=ne.tags[ne.tags.length-1]||ne,De=ne.tag={name:ne.tagName,attributes:{}};ne.opt.xmlns&&(De.ns=le.ns),ne.attribList.length=0,k(ne,"onopentagstart",De)}function Q(ne,le){var De=ne.indexOf(":"),Xe=De<0?["",ne]:ne.split(":"),xt=Xe[0],Ke=Xe[1];return le&&ne==="xmlns"&&(xt="xmlns",Ke=""),{prefix:xt,local:Ke}}function X(ne){if(ne.strict||(ne.attribName=ne.attribName[ne.looseCase]()),ne.attribList.indexOf(ne.attribName)!==-1||ne.tag.attributes.hasOwnProperty(ne.attribName))return void(ne.attribName=ne.attribValue="");if(ne.opt.xmlns){var le=Q(ne.attribName,!0),De=le.prefix,Xe=le.local;if(De==="xmlns")if(Xe==="xml"&&ne.attribValue!==ge)G(ne,"xml: prefix must be bound to "+ge+` Actual: `+ne.attribValue);else if(Xe==="xmlns"&&ne.attribValue!==ce)G(ne,"xmlns: prefix must be bound to "+ce+` Actual: `+ne.attribValue);else{var xt=ne.tag,Ke=ne.tags[ne.tags.length-1]||ne;xt.ns===Ke.ns&&(xt.ns=(0,g.default)(Ke.ns)),xt.ns[Xe]=ne.attribValue}ne.attribList.push([ne.attribName,ne.attribValue])}else ne.tag.attributes[ne.attribName]=ne.attribValue,k(ne,"onattribute",{name:ne.attribName,value:ne.attribValue});ne.attribName=ne.attribValue=""}function te(ne,le){if(ne.opt.xmlns){var De=ne.tag,Xe=Q(ne.tagName);De.prefix=Xe.prefix,De.local=Xe.local,De.uri=De.ns[Xe.prefix]||"",De.prefix&&!De.uri&&(G(ne,"Unbound namespace prefix: "+(0,e.default)(ne.tagName)),De.uri=Xe.prefix);var xt=ne.tags[ne.tags.length-1]||ne;De.ns&&xt.ns!==De.ns&&(0,a.default)(De.ns).forEach(function(je){k(ne,"onopennamespace",{prefix:je,uri:De.ns[je]})});for(var Ke=0,ze=ne.attribList.length;Ke",ne.tagName="",void(ne.state=W.SCRIPT);k(ne,"onscript",ne.script),ne.script=""}var le=ne.tags.length,De=ne.tagName;ne.strict||(De=De[ne.looseCase]());for(var Xe=De;le--&&!(ne.tags[le].name===Xe);)G(ne,"Unexpected close tag");if(le<0)return G(ne,"Unmatched closing tag: "+ne.tagName),ne.textNode+="",void(ne.state=W.TEXT);ne.tagName=De;for(var xt=ne.tags.length;xt-- >le;){var Ke=ne.tag=ne.tags.pop();ne.tagName=ne.tag.name,k(ne,"onclosetag",ne.tagName);var ze={};for(var yt in Ke.ns)ze[yt]=Ke.ns[yt];var Et=ne.tags[ne.tags.length-1]||ne;ne.opt.xmlns&&Ke.ns!==Et.ns&&(0,a.default)(Ke.ns).forEach(function(ct){var lt=Ke.ns[ct];k(ne,"onclosenamespace",{prefix:ct,uri:lt})})}le===0&&(ne.closedRoot=!0),ne.tagName=ne.attribValue=ne.attribName="",ne.attribList.length=0,ne.state=W.TEXT}function me(ne){var le,De=ne.entity,Xe=De.toLowerCase(),xt="";return ne.ENTITIES[De]?ne.ENTITIES[De]:ne.ENTITIES[Xe]?ne.ENTITIES[Xe]:(De=Xe,De.charAt(0)==="#"&&(De.charAt(1)==="x"?(De=De.slice(2),le=parseInt(De,16),xt=le.toString(16)):(De=De.slice(1),le=parseInt(De,10),xt=le.toString(10))),De=De.replace(/^0+/,""),isNaN(le)||xt.toLowerCase()!==De?(G(ne,"Invalid character entity"),"&"+ne.entity+";"):(0,r.default)(le))}function se(ne,le){le==="<"?(ne.state=W.OPEN_WAKA,ne.startTagPosition=ne.position):i(le)||(G(ne,"Non-whitespace before first tag."),ne.textNode=le,ne.state=W.TEXT)}function _e(ne,le){var De="";return le"?(k(le,"onsgmldeclaration",le.sgmlDecl),le.sgmlDecl="",le.state=W.TEXT):(x(Xe)&&(le.state=W.SGML_DECL_QUOTED),le.sgmlDecl+=Xe);continue;case W.SGML_DECL_QUOTED:Xe===le.q&&(le.state=W.SGML_DECL,le.q=""),le.sgmlDecl+=Xe;continue;case W.DOCTYPE:Xe===">"?(le.state=W.TEXT,k(le,"ondoctype",le.doctype),le.doctype=!0):(le.doctype+=Xe,Xe==="["?le.state=W.DOCTYPE_DTD:x(Xe)&&(le.state=W.DOCTYPE_QUOTED,le.q=Xe));continue;case W.DOCTYPE_QUOTED:le.doctype+=Xe,Xe===le.q&&(le.q="",le.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:le.doctype+=Xe,Xe==="]"?le.state=W.DOCTYPE:x(Xe)&&(le.state=W.DOCTYPE_DTD_QUOTED,le.q=Xe);continue;case W.DOCTYPE_DTD_QUOTED:le.doctype+=Xe,Xe===le.q&&(le.state=W.DOCTYPE_DTD,le.q="");continue;case W.COMMENT:Xe==="-"?le.state=W.COMMENT_ENDING:le.comment+=Xe;continue;case W.COMMENT_ENDING:Xe==="-"?(le.state=W.COMMENT_ENDED,le.comment=J(le.opt,le.comment),le.comment&&k(le,"oncomment",le.comment),le.comment=""):(le.comment+="-"+Xe,le.state=W.COMMENT);continue;case W.COMMENT_ENDED:Xe!==">"?(G(le,"Malformed comment"),le.comment+="--"+Xe,le.state=W.COMMENT):le.state=W.TEXT;continue;case W.CDATA:Xe==="]"?le.state=W.CDATA_ENDING:le.cdata+=Xe;continue;case W.CDATA_ENDING:Xe==="]"?le.state=W.CDATA_ENDING_2:(le.cdata+="]"+Xe,le.state=W.CDATA);continue;case W.CDATA_ENDING_2:Xe===">"?(le.cdata&&k(le,"oncdata",le.cdata),k(le,"onclosecdata"),le.cdata="",le.state=W.TEXT):Xe==="]"?le.cdata+="]":(le.cdata+="]]"+Xe,le.state=W.CDATA);continue;case W.PROC_INST:Xe==="?"?le.state=W.PROC_INST_ENDING:i(Xe)?le.state=W.PROC_INST_BODY:le.procInstName+=Xe;continue;case W.PROC_INST_BODY:if(!le.procInstBody&&i(Xe))continue;Xe==="?"?le.state=W.PROC_INST_ENDING:le.procInstBody+=Xe;continue;case W.PROC_INST_ENDING:Xe===">"?(k(le,"onprocessinginstruction",{name:le.procInstName,body:le.procInstBody}),le.procInstName=le.procInstBody="",le.state=W.TEXT):(le.procInstBody+="?"+Xe,le.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:T(ke,Xe)?le.tagName+=Xe:(N(le),Xe===">"?te(le):Xe==="/"?le.state=W.OPEN_TAG_SLASH:(i(Xe)||G(le,"Invalid character in tag name"),le.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:Xe===">"?(te(le,!0),oe(le)):(G(le,"Forward-slash in opening tag not followed by >"),le.state=W.ATTRIB);continue;case W.ATTRIB:if(i(Xe))continue;Xe===">"?te(le):Xe==="/"?le.state=W.OPEN_TAG_SLASH:T(Fe,Xe)?(le.attribName=Xe,le.attribValue="",le.state=W.ATTRIB_NAME):G(le,"Invalid attribute name");continue;case W.ATTRIB_NAME:Xe==="="?le.state=W.ATTRIB_VALUE:Xe===">"?(G(le,"Attribute without value"),le.attribValue=le.attribName,X(le),te(le)):i(Xe)?le.state=W.ATTRIB_NAME_SAW_WHITE:T(ke,Xe)?le.attribName+=Xe:G(le,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if(Xe==="=")le.state=W.ATTRIB_VALUE;else{if(i(Xe))continue;G(le,"Attribute without value"),le.tag.attributes[le.attribName]="",le.attribValue="",k(le,"onattribute",{name:le.attribName,value:""}),le.attribName="",Xe===">"?te(le):T(Fe,Xe)?(le.attribName=Xe,le.state=W.ATTRIB_NAME):(G(le,"Invalid attribute name"),le.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(i(Xe))continue;x(Xe)?(le.q=Xe,le.state=W.ATTRIB_VALUE_QUOTED):(G(le,"Unquoted attribute value"),le.state=W.ATTRIB_VALUE_UNQUOTED,le.attribValue=Xe);continue;case W.ATTRIB_VALUE_QUOTED:if(Xe!==le.q){Xe==="&"?le.state=W.ATTRIB_VALUE_ENTITY_Q:le.attribValue+=Xe;continue}X(le),le.q="",le.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:i(Xe)?le.state=W.ATTRIB:Xe===">"?te(le):Xe==="/"?le.state=W.OPEN_TAG_SLASH:T(Fe,Xe)?(G(le,"No whitespace between attributes"),le.attribName=Xe,le.attribValue="",le.state=W.ATTRIB_NAME):G(le,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(!O(Xe)){Xe==="&"?le.state=W.ATTRIB_VALUE_ENTITY_U:le.attribValue+=Xe;continue}X(le),Xe===">"?te(le):le.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(le.tagName)Xe===">"?oe(le):T(ke,Xe)?le.tagName+=Xe:le.script?(le.script+=""?oe(le):G(le,"Invalid characters in closing tag");continue;case W.TEXT_ENTITY:case W.ATTRIB_VALUE_ENTITY_Q:case W.ATTRIB_VALUE_ENTITY_U:var ze,yt;switch(le.state){case W.TEXT_ENTITY:ze=W.TEXT,yt="textNode";break;case W.ATTRIB_VALUE_ENTITY_Q:ze=W.ATTRIB_VALUE_QUOTED,yt="attribValue";break;case W.ATTRIB_VALUE_ENTITY_U:ze=W.ATTRIB_VALUE_UNQUOTED,yt="attribValue"}Xe===";"?(le[yt]+=me(le),le.entity="",le.state=ze):T(le.entity.length?F:re,Xe)?le.entity+=Xe:(G(le,"Invalid character in entity name"),le[yt]+="&"+le.entity+Xe,le.entity="",le.state=ze);continue;default:throw new Error(le,"Unknown state: "+le.state)}return le.position>=le.bufferCheckPosition&&w(le),le}p.parser=function(ne,le){return new S(ne,le)},p.SAXParser=S,p.SAXStream=l,p.createStream=A,p.MAX_BUFFER_LENGTH=65536;var Ee=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];p.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],g.default||(Object.create=function(ne){function le(){}return le.prototype=ne,new le}),a.default||(Object.keys=function(ne){var le=[];for(var De in ne)ne.hasOwnProperty(De)&&le.push(De);return le}),S.prototype={end:function(){K(this)},write:Ae,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){b(this)}};var pe;try{pe=y("stream").Stream}catch(ne){pe=function(){}}var he=p.EVENTS.filter(function(ne){return ne!=="error"&&ne!=="end"});l.prototype=(0,g.default)(pe.prototype,{constructor:{value:l}}),l.prototype.write=function(ne){if(typeof C=="function"&&typeof C.isBuffer=="function"&&C.isBuffer(ne)){if(!this._decoder){var le=y("string_decoder").StringDecoder;this._decoder=new le("utf8")}ne=this._decoder.write(ne)}return this._parser.write(ne.toString()),this.emit("data",ne),!0},l.prototype.end=function(ne){return ne&&ne.length&&this.write(ne),this._parser.end(),!0},l.prototype.on=function(ne,le){var De=this;return De._parser["on"+ne]||he.indexOf(ne)===-1||(De._parser["on"+ne]=function(){var Xe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Xe.splice(0,0,ne),De.emit.apply(De,Xe)}),pe.prototype.on.call(De,ne,le)};var ie="[CDATA[",fe="DOCTYPE",ge="http://www.w3.org/XML/1998/namespace",ce="http://www.w3.org/2000/xmlns/",Ie={xml:ge,xmlns:ce},Fe=/[:_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]/,ke=/[:_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-]/,re=/[#:_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]/,F=/[#:_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-]/,W=0;p.STATE={BEGIN:W++,BEGIN_WHITESPACE:W++,TEXT:W++,TEXT_ENTITY:W++,OPEN_WAKA:W++,SGML_DECL:W++,SGML_DECL_QUOTED:W++,DOCTYPE:W++,DOCTYPE_QUOTED:W++,DOCTYPE_DTD:W++,DOCTYPE_DTD_QUOTED:W++,COMMENT_STARTING:W++,COMMENT:W++,COMMENT_ENDING:W++,COMMENT_ENDED:W++,CDATA:W++,CDATA_ENDING:W++,CDATA_ENDING_2:W++,PROC_INST:W++,PROC_INST_BODY:W++,PROC_INST_ENDING:W++,OPEN_TAG:W++,OPEN_TAG_SLASH:W++,ATTRIB:W++,ATTRIB_NAME:W++,ATTRIB_NAME_SAW_WHITE:W++,ATTRIB_VALUE:W++,ATTRIB_VALUE_QUOTED:W++,ATTRIB_VALUE_CLOSED:W++,ATTRIB_VALUE_UNQUOTED:W++,ATTRIB_VALUE_ENTITY_Q:W++,ATTRIB_VALUE_ENTITY_U:W++,CLOSE_TAG:W++,CLOSE_TAG_SAW_WHITE:W++,SCRIPT:W++,SCRIPT_ENDING:W++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.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,a.default)(p.ENTITIES).forEach(function(ne){var le=p.ENTITIES[ne],De=typeof le=="number"?String.fromCharCode(le):le;p.ENTITIES[ne]=De});for(var de in p.STATE)p.STATE[p.STATE[de]]=de;W=p.STATE,r.default||function(){var ne=String.fromCharCode,le=Math.floor,De=function(){var Xe,xt,Ke=[],ze=-1,yt=arguments.length;if(!yt)return"";for(var Et="";++ze1114111||le(ct)!==ct)throw RangeError("Invalid code point: "+ct);ct<=65535?Ke.push(ct):(ct-=65536,Xe=55296+(ct>>10),xt=ct%1024+56320,Ke.push(Xe,xt)),(ze+1===yt||Ke.length>16384)&&(Et+=ne.apply(null,Ke),Ke.length=0)}return Et};f.default?Object.defineProperty(String,"fromCodePoint",{value:De,configurable:!0,writable:!0}):String.fromCodePoint=De}()}(_===void 0?(void 0).sax={}:_)}).call(this,y("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(y,E,_){function C(){m.call(this)}E.exports=C;var m=y("events").EventEmitter;y("inherits")(C,m),C.Readable=y("readable-stream/readable.js"),C.Writable=y("readable-stream/writable.js"),C.Duplex=y("readable-stream/duplex.js"),C.Transform=y("readable-stream/transform.js"),C.PassThrough=y("readable-stream/passthrough.js"),C.Stream=C,C.prototype.pipe=function(c,r){function n(h){c.writable&&c.write(h)===!1&&d.pause&&d.pause()}function e(){d.readable&&d.resume&&d.resume()}function s(){a||(a=!0,c.end())}function u(){a||(a=!0,typeof c.destroy=="function"&&c.destroy())}function o(h){if(f(),m.listenerCount(this,"error")===0)throw h}function f(){d.removeListener("data",n),c.removeListener("drain",e),d.removeListener("end",s),d.removeListener("close",u),d.removeListener("error",o),c.removeListener("error",o),d.removeListener("end",f),d.removeListener("close",f),c.removeListener("close",f)}var d=this;d.on("data",n),c.on("drain",e),c._isStdio||r&&r.end===!1||(d.on("end",s),d.on("close",u));var a=!1;return d.on("error",o),c.on("error",o),d.on("end",f),d.on("close",f),c.on("close",f),c.emit("pipe",d),c}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(y,E,_){(function(C){var m=y("./lib/request"),c=y("./lib/response"),r=y("xtend"),n=y("builtin-status-codes"),e=y("url"),s=_;s.request=function(u,o){u=typeof u=="string"?e.parse(u):r(u);var f=C.location.protocol.search(/^https?:$/)===-1?"http:":"",d=u.protocol||f,a=u.hostname||u.host,h=u.port,g=u.path||"/";a&&a.indexOf(":")!==-1&&(a="["+a+"]"),u.url=(a?d+"//"+a:"")+(h?":"+h:"")+g,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var p=new m(u);return o&&p.on("response",o),p},s.get=function(u,o){var f=s.request(u,o);return f.end(),f},s.ClientRequest=m,s.IncomingMessage=c.IncomingMessage,s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.globalAgent=new s.Agent,s.STATUS_CODES=n,s.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 ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(y,E,_){(function(C){"use strict";function m(){if(n!==void 0)return n;if(C.XMLHttpRequest){n=new C.XMLHttpRequest;try{n.open("GET",C.XDomainRequest?"/":"https://example.com")}catch(u){n=null}}else n=null;return n}function c(u){var o=m();if(!o)return!1;try{return o.responseType=u,o.responseType===u}catch(f){}return!1}function r(u){return typeof u=="function"}_.fetch=r(C.fetch)&&r(C.ReadableStream),_.writableStream=r(C.WritableStream),_.abortController=r(C.AbortController),_.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),_.blobConstructor=!0}catch(u){}var n,e=C.ArrayBuffer!==void 0,s=e&&r(C.ArrayBuffer.prototype.slice);_.arraybuffer=_.fetch||e&&c("arraybuffer"),_.msstream=!_.fetch&&s&&c("ms-stream"),_.mozchunkedarraybuffer=!_.fetch&&e&&c("moz-chunked-arraybuffer"),_.overrideMimeType=_.fetch||!!m()&&r(m().overrideMimeType),_.vbArray=r(C.VBArray),n=null}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(y,E,_){(function(C,m,c){"use strict";function r(w,B){return u.fetch&&B?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&w?"arraybuffer":u.vbArray&&w?"text:vbarray":"text"}function n(w){try{var B=w.status;return B!==null&&B!==0}catch(b){return!1}}var e=y("babel-runtime/core-js/object/keys"),s=function(w){return w&&w.__esModule?w:{default:w}}(e),u=y("./capability"),o=y("inherits"),f=y("./response"),d=y("readable-stream"),a=y("to-arraybuffer"),h=f.IncomingMessage,g=f.readyStates,p=E.exports=function(w){var B=this;d.Writable.call(B),B._opts=w,B._body=[],B._headers={},w.auth&&B.setHeader("Authorization","Basic "+new c(w.auth).toString("base64")),(0,s.default)(w.headers).forEach(function(l){B.setHeader(l,w.headers[l])});var b,A=!0;if(w.mode==="disable-fetch"||"requestTimeout"in w&&!u.abortController)A=!1,b=!0;else if(w.mode==="prefer-streaming")b=!1;else if(w.mode==="allow-wrong-content-type")b=!u.overrideMimeType;else{if(w.mode&&w.mode!=="default"&&w.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");b=!0}B._mode=r(b,A),B._fetchTimer=null,B.on("finish",function(){B._onFinish()})};o(p,d.Writable),p.prototype.setHeader=function(w,B){var b=this,A=w.toLowerCase();S.indexOf(A)===-1&&(b._headers[A]={name:w,value:B})},p.prototype.getHeader=function(w){var B=this._headers[w.toLowerCase()];return B?B.value:null},p.prototype.removeHeader=function(w){delete this._headers[w.toLowerCase()]},p.prototype._onFinish=function(){var w=this;if(!w._destroyed){var B=w._opts,b=w._headers,A=null;B.method!=="GET"&&B.method!=="HEAD"&&(A=u.arraybuffer?a(c.concat(w._body)):u.blobConstructor?new m.Blob(w._body.map(function(T){return a(T)}),{type:(b["content-type"]||{}).value||""}):c.concat(w._body).toString());var l=[];if((0,s.default)(b).forEach(function(T){var D=b[T].name,R=b[T].value;Array.isArray(R)?R.forEach(function(k){l.push([D,k])}):l.push([D,R])}),w._mode==="fetch"){var i=null;if(u.abortController){var x=new AbortController;i=x.signal,w._fetchAbortController=x,"requestTimeout"in B&&B.requestTimeout!==0&&(w._fetchTimer=m.setTimeout(function(){w.emit("requestTimeout"),w._fetchAbortController&&w._fetchAbortController.abort()},B.requestTimeout))}m.fetch(w._opts.url,{method:w._opts.method,headers:l,body:A||void 0,mode:"cors",credentials:B.withCredentials?"include":"same-origin",signal:i}).then(function(T){w._fetchResponse=T,w._connect()},function(T){m.clearTimeout(w._fetchTimer),w._destroyed||w.emit("error",T)})}else{var O=w._xhr=new m.XMLHttpRequest;try{O.open(w._opts.method,w._opts.url,!0)}catch(T){return void C.nextTick(function(){w.emit("error",T)})}"responseType"in O&&(O.responseType=w._mode.split(":")[0]),"withCredentials"in O&&(O.withCredentials=!!B.withCredentials),w._mode==="text"&&"overrideMimeType"in O&&O.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in B&&(O.timeout=B.requestTimeout,O.ontimeout=function(){w.emit("requestTimeout")}),l.forEach(function(T){O.setRequestHeader(T[0],T[1])}),w._response=null,O.onreadystatechange=function(){switch(O.readyState){case g.LOADING:case g.DONE:w._onXHRProgress()}},w._mode==="moz-chunked-arraybuffer"&&(O.onprogress=function(){w._onXHRProgress()}),O.onerror=function(){w._destroyed||w.emit("error",new Error("XHR error"))};try{O.send(A)}catch(T){return void C.nextTick(function(){w.emit("error",T)})}}}},p.prototype._onXHRProgress=function(){var w=this;n(w._xhr)&&!w._destroyed&&(w._response||w._connect(),w._response._onXHRProgress())},p.prototype._connect=function(){var w=this;w._destroyed||(w._response=new h(w._xhr,w._fetchResponse,w._mode,w._fetchTimer),w._response.on("error",function(B){w.emit("error",B)}),w.emit("response",w._response))},p.prototype._write=function(w,B,b){this._body.push(w),b()},p.prototype.abort=p.prototype.destroy=function(){var w=this;w._destroyed=!0,m.clearTimeout(w._fetchTimer),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort()},p.prototype.end=function(w,B,b){var A=this;typeof w=="function"&&(b=w,w=void 0),d.Writable.prototype.end.call(A,w,B,b)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var S=["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,y("_process"),typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(y,E,_){(function(C,m,c){"use strict";var r=y("babel-runtime/core-js/promise"),n=function(d){return d&&d.__esModule?d:{default:d}}(r),e=y("./capability"),s=y("inherits"),u=y("readable-stream"),o=_.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=_.IncomingMessage=function(d,a,h,g){var p=this;if(u.Readable.call(p),p._mode=h,p.headers={},p.rawHeaders=[],p.trailers={},p.rawTrailers=[],p.on("end",function(){C.nextTick(function(){p.emit("close")})}),h==="fetch"){if(p._fetchResponse=a,p.url=a.url,p.statusCode=a.status,p.statusMessage=a.statusText,a.headers.forEach(function(A,l){p.headers[l.toLowerCase()]=A,p.rawHeaders.push(l,A)}),e.writableStream){var S=new WritableStream({write:function(A){return new n.default(function(l,i){p._destroyed?i():p.push(new c(A))?l():p._resumeFetch=l})},close:function(){m.clearTimeout(g),p._destroyed||p.push(null)},abort:function(A){p._destroyed||p.emit("error",A)}});try{return void a.body.pipeTo(S).catch(function(A){m.clearTimeout(g),p._destroyed||p.emit("error",A)})}catch(A){}}var w=a.body.getReader();!function A(){w.read().then(function(l){if(!p._destroyed){if(l.done)return m.clearTimeout(g),void p.push(null);p.push(new c(l.value)),A()}}).catch(function(l){m.clearTimeout(g),p._destroyed||p.emit("error",l)})}()}else if(p._xhr=d,p._pos=0,p.url=d.responseURL,p.statusCode=d.status,p.statusMessage=d.statusText,d.getAllResponseHeaders().split(/\r?\n/).forEach(function(A){var l=A.match(/^([^:]+):\s*(.*)/);if(l){var i=l[1].toLowerCase();i==="set-cookie"?(p.headers[i]===void 0&&(p.headers[i]=[]),p.headers[i].push(l[2])):p.headers[i]!==void 0?p.headers[i]+=", "+l[2]:p.headers[i]=l[2],p.rawHeaders.push(l[1],l[2])}}),p._charset="x-user-defined",!e.overrideMimeType){var B=p.rawHeaders["mime-type"];if(B){var b=B.match(/;\s*charset=([^;])(;|$)/);b&&(p._charset=b[1].toLowerCase())}p._charset||(p._charset="utf-8")}};s(f,u.Readable),f.prototype._read=function(){var d=this,a=d._resumeFetch;a&&(d._resumeFetch=null,a())},f.prototype._onXHRProgress=function(){var d=this,a=d._xhr,h=null;switch(d._mode){case"text:vbarray":if(a.readyState!==o.DONE)break;try{h=new m.VBArray(a.responseBody).toArray()}catch(B){}if(h!==null){d.push(new c(h));break}case"text":try{h=a.responseText}catch(B){d._mode="text:vbarray";break}if(h.length>d._pos){var g=h.substr(d._pos);if(d._charset==="x-user-defined"){for(var p=new c(g.length),S=0;Sd._pos&&(d.push(new c(new Uint8Array(w.result.slice(d._pos)))),d._pos=w.result.byteLength)},w.onload=function(){d.push(null)},w.readAsArrayBuffer(h)}d._xhr.readyState===o.DONE&&d._mode!=="ms-stream"&&d.push(null)}}).call(this,y("_process"),typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(y,E,_){"use strict";function C(B){if(!B)return"utf8";for(var b;;)switch(B){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 B;default:if(b)return;B=(""+B).toLowerCase(),b=!0}}function m(B){var b=C(B);if(typeof b!="string"&&(S.isEncoding===w||!w(B)))throw new Error("Unknown encoding: "+B);return b||B}function c(B){this.encoding=m(B);var b;switch(this.encoding){case"utf16le":this.text=f,this.end=d,b=4;break;case"utf8":this.fillLast=s,b=4;break;case"base64":this.text=a,this.end=h,b=3;break;default:return this.write=g,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=S.allocUnsafe(b)}function r(B){return B<=127?0:B>>5==6?2:B>>4==14?3:B>>3==30?4:B>>6==2?-1:-2}function n(B,b,A){var l=b.length-1;if(l=0?(i>0&&(B.lastNeed=i-1),i):--l=0?(i>0&&(B.lastNeed=i-2),i):--l=0?(i>0&&(i===2?i=0:B.lastNeed=i-3),i):0)}function e(B,b,A){if((192&b[0])!=128)return B.lastNeed=0,"\u951F\uFFFD";if(B.lastNeed>1&&b.length>1){if((192&b[1])!=128)return B.lastNeed=1,"\u951F\uFFFD";if(B.lastNeed>2&&b.length>2&&(192&b[2])!=128)return B.lastNeed=2,"\u951F\uFFFD"}}function s(B){var b=this.lastTotal-this.lastNeed,A=e(this,B,b);return A!==void 0?A:this.lastNeed<=B.length?(B.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(B.copy(this.lastChar,b,0,B.length),void(this.lastNeed-=B.length))}function u(B,b){var A=n(this,B,b);if(!this.lastNeed)return B.toString("utf8",b);this.lastTotal=A;var l=B.length-(A-this.lastNeed);return B.copy(this.lastChar,0,l),B.toString("utf8",b,l)}function o(B){var b=B&&B.length?this.write(B):"";return this.lastNeed?b+"\u951F\uFFFD":b}function f(B,b){if((B.length-b)%2==0){var A=B.toString("utf16le",b);if(A){var l=A.charCodeAt(A.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=B[B.length-1],B.toString("utf16le",b,B.length-1)}function d(B){var b=B&&B.length?this.write(B):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,A)}return b}function a(B,b){var A=(B.length-b)%3;return A===0?B.toString("base64",b):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=B[B.length-1]:(this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1]),B.toString("base64",b,B.length-A))}function h(B){var b=B&&B.length?this.write(B):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function g(B){return B.toString(this.encoding)}function p(B){return B&&B.length?this.write(B):""}var S=y("safe-buffer").Buffer,w=S.isEncoding||function(B){switch((B=""+B)&&B.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}};_.StringDecoder=c,c.prototype.write=function(B){if(B.length===0)return"";var b,A;if(this.lastNeed){if((b=this.fillLast(B))===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},f))},_.setImmediate=typeof C=="function"?C:function(o){var f=u++,d=!(arguments.length<2)&&e.call(arguments,1);return s[f]=!0,r(function(){s[f]&&(d?o.apply(null,d):o.call(null),_.clearImmediate(f))}),f},_.clearImmediate=typeof m=="function"?m:function(o){delete s[o]}}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(y,E,_){var C=y("buffer").Buffer;E.exports=function(m){if(m instanceof Uint8Array){if(m.byteOffset===0&&m.byteLength===m.buffer.byteLength)return m.buffer;if(typeof m.buffer.slice=="function")return m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)}if(C.isBuffer(m)){for(var c=new Uint8Array(m.length),r=m.length,n=0;n",'"',"`"," ","\r",` `," "],a=["{","}","|","\\","^","`"].concat(d),h=["'"].concat(a),g=["%","/","?",";","#"].concat(h),p=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,B={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=y("querystring");C.prototype.parse=function(i,x,O){if(!s.isString(i))throw new TypeError("Parameter 'url' must be a string, not "+typeof i);var T=i.indexOf("?"),D=T!==-1&&T127?Ee+="x":Ee+=Ae[pe];if(!Ee.match(S)){var ie=se.slice(0,Q),fe=se.slice(Q+1),ge=Ae.match(w);ge&&(ie.push(ge[1]),fe.unshift(ge[2])),fe.length&&(H="/"+fe.join(".")+H),this.hostname=ie.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),me||(this.hostname=e.toASCII(this.hostname));var ce=this.port?":"+this.port:"",Ie=this.hostname||"";this.host=Ie+ce,this.href+=this.host,me&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!B[K])for(var Q=0,_e=h.length;Q<_e;Q++){var Fe=h[Q];if(H.indexOf(Fe)!==-1){var ke=encodeURIComponent(Fe);ke===Fe&&(ke=escape(Fe)),H=H.split(Fe).join(ke)}}var re=H.indexOf("#");re!==-1&&(this.hash=H.substr(re),H=H.slice(0,re));var F=H.indexOf("?");if(F!==-1?(this.search=H.substr(F),this.query=H.substr(F+1),x&&(this.query=l.parse(this.query)),H=H.slice(0,F)):x&&(this.search="",this.query={}),H&&(this.pathname=H),A[K]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ce=this.pathname||"",W=this.search||"";this.path=ce+W}return this.href=this.format(),this},C.prototype.format=function(){var i=this.auth||"";i&&(i=encodeURIComponent(i),i=i.replace(/%3A/i,":"),i+="@");var x=this.protocol||"",O=this.pathname||"",T=this.hash||"",D=!1,R="";this.host?D=i+this.host:this.hostname&&(D=i+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(D+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(R=l.stringify(this.query));var k=this.search||R&&"?"+R||"";return x&&x.substr(-1)!==":"&&(x+=":"),this.slashes||(!x||A[x])&&D!==!1?(D="//"+(D||""),O&&O.charAt(0)!=="/"&&(O="/"+O)):D||(D=""),T&&T.charAt(0)!=="#"&&(T="#"+T),k&&k.charAt(0)!=="?"&&(k="?"+k),O=O.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),k=k.replace("#","%23"),x+D+O+k+T},C.prototype.resolve=function(i){return this.resolveObject(m(i,!1,!0)).format()},C.prototype.resolveObject=function(i){if(s.isString(i)){var x=new C;x.parse(i,!1,!0),i=x}for(var O=new C,T=Object.keys(this),D=0;D0)&&O.host.split("@");Ee&&(O.auth=Ee.shift(),O.host=O.hostname=Ee.shift())}return O.search=i.search,O.query=i.query,s.isNull(O.pathname)&&s.isNull(O.search)||(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!se.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var pe=se.slice(-1)[0],he=(O.host||i.host||se.length>1)&&(pe==="."||pe==="..")||pe==="",ie=0,fe=se.length;fe>=0;fe--)pe=se[fe],pe==="."?se.splice(fe,1):pe===".."?(se.splice(fe,1),ie++):ie&&(se.splice(fe,1),ie--);if(!oe&&!me)for(;ie--;ie)se.unshift("..");!oe||se[0]===""||se[0]&&se[0].charAt(0)==="/"||se.unshift(""),he&&se.join("/").substr(-1)!=="/"&&se.push("");var ge=se[0]===""||se[0]&&se[0].charAt(0)==="/";if(Ae){O.hostname=O.host=ge?"":se.length?se.shift():"";var Ee=!!(O.host&&O.host.indexOf("@")>0)&&O.host.split("@");Ee&&(O.auth=Ee.shift(),O.host=O.hostname=Ee.shift())}return oe=oe||O.host&&se.length,oe&&!ge&&se.unshift(""),se.length?O.pathname=se.join("/"):(O.pathname=null,O.path=null),s.isNull(O.pathname)&&s.isNull(O.search)||(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=i.auth||O.auth,O.slashes=O.slashes||i.slashes,O.href=O.format(),O},C.prototype.parseHost=function(){var i=this.host,x=o.exec(i);x&&(x=x[0],x!==":"&&(this.port=x.substr(1)),i=i.substr(0,i.length-x.length)),i&&(this.hostname=i)}},{"./util":204,punycode:174,querystring:177}],204:[function(y,E,_){"use strict";E.exports={isString:function(C){return typeof C=="string"},isObject:function(C){return typeof C=="object"&&C!==null},isNull:function(C){return C===null},isNullOrUndefined:function(C){return C==null}}},{}],205:[function(y,E,_){(function(C){function m(r,n){function e(){if(!s){if(c("throwDeprecation"))throw new Error(n);c("traceDeprecation")?console.trace(n):console.warn(n),s=!0}return r.apply(this,arguments)}if(c("noDeprecation"))return r;var s=!1;return e}function c(r){try{if(!C.localStorage)return!1}catch(e){return!1}var n=C.localStorage[r];return n!=null&&String(n).toLowerCase()==="true"}E.exports=m}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(y,E,_){E.exports=function(C){return C&&typeof C=="object"&&typeof C.copy=="function"&&typeof C.fill=="function"&&typeof C.readUInt8=="function"}},{}],207:[function(y,E,_){(function(C,m){function c(Q,X){var te={seen:[],stylize:n};return arguments.length>=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),g(X)?te.showHidden=X:X&&_._extend(te,X),A(te.showHidden)&&(te.showHidden=!1),A(te.depth)&&(te.depth=2),A(te.colors)&&(te.colors=!1),A(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=r),s(te,Q,te.depth)}function r(Q,X){var te=c.styles[X];return te?"["+c.colors[te][0]+"m"+Q+"["+c.colors[te][1]+"m":Q}function n(Q,X){return Q}function e(Q){var X={};return Q.forEach(function(te,oe){X[te]=!0}),X}function s(Q,X,te){if(Q.customInspect&&X&&T(X.inspect)&&X.inspect!==_.inspect&&(!X.constructor||X.constructor.prototype!==X)){var oe=X.inspect(te,Q);return B(oe)||(oe=s(Q,oe,te)),oe}var me=u(Q,X);if(me)return me;var se=Object.keys(X),_e=e(se);if(Q.showHidden&&(se=Object.getOwnPropertyNames(X)),O(X)&&(se.indexOf("message")>=0||se.indexOf("description")>=0))return o(X);if(se.length===0){if(T(X)){var Ae=X.name?": "+X.name:"";return Q.stylize("[Function"+Ae+"]","special")}if(l(X))return Q.stylize(RegExp.prototype.toString.call(X),"regexp");if(x(X))return Q.stylize(Date.prototype.toString.call(X),"date");if(O(X))return o(X)}var Ee="",pe=!1,he=["{","}"];if((h(X)&&(pe=!0,he=["[","]"]),T(X))&&(Ee=" [Function"+(X.name?": "+X.name:"")+"]"),l(X)&&(Ee=" "+RegExp.prototype.toString.call(X)),x(X)&&(Ee=" "+Date.prototype.toUTCString.call(X)),O(X)&&(Ee=" "+o(X)),se.length===0&&(!pe||X.length==0))return he[0]+Ee+he[1];if(te<0)return l(X)?Q.stylize(RegExp.prototype.toString.call(X),"regexp"):Q.stylize("[Object]","special");Q.seen.push(X);var ie;return ie=pe?f(Q,X,te,_e,se):se.map(function(fe){return d(Q,X,te,_e,fe,pe)}),Q.seen.pop(),a(ie,Ee,he)}function u(Q,X){if(A(X))return Q.stylize("undefined","undefined");if(B(X)){var te="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(te,"string")}return w(X)?Q.stylize(""+X,"number"):g(X)?Q.stylize(""+X,"boolean"):p(X)?Q.stylize("null","null"):void 0}function o(Q){return"["+Error.prototype.toString.call(Q)+"]"}function f(Q,X,te,oe,me){for(var se=[],_e=0,Ae=X.length;_e-1&&(Ae=se?Ae.split(` `).map(function(pe){return" "+pe}).join(` `).substr(2):` `+Ae.split(` `).map(function(pe){return" "+pe}).join(` `))):Ae=Q.stylize("[Circular]","special")),A(_e)){if(se&&me.match(/^\d+$/))return Ae;_e=JSON.stringify(""+me),_e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_e=_e.substr(1,_e.length-2),_e=Q.stylize(_e,"name")):(_e=_e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_e=Q.stylize(_e,"string"))}return _e+": "+Ae}function a(Q,X,te){var oe=0;return Q.reduce(function(me,se){return oe++,se.indexOf(` `)>=0&&oe++,me+se.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?te[0]+(X===""?"":X+` `)+" "+Q.join(`, `)+" "+te[1]:te[0]+X+" "+Q.join(", ")+" "+te[1]}function h(Q){return Array.isArray(Q)}function g(Q){return typeof Q=="boolean"}function p(Q){return Q===null}function S(Q){return Q==null}function w(Q){return typeof Q=="number"}function B(Q){return typeof Q=="string"}function b(Q){return typeof Q=="symbol"}function A(Q){return Q===void 0}function l(Q){return i(Q)&&R(Q)==="[object RegExp]"}function i(Q){return typeof Q=="object"&&Q!==null}function x(Q){return i(Q)&&R(Q)==="[object Date]"}function O(Q){return i(Q)&&(R(Q)==="[object Error]"||Q instanceof Error)}function T(Q){return typeof Q=="function"}function D(Q){return Q===null||typeof Q=="boolean"||typeof Q=="number"||typeof Q=="string"||typeof Q=="symbol"||Q===void 0}function R(Q){return Object.prototype.toString.call(Q)}function k(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}function H(){var Q=new Date,X=[k(Q.getHours()),k(Q.getMinutes()),k(Q.getSeconds())].join(":");return[Q.getDate(),N[Q.getMonth()],X].join(" ")}function J(Q,X){return Object.prototype.hasOwnProperty.call(Q,X)}var U=/%[sdj%]/g;_.format=function(Q){if(!B(Q)){for(var X=[],te=0;te=me)return Ee;switch(Ee){case"%s":return String(oe[te++]);case"%d":return Number(oe[te++]);case"%j":try{return JSON.stringify(oe[te++])}catch(pe){return"[Circular]"}default:return Ee}}),_e=oe[te];te=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},f=function(a){return""},u=function(a){return a.replace("]]>","]]]]>")},_.Builder=function(){function a(h){var g,p,S;this.options={},p=s[.2];for(g in p)d.call(p,g)&&(S=p[g],this.options[g]=S);for(g in h)d.call(h,g)&&(S=h[g],this.options[g]=S)}return a.prototype.buildObject=function(h){var g,p,S,w,B;return g=this.options.attrkey,p=this.options.charkey,(0,n.default)(h).length===1&&this.options.rootName===s[.2].rootName?(B=(0,n.default)(h)[0],h=h[B]):B=this.options.rootName,S=function(b){return function(A,l){var i,x,O,T,D,R;if((l===void 0?"undefined":(0,c.default)(l))!=="object")b.options.cdata&&o(l)?A.raw(f(l)):A.txt(l);else if(Array.isArray(l)){for(T in l)if(d.call(l,T)){x=l[T];for(D in x)O=x[D],A=S(A.ele(D),O).up()}}else for(D in l)if(d.call(l,D))if(x=l[D],D===g){if((x===void 0?"undefined":(0,c.default)(x))==="object")for(i in x)R=x[i],A=A.att(i,R)}else if(D===p)A=b.options.cdata&&o(x)?A.raw(f(x)):A.txt(x);else if(Array.isArray(x))for(T in x)d.call(x,T)&&(O=x[T],A=typeof O=="string"?b.options.cdata&&o(O)?A.ele(D).raw(f(O)).up():A.ele(D,O).up():S(A.ele(D),O).up());else(x===void 0?"undefined":(0,c.default)(x))==="object"?A=S(A.ele(D),x).up():typeof x=="string"&&b.options.cdata&&o(x)?A=A.ele(D).raw(f(x)).up():(x==null&&(x=""),A=A.ele(D,x.toString()).up());return A}}(this),w=e.create(B,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),S(w,h).end(this.options.renderOpts)},a}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(y,E,_){"use strict";(function(){_.defaults={.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:""},.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)},{}],211:[function(y,E,_){"use strict";function C(u){return u&&u.__esModule?u:{default:u}}var m=y("babel-runtime/core-js/object/get-own-property-names"),c=C(m),r=y("babel-runtime/core-js/object/keys"),n=C(r),e=y("babel-runtime/helpers/typeof"),s=C(e);(function(){var u,o,f,d,a,h,g,p,S=function(b,A){return function(){return b.apply(A,arguments)}},w=function(b,A){function l(){this.constructor=b}for(var i in A)B.call(A,i)&&(b[i]=A[i]);return l.prototype=A.prototype,b.prototype=new l,b.__super__=A.prototype,b},B={}.hasOwnProperty;g=y("sax"),f=y("events"),u=y("./bom"),h=y("./processors"),p=y("timers").setImmediate,o=y("./defaults").defaults,d=function(b){return(b===void 0?"undefined":(0,s.default)(b))==="object"&&b!=null&&(0,n.default)(b).length===0},a=function(b,A,l){var i,x,O;for(i=0,x=b.length;i0&&(H[T.options.childkey]=U),U=H;return O.length>0?T.assignOrPush(N,J,U):(T.options.explicitRoot&&(G=U,U={},U[J]=G),T.resultObject=U,T.saxParser.ended=!0,T.emit("end",T.resultObject))}}(this),x=function(T){return function(D){var R,k;if(k=O[O.length-1])return k[i]+=D,T.options.explicitChildren&&T.options.preserveChildrenOrder&&T.options.charsAsChildren&&(T.options.includeWhiteChars||D.replace(/\\n/g,"").trim()!=="")&&(k[T.options.childkey]=k[T.options.childkey]||[],R={"#name":"__text__"},R[i]=D,T.options.normalize&&(R[i]=R[i].replace(/\s{2,}/g," ").trim()),k[T.options.childkey].push(R)),k}}(this),this.saxParser.ontext=x,this.saxParser.oncdata=function(T){return function(D){var R;if(R=x(D))return R.cdata=!0}}()},A.prototype.parseString=function(l,i){var x;i!=null&&typeof i=="function"&&(this.on("end",function(O){return this.reset(),i(null,O)}),this.on("error",function(O){return this.reset(),i(O)}));try{return l=l.toString(),l.trim()===""?(this.emit("end",null),!0):(l=u.stripBOM(l),this.options.async?(this.remaining=l,p(this.processAsync),this.saxParser):this.saxParser.write(l).close())}catch(O){if(x=O,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",x),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw x}},A}(f.EventEmitter),_.parseString=function(b,A,l){var i,x,O;return l!=null?(typeof l=="function"&&(i=l),(A===void 0?"undefined":(0,s.default)(A))==="object"&&(x=A)):(typeof A=="function"&&(i=A),x={}),O=new _.Parser(x),O.parseString(b,i)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(y,E,_){"use strict";(function(){var C;C=new RegExp(/(?!xmlns)^.*:/),_.normalize=function(m){return m.toLowerCase()},_.firstCharLowerCase=function(m){return m.charAt(0).toLowerCase()+m.slice(1)},_.stripPrefix=function(m){return m.replace(C,"")},_.parseNumbers=function(m){return isNaN(m)||(m=m%1==0?parseInt(m,10):parseFloat(m)),m},_.parseBooleans=function(m){return/^(?:true|false)$/i.test(m)&&(m=m.toLowerCase()==="true"),m}}).call(void 0)},{}],213:[function(y,E,_){"use strict";(function(){var C,m,c,r,n=function(s,u){function o(){this.constructor=s}for(var f in u)e.call(u,f)&&(s[f]=u[f]);return o.prototype=u.prototype,s.prototype=new o,s.__super__=u.prototype,s},e={}.hasOwnProperty;m=y("./defaults"),C=y("./builder"),c=y("./parser"),r=y("./processors"),_.defaults=m.defaults,_.processors=r,_.ValidationError=function(s){function u(o){this.message=o}return n(u,s),u}(Error),_.Builder=C.Builder,_.Parser=c.Parser,_.parseString=c.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(y,E,_){"use strict";function C(u){return u&&u.__esModule?u:{default:u}}var m=y("babel-runtime/core-js/object/get-prototype-of"),c=C(m),r=y("babel-runtime/helpers/typeof"),n=C(r),e=y("babel-runtime/core-js/object/assign"),s=C(e);(function(){var u,o,f,d,a,h,g=[].slice,p={}.hasOwnProperty;u=function(){var S,w,B,b,A,l;if(l=arguments[0],A=2<=arguments.length?g.call(arguments,1):[],d(s.default))s.default.apply(null,arguments);else for(S=0,B=A.length;S=0;)this.up();return this.onEnd()},l.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},l.prototype.openNode=function(i){if(!i.isOpen)return!this.root&&this.currentLevel===0&&i instanceof f&&(this.root=i),this.onData(this.writer.openNode(i,this.currentLevel)),i.isOpen=!0},l.prototype.closeNode=function(i){if(!i.isClosed)return this.onData(this.writer.closeNode(i,this.currentLevel)),i.isClosed=!0},l.prototype.onData=function(i){return this.documentStarted=!0,this.onDataCallback(i)},l.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},l.prototype.ele=function(){return this.element.apply(this,arguments)},l.prototype.nod=function(i,x,O){return this.node(i,x,O)},l.prototype.txt=function(i){return this.text(i)},l.prototype.dat=function(i){return this.cdata(i)},l.prototype.com=function(i){return this.comment(i)},l.prototype.ins=function(i,x){return this.instruction(i,x)},l.prototype.dec=function(i,x,O){return this.declaration(i,x,O)},l.prototype.dtd=function(i,x,O){return this.doctype(i,x,O)},l.prototype.e=function(i,x,O){return this.element(i,x,O)},l.prototype.n=function(i,x,O){return this.node(i,x,O)},l.prototype.t=function(i){return this.text(i)},l.prototype.d=function(i){return this.cdata(i)},l.prototype.c=function(i){return this.comment(i)},l.prototype.r=function(i){return this.raw(i)},l.prototype.i=function(i,x){return this.instruction(i,x)},l.prototype.att=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},l.prototype.a=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},l.prototype.ent=function(i,x){return this.entity(i,x)},l.prototype.pent=function(i,x){return this.pEntity(i,x)},l.prototype.not=function(i,x){return this.notation(i,x)},l}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){var c,r,n,e,s,u=function(f,d){function a(){this.constructor=f}for(var h in d)o.call(d,h)&&(f[h]=d[h]);return a.prototype=d.prototype,f.prototype=new a,f.__super__=d.prototype,f},o={}.hasOwnProperty;s=y("./Utility"),e=s.isObject,n=s.isFunction,r=y("./XMLNode"),c=y("./XMLAttribute"),E.exports=function(f){function d(a,h,g){if(d.__super__.constructor.call(this,a),h==null)throw new Error("Missing element name");this.name=this.stringify.eleName(h),this.attributes={},g!=null&&this.attribute(g),a.isDocument&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this)}return u(d,f),d.prototype.clone=function(){var a,h,g,p;g=(0,m.default)(this),g.isRoot&&(g.documentObject=null),g.attributes={},p=this.attributes;for(h in p)o.call(p,h)&&(a=p[h],g.attributes[h]=a.clone());return g.children=[],this.children.forEach(function(S){var w;return w=S.clone(),w.parent=g,g.children.push(w)}),g},d.prototype.attribute=function(a,h){var g,p;if(a!=null&&(a=a.valueOf()),e(a))for(g in a)o.call(a,g)&&(p=a[g],this.attribute(g,p));else n(h)&&(h=h.apply()),this.options.skipNullAttributes&&h==null||(this.attributes[a]=new c(this,a,h));return this},d.prototype.removeAttribute=function(a){var h,g,p;if(a==null)throw new Error("Missing attribute name");if(a=a.valueOf(),Array.isArray(a))for(g=0,p=a.length;g"+this.endline(B))},w.prototype.comment=function(B,b){return this.stream.write(this.space(b)+""+this.endline(B))},w.prototype.declaration=function(B,b){return this.stream.write(this.space(b)),this.stream.write('"),this.stream.write(this.endline(B))},w.prototype.docType=function(B,b){var A,l,i,x;if(b||(b=0),this.stream.write(this.space(b)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(B)),x=B.children,l=0,i=x.length;l"),this.stream.write(this.endline(B))},w.prototype.element=function(B,b){var A,l,i,x,O,T,D,R;b||(b=0),R=this.space(b),this.stream.write(R+"<"+B.name),T=B.attributes;for(O in T)p.call(T,O)&&(A=T[O],this.attribute(A));if(B.children.length===0||B.children.every(function(k){return k.value===""}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&B.children.length===1&&B.children[0].value!=null)this.stream.write(">"),this.stream.write(B.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),D=B.children,i=0,x=D.length;i")}return this.stream.write(this.endline(B))},w.prototype.processingInstruction=function(B,b){return this.stream.write(this.space(b)+""+this.endline(B))},w.prototype.raw=function(B,b){return this.stream.write(this.space(b)+B.value+this.endline(B))},w.prototype.text=function(B,b){return this.stream.write(this.space(b)+B.value+this.endline(B))},w.prototype.dtdAttList=function(B,b){return this.stream.write(this.space(b)+""+this.endline(B))},w.prototype.dtdElement=function(B,b){return this.stream.write(this.space(b)+""+this.endline(B))},w.prototype.dtdEntity=function(B,b){return this.stream.write(this.space(b)+""+this.endline(B))},w.prototype.dtdNotation=function(B,b){return this.stream.write(this.space(b)+""+this.endline(B))},w.prototype.endline=function(B){return B.isLastRootNode?"":this.newline},w}(h)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s,u,o,f,d,a,h,g=function(S,w){function B(){this.constructor=S}for(var b in w)p.call(w,b)&&(S[b]=w[b]);return B.prototype=w.prototype,S.prototype=new B,S.__super__=w.prototype,S},p={}.hasOwnProperty;s=y("./XMLDeclaration"),u=y("./XMLDocType"),C=y("./XMLCData"),m=y("./XMLComment"),o=y("./XMLElement"),d=y("./XMLRaw"),a=y("./XMLText"),f=y("./XMLProcessingInstruction"),c=y("./XMLDTDAttList"),r=y("./XMLDTDElement"),n=y("./XMLDTDEntity"),e=y("./XMLDTDNotation"),h=y("./XMLWriterBase"),E.exports=function(S){function w(B){w.__super__.constructor.call(this,B)}return g(w,S),w.prototype.document=function(B){var b,A,l,i,x;for(this.textispresent=!1,i="",x=B.children,A=0,l=x.length;A"+this.newline},w.prototype.comment=function(B,b){return this.space(b)+""+this.newline},w.prototype.declaration=function(B,b){var A;return A=this.space(b),A+='",A+=this.newline},w.prototype.docType=function(B,b){var A,l,i,x,O;if(b||(b=0),x=this.space(b),x+="0){for(x+=" [",x+=this.newline,O=B.children,l=0,i=O.length;l",x+=this.newline},w.prototype.element=function(B,b){var A,l,i,x,O,T,D,R,k,H,J,U,K;b||(b=0),K=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),U=this.space(b),R="",R+=U+"<"+B.name,k=B.attributes;for(D in k)p.call(k,D)&&(A=k[D],R+=this.attribute(A));if(B.children.length===0||B.children.every(function(G){return G.value===""}))this.allowEmpty?R+=">"+this.newline:R+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&B.children.length===1&&B.children[0].value!=null)R+=">",R+=B.children[0].value,R+=""+this.newline;else{if(this.dontprettytextnodes){for(H=B.children,i=0,O=H.length;i"+this.newline,J=B.children,x=0,T=J.length;x"+this.newline}return R},w.prototype.processingInstruction=function(B,b){var A;return A=this.space(b)+""+this.newline},w.prototype.raw=function(B,b){return this.space(b)+B.value+this.newline},w.prototype.text=function(B,b){return this.space(b)+B.value+this.newline},w.prototype.dtdAttList=function(B,b){var A;return A=this.space(b)+""+this.newline},w.prototype.dtdElement=function(B,b){return this.space(b)+""+this.newline},w.prototype.dtdEntity=function(B,b){var A;return A=this.space(b)+""+this.newline},w.prototype.dtdNotation=function(B,b){var A;return A=this.space(b)+""+this.newline},w.prototype.openNode=function(B,b){var A,l,i,x;if(b||(b=0),B instanceof o){i=this.space(b)+"<"+B.name,x=B.attributes;for(l in x)p.call(x,l)&&(A=x[l],i+=this.attribute(A));return i+=(B.children?">":"/>")+this.newline}return i=this.space(b)+"")+this.newline},w.prototype.closeNode=function(B,b){switch(b||(b=0),!1){case!(B instanceof o):return this.space(b)+""+this.newline;case!(B instanceof u):return this.space(b)+"]>"+this.newline}},w}(h)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(y,E,_){"use strict";(function(){var C=function(c,r){return function(){return c.apply(r,arguments)}},m={}.hasOwnProperty;E.exports=function(){function c(r){this.assertLegalChar=C(this.assertLegalChar,this);var n,e,s;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,e=r.stringify||{};for(n in e)m.call(e,n)&&(s=e[n],this[n]=s)}return c.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},c.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},c.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]>"),this.assertLegalChar(r)},c.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},c.prototype.raw=function(r){return""+r||""},c.prototype.attName=function(r){return r=""+r||""},c.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},c.prototype.insTarget=function(r){return""+r||""},c.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},c.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},c.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},c.prototype.xmlStandalone=function(r){return r?"yes":"no"},c.prototype.dtdPubID=function(r){return""+r||""},c.prototype.dtdSysID=function(r){return""+r||""},c.prototype.dtdElementValue=function(r){return""+r||""},c.prototype.dtdAttType=function(r){return""+r||""},c.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},c.prototype.dtdEntityValue=function(r){return""+r||""},c.prototype.dtdNData=function(r){return""+r||""},c.prototype.convertAttKey="@",c.prototype.convertPIKey="?",c.prototype.convertTextKey="#text",c.prototype.convertCDataKey="#cdata",c.prototype.convertCommentKey="#comment",c.prototype.convertRawKey="#raw",c.prototype.assertLegalChar=function(r){var n;if(n=r.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+r+" at index "+n.index);return r},c.prototype.elEscape=function(r){var n;return n=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(n,"&").replace(//g,">").replace(/\r/g," ")},c.prototype.attEscape=function(r){var n;return n=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(n,"&").replace(/0?new Array(r).join(this.indent):""):""},m}()}).call(void 0)},{}],235:[function(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s;s=y("./Utility"),n=s.assign,e=s.isFunction,C=y("./XMLDocument"),m=y("./XMLDocumentCB"),r=y("./XMLStringWriter"),c=y("./XMLStreamWriter"),E.exports.create=function(u,o,f,d){var a,h;if(u==null)throw new Error("Root element needs a name");return d=n({},o,f,d),a=new C(d),h=a.element(u),d.headless||(a.declaration(d),d.pubID==null&&d.sysID==null||a.doctype(d)),h},E.exports.begin=function(u,o,f){var d;return e(u)&&(d=[u,o],o=d[0],f=d[1],u={}),o?new m(u,o,f):new C(u)},E.exports.stringWriter=function(u){return new r(u)},E.exports.streamWriter=function(u,o){return new c(u,o)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(y,E,_){function C(){for(var c={},r=0;ro?a=d(a):a.length>5]|=128<>>9<<4)]=d;for(var a=1732584193,h=-271733879,g=-1732584194,p=271733878,S=0;S>16)+(d>>16)+(a>>16)<<16|65535&a}function u(f,d){return f<>>32-d}var o=y("./helpers");E.exports=function(f){return o.hash(f,C,16)}},{"./helpers":238}],240:[function(y,E,_){"use strict";function C(s,u){s[u>>5]|=128<<24-u%32,s[15+(u+64>>9<<4)]=u;for(var o=Array(80),f=1732584193,d=-271733879,a=-1732584194,h=271733878,g=-1009589776,p=0;p>16)+(u>>16)+(o>>16)<<16|65535&o}function n(s,u){return s<>>32-u}var e=y("./helpers");E.exports=function(s){return e.hash(s,C,20,!0)}},{"./helpers":238}],241:[function(y,E,_){"use strict";var C=y("./helpers"),m=function(a,h){var g=(65535&a)+(65535&h);return(a>>16)+(h>>16)+(g>>16)<<16|65535&g},c=function(a,h){return a>>>h|a<<32-h},r=function(a,h){return a>>>h},n=function(a,h,g){return a&h^~a&g},e=function(a,h,g){return a&h^a&g^h&g},s=function(a){return c(a,2)^c(a,13)^c(a,22)},u=function(a){return c(a,6)^c(a,11)^c(a,25)},o=function(a){return c(a,7)^c(a,18)^r(a,3)},f=function(a){return c(a,17)^c(a,19)^r(a,10)},d=function(a,h){var g,p,S,w,B,b,A,l,i,x,O,T,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),R=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),k=new Array(64);a[h>>5]|=128<<24-h%32,a[15+(h+64>>9<<4)]=h;for(var i=0;i=0)return p("Request#%d %s: got digest auth header WWW-Authenticate: %s",G,l,je),i.headers=i.headers||{},i.headers.Authorization=digestAuthHeader(Ae.method,Ae.path,je,i.digestAuth),p("Request#%d %s: auth with digest header: %s",G,l,i.headers.Authorization),qe.headers["set-cookie"]&&(i.headers.Cookie=qe.headers["set-cookie"].join(";")),_.requestWithCallback(l,i,$e)}var Ne=Date.now()-X;Ke&&(Ke.contentDownload=Ne),p("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ne,ne,le,Ae.method,Ae.host,Ae.path,de,Ke);var et={status:le,statusCode:le,headers:Pe,size:ne,aborted:De,rt:Ne,keepAliveSocket:de,data:rt,requestUrls:i.requestUrls,timing:Ke,remoteAddress:Xe,remotePort:xt};if(lt){var mt="";se&&typeof se.getCurrentStatus=="function"&&(mt=", agent status: "+(0,u.default)(se.getCurrentStatus())),lt.message+=", "+Ae.method+" "+l+" "+le+" (connected: "+W+", keepalive socket: "+de+mt+`) headers: `+(0,u.default)(Pe),lt.data=rt,lt.path=Ae.path,lt.status=le,lt.headers=Pe,lt.res=et}$e(lt,rt,i.streaming?qe:et),i.emitter&&(N.url=l,N.socket=ct&&ct.connection,N.options=Ae,N.size=Ie,i.emitter.emit("response",{requestId:G,error:lt,ctx:i.ctx,req:N,res:et}))}function R(lt){var rt=null;if(i.followRedirect&&statuses.redirect[lt.statusCode]){i._followRedirectCount=(i._followRedirectCount||0)+1;var qe=lt.headers.location;if(qe){if(!(i._followRedirectCount>i.maxRedirects)){var $e=i.formatRedirectUrl?i.formatRedirectUrl(l,qe):a.resolve(l,qe);p("Request#%d %s: `redirected` from %s to %s",G,Ae.path,l,$e),T(),i.headers&&i.headers.Host&&b.test(qe)&&(i.headers.Host=null);var Pe=x;return x=null,_.requestWithCallback($e,i,Pe),{redirect:!0,error:null}}rt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+l),rt.name="MaxRedirectError"}else rt=new Error("Got statusCode "+lt.statusCode+" but cannot resolve next location from headers"),rt.name="FollowRedirectError"}return{redirect:!1,error:rt}}function k(lt,rt,qe){return qe(null,rt,lt.headers["content-encoding"])}function H(lt){if(Ke&&(Ke.waiting=Date.now()-X),p("Request#%d %s `req response` event emit: status %d, headers: %j",G,l,lt.statusCode,lt.headers),i.streaming){var rt=R(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),D(rt.error,null,lt)):D(null,null,lt)}if(lt.on("close",function(){p("Request#%d %s: `res close` event emit, total size %d",G,l,ne)}),lt.on("error",function(){p("Request#%d %s: `res error` event emit, total size %d",G,l,ne)}),lt.on("aborted",function(){De=!0,p("Request#%d %s: `res aborted` event emit, total size %d",G,l,ne)}),ze){var rt=R(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),ze.end(),D(rt.error,null,lt)):(i.consumeWriteStream===!1?lt.on("end",D.bind(null,null,null,lt)):isNode010||isNode012?first([[ze,"close"],[lt,"aborted"]],function(Pe,je,Ne){p("Request#%d %s: writeStream or res %s event emitted",G,l,Ne),D(F||null,null,lt)}):ze.on("close",function(){p("Request#%d %s: writeStream close event emitted",G,l),D(F||null,null,lt)}),lt.pipe(ze))}var qe=[];lt.on("data",function($e){p("Request#%d %s: `res data` event emit, size %d",G,l,$e.length),ne+=$e.length,qe.push($e)}),lt.on("end",function(){var $e=m.concat(qe,ne);if(p("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",G,l,ne,lt._dumped),F)return D(F,$e,lt);var Pe=R(lt);if(Pe.error)return D(Pe.error,$e,lt);Pe.redirect||k(lt,$e,function(je,Ne,et){if(je)return D(je,$e,lt);if(!et&&A.indexOf(i.dataType)>=0){try{Ne=decodeBodyByCharset(Ne,lt)}catch(At){return p("decodeBodyByCharset error: %s",At),D(null,Ne,lt)}if(i.dataType==="json")if(ne===0)Ne=null;else{var mt=parseJSON(Ne,_e);mt.error?je=mt.error:Ne=mt.data}}De&&p("Request#%d %s: Remote socket was terminated before `response.end()` was called",G,l),D(je,Ne,lt)})})}function J(){p("Response timer ticking, timeout: %d",Et),re=setTimeout(function(){re=null;var lt="Response timeout for "+Et+"ms";F=new Error(lt),F.name="ResponseTimeoutError",F.requestId=G,p("ResponseTimeout: Request#%d %s %s: %s, connected: %s",G,l,F.name,lt,W),U()},Et)}function U(){p("Request#%d %s abort, connected: %s",G,l,W),ct.socket||(F.noSocket=!0,D(F)),ct.abort()}if(!l||typeof l!="string"&&(l===void 0?"undefined":(0,f.default)(l))!=="object"){var K=d.format("expect request url to be a string or a http request options, but got %j",l);throw new Error(K)}arguments.length===2&&typeof i=="function"&&(x=i,i=null),i=i||{},w>=B&&(w=0);var G=++w;i.requestUrls=i.requestUrls||[];var N={requestId:G,url:l,args:i,ctx:i.ctx};i.emitter&&i.emitter.emit("request",N),i.timeout=i.timeout||_.TIMEOUTS,i.maxRedirects=i.maxRedirects||10,i.streaming=i.streaming||i.customResponse;var Q,X=Date.now();typeof l=="string"?(b.test(l)||(l="http://"+l),Q=a.parse(l)):Q=l;var te=(i.type||i.method||Q.method||"GET").toUpperCase(),oe=Q.port||80,me=h,se=r(i.agent,_.agent),_e=i.fixJSONCtlChars;Q.protocol==="https:"&&(me=g,se=r(i.httpsAgent,_.httpsAgent),Q.port||(oe=443));var Ae={host:Q.hostname||Q.host||"localhost",path:Q.path||"/",method:te,port:oe,agent:se,headers:i.headers||{},lookup:i.lookup};Array.isArray(i.timeout)?Ae.requestTimeout=i.timeout[i.timeout.length-1]:i.timeout!==void 0&&(Ae.requestTimeout=i.timeout);for(var Ee=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],pe=0;pe>>2]>>>24-b%4*8&255;p[w+b>>>2]|=A<<24-(w+b)%4*8}else for(var b=0;b>>2]=S[b>>>2];return this.sigBytes+=B,this},clamp:function(){var g=this.words,p=this.sigBytes;g[p>>>2]&=4294967295<<32-p%4*8,g.length=C.ceil(p/4)},clone:function(){var g=e.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var p,S=[],w=0;w>16)&l,b=18e3*(65535&b)+(b>>16)&l;var i=(A<<16)+b&l;return i/=4294967296,(i+=.5)*(C.random()>.5?1:-1)}}(4294967296*(p||C.random()));p=987654071*B(),S.push(4294967296*B()|0)}return new s.init(S,g)}}),u=r.enc={},o=u.Hex={stringify:function(g){for(var p=g.words,S=g.sigBytes,w=[],B=0;B>>2]>>>24-B%4*8&255;w.push((b>>>4).toString(16)),w.push((15&b).toString(16))}return w.join("")},parse:function(g){for(var p=g.length,S=[],w=0;w>>3]|=parseInt(g.substr(w,2),16)<<24-w%8*4;return new s.init(S,p/2)}},f=u.Latin1={stringify:function(g){for(var p=g.words,S=g.sigBytes,w=[],B=0;B>>2]>>>24-B%4*8&255;w.push(String.fromCharCode(b))}return w.join("")},parse:function(g){for(var p=g.length,S=[],w=0;w>>2]|=(255&g.charCodeAt(w))<<24-w%4*8;return new s.init(S,p)}},d=u.Utf8={stringify:function(g){try{return decodeURIComponent(escape(f.stringify(g)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(g){return f.parse(unescape(encodeURIComponent(g)))}},a=n.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=d.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var p=this._data,S=p.words,w=p.sigBytes,B=this.blockSize,b=4*B,A=w/b;A=g?C.ceil(A):C.max((0|A)-this._minBufferSize,0);var l=A*B,i=C.min(4*l,w);if(l){for(var x=0;x",e[0];)r++;return r>4&&r}},{key:"extend",value:function(r,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&n[e]&&(r[e]=n[e])}},{key:"isArray",value:function(r){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(r){return r=r.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(r)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(r)?"audio":/.bmp|.jpg|.jpeg|.png/.test(r)?"img":"other"}},{key:"isImage",value:function(r){return r=r.toLowerCase(),!!/.jpg|.jpeg|.png/.test(r)}},{key:"ISODateString",value:function(r){function n(e){return e<10?"0"+e:e}return r.getUTCFullYear()+"-"+n(r.getUTCMonth()+1)+"-"+n(r.getUTCDate())+"T"+n(r.getUTCHours())+":"+n(r.getUTCMinutes())+":"+n(r.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(r){return!!/^\d+$/.test(r)}}]),c}();y.default=m},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){return function(C){function m(h,g,p,S,w,B,b){var A=h+(g&p|~g&S)+w+b;return(A<>>32-B)+g}function c(h,g,p,S,w,B,b){var A=h+(g&S|p&~S)+w+b;return(A<>>32-B)+g}function r(h,g,p,S,w,B,b){var A=h+(g^p^S)+w+b;return(A<>>32-B)+g}function n(h,g,p,S,w,B,b){var A=h+(p^(g|~S))+w+b;return(A<>>32-B)+g}var e=_,s=e.lib,u=s.WordArray,o=s.Hasher,f=e.algo,d=[];!function(){for(var h=0;h<64;h++)d[h]=4294967296*C.abs(C.sin(h+1))|0}();var a=f.MD5=o.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,g){for(var p=0;p<16;p++){var S=g+p,w=h[S];h[S]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8)}var B=this._hash.words,b=h[g+0],A=h[g+1],l=h[g+2],i=h[g+3],x=h[g+4],O=h[g+5],T=h[g+6],D=h[g+7],R=h[g+8],k=h[g+9],H=h[g+10],J=h[g+11],U=h[g+12],K=h[g+13],G=h[g+14],N=h[g+15],Q=B[0],X=B[1],te=B[2],oe=B[3];Q=m(Q,X,te,oe,b,7,d[0]),oe=m(oe,Q,X,te,A,12,d[1]),te=m(te,oe,Q,X,l,17,d[2]),X=m(X,te,oe,Q,i,22,d[3]),Q=m(Q,X,te,oe,x,7,d[4]),oe=m(oe,Q,X,te,O,12,d[5]),te=m(te,oe,Q,X,T,17,d[6]),X=m(X,te,oe,Q,D,22,d[7]),Q=m(Q,X,te,oe,R,7,d[8]),oe=m(oe,Q,X,te,k,12,d[9]),te=m(te,oe,Q,X,H,17,d[10]),X=m(X,te,oe,Q,J,22,d[11]),Q=m(Q,X,te,oe,U,7,d[12]),oe=m(oe,Q,X,te,K,12,d[13]),te=m(te,oe,Q,X,G,17,d[14]),X=m(X,te,oe,Q,N,22,d[15]),Q=c(Q,X,te,oe,A,5,d[16]),oe=c(oe,Q,X,te,T,9,d[17]),te=c(te,oe,Q,X,J,14,d[18]),X=c(X,te,oe,Q,b,20,d[19]),Q=c(Q,X,te,oe,O,5,d[20]),oe=c(oe,Q,X,te,H,9,d[21]),te=c(te,oe,Q,X,N,14,d[22]),X=c(X,te,oe,Q,x,20,d[23]),Q=c(Q,X,te,oe,k,5,d[24]),oe=c(oe,Q,X,te,G,9,d[25]),te=c(te,oe,Q,X,i,14,d[26]),X=c(X,te,oe,Q,R,20,d[27]),Q=c(Q,X,te,oe,K,5,d[28]),oe=c(oe,Q,X,te,l,9,d[29]),te=c(te,oe,Q,X,D,14,d[30]),X=c(X,te,oe,Q,U,20,d[31]),Q=r(Q,X,te,oe,O,4,d[32]),oe=r(oe,Q,X,te,R,11,d[33]),te=r(te,oe,Q,X,J,16,d[34]),X=r(X,te,oe,Q,G,23,d[35]),Q=r(Q,X,te,oe,A,4,d[36]),oe=r(oe,Q,X,te,x,11,d[37]),te=r(te,oe,Q,X,D,16,d[38]),X=r(X,te,oe,Q,H,23,d[39]),Q=r(Q,X,te,oe,K,4,d[40]),oe=r(oe,Q,X,te,b,11,d[41]),te=r(te,oe,Q,X,i,16,d[42]),X=r(X,te,oe,Q,T,23,d[43]),Q=r(Q,X,te,oe,k,4,d[44]),oe=r(oe,Q,X,te,U,11,d[45]),te=r(te,oe,Q,X,N,16,d[46]),X=r(X,te,oe,Q,l,23,d[47]),Q=n(Q,X,te,oe,b,6,d[48]),oe=n(oe,Q,X,te,D,10,d[49]),te=n(te,oe,Q,X,G,15,d[50]),X=n(X,te,oe,Q,O,21,d[51]),Q=n(Q,X,te,oe,U,6,d[52]),oe=n(oe,Q,X,te,i,10,d[53]),te=n(te,oe,Q,X,H,15,d[54]),X=n(X,te,oe,Q,A,21,d[55]),Q=n(Q,X,te,oe,R,6,d[56]),oe=n(oe,Q,X,te,N,10,d[57]),te=n(te,oe,Q,X,T,15,d[58]),X=n(X,te,oe,Q,K,21,d[59]),Q=n(Q,X,te,oe,x,6,d[60]),oe=n(oe,Q,X,te,J,10,d[61]),te=n(te,oe,Q,X,l,15,d[62]),X=n(X,te,oe,Q,k,21,d[63]),B[0]=B[0]+Q|0,B[1]=B[1]+X|0,B[2]=B[2]+te|0,B[3]=B[3]+oe|0},_doFinalize:function(){var h=this._data,g=h.words,p=8*this._nDataBytes,S=8*h.sigBytes;g[S>>>5]|=128<<24-S%32;var w=C.floor(p/4294967296),B=p;g[15+(S+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),g[14+(S+64>>>9<<4)]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8),h.sigBytes=4*(g.length+1),this._process();for(var b=this._hash,A=b.words,l=0;l<4;l++){var i=A[l];A[l]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}return b},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h}});e.MD5=o._createHelper(a),e.HmacMD5=o._createHmacHelper(a)}(Math),_.MD5})},function(P,y,E){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},y.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},y.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(P,y,E){"use strict";function _(a){return a&&a.__esModule?a:{default:a}}function C(a,h){if(!(a instanceof h))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=function(){function a(h,g){for(var p=0;p-1)return"Baiduspider";if(u.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||u.indexOf("Windows")>-1,d=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return d&&(o="macOS"),navigator.platform=="X11"&&!f&&!d&&(o="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(o="Linux"),f?"windows":o},c=function(){var s=navigator.userAgent,u="";return(s.indexOf("Windows NT 5.0")>-1||s.indexOf("Windows 2000")>-1)&&(u="2000"),(s.indexOf("Windows NT 5.1")>-1||s.indexOf("Windows XP")>-1)&&(u="XP"),(s.indexOf("Windows NT 5.2")>-1||s.indexOf("Windows 2003")>-1)&&(u="2003"),(s.indexOf("Windows NT 6.0")>-1||s.indexOf("Windows Vista")>-1)&&(u="Vista"),(s.indexOf("Windows NT 6.1")>-1||s.indexOf("Windows 7")>-1)&&(u="7"),(s.indexOf("Windows NT 6.2")>-1||s.indexOf("Windows 8")>-1)&&(u="8"),(s.indexOf("Windows NT 6.3")>-1||s.indexOf("Windows 8.1")>-1)&&(u="8.1"),(s.indexOf("Windows NT 10")>-1||s.indexOf("Windows 10")>-1)&&(u="10"),u},r=function(s){var u=navigator.userAgent.toLowerCase();return s.chrome?"Chrome":s.firefox?"Firefox":s.safari?"Safari":s.webview?"webview":s.ie?/edge/.test(u)?"Edge":"IE":/baiduspider/.test(u)?"Baiduspider":/ucweb/.test(u)||/UCBrowser/.test(u)?"UC":/opera/.test(u)?"Opera":/ucweb/.test(u)?"UC":/360se/.test(u)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(u)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(u)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(u)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(u)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(u)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(u)?"PS4\u6D4F\u89C8\u5668":void 0},n=function(){var s={},u={},o=navigator.userAgent,f=navigator.platform,d=o.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=o.match(/(Android);?[\s\/]+([\d.]+)?/),h=!!o.match(/\(Macintosh\; Intel /),g=o.match(/(iPad).*OS\s([\d_]+)/),p=o.match(/(iPod)(.*OS\s([\d_]+))?/),S=!g&&o.match(/(iPhone\sOS)\s([\d_]+)/),w=o.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),B=/Win\d{2}|Windows/.test(f),b=o.match(/Windows Phone ([\d.]+)/),A=w&&o.match(/TouchPad/),l=o.match(/Kindle\/([\d.]+)/),i=o.match(/Silk\/([\d._]+)/),x=o.match(/(BlackBerry).*Version\/([\d.]+)/),O=o.match(/(BB10).*Version\/([\d.]+)/),T=o.match(/(RIM\sTablet\sOS)\s([\d.]+)/),D=o.match(/PlayBook/),R=o.match(/Chrome\/([\d.]+)/)||o.match(/CriOS\/([\d.]+)/),k=o.match(/Firefox\/([\d.]+)/),H=o.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),J=o.match(/MSIE\s([\d.]+)/)||o.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),U=!R&&o.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),K=U||o.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((u.webkit=!!d)&&(u.version=d[1]),a&&(s.android=!0,s.version=a[2]),S&&!p&&(s.ios=s.iphone=!0,s.version=S[2].replace(/_/g,".")),g&&(s.ios=s.ipad=!0,s.version=g[2].replace(/_/g,".")),p&&(s.ios=s.ipod=!0,s.version=p[3]?p[3].replace(/_/g,"."):null),b&&(s.wp=!0,s.version=b[1]),w&&(s.webos=!0,s.version=w[2]),A&&(s.touchpad=!0),x&&(s.blackberry=!0,s.version=x[2]),O&&(s.bb10=!0,s.version=O[2]),T&&(s.rimtabletos=!0,s.version=T[2]),D&&(u.playbook=!0),l&&(s.kindle=!0,s.version=l[1]),i&&(u.silk=!0,u.version=i[1]),!i&&s.android&&o.match(/Kindle Fire/)&&(u.silk=!0),R&&(u.chrome=!0,u.version=R[1]),k&&(u.firefox=!0,u.version=k[1]),H&&(s.firefoxos=!0,s.version=H[1]),J&&(u.ie=!0,u.version=J[1]),K&&(h||s.ios||B||a)&&(u.safari=!0,s.ios||(u.version=K[1])),U&&(u.webview=!0),h){var G=o.match(/[\d]*_[\d]*_[\d]*/);G&&G.length>0&&G[0]&&(s.version=G[0].replace(/_/g,"."))}return s.tablet=!!(g||D||a&&!o.match(/Mobile/)||k&&o.match(/Tablet/)||J&&!o.match(/Phone/)&&o.match(/Touch/)),s.phone=!(s.tablet||s.ipod||!(a||S||w||x||O||R&&o.match(/Android/)||R&&o.match(/CriOS\/([\d.]+)/)||k&&o.match(/Mobile/)||J&&o.match(/Touch/))),s.pc=!s.tablet&&!s.phone,h?s.name="macOS":B?(s.name="windows",s.version=c()):s.name=m(s),u.name=r(u),{os:s,browser:u}}(),e=function(){function s(){_(this,s)}return C(s,null,[{key:"getHost",value:function(u){var o="";if(u===void 0||u==null||u=="")return"";var f=u.indexOf("//"),d=u;f>-1&&(d=u.substring(f+2));var o=d,a=d.split("/");return a&&a.length>0&&(o=a[0]),a=o.split(":"),a&&a.length>0&&(o=a[0]),o}},{key:"os",get:function(){return n.os}},{key:"browser",get:function(){var u=n.browser;return u.name||(u.name=r()),u}}]),s}();y.default=e},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(r,n){for(var e=0;e0){G._invalidUserId=!0;var te=X.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(te)}}catch(oe){console.log(oe)}})})}H&&(K.videoInfo=H?JSON.parse(H).Vod:{},K.userData=u.default.encode(H)),K.ri=S.default.create(),this._uploadList.push(K),this._reportLog("20001",K,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(K)}catch(N){console.log(N)}return!0}},{key:"deleteFile",value:function(T){return!!this.cancelFile(T)&&(this._uploadList.splice(T,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(T){if(this.options,T<0||T>=this._uploadList.length)return!1;var D=this._uploadList[T];if(T==this._curIndex&&D.state==c.UPLOADSTATE.UPLOADING){D.state=c.UPLOADSTATE.CANCELED;var R=this._getCheckoutpoint(D);R&&R.checkpoint&&(R=R.checkpoint),R&&this._ossUpload.abort(D),this._removeCheckoutpoint(D),this.nextUpload()}else D.state!=c.UPLOADSTATE.SUCCESS&&(D.state=c.UPLOADSTATE.CANCELED);return this._reportLog("20008",D),!0}},{key:"resumeFile",value:function(T){if(this.options,T<0||T>=this._uploadList.length)return!1;var D=this._uploadList[T];return D.state==c.UPLOADSTATE.CANCELED&&(D.state=c.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(T){return this._getCheckoutpoint({file:T})}},{key:"startUpload",value:function(T){if(this._retryCount=0,this.options,this._state==c.VODSTATE.START||this._state==c.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=c.VODSTATE.END);var D=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(D),this._state=c.VODSTATE.START}},{key:"nextUpload",value:function(){var T=this.options;if(this._state==c.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var D=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(D)}else{this._state=c.VODSTATE.END;try{T.onUploadEnd&&T.onUploadEnd(D)}catch(R){console.log(R)}}}},{key:"clear",value:function(T){for(var D=this.options,R=0,k=0;kthis._curIndex&&(H=this._uploadList[this._curIndex]),H&&(this.init(T,D,R,k),this._state=c.VODSTATE.START,this._ossUpload=null,this._uploadCore(H,H.retry),H.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(T,D,R){if(this._curIndex==-1)return!1;if(this._state!=c.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var k=this._uploadList[this._curIndex];k.object?this._refreshSTSTokenUpload(k,T,D,R):this.setSTSToken(k,T,D,R)}}},{key:"setSTSTokenDirectlyUpload",value:function(T,D,R,k,H){if(!(D&&R&&k&&H))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var J=T;this.init(D,R,k,H),J.endpoint=J._endpoint,J.bucket=J._bucket,J.object=J._object,this._ossUpload=null,this._uploadCore(J,T.retry),T.retry=!1}},{key:"setSTSToken",value:function(T,D,R,k){if(!D||!R||!k)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var H=T.videoInfo,J={accessKeyId:D,securityToken:k,accessKeySecret:R,fileName:T.file.name,title:H.Title,requestId:T.ri,region:this.options.region};H.ImageType&&(J.imageType=H.ImageType),H.ImageExt&&(J.imageExt=H.ImageExt),H.FileSize&&(J.fileSize=H.FileSize),H.Description&&(J.description=H.Description),H.CateId&&(J.cateId=H.CateId),H.Tags&&(J.tags=H.Tags),H.TemplateGroupId&&(J.templateGroupId=H.TemplateGroupId),H.StorageLocation&&(J.storageLocation=H.StorageLocation),H.CoverURL&&(J.coverUrl=H.CoverURL),H.TransCodeMode&&(J.transCodeMode=H.TransCodeMode),H.UserData&&(J.userData=H.UserData);var U=this,K="getUploadAuth";T.videoId?(J.videoId=T.videoId,K="refreshUploadAuth"):T.isImage&&(K="getImageUploadAuth"),B.default[K](J,function(G){T.videoId=G.VideoId?G.VideoId:T.videoId,U.setUploadAuthAndAddress(T,G.UploadAuth,G.UploadAddress),U._state=c.VODSTATE.START},function(G){U._error(T,{name:G.Code,code:G.Code,message:G.Message,requestId:G.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(T,D,R,k){if(!T||!D||!R)return!1;var H=JSON.parse(u.default.decode(D));if(!(H.AccessKeyId&&H.AccessKeySecret&&H.SecurityToken&&H.Expiration))return console.error("uploadauth is invalid"),!1;var J={},U=T;if(R){if(J=JSON.parse(u.default.decode(R)),!J.Endpoint||!J.Bucket||!J.FileName)return console.error("uploadAddress is invalid"),!1}else J.Endpoint=U.endpoint,J.Bucket=U.bucket,J.FileName=U.object;this._ut="vod",this._uploadWay="vod",this.options.region=H.Region||this.options.region,this.init(H.AccessKeyId,H.AccessKeySecret,H.SecurityToken,H.Expiration),U.endpoint=U._endpoint?U._endpoint:J.Endpoint,U.bucket=U._bucket?U._bucket:J.Bucket,U.object=U._object?U._object:J.FileName,U.region=this.options.region,k&&(U.videoId=k),this._ossUpload=null,this._uploadCore(U,T.retry),T.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(T,D,R,k){if(!D||!R||!k)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var H={accessKeyId:D,securityToken:k,accessKeySecret:R,videoId:T.object,requestId:T.ri,region:this.options.region},J=this,U="refreshUploadAuth";T.isImage&&(U="getImageUploadAuth"),B.default[U](H,function(K){J.setUploadAuthAndAddress(T,K.UploadAuth,UploadAddress),J._state=c.VODSTATE.START},function(K){J._error(T,{name:K.Code,code:K.Code,message:K.Message,requestId:K.RequestId})})}},{key:"_upload",value:function(T){var D=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=this.options;if(T.retry=D,R.onUploadstarted&&!D)try{var k=this._getCheckoutpoint(T);k&&k.state!=c.UPLOADSTATE.UPLOADING&&(T.checkpoint=k,T.videoId=k.videoId),R.onUploadstarted(T)}catch(H){console.log(H)}}},{key:"_uploadCore",value:function(T){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(T.state=c.UPLOADSTATE.UPLOADING,!this._ossUpload){T.endpoint=T.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var D=this;this._ossUpload=new e.default({bucket:T.bucket,endpoint:T.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(G,N){D._error.call(D,G,N)},oncomplete:function(G,N){D._complete.call(D,G,N)},onprogress:function(G,N,Q){D._progress.call(D,G,N,Q)}})}var R=g.default.getFileType(T.file.name),k=this._getCheckoutpoint(T),H="",J="";k&&k.checkpoint&&(J=k.state,H=k.videoId,k=k.checkpoint),k&&H==T.videoId&&J!=c.UPLOADSTATE.UPLOADING&&(k.file=T.file,T.checkpoint=k,k.uploadId);var U=this._adjustPartSize(T);this._reportLog("20002",T,{ft:R,fs:T.file.size,bu:T.bucket,ok:T.object,vid:T.videoId||"",fn:T.file.name,fw:null,fh:null,ps:U});var K={headers:{"x-oss-notification":T.userData?T.userData:""},partSize:U,parallel:this.options.parallel};this._ossUpload.upload(T,K)}},{key:"_findUploadIndex",value:function(){for(var T=-1,D=0;D0||D.name=="SignatureDoesNotMatchError"||D.code=="SecurityTokenExpired"||D.code=="InvalidSecurityToken.Expired"||D.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=c.VODSTATE.EXPIRE,T.state=c.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(T,D)}catch(k){console.log(k)}}return}if((D.name=="RequestTimeoutError"||D.name=="ConnectionTimeout"||D.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var R=this;return setTimeout(function(){R._uploadCore(T,!0)},1e3*R._retryDuration),void this._retryCount++}D.name=="NoSuchUploadError"&&this._removeCheckoutpoint(T),this._handleError(T,D)}}},{key:"_handleError",value:function(T,D){var R=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],k=c.UPLOADSTATE.FAIlURE;if(T.state!=c.UPLOADSTATE.CANCELED&&(T.state=c.UPLOADSTATE.FAIlURE,this._state=c.VODSTATE.FAILURE,this.options.onUploadFailed&&D&&D.code&&D.message))try{this.options.onUploadFailed(T,D.code,D.message)}catch(J){console.log(J)}if(R&&this._changeState(T,k),this._reportLog("20006",T,{code:D.name,message:D.message,requestId:D.requestId,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),this._reportLog("20004",T,{requestId:D.requestId,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),T.ri=S.default.create(),this._findUploadIndex()!=-1){var H=this;this._state=c.VODSTATE.START,setTimeout(function(){H.nextUpload()},100)}}},{key:"_complete",value:function(T,D){if(T.state=c.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(T)}catch(H){console.log(H)}var R=0;D&&D.res&&D.res.headers&&(R=D.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(T);var k=this;setTimeout(function(){k.nextUpload()},100),this._retryCount=0,this._reportLog("20003",T,{requestId:R})}},{key:"_progress",value:function(T,D,R){if(this.options.onUploadProgress)try{T.loaded=D.loaded,this.options.onUploadProgress(T,D.total,D.loaded)}catch(N){console.log(N)}var k=D.checkpoint,H=0;k&&(T.checkpoint=k,this._saveCheckoutpoint(T,k,c.UPLOADSTATE.UPLOADING),H=k.uploadId),this._retryCount=0;var J=this._getPortNumber(k),U=0;if(R&&R.headers&&(U=R.headers["x-oss-request-id"]),D.loaded!=0&&this._reportLog("20007",T,{pn:J,requestId:U}),D.loaded!=1&&this._reportLog("20005",T,{UploadId:H,pn:J+1,pr:T.retry?1:0,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),!this._invalidUserId&&!T.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var K={file:T.file,checkpoint:D,userId:this.options.userId,videoId:T.videoId,region:this.options.region,fileHash:T.fileHash};try{var G=this;A.default.upload(K,function(){},function(N){if((N=JSON.parse(N))&&N.Code=="InvalidParameter"&&N.Message.indexOf("UserId")>0){G._invalidUserId=!0;var Q=N.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(Q)}})}catch(N){console.log(N)}}}},{key:"_getPortNumber",value:function(T){if(T){var D=T.doneParts;if(D&&D.length>0)return D[D.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(T){var D=this._getCheckoutpointKey(T);f.default.remove(D)}},{key:"_getCheckoutpoint",value:function(T){var D=this._getCheckoutpointKey(T),R=f.default.get(D);if(R)try{return JSON.parse(R)}catch(k){}return""}},{key:"_saveCheckoutpoint",value:function(T,D,R){if(D){var k=this._getCheckoutpointKey(T),H=T.file,J={fileName:H.name,lastModified:H.lastModified,size:H.size,object:T.object,videoId:T.videoId,bucket:T.bucket,endpoint:T.endpoint,checkpoint:D,loaded:T.loaded,state:R};f.default.set(k,JSON.stringify(J))}}},{key:"_changeState",value:function(T,D){var R=this._getCheckoutpoint(T);R&&((this._onbeforeunload=!0)&&(D=c.UPLOADSTATE.STOPED),this._saveCheckoutpoint(T,R.checkpoint,D))}},{key:"_getCheckoutpointKey",value:function(T){return"upload_"+T.file.lastModified+"_"+T.file.name+"_"+T.file.size}},{key:"_getCheckoutpointFromCloud",value:function(T,D,R){var k={userId:this.options.userId,uploadInfoList:[{FileName:T.file.name,FileSize:T.file.size,FileCreateTime:T.file.lastModified,FileHash:T.fileHash}],region:this.options.region};A.default.get(k,function(H){D(H)},R)}},{key:"_reportLog",value:function(T,D,R){R||(R={}),R.ri=D.ri,this._ut&&(R.ut=this._ut),this._log.log(T,R)}},{key:"_initEvent",value:function(){var T=this;window&&(window.onbeforeunload=function(D){if(T._onbeforeunload=!0,T._curIndex!=-1&&T._uploadList.length>T._curIndex){var R=T._uploadList[T._curIndex];T._changeState(R,c.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var T=0;T1e4?T.file.size/9999:this.options.partSize}}]),O}());y.default=x},function(P,y,E){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},y.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(P,y,E){"use strict";function _(s){return s&&s.__esModule?s:{default:s}}function C(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=function(){function s(u,o){for(var f=0;f=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return 0|re}function h(re){return+re!=re&&(re=0),c.alloc(+re)}function g(re,F){if(c.isBuffer(re))return re.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(re)||re instanceof ArrayBuffer))return re.byteLength;typeof re!="string"&&(re=""+re);var W=re.length;if(W===0)return 0;for(var de=!1;;)switch(F){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return Ae(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*W;case"hex":return W>>>1;case"base64":return he(re).length;default:if(de)return Ae(re).length;F=(""+F).toLowerCase(),de=!0}}function p(re,F,W){var de=!1;if((F===void 0||F<0)&&(F=0),F>this.length)return"";if((W===void 0||W>this.length)&&(W=this.length),W<=0)return"";if(W>>>=0,F>>>=0,W<=F)return"";for(re||(re="utf8");;)switch(re){case"hex":return J(this,F,W);case"utf8":case"utf-8":return D(this,F,W);case"ascii":return k(this,F,W);case"latin1":case"binary":return H(this,F,W);case"base64":return T(this,F,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,F,W);default:if(de)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),de=!0}}function S(re,F,W){var de=re[F];re[F]=re[W],re[W]=de}function w(re,F,W,de,ne){if(re.length===0)return-1;if(typeof W=="string"?(de=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=ne?0:re.length-1),W<0&&(W=re.length+W),W>=re.length){if(ne)return-1;W=re.length-1}else if(W<0){if(!ne)return-1;W=0}if(typeof F=="string"&&(F=c.from(F,de)),c.isBuffer(F))return F.length===0?-1:B(re,F,W,de,ne);if(typeof F=="number")return F&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ne?Uint8Array.prototype.indexOf.call(re,F,W):Uint8Array.prototype.lastIndexOf.call(re,F,W):B(re,[F],W,de,ne);throw new TypeError("val must be string, number or Buffer")}function B(re,F,W,de,ne){function le(ct,lt){return De===1?ct[lt]:ct.readUInt16BE(lt*De)}var De=1,Xe=re.length,xt=F.length;if(de!==void 0&&((de=String(de).toLowerCase())==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(re.length<2||F.length<2)return-1;De=2,Xe/=2,xt/=2,W/=2}var Ke;if(ne){var ze=-1;for(Ke=W;KeXe&&(W=Xe-xt),Ke=W;Ke>=0;Ke--){for(var yt=!0,Et=0;Etne&&(de=ne):de=ne;var le=F.length;if(le%2!=0)throw new TypeError("Invalid hex string");de>le/2&&(de=le/2);for(var De=0;De239?4:le>223?3:le>191?2:1;if(ne+Xe<=W){var xt,Ke,ze,yt;switch(Xe){case 1:le<128&&(De=le);break;case 2:xt=re[ne+1],(192&xt)==128&&(yt=(31&le)<<6|63&xt)>127&&(De=yt);break;case 3:xt=re[ne+1],Ke=re[ne+2],(192&xt)==128&&(192&Ke)==128&&(yt=(15&le)<<12|(63&xt)<<6|63&Ke)>2047&&(yt<55296||yt>57343)&&(De=yt);break;case 4:xt=re[ne+1],Ke=re[ne+2],ze=re[ne+3],(192&xt)==128&&(192&Ke)==128&&(192&ze)==128&&(yt=(15&le)<<18|(63&xt)<<12|(63&Ke)<<6|63&ze)>65535&&yt<1114112&&(De=yt)}}De===null?(De=65533,Xe=1):De>65535&&(De-=65536,de.push(De>>>10&1023|55296),De=56320|1023&De),de.push(De),ne+=Xe}return R(de)}function R(re){var F=re.length;if(F<=Fe)return String.fromCharCode.apply(String,re);for(var W="",de=0;dede)&&(W=de);for(var ne="",le=F;leW)throw new RangeError("Trying to access beyond buffer length")}function G(re,F,W,de,ne,le){if(!c.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>ne||Fre.length)throw new RangeError("Index out of range")}function N(re,F,W,de){F<0&&(F=65535+F+1);for(var ne=0,le=Math.min(re.length-W,2);ne>>8*(de?ne:1-ne)}function Q(re,F,W,de){F<0&&(F=4294967295+F+1);for(var ne=0,le=Math.min(re.length-W,4);ne>>8*(de?ne:3-ne)&255}function X(re,F,W,de,ne,le){if(W+de>re.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function te(re,F,W,de,ne){return ne||X(re,F,W,4,34028234663852886e22,-34028234663852886e22),ce.write(re,F,W,de,23,4),W+4}function oe(re,F,W,de,ne){return ne||X(re,F,W,8,17976931348623157e292,-17976931348623157e292),ce.write(re,F,W,de,52,8),W+8}function me(re){if(re=se(re).replace(ke,""),re.length<2)return"";for(;re.length%4!=0;)re+="=";return re}function se(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")}function _e(re){return re<16?"0"+re.toString(16):re.toString(16)}function Ae(re,F){F=F||1/0;for(var W,de=re.length,ne=null,le=[],De=0;De55295&&W<57344){if(!ne){if(W>56319){(F-=3)>-1&&le.push(239,191,189);continue}if(De+1===de){(F-=3)>-1&&le.push(239,191,189);continue}ne=W;continue}if(W<56320){(F-=3)>-1&&le.push(239,191,189),ne=W;continue}W=65536+(ne-55296<<10|W-56320)}else ne&&(F-=3)>-1&&le.push(239,191,189);if(ne=null,W<128){if((F-=1)<0)break;le.push(W)}else if(W<2048){if((F-=2)<0)break;le.push(W>>6|192,63&W|128)}else if(W<65536){if((F-=3)<0)break;le.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((F-=4)<0)break;le.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return le}function Ee(re){for(var F=[],W=0;W>8,ne=W%256,le.push(ne),le.push(de);return le}function he(re){return ge.toByteArray(me(re))}function ie(re,F,W,de){for(var ne=0;ne=F.length||ne>=re.length);++ne)F[ne+W]=re[ne];return ne}function fe(re){return re!==re}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var ge=E(21),ce=E(22),Ie=E(23);y.Buffer=c,y.SlowBuffer=h,y.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=_.TYPED_ARRAY_SUPPORT!==void 0?_.TYPED_ARRAY_SUPPORT:function(){try{var re=new Uint8Array(1);return re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},re.foo()===42&&typeof re.subarray=="function"&&re.subarray(1,1).byteLength===0}catch(F){return!1}}(),y.kMaxLength=C(),c.poolSize=8192,c._augment=function(re){return re.__proto__=c.prototype,re},c.from=function(re,F,W){return r(null,re,F,W)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(re,F,W){return e(null,re,F,W)},c.allocUnsafe=function(re){return s(null,re)},c.allocUnsafeSlow=function(re){return s(null,re)},c.isBuffer=function(re){return!(re==null||!re._isBuffer)},c.compare=function(re,F){if(!c.isBuffer(re)||!c.isBuffer(F))throw new TypeError("Arguments must be Buffers");if(re===F)return 0;for(var W=re.length,de=F.length,ne=0,le=Math.min(W,de);ne0&&(re=this.toString("hex",0,F).match(/.{2}/g).join(" "),this.length>F&&(re+=" ... ")),""},c.prototype.compare=function(re,F,W,de,ne){if(!c.isBuffer(re))throw new TypeError("Argument must be a Buffer");if(F===void 0&&(F=0),W===void 0&&(W=re?re.length:0),de===void 0&&(de=0),ne===void 0&&(ne=this.length),F<0||W>re.length||de<0||ne>this.length)throw new RangeError("out of range index");if(de>=ne&&F>=W)return 0;if(de>=ne)return-1;if(F>=W)return 1;if(F>>>=0,W>>>=0,de>>>=0,ne>>>=0,this===re)return 0;for(var le=ne-de,De=W-F,Xe=Math.min(le,De),xt=this.slice(de,ne),Ke=re.slice(F,W),ze=0;zene)&&(W=ne),re.length>0&&(W<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var le=!1;;)switch(de){case"hex":return b(this,re,F,W);case"utf8":case"utf-8":return A(this,re,F,W);case"ascii":return l(this,re,F,W);case"latin1":case"binary":return i(this,re,F,W);case"base64":return x(this,re,F,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,re,F,W);default:if(le)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),le=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Fe=4096;c.prototype.slice=function(re,F){var W=this.length;re=~~re,F=F===void 0?W:~~F,re<0?(re+=W)<0&&(re=0):re>W&&(re=W),F<0?(F+=W)<0&&(F=0):F>W&&(F=W),F0&&(ne*=256);)de+=this[re+--F]*ne;return de},c.prototype.readUInt8=function(re,F){return F||K(re,1,this.length),this[re]},c.prototype.readUInt16LE=function(re,F){return F||K(re,2,this.length),this[re]|this[re+1]<<8},c.prototype.readUInt16BE=function(re,F){return F||K(re,2,this.length),this[re]<<8|this[re+1]},c.prototype.readUInt32LE=function(re,F){return F||K(re,4,this.length),(this[re]|this[re+1]<<8|this[re+2]<<16)+16777216*this[re+3]},c.prototype.readUInt32BE=function(re,F){return F||K(re,4,this.length),16777216*this[re]+(this[re+1]<<16|this[re+2]<<8|this[re+3])},c.prototype.readIntLE=function(re,F,W){re|=0,F|=0,W||K(re,F,this.length);for(var de=this[re],ne=1,le=0;++le=ne&&(de-=Math.pow(2,8*F)),de},c.prototype.readIntBE=function(re,F,W){re|=0,F|=0,W||K(re,F,this.length);for(var de=F,ne=1,le=this[re+--de];de>0&&(ne*=256);)le+=this[re+--de]*ne;return ne*=128,le>=ne&&(le-=Math.pow(2,8*F)),le},c.prototype.readInt8=function(re,F){return F||K(re,1,this.length),128&this[re]?-1*(255-this[re]+1):this[re]},c.prototype.readInt16LE=function(re,F){F||K(re,2,this.length);var W=this[re]|this[re+1]<<8;return 32768&W?4294901760|W:W},c.prototype.readInt16BE=function(re,F){F||K(re,2,this.length);var W=this[re+1]|this[re]<<8;return 32768&W?4294901760|W:W},c.prototype.readInt32LE=function(re,F){return F||K(re,4,this.length),this[re]|this[re+1]<<8|this[re+2]<<16|this[re+3]<<24},c.prototype.readInt32BE=function(re,F){return F||K(re,4,this.length),this[re]<<24|this[re+1]<<16|this[re+2]<<8|this[re+3]},c.prototype.readFloatLE=function(re,F){return F||K(re,4,this.length),ce.read(this,re,!0,23,4)},c.prototype.readFloatBE=function(re,F){return F||K(re,4,this.length),ce.read(this,re,!1,23,4)},c.prototype.readDoubleLE=function(re,F){return F||K(re,8,this.length),ce.read(this,re,!0,52,8)},c.prototype.readDoubleBE=function(re,F){return F||K(re,8,this.length),ce.read(this,re,!1,52,8)},c.prototype.writeUIntLE=function(re,F,W,de){(re=+re,F|=0,W|=0,!de)&&G(this,re,F,W,Math.pow(2,8*W)-1,0);var ne=1,le=0;for(this[F]=255&re;++le=0&&(le*=256);)this[F+ne]=re/le&255;return F+W},c.prototype.writeUInt8=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,1,255,0),c.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),this[F]=255&re,F+1},c.prototype.writeUInt16LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[F]=255&re,this[F+1]=re>>>8):N(this,re,F,!0),F+2},c.prototype.writeUInt16BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>8,this[F+1]=255&re):N(this,re,F,!1),F+2},c.prototype.writeUInt32LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[F+3]=re>>>24,this[F+2]=re>>>16,this[F+1]=re>>>8,this[F]=255&re):Q(this,re,F,!0),F+4},c.prototype.writeUInt32BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>24,this[F+1]=re>>>16,this[F+2]=re>>>8,this[F+3]=255&re):Q(this,re,F,!1),F+4},c.prototype.writeIntLE=function(re,F,W,de){if(re=+re,F|=0,!de){var ne=Math.pow(2,8*W-1);G(this,re,F,W,ne-1,-ne)}var le=0,De=1,Xe=0;for(this[F]=255&re;++le>0)-Xe&255;return F+W},c.prototype.writeIntBE=function(re,F,W,de){if(re=+re,F|=0,!de){var ne=Math.pow(2,8*W-1);G(this,re,F,W,ne-1,-ne)}var le=W-1,De=1,Xe=0;for(this[F+le]=255&re;--le>=0&&(De*=256);)re<0&&Xe===0&&this[F+le+1]!==0&&(Xe=1),this[F+le]=(re/De>>0)-Xe&255;return F+W},c.prototype.writeInt8=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,1,127,-128),c.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),re<0&&(re=255+re+1),this[F]=255&re,F+1},c.prototype.writeInt16LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[F]=255&re,this[F+1]=re>>>8):N(this,re,F,!0),F+2},c.prototype.writeInt16BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>8,this[F+1]=255&re):N(this,re,F,!1),F+2},c.prototype.writeInt32LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[F]=255&re,this[F+1]=re>>>8,this[F+2]=re>>>16,this[F+3]=re>>>24):Q(this,re,F,!0),F+4},c.prototype.writeInt32BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,2147483647,-2147483648),re<0&&(re=4294967295+re+1),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>24,this[F+1]=re>>>16,this[F+2]=re>>>8,this[F+3]=255&re):Q(this,re,F,!1),F+4},c.prototype.writeFloatLE=function(re,F,W){return te(this,re,F,!0,W)},c.prototype.writeFloatBE=function(re,F,W){return te(this,re,F,!1,W)},c.prototype.writeDoubleLE=function(re,F,W){return oe(this,re,F,!0,W)},c.prototype.writeDoubleBE=function(re,F,W){return oe(this,re,F,!1,W)},c.prototype.copy=function(re,F,W,de){if(W||(W=0),de||de===0||(de=this.length),F>=re.length&&(F=re.length),F||(F=0),de>0&&de=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),re.length-F=0;--ne)re[ne+F]=this[ne+W];else if(le<1e3||!c.TYPED_ARRAY_SUPPORT)for(ne=0;ne>>=0,W=W===void 0?this.length:W>>>0,re||(re=0);var le;if(typeof re=="number")for(le=F;le0)throw new Error("Invalid string. Length must be a multiple of 4");return a[h-2]==="="?2:a[h-1]==="="?1:0}function C(a){return 3*a.length/4-_(a)}function m(a){var h,g,p,S,w,B=a.length;S=_(a),w=new u(3*B/4-S),g=S>0?B-4:B;var b=0;for(h=0;h>16&255,w[b++]=p>>8&255,w[b++]=255&p;return S===2?(p=s[a.charCodeAt(h)]<<2|s[a.charCodeAt(h+1)]>>4,w[b++]=255&p):S===1&&(p=s[a.charCodeAt(h)]<<10|s[a.charCodeAt(h+1)]<<4|s[a.charCodeAt(h+2)]>>2,w[b++]=p>>8&255,w[b++]=255&p),w}function c(a){return e[a>>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]}function r(a,h,g){for(var p,S=[],w=h;wb?b:B+16383));return p===1?(h=a[g-1],S+=e[h>>2],S+=e[h<<4&63],S+="=="):p===2&&(h=(a[g-2]<<8)+a[g-1],S+=e[h>>10],S+=e[h>>4&63],S+=e[h<<2&63],S+="="),w.push(S),w.join("")}y.byteLength=C,y.toByteArray=m,y.fromByteArray=n;for(var e=[],s=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=o.length;f>1,o=-7,f=C?c-1:0,d=C?-1:1,a=E[_+f];for(f+=d,r=a&(1<<-o)-1,a>>=-o,o+=e;o>0;r=256*r+E[_+f],f+=d,o-=8);for(n=r&(1<<-o)-1,r>>=-o,o+=m;o>0;n=256*n+E[_+f],f+=d,o-=8);if(r===0)r=1-u;else{if(r===s)return n?NaN:1/0*(a?-1:1);n+=Math.pow(2,m),r-=u}return(a?-1:1)*n*Math.pow(2,r-m)},y.write=function(E,_,C,m,c,r){var n,e,s,u=8*r-c-1,o=(1<>1,d=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=m?0:r-1,h=m?1:-1,g=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(e=isNaN(_)?1:0,n=o):(n=Math.floor(Math.log(_)/Math.LN2),_*(s=Math.pow(2,-n))<1&&(n--,s*=2),_+=n+f>=1?d/s:d*Math.pow(2,1-f),_*s>=2&&(n++,s/=2),n+f>=o?(e=0,n=o):n+f>=1?(e=(_*s-1)*Math.pow(2,c),n+=f):(e=_*Math.pow(2,f-1)*Math.pow(2,c),n=0));c>=8;E[C+a]=255&e,a+=h,e/=256,c-=8);for(n=n<0;E[C+a]=255&n,a+=h,n/=256,u-=8);E[C+a-h]|=128*g}},function(P,y){var E={}.toString;P.exports=Array.isArray||function(_){return E.call(_)=="[object Array]"}},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(r,n){for(var e=0;e>>31}var B=(d<<5|d>>>27)+p+e[S];B+=S<20?1518500249+(a&h|~a&g):S<40?1859775393+(a^h^g):S<60?(a&h|a&g|h&g)-1894007588:(a^h^g)-899497514,p=g,g=h,h=a<<30|a>>>2,a=d,d=B}f[0]=f[0]+d|0,f[1]=f[1]+a|0,f[2]=f[2]+h|0,f[3]=f[3]+g|0,f[4]=f[4]+p|0},_doFinalize:function(){var u=this._data,o=u.words,f=8*this._nDataBytes,d=8*u.sigBytes;return o[d>>>5]|=128<<24-d%32,o[14+(d+64>>>9<<4)]=Math.floor(f/4294967296),o[15+(d+64>>>9<<4)]=f,u.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var u=r.clone.call(this);return u._hash=this._hash.clone(),u}});C.SHA1=r._createHelper(s),C.HmacSHA1=r._createHmacHelper(s)}(),_.SHA1})},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){!function(){var C=_,m=C.lib,c=m.Base,r=C.enc,n=r.Utf8,e=C.algo;e.HMAC=c.extend({init:function(s,u){s=this._hasher=new s.init,typeof u=="string"&&(u=n.parse(u));var o=s.blockSize,f=4*o;u.sigBytes>f&&(u=s.finalize(u)),u.clamp();for(var d=this._oKey=u.clone(),a=this._iKey=u.clone(),h=d.words,g=a.words,p=0;p>>6-d%4*2;o[f>>>2]|=(a|h)<<24-f%4*8,f++}return r.create(o,f)}var m=_,c=m.lib,r=c.WordArray,n=m.enc;n.Base64={stringify:function(e){var s=e.words,u=e.sigBytes,o=this._map;e.clamp();for(var f=[],d=0;d>>2]>>>24-d%4*8&255,h=s[d+1>>>2]>>>24-(d+1)%4*8&255,g=s[d+2>>>2]>>>24-(d+2)%4*8&255,p=a<<16|h<<8|g,S=0;S<4&&d+.75*S>>6*(3-S)&63));var w=o.charAt(64);if(w)for(;f.length%4;)f.push(w);return f.join("")},parse:function(e){var s=e.length,u=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var f=0;f0&&(K=U.UploadProgress.UploadProgressList[0],G=K.ClientId),u.default.setClientId(G),l&&l(K)},function(U){U&&(i(U),console.log(U))})}}]),b}();y.default=B},function(P,y,E){"use strict";function _(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function n(e,s){for(var u=0;u=0&&(Ke=F[xt],Ke.textAlign==="right");)i(G,N,Ke,X,de,Ie,Xe,"right"),ne-=Ke.width,Xe-=Ke.width,xt--;for(De+=(oe-(De-ce)-(Fe-Xe)-ne)/2;le<=xt;)Ke=F[le],i(G,N,Ke,X,de,Ie,De+Ke.width/2,"center"),De+=Ke.width,le++;Ie+=de}}function l(G,N,Q,X,te){if(Q&&N.textRotation){var oe=N.textOrigin;oe==="center"?(X=Q.width/2+Q.x,te=Q.height/2+Q.y):oe&&(X=oe[0]+Q.x,te=oe[1]+Q.y),G.translate(X,te),G.rotate(-N.textRotation),G.translate(-X,-te)}}function i(G,N,Q,X,te,oe,me,se){var _e=X.rich[Q.styleName]||{};_e.text=Q.text;var Ae=Q.textVerticalAlign,Ee=oe+te/2;Ae==="top"?Ee=oe+Q.height/2:Ae==="bottom"&&(Ee=oe+te-Q.height/2),!Q.isLineHolder&&x(_e)&&O(G,N,_e,se==="right"?me-Q.width:se==="center"?me-Q.width/2:me,Ee-Q.height/2,Q.width,Q.height);var pe=Q.textPadding;pe&&(me=U(me,se,pe),Ee-=Q.height/2-pe[2]-Q.textHeight/2),R(N,"shadowBlur",P(_e.textShadowBlur,X.textShadowBlur,0)),R(N,"shadowColor",_e.textShadowColor||X.textShadowColor||"transparent"),R(N,"shadowOffsetX",P(_e.textShadowOffsetX,X.textShadowOffsetX,0)),R(N,"shadowOffsetY",P(_e.textShadowOffsetY,X.textShadowOffsetY,0)),R(N,"textAlign",se),R(N,"textBaseline","middle"),R(N,"font",Q.font||o);var he=k(_e.textStroke||X.textStroke,fe),ie=H(_e.textFill||X.textFill),fe=Y(_e.textStrokeWidth,X.textStrokeWidth);he&&(R(N,"lineWidth",fe),R(N,"strokeStyle",he),N.strokeText(Q.text,me,Ee)),ie&&(R(N,"fillStyle",ie),N.fillText(Q.text,me,Ee))}function x(G){return!!(G.textBackgroundColor||G.textBorderWidth&&G.textBorderColor)}function O(G,N,Q,X,te,oe,me){var se=Q.textBackgroundColor,_e=Q.textBorderWidth,Ae=Q.textBorderColor,Ee=_(se);if(R(N,"shadowBlur",Q.textBoxShadowBlur||0),R(N,"shadowColor",Q.textBoxShadowColor||"transparent"),R(N,"shadowOffsetX",Q.textBoxShadowOffsetX||0),R(N,"shadowOffsetY",Q.textBoxShadowOffsetY||0),Ee||_e&&Ae){N.beginPath();var pe=Q.textBorderRadius;pe?c.buildPath(N,{x:X,y:te,width:oe,height:me,r:pe}):N.rect(X,te,oe,me),N.closePath()}if(Ee)if(R(N,"fillStyle",se),Q.fillOpacity!=null){var he=N.globalAlpha;N.globalAlpha=Q.fillOpacity*Q.opacity,N.fill(),N.globalAlpha=he}else N.fill();else if(C(se)){var ie=se.image;ie=r.createOrUpdateImage(ie,null,G,T,se),ie&&r.isImageReady(ie)&&N.drawImage(ie,X,te,oe,me)}if(_e&&Ae)if(R(N,"lineWidth",_e),R(N,"strokeStyle",Ae),Q.strokeOpacity!=null){var he=N.globalAlpha;N.globalAlpha=Q.strokeOpacity*Q.opacity,N.stroke(),N.globalAlpha=he}else N.stroke()}function T(G,N){N.image=G}function D(G,N,Q,X){var te=Q.x||0,oe=Q.y||0,me=Q.textAlign,se=Q.textVerticalAlign;if(X){var _e=Q.textPosition;if(_e instanceof Array)te=X.x+J(_e[0],X.width),oe=X.y+J(_e[1],X.height);else{var Ae=N&&N.calculateTextPosition?N.calculateTextPosition(h,Q,X):m.calculateTextPosition(h,Q,X);te=Ae.x,oe=Ae.y,me=me||Ae.textAlign,se=se||Ae.textVerticalAlign}var Ee=Q.textOffset;Ee&&(te+=Ee[0],oe+=Ee[1])}return G=G||{},G.baseX=te,G.baseY=oe,G.textAlign=me,G.textVerticalAlign=se,G}function R(G,N,Q){return G[N]=n(G,N,Q),G[N]}function k(G,N){return G==null||N<=0||G==="transparent"||G==="none"?null:G.image||G.colorStops?"#000":G}function H(G){return G==null||G==="none"?null:G.image||G.colorStops?"#000":G}function J(G,N){return typeof G=="string"?G.lastIndexOf("%")>=0?parseFloat(G)/100*N:parseFloat(G):G}function U(G,N,Q){return N==="right"?G-Q[1]:N==="center"?G+Q[3]/2-Q[1]/2:G+Q[3]}function K(G,N){return G!=null&&(G||N.textBackgroundColor||N.textBorderWidth&&N.textBorderColor||N.textPadding)}we.normalizeTextStyle=p,we.renderText=w,we.getBoxPosition=D,we.getStroke=k,we.getFill=H,we.parsePercent=J,we.needDrawText=K},qH13:function(Ze,we,M){var ue=M("ItGF"),Y=M("QBsz"),P=Y.applyTransform,y=M("mFDi"),E=M("Qe9p"),_=M("6GrX"),C=M("pzxd"),m=M("ni6a"),c=M("Gev7"),r=M("Dagg"),n=M("dqUG"),e=M("y+Vt"),s=M("IMiH"),u=M("QuXc"),o=M("06Qe"),f=s.CMD,d=Math.round,a=Math.sqrt,h=Math.abs,g=Math.cos,p=Math.sin,S=Math.max;if(!ue.canvasSupported){var w=",",B="progid:DXImageTransform.Microsoft",b=21600,A=b/2,l=1e5,i=1e3,x=function(ke){ke.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ke.coordsize=b+","+b,ke.coordorigin="0,0"},O=function(ke){return String(ke).replace(/&/g,"&").replace(/"/g,""")},T=function(ke,re,F){return"rgb("+[ke,re,F].join(",")+")"},D=function(ke,re){re&&ke&&re.parentNode!==ke&&ke.appendChild(re)},R=function(ke,re){re&&ke&&re.parentNode===ke&&ke.removeChild(re)},k=function(ke,re,F){return(parseFloat(ke)||0)*l+(parseFloat(re)||0)*i+F},H=C.parsePercent,J=function(ke,re,F){var W=E.parse(re);F=+F,isNaN(F)&&(F=1),W&&(ke.color=T(W[0],W[1],W[2]),ke.opacity=F*W[3])},U=function(ke){var re=E.parse(ke);return[T(re[0],re[1],re[2]),re[3]]},K=function(ke,re,F){var W=re.fill;if(W!=null)if(W instanceof u){var de,ne=0,le=[0,0],De=0,Xe=1,xt=F.getBoundingRect(),Ke=xt.width,ze=xt.height;if(W.type==="linear"){de="gradient";var yt=F.transform,Et=[W.x*Ke,W.y*ze],ct=[W.x2*Ke,W.y2*ze];yt&&(P(Et,Et,yt),P(ct,ct,yt));var lt=ct[0]-Et[0],rt=ct[1]-Et[1];ne=Math.atan2(lt,rt)*180/Math.PI,ne<0&&(ne+=360),ne<1e-6&&(ne=0)}else{de="gradientradial";var Et=[W.x*Ke,W.y*ze],yt=F.transform,qe=F.scale,$e=Ke,Pe=ze;le=[(Et[0]-xt.x)/$e,(Et[1]-xt.y)/Pe],yt&&P(Et,Et,yt),$e/=qe[0]*b,Pe/=qe[1]*b;var je=S($e,Pe);De=2*0/je,Xe=2*W.r/je-De}var Ne=W.colorStops.slice();Ne.sort(function(Ct,Re){return Ct.offset-Re.offset});for(var et=Ne.length,mt=[],At=[],Ut=0;Ut=2){var jt=mt[0][0],Zt=mt[1][0],Mt=mt[0][1]*re.opacity,Tt=mt[1][1]*re.opacity;ke.type=de,ke.method="none",ke.focus="100%",ke.angle=ne,ke.color=jt,ke.color2=Zt,ke.colors=At.join(","),ke.opacity=Tt,ke.opacity2=Mt}de==="radial"&&(ke.focusposition=le.join(","))}else J(ke,W,re.opacity)},G=function(ke,re){re.lineDash&&(ke.dashstyle=re.lineDash.join(" ")),re.stroke!=null&&!(re.stroke instanceof u)&&J(ke,re.stroke,re.opacity)},N=function(ke,re,F,W){var de=re==="fill",ne=ke.getElementsByTagName(re)[0];F[re]!=null&&F[re]!=="none"&&(de||!de&&F.lineWidth)?(ke[de?"filled":"stroked"]="true",F[re]instanceof u&&R(ke,ne),ne||(ne=o.createNode(re)),de?K(ne,F,W):G(ne,F),D(ke,ne)):(ke[de?"filled":"stroked"]="false",R(ke,ne))},Q=[[],[],[]],X=function(ke,re){var F=f.M,W=f.C,de=f.L,ne=f.A,le=f.Q,De=[],Xe,xt,Ke,ze,yt,Et,ct=ke.data,lt=ke.len();for(ze=0;ze.01?Re&&(We+=270/b):Math.abs(St-jt)<1e-4?Re&&Weun?qe-=270/b:qe+=270/b:Re&&Stjt?rt+=270/b:rt-=270/b),De.push(ft,d(((un-Zt)*At+et)*b-A),w,d(((jt-Mt)*Ut+mt)*b-A),w,d(((un+Zt)*At+et)*b-A),w,d(((jt+Mt)*Ut+mt)*b-A),w,d((We*At+et)*b-A),w,d((St*Ut+mt)*b-A),w,d((rt*At+et)*b-A),w,d((qe*Ut+mt)*b-A)),yt=rt,Et=qe;break;case f.R:var It=Q[0],Ot=Q[1];It[0]=ct[ze++],It[1]=ct[ze++],Ot[0]=It[0]+ct[ze++],Ot[1]=It[1]+ct[ze++],re&&(P(It,It,re),P(Ot,Ot,re)),It[0]=d(It[0]*b-A),Ot[0]=d(Ot[0]*b-A),It[1]=d(It[1]*b-A),Ot[1]=d(Ot[1]*b-A),De.push(" m ",It[0],w,It[1]," l ",Ot[0],w,It[1]," l ",Ot[0],w,Ot[1]," l ",It[0],w,Ot[1]);break;case f.Z:De.push(" x ")}if(Xe>0){De.push(xt);for(var bt=0;bt_e&&(se=0,me={});var F=Ae.style,W;try{F.font=ke,W=F.fontFamily.split(",")[0]}catch(de){}re={style:F.fontStyle||oe,variant:F.fontVariant||oe,weight:F.fontWeight||oe,size:parseFloat(F.fontSize||12)|0,family:W||"Microsoft YaHei"},me[ke]=re,se++}return re},pe;_.$override("measureText",function(ke,re){var F=o.doc;pe||(pe=F.createElement("div"),pe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",o.doc.body.appendChild(pe));try{pe.style.font=re}catch(W){}return pe.innerHTML="",pe.appendChild(F.createTextNode(ke)),{width:pe.offsetWidth}});for(var he=new y,ie=function(ke,re,F,W){var de=this.style;this.__dirty&&C.normalizeTextStyle(de,!0);var ne=de.text;if(ne!=null&&(ne+=""),!ne)return;if(de.rich){var le=_.parseRichText(ne,de);ne=[];for(var De=0;De=0&&(this.delFromStorage(m),this._roots.splice(e,1),m instanceof P&&m.delChildrenFromStorage(this))},addToStorage:function(m){return m&&(m.__storage=this,m.dirty(!1)),this},delFromStorage:function(m){return m&&(m.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:E};var C=_;Ze.exports=C},rA99:function(Ze,we,M){var ue=M("y+Vt"),Y=M("QBsz"),P=M("Sj9i"),y=P.quadraticSubdivide,E=P.cubicSubdivide,_=P.quadraticAt,C=P.cubicAt,m=P.quadraticDerivativeAt,c=P.cubicDerivativeAt,r=[];function n(s,u,o){var f=s.cpx2,d=s.cpy2;return f===null||d===null?[(o?c:C)(s.x1,s.cpx1,s.cpx2,s.x2,u),(o?c:C)(s.y1,s.cpy1,s.cpy2,s.y2,u)]:[(o?m:_)(s.x1,s.cpx1,s.x2,u),(o?m:_)(s.y1,s.cpy1,s.y2,u)]}var e=ue.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(s,u){var o=u.x1,f=u.y1,d=u.x2,a=u.y2,h=u.cpx1,g=u.cpy1,p=u.cpx2,S=u.cpy2,w=u.percent;if(w===0)return;s.moveTo(o,f),p==null||S==null?(w<1&&(y(o,h,d,w,r),h=r[1],d=r[2],y(f,g,a,w,r),g=r[1],a=r[2]),s.quadraticCurveTo(h,g,d,a)):(w<1&&(E(o,h,p,d,w,r),h=r[1],p=r[2],d=r[3],E(f,g,S,a,w,r),g=r[1],S=r[2],a=r[3]),s.bezierCurveTo(h,g,p,S,d,a))},pointAt:function(s){return n(this.shape,s,!1)},tangentAt:function(s){var u=n(this.shape,s,!0);return Y.normalize(u,u)}});Ze.exports=e},"rAM+":function(Ze,we,M){"use strict";M.d(we,"a",function(){return Y});var ue=M("Qw5x");function Y(P,y){var E;if(typeof Symbol=="undefined"||P[Symbol.iterator]==null){if(Array.isArray(P)||(E=Object(ue.a)(P))||y&&P&&typeof P.length=="number"){E&&(P=E);var _=0,C=function(){};return{s:C,n:function(){return _>=P.length?{done:!0}:{done:!1,value:P[_++]}},e:function(e){throw e},f:C}}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 m=!0,c=!1,r;return{s:function(){E=P[Symbol.iterator]()},n:function(){var e=E.next();return m=e.done,e},e:function(e){c=!0,r=e},f:function(){try{!m&&E.return!=null&&E.return()}finally{if(c)throw r}}}}},rUJ1:function(Ze,we){const M=/[&<>"']/,ue=/[&<>"']/g,Y=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,y={"&":"&","<":"<",">":">",'"':""","'":"'"},E=b=>y[b];function _(b,A){if(A){if(M.test(b))return b.replace(ue,E)}else if(Y.test(b))return b.replace(P,E);return b}const C=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(b){return b.replace(C,(A,l)=>(l=l.toLowerCase(),l==="colon"?":":l.charAt(0)==="#"?l.charAt(1)==="x"?String.fromCharCode(parseInt(l.substring(2),16)):String.fromCharCode(+l.substring(1)):""))}const c=/(^|[^\[])\^/g;function r(b,A){b=b.source||b,A=A||"";const l={replace:(i,x)=>(x=x.source||x,x=x.replace(c,"$1"),b=b.replace(i,x),l),getRegex:()=>new RegExp(b,A)};return l}const n=/[^\w:]/g,e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function s(b,A,l){if(b){let i;try{i=decodeURIComponent(m(l)).replace(n,"").toLowerCase()}catch(x){return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}A&&!e.test(l)&&(l=a(A,l));try{l=encodeURI(l).replace(/%25/g,"%")}catch(i){return null}return l}const u={},o=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function a(b,A){u[" "+b]||(o.test(b)?u[" "+b]=b+"/":u[" "+b]=S(b,"/",!0)),b=u[" "+b];const l=b.indexOf(":")===-1;return A.substring(0,2)==="//"?l?A:b.replace(f,"$1")+A:A.charAt(0)==="/"?l?A:b.replace(d,"$1")+A:b+A}const h={exec:function(){}};function g(b){let A=1,l,i;for(;A{let R=!1,k=T;for(;--k>=0&&D[k]==="\\";)R=!R;return R?"|":" |"}),i=l.split(/ \|/);let x=0;if(i.length>A)i.splice(A);else for(;i.lengthD*1024*1024){n.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),mt();return}if((We=ge.videoList)!==null&&We!==void 0&&We.find(function(It){return It.name===St.name})){n.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),mt();return}Xt(St)},Ut=function(Re,We){c.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:S.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",We?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){mt(),ce({type:"removeVideo",payload:{name:Re}})}})},Xt=function(Re){var We,St='{"Vod":{}}';if(re(!0),F.current){F.current.addFile(Re,null,null,null,St);return}Object(i.a)((We=K.userInfo)===null||We===void 0?void 0:We.login,{create:!F,addFileSuccess:function(It){ce({type:"addVideo",payload:{uploadInfo:It}})},onUploadProgress:function(It,Ot,bt){var Ht=Math.ceil(bt*100);ce({type:"updateProgress",payload:{uploadInfo:It,progressPercent:Ht}}),mt()},onUploadFailed:function(It){n.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(It){re(!1)},onUploadSucceed:function(It){re(!1)},onUploadError:function(It){re(!1)},gotUploader:function(It){It.addFile(Re,null,null,null,St),F.current=It}})},un=function(){var Ct=Object(C.a)(g.a.mark(function Re(){var We,St,ft,It;return g.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,he.validateFields();case 2:if(!(!xt&&!((We=ge.videoList)!==null&&We!==void 0&&We.length)||xt&&!ne)){bt.next=5;break}return n.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),bt.abrupt("return");case 5:ct(!0),ft=xt?{link:ne}:{video_id:(St=ge.videoList)===null||St===void 0?void 0:St[0].videoId};debugger;return bt.next=10,_e(Object(o.a)(Object(o.a)({},ft),{name:he.getFieldValue("name"),attachment_id:he.getFieldValue("attachment_id"),description:he.getFieldValue("description")}));case 10:It=bt.sent,ct(!1),It.id&&jt();case 13:case"end":return bt.stop()}},Re)}));return function(){return Ct.apply(this,arguments)}}(),jt=function(){he.resetFields(),ce({type:"removeAll"}),le(null),Ke(null)},Zt=function(){me(),jt()},Mt={name:"file",multiple:!0,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",action:O.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(Re){et([])},onChange:function(Re){var We=Re.file.status;if(We!=="uploading",We==="removed"&&$e(Re.fileList),We==="done"){var St,ft,It;$e(Re==null||((St=Re.fileList)===null||St===void 0)?void 0:St.slice(-1)),ce({type:"addVideo",payload:{uploadInfo:{videoId:Re==null||((ft=Re.fileList[0])===null||ft===void 0||((It=ft.response)===null||It===void 0))?void 0:It.id,loaded:100,file:Object(o.a)({},Re==null?void 0:Re.fileList[0])}}}),Ke(!1),n.b.success("".concat(Re.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else We==="error"&&n.b.error("".concat(Re.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(Re){var We=Re.size/1024/1024<1e3;return We||n.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),We}},Tt=function(){var Re,We,St,ft,It,Ot,bt,Ht,Gt,xn,vn,sr;return S.a.createElement(S.a.Fragment,null,!xt&&!!((Re=ge.videoList)!==null&&Re!==void 0&&Re.length)&&S.a.createElement("div",{className:l.a.fileProgress},((We=ge.videoList)===null||We===void 0||((St=We[0])===null||St===void 0)?void 0:St.loaded)==100?S.a.createElement("div",{className:"".concat(l.a.videoName," font14")},(ft=ge.videoList)===null||ft===void 0||((It=ft[0])===null||It===void 0)?void 0:It.name):S.a.createElement(_.a,{style:{width:"80%"},percent:(Ot=ge.videoList)===null||Ot===void 0||((bt=Ot[0])===null||bt===void 0)?void 0:bt.loaded,status:((Ht=ge.videoList)===null||Ht===void 0||((Gt=Ht[0])===null||Gt===void 0)?void 0:Gt.loaded)==100?"normal":"active"}),S.a.createElement("div",{className:l.a.fileCancel,onClick:function(){var Kn,En,Qr,sa;return Ut((Kn=ge.videoList)===null||Kn===void 0||((En=Kn[0])===null||En===void 0)?void 0:En.name,((Qr=ge.videoList)===null||Qr===void 0||((sa=Qr[0])===null||sa===void 0)?void 0:sa.loaded)==100)}},((xn=ge.videoList)===null||xn===void 0||((vn=xn[0])===null||vn===void 0)?void 0:vn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((sr=ge.videoList)!==null&&sr!==void 0&&sr.length)&&S.a.createElement("div",{className:l.a.uploadWrap},S.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},S.a.createElement(Y.a,Mt,S.a.createElement(y.a,{className:l.a.upload,disabled:(Ne==null?void 0:Ne.length)>0},S.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),S.a.createElement("label",{className:"".concat(l.a.upload," ").concat(l.a.uploadLink),onClick:function(){return Ke(!0)}},S.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),xt&&S.a.createElement(a.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ne,onChange:function(Kn){return le(Kn.target.value)}}))};return S.a.createElement(c.a,{centered:!0,maskClosable:!1,title:te?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:l.a.modal,visible:X,confirmLoading:Et,onOk:un,onCancel:Zt},S.a.createElement(s.a,{form:he},S.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:At,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},S.a.createElement(a.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:l.a.contentItem},Tt()),S.a.createElement(s.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},S.a.createElement(x.a,{getFileProgress:function(Re){if(Re.file.status==="uploading"){ct(!0);return}Re.file.status==="done"&&ct(!1)}})),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},S.a.createElement(T,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),S.a.createElement("div",{className:"c-grey-999"},S.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),S.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",S.a.createElement(B.a,{to:"/users/".concat((U=K.userInfo)===null||U===void 0?void 0:U.login,"/videos/protocol"),target:"_blank",className:l.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),S.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),S.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),S.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};we.a=Object(b.a)(function(H){var J=H.user,U=H.loading,K=H.globalSetting;return{user:J,globalSetting:K,loading:U}})(k)},sR1s:function(Ze,we,M){"use strict";M.d(we,"b",function(){return y}),M.d(we,"a",function(){return E}),M.d(we,"c",function(){return _}),M.d(we,"d",function(){return C});var ue=M("U8pU"),Y="RC_TABLE_KEY";function P(m){return m==null?[]:Array.isArray(m)?m:[m]}function y(m,c){if(!c&&typeof c!="number")return m;for(var r=P(c),n=m,e=0;e-1)){var u=y.parse(s)[3],o=y.toHex(s);e.setAttribute("stop-color","#"+o),e.setAttribute("stop-opacity",u)}else e.setAttribute("stop-color",c[r].color);m.appendChild(e)}C._dom=m},E.prototype.markUsed=function(C){if(C.style){var m=C.style.fill;m&&m._dom&&ue.prototype.markUsed.call(this,m._dom),m=C.style.stroke,m&&m._dom&&ue.prototype.markUsed.call(this,m._dom)}};var _=E;Ze.exports=_},sboe:function(Ze,we,M){"use strict";M.d(we,"a",function(){return P});var ue=M("q1tI"),Y=M.n(ue),P=ue.createContext(null)},t23M:function(Ze,we,M){"use strict";var ue=M("VTBJ"),Y=M("1OyB"),P=M("vuIU"),y=M("Ji7U"),E=M("LK+K"),_=M("q1tI"),C=M.n(_),m=M("m+aA"),c=M("Zm9Q"),r=M("Kwbf"),n=M("c+Xe"),e=M("bdgK"),s="rc-observer-key",u=function(o){Object(y.a)(d,o);var f=Object(E.a)(d);function d(){var a;return Object(Y.a)(this,d),a=f.apply(this,arguments),a.resizeObserver=null,a.childNode=null,a.currentElement=null,a.state={width:0,height:0,offsetHeight:0,offsetWidth:0},a.onResize=function(h){var g=a.props.onResize,p=h[0].target,S=p.getBoundingClientRect(),w=S.width,B=S.height,b=p.offsetWidth,A=p.offsetHeight,l=Math.floor(w),i=Math.floor(B);if(a.state.width!==l||a.state.height!==i||a.state.offsetWidth!==b||a.state.offsetHeight!==A){var x={width:l,height:i,offsetWidth:b,offsetHeight:A};a.setState(x),g&&Promise.resolve().then(function(){g(Object(ue.a)(Object(ue.a)({},x),{},{offsetWidth:b,offsetHeight:A}))})}},a.setChildNode=function(h){a.childNode=h},a}return Object(P.a)(d,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var h=this.props.disabled;if(h){this.destroyObserver();return}var g=Object(m.a)(this.childNode||this),p=g!==this.currentElement;p&&(this.destroyObserver(),this.currentElement=g),!this.resizeObserver&&g&&(this.resizeObserver=new e.default(this.onResize),this.resizeObserver.observe(g))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var h=this.props.children,g=Object(c.a)(h);if(g.length>1)Object(r.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(g.length===0)return Object(r.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=g[0];if(_.isValidElement(p)&&Object(n.c)(p)){var S=p.ref;g[0]=_.cloneElement(p,{ref:Object(n.a)(S,this.setChildNode)})}return g.length===1?g[0]:g.map(function(w,B){return!_.isValidElement(w)||"key"in w&&w.key!==null?w:_.cloneElement(w,{key:"".concat(s,"-").concat(B)})})}}]),d}(_.Component);u.displayName="ResizeObserver",we.a=u},tWlo:function(Ze,we){Ze.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=="},u3os:function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.ver=we.clear=we.bind=void 0;var ue=M("P4Qj"),Y=function(_,C){var m=(0,ue.getSensor)(_);return m.bind(C),function(){m.unbind(C)}};we.bind=Y;var P=function(_){var C=(0,ue.getSensor)(_);(0,ue.removeSensor)(C)};we.clear=P;var y="1.0.1";we.ver=y},uK0f:function(Ze,we,M){(function(ue,Y){Ze.exports=Y()})(this,function(){"use strict";function ue(Y,P,y){y=y||{},y.childrenKeyName=y.childrenKeyName||"children";var E=Y||[],_=[],C=0;do{var m=E.filter(function(c){return P(c,C)})[0];if(!m)break;_.push(m),E=m[y.childrenKeyName]||[],C+=1}while(E.length>0);return _}return ue})},uRQ9:function(Ze,we,M){Ze.exports={flex_box_center:"flex_box_center___1iLgt",flex_space_between:"flex_space_between___3p7p-",flex_box_vertical_center:"flex_box_vertical_center___3FnaF",flex_box_center_end:"flex_box_center_end___XIPip",flex_box_column:"flex_box_column___3ji4d",certificate:"certificate___3Sn4A",actionsBtns:"actionsBtns___30qsn"}},ulZh:function(Ze,we,M){typeof window!="undefined"&&function(Y,P){Ze.exports=P()}(this,function(){return function(ue){var Y={};function P(y){if(Y[y])return Y[y].exports;var E=Y[y]={i:y,l:!1,exports:{}};return ue[y].call(E.exports,E,E.exports,P),E.l=!0,E.exports}return P.m=ue,P.c=Y,P.d=function(y,E,_){P.o(y,E)||Object.defineProperty(y,E,{enumerable:!0,get:_})},P.r=function(y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},P.t=function(y,E){if(E&1&&(y=P(y)),E&8)return y;if(E&4&&typeof y=="object"&&y&&y.__esModule)return y;var _=Object.create(null);if(P.r(_),Object.defineProperty(_,"default",{enumerable:!0,value:y}),E&2&&typeof y!="string")for(var C in y)P.d(_,C,function(m){return y[m]}.bind(null,C));return _},P.n=function(y){var E=y&&y.__esModule?function(){return y.default}:function(){return y};return P.d(E,"a",E),E},P.o=function(y,E){return Object.prototype.hasOwnProperty.call(y,E)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ue,Y,P){"use strict";var y=Object.prototype.hasOwnProperty,E="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(E=!1));function C(n,e,s){this.fn=n,this.context=e,this.once=s||!1}function m(n,e,s,u,o){if(typeof s!="function")throw new TypeError("The listener must be a function");var f=new C(s,u||n,o),d=E?E+e:e;return n._events[d]?n._events[d].fn?n._events[d]=[n._events[d],f]:n._events[d].push(f):(n._events[d]=f,n._eventsCount++),n}function c(n,e){--n._eventsCount===0?n._events=new _:delete n._events[e]}function r(){this._events=new _,this._eventsCount=0}r.prototype.eventNames=function(){var e=[],s,u;if(this._eventsCount===0)return e;for(u in s=this._events)y.call(s,u)&&e.push(E?u.slice(1):u);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(s)):e},r.prototype.listeners=function(e){var s=E?E+e:e,u=this._events[s];if(!u)return[];if(u.fn)return[u.fn];for(var o=0,f=u.length,d=new Array(f);o0},!1)}function n(e,s){for(var u={main:[s]},o={main:[]},f={main:{}};r(u);)for(var d=Object.keys(u),a=0;a=2*B/A||D<=k)return;var H=Number.POSITIVE_INFINITY,J;for(J=d.level-1;J>i;J--){var U=l[J].maxBitrate;if(H=B*U/(8*.8*T),H=D)return;var K=this.bwEstimator.getEstimate();r.logger.warn("Fragment "+d.sn+(a?" part "+a.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+J+` Current BW estimate: `+(Object(y.isFiniteNumber)(K)?(K/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+D.toFixed(3)+` s Estimated load time for the next fragment: `+H.toFixed(3)+` s Time to underbuffer: `+k.toFixed(3)+" s"),h.nextLoadLevel=J,this.bwEstimator.sample(b,w.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),h.trigger(_.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:a,stats:w})},o.onFragLoaded=function(d,a){var h=a.frag,g=a.part;if(h.type===c.PlaylistLevelType.MAIN&&Object(y.isFiniteNumber)(h.sn)){var p=g?g.stats:h.stats,S=g?g.duration:h.duration;if(this.clearTimer(),this.lastLoadedFragLevel=h.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[h.level],B=(w.loaded?w.loaded.bytes:0)+p.loaded,b=(w.loaded?w.loaded.duration:0)+S;w.loaded={bytes:B,duration:b},w.realBitrate=Math.round(8*B/b)}if(h.bitrateTest){var A={stats:p,frag:h,part:g,id:h.type};this.onFragBuffered(_.Events.FRAG_BUFFERED,A),h.bitrateTest=!1}}},o.onFragBuffered=function(d,a){var h=a.frag,g=a.part,p=g?g.stats:h.stats;if(p.aborted)return;if(h.type!==c.PlaylistLevelType.MAIN||h.sn==="initSegment")return;var S=p.parsing.end-p.loading.start;this.bwEstimator.sample(S,p.loaded),p.bwEstimate=this.bwEstimator.getEstimate(),h.bitrateTest?this.bitrateTestDelay=S/1e3:this.bitrateTestDelay=0},o.onError=function(d,a){switch(a.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},o.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},o.getNextABRAutoLevel=function(){var d=this.fragCurrent,a=this.partCurrent,h=this.hls,g=h.maxAutoLevel,p=h.config,S=h.minAutoLevel,w=h.media,B=a?a.duration:d?d.duration:0,b=w?w.currentTime:0,A=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,l=this.bwEstimator?this.bwEstimator.getEstimate():p.abrEwmaDefaultEstimate,i=(C.BufferHelper.bufferInfo(w,b,p.maxBufferHole).end-b)/A,x=this.findBestLevel(l,S,g,i,p.abrBandWidthFactor,p.abrBandWidthUpFactor);if(x>=0)return x;r.logger.trace((i?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var O=B?Math.min(B,p.maxStarvationDelay):p.maxStarvationDelay,T=p.abrBandWidthFactor,D=p.abrBandWidthUpFactor;if(!i){var R=this.bitrateTestDelay;if(R){var k=B?Math.min(B,p.maxLoadingDelay):p.maxLoadingDelay;O=k-R,r.logger.trace("bitrate test took "+Math.round(1e3*R)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*O)+" ms"),T=D=1}}return x=this.findBestLevel(l,S,g,i+O,T,D),Math.max(x,0)},o.findBestLevel=function(d,a,h,g,p,S){for(var w,B=this.fragCurrent,b=this.partCurrent,A=this.lastLoadedFragLevel,l=this.hls.levels,i=l[A],x=!!(i!=null&&(w=i.details)!==null&&w!==void 0&&w.live),O=i==null?void 0:i.codecSet,T=b?b.duration:B?B.duration:0,D=h;D>=a;D--){var R=l[D];if(!R||O&&R.codecSet!==O)continue;var k=R.details,H=(b?k==null?void 0:k.partTarget:k==null?void 0:k.averagetargetduration)||T,J=void 0;D<=A?J=p*d:J=S*d;var U=l[D].maxBitrate,K=U*H/J;if(r.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+D+"/"+Math.round(J)+"/"+U+"/"+H+"/"+g+"/"+K),J>U&&(!K||x&&!this.bitrateTestDelay||K0&&i===-1?(this.log("Override startPosition with lastCurrentTime @"+x.toFixed(3)),this.state=E.State.IDLE):(this.loadedmetadata=!1,this.state=E.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=i,this.tick()},A.doTick=function(){switch(this.state){case E.State.IDLE:this.doTickIdle();break;case E.State.WAITING_TRACK:{var i,x=this.levels,O=this.trackId,T=x==null||((i=x[O])===null||i===void 0)?void 0:i.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=E.State.WAITING_INIT_PTS}break}case E.State.FRAG_LOADING_WAITING_RETRY:{var D,R=performance.now(),k=this.retryDate;(!k||R>=k||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=E.State.IDLE);break}case E.State.WAITING_INIT_PTS:{var H=this.waitingData;if(H){var J=H.frag,U=H.part,K=H.cache,G=H.complete;if(this.initPTS[J.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=E.State.FRAG_LOADING;var N=K.flush(),Q={frag:J,part:U,payload:N,networkDetails:null};this._handleFragmentLoadProgress(Q),G&&B.prototype._handleFragmentLoadComplete.call(this,Q)}else if(this.videoTrackCC!==this.waitingVideoCC)a.logger.log("Waiting fragment cc ("+J.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var X=this.getLoadPosition(),te=C.BufferHelper.bufferInfo(this.mediaBuffer,X,this.config.maxBufferHole),oe=Object(o.fragmentWithinToleranceTest)(te.end,this.config.maxFragLookUpTolerance,J);oe<0&&(a.logger.log("Waiting fragment cc ("+J.cc+") @ "+J.start+" cancelled because another fragment at "+te.end+" is needed"),this.clearWaitingFragment())}}else this.state=E.State.IDLE}}this.onTickEnd()},A.clearWaitingFragment=function(){var i=this.waitingData;i&&(this.fragmentTracker.removeFragment(i.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=E.State.IDLE)},A.onTickEnd=function(){var i=this.media;if(!i||!i.readyState)return;var x=this.mediaBuffer?this.mediaBuffer:i,O=x.buffered;!this.loadedmetadata&&O.length&&(this.loadedmetadata=!0),this.lastCurrentTime=i.currentTime},A.doTickIdle=function(){var i,x,O=this.hls,T=this.levels,D=this.media,R=this.trackId,k=O.config;if(!T||!T[R])return;if(!D&&(this.startFragRequested||!k.startFragPrefetch))return;var H=T[R],J=H.details;if(!J||J.live&&this.levelLastLoaded!==R||this.waitForCdnTuneIn(J)){this.state=E.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,r.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,r.PlaylistLevelType.AUDIO);if(U===null)return;var K=U.len,G=this.getMaxBufferLength(),N=this.audioSwitch;if(K>=G&&!N)return;if(!N&&this._streamEnded(U,J)){O.trigger(_.Events.BUFFER_EOS,{type:"audio"}),this.state=E.State.ENDED;return}var Q=J.fragments,X=Q[0].start,te=U.end;if(N){var oe=this.getLoadPosition();te=oe,J.PTSKnown&&oeX||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),D.currentTime=X+.05))}var me=this.getNextFragment(te,J);if(!me){this.bufferFlushed=!0;return}((i=me.decryptdata)===null||i===void 0?void 0:i.keyFormat)==="identity"&&!((x=me.decryptdata)!==null&&x!==void 0&&x.key)?this.loadKey(me,J):this.loadFragment(me,J,te)},A.getMaxBufferLength=function(){var i=B.prototype.getMaxBufferLength.call(this),x=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,r.PlaylistLevelType.MAIN);return x===null?i:Math.max(i,x.len)},A.onMediaDetaching=function(){this.videoBuffer=null,B.prototype.onMediaDetaching.call(this)},A.onAudioTracksUpdated=function(i,x){var O=x.audioTracks;this.resetTransmuxer(),this.levels=O.map(function(T){return new c.Level(T)})},A.onAudioTrackSwitching=function(i,x){var O=!!x.url;this.trackId=x.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),O?this.setInterval(S):this.resetTransmuxer(),O?(this.audioSwitch=!0,this.state=E.State.IDLE):this.state=E.State.STOPPED,this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},A.onLevelLoaded=function(i,x){this.mainDetails=x.details},A.onAudioTrackLoaded=function(i,x){var O,T=this.levels,D=x.details,R=x.id;if(!T){this.warn("Audio tracks were reset while loading level "+R);return}this.log("Track "+R+" loaded ["+D.startSN+","+D.endSN+"],duration:"+D.totalduration);var k=T[R],H=0;if(D.live||(O=k.details)!==null&&O!==void 0&&O.live){var J=this.mainDetails;if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed||!J)return;!k.details&&D.hasProgramDateTime&&J.hasProgramDateTime?(Object(f.alignMediaPlaylistByPDT)(D,J),H=D.fragments[0].start):H=this.alignPlaylists(D,k.details)}k.details=D,this.levelLastLoaded=R,!this.startFragRequested&&(this.mainDetails||!D.live)&&this.setStartPosition(k.details,H),this.state===E.State.WAITING_TRACK&&!this.waitForCdnTuneIn(D)&&(this.state=E.State.IDLE),this.tick()},A._handleFragmentLoadProgress=function(i){var x,O=i.frag,T=i.part,D=i.payload,R=this.config,k=this.trackId,H=this.levels;if(!H){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var J=H[k];console.assert(J,"Audio track is defined on fragment load progress");var U=J.details;console.assert(U,"Audio track details are defined on fragment load progress");var K=R.defaultAudioCodec||J.audioCodec||"mp4a.40.2",G=this.transmuxer;G||(G=this.transmuxer=new s.default(this.hls,r.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var N=this.initPTS[O.cc],Q=(x=O.initSegment)===null||x===void 0?void 0:x.data;if(N!==void 0){var X=!1,te=T?T.index:-1,oe=te!==-1,me=new u.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,D.byteLength,te,oe);G.push(D,Q,K,"",O,T,U.totalduration,X,me,N)}else{a.logger.log("Unknown video PTS for cc "+O.cc+", waiting for video PTS before demuxing audio frag "+O.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+k);var se=this.waitingData=this.waitingData||{frag:O,part:T,cache:new e.default,complete:!1},_e=se.cache;_e.push(new Uint8Array(D)),this.waitingVideoCC=this.videoTrackCC,this.state=E.State.WAITING_INIT_PTS}},A._handleFragmentLoadComplete=function(i){if(this.waitingData){this.waitingData.complete=!0;return}B.prototype._handleFragmentLoadComplete.call(this,i)},A.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},A.onBufferCreated=function(i,x){var O=x.tracks.audio;O&&(this.mediaBuffer=O.buffer),x.tracks.video&&(this.videoBuffer=x.tracks.video.buffer)},A.onFragBuffered=function(i,x){var O=x.frag,T=x.part;if(O.type!==r.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(T?" p: "+T.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}O.sn!=="initSegment"&&(this.fragPrevious=O,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(_.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(O,T)},A.onError=function(i,x){switch(x.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(r.PlaylistLevelType.AUDIO,x);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==E.State.ERROR&&this.state!==E.State.STOPPED&&(this.state=x.fatal?E.State.ERROR:E.State.IDLE,this.warn(x.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(x.parent==="audio"&&(this.state===E.State.PARSING||this.state===E.State.PARSED)){var O=!0,T=this.getFwdBufferInfo(this.mediaBuffer,r.PlaylistLevelType.AUDIO);T&&T.len>.5&&(O=!this.reduceMaxBufferLength(T.len)),O&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,B.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},A.onBufferFlushed=function(i,x){var O=x.type;O===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},A._handleTransmuxComplete=function(i){var x,O="audio",T=this.hls,D=i.remuxResult,R=i.chunkMeta,k=this.getCurrentContext(R);if(!k){this.warn("The loading context changed while buffering fragment "+R.sn+" of level "+R.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(R.level);return}var H=k.frag,J=k.part,U=D.audio,K=D.text,G=D.id3,N=D.initSegment;if(this.fragContextChanged(H))return;if(this.state=E.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),N!=null&&N.tracks&&(this._bufferInitSegment(N.tracks,H,R),T.trigger(_.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:O,tracks:N.tracks})),U){var Q=U.startPTS,X=U.endPTS,te=U.startDTS,oe=U.endDTS;J&&(J.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Q,endPTS:X,startDTS:te,endDTS:oe}),H.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Q,X,te,oe),this.bufferFragmentData(U,H,J,R)}if(G!=null&&(x=G.samples)!==null&&x!==void 0&&x.length){var me=h({frag:H,id:O},G);T.trigger(_.Events.FRAG_PARSING_METADATA,me)}if(K){var se=h({frag:H,id:O},K);T.trigger(_.Events.FRAG_PARSING_USERDATA,se)}},A._bufferInitSegment=function(i,x,O){if(this.state!==E.State.PARSING)return;i.video&&delete i.video;var T=i.audio;if(!T)return;T.levelCodec=T.codec,T.id="audio",this.log("Init audio buffer, container:"+T.container+", codecs[parsed]=["+T.codec+"]"),this.hls.trigger(_.Events.BUFFER_CODECS,i);var D=T.initSegment;if(D!=null&&D.byteLength){var R={type:"audio",frag:x,part:null,chunkMeta:O,parent:x.type,data:D};this.hls.trigger(_.Events.BUFFER_APPENDING,R)}this.tick()},A.loadFragment=function(i,x,O){var T=this.fragmentTracker.getState(i);this.fragCurrent=i,(this.audioSwitch||T===m.FragmentState.NOT_LOADED||T===m.FragmentState.PARTIAL)&&(i.sn==="initSegment"?this._loadInitSegment(i):x.live&&!Object(y.isFiniteNumber)(this.initPTS[i.cc])?(this.log("Waiting for video PTS in continuity counter "+i.cc+" of live stream before loading audio fragment "+i.sn+" of level "+this.trackId),this.state=E.State.WAITING_INIT_PTS):(this.startFragRequested=!0,B.prototype.loadFragment.call(this,i,x,O)))},A.completeAudioSwitch=function(){var i=this.hls,x=this.media,O=this.trackId;x&&(this.log("Switching audio track : flushing all audio"),B.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,i.trigger(_.Events.AUDIO_TRACK_SWITCHED,{id:O})},b}(E.default);Y.default=w},"./src/controller/audio-track-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts"),E=P("./src/errors.ts"),_=P("./src/controller/base-playlist-controller.ts"),C=P("./src/types/loader.ts");function m(s,u){for(var o=0;o=a.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var h=a[this.trackId];this.log("Now switching to audio-track index "+d);var g=a[d],p=g.id,S=g.groupId,w=S===void 0?"":S,B=g.name,b=g.type,A=g.url;if(this.trackId=d,this.trackName=B,this.selectDefaultTrack=!1,this.hls.trigger(y.Events.AUDIO_TRACK_SWITCHING,{id:p,groupId:w,name:B,type:b,url:A}),g.details&&!g.details.live)return;var l=this.switchParams(g.url,h==null?void 0:h.details);this.loadPlaylist(l)},o.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var a=this.trackName,h=this.findTrackId(a)||this.findTrackId();h!==-1?this.setAudioTrack(h):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},o.findTrackId=function(d){for(var a=this.tracksInGroup,h=0;hu.partTarget&&(g+=1)}if(Object(y.isFiniteNumber)(h))return new E.HlsUrlParameters(h,Object(y.isFiniteNumber)(g)?g:void 0,E.HlsSkip.No)}}},n.loadPlaylist=function(s){},n.shouldLoadTrack=function(s){return this.canLoad&&s&&!!s.url&&(!s.details||s.details.live)},n.playlistLoaded=function(s,u,o){var f=this,d=u.details,a=u.stats,h=a.loading.end?Math.max(0,self.performance.now()-a.loading.end):0;if(d.advancedDateTime=Date.now()-h,d.live||o!=null&&o.live){if(d.reloaded(o),o&&this.log("live playlist "+s+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),o&&d.fragments.length>0&&Object(_.mergeDetails)(o,d),!this.canLoad||!d.live)return;var g,p=void 0,S=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var w=this.hls.config.lowLatencyMode,B=d.lastPartSn,b=d.endSN,A=d.lastPartIndex,l=A!==-1,i=B===b,x=w?0:A;l?(p=i?b+1:B,S=i?x:A+1):p=b+1;var O=d.age,T=O+d.ageHeader,D=Math.min(T-d.partTarget,d.targetduration*1.5);if(D>0){if(o&&D>o.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+o.tuneInGoal+" to: "+D+" with playlist age: "+d.age),D=0;else{var R=Math.floor(D/d.targetduration);if(p+=R,S!==void 0){var k=Math.round(D%d.targetduration/d.partTarget);S+=k}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+O.toFixed(2)+"s goal: "+D+" skip sn "+R+" to part "+S)}d.tuneInGoal=D}if(g=this.getDeliveryDirectives(d,u.deliveryDirectives,p,S),w||!i){this.loadPlaylist(g);return}}else g=this.getDeliveryDirectives(d,u.deliveryDirectives,p,S);var H=Object(_.computeReloadInterval)(d,a);p!==void 0&&d.canBlockReload&&(H-=d.partTarget||1),this.log("reload live playlist "+s+" in "+Math.round(H)+" ms"),this.timer=self.setTimeout(function(){return f.loadPlaylist(g)},H)}else this.clearTimer()},n.getDeliveryDirectives=function(s,u,o,f){var d=Object(E.getSkipValue)(s,o);return u!=null&&u.skip&&s.deltaUpdateFailed&&(o=u.msn,f=u.part,d=E.HlsSkip.No),new E.HlsUrlParameters(o,f,d)},n.retryLoadingOrFail=function(s){var u=this,o=this.hls.config,f=this.retryCount-1&&(d=s.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+s.details+'"'),this.loadPlaylist();else{var a=Math.min(Math.pow(2,this.retryCount)*o.levelLoadingRetryDelay,o.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return u.loadPlaylist()},a),this.warn("retry playlist loading #"+this.retryCount+" in "+a+' ms after "'+s.details+'"')}}else this.warn('cannot recover from error "'+s.details+'"'),this.clearTimer(),s.fatal=!0;return f},r}()},"./src/controller/base-stream-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"State",function(){return b}),P.d(Y,"default",function(){return A});var y=P("./src/polyfills/number.ts"),E=P("./src/task-loop.ts"),_=P("./src/controller/fragment-tracker.ts"),C=P("./src/utils/buffer-helper.ts"),m=P("./src/utils/logger.ts"),c=P("./src/events.ts"),r=P("./src/errors.ts"),n=P("./src/types/transmuxer.ts"),e=P("./src/utils/mp4-tools.ts"),s=P("./src/utils/discontinuities.ts"),u=P("./src/controller/fragment-finders.ts"),o=P("./src/controller/level-helper.ts"),f=P("./src/loader/fragment-loader.ts"),d=P("./src/crypt/decrypter.ts"),a=P("./src/utils/time-ranges.ts"),h=P("./src/types/loader.ts");function g(l,i){for(var x=0;xN;(J0&&J&&J.key&&J.iv&&J.method==="AES-128"){var U=self.performance.now();return D.decrypter.webCryptoDecrypt(new Uint8Array(H),J.key.buffer,J.iv.buffer).then(function(K){var G=self.performance.now();return k.trigger(c.Events.FRAG_DECRYPTED,{frag:T,payload:K,stats:{tstart:U,tdecrypt:G}}),R.payload=K,R})}return R}).then(function(R){var k=D.fragCurrent,H=D.hls,J=D.levels;if(!J)throw new Error("init load aborted, missing levels");var U=J[T.level].details;console.assert(U,"Level details are defined when init segment is loaded");var K=T.stats;D.state=b.IDLE,D.fragLoadError=0,T.data=new Uint8Array(R.payload),K.parsing.start=K.buffering.start=self.performance.now(),K.parsing.end=K.buffering.end=self.performance.now(),R.frag===k&&H.trigger(c.Events.FRAG_BUFFERED,{stats:K,frag:k,part:null,id:T.type}),D.tick()}).catch(function(R){D.warn(R),D.resetFragmentLoading(T)})},x.fragContextChanged=function(T){var D=this.fragCurrent;return!T||!D||T.level!==D.level||T.sn!==D.sn||T.urlId!==D.urlId},x.fragBufferedComplete=function(T,D){var R=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(D?" part: "+D.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+a.default.toString(C.BufferHelper.getBuffered(R))),this.state=b.IDLE,this.tick()},x._handleFragmentLoadComplete=function(T){var D=this.transmuxer;if(!D)return;var R=T.frag,k=T.part,H=T.partsLoaded,J=!H||H.length===0||H.some(function(K){return!K}),U=new n.ChunkMetadata(R.level,R.sn,R.stats.chunkCount+1,0,k?k.index:-1,!J);D.flush(U)},x._handleFragmentLoadProgress=function(T){},x._doFragLoad=function(T,D,R,k){var H=this;if(R===void 0&&(R=null),!this.levels)throw new Error("frag load aborted, missing levels");if(R=Math.max(T.start,R||0),this.config.lowLatencyMode&&D){var J=D.partList;if(J&&k){R>T.end&&D.fragmentHint&&(T=D.fragmentHint);var U=this.getNextPart(J,T,R);if(U>-1){var K=J[U];return this.log("Loading part sn: "+T.sn+" p: "+K.index+" cc: "+T.cc+" of playlist ["+D.startSN+"-"+D.endSN+"] parts [0-"+U+"-"+(J.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(R.toFixed(3))),this.nextLoadPosition=K.start+K.duration,this.state=b.FRAG_LOADING,this.hls.trigger(c.Events.FRAG_LOADING,{frag:T,part:J[U],targetBufferTime:R}),this.doFragPartsLoad(T,J,U,k).catch(function(G){return H.handleFragLoadError(G)})}else if(!T.url||this.loadedEndOfParts(J,R))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(D?"of ["+D.startSN+"-"+D.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(R.toFixed(3))),Object(y.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=b.FRAG_LOADING,this.hls.trigger(c.Events.FRAG_LOADING,{frag:T,targetBufferTime:R}),this.fragmentLoader.load(T,k).catch(function(G){return H.handleFragLoadError(G)})},x.doFragPartsLoad=function(T,D,R,k){var H=this;return new Promise(function(J,U){var K=[],G=function N(Q){var X=D[Q];H.fragmentLoader.loadPart(T,X,k).then(function(te){K[X.index]=te;var oe=te.part;H.hls.trigger(c.Events.FRAG_LOADED,te);var me=D[Q+1];if(me&&me.fragment===T)N(Q+1);else return J({frag:T,part:oe,partsLoaded:K})}).catch(U)};G(R)})},x.handleFragLoadError=function(T){var D=T.data;return D&&D.details===r.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(D.frag,D.part):this.hls.trigger(c.Events.ERROR,D),null},x._handleTransmuxerFlush=function(T){var D=this.getCurrentContext(T);if(!D||this.state!==b.PARSING){this.fragCurrent||(this.state=b.IDLE);return}var R=D.frag,k=D.part,H=D.level,J=self.performance.now();R.stats.parsing.end=J,k&&(k.stats.parsing.end=J),this.updateLevelTiming(R,k,H,T.partial)},x.getCurrentContext=function(T){var D=this.levels,R=T.level,k=T.sn,H=T.part;if(!D||!D[R])return this.warn("Levels object was unset while buffering fragment "+k+" of level "+R+". The current chunk will not be buffered."),null;var J=D[R],U=H>-1?Object(o.getPartWith)(J,k,H):null,K=U?U.fragment:Object(o.getFragmentWithSN)(J,k,this.fragCurrent);return K?{frag:K,part:U,level:J}:null},x.bufferFragmentData=function(T,D,R,k){if(!T||this.state!==b.PARSING)return;var H=T.data1,J=T.data2,U=H;if(H&&J&&(U=Object(e.appendUint8Array)(H,J)),!U||!U.length)return;var K={type:T.type,frag:D,part:R,chunkMeta:k,parent:D.type,data:U};this.hls.trigger(c.Events.BUFFER_APPENDING,K),T.dropped&&T.independent&&!R&&this.flushBufferGap(D)},x.flushBufferGap=function(T){var D=this.media;if(!D)return;if(!C.BufferHelper.isBuffered(D,D.currentTime)){this.flushMainBuffer(0,T.start);return}var R=D.currentTime,k=C.BufferHelper.bufferInfo(D,R,0),H=T.duration,J=Math.min(this.config.maxFragLookUpTolerance*2,H*.25),U=Math.max(Math.min(T.start-J,k.end-J),R+J);T.start-U>J&&this.flushMainBuffer(U,T.start)},x.getFwdBufferInfo=function(T,D){var R=this.config,k=this.getLoadPosition();if(!Object(y.isFiniteNumber)(k))return null;var H=C.BufferHelper.bufferInfo(T,k,R.maxBufferHole);if(H.len===0&&H.nextStart!==void 0){var J=this.fragmentTracker.getBufferedFrag(k,D);if(J&&H.nextStart=R?(D.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+D.maxMaxBufferLength+"s"),!0):!1},x.getNextFragment=function(T,D){var R,k,H=D.fragments,J=H.length;if(!J)return null;var U=this.config,K=H[0].start,G;if(D.live){var N=U.initialLiveManifestSize;if(J-1&&RR.start&&R.loaded},x.getInitialLiveFragment=function(T,D){var R=this.fragPrevious,k=null;if(R){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+R.programDateTime),k=Object(u.findFragmentByPDT)(D,R.endProgramDateTime,this.config.maxFragLookUpTolerance)),!k){var H=R.sn+1;if(H>=T.startSN&&H<=T.endSN){var J=D[H-T.startSN];R.cc===J.cc&&(k=J,this.log("Live playlist, switching playlist, load frag with next SN: "+k.sn))}k||(k=Object(u.findFragWithCC)(D,R.cc),k&&this.log("Live playlist, switching playlist, load frag with same CC: "+k.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(k=this.getFragmentAtPosition(U,this.bitrateTest?T.fragmentEnd:T.edge,T))}return k},x.getFragmentAtPosition=function(T,D,R){var k=this.config,H=this.fragPrevious,J=R.fragments,U=R.endSN,K=R.fragmentHint,G=k.maxFragLookUpTolerance,N=!!(k.lowLatencyMode&&R.partList&&K);N&&K&&!this.bitrateTest&&(J=J.concat(K),U=K.sn);var Q;if(TD-G?0:G;Q=Object(u.findFragmentByPTS)(H,J,T,X)}else Q=J[J.length-1];if(Q){var te=Q.sn-R.startSN,oe=H&&Q.level===H.level,me=J[te+1],se=this.fragmentTracker.getState(Q);if(se===_.FragmentState.BACKTRACKED){Q=null;for(var _e=te;J[_e]&&this.fragmentTracker.getState(J[_e])===_.FragmentState.BACKTRACKED;)H?Q=J[_e--]:Q=J[--_e];Q||(Q=me)}else H&&Q.sn===H.sn&&!N&&(oe&&(Q.sn=J-D.maxFragLookUpTolerance&&H<=U;if(k!==null&&R.duration>k&&(H"+T.startSN+" prev-sn: "+(H?H.sn:"na")+" fragments: "+U),Q}return K},x.waitForCdnTuneIn=function(T){var D=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*D)},x.setStartPosition=function(T,D){var R=this.startPosition;if(R"+T))}}]),i}(E.default)},"./src/controller/buffer-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u});var y=P("./src/polyfills/number.ts"),E=P("./src/events.ts"),_=P("./src/utils/logger.ts"),C=P("./src/errors.ts"),m=P("./src/utils/buffer-helper.ts"),c=P("./src/utils/mediasource-helper.ts"),r=P("./src/loader/fragment.ts"),n=P("./src/controller/buffer-operation-queue.ts"),e=Object(c.getMediaSource)(),s=/([ha]vc.)(?:\.[^.,]+)+/,u=function(){function o(d){var a=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 h=a.hls,g=a.media,p=a.mediaSource;_.logger.log("[buffer-controller]: Media source opened"),g&&(a.updateMediaElementDuration(),h.trigger(E.Events.MEDIA_ATTACHED,{media:g})),p&&p.removeEventListener("sourceopen",a._onMediaSourceOpen),a.checkPendingTracks()},this._onMediaSourceClose=function(){_.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){_.logger.log("[buffer-controller]: Media source ended")},this.hls=d,this._initSourceBuffer(),this.registerListeners()}var f=o.prototype;return f.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},f.destroy=function(){this.unregisterListeners(),this.details=null},f.registerListeners=function(){var a=this.hls;a.on(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.on(E.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(E.Events.BUFFER_RESET,this.onBufferReset,this),a.on(E.Events.BUFFER_APPENDING,this.onBufferAppending,this),a.on(E.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(E.Events.BUFFER_EOS,this.onBufferEos,this),a.on(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),a.on(E.Events.LEVEL_UPDATED,this.onLevelUpdated,this),a.on(E.Events.FRAG_PARSED,this.onFragParsed,this),a.on(E.Events.FRAG_CHANGED,this.onFragChanged,this)},f.unregisterListeners=function(){var a=this.hls;a.off(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.off(E.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(E.Events.BUFFER_RESET,this.onBufferReset,this),a.off(E.Events.BUFFER_APPENDING,this.onBufferAppending,this),a.off(E.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(E.Events.BUFFER_EOS,this.onBufferEos,this),a.off(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),a.off(E.Events.LEVEL_UPDATED,this.onLevelUpdated,this),a.off(E.Events.FRAG_PARSED,this.onFragParsed,this),a.off(E.Events.FRAG_CHANGED,this.onFragChanged,this)},f._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},f.onManifestParsed=function(a,h){var g=2;(h.audio&&!h.video||!h.altAudio)&&(g=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=g,this.details=null,_.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(a,h){var g=this.media=h.media;if(g&&e){var p=this.mediaSource=new e;p.addEventListener("sourceopen",this._onMediaSourceOpen),p.addEventListener("sourceended",this._onMediaSourceEnded),p.addEventListener("sourceclose",this._onMediaSourceClose),g.src=self.URL.createObjectURL(p),this._objectUrl=g.src}},f.onMediaDetaching=function(){var a=this.media,h=this.mediaSource,g=this._objectUrl;if(h){if(_.logger.log("[buffer-controller]: media source detaching"),h.readyState==="open")try{h.endOfStream()}catch(p){_.logger.warn("[buffer-controller]: onMediaDetaching: "+p.message+" while calling endOfStream")}this.onBufferReset(),h.removeEventListener("sourceopen",this._onMediaSourceOpen),h.removeEventListener("sourceended",this._onMediaSourceEnded),h.removeEventListener("sourceclose",this._onMediaSourceClose),a&&(g&&self.URL.revokeObjectURL(g),a.src===g?(a.removeAttribute("src"),a.load()):_.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(E.Events.MEDIA_DETACHED,void 0)},f.onBufferReset=function(){var a=this;this.getSourceBufferTypes().forEach(function(h){var g=a.sourceBuffer[h];try{g&&(a.removeBufferListeners(h),a.mediaSource&&a.mediaSource.removeSourceBuffer(g),a.sourceBuffer[h]=void 0)}catch(p){_.logger.warn("[buffer-controller]: Failed to reset the "+h+" buffer",p)}}),this._initSourceBuffer()},f.onBufferCodecs=function(a,h){var g=this,p=this.getSourceBufferTypes().length;if(Object.keys(h).forEach(function(S){if(p){var w=g.tracks[S];if(w&&typeof w.buffer.changeType=="function"){var B=h[S],b=B.codec,A=B.levelCodec,l=B.container,i=(w.levelCodec||w.codec).replace(s,"$1"),x=(A||b).replace(s,"$1");if(i!==x){var O=l+";codecs="+(A||b);g.appendChangeType(S,O)}}}else g.pendingTracks[S]=h[S]}),p)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},f.appendChangeType=function(a,h){var g=this,p=this.operationQueue,S={execute:function(){var B=g.sourceBuffer[a];B&&(_.logger.log("[buffer-controller]: changing "+a+" sourceBuffer type to "+h),B.changeType(h)),p.shiftAndExecuteNext(a)},onStart:function(){},onComplete:function(){},onError:function(B){_.logger.warn("[buffer-controller]: Failed to change "+a+" SourceBuffer type",B)}};p.append(S,a)},f.onBufferAppending=function(a,h){var g=this,p=this.hls,S=this.operationQueue,w=this.tracks,B=h.data,b=h.type,A=h.frag,l=h.part,i=h.chunkMeta,x=i.buffering[b],O=self.performance.now();x.start=O;var T=A.stats.buffering,D=l?l.stats.buffering:null;T.start===0&&(T.start=O),D&&D.start===0&&(D.start=O);var R=w.audio,k=b==="audio"&&i.id===1&&(R==null?void 0:R.container)==="audio/mpeg",H={execute:function(){if(x.executeStart=self.performance.now(),k){var U=g.sourceBuffer[b];if(U){var K=A.start-U.timestampOffset;Math.abs(K)>=.1&&(_.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+A.start+" (delta: "+K+") sn: "+A.sn+")"),U.timestampOffset=A.start)}}g.appendExecutor(B,b)},onStart:function(){},onComplete:function(){var U=self.performance.now();x.executeEnd=x.end=U,T.first===0&&(T.first=U),D&&D.first===0&&(D.first=U);var K=g.sourceBuffer,G={};for(var N in K)G[N]=m.BufferHelper.getBuffered(K[N]);g.appendError=0,g.hls.trigger(E.Events.BUFFER_APPENDED,{type:b,frag:A,part:l,chunkMeta:i,parent:A.type,timeRanges:G})},onError:function(U){_.logger.error("[buffer-controller]: Error encountered while trying to append to the "+b+" SourceBuffer",U);var K={type:C.ErrorTypes.MEDIA_ERROR,parent:A.type,details:C.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?K.details=C.ErrorDetails.BUFFER_FULL_ERROR:(g.appendError++,K.details=C.ErrorDetails.BUFFER_APPEND_ERROR,g.appendError>p.config.appendErrorMaxRetry&&(_.logger.error("[buffer-controller]: Failed "+p.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),K.fatal=!0)),p.trigger(E.Events.ERROR,K)}};S.append(H,b)},f.onBufferFlushing=function(a,h){var g=this,p=this.operationQueue,S=function(B){return{execute:g.removeExecutor.bind(g,B,h.startOffset,h.endOffset),onStart:function(){},onComplete:function(){g.hls.trigger(E.Events.BUFFER_FLUSHED,{type:B})},onError:function(A){_.logger.warn("[buffer-controller]: Failed to remove from "+B+" SourceBuffer",A)}}};h.type?p.append(S(h.type),h.type):this.getSourceBufferTypes().forEach(function(w){p.append(S(w),w)})},f.onFragParsed=function(a,h){var g=this,p=h.frag,S=h.part,w=[],B=S?S.elementaryStreams:p.elementaryStreams;B[r.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(B[r.ElementaryStreamTypes.AUDIO]&&w.push("audio"),B[r.ElementaryStreamTypes.VIDEO]&&w.push("video"));var b=function(){var l=self.performance.now();p.stats.buffering.end=l,S&&(S.stats.buffering.end=l);var i=S?S.stats:p.stats;g.hls.trigger(E.Events.FRAG_BUFFERED,{frag:p,part:S,stats:i,id:p.type})};w.length===0&&_.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+p.type+" level: "+p.level+" sn: "+p.sn),this.blockBuffers(b,w)},f.onFragChanged=function(a,h){this.flushBackBuffer()},f.onBufferEos=function(a,h){var g=this,p=this.getSourceBufferTypes().reduce(function(S,w){var B=g.sourceBuffer[w];return(!h.type||h.type===w)&&(B&&!B.ended&&(B.ended=!0,_.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),S&&!!(!B||B.ended)},!0);p&&this.blockBuffers(function(){var S=g.mediaSource;if(!S||S.readyState!=="open")return;S.endOfStream()})},f.onLevelUpdated=function(a,h){var g=h.details;if(!g.fragments.length)return;this.details=g,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},f.flushBackBuffer=function(){var a=this.hls,h=this.details,g=this.media,p=this.sourceBuffer;if(!g||h===null)return;var S=this.getSourceBufferTypes();if(!S.length)return;var w=h.live&&a.config.liveBackBufferLength!==null?a.config.liveBackBufferLength:a.config.backBufferLength;if(!Object(y.isFiniteNumber)(w)||w<0)return;var B=g.currentTime,b=h.levelTargetDuration,A=Math.max(w,b),l=Math.floor(B/b)*b-A;S.forEach(function(i){var x=p[i];if(x){var O=m.BufferHelper.getBuffered(x);O.length>0&&l>O.start(0)&&(a.trigger(E.Events.BACK_BUFFER_REACHED,{bufferEnd:l}),h.live&&a.trigger(E.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:l}),a.trigger(E.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:l,type:i}))}})},f.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var a=this.details,h=this.hls,g=this.media,p=this.mediaSource,S=a.fragments[0].start+a.totalduration,w=g.duration,B=Object(y.isFiniteNumber)(p.duration)?p.duration:0;a.live&&h.config.liveDurationInfinity?(_.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),p.duration=Infinity,this.updateSeekableRange(a)):(S>B&&S>w||!Object(y.isFiniteNumber)(w))&&(_.logger.log("[buffer-controller]: Updating Media Source duration to "+S.toFixed(3)),p.duration=S)},f.updateSeekableRange=function(a){var h=this.mediaSource,g=a.fragments,p=g.length;if(p&&a.live&&h!==null&&h!==void 0&&h.setLiveSeekableRange){var S=Math.max(0,g[0].start),w=Math.max(S,S+a.totalduration);h.setLiveSeekableRange(S,w)}},f.checkPendingTracks=function(){var a=this.bufferCodecEventsExpected,h=this.operationQueue,g=this.pendingTracks,p=Object.keys(g).length;if(p&&!a||p===2){this.createSourceBuffers(g),this.pendingTracks={};var S=this.getSourceBufferTypes();if(S.length===0){this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}S.forEach(function(w){h.executeNext(w)})}},f.createSourceBuffers=function(a){var h=this.sourceBuffer,g=this.mediaSource;if(!g)throw Error("createSourceBuffers called when mediaSource was null");var p=0;for(var S in a)if(!h[S]){var w=a[S];if(!w)throw Error("source buffer exists for track "+S+", however track does not");var B=w.levelCodec||w.codec,b=w.container+";codecs="+B;_.logger.log("[buffer-controller]: creating sourceBuffer("+b+")");try{var A=h[S]=g.addSourceBuffer(b),l=S;this.addBufferListener(l,"updatestart",this._onSBUpdateStart),this.addBufferListener(l,"updateend",this._onSBUpdateEnd),this.addBufferListener(l,"error",this._onSBUpdateError),this.tracks[S]={buffer:A,codec:B,container:w.container,levelCodec:w.levelCodec,id:w.id},p++}catch(i){_.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+i.message),this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:i,mimeType:b})}}p&&this.hls.trigger(E.Events.BUFFER_CREATED,{tracks:this.tracks})},f._onSBUpdateStart=function(a){var h=this.operationQueue,g=h.current(a);g.onStart()},f._onSBUpdateEnd=function(a){var h=this.operationQueue,g=h.current(a);g.onComplete(),h.shiftAndExecuteNext(a)},f._onSBUpdateError=function(a,h){_.logger.error("[buffer-controller]: "+a+" SourceBuffer error",h),this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var g=this.operationQueue.current(a);g&&g.onError(h)},f.removeExecutor=function(a,h,g){var p=this.media,S=this.mediaSource,w=this.operationQueue,B=this.sourceBuffer,b=B[a];if(!p||!S||!b){_.logger.warn("[buffer-controller]: Attempting to remove from the "+a+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(a);return}var A=Object(y.isFiniteNumber)(p.duration)?p.duration:Infinity,l=Object(y.isFiniteNumber)(S.duration)?S.duration:Infinity,i=Math.max(0,h),x=Math.min(g,A,l);x>i?(_.logger.log("[buffer-controller]: Removing ["+i+","+x+"] from the "+a+" SourceBuffer"),console.assert(!b.updating,a+" sourceBuffer must not be updating"),b.remove(i,x)):w.shiftAndExecuteNext(a)},f.appendExecutor=function(a,h){var g=this.operationQueue,p=this.sourceBuffer,S=p[h];if(!S){_.logger.warn("[buffer-controller]: Attempting to append to the "+h+" SourceBuffer, but it does not exist"),g.shiftAndExecuteNext(h);return}S.ended=!1,console.assert(!S.updating,h+" sourceBuffer must not be updating"),S.appendBuffer(a)},f.blockBuffers=function(a,h){var g=this;if(h===void 0&&(h=this.getSourceBufferTypes()),!h.length){_.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(a);return}var p=this.operationQueue,S=h.map(function(w){return p.appendBlocker(w)});Promise.all(S).then(function(){a(),h.forEach(function(w){var B=g.sourceBuffer[w];(!B||!B.updating)&&p.shiftAndExecuteNext(w)})})},f.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},f.addBufferListener=function(a,h,g){var p=this.sourceBuffer[a];if(!p)return;var S=g.bind(this,a);this.listeners[a].push({event:h,listener:S}),p.addEventListener(h,S)},f.removeBufferListeners=function(a){var h=this.sourceBuffer[a];if(!h)return;this.listeners[a].forEach(function(g){h.removeEventListener(g.event,g.listener)})},o}()},"./src/controller/buffer-operation-queue.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return E});var y=P("./src/utils/logger.ts"),E=function(){function _(m){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=m}var C=_.prototype;return C.append=function(c,r){var n=this.queues[r];n.push(c),n.length===1&&this.buffers[r]&&this.executeNext(r)},C.insertAbort=function(c,r){var n=this.queues[r];n.unshift(c),this.executeNext(r)},C.appendBlocker=function(c){var r,n=new Promise(function(s){r=s}),e={execute:r,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,c),n},C.executeNext=function(c){var r=this.buffers,n=this.queues,e=r[c],s=n[c];if(s.length){var u=s[0];try{u.execute()}catch(o){y.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),u.onError(o),(!e||!e.updating)&&(s.shift(),this.executeNext(c))}}},C.shiftAndExecuteNext=function(c){this.queues[c].shift(),this.executeNext(c)},C.current=function(c){return this.queues[c][0]},_}()},"./src/controller/cap-level-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts");function E(m,c){for(var r=0;r0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(n.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},c.getMaxLevel=function(n){var e=this,s=this.hls.levels;if(!s.length)return-1;var u=s.filter(function(o,f){return m.isLevelAllowed(f,e.restrictedLevels)&&f<=n});return this.clientRect=null,m.getMaxLevelByMediaSize(u,this.mediaWidth,this.mediaHeight)},c.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()},c.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},c.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,e={width:0,height:0};if(n){var s=n.getBoundingClientRect();e.width=s.width,e.height=s.height,!e.width&&!e.height&&(e.width=s.right-s.left||n.width||0,e.height=s.bottom-s.top||n.height||0)}return this.clientRect=e,e},m.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},m.getMaxLevelByMediaSize=function(n,e,s){if(!n||!n.length)return-1;for(var u=function(h,g){return g?h.width!==g.width||h.height!==g.height:!0},o=n.length-1,f=0;f=e||d.height>=s)&&u(d,n[f+1])){o=f;break}}return o},_(m,[{key:"mediaWidth",get:function(){return this.getDimensions().width*m.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*m.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),m}();Y.default=C},"./src/controller/cmcd-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u});var y=P("./src/events.ts"),E=P("./src/types/cmcd.ts"),_=P("./src/utils/buffer-helper.ts"),C=P("./src/utils/logger.ts");function m(o,f){for(var d=0;d=o.length?{done:!0}:{done:!1,value:o[a++]}}}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(o,f){if(!o)return;if(typeof o=="string")return e(o,f);var d=Object.prototype.toString.call(o).slice(8,-1);if(d==="Object"&&o.constructor&&(d=o.constructor.name),d==="Map"||d==="Set")return Array.from(o);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return e(o,f)}function e(o,f){(f==null||f>o.length)&&(f=o.length);for(var d=0,a=new Array(f);dh&&(h=w.bitrate)}return h>0?h:NaN},f.getBufferLength=function(a){var h=this.hls.media,g=a===E.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!g||!h)return NaN;var p=_.BufferHelper.bufferInfo(g,h.currentTime,this.config.maxBufferHole);return p.len*1e3},f.createPlaylistLoader=function(){var a=this.config.pLoader,h=this.applyPlaylistData,g=a||this.config.loader;return function(){function p(w){this.loader=void 0,this.loader=new g(w)}var S=p.prototype;return S.destroy=function(){this.loader.destroy()},S.abort=function(){this.loader.abort()},S.load=function(B,b,A){h(B),this.loader.load(B,b,A)},c(p,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),p}()},f.createFragmentLoader=function(){var a=this.config.fLoader,h=this.applyFragmentData,g=a||this.config.loader;return function(){function p(w){this.loader=void 0,this.loader=new g(w)}var S=p.prototype;return S.destroy=function(){this.loader.destroy()},S.abort=function(){this.loader.abort()},S.load=function(B,b,A){h(B),this.loader.load(B,b,A)},c(p,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),p}()},o.uuid=function(){var a=URL.createObjectURL(new Blob),h=a.toString();return URL.revokeObjectURL(a),h.substr(h.lastIndexOf("/")+1)},o.serialize=function(a){for(var h=[],g=function(k){return!Number.isNaN(k)&&k!=null&&k!==""&&k!==!1},p=function(k){return Math.round(k)},S=function(k){return p(k/100)*100},w=function(k){return encodeURIComponent(k)},B={br:p,d:p,bl:S,dl:S,mtp:S,nor:w,rtp:S,tb:p},b=Object.keys(a||{}).sort(),A=r(b),l;!(l=A()).done;){var i=l.value,x=a[i];if(!g(x))continue;if(i==="v"&&x===1)continue;if(i=="pr"&&x===1)continue;var O=B[i];O&&(x=O(x));var T=typeof x,D=void 0;i==="ot"||i==="sf"||i==="st"?D=i+"="+x:T==="boolean"?D=i:T==="number"?D=i+"="+x:D=i+"="+JSON.stringify(x),h.push(D)}return h.join(",")},o.toHeaders=function(a){for(var h=Object.keys(a),g={},p=["Object","Request","Session","Status"],S=[{},{},{},{}],w={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},B=0,b=h;Br){this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=r-this._requestLicenseFailureCount+1;_.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(h,g)}break}},o._generateLicenseRequestChallenge=function(d,a){switch(d.mediaKeySystemDomain){case C.KeySystems.WIDEVINE:return a}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},o._requestLicense=function(d,a){_.logger.log("Requesting content license for key-system");var h=this._mediaKeysList[0];if(!h){_.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var g=this.getLicenseServerUrl(h.mediaKeySystemDomain),p=this._createLicenseXhr(g,d,a);_.logger.log("Sending license request to URL: "+g);var S=this._generateLicenseRequestChallenge(h,d);p.send(S)}catch(w){_.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},o.onMediaAttached=function(d,a){if(!this._emeEnabled)return;var h=a.media;this._media=h,h.addEventListener("encrypted",this._onMediaEncrypted)},o.onMediaDetached=function(){var d=this._media,a=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(a.map(function(h){if(h.mediaKeysSession)return h.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},o.onManifestParsed=function(d,a){if(!this._emeEnabled)return;var h=a.levels.map(function(p){return p.audioCodec}).filter(function(p){return!!p}),g=a.levels.map(function(p){return p.videoCodec}).filter(function(p){return!!p});this._attemptKeySystemAccess(C.KeySystems.WIDEVINE,h,g)},c(u,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),u}();Y.default=s},"./src/controller/fps-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts"),E=P("./src/utils/logger.ts"),_=function(){function C(c){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=c,this.registerListeners()}var m=C.prototype;return m.setStreamController=function(r){this.streamController=r},m.registerListeners=function(){this.hls.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.onMediaAttaching=function(r,n){var e=this.hls.config;if(e.capLevelOnFPSDrop){var s=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=s,s&&typeof s.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},m.checkFPS=function(r,n,e){var s=performance.now();if(n){if(this.lastTime){var u=s-this.lastTime,o=e-this.lastDroppedFrames,f=n-this.lastDecodedFrames,d=1e3*o/u,a=this.hls;if(a.trigger(y.Events.FPS_DROP,{currentDropped:o,currentDecoded:f,totalDroppedFrames:e}),d>0&&o>a.config.fpsDroppedMonitoringThreshold*f){var h=a.currentLevel;E.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(a.autoLevelCapping===-1||a.autoLevelCapping>=h)&&(h=h-1,a.trigger(y.Events.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:a.currentLevel}),a.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},m.checkFPSInterval=function(){var r=this.media;if(r)if(this.isVideoPlaybackQualityAvailable){var n=r.getVideoPlaybackQuality();this.checkFPS(r,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(r,r.webkitDecodedFrameCount,r.webkitDroppedFrameCount)},C}();Y.default=_},"./src/controller/fragment-finders.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"findFragmentByPDT",function(){return _}),P.d(Y,"findFragmentByPTS",function(){return C}),P.d(Y,"fragmentWithinToleranceTest",function(){return m}),P.d(Y,"pdtWithinToleranceTest",function(){return c}),P.d(Y,"findFragWithCC",function(){return r});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/binary-search.ts");function _(n,e,s){if(e===null||!Array.isArray(n)||!n.length||!Object(y.isFiniteNumber)(e))return null;var u=n[0].programDateTime;if(e<(u||0))return null;var o=n[n.length-1].endProgramDateTime;if(e>=(o||0))return null;s=s||0;for(var f=0;fn&&s.start?-1:0}function c(n,e,s){var u=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0))*1e3,o=s.endProgramDateTime||0;return o-u>n}function r(n,e){return E.default.search(n,function(s){return s.cce?-1:0})}},"./src/controller/fragment-tracker.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"FragmentState",function(){return _}),P.d(Y,"FragmentTracker",function(){return C});var y=P("./src/events.ts"),E=P("./src/types/loader.ts"),_;(function(r){r.NOT_LOADED="NOT_LOADED",r.BACKTRACKED="BACKTRACKED",r.APPENDING="APPENDING",r.PARTIAL="PARTIAL",r.OK="OK"})(_||(_={}));var C=function(){function r(e){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=e,this._registerListeners()}var n=r.prototype;return n._registerListeners=function(){var s=this.hls;s.on(y.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.on(y.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(y.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var s=this.hls;s.off(y.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.off(y.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(y.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(s,u){if(u===E.PlaylistLevelType.MAIN){var o=this.activeFragment,f=this.activeParts;if(!o)return null;if(f)for(var d=f.length;d--;){var a=f[d],h=a?a.end:o.appendedPTS;if(a.start<=s&&h!==void 0&&s<=h)return d>9&&(this.activeParts=f.slice(d-9)),a}else if(o.start<=s&&o.appendedPTS!==void 0&&s<=o.appendedPTS)return o}return this.getBufferedFrag(s,u)},n.getBufferedFrag=function(s,u){for(var o=this.fragments,f=Object.keys(o),d=f.length;d--;){var a=o[f[d]];if((a==null?void 0:a.body.type)===u&&a.buffered){var h=a.body;if(h.start<=s&&s<=h.end)return h}}return null},n.detectEvictedFragments=function(s,u,o){var f=this;Object.keys(this.fragments).forEach(function(d){var a=f.fragments[d];if(!a)return;if(!a.buffered){a.body.type===o&&f.removeFragment(a.body);return}var h=a.range[s];if(!h)return;h.time.some(function(g){var p=!f.isTimeBuffered(g.startPTS,g.endPTS,u);return p&&f.removeFragment(a.body),p})})},n.detectPartialFragments=function(s){var u=this,o=this.timeRanges,f=s.frag,d=s.part;if(!o||f.sn==="initSegment")return;var a=c(f),h=this.fragments[a];if(!h)return;Object.keys(o).forEach(function(g){var p=f.elementaryStreams[g];if(!p)return;var S=o[g],w=d!==null||p.partial===!0;h.range[g]=u.getBufferedTimes(f,d,w,S)}),h.backtrack=h.loaded=null,Object.keys(h.range).length?h.buffered=!0:this.removeFragment(h.body)},n.fragBuffered=function(s){var u=c(s),o=this.fragments[u];o&&(o.backtrack=o.loaded=null,o.buffered=!0)},n.getBufferedTimes=function(s,u,o,f){for(var d={time:[],partial:o},a=u?u.start:s.start,h=u?u.end:s.end,g=s.minEndPTS||h,p=s.maxStartPTS||a,S=0;S=w&&g<=B){d.time.push({startPTS:Math.max(a,f.start(S)),endPTS:Math.min(h,f.end(S))});break}else if(aw)d.partial=!0,d.time.push({startPTS:Math.max(a,f.start(S)),endPTS:Math.min(h,f.end(S))});else if(h<=w)break}return d},n.getPartialFragment=function(s){var u=null,o,f,d,a=0,h=this.bufferPadding,g=this.fragments;return Object.keys(g).forEach(function(p){var S=g[p];if(!S)return;m(S)&&(f=S.body.start-h,d=S.body.end+h,s>=f&&s<=d&&(o=Math.min(s-f,d-s),a<=o&&(u=S.body,a=o)))}),u},n.getState=function(s){var u=c(s),o=this.fragments[u];return o?o.buffered?m(o)?_.PARTIAL:_.OK:o.backtrack?_.BACKTRACKED:_.APPENDING:_.NOT_LOADED},n.backtrack=function(s,u){var o=c(s),f=this.fragments[o];if(!f||f.backtrack)return null;var d=f.backtrack=u||f.loaded;return f.loaded=null,d},n.getBacktrackData=function(s){var u=c(s),o=this.fragments[u];if(o){var f,d=o.backtrack;if(d!=null&&(f=d.payload)!==null&&f!==void 0&&f.byteLength)return d;this.removeFragment(s)}return null},n.isTimeBuffered=function(s,u,o){for(var f,d,a=0;a=f&&u<=d)return!0;if(u<=f)return!1}return!1},n.onFragLoaded=function(s,u){var o=u.frag,f=u.part;if(o.sn==="initSegment"||o.bitrateTest||f)return;var d=c(o);this.fragments[d]={body:o,loaded:u,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(s,u){var o=this,f=u.frag,d=u.part,a=u.timeRanges;if(f.type===E.PlaylistLevelType.MAIN)if(this.activeFragment=f,d){var h=this.activeParts;h||(this.activeParts=h=[]),h.push(d)}else this.activeParts=null;this.timeRanges=a,Object.keys(a).forEach(function(g){var p=a[g];if(o.detectEvictedFragments(g,p),!d)for(var S=0;Ss&&f.removeFragment(h)}})},n.removeFragment=function(s){var u=c(s);s.stats.loaded=0,s.clearElementaryStreamInfo(),delete this.fragments[u]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},r}();function m(r){var n,e;return r.buffered&&(((n=r.range.video)===null||n===void 0?void 0:n.partial)||((e=r.range.audio)===null||e===void 0?void 0:e.partial))}function c(r){return r.type+"_"+r.level+"_"+r.urlId+"_"+r.sn}},"./src/controller/gap-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"STALL_MINIMUM_DURATION_MS",function(){return m}),P.d(Y,"MAX_START_GAP_JUMP",function(){return c}),P.d(Y,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return r}),P.d(Y,"SKIP_BUFFER_RANGE_START",function(){return n}),P.d(Y,"default",function(){return e});var y=P("./src/utils/buffer-helper.ts"),E=P("./src/errors.ts"),_=P("./src/events.ts"),C=P("./src/utils/logger.ts"),m=250,c=2,r=.1,n=.05,e=function(){function s(o,f,d,a){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=o,this.media=f,this.fragmentTracker=d,this.hls=a}var u=s.prototype;return u.destroy=function(){this.hls=this.fragmentTracker=this.media=null},u.poll=function(f){var d=this.config,a=this.media,h=this.stalled,g=a.currentTime,p=a.seeking,S=this.seeking&&!p,w=!this.seeking&&p;if(this.seeking=p,g!==f){if(this.moved=!0,h!==null){if(this.stallReported){var B=self.performance.now()-h;C.logger.warn("playback not stuck anymore @"+g+", after "+Math.round(B)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||S)&&(this.stalled=null),a.paused||a.ended||a.playbackRate===0||!y.BufferHelper.getBuffered(a).length)return;var b=y.BufferHelper.bufferInfo(a,g,0),A=b.len>0,l=b.nextStart||0;if(!A&&!l)return;if(p){var i=b.len>c,x=!l||l-g>c&&!this.fragmentTracker.getPartialFragment(g);if(i||x)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var O,T=Math.max(l,b.start||0)-g,D=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,R=D==null||((O=D.details)===null||O===void 0)?void 0:O.live,k=R?D.details.targetduration*2:c;if(T>0&&T<=k){this._trySkipBufferHole(null);return}}var H=self.performance.now();if(h===null){this.stalled=H;return}var J=H-h;!p&&J>=m&&this._reportStall(b.len);var U=y.BufferHelper.bufferInfo(a,g,d.maxBufferHole);this._tryFixBufferStall(U,J)},u._tryFixBufferStall=function(f,d){var a=this.config,h=this.fragmentTracker,g=this.media,p=g.currentTime,S=h.getPartialFragment(p);if(S){var w=this._trySkipBufferHole(S);if(w)return}f.len>a.maxBufferHole&&d>a.highBufferWatchdogPeriod*1e3&&(C.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},u._reportStall=function(f){var d=this.hls,a=this.media,h=this.stallReported;h||(this.stallReported=!0,C.logger.warn("Playback stalling at @"+a.currentTime+" due to low buffer (buffer="+f+")"),d.trigger(_.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:f}))},u._trySkipBufferHole=function(f){for(var d=this.config,a=this.hls,h=this.media,g=h.currentTime,p=0,S=y.BufferHelper.getBuffered(h),w=0;w=p&&g.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,a)),B=Math.round(2/(1+Math.exp(-.75*g-this.edgeStalled))*20)/20;s.playbackRate=Math.min(w,Math.max(1,B))}else s.playbackRate!==1&&s.playbackRate!==0&&(s.playbackRate=1)},n.estimateLiveEdge=function(){var s=this.levelDetails;return s===null?null:s.edge+s.age},n.computeLatency=function(){var s=this.estimateLiveEdge();return s===null?null:s-this.currentTime},m(r,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var s=this.config,u=this.levelDetails;return s.liveMaxLatencyDuration!==void 0?s.liveMaxLatencyDuration:u?s.liveMaxLatencyDurationCount*u.targetduration:0}},{key:"targetLatency",get:function(){var s=this.levelDetails;if(s===null)return null;var u=s.holdBack,o=s.partHoldBack,f=s.targetduration,d=this.config,a=d.liveSyncDuration,h=d.liveSyncDurationCount,g=d.lowLatencyMode,p=this.hls.userConfig,S=g&&o||u;(p.liveSyncDuration||p.liveSyncDurationCount||S===0)&&(S=a!==void 0?a:h*f);var w=f,B=1;return S+Math.min(this.stallCount*B,w)}},{key:"liveSyncPosition",get:function(){var s=this.estimateLiveEdge(),u=this.targetLatency,o=this.levelDetails;if(s===null||u===null||o===null)return null;var f=o.edge,d=s-u-this.edgeStalled,a=f-o.totalduration,h=f-(this.config.lowLatencyMode&&o.partTarget||o.targetduration);return Math.min(Math.max(a,d),h)}},{key:"drift",get:function(){var s=this.levelDetails;return s===null?1:s.drift}},{key:"edgeStalled",get:function(){var s=this.levelDetails;if(s===null)return 0;var u=(this.config.lowLatencyMode&&s.partTarget||s.targetduration)*3;return Math.max(s.age-u,0)}},{key:"forwardBufferLength",get:function(){var s=this.media,u=this.levelDetails;if(!s||!u)return 0;var o=s.buffered.length;return o?s.buffered.end(o-1):u.edge-this.currentTime}}]),r}()},"./src/controller/level-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return d});var y=P("./src/types/level.ts"),E=P("./src/events.ts"),_=P("./src/errors.ts"),C=P("./src/utils/codecs.ts"),m=P("./src/controller/level-helper.ts"),c=P("./src/controller/base-playlist-controller.ts"),r=P("./src/types/loader.ts");function n(){return n=Object.assign||function(a){for(var h=1;h0){l=B[0].bitrate,B.sort(function(J,U){return J.bitrate-U.bitrate}),this._levels=B;for(var R=0;Rthis.hls.config.fragLoadingMaxRetry&&(i=w.frag.level)):i=w.frag.level}break;case _.ErrorDetails.LEVEL_LOAD_ERROR:case _.ErrorDetails.LEVEL_LOAD_TIMEOUT:B&&(B.deliveryDirectives&&(l=!1),i=B.level),A=!0;break;case _.ErrorDetails.REMUX_ALLOC_ERROR:i=w.level,A=!0;break}i!==void 0&&this.recoverLevel(w,i,A,l)},g.recoverLevel=function(S,w,B,b){var A=S.details,l=this._levels[w];if(l.loadError++,B){var i=this.retryLoadingOrFail(S);if(i)S.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(b){var x=l.url.length;if(x>1&&l.loadError1){var b=(w.urlId+1)%B;this.warn("Switching to redundant URL-id "+b),this._levels.forEach(function(A){A.urlId=b}),this.level=S}},g.onFragLoaded=function(S,w){var B=w.frag;if(B!==void 0&&B.type===r.PlaylistLevelType.MAIN){var b=this._levels[B.level];b!==void 0&&(b.fragmentError=0,b.loadError=0)}},g.onLevelLoaded=function(S,w){var B,b=w.level,A=w.details,l=this._levels[b];if(!l){var i;this.warn("Invalid level index "+b),(i=w.deliveryDirectives)!==null&&i!==void 0&&i.skip&&(A.deltaUpdateFailed=!0);return}b===this.currentLevelIndex?(l.fragmentError===0&&(l.loadError=0,this.retryCount=0),this.playlistLoaded(b,w,l.details)):(B=w.deliveryDirectives)!==null&&B!==void 0&&B.skip&&(A.deltaUpdateFailed=!0)},g.onAudioTrackSwitched=function(S,w){var B=this.hls.levels[this.currentLevelIndex];if(!B)return;if(B.audioGroupIds){for(var b=-1,A=this.hls.audioTracks[w.id].groupId,l=0;l0){var b=B.urlId,A=B.url[b];if(S)try{A=S.addDirectives(A)}catch(l){this.warn("Could not construct new URL with HLS Delivery Directives: "+l)}this.log("Attempt loading level index "+w+(S?" at sn "+S.msn+" part "+S.part:"")+" with URL-id "+b+" "+A),this.clearTimer(),this.hls.trigger(E.Events.LEVEL_LOADING,{url:A,level:w,id:b,deliveryDirectives:S||null})}},g.removeLevel=function(S,w){var B=function(l,i){return i!==w},b=this._levels.filter(function(A,l){return l!==S?!0:A.url.length>1&&w!==void 0?(A.url=A.url.filter(B),A.audioGroupIds&&(A.audioGroupIds=A.audioGroupIds.filter(B)),A.textGroupIds&&(A.textGroupIds=A.textGroupIds.filter(B)),A.urlId=0,!0):!1}).map(function(A,l){var i=A.details;return i!=null&&i.fragments&&i.fragments.forEach(function(x){x.level=l}),A});this._levels=b,this.hls.trigger(E.Events.LEVELS_UPDATED,{levels:b})},s(h,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(S){var w,B=this._levels;if(B.length===0)return;if(this.currentLevelIndex===S&&(w=B[S])!==null&&w!==void 0&&w.details)return;if(S<0||S>=B.length){var b=S<0;if(this.hls.trigger(E.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.LEVEL_SWITCH_ERROR,level:S,fatal:b,reason:"invalid level idx"}),b)return;S=Math.min(S,B.length-1)}this.clearTimer();var A=this.currentLevelIndex,l=B[A],i=B[S];this.log("switching to level "+S+" from "+A),this.currentLevelIndex=S;var x=n({},i,{level:S,maxBitrate:i.maxBitrate,uri:i.uri,urlId:i.urlId});delete x._urlId,this.hls.trigger(E.Events.LEVEL_SWITCHING,x);var O=i.details;if(!O||O.live){var T=this.switchParams(i.uri,l==null?void 0:l.details);this.loadPlaylist(T)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(S){this.manualLevelIndex=S,this._startLevel===void 0&&(this._startLevel=S),S!==-1&&(this.level=S)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(S){this._firstLevel=S}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var S=this.hls.config.startLevel;return S!==void 0?S:this._firstLevel}else return this._startLevel},set:function(S){this._startLevel=S}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(S){this.level=S,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=S)}}]),h}(c.default)},"./src/controller/level-helper.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"addGroupId",function(){return _}),P.d(Y,"assignTrackIdsByGroup",function(){return C}),P.d(Y,"updatePTS",function(){return m}),P.d(Y,"updateFragPTSDTS",function(){return r}),P.d(Y,"mergeDetails",function(){return n}),P.d(Y,"mapPartIntersection",function(){return e}),P.d(Y,"mapFragmentIntersection",function(){return s}),P.d(Y,"adjustSliding",function(){return u}),P.d(Y,"addSliding",function(){return o}),P.d(Y,"computeReloadInterval",function(){return f}),P.d(Y,"getFragmentWithSN",function(){return d}),P.d(Y,"getPartWith",function(){return a});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/logger.ts");function _(h,g,p){switch(g){case"audio":h.audioGroupIds||(h.audioGroupIds=[]),h.audioGroupIds.push(p);break;case"text":h.textGroupIds||(h.textGroupIds=[]),h.textGroupIds.push(p);break}}function C(h){var g={};h.forEach(function(p){var S=p.groupId||"";p.id=g[S]=g[S]||0,g[S]++})}function m(h,g,p){var S=h[g],w=h[p];c(S,w)}function c(h,g){var p=g.startPTS;if(Object(y.isFiniteNumber)(p)){var S=0,w;g.sn>h.sn?(S=p-h.start,w=h):(S=h.start-p,w=g),w.duration!==S&&(w.duration=S)}else if(g.sn>h.sn){var B=h.cc===g.cc;B&&h.minEndPTS?g.start=h.start+(h.minEndPTS-h.start):g.start=h.start+h.duration}else g.start=Math.max(h.start-g.duration,0)}function r(h,g,p,S,w,B){var b=S-p;b<=0&&(E.logger.warn("Fragment should have a positive duration",g),S=p+g.duration,B=w+g.duration);var A=p,l=S,i=g.startPTS,x=g.endPTS;if(Object(y.isFiniteNumber)(i)){var O=Math.abs(i-p);Object(y.isFiniteNumber)(g.deltaPTS)?g.deltaPTS=Math.max(O,g.deltaPTS):g.deltaPTS=O,A=Math.max(p,i),p=Math.min(p,i),w=Math.min(w,g.startDTS),l=Math.min(S,x),S=Math.max(S,x),B=Math.max(B,g.endDTS)}g.duration=S-p;var T=p-g.start;g.appendedPTS=S,g.start=g.startPTS=p,g.maxStartPTS=A,g.startDTS=w,g.endPTS=S,g.minEndPTS=l,g.endDTS=B;var D=g.sn;if(!h||Dh.endSN)return 0;var R,k=D-h.startSN,H=h.fragments;for(H[k]=g,R=k;R>0;R--)c(H[R],H[R-1]);for(R=k;R=0;w--){var B=S[w].initSegment;if(B){p=B;break}}h.fragmentHint&&delete h.fragmentHint.endPTS;var b=0,A;if(s(h,g,function(R,k){R.relurl&&(b=R.cc-k.cc),Object(y.isFiniteNumber)(R.startPTS)&&Object(y.isFiniteNumber)(R.endPTS)&&(k.start=k.startPTS=R.startPTS,k.startDTS=R.startDTS,k.appendedPTS=R.appendedPTS,k.maxStartPTS=R.maxStartPTS,k.endPTS=R.endPTS,k.endDTS=R.endDTS,k.minEndPTS=R.minEndPTS,k.duration=R.endPTS-R.startPTS,k.duration&&(A=k),g.PTSKnown=g.alignedSliding=!0),k.elementaryStreams=R.elementaryStreams,k.loader=R.loader,k.stats=R.stats,k.urlId=R.urlId,R.initSegment&&(k.initSegment=R.initSegment,p=R.initSegment)}),p){var l=g.fragmentHint?g.fragments.concat(g.fragmentHint):g.fragments;l.forEach(function(R){var k;(!R.initSegment||R.initSegment.relurl===((k=p)===null||k===void 0?void 0:k.relurl))&&(R.initSegment=p)})}if(g.skippedSegments&&(g.deltaUpdateFailed=g.fragments.some(function(R){return!R}),g.deltaUpdateFailed)){E.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var i=g.skippedSegments;i--;)g.fragments.shift();g.startSN=g.fragments[0].sn,g.startCC=g.fragments[0].cc}var x=g.fragments;if(b){E.logger.warn("discontinuity sliding from playlist, take drift into account");for(var O=0;O=S.length)return;o(g,S[p].start)}function o(h,g){if(g){for(var p=h.fragments,S=h.skippedSegments;S0&&w0&&l===-1&&(this.log("Override startPosition with lastCurrentTime @"+i.toFixed(3)),l=i),this.state=E.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()}else this._forceStartLoad=!0,this.state=E.State.STOPPED},b.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},b.doTick=function(){switch(this.state){case E.State.IDLE:this.doTickIdle();break;case E.State.WAITING_LEVEL:{var l,i=this.levels,x=this.level,O=i==null||((l=i[x])===null||l===void 0)?void 0:l.details;if(O&&(!O.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(O))break;this.state=E.State.IDLE;break}break}case E.State.FRAG_LOADING_WAITING_RETRY:{var T,D=self.performance.now(),R=this.retryDate;(!R||D>=R||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=E.State.IDLE)}break;default:break}this.onTickEnd()},b.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},b.doTickIdle=function(){var l,i,x=this.hls,O=this.levelLastLoaded,T=this.levels,D=this.media,R=x.config,k=x.nextLoadLevel;if(O===null||!D&&(this.startFragRequested||!R.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[k])return;var H=T[k];this.level=x.nextLoadLevel=k;var J=H.details;if(!J||this.state===E.State.WAITING_LEVEL||J.live&&this.levelLastLoaded!==k){this.state=E.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:D,r.PlaylistLevelType.MAIN);if(U===null)return;var K=U.len,G=this.getMaxBufferLength(H.maxBitrate);if(K>=G)return;if(this._streamEnded(U,J)){var N={};this.altAudio&&(N.type="video"),this.hls.trigger(C.Events.BUFFER_EOS,N),this.state=E.State.ENDED;return}var Q=U.end,X=this.getNextFragment(Q,J);if(this.couldBacktrack&&!this.fragPrevious&&X&&X.sn!=="initSegment"){var te=X.sn-J.startSN;te>1&&(X=J.fragments[te-1],this.fragmentTracker.removeFragment(X))}if(X&&this.fragmentTracker.getState(X)===c.FragmentState.OK&&this.nextLoadPosition>Q){var oe=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(D,oe,r.PlaylistLevelType.MAIN),X=this.getNextFragment(this.nextLoadPosition,J)}if(!X)return;X.initSegment&&!X.initSegment.data&&!this.bitrateTest&&(X=X.initSegment),((l=X.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((i=X.decryptdata)!==null&&i!==void 0&&i.key)?this.loadKey(X,J):this.loadFragment(X,J,Q)},b.loadFragment=function(l,i,x){var O,T=this.fragmentTracker.getState(l);if(this.fragCurrent=l,T===c.FragmentState.BACKTRACKED){var D=this.fragmentTracker.getBacktrackData(l);if(D){this._handleFragmentLoadProgress(D),this._handleFragmentLoadComplete(D);return}else T=c.FragmentState.NOT_LOADED}T===c.FragmentState.NOT_LOADED||T===c.FragmentState.PARTIAL?l.sn==="initSegment"?this._loadInitSegment(l):this.bitrateTest?(l.bitrateTest=!0,this.log("Fragment "+l.sn+" of level "+l.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(l)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,l,i,x)):T===c.FragmentState.APPENDING?this.reduceMaxBufferLength(l.duration)&&this.fragmentTracker.removeFragment(l):((O=this.media)===null||O===void 0?void 0:O.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},b.getAppendedFrag=function(l){var i=this.fragmentTracker.getAppendedFrag(l,r.PlaylistLevelType.MAIN);return i&&"fragment"in i?i.fragment:i},b.getBufferedFrag=function(l){return this.fragmentTracker.getBufferedFrag(l,r.PlaylistLevelType.MAIN)},b.followingBufferedFrag=function(l){return l?this.getBufferedFrag(l.end+.5):null},b.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},b.nextLevelSwitch=function(){var l=this.levels,i=this.media;if(i!=null&&i.readyState){var x,O=this.getAppendedFrag(i.currentTime);if(O&&O.start>1&&this.flushMainBuffer(0,O.start-1),!i.paused&&l){var T=this.hls.nextLoadLevel,D=l[T],R=this.fragLastKbps;R&&this.fragCurrent?x=this.fragCurrent.duration*D.maxBitrate/(1e3*R)+1:x=0}else x=0;var k=this.getBufferedFrag(i.currentTime+x);if(k){var H=this.followingBufferedFrag(k);if(H){this.abortCurrentFrag();var J=H.maxStartPTS?H.maxStartPTS:H.start,U=H.duration,K=Math.max(k.end,J+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(K,Number.POSITIVE_INFINITY)}}}},b.abortCurrentFrag=function(){var l=this.fragCurrent;this.fragCurrent=null,l!=null&&l.loader&&l.loader.abort(),this.state===E.State.KEY_LOADING&&(this.state=E.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},b.flushMainBuffer=function(l,i){w.prototype.flushMainBuffer.call(this,l,i,this.altAudio?"video":null)},b.onMediaAttached=function(l,i){w.prototype.onMediaAttached.call(this,l,i);var x=i.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),x.addEventListener("playing",this.onvplaying),x.addEventListener("seeked",this.onvseeked),this.gapController=new u.default(this.config,x,this.fragmentTracker,this.hls)},b.onMediaDetaching=function(){var l=this.media;l&&(l.removeEventListener("playing",this.onvplaying),l.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},b.onMediaPlaying=function(){this.tick()},b.onMediaSeeked=function(){var l=this.media,i=l?l.currentTime:null;Object(y.isFiniteNumber)(i)&&this.log("Media seeked to "+i.toFixed(3)),this.tick()},b.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(C.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},b.onManifestParsed=function(l,i){var x=!1,O=!1,T;i.levels.forEach(function(D){T=D.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(x=!0),T.indexOf("mp4a.40.5")!==-1&&(O=!0))}),this.audioCodecSwitch=x&&O&&!Object(_.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=i.levels,this.startFragRequested=!1},b.onLevelLoading=function(l,i){var x=this.levels;if(!x||this.state!==E.State.IDLE)return;var O=x[i.level];(!O.details||O.details.live&&this.levelLastLoaded!==i.level||this.waitForCdnTuneIn(O.details))&&(this.state=E.State.WAITING_LEVEL)},b.onLevelLoaded=function(l,i){var x,O=this.levels,T=i.level,D=i.details,R=D.totalduration;if(!O){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+D.startSN+","+D.endSN+"], cc ["+D.startCC+", "+D.endCC+"] duration:"+R);var k=this.fragCurrent;k&&(this.state===E.State.FRAG_LOADING||this.state===E.State.FRAG_LOADING_WAITING_RETRY)&&(k.level!==i.level&&k.loader&&(this.state=E.State.IDLE,k.loader.abort()));var H=O[T],J=0;if(D.live||(x=H.details)!==null&&x!==void 0&&x.live){if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed)return;J=this.alignPlaylists(D,H.details)}if(H.details=D,this.levelLastLoaded=T,this.hls.trigger(C.Events.LEVEL_UPDATED,{details:D,level:T}),this.state===E.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(D))return;this.state=E.State.IDLE}this.startFragRequested?D.live&&this.synchronizeToLiveEdge(D):this.setStartPosition(D,J),this.tick()},b._handleFragmentLoadProgress=function(l){var i,x=l.frag,O=l.part,T=l.payload,D=this.levels;if(!D){this.warn("Levels were reset while fragment load was in progress. Fragment "+x.sn+" of level "+x.level+" will not be buffered");return}var R=D[x.level],k=R.details;if(!k){this.warn("Dropping fragment "+x.sn+" of level "+x.level+" after level details were reset");return}var H=R.videoCodec,J=k.PTSKnown||!k.live,U=(i=x.initSegment)===null||i===void 0?void 0:i.data,K=this._getAudioCodec(R),G=this.transmuxer=this.transmuxer||new e.default(this.hls,r.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),N=O?O.index:-1,Q=N!==-1,X=new s.ChunkMetadata(x.level,x.sn,x.stats.chunkCount,T.byteLength,N,Q),te=this.initPTS[x.cc];G.push(T,U,K,H,x,O,k.totalduration,J,X,te)},b.onAudioTrackSwitching=function(l,i){var x=this.altAudio,O=!!i.url,T=i.id;if(!O){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var D=this.fragCurrent;D!=null&&D.loader&&(this.log("Switching to main audio track, cancel main fragment load"),D.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var R=this.hls;x&&R.trigger(C.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),R.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:T})}},b.onAudioTrackSwitched=function(l,i){var x=i.id,O=!!this.hls.audioTracks[x].url;if(O){var T=this.videoBuffer;T&&this.mediaBuffer!==T&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=T)}this.altAudio=O,this.tick()},b.onBufferCreated=function(l,i){var x=i.tracks,O,T,D=!1;for(var R in x){var k=x[R];if(k.id==="main"){if(T=R,O=k,R==="video"){var H=x[R];H&&(this.videoBuffer=H.buffer)}}else D=!0}D&&O?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=O.buffer):this.mediaBuffer=this.media},b.onFragBuffered=function(l,i){var x=i.frag,O=i.part;if(x&&x.type!==r.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(x)){this.warn("Fragment "+x.sn+(O?" p: "+O.index:"")+" of level "+x.level+" finished buffering, but was aborted. state: "+this.state),this.state===E.State.PARSED&&(this.state=E.State.IDLE);return}var T=O?O.stats:x.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),x.sn!=="initSegment"&&(this.fragPrevious=x),this.fragBufferedComplete(x,O)},b.onError=function(l,i){switch(i.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(r.PlaylistLevelType.MAIN,i);break;case o.ErrorDetails.LEVEL_LOAD_ERROR:case o.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==E.State.ERROR&&(i.fatal?(this.warn(""+i.details),this.state=E.State.ERROR):!i.levelRetry&&this.state===E.State.WAITING_LEVEL&&(this.state=E.State.IDLE));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(i.parent==="main"&&(this.state===E.State.PARSING||this.state===E.State.PARSED)){var x=!0,O=this.getFwdBufferInfo(this.media,r.PlaylistLevelType.MAIN);O&&O.len>.5&&(x=!this.reduceMaxBufferLength(O.len)),x&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},b.checkBuffer=function(){var l=this.media,i=this.gapController;if(!l||!i||!l.readyState)return;var x=m.BufferHelper.getBuffered(l);!this.loadedmetadata&&x.length?(this.loadedmetadata=!0,this.seekToStartPos()):i.poll(this.lastCurrentTime),this.lastCurrentTime=l.currentTime},b.onFragLoadEmergencyAborted=function(){this.state=E.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},b.onBufferFlushed=function(l,i){var x=i.type;if(x!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var O=(x===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(O,x,r.PlaylistLevelType.MAIN)}},b.onLevelsUpdated=function(l,i){this.levels=i.levels},b.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},b.seekToStartPos=function(){var l=this.media,i=l.currentTime,x=this.startPosition;if(x>=0&&i0&&(D1&&l.seeking===!1){var x=l.currentTime;if(m.BufferHelper.isBuffered(l,x)?i=this.getAppendedFrag(x):m.BufferHelper.isBuffered(l,x+.1)&&(i=this.getAppendedFrag(x+.1)),i){var O=this.fragPlaying,T=i.level;(!O||i.sn!==O.sn||O.level!==T||i.urlId!==O.urlId)&&(this.hls.trigger(C.Events.FRAG_CHANGED,{frag:i}),(!O||O.level!==T)&&this.hls.trigger(C.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=i)}}},a(B,[{key:"nextLevel",get:function(){var l=this.nextBufferedFrag;return l?l.level:-1}},{key:"currentLevel",get:function(){var l=this.media;if(l){var i=this.getAppendedFrag(l.currentTime);if(i)return i.level}return-1}},{key:"nextBufferedFrag",get:function(){var l=this.media;if(l){var i=this.getAppendedFrag(l.currentTime);return this.followingBufferedFrag(i)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),B}(E.default)},"./src/controller/subtitle-stream-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"SubtitleStreamController",function(){return h});var y=P("./src/events.ts"),E=P("./src/utils/logger.ts"),_=P("./src/utils/buffer-helper.ts"),C=P("./src/controller/fragment-finders.ts"),m=P("./src/utils/discontinuities.ts"),c=P("./src/controller/level-helper.ts"),r=P("./src/controller/fragment-tracker.ts"),n=P("./src/controller/base-stream-controller.ts"),e=P("./src/types/loader.ts"),s=P("./src/types/level.ts");function u(g,p){for(var S=0;S=i[T].start&&O<=i[T].end){x=i[T];break}var D=A.start+A.duration;x?x.end=D:(x={start:O,end:D},i.push(x)),this.fragmentTracker.fragBuffered(A)},S.onBufferFlushing=function(B,b){var A=b.startOffset,l=b.endOffset;if(A===0&&l!==Number.POSITIVE_INFINITY){var i=this.currentTrackId,x=this.levels;if(!x.length||!x[i]||!x[i].details)return;var O=x[i].details,T=O.targetduration,D=l-T;if(D<=0)return;b.endOffsetSubtitles=Math.max(0,D),this.tracksBuffered.forEach(function(R){for(var k=0;k=O.length||i!==x||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,l.live||(A=T.details)!==null&&A!==void 0&&A.live){var D=this.mainDetails;if(l.deltaUpdateFailed||!D)return;var R=D.fragments[0];if(!T.details)l.hasProgramDateTime&&D.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(l,D):R&&Object(c.addSliding)(l,R.start);else{var k=this.alignPlaylists(l,T.details);k===0&&R&&Object(c.addSliding)(l,R.start)}}if(T.details=l,this.levelLastLoaded=i,this.tick(),l.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var H=Object(C.findFragmentByPTS)(null,l.fragments,this.media.currentTime,0);H||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},S._handleFragmentLoadComplete=function(B){var b=B.frag,A=B.payload,l=b.decryptdata,i=this.hls;if(this.fragContextChanged(b))return;if(A&&A.byteLength>0&&l&&l.key&&l.iv&&l.method==="AES-128"){var x=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(A),l.key.buffer,l.iv.buffer).then(function(O){var T=performance.now();i.trigger(y.Events.FRAG_DECRYPTED,{frag:b,payload:O,stats:{tstart:x,tdecrypt:T}})})}},S.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var B,b=this.currentTrackId,A=this.levels;if(!A.length||!A[b]||!A[b].details)return;var l=A[b].details,i=l.targetduration,x=this.config,O=this.media,T=_.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,O.currentTime-i,x.maxBufferHole),D=T.end,R=T.len,k=this.getMaxBufferLength()+i;if(R>k)return;console.assert(l,"Subtitle track details are defined on idle subtitle stream controller tick");var H=l.fragments,J=H.length,U=l.edge,K,G=this.fragPrevious;if(D-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)},f.pollTrackChange=function(a){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,a)},f.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 a=s(this.media.textTracks);a.forEach(function(h){Object(E.clearCurrentCues)(h)}),this.subtitleTrack=-1,this.media=null},f.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},f.onManifestParsed=function(a,h){this.tracks=h.subtitleTracks},f.onSubtitleTrackLoaded=function(a,h){var g=h.id,p=h.details,S=this.trackId,w=this.tracksInGroup[S];if(!w){this.warn("Invalid subtitle track id "+g);return}var B=w.details;w.details=h.details,this.log("subtitle track "+g+" loaded ["+p.startSN+"-"+p.endSN+"]"),g===this.trackId&&(this.retryCount=0,this.playlistLoaded(g,h,B))},f.onLevelLoading=function(a,h){this.switchLevel(h.level)},f.onLevelSwitching=function(a,h){this.switchLevel(h.level)},f.switchLevel=function(a){var h=this.hls.levels[a];if(!(h!=null&&h.textGroupIds))return;var g=h.textGroupIds[h.urlId];if(this.groupId!==g){var p=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,S=this.tracks.filter(function(b){return!g||b.groupId===g});this.tracksInGroup=S;var w=this.findTrackId(p==null?void 0:p.name)||this.findTrackId();this.groupId=g;var B={subtitleTracks:S};this.log("Updating subtitle tracks, "+S.length+' track(s) found in "'+g+'" group-id'),this.hls.trigger(y.Events.SUBTITLE_TRACKS_UPDATED,B),w!==-1&&this.setSubtitleTrack(w,p)}},f.findTrackId=function(a){for(var h=this.tracksInGroup,g=0;g=p.length)return;this.clearTimer();var S=p[a];if(this.log("Switching to subtitle track "+a),this.trackId=a,S){var w=S.id,B=S.groupId,b=B===void 0?"":B,A=S.name,l=S.type,i=S.url;this.hls.trigger(y.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:b,name:A,type:l,url:i});var x=this.switchParams(S.url,h==null?void 0:h.details);this.loadPlaylist(x)}else this.hls.trigger(y.Events.SUBTITLE_TRACK_SWITCH,{id:a})},f.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var a=-1,h=s(this.media.textTracks),g=0;g=0&&(l[0]=Math.min(l[0],p),l[1]=Math.max(l[1],S),b=!0,i/(S-p)>.5))return}if(b||B.push([p,S]),this.config.renderTextTracksNatively){var x=this.captionsTracks[g];this.Cues.newCue(x,p,S,w)}else{var O=this.Cues.newCue(null,p,S,w);this.hls.trigger(E.Events.CUES_PARSED,{type:"captions",cues:O,track:g})}},a.onInitPtsFound=function(g,p){var S=this,w=p.frag,B=p.id,b=p.initPTS,A=p.timescale,l=this.unparsedVttFrags;B==="main"&&(this.initPTS[w.cc]=b,this.timescale[w.cc]=A),l.length&&(this.unparsedVttFrags=[],l.forEach(function(i){S.onFragLoaded(E.Events.FRAG_LOADED,i)}))},a.getExistingTrack=function(g){var p=this.media;if(p)for(var S=0;S>>8^A&255^99,r[w]=A,n[A]=w;var l=S[w],i=S[l],x=S[i],O=S[A]*257^A*16843008;s[w]=O<<24|O>>>8,u[w]=O<<16|O>>>16,o[w]=O<<8|O>>>24,f[w]=O,O=x*16843009^i*65537^l*257^w*16843008,a[A]=O<<24|O>>>8,h[A]=O<<16|O>>>16,g[A]=O<<8|O>>>24,p[A]=O,w?(w=l^S[S[S[x^l]]],B^=S[S[B]]):w=B=1}},m.expandKey=function(r){for(var n=this.uint8ArrayToUint32Array_(r),e=!0,s=0;s>>6)+1;var O=(g[p+2]&60)>>>2;if(O>x.length-1){h.trigger(_.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+O});return}return b=(g[p+2]&1)<<2,b|=(g[p+3]&192)>>>6,y.logger.log("manifest codec:"+S+", ADTS type:"+w+", samplingIndex:"+O),/firefox/i.test(l)?O>=6?(w=5,A=new Array(4),B=O-3):(w=2,A=new Array(2),B=O):l.indexOf("android")!==-1?(w=2,A=new Array(2),B=O):(w=5,A=new Array(4),S&&(S.indexOf("mp4a.40.29")!==-1||S.indexOf("mp4a.40.5")!==-1)||!S&&O>=6?B=O-3:((S&&S.indexOf("mp4a.40.2")!==-1&&(O>=6&&b===1||/vivaldi/i.test(l))||!S&&b===1)&&(w=2,A=new Array(2)),B=O)),A[0]=w<<3,A[0]|=(O&14)>>1,A[1]|=(O&1)<<7,A[1]|=b<<3,w===5&&(A[1]|=(B&14)>>1,A[2]=(B&1)<<7,A[2]|=2<<2,A[3]=0),{config:A,samplerate:x[O],channelCount:b,codec:"mp4a.40."+w,manifestCodec:i}}function m(h,g){return h[g]===255&&(h[g+1]&246)===240}function c(h,g){return h[g+1]&1?7:9}function r(h,g){return(h[g+3]&3)<<11|h[g+4]<<3|(h[g+5]&224)>>>5}function n(h,g){return g+5=h.length)return!1;var S=r(h,g);if(S<=p)return!1;var w=g+S;return w===h.length||e(h,w)}return!1}function o(h,g,p,S,w){if(!h.samplerate){var B=C(g,p,S,w);if(!B)return;h.config=B.config,h.samplerate=B.samplerate,h.channelCount=B.channelCount,h.codec=B.codec,h.manifestCodec=B.manifestCodec,y.logger.log("parsed codec:"+h.codec+", rate:"+B.samplerate+", channels:"+B.channelCount)}}function f(h){return 1024*9e4/h}function d(h,g,p,S,w){var B=c(h,g),b=r(h,g);if(b-=B,b>0){var A=p+S*w;return{headerLength:B,frameLength:b,stamp:A}}}function a(h,g,p,S,w){var B=f(h.samplerate),b=d(g,p,S,w,B);if(b){var A=b.frameLength,l=b.headerLength,i=b.stamp,x=l+A,O=Math.max(0,p+x-g.length),T;O?(T=new Uint8Array(x-l),T.set(g.subarray(p+l,g.length),0)):T=g.subarray(p+l,p+x);var D={unit:T,pts:i};return O||h.samples.push(D),{sample:D,length:x,missing:O}}}},"./src/demux/base-audio-demuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"initPTSFn",function(){return r});var y=P("./src/polyfills/number.ts"),E=P("./src/demux/id3.ts"),_=P("./src/demux/dummy-demuxed-track.ts"),C=P("./src/utils/mp4-tools.ts"),m=P("./src/utils/typed-array.ts"),c=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var e=n.prototype;return e.resetInitSegment=function(u,o,f){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(u,o){return!1},e.appendFrame=function(u,o,f){},e.demux=function(u,o){this.cachedData&&(u=Object(C.appendUint8Array)(this.cachedData,u),this.cachedData=null);var f=E.getID3Data(u,0),d=f?f.length:0,a,h,g=this._audioTrack,p=this._id3Track,S=f?E.getTimeStamp(f):void 0,w=u.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=r(S,o)),f&&f.length>0&&p.samples.push({pts:this.initPTS,dts:this.initPTS,data:f}),h=this.initPTS;dc?(this.word<<=c,this.bitsAvailable-=c):(c-=this.bitsAvailable,r=c>>3,c-=r>>3,this.bytesAvailable-=r,this.loadWord(),this.word<<=c,this.bitsAvailable-=c)},C.readBits=function(c){var r=Math.min(this.bitsAvailable,c),n=this.word>>>32-r;return c>32&&y.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=r,this.bitsAvailable>0?this.word<<=r:this.bytesAvailable>0&&this.loadWord(),r=c-r,r>0&&this.bitsAvailable?n<>>c)!==0)return this.word<<=c,this.bitsAvailable-=c,c;return this.loadWord(),c+this.skipLZ()},C.skipUEG=function(){this.skipBits(1+this.skipLZ())},C.skipEG=function(){this.skipBits(1+this.skipLZ())},C.readUEG=function(){var c=this.skipLZ();return this.readBits(c+1)-1},C.readEG=function(){var c=this.readUEG();return 1&c?1+c>>>1:-1*(c>>>1)},C.readBoolean=function(){return this.readBits(1)===1},C.readUByte=function(){return this.readBits(8)},C.readUShort=function(){return this.readBits(16)},C.readUInt=function(){return this.readBits(32)},C.skipScalingList=function(c){for(var r=8,n=8,e,s=0;s0?w.subarray(b,b+A):void 0},C=function(w,B){var b=0;return b=(w[B]&127)<<21,b|=(w[B+1]&127)<<14,b|=(w[B+2]&127)<<7,b|=w[B+3]&127,b},m=function(w,B){return y(w,B)&&C(w,B+6)+10<=w.length-B},c=function(w){for(var B=e(w),b=0;b>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:D+=String.fromCharCode(x);break;case 12:case 13:O=w[R++],D+=String.fromCharCode((x&31)<<6|O&63);break;case 14:O=w[R++],T=w[R++],D+=String.fromCharCode((x&15)<<12|(O&63)<<6|(T&63)<<0);break;default:}}return D},h={decodeTextFrame:o},g;function p(){return!g&&typeof self.TextDecoder!="undefined"&&(g=new self.TextDecoder("utf-8")),g}},"./src/demux/mp3demuxer.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/demux/base-audio-demuxer.ts"),E=P("./src/demux/id3.ts"),_=P("./src/utils/logger.ts"),C=P("./src/demux/mpegaudio.ts");function m(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,c(n,e)}function c(n,e){return c=Object.setPrototypeOf||function(u,o){return u.__proto__=o,u},c(n,e)}var r=function(n){m(e,n);function e(){return n.apply(this,arguments)||this}var s=e.prototype;return s.resetInitSegment=function(o,f,d){n.prototype.resetInitSegment.call(this,o,f,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:o,duration:d,inputTimeScale:9e4,dropped:0}},e.probe=function(o){if(!o)return!1;for(var f=E.getID3Data(o,0)||[],d=f.length,a=o.length;d0},m.demux=function(r){var n=r,e=Object(E.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(y.appendUint8Array)(this.remainderData,r));var s=Object(y.segmentValidRange)(n);this.remainderData=s.remainder,e.samples=s.valid||new Uint8Array}else e.samples=n;return{audioTrack:Object(E.dummyTrack)(),avcTrack:e,id3Track:Object(E.dummyTrack)(),textTrack:Object(E.dummyTrack)()}},m.flush=function(){var r=Object(E.dummyTrack)();return r.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(E.dummyTrack)(),avcTrack:r,id3Track:Object(E.dummyTrack)(),textTrack:Object(E.dummyTrack)()}},m.demuxSampleAes=function(r,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},C}();_.minProbeByteLength=1024,Y.default=_},"./src/demux/mpegaudio.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"appendFrame",function(){return c}),P.d(Y,"parseHeader",function(){return r}),P.d(Y,"isHeaderPattern",function(){return n}),P.d(Y,"isHeader",function(){return e}),P.d(Y,"canParse",function(){return s}),P.d(Y,"probe",function(){return u});var y=null,E=[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],_=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],C=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],m=[0,1,1,4];function c(o,f,d,a,h){if(d+24>f.length)return;var g=r(f,d);if(g&&d+g.frameLength<=f.length){var p=g.samplesPerFrame*9e4/g.sampleRate,S=a+h*p,w={unit:f.subarray(d,d+g.frameLength),pts:S,dts:S};return o.config=[],o.channelCount=g.channelCount,o.samplerate=g.sampleRate,o.samples.push(w),{sample:w,length:g.frameLength,missing:0}}}function r(o,f){var d=o[f+1]>>3&3,a=o[f+1]>>1&3,h=o[f+2]>>4&15,g=o[f+2]>>2&3;if(d!==1&&h!==0&&h!==15&&g!==3){var p=o[f+2]>>1&1,S=o[f+3]>>6,w=d===3?3-a:a===3?3:4,B=E[w*14+h-1]*1e3,b=d===3?0:d===2?1:2,A=_[b*3+g],l=S===3?1:2,i=C[d][a],x=m[a],O=i*8*x,T=Math.floor(i*B/A+p)*x;if(y===null){var D=navigator.userAgent||"",R=D.match(/Chrome\/(\d+)/i);y=R?parseInt(R[1]):0}var k=!!y&&y<=87;return k&&a===2&&B>=224e3&&S===0&&(o[f+3]=o[f+3]|128),{sampleRate:A,channelCount:l,frameLength:T,samplesPerFrame:O}}}function n(o,f){return o[f]===255&&(o[f+1]&224)===224&&(o[f+1]&6)!==0}function e(o,f){return f+1=r.length){e();return}if(r[n].unit.length<32)continue;var s=this.decrypter.isSync();if(this.decryptAacSample(r,n,e,s),!s)return}},m.getAvcEncryptedData=function(r){for(var n=Math.floor((r.length-48)/160)*16+16,e=new Int8Array(n),s=0,u=32;u<=r.length-16;u+=160,s+=16)e.set(r.subarray(u,u+16),s);return e},m.getAvcDecryptedUnit=function(r,n){for(var e=new Uint8Array(n),s=0,u=32;u<=r.length-16;u+=160,s+=16)r.set(e.subarray(s,s+16),u);return r},m.decryptAvcSample=function(r,n,e,s,u,o){var f=Object(E.discardEPB)(u.data),d=this.getAvcEncryptedData(f),a=this;this.decryptBuffer(d.buffer,function(h){u.data=a.getAvcDecryptedUnit(f,h),o||a.decryptAvcSamples(r,n,e+1,s)})},m.decryptAvcSamples=function(r,n,e,s){if(r instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=r.length){s();return}for(var u=r[n].units;!(e>=u.length);e++){var o=u[e];if(o.data.length<=48||o.type!==1&&o.type!==5)continue;var f=this.decrypter.isSync();if(this.decryptAvcSample(r,n,e,s,o,f),!f)return}}},C}();Y.default=_},"./src/demux/transmuxer-interface.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u});var y=P("./node_modules/webworkify-webpack/index.js"),E=P.n(y),_=P("./src/events.ts"),C=P("./src/demux/transmuxer.ts"),m=P("./src/utils/logger.ts"),c=P("./src/errors.ts"),r=P("./src/utils/mediasource-helper.ts"),n=P("./node_modules/eventemitter3/index.js"),e=P.n(n),s=Object(r.getMediaSource)()||{isTypeSupported:function(){return!1}},u=function(){function o(d,a,h,g){var p=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=d,this.id=a,this.onTransmuxComplete=h,this.onFlush=g;var S=d.config,w=function(i,x){x=x||{},x.frag=p.frag,x.id=p.id,d.trigger(i,x)};this.observer=new n.EventEmitter,this.observer.on(_.Events.FRAG_DECRYPTED,w),this.observer.on(_.Events.ERROR,w);var B={mp4:s.isTypeSupported("video/mp4"),mpeg:s.isTypeSupported("audio/mpeg"),mp3:s.isTypeSupported('audio/mp4; codecs="mp3"')},b=navigator.vendor;if(S.enableWorker&&typeof Worker!="undefined"){m.logger.log("demuxing in webworker");var A;try{A=this.worker=y("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),A.addEventListener("message",this.onwmsg),A.onerror=function(l){d.trigger(_.Events.ERROR,{type:c.ErrorTypes.OTHER_ERROR,details:c.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(l.message+" ("+l.filename+":"+l.lineno+")")})},A.postMessage({cmd:"init",typeSupported:B,vendor:b,id:a,config:JSON.stringify(S)})}catch(l){m.logger.warn("Error in worker:",l),m.logger.error("Error while initializing DemuxerWorker, fallback to inline"),A&&self.URL.revokeObjectURL(A.objectURL),this.transmuxer=new C.default(this.observer,B,S,b,a),this.worker=null}}else this.transmuxer=new C.default(this.observer,B,S,b,a)}var f=o.prototype;return f.destroy=function(){var a=this.worker;if(a)a.removeEventListener("message",this.onwmsg),a.terminate(),this.worker=null;else{var h=this.transmuxer;h&&(h.destroy(),this.transmuxer=null)}var g=this.observer;g&&g.removeAllListeners(),this.observer=null},f.push=function(a,h,g,p,S,w,B,b,A,l){var i=this;A.transmuxing.start=self.performance.now();var x=this.transmuxer,O=this.worker,T=w?w.start:S.start,D=S.decryptdata,R=this.frag,k=!(R&&S.cc===R.cc),H=!(R&&A.level===R.level),J=R?A.sn-R.sn:-1,U=this.part?A.part-this.part.index:1,K=!H&&(J===1||J===0&&U===1),G=self.performance.now();(H||J||S.stats.parsing.start===0)&&(S.stats.parsing.start=G),w&&(U||!K)&&(w.stats.parsing.start=G);var N=new C.TransmuxState(k,K,b,H,T);if(!K||k){m.logger.log("[transmuxer-interface, "+S.type+"]: Starting new transmux session for sn: "+A.sn+" p: "+A.part+" level: "+A.level+" id: "+A.id+` discontinuity: `+k+` trackSwitch: `+H+` contiguous: `+K+` accurateTimeOffset: `+b+` timeOffset: `+T);var Q=new C.TransmuxConfig(g,p,h,B,l);this.configureTransmuxer(Q)}if(this.frag=S,this.part=w,O)O.postMessage({cmd:"demux",data:a,decryptdata:D,chunkMeta:A,state:N},a instanceof ArrayBuffer?[a]:[]);else if(x){var X=x.push(a,D,A,N);Object(C.isPromise)(X)?X.then(function(te){i.handleTransmuxComplete(te)}):this.handleTransmuxComplete(X)}},f.flush=function(a){var h=this;a.transmuxing.start=self.performance.now();var g=this.transmuxer,p=this.worker;if(p)p.postMessage({cmd:"flush",chunkMeta:a});else if(g){var S=g.flush(a);Object(C.isPromise)(S)?S.then(function(w){h.handleFlushResult(w,a)}):this.handleFlushResult(S,a)}},f.handleFlushResult=function(a,h){var g=this;a.forEach(function(p){g.handleTransmuxComplete(p)}),this.onFlush(h)},f.onWorkerMessage=function(a){var h=a.data,g=this.hls;switch(h.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(h.data);break}case"flush":{this.onFlush(h.data);break}default:{h.data=h.data||{},h.data.frag=this.frag,h.data.id=this.id,g.trigger(h.event,h.data);break}}},f.configureTransmuxer=function(a){var h=this.worker,g=this.transmuxer;h?h.postMessage({cmd:"configure",config:a}):g&&g.configure(a)},f.handleTransmuxComplete=function(a){a.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(a)},o}()},"./src/demux/transmuxer-worker.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return c});var y=P("./src/demux/transmuxer.ts"),E=P("./src/events.ts"),_=P("./src/utils/logger.ts"),C=P("./node_modules/eventemitter3/index.js"),m=P.n(C);function c(u){var o=new C.EventEmitter,f=function(a,h){u.postMessage({event:a,data:h})};o.on(E.Events.FRAG_DECRYPTED,f),o.on(E.Events.ERROR,f),u.addEventListener("message",function(d){var a=d.data;switch(a.cmd){case"init":{var h=JSON.parse(a.config);u.transmuxer=new y.default(o,a.typeSupported,h,a.vendor,a.id),Object(_.enableLogs)(h.debug),f("init",null);break}case"configure":{u.transmuxer.configure(a.config);break}case"demux":{var g=u.transmuxer.push(a.data,a.decryptdata,a.chunkMeta,a.state);Object(y.isPromise)(g)?g.then(function(w){r(u,w)}):r(u,g);break}case"flush":{var p=a.chunkMeta,S=u.transmuxer.flush(p);Object(y.isPromise)(S)?S.then(function(w){e(u,w,p)}):e(u,S,p);break}default:break}})}function r(u,o){if(s(o.remuxResult))return;var f=[],d=o.remuxResult,a=d.audio,h=d.video;a&&n(f,a),h&&n(f,h),u.postMessage({event:"transmuxComplete",data:o},f)}function n(u,o){o.data1&&u.push(o.data1.buffer),o.data2&&u.push(o.data2.buffer)}function e(u,o,f){o.forEach(function(d){r(u,d)}),u.postMessage({event:"flush",data:f})}function s(u){return!u.audio&&!u.video&&!u.text&&!u.id3&&!u.initSegment}},"./src/demux/transmuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return h}),P.d(Y,"isPromise",function(){return S}),P.d(Y,"TransmuxConfig",function(){return w}),P.d(Y,"TransmuxState",function(){return B});var y=P("./src/events.ts"),E=P("./src/errors.ts"),_=P("./src/crypt/decrypter.ts"),C=P("./src/demux/aacdemuxer.ts"),m=P("./src/demux/mp4demuxer.ts"),c=P("./src/demux/tsdemuxer.ts"),r=P("./src/demux/mp3demuxer.ts"),n=P("./src/remux/mp4-remuxer.ts"),e=P("./src/remux/passthrough-remuxer.ts"),s=P("./src/demux/chunk-cache.ts"),u=P("./src/utils/mp4-tools.ts"),o=P("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(b){o.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var d=[{demux:c.default,remux:n.default},{demux:m.default,remux:e.default},{demux:C.default,remux:n.default},{demux:r.default,remux:n.default}],a=1024;d.forEach(function(b){var A=b.demux;a=Math.max(a,A.minProbeByteLength)});var h=function(){function b(l,i,x,O,T){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 s.default,this.observer=l,this.typeSupported=i,this.config=x,this.vendor=O,this.id=T}var A=b.prototype;return A.configure=function(i){this.transmuxConfig=i,this.decrypter&&this.decrypter.reset()},A.push=function(i,x,O,T){var D=this,R=O.transmuxing;R.executeStart=f();var k=new Uint8Array(i),H=this.cache,J=this.config,U=this.currentTransmuxState,K=this.transmuxConfig;T&&(this.currentTransmuxState=T);var G=g(k,x);if(G&&G.method==="AES-128"){var N=this.getDecrypter();if(J.enableSoftwareAES){var Q=N.softwareDecrypt(k,G.key.buffer,G.iv.buffer);if(!Q)return R.executeEnd=f(),p(O);k=new Uint8Array(Q)}else return this.decryptionPromise=N.webCryptoDecrypt(k,G.key.buffer,G.iv.buffer).then(function(Ie){var Fe=D.push(Ie,null,O);return D.decryptionPromise=null,Fe}),this.decryptionPromise}var X=T||U,te=X.contiguous,oe=X.discontinuity,me=X.trackSwitch,se=X.accurateTimeOffset,_e=X.timeOffset,Ae=K.audioCodec,Ee=K.videoCodec,pe=K.defaultInitPts,he=K.duration,ie=K.initSegmentData;if((oe||me)&&this.resetInitSegment(ie,Ae,Ee,he),oe&&this.resetInitialTimestamp(pe),te||this.resetContiguity(),this.needsProbing(k,oe,me)){if(H.dataLength){var fe=H.flush();k=Object(u.appendUint8Array)(fe,k)}this.configureTransmuxer(k,K)}var ge=this.transmux(k,G,_e,se,O),ce=this.currentTransmuxState;return ce.contiguous=!0,ce.discontinuity=!1,ce.trackSwitch=!1,R.executeEnd=f(),ge},A.flush=function(i){var x=this,O=i.transmuxing;O.executeStart=f();var T=this.decrypter,D=this.cache,R=this.currentTransmuxState,k=this.decryptionPromise;if(k)return k.then(function(){return x.flush(i)});var H=[],J=R.timeOffset;if(T){var U=T.flush();U&&H.push(this.push(U,null,i))}var K=D.dataLength;D.reset();var G=this.demuxer,N=this.remuxer;if(!G||!N)return K>=a&&this.observer.emit(y.Events.ERROR,y.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),O.executeEnd=f(),[p(i)];var Q=G.flush(J);return S(Q)?Q.then(function(X){return x.flushRemux(H,X,i),H}):(this.flushRemux(H,Q,i),H)},A.flushRemux=function(i,x,O){var T=x.audioTrack,D=x.avcTrack,R=x.id3Track,k=x.textTrack,H=this.currentTransmuxState,J=H.accurateTimeOffset,U=H.timeOffset;o.logger.log("[transmuxer.ts]: Flushed fragment "+O.sn+(O.part>-1?" p: "+O.part:"")+" of level "+O.level);var K=this.remuxer.remux(T,D,R,k,U,J,!0,this.id);i.push({remuxResult:K,chunkMeta:O}),O.transmuxing.executeEnd=f()},A.resetInitialTimestamp=function(i){var x=this.demuxer,O=this.remuxer;if(!x||!O)return;x.resetTimeStamp(i),O.resetTimeStamp(i)},A.resetContiguity=function(){var i=this.demuxer,x=this.remuxer;if(!i||!x)return;i.resetContiguity(),x.resetNextTimestamp()},A.resetInitSegment=function(i,x,O,T){var D=this.demuxer,R=this.remuxer;if(!D||!R)return;D.resetInitSegment(x,O,T),R.resetInitSegment(i,x,O)},A.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},A.transmux=function(i,x,O,T,D){var R;return x&&x.method==="SAMPLE-AES"?R=this.transmuxSampleAes(i,x,O,T,D):R=this.transmuxUnencrypted(i,O,T,D),R},A.transmuxUnencrypted=function(i,x,O,T){var D=this.demuxer.demux(i,x,!1,!this.config.progressive),R=D.audioTrack,k=D.avcTrack,H=D.id3Track,J=D.textTrack,U=this.remuxer.remux(R,k,H,J,x,O,!1,this.id);return{remuxResult:U,chunkMeta:T}},A.transmuxSampleAes=function(i,x,O,T,D){var R=this;return this.demuxer.demuxSampleAes(i,x,O).then(function(k){var H=R.remuxer.remux(k.audioTrack,k.avcTrack,k.id3Track,k.textTrack,O,T,!1,R.id);return{remuxResult:H,chunkMeta:D}})},A.configureTransmuxer=function(i,x){for(var O=this.config,T=this.observer,D=this.typeSupported,R=this.vendor,k=x.audioCodec,H=x.defaultInitPts,J=x.duration,U=x.initSegmentData,K=x.videoCodec,G,N=0,Q=d.length;N0&&A!=null&&A.key!=null&&A.iv!==null&&A.method!=null&&(l=A),l}var p=function(A){return{remuxResult:{},chunkMeta:A}};function S(b){return"then"in b&&b.then instanceof Function}var w=function(A,l,i,x,O){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=A,this.videoCodec=l,this.initSegmentData=i,this.duration=x,this.defaultInitPts=O},B=function(A,l,i,x,O){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=A,this.contiguous=l,this.accurateTimeOffset=i,this.trackSwitch=x,this.timeOffset=O}},"./src/demux/tsdemuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"discardEPB",function(){return p});var y=P("./src/demux/adts.ts"),E=P("./src/demux/mpegaudio.ts"),_=P("./src/demux/exp-golomb.ts"),C=P("./src/demux/id3.ts"),m=P("./src/demux/sample-aes.ts"),c=P("./src/events.ts"),r=P("./src/utils/mp4-tools.ts"),n=P("./src/utils/logger.ts"),e=P("./src/errors.ts"),s={video:1,audio:2,id3:3,text:4},u=function(){function S(B,b,A){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=B,this.config=b,this.typeSupported=A}S.probe=function(b){var A=S.syncOffset(b);return A<0?!1:(A&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+A+", junk ahead ?"),!0)},S.syncOffset=function(b){for(var A=Math.min(1e3,b.length-3*188),l=0;l>4,Ae=void 0;if(_e>1){if(Ae=oe+5+b[oe+4],Ae===oe+188)continue}else Ae=oe+4;switch(se){case R:me&&(k&&(x=a(k))&&this.parseAVCPES(x,!1),k={data:[],size:0}),k&&(k.data.push(b.subarray(Ae,oe+188)),k.size+=oe+188-Ae);break;case H:me&&(U&&(x=a(U))&&(T.isAAC?this.parseAACPES(x):this.parseMPEGPES(x)),U={data:[],size:0}),U&&(U.data.push(b.subarray(Ae,oe+188)),U.size+=oe+188-Ae);break;case J:me&&(K&&(x=a(K))&&this.parseID3PES(x),K={data:[],size:0}),K&&(K.data.push(b.subarray(Ae,oe+188)),K.size+=oe+188-Ae);break;case 0:me&&(Ae+=b[Ae]+1),Q=this._pmtId=f(b,Ae);break;case Q:{me&&(Ae+=b[Ae]+1);var Ee=d(b,Ae,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,l);R=Ee.avc,R>0&&(O.pid=R),H=Ee.audio,H>0&&(T.pid=H,T.isAAC=Ee.isAAC),J=Ee.id3,J>0&&(D.pid=J),G&&!N&&(n.logger.log("reparse from beginning"),G=!1,oe=te-188),N=this.pmtParsed=!0;break}case 17:case 8191:break;default:G=!0;break}}else this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});O.pesData=k,T.pesData=U,D.pesData=K;var pe={audioTrack:T,avcTrack:O,id3Track:D,textTrack:this._txtTrack};return i&&this.extractRemainingSamples(pe),pe},w.flush=function(){var b=this.remainderData;this.remainderData=null;var A;return b?A=this.demux(b,-1,!1,!0):A={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(A),this.sampleAes?this.decrypt(A,this.sampleAes):A},w.extractRemainingSamples=function(b){var A=b.audioTrack,l=b.avcTrack,i=b.id3Track,x=l.pesData,O=A.pesData,T=i.pesData,D;x&&(D=a(x))?(this.parseAVCPES(D,!0),l.pesData=null):l.pesData=x,O&&(D=a(O))?(A.isAAC?this.parseAACPES(D):this.parseMPEGPES(D),A.pesData=null):(O!=null&&O.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),A.pesData=O),T&&(D=a(T))?(this.parseID3PES(D),i.pesData=null):i.pesData=T},w.demuxSampleAes=function(b,A,l){var i=this.demux(b,l,!0,!this.config.progressive),x=this.sampleAes=new m.default(this.observer,this.config,A);return this.decrypt(i,x)},w.decrypt=function(b,A){return new Promise(function(l){var i=b.audioTrack,x=b.avcTrack;i.samples&&i.isAAC?A.decryptAacSamples(i.samples,0,function(){x.samples?A.decryptAvcSamples(x.samples,0,0,function(){l(b)}):l(b)}):x.samples&&A.decryptAvcSamples(x.samples,0,0,function(){l(b)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(b,A){var l=this,i=this._avcTrack,x=this.parseAVCNALu(b.data),O=!1,T=this.avcSample,D,R=!1;b.data=null,T&&x.length&&!i.audFound&&(h(T,i),T=this.avcSample=o(!1,b.pts,b.dts,"")),x.forEach(function(k){switch(k.type){case 1:{D=!0,T||(T=l.avcSample=o(!0,b.pts,b.dts,"")),O&&(T.debug+="NDR "),T.frame=!0;var H=k.data;if(R&&H.length>4){var J=new _.default(H).readSliceType();(J===2||J===4||J===7||J===9)&&(T.key=!0)}break}case 5:D=!0,T||(T=l.avcSample=o(!0,b.pts,b.dts,"")),O&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{D=!0,O&&T&&(T.debug+="SEI ");var U=new _.default(p(k.data));U.readUByte();for(var K=0,G=0,N=!1,Q=0;!N&&U.bytesAvailable>1;){K=0;do Q=U.readUByte(),K+=Q;while(Q===255);G=0;do Q=U.readUByte(),G+=Q;while(Q===255);if(K===4&&U.bytesAvailable!==0){N=!0;var X=U.readUByte();if(X===181){var te=U.readUShort();if(te===49){var oe=U.readUInt();if(oe===1195456820){var me=U.readUByte();if(me===3){for(var se=U.readUByte(),_e=U.readUByte(),Ae=31&se,Ee=[se,_e],pe=0;pe16){for(var he=[],ie=0;ie<16;ie++)he.push(U.readUByte().toString(16)),(ie===3||ie===5||ie===7||ie===9)&&he.push("-");for(var fe=G-16,ge=new Uint8Array(fe),ce=0;ce=0){var U={data:b.subarray(H,T-i-1),type:J};O.push(U)}else{var K=this.getLastNalUnit();if(K&&(x&&T<=4-x&&(K.state&&(K.data=K.data.subarray(0,K.data.byteLength-x))),R=T-i-1,R>0)){var G=new Uint8Array(K.data.byteLength+R);G.set(K.data,0),G.set(b.subarray(0,R),K.data.byteLength),K.data=G,K.state=0}}T=0&&i>=0){var N={data:b.subarray(H,A),type:J,state:i};O.push(N)}if(O.length===0){var Q=this.getLastNalUnit();if(Q){var X=new Uint8Array(Q.data.byteLength+b.byteLength);X.set(Q.data,0),X.set(b,Q.data.byteLength),Q.data=X}}return l.naluState=i,O},w.parseAACPES=function(b){var A=0,l=this._audioTrack,i=this.aacOverFlow,x=b.data;if(i){this.aacOverFlow=null;var O=i.sample.unit.byteLength,T=Math.min(i.missing,O),D=O-T;i.sample.unit.set(x.subarray(0,T),D),l.samples.push(i.sample),A=i.missing}var R,k;for(R=A,k=x.length;R1;){var O=new Uint8Array(x[0].length+x[1].length);O.set(x[0]),O.set(x[1],x[0].length),x[0]=O,x.splice(1,1)}B=x[0];var T=(B[0]<<16)+(B[1]<<8)+B[2];if(T===1){if(b=(B[4]<<8)+B[5],b&&b>S.size-6)return null;var D=B[7];D&192&&(l=(B[9]&14)*536870912+(B[10]&255)*4194304+(B[11]&254)*16384+(B[12]&255)*128+(B[13]&254)/2,D&64?(i=(B[14]&14)*536870912+(B[15]&255)*4194304+(B[16]&254)*16384+(B[17]&255)*128+(B[18]&254)/2,l-i>60*9e4&&(n.logger.warn(Math.round((l-i)/9e4)+"s delta between PTS and DTS, align them"),l=i)):i=l),A=B[8];var R=A+9;if(S.size<=R)return null;S.size-=R;for(var k=new Uint8Array(S.size),H=0,J=x.length;HU){R-=U;continue}else B=B.subarray(R),U-=R,R=0;k.set(B,w),w+=U}return b&&(b-=A+3),{data:k,pts:l,dts:i,len:b}}return null}function h(S,w){if(S.units.length&&S.frame){if(S.pts===void 0){var B=w.samples,b=B.length;if(b){var A=B[b-1];S.pts=A.pts,S.dts=A.dts}else{w.dropped++;return}}w.samples.push(S)}S.debug.length&&n.logger.log(S.pts+"/"+S.dts+":"+S.debug)}function g(S,w){var B=S.length;if(B>0){if(w.pts>=S[B-1].pts)S.push(w);else for(var b=B-1;b>=0;b--)if(w.ptsl)return x;return 0}},{key:"maxAutoLevel",get:function(){var A=this.levels,l=this.autoLevelCapping,i;return l===-1&&A&&A.length?i=A.length-1:i=l,i}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(A){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,A)}},{key:"audioTracks",get:function(){var A=this.audioTrackController;return A?A.audioTracks:[]}},{key:"audioTrack",get:function(){var A=this.audioTrackController;return A?A.audioTrack:-1},set:function(A){var l=this.audioTrackController;l&&(l.audioTrack=A)}},{key:"subtitleTracks",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTrack:-1},set:function(A){var l=this.subtitleTrackController;l&&(l.subtitleTrack=A)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var A=this.subtitleTrackController;return A?A.subtitleDisplay:!1},set:function(A){var l=this.subtitleTrackController;l&&(l.subtitleDisplay=A)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(A){this.config.lowLatencyMode=A}},{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 a.Events}},{key:"ErrorTypes",get:function(){return h.ErrorTypes}},{key:"ErrorDetails",get:function(){return h.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:o.hlsDefaultConfig},set:function(A){w.defaultConfig=A}}]),w}();S.defaultConfig=void 0},"./src/is-supported.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"isSupported",function(){return _}),P.d(Y,"changeTypeSupported",function(){return C});var y=P("./src/utils/mediasource-helper.ts");function E(){return self.SourceBuffer||self.WebKitSourceBuffer}function _(){var m=Object(y.getMediaSource)();if(!m)return!1;var c=E(),r=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!c||c.prototype&&typeof c.prototype.appendBuffer=="function"&&typeof c.prototype.remove=="function";return!!r&&!!n}function C(){var m,c=E();return typeof(c==null||((m=c.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u}),P.d(Y,"LoadError",function(){return f});var y=P("./src/polyfills/number.ts"),E=P("./src/errors.ts");function _(d,a){d.prototype=Object.create(a.prototype),d.prototype.constructor=d,n(d,a)}function C(d){var a=typeof Map=="function"?new Map:void 0;return C=function(g){if(g===null||!r(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a!="undefined"){if(a.has(g))return a.get(g);a.set(g,p)}function p(){return m(g,arguments,e(this).constructor)}return p.prototype=Object.create(g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n(p,g)},C(d)}function m(d,a,h){return c()?m=Reflect.construct:m=function(p,S,w){var B=[null];B.push.apply(B,S);var b=Function.bind.apply(p,B),A=new b;return w&&n(A,w.prototype),A},m.apply(null,arguments)}function c(){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(d){return!1}}function r(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function n(d,a){return n=Object.setPrototypeOf||function(g,p){return g.__proto__=p,g},n(d,a)}function e(d){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},e(d)}var s=Math.pow(2,17),u=function(){function d(h){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=h}var a=d.prototype;return a.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},a.abort=function(){this.loader&&this.loader.abort()},a.load=function(g,p){var S=this,w=g.url;if(!w)return Promise.reject(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var B=this.config,b=B.fLoader,A=B.loader;return new Promise(function(l,i){S.loader&&S.loader.destroy();var x=S.loader=g.loader=b?new b(B):new A(B),O=o(g),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:s};g.stats=x.stats,x.load(O,T,{onSuccess:function(R,k,H,J){S.resetLoader(g,x),l({frag:g,part:null,payload:R.data,networkDetails:J})},onError:function(R,k,H){S.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,response:R,networkDetails:H}))},onAbort:function(R,k,H){S.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,networkDetails:H}))},onTimeout:function(R,k,H){S.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,networkDetails:H}))},onProgress:function(R,k,H,J){p&&p({frag:g,part:null,payload:H,networkDetails:J})}})})},a.loadPart=function(g,p,S){var w=this;this.abort();var B=this.config,b=B.fLoader,A=B.loader;return new Promise(function(l,i){w.loader&&w.loader.destroy();var x=w.loader=g.loader=b?new b(B):new A(B),O=o(g,p),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:s};p.stats=x.stats,x.load(O,T,{onSuccess:function(R,k,H,J){w.resetLoader(g,x),w.updateStatsFromPart(g,p);var U={frag:g,part:p,payload:R.data,networkDetails:J};S(U),l(U)},onError:function(R,k,H){w.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,part:p,response:R,networkDetails:H}))},onAbort:function(R,k,H){g.stats.aborted=p.stats.aborted,w.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,part:p,networkDetails:H}))},onTimeout:function(R,k,H){w.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,part:p,networkDetails:H}))}})})},a.updateStatsFromPart=function(g,p){var S=g.stats,w=p.stats,B=w.total;if(S.loaded+=w.loaded,B){var b=Math.round(g.duration/p.duration),A=Math.min(Math.round(S.loaded/B),b),l=b-A,i=l*Math.round(S.loaded/A);S.total=S.loaded+i}else S.total=Math.max(S.loaded,S.total);var x=S.loading,O=w.loading;x.start?x.first+=O.first-O.start:(x.start=O.start,x.first=O.first),x.end=O.end},a.resetLoader=function(g,p){g.loader=null,this.loader===p&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),p.destroy()},d}();function o(d,a){a===void 0&&(a=null);var h=a||d,g={frag:d,part:a,responseType:"arraybuffer",url:h.url,headers:{},rangeStart:0,rangeEnd:0},p=h.byteRangeStartOffset,S=h.byteRangeEndOffset;return Object(y.isFiniteNumber)(p)&&Object(y.isFiniteNumber)(S)&&(g.rangeStart=p,g.rangeEnd=S),g}var f=function(d){_(a,d);function a(h){for(var g,p=arguments.length,S=new Array(p>1?p-1:0),w=1;w>8*(15-B)&255;return w},g.setDecryptDataFromLevelKey=function(S,w){var B=S;return(S==null?void 0:S.method)==="AES-128"&&S.uri&&!S.iv&&(B=m.LevelKey.fromURI(S.uri),B.method=S.method,B.iv=this.createInitializationVector(w),B.keyFormat="identity"),B},g.setElementaryStreamInfo=function(S,w,B,b,A,l){l===void 0&&(l=!1);var i=this.elementaryStreams,x=i[S];if(!x){i[S]={startPTS:w,endPTS:B,startDTS:b,endDTS:A,partial:l};return}x.startPTS=Math.min(x.startPTS,w),x.endPTS=Math.max(x.endPTS,B),x.startDTS=Math.min(x.startDTS,b),x.endDTS=Math.max(x.endDTS,A)},g.clearElementaryStreamInfo=function(){var S=this.elementaryStreams;S[u.AUDIO]=null,S[u.VIDEO]=null,S[u.AUDIOVIDEO]=null},s(h,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var S=this.sn;typeof S!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&C.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),S=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,S)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(y.isFiniteNumber)(this.programDateTime))return null;var S=Object(y.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+S*1e3}},{key:"encrypted",get:function(){var S;return!!((S=this.decryptdata)!==null&&S!==void 0&&S.keyFormat&&this.decryptdata.uri)}}]),h}(o),d=function(a){r(h,a);function h(g,p,S,w,B){var b;b=a.call(this,S)||this,b.fragOffset=0,b.duration=0,b.gap=!1,b.independent=!1,b.relurl=void 0,b.fragment=void 0,b.index=void 0,b.stats=new c.LoadStats,b.duration=g.decimalFloatingPoint("DURATION"),b.gap=g.bool("GAP"),b.independent=g.bool("INDEPENDENT"),b.relurl=g.enumeratedString("URI"),b.fragment=p,b.index=w;var A=g.enumeratedString("BYTERANGE");return A&&b.setByteRange(A,B),B&&(b.fragOffset=B.fragOffset+B.duration),b}return s(h,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var p=this.elementaryStreams;return!!(p.audio||p.video||p.audiovideo)}}]),h}(o)},"./src/loader/key-loader.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return C});var y=P("./src/events.ts"),E=P("./src/errors.ts"),_=P("./src/utils/logger.ts"),C=function(){function m(r){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=r,this._registerListeners()}var c=m.prototype;return c._registerListeners=function(){this.hls.on(y.Events.KEY_LOADING,this.onKeyLoading,this)},c._unregisterListeners=function(){this.hls.off(y.Events.KEY_LOADING,this.onKeyLoading)},c.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},c.onKeyLoading=function(n,e){var s=e.frag,u=s.type,o=this.loaders[u];if(!s.decryptdata){_.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=s.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(o&&(_.logger.warn("abort previous key loader for type:"+u),o.abort()),!f){_.logger.warn("key uri is falsy");return}var a=d.loader,h=s.loader=this.loaders[u]=new a(d);this.decrypturl=f,this.decryptkey=null;var g={url:f,frag:s,responseType:"arraybuffer"},p={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};h.load(g,p,S)}else this.decryptkey&&(s.decryptdata.key=this.decryptkey,this.hls.trigger(y.Events.KEY_LOADED,{frag:s}))},c.loadsuccess=function(n,e,s){var u=s.frag;if(!u.decryptdata){_.logger.error("after key load, decryptdata unset");return}this.decryptkey=u.decryptdata.key=new Uint8Array(n.data),u.loader=null,delete this.loaders[u.type],this.hls.trigger(y.Events.KEY_LOADED,{frag:u})},c.loaderror=function(n,e){var s=e.frag,u=s.loader;u&&u.abort(),delete this.loaders[s.type],this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:s,response:n})},c.loadtimeout=function(n,e){var s=e.frag,u=s.loader;u&&u.abort(),delete this.loaders[s.type],this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:s})},m}()},"./src/loader/level-details.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"LevelDetails",function(){return m});var y=P("./src/polyfills/number.ts");function E(c,r){for(var n=0;ne.endSN||s>0||s===0&&u>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},_(c,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(y.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||C}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;if(e>0){var s=this.driftEnd-this.driftStart;return s*1e3/e}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return(e=this.fragments)!==null&&e!==void 0&&e.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 e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),c}()},"./src/loader/level-key.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"LevelKey",function(){return m});var y=P("./node_modules/url-toolkit/src/url-toolkit.js"),E=P.n(y);function _(c,r){for(var n=0;n2){var i=l.shift()+".";return i+=parseInt(l.shift()).toString(16),i+=("000"+parseInt(l.shift()).toString(16)).substr(-4),i}return A},B.resolve=function(A,l){return E.buildAbsoluteURL(l,A,{alwaysNormalize:!0})},B.parseMasterPlaylist=function(A,l){var i=[],x={},O=!1;s.lastIndex=0;for(var T;(T=s.exec(A))!=null;)if(T[1]){var D=new r.AttrList(T[1]),R={attrs:D,bitrate:D.decimalInteger("AVERAGE-BANDWIDTH")||D.decimalInteger("BANDWIDTH"),name:D.NAME,url:B.resolve(T[2],l)},k=D.decimalResolution("RESOLUTION");k&&(R.width=k.width,R.height=k.height),g((D.CODECS||"").split(/[ ,]+/).filter(function(J){return J}),R),R.videoCodec&&R.videoCodec.indexOf("avc1")!==-1&&(R.videoCodec=B.convertAVC1ToAVCOTI(R.videoCodec)),i.push(R)}else if(T[3]){var H=new r.AttrList(T[3]);H["DATA-ID"]&&(O=!0,x[H["DATA-ID"]]=H)}return{levels:i,sessionData:O?x:null}},B.parseMasterPlaylistMedia=function(A,l,i,x){x===void 0&&(x=[]);var O,T=[],D=0;for(u.lastIndex=0;(O=u.exec(A))!==null;){var R=new r.AttrList(O[1]);if(R.TYPE===i){var k={attrs:R,bitrate:0,id:D++,groupId:R["GROUP-ID"],instreamId:R["INSTREAM-ID"],name:R.NAME||R.LANGUAGE||"",type:i,default:R.bool("DEFAULT"),autoselect:R.bool("AUTOSELECT"),forced:R.bool("FORCED"),lang:R.LANGUAGE,url:R.URI?B.resolve(R.URI,l):""};if(x.length){var H=B.findGroup(x,k.groupId)||x[0];p(k,H,"audioCodec"),p(k,H,"textCodec")}T.push(k)}}return T},B.parseLevelPlaylist=function(A,l,i,x,O){var T=new m.LevelDetails(l),D=T.fragments,R=null,k=0,H=0,J=0,U=0,K=null,G=new C.Fragment(x,l),N,Q,X,te=-1,oe=!1;for(o.lastIndex=0,T.m3u8=A;(N=o.exec(A))!==null;){oe&&(oe=!1,G=new C.Fragment(x,l),G.start=J,G.sn=k,G.cc=U,G.level=i,R&&(G.initSegment=R,G.rawProgramDateTime=R.rawProgramDateTime));var me=N[1];if(me){G.duration=parseFloat(me);var se=(" "+N[2]).slice(1);G.title=se||null,G.tagList.push(se?["INF",me,se]:["INF",me])}else if(N[3])Object(y.isFiniteNumber)(G.duration)&&(G.start=J,X&&(G.levelkey=X),G.sn=k,G.level=i,G.cc=U,G.urlId=O,D.push(G),G.relurl=(" "+N[3]).slice(1),w(G,K),K=G,J+=G.duration,k++,H=0,oe=!0);else if(N[4]){var _e=(" "+N[4]).slice(1);K?G.setByteRange(_e,K):G.setByteRange(_e)}else if(N[5])G.rawProgramDateTime=(" "+N[5]).slice(1),G.tagList.push(["PROGRAM-DATE-TIME",G.rawProgramDateTime]),te===-1&&(te=D.length);else{if(N=N[0].match(f),!N){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(Q=1;Q-1){n.logger.warn("Keyformat "+de+" is not supported from the manifest");continue}else if(de!=="identity")continue;Fe&&(X=c.LevelKey.fromURL(l,ke),ke&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Fe)>=0&&(X.method=Fe,X.keyFormat=de,W&&(X.keyID=W),F&&(X.keyFormatVersions=F),X.iv=re));break}case"START":{var le=new r.AttrList(Ee),De=le.decimalFloatingPoint("TIME-OFFSET");Object(y.isFiniteNumber)(De)&&(T.startTimeOffset=De);break}case"MAP":{var Xe=new r.AttrList(Ee);G.relurl=Xe.URI,Xe.BYTERANGE&&G.setByteRange(Xe.BYTERANGE),G.level=i,G.sn="initSegment",X&&(G.levelkey=X),G.initSegment=null,R=G,oe=!0;break}case"SERVER-CONTROL":{var xt=new r.AttrList(Ee);T.canBlockReload=xt.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=xt.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&xt.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=xt.optionalFloat("PART-HOLD-BACK",0),T.holdBack=xt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ke=new r.AttrList(Ee);T.partTarget=Ke.decimalFloatingPoint("PART-TARGET");break}case"PART":{var ze=T.partList;ze||(ze=T.partList=[]);var yt=H>0?ze[ze.length-1]:void 0,Et=H++,ct=new C.Part(new r.AttrList(Ee),G,l,Et,yt);ze.push(ct),G.duration+=ct.duration;break}case"PRELOAD-HINT":{var lt=new r.AttrList(Ee);T.preloadHint=lt;break}case"RENDITION-REPORT":{var rt=new r.AttrList(Ee);T.renditionReports=T.renditionReports||[],T.renditionReports.push(rt);break}default:n.logger.warn("line parsed but not handled: "+N);break}}}K&&!K.relurl?(D.pop(),J-=K.duration,T.partList&&(T.fragmentHint=K)):T.partList&&(w(G,K),G.cc=U,T.fragmentHint=G);var qe=D.length,$e=D[0],Pe=D[qe-1];if(J+=T.skippedSegments*T.targetduration,J>0&&qe&&Pe){T.averagetargetduration=J/qe;var je=Pe.sn;T.endSN=je!=="initSegment"?je:0,$e&&(T.startCC=$e.cc,$e.initSegment||T.fragments.every(function(Ne){return Ne.relurl&&a(Ne.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),G=new C.Fragment(x,l),G.relurl=Pe.relurl,G.level=i,G.sn="initSegment",$e.initSegment=G,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(J+=T.fragmentHint.duration),T.totalduration=J,T.endCC=U,te>0&&S(D,te),T},B}();function g(B,b){["video","audio","text"].forEach(function(A){var l=B.filter(function(x){return Object(e.isCodecType)(x,A)});if(l.length){var i=l.filter(function(x){return x.lastIndexOf("avc1",0)===0||x.lastIndexOf("mp4a",0)===0});b[A+"Codec"]=i.length>0?i[0]:l[0],B=B.filter(function(x){return l.indexOf(x)===-1})}}),b.unknownCodecs=B}function p(B,b,A){var l=b[A];l&&(B[A]=l)}function S(B,b){for(var A=B[b],l=b;l--;){var i=B[l];if(!i)return;i.programDateTime=A.programDateTime-i.duration*1e3,A=i}}function w(B,b){B.rawProgramDateTime?B.programDateTime=Date.parse(B.rawProgramDateTime):b!=null&&b.programDateTime&&(B.programDateTime=b.endProgramDateTime),Object(y.isFiniteNumber)(B.programDateTime)||(B.programDateTime=null,B.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/polyfills/number.ts"),E=P("./src/events.ts"),_=P("./src/errors.ts"),C=P("./src/utils/logger.ts"),m=P("./src/utils/mp4-tools.ts"),c=P("./src/loader/m3u8-parser.ts"),r=P("./src/types/loader.ts"),n=P("./src/utils/attr-list.ts");function e(o){var f=o.type;switch(f){case r.PlaylistContextType.AUDIO_TRACK:return r.PlaylistLevelType.AUDIO;case r.PlaylistContextType.SUBTITLE_TRACK:return r.PlaylistLevelType.SUBTITLE;default:return r.PlaylistLevelType.MAIN}}function s(o,f){var d=o.url;return(d===void 0||d.indexOf("data:")===0)&&(d=f.url),d}var u=function(){function o(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var f=o.prototype;return f.registerListeners=function(){var a=this.hls;a.on(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.on(E.Events.LEVEL_LOADING,this.onLevelLoading,this),a.on(E.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),a.on(E.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var a=this.hls;a.off(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.off(E.Events.LEVEL_LOADING,this.onLevelLoading,this),a.off(E.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),a.off(E.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(a){var h=this.hls.config,g=h.pLoader,p=h.loader,S=g||p,w=new S(h);return a.loader=w,this.loaders[a.type]=w,w},f.getInternalLoader=function(a){return this.loaders[a.type]},f.resetInternalLoader=function(a){this.loaders[a]&&delete this.loaders[a]},f.destroyInternalLoaders=function(){for(var a in this.loaders){var h=this.loaders[a];h&&h.destroy(),this.resetInternalLoader(a)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(a,h){var g=h.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:r.PlaylistContextType.MANIFEST,url:g,deliveryDirectives:null})},f.onLevelLoading=function(a,h){var g=h.id,p=h.level,S=h.url,w=h.deliveryDirectives;this.load({id:g,groupId:null,level:p,responseType:"text",type:r.PlaylistContextType.LEVEL,url:S,deliveryDirectives:w})},f.onAudioTrackLoading=function(a,h){var g=h.id,p=h.groupId,S=h.url,w=h.deliveryDirectives;this.load({id:g,groupId:p,level:null,responseType:"text",type:r.PlaylistContextType.AUDIO_TRACK,url:S,deliveryDirectives:w})},f.onSubtitleTrackLoading=function(a,h){var g=h.id,p=h.groupId,S=h.url,w=h.deliveryDirectives;this.load({id:g,groupId:p,level:null,responseType:"text",type:r.PlaylistContextType.SUBTITLE_TRACK,url:S,deliveryDirectives:w})},f.load=function(a){var h,g=this.hls.config,p=this.getInternalLoader(a);if(p){var S=p.context;if(S&&S.url===a.url){C.logger.trace("[playlist-loader]: playlist request ongoing");return}C.logger.log("[playlist-loader]: aborting previous loader for type: "+a.type),p.abort()}var w,B,b,A;switch(a.type){case r.PlaylistContextType.MANIFEST:w=g.manifestLoadingMaxRetry,B=g.manifestLoadingTimeOut,b=g.manifestLoadingRetryDelay,A=g.manifestLoadingMaxRetryTimeout;break;case r.PlaylistContextType.LEVEL:case r.PlaylistContextType.AUDIO_TRACK:case r.PlaylistContextType.SUBTITLE_TRACK:w=0,B=g.levelLoadingTimeOut;break;default:w=g.levelLoadingMaxRetry,B=g.levelLoadingTimeOut,b=g.levelLoadingRetryDelay,A=g.levelLoadingMaxRetryTimeout;break}if(p=this.createInternalLoader(a),(h=a.deliveryDirectives)!==null&&h!==void 0&&h.part){var l;if(a.type===r.PlaylistContextType.LEVEL&&a.level!==null?l=this.hls.levels[a.level].details:a.type===r.PlaylistContextType.AUDIO_TRACK&&a.id!==null?l=this.hls.audioTracks[a.id].details:a.type===r.PlaylistContextType.SUBTITLE_TRACK&&a.id!==null&&(l=this.hls.subtitleTracks[a.id].details),l){var i=l.partTarget,x=l.targetduration;i&&x&&(B=Math.min(Math.max(i*3,x*.8)*1e3,B))}}var O={timeout:B,maxRetry:w,retryDelay:b,maxRetryDelay:A,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};p.load(a,O,T)},f.loadsuccess=function(a,h,g,p){if(p===void 0&&(p=null),g.isSidxRequest){this.handleSidxRequest(a,g),this.handlePlaylistLoaded(a,h,g,p);return}this.resetInternalLoader(g.type);var S=a.data;if(S.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(a,g,"no EXTM3U delimiter",p);return}h.parsing.start=performance.now(),S.indexOf("#EXTINF:")>0||S.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(a,h,g,p):this.handleMasterPlaylist(a,h,g,p)},f.loaderror=function(a,h,g){g===void 0&&(g=null),this.handleNetworkError(h,g,!1,a)},f.loadtimeout=function(a,h,g){g===void 0&&(g=null),this.handleNetworkError(h,g,!0)},f.handleMasterPlaylist=function(a,h,g,p){var S=this.hls,w=a.data,B=s(a,g),b=c.default.parseMasterPlaylist(w,B),A=b.levels,l=b.sessionData;if(!A.length){this.handleManifestParsingError(a,g,"no level found in manifest",p);return}var i=A.map(function(k){return{id:k.attrs.AUDIO,audioCodec:k.audioCodec}}),x=A.map(function(k){return{id:k.attrs.SUBTITLES,textCodec:k.textCodec}}),O=c.default.parseMasterPlaylistMedia(w,B,"AUDIO",i),T=c.default.parseMasterPlaylistMedia(w,B,"SUBTITLES",x),D=c.default.parseMasterPlaylistMedia(w,B,"CLOSED-CAPTIONS");if(O.length){var R=O.some(function(k){return!k.url});!R&&A[0].audioCodec&&!A[0].attrs.AUDIO&&(C.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),O.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}S.trigger(E.Events.MANIFEST_LOADED,{levels:A,audioTracks:O,subtitles:T,captions:D,url:B,stats:h,networkDetails:p,sessionData:l})},f.handleTrackOrLevelPlaylist=function(a,h,g,p){var S=this.hls,w=g.id,B=g.level,b=g.type,A=s(a,g),l=Object(y.isFiniteNumber)(w)?w:0,i=Object(y.isFiniteNumber)(B)?B:l,x=e(g),O=c.default.parseLevelPlaylist(a.data,A,i,x,l);if(!O.fragments.length){S.trigger(E.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:A,reason:"no fragments found in level",level:typeof g.level=="number"?g.level:void 0});return}if(b===r.PlaylistContextType.MANIFEST){var T={attrs:new n.AttrList({}),bitrate:0,details:O,name:"",url:A};S.trigger(E.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:A,stats:h,networkDetails:p,sessionData:null})}if(h.parsing.end=performance.now(),O.needSidxRanges){var D,R=(D=O.fragments[0].initSegment)===null||D===void 0?void 0:D.url;this.load({url:R,isSidxRequest:!0,type:b,level:B,levelDetails:O,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}g.levelDetails=O,this.handlePlaylistLoaded(a,h,g,p)},f.handleSidxRequest=function(a,h){var g=Object(m.parseSegmentIndex)(new Uint8Array(a.data));if(!g)return;var p=g.references,S=h.levelDetails;p.forEach(function(w,B){var b=w.info,A=S.fragments[B];A.byteRange.length===0&&A.setByteRange(String(1+b.end-b.start)+"@"+String(b.start)),A.initSegment&&A.initSegment.setByteRange(String(g.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(a,h,g,p){this.hls.trigger(E.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:h.type===r.PlaylistContextType.MANIFEST,url:a.url,reason:g,response:a,context:h,networkDetails:p})},f.handleNetworkError=function(a,h,g,p){g===void 0&&(g=!1),C.logger.warn("[playlist-loader]: A network "+(g?"timeout":"error")+" occurred while loading "+a.type+" level: "+a.level+" id: "+a.id+' group-id: "'+a.groupId+'"');var S=_.ErrorDetails.UNKNOWN,w=!1,B=this.getInternalLoader(a);switch(a.type){case r.PlaylistContextType.MANIFEST:S=g?_.ErrorDetails.MANIFEST_LOAD_TIMEOUT:_.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case r.PlaylistContextType.LEVEL:S=g?_.ErrorDetails.LEVEL_LOAD_TIMEOUT:_.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case r.PlaylistContextType.AUDIO_TRACK:S=g?_.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:_.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case r.PlaylistContextType.SUBTITLE_TRACK:S=g?_.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:_.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}B&&this.resetInternalLoader(a.type);var b={type:_.ErrorTypes.NETWORK_ERROR,details:S,fatal:w,url:a.url,loader:B,context:a,networkDetails:h};p&&(b.response=p),this.hls.trigger(E.Events.ERROR,b)},f.handlePlaylistLoaded=function(a,h,g,p){var S=g.type,w=g.level,B=g.id,b=g.groupId,A=g.loader,l=g.levelDetails,i=g.deliveryDirectives;if(!(l!=null&&l.targetduration)){this.handleManifestParsingError(a,g,"invalid target duration",p);return}if(!A)return;l.live&&(A.getCacheAge&&(l.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(l.ageHeader))&&(l.ageHeader=0));switch(S){case r.PlaylistContextType.MANIFEST:case r.PlaylistContextType.LEVEL:this.hls.trigger(E.Events.LEVEL_LOADED,{details:l,level:w||0,id:B||0,stats:h,networkDetails:p,deliveryDirectives:i});break;case r.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(E.Events.AUDIO_TRACK_LOADED,{details:l,id:B||0,groupId:b||"",stats:h,networkDetails:p,deliveryDirectives:i});break;case r.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(E.Events.SUBTITLE_TRACK_LOADED,{details:l,id:B||0,groupId:b||"",stats:h,networkDetails:p,deliveryDirectives:i});break}},o}();Y.default=u},"./src/polyfills/number.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"isFiniteNumber",function(){return y}),P.d(Y,"MAX_SAFE_INTEGER",function(){return E});var y=Number.isFinite||function(_){return typeof _=="number"&&isFinite(_)},E=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ue,Y,P){"use strict";P.r(Y);var y=function(){function E(){}return E.getSilentFrame=function(C,m){switch(C){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===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(m===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(m===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(m===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(m===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},E}();Y.default=y},"./src/remux/mp4-generator.ts":function(ue,Y,P){"use strict";P.r(Y);var y=Math.pow(2,32)-1,E=function(){function _(){}return _.init=function(){_.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 m;for(m in _.types)_.types.hasOwnProperty(m)&&(_.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var c=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]),r=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]);_.HDLR_TYPES={video:c,audio:r};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e=new Uint8Array([0,0,0,0,0,0,0,0]);_.STTS=_.STSC=_.STCO=e,_.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),_.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),_.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),_.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);_.FTYP=_.box(_.types.ftyp,s,o,s,u),_.DINF=_.box(_.types.dinf,_.box(_.types.dref,n))},_.box=function(m){for(var c=8,r=arguments.length,n=new Array(r>1?r-1:0),e=1;e>24&255,o[1]=c>>16&255,o[2]=c>>8&255,o[3]=c&255,o.set(m,4),s=0,c=8;s>24&255,m>>16&255,m>>8&255,m&255,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},_.mdia=function(m){return _.box(_.types.mdia,_.mdhd(m.timescale,m.duration),_.hdlr(m.type),_.minf(m))},_.mfhd=function(m){return _.box(_.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},_.minf=function(m){return m.type==="audio"?_.box(_.types.minf,_.box(_.types.smhd,_.SMHD),_.DINF,_.stbl(m)):_.box(_.types.minf,_.box(_.types.vmhd,_.VMHD),_.DINF,_.stbl(m))},_.moof=function(m,c,r){return _.box(_.types.moof,_.mfhd(m),_.traf(r,c))},_.moov=function(m){for(var c=m.length,r=[];c--;)r[c]=_.trak(m[c]);return _.box.apply(null,[_.types.moov,_.mvhd(m[0].timescale,m[0].duration)].concat(r).concat(_.mvex(m)))},_.mvex=function(m){for(var c=m.length,r=[];c--;)r[c]=_.trex(m[c]);return _.box.apply(null,[_.types.mvex].concat(r))},_.mvhd=function(m,c){c*=m;var r=Math.floor(c/(y+1)),n=Math.floor(c%(y+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,r>>24,r>>16&255,r>>8&255,r&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 _.box(_.types.mvhd,e)},_.sdtp=function(m){var c=m.samples||[],r=new Uint8Array(4+c.length),n,e;for(n=0;n>>8&255),c.push(s&255),c=c.concat(Array.prototype.slice.call(e));for(n=0;n>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(e));var u=_.box(_.types.avcC,new Uint8Array([1,c[3],c[4],c[5],252|3,224|m.sps.length].concat(c).concat([m.pps.length]).concat(r))),o=m.width,f=m.height,d=m.pixelRatio[0],a=m.pixelRatio[1];return _.box(_.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,o>>8&255,o&255,f>>8&255,f&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]),u,_.box(_.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),_.box(_.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,d&255,a>>24,a>>16&255,a>>8&255,a&255])))},_.esds=function(m){var c=m.config.length;return new Uint8Array([0,0,0,0,3,23+c,0,1,0,4,15+c,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([c]).concat(m.config).concat([6,1,2]))},_.mp4a=function(m){var c=m.samplerate;return _.box(_.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,c>>8&255,c&255,0,0]),_.box(_.types.esds,_.esds(m)))},_.mp3=function(m){var c=m.samplerate;return _.box(_.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,c>>8&255,c&255,0,0]))},_.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?_.box(_.types.stsd,_.STSD,_.mp3(m)):_.box(_.types.stsd,_.STSD,_.mp4a(m)):_.box(_.types.stsd,_.STSD,_.avc1(m))},_.tkhd=function(m){var c=m.id,r=m.duration*m.timescale,n=m.width,e=m.height,s=Math.floor(r/(y+1)),u=Math.floor(r%(y+1));return _.box(_.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,c>>24&255,c>>16&255,c>>8&255,c&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,u>>24,u>>16&255,u>>8&255,u&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,e>>8&255,e&255,0,0]))},_.traf=function(m,c){var r=_.sdtp(m),n=m.id,e=Math.floor(c/(y+1)),s=Math.floor(c%(y+1));return _.box(_.types.traf,_.box(_.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),_.box(_.types.tfdt,new Uint8Array([1,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,s>>24,s>>16&255,s>>8&255,s&255])),_.trun(m,r.length+16+20+8+16+8+8),r)},_.trak=function(m){return m.duration=m.duration||4294967295,_.box(_.types.trak,_.tkhd(m),_.mdia(m))},_.trex=function(m){var c=m.id;return _.box(_.types.trex,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},_.trun=function(m,c){var r=m.samples||[],n=r.length,e=12+16*n,s=new Uint8Array(e),u,o,f,d,a,h;for(c+=8+e,s.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255],0),u=0;u>>24&255,f>>>16&255,f>>>8&255,f&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,a.isLeading<<2|a.dependsOn,a.isDependedOn<<6|a.hasRedundancy<<4|a.paddingValue<<1|a.isNonSync,a.degradPrio&240<<8,a.degradPrio&15,h>>>24&255,h>>>16&255,h>>>8&255,h&255],12+16*u);return _.box(_.types.trun,s)},_.initSegment=function(m){_.types||_.init();var c=_.moov(m),r=new Uint8Array(_.FTYP.byteLength+c.byteLength);return r.set(_.FTYP),r.set(c,_.FTYP.byteLength),r},_}();E.types=void 0,E.HDLR_TYPES=void 0,E.STTS=void 0,E.STSC=void 0,E.STCO=void 0,E.STSZ=void 0,E.VMHD=void 0,E.SMHD=void 0,E.STSD=void 0,E.FTYP=void 0,E.DINF=void 0,Y.default=E},"./src/remux/mp4-remuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return h}),P.d(Y,"normalizePts",function(){return g});var y=P("./src/polyfills/number.ts"),E=P("./src/remux/aac-helper.ts"),_=P("./src/remux/mp4-generator.ts"),C=P("./src/events.ts"),m=P("./src/errors.ts"),c=P("./src/utils/logger.ts"),r=P("./src/types/loader.ts"),n=P("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(B){for(var b=1;b0?O:T.pts},l[0].pts);return i&&c.logger.debug("PTS rollover detected"),x},b.remux=function(l,i,x,O,T,D,R,k){var H,J,U,K,G,N,Q=T,X=T,te=l.pid>-1,oe=i.pid>-1,me=i.samples.length,se=l.samples.length>0,_e=me>1,Ae=(!te||se)&&(!oe||_e)||this.ISGenerated||R;if(Ae){this.ISGenerated||(U=this.generateIS(l,i,T));var Ee=this.isVideoContiguous,pe=-1;if(_e&&(pe=p(i.samples),!Ee&&this.config.forceKeyFrameOnDiscontinuity))if(N=!0,pe>0){c.logger.warn("[mp4-remuxer]: Dropped "+pe+" out of "+me+" video samples due to a missing keyframe");var he=this.getVideoStartPts(i.samples);i.samples=i.samples.slice(pe),i.dropped+=pe,X+=(i.samples[0].pts-he)/(i.timescale||9e4)}else pe===-1&&(c.logger.warn("[mp4-remuxer]: No keyframe found out of "+me+" video samples"),N=!1);if(this.ISGenerated){if(se&&_e){var ie=this.getVideoStartPts(i.samples),fe=g(l.samples[0].pts,ie)-ie,ge=fe/i.inputTimeScale;Q+=Math.max(0,ge),X+=Math.max(0,-ge)}if(se){if(l.samplerate||(c.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(l,i,T)),J=this.remuxAudio(l,Q,this.isAudioContiguous,D,oe||_e||k===r.PlaylistLevelType.AUDIO?X:void 0),_e){var ce=J?J.endPTS-J.startPTS:0;i.inputTimeScale||(c.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(l,i,T)),H=this.remuxVideo(i,X,Ee,ce)}}else _e&&(H=this.remuxVideo(i,X,Ee,0));H&&(H.firstKeyFrame=pe,H.independent=pe!==-1)}}return this.ISGenerated&&(x.samples.length&&(G=this.remuxID3(x,T)),O.samples.length&&(K=this.remuxText(O,T))),{audio:J,video:H,initSegment:U,independent:N,text:K,id3:G}},b.generateIS=function(l,i,x){var O=l.samples,T=i.samples,D=this.typeSupported,R={},k=!Object(y.isFiniteNumber)(this._initPTS),H="audio/mp4",J,U,K;if(k&&(J=U=Infinity),l.config&&O.length&&(l.timescale=l.samplerate,l.isAAC||(D.mpeg?(H="audio/mpeg",l.codec=""):D.mp3&&(l.codec="mp3")),R.audio={id:"audio",container:H,codec:l.codec,initSegment:!l.isAAC&&D.mpeg?new Uint8Array(0):_.default.initSegment([l]),metadata:{channelCount:l.channelCount}},k&&(K=l.inputTimeScale,J=U=O[0].pts-Math.round(K*x))),i.sps&&i.pps&&T.length&&(i.timescale=i.inputTimeScale,R.video={id:"main",container:"video/mp4",codec:i.codec,initSegment:_.default.initSegment([i]),metadata:{width:i.width,height:i.height}},k)){K=i.inputTimeScale;var G=this.getVideoStartPts(T),N=Math.round(K*x);U=Math.min(U,g(T[0].dts,G)-N),J=Math.min(J,G-N)}if(Object.keys(R).length)return this.ISGenerated=!0,k&&(this._initPTS=J,this._initDTS=U),{tracks:R,initPTS:J,timescale:K}},b.remuxVideo=function(l,i,x,O){var T=l.inputTimeScale,D=l.samples,R=[],k=D.length,H=this._initPTS,J=this.nextAvcDts,U=8,K,G,N,Q=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY,te=0,oe=!1;if(!x||J===null){var me=i*T,se=D[0].pts-g(D[0].dts,D[0].pts);J=me-se}for(var _e=0;_eAe.pts){var Ee=9e4*.2;te=Math.max(Math.min(te,Ae.pts-Ae.dts),-1*Ee)}Ae.dts0?_e-1:_e].dts&&(oe=!0)}oe&&D.sort(function(Zt,Mt){var Tt=Zt.dts-Mt.dts,Ct=Zt.pts-Mt.pts;return Tt||Ct}),G=D[0].dts,N=D[D.length-1].dts;var pe=Math.round((N-G)/(k-1));if(te<0){if(tepe,Ie=ge<-1;if(ce||Ie){ce?c.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ge,!0)+" ms ("+ge+"dts) hole between fragments detected, filling it"):c.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ge,!0)+" ms ("+ge+"dts) overlapping between fragments detected"),G=J;var Fe=D[0].pts-ge;D[0].dts=G,D[0].pts=Fe,c.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Fe,!0)+"/"+Object(n.toMsFromMpegTsClock)(G,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ge,!0)+" ms")}}a&&(G=Math.max(0,G));for(var ke=0,re=0,F=0;F0?ze-1:ze].dts;if(je.stretchShortVideoTrack&&this.nextAudioPts!==null){var et=Math.floor(je.maxBufferHole*T),mt=(O?Q+O*T:this.nextAudioPts)-yt.pts;mt>et?(K=mt-Ne,K<0&&(K=Ne),c.logger.log("[mp4-remuxer]: It is approximately "+mt/90+" ms to the next segment; using duration "+K/90+" ms for the last video frame.")):K=Ne}else K=Ne}var At=Math.round(yt.pts-yt.dts);R.push(new S(yt.key,K,ct,At))}if(R.length&&f&&f<70){var Ut=R[0].flags;Ut.dependsOn=2,Ut.isNonSync=0}console.assert(K!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=J=N+K,this.isVideoContiguous=!0;var Xt=_.default.moof(l.sequenceNumber++,G,e({},l,{samples:R})),un="video",jt={data1:Xt,data2:xt,startPTS:Q/T,endPTS:(X+K)/T,startDTS:G/T,endDTS:J/T,type:un,hasAudio:!1,hasVideo:!0,nb:R.length,dropped:l.dropped};return l.samples=[],l.dropped=0,console.assert(xt.length,"MDAT length must not be zero"),jt},b.remuxAudio=function(l,i,x,O,T){var D=l.inputTimeScale,R=l.samplerate?l.samplerate:D,k=D/R,H=l.isAAC?u:o,J=H*k,U=this._initPTS,K=!l.isAAC&&this.typeSupported.mpeg,G=[],N=l.samples,Q=K?0:8,X=this.nextAudioPts||-1,te=i*D;if(this.isAudioContiguous=x=x||N.length&&X>0&&(O&&Math.abs(te-X)<9e3||Math.abs(g(N[0].pts-U,te)-X)<20*J),N.forEach(function($e){$e.pts=g($e.pts-U,te)}),!x||X<0){if(N=N.filter(function($e){return $e.pts>=0}),!N.length)return;T===0?X=0:O?X=Math.max(0,te):X=N[0].pts}if(l.isAAC)for(var oe=T!==void 0,me=this.config.maxAudioFramesDrift,se=0,_e=X;se=me*J&&he0){re+=Q;try{ke=new Uint8Array(re)}catch($e){this.observer.emit(C.Events.ERROR,C.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:re,reason:"fail allocating audio mdat "+re});return}if(!K){var xt=new DataView(ke.buffer);xt.setUint32(0,re),ke.set(_.default.types.mdat,4)}}else return;ke.set(le,Q);var Ke=le.byteLength;Q+=Ke,G.push(new S(!0,H,Ke,0)),Fe=De}var ze=G.length;if(!ze)return;var yt=G[G.length-1];this.nextAudioPts=X=Fe+k*yt.duration;var Et=K?new Uint8Array(0):_.default.moof(l.sequenceNumber++,Ie/k,e({},l,{samples:G}));l.samples=[];var ct=Ie/D,lt=X/D,rt="audio",qe={data1:Et,data2:ke,startPTS:ct,endPTS:lt,startDTS:ct,endDTS:lt,type:rt,hasAudio:!0,hasVideo:!1,nb:ze};return this.isAudioContiguous=!0,console.assert(ke.length,"MDAT length must not be zero"),qe},b.remuxEmptyAudio=function(l,i,x,O){var T=l.inputTimeScale,D=l.samplerate?l.samplerate:T,R=T/D,k=this.nextAudioPts,H=(k!==null?k:O.startDTS*T)+this._initDTS,J=O.endDTS*T+this._initDTS,U=R*u,K=Math.ceil((J-H)/U),G=E.default.getSilentFrame(l.manifestCodec||l.codec,l.channelCount);if(c.logger.warn("[mp4-remuxer]: remux empty Audio"),!G){c.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var N=[],Q=0;Q4294967296;)B+=A;return B}function p(B){for(var b=0;b0?this.lastEndDTS=l:(C.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var i=!!B.audio,x=!!B.video,O="";i&&(O+="audio"),x&&(O+="video");var T={data1:S,startPTS:A,startDTS:A,endPTS:l,endDTS:l,type:O,hasAudio:i,hasVideo:x,nb:1,dropped:0};return p.audio=T.type==="audio"?T:void 0,p.video=T.type!=="audio"?T:void 0,p.text=d,p.id3=f,p.initSegment=w,p},n}(),c=function(e,s,u){return Object(E.getStartDTS)(e,s)-u};function r(n,e){var s=n==null?void 0:n.codec;return s&&s.length>4?s:s==="hvc1"?"hvc1.1.c.L120.90":s==="av01"?"av01.0.04M.08":s==="avc1"||e===_.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}Y.default=m},"./src/task-loop.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return y});var y=function(){function E(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var _=E.prototype;return _.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},_.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},_.onHandlerDestroyed=function(){},_.hasInterval=function(){return!!this._tickInterval},_.hasNextTick=function(){return!!this._tickTimer},_.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},_.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},_.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},_.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},_.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},_.doTick=function(){},E}()},"./src/types/cmcd.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"CMCDVersion",function(){return y}),P.d(Y,"CMCDObjectType",function(){return E}),P.d(Y,"CMCDStreamingFormat",function(){return _}),P.d(Y,"CMCDStreamType",function(){return C});var y=1,E;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(E||(E={}));var _;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(_||(_={}));var C;(function(m){m.VOD="v",m.LIVE="l"})(C||(C={}))},"./src/types/level.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"HlsSkip",function(){return _}),P.d(Y,"getSkipValue",function(){return C}),P.d(Y,"HlsUrlParameters",function(){return m}),P.d(Y,"Level",function(){return c});function y(r,n){for(var e=0;eNumber.MAX_SAFE_INTEGER?Infinity:n},m.hexadecimalInteger=function(r){if(this[r]){var n=(this[r]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var e=new Uint8Array(n.length/2),s=0;sNumber.MAX_SAFE_INTEGER?Infinity:n},m.decimalFloatingPoint=function(r){return parseFloat(this[r])},m.optionalFloat=function(r,n){var e=this[r];return e?parseFloat(e):n},m.enumeratedString=function(r){return this[r]},m.bool=function(r){return this[r]==="YES"},m.decimalResolution=function(r){var n=y.exec(this[r]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},C.parseAttrList=function(r){var n,e={},s='"';for(E.lastIndex=0;(n=E.exec(r))!==null;){var u=n[2];u.indexOf(s)===0&&u.lastIndexOf(s)===u.length-1&&(u=u.slice(1,-1)),e[n[1]]=u}return e},C}()},"./src/utils/binary-search.ts":function(ue,Y,P){"use strict";P.r(Y);var y={search:function(_,C){for(var m=0,c=_.length-1,r=null,n=null;m<=c;){r=(m+c)/2|0,n=_[r];var e=C(n);if(e>0)m=r+1;else if(e<0)c=r-1;else return n}return null}};Y.default=y},"./src/utils/buffer-helper.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"BufferHelper",function(){return _});var y=P("./src/utils/logger.ts"),E={length:0,start:function(){return 0},end:function(){return 0}},_=function(){function C(){}return C.isBuffered=function(c,r){try{if(c){for(var n=C.getBuffered(c),e=0;e=n.start(e)&&r<=n.end(e))return!0}}catch(s){}return!1},C.bufferInfo=function(c,r,n){try{if(c){var e=C.getBuffered(c),s=[],u;for(u=0;uo&&(e[u-1].end=c[s].end):e.push(c[s])}else e.push(c[s])}else e=c;for(var f=0,d,a=r,h=r,g=0;g=p&&r=x&&y.logger.log(this.time+" ["+x+"] "+O)},A}(),f=function(l){for(var i=[],x=0;xm&&(this.logger.log(u.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},l.moveCursor=function(x){var O=this.pos+x;if(x>1)for(var T=this.pos+1;T=144&&this.backSpace();var O=_(x);if(this.pos>=m){this.logger.log(u.ERROR,"Cannot insert "+x.toString(16)+" ("+O+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(O,this.currPenState),this.moveCursor(1)},l.clearFromPos=function(x){var O;for(O=x;O0&&(x?T="["+O.join(" | ")+"]":T=O.join(` `)),T},l.getTextAndFormat=function(){return this.rows},A}(),p=function(){function A(i,x,O){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=i,this.outputFilter=x,this.mode=null,this.verbose=0,this.displayedMemory=new g(O),this.nonDisplayedMemory=new g(O),this.lastOutputScreen=new g(O),this.currRollUpRow=this.displayedMemory.rows[C-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=O}var l=A.prototype;return l.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[C-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},l.getHandler=function(){return this.outputFilter},l.setHandler=function(x){this.outputFilter=x},l.setPAC=function(x){this.writeScreen.setPAC(x)},l.setBkgData=function(x){this.writeScreen.setBkgData(x)},l.setMode=function(x){if(x===this.mode)return;this.mode=x,this.logger.log(u.INFO,"MODE="+x),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=x},l.insertChars=function(x){for(var O=0;O=46,O.italics)O.foreground="white";else{var T=Math.floor(x/2)-16,D=["white","green","blue","cyan","red","yellow","magenta"];O.foreground=D[T]}this.logger.log(u.INFO,"MIDROW: "+JSON.stringify(O)),this.writeScreen.setPen(O)},l.outputDataUpdate=function(x){x===void 0&&(x=!1);var O=this.logger.time;if(O===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=O:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,O,this.lastOutputScreen),x&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:O),this.lastOutputScreen.copy(this.displayedMemory))},l.cueSplitAtTime=function(x){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,x,this.displayedMemory),this.cueStartTime=x))},A}(),S=function(){function A(i,x,O){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new o;this.channels=[null,new p(i,x,T),new p(i+1,O,T)],this.cmdHistory=b(),this.logger=T}var l=A.prototype;return l.getHandler=function(x){return this.channels[x].getHandler()},l.setHandler=function(x,O){this.channels[x].setHandler(O)},l.addData=function(x,O){var T,D,R,k=!1;this.logger.time=x;for(var H=0;H ("+f([D,R])+")"),T=this.parseCmd(D,R),T||(T=this.parseMidrow(D,R)),T||(T=this.parsePAC(D,R)),T||(T=this.parseBackgroundAttributes(D,R)),!T&&(k=this.parseChars(D,R),k)){var J=this.currentChannel;if(J&&J>0){var U=this.channels[J];U.insertChars(k)}else this.logger.log(u.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!k&&this.logger.log(u.WARNING,"Couldn't parse cleaned data "+f([D,R])+" orig: "+f([O[H],O[H+1]]))}},l.parseCmd=function(x,O){var T=this.cmdHistory,D=(x===20||x===28||x===21||x===29)&&O>=32&&O<=47,R=(x===23||x===31)&&O>=33&&O<=35;if(!(D||R))return!1;if(B(x,O,T))return w(null,null,T),this.logger.log(u.DEBUG,"Repeated command ("+f([x,O])+") is dropped"),!0;var k=x===20||x===21||x===23?1:2,H=this.channels[k];return x===20||x===21||x===28||x===29?O===32?H.ccRCL():O===33?H.ccBS():O===34?H.ccAOF():O===35?H.ccAON():O===36?H.ccDER():O===37?H.ccRU(2):O===38?H.ccRU(3):O===39?H.ccRU(4):O===40?H.ccFON():O===41?H.ccRDC():O===42?H.ccTR():O===43?H.ccRTD():O===44?H.ccEDM():O===45?H.ccCR():O===46?H.ccENM():O===47&&H.ccEOC():H.ccTO(O-32),w(x,O,T),this.currentChannel=k,!0},l.parseMidrow=function(x,O){var T=0;if((x===17||x===25)&&O>=32&&O<=47){if(x===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(u.ERROR,"Mismatch channel in midrow parsing"),!1;var D=this.channels[T];return D?(D.ccMIDROW(O),this.logger.log(u.DEBUG,"MIDROW ("+f([x,O])+")"),!0):!1}return!1},l.parsePAC=function(x,O){var T,D=this.cmdHistory,R=(x>=17&&x<=23||x>=25&&x<=31)&&O>=64&&O<=127,k=(x===16||x===24)&&O>=64&&O<=95;if(!(R||k))return!1;if(B(x,O,D))return w(null,null,D),!0;var H=x<=23?1:2;O>=64&&O<=95?T=H===1?c[x]:n[x]:T=H===1?r[x]:e[x];var J=this.channels[H];return J?(J.setPAC(this.interpretPAC(T,O)),w(x,O,D),this.currentChannel=H,!0):!1},l.interpretPAC=function(x,O){var T,D={color:null,italics:!1,indent:null,underline:!1,row:x};return O>95?T=O-96:T=O-64,D.underline=(T&1)===1,T<=13?D.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(D.italics=!0,D.color="white"):D.indent=Math.floor((T-16)/2)*4,D},l.parseChars=function(x,O){var T,D=null,R=null;if(x>=25?(T=2,R=x-8):(T=1,R=x),R>=17&&R<=19){var k;R===17?k=O+80:R===18?k=O+112:k=O+144,this.logger.log(u.INFO,"Special char '"+_(k)+"' in channel "+T),D=[k]}else x>=32&&x<=127&&(D=O===0?[x]:[x,O]);if(D){var H=f(D);this.logger.log(u.DEBUG,"Char codes = "+H.join(",")),w(x,O,this.cmdHistory)}return D},l.parseBackgroundAttributes=function(x,O){var T=(x===16||x===24)&&O>=32&&O<=47,D=(x===23||x===31)&&O>=45&&O<=47;if(!(T||D))return!1;var R,k={};x===16||x===24?(R=Math.floor((O-32)/2),k.background=s[R],O%2===1&&(k.background=k.background+"_semi")):O===45?k.background="transparent":(k.foreground="black",O===47&&(k.underline=!0));var H=x<=23?1:2,J=this.channels[H];return J.setBkgData(k),w(x,O,this.cmdHistory),!0},l.reset=function(){for(var x=0;x=16?a--:a++;var w=Object(y.fixLineBreaks)(h.trim()),B=Object(E.generateCueId)(n,e,w);(!r||!r.cues||!r.cues.getCueById(B))&&(f=new g(n,e,w),f.id=B,f.line=p+1,f.align="left",f.position=10+Math.min(80,Math.floor(a*8/32)*10),u.push(f))}return r&&u.length&&(u.sort(function(b,A){return b.line==="auto"||A.line==="auto"?0:b.line>8&&A.line>8?A.line-b.line:b.line-A.line}),u.forEach(function(b){return Object(_.addCueToTrack)(r,b)})),u}};Y.default=m},"./src/utils/discontinuities.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"findFirstFragWithCC",function(){return C}),P.d(Y,"shouldAlignOnDiscontinuities",function(){return m}),P.d(Y,"findDiscontinuousReferenceFrag",function(){return c}),P.d(Y,"adjustSlidingStart",function(){return n}),P.d(Y,"alignStream",function(){return e}),P.d(Y,"alignPDT",function(){return u}),P.d(Y,"alignFragmentByPDTDelta",function(){return o}),P.d(Y,"alignMediaPlaylistByPDT",function(){return f});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/logger.ts"),_=P("./src/controller/level-helper.ts");function C(d,a){for(var h=null,g=0,p=d.length;gh.startCC||d&&d.cc=this.minWeight_},C.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},C.destroy=function(){},_}();Y.default=E},"./src/utils/ewma.ts":function(ue,Y,P){"use strict";P.r(Y);var y=function(){function E(C,m,c){m===void 0&&(m=0),c===void 0&&(c=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=C,this.alpha_=C?Math.exp(Math.log(.5)/C):0,this.estimate_=m,this.totalWeight_=c}var _=E.prototype;return _.sample=function(m,c){var r=Math.pow(this.alpha_,m);this.estimate_=c*(1-r)+r*this.estimate_,this.totalWeight_+=m},_.getTotalWeight=function(){return this.totalWeight_},_.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},E}();Y.default=y},"./src/utils/fetch-loader.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"fetchSupported",function(){return o});var y=P("./src/polyfills/number.ts"),E=P("./src/loader/load-stats.ts"),_=P("./src/demux/chunk-cache.ts");function C(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,e(g,p)}function m(g){var p=typeof Map=="function"?new Map:void 0;return m=function(w){if(w===null||!n(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof p!="undefined"){if(p.has(w))return p.get(w);p.set(w,B)}function B(){return c(w,arguments,s(this).constructor)}return B.prototype=Object.create(w.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),e(B,w)},m(g)}function c(g,p,S){return r()?c=Reflect.construct:c=function(B,b,A){var l=[null];l.push.apply(l,b);var i=Function.bind.apply(B,l),x=new i;return A&&e(x,A.prototype),x},c.apply(null,arguments)}function r(){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(g){return!1}}function n(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function e(g,p){return e=Object.setPrototypeOf||function(w,B){return w.__proto__=B,w},e(g,p)}function s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},s(g)}function u(){return u=Object.assign||function(g){for(var p=1;p=A&&l(B,b,i.flush(),w)):l(B,b,R,w),T()}).catch(function(){return Promise.reject()})};return O()},g}();function d(g,p){var S={method:"GET",mode:"cors",credentials:"same-origin",signal:p,headers:new self.Headers(u({},g.headers))};return g.rangeEnd&&S.headers.set("Range","bytes="+g.rangeStart+"-"+String(g.rangeEnd-1)),S}function a(g,p){return new self.Request(g.url,p)}var h=function(g){C(p,g);function p(S,w,B){var b;return b=g.call(this,S)||this,b.code=void 0,b.details=void 0,b.code=w,b.details=B,b}return p}(m(Error));Y.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"IMSC1_CODEC",function(){return n}),P.d(Y,"parseIMSC1",function(){return o});var y=P("./src/utils/mp4-tools.ts"),E=P("./src/utils/vttparser.ts"),_=P("./src/utils/vttcue.ts"),C=P("./src/demux/id3.ts"),m=P("./src/utils/timescale-conversion.ts"),c=P("./src/utils/webvtt-parser.ts");function r(){return r=Object.assign||function(A){for(var l=1;l"):y}function m(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),u=1;u>24,p[S+1]=w>>16&255,p[S+2]=w>>8&255,p[S+3]=w&255}function e(p,S){var w=[];if(!S.length)return w;var B,b,A;"data"in p?(B=p.data,b=p.start,A=p.end):(B=p,b=0,A=B.byteLength);for(var l=b;l1?l+i:A;if(x===S[0])if(S.length===1)w.push({data:B,start:l+8,end:O});else{var T=e({data:B,start:l+8,end:O},S.slice(1));T.length&&C.apply(w,T)}l=O}return w}function s(p){var S=e(p,["moov"]),w=S[0],B=w?w.end:null,b=e(p,["sidx"]);if(!b||!b[0])return null;var A=[],l=b[0],i=l.data[0],x=i===0?8:16,O=r(l,x);x+=4;var T=0,D=0;i===0?x+=8:x+=16,x+=2;var R=l.end+D,k=c(l,x);x+=2;for(var H=0;H>>31;if(G===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var N=r(l,J);J+=4,A.push({referenceSize:K,subsegmentDuration:N,info:{duration:N/O,start:R,end:R+K-1}}),R+=K,J+=4,x=J}return{earliestPresentationTime:T,timescale:O,version:i,referencesCount:k,references:A,moovEndOffset:B}}function u(p){for(var S=[],w=e(p,["moov","trak"]),B=0;Bm)&&(this.startTime=m),this.endTime=c,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},_.reset=function(){this.cueRanges=[]},E}()},"./src/utils/texttrack-utils.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"sendAddTrackEvent",function(){return E}),P.d(Y,"addCueToTrack",function(){return _}),P.d(Y,"clearCurrentCues",function(){return C}),P.d(Y,"removeCuesInRange",function(){return m}),P.d(Y,"getCuesInRange",function(){return r});var y=P("./src/utils/logger.ts");function E(n,e){var s;try{s=new Event("addtrack")}catch(u){s=document.createEvent("Event"),s.initEvent("addtrack",!1,!1)}s.track=n,e.dispatchEvent(s)}function _(n,e){var s=n.mode;if(s==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(o){y.logger.debug("[texttrack-utils]: "+o);var u=new self.TextTrackCue(e.startTime,e.endTime,e.text);u.id=e.id,n.addCue(u)}s==="disabled"&&(n.mode=s)}function C(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var s=n.cues.length;s--;)n.removeCue(n.cues[s]);e==="disabled"&&(n.mode=e)}function m(n,e,s){var u=n.mode;if(u==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var o=r(n.cues,e,s),f=0;fn[s].endTime)return-1;for(var u=0,o=s;u<=o;){var f=Math.floor((o+u)/2);if(en[f].startTime&&u-1)for(var f=o,d=n.length;f=e&&a.endTime<=s)u.push(a);else if(a.startTime>s)return u}return u}},"./src/utils/time-ranges.ts":function(ue,Y,P){"use strict";P.r(Y);var y={toString:function(_){for(var C="",m=_.length,c=0;c1?e-1:0),u=1;u100)throw new Error("Position must be between 0 and 100.");A=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",c({},o,{get:function(){return l},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");l=D,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",c({},o,{get:function(){return i},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");i=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",c({},o,{get:function(){return x},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");x=D,this.hasBeenReset=!0}})),u.displayState=void 0}return r.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},r}()},"./src/utils/vttparser.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"parseTimeStamp",function(){return _}),P.d(Y,"fixLineBreaks",function(){return e}),P.d(Y,"VTTParser",function(){return s});var y=P("./src/utils/vttcue.ts"),E=function(){function u(){}var o=u.prototype;return o.decode=function(d,a){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},u}();function _(u){function o(d,a,h,g){return(d|0)*3600+(a|0)*60+(h|0)+parseFloat(g||0)}var f=u.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?o(f[2],f[3],0,f[4]):o(f[1],f[2],f[3],f[4]):null}var C=function(){function u(){this.values=Object.create(null)}var o=u.prototype;return o.set=function(d,a){!this.get(d)&&a!==""&&(this.values[d]=a)},o.get=function(d,a,h){return h?this.has(d)?this.values[d]:a[h]:this.has(d)?this.values[d]:a},o.has=function(d){return d in this.values},o.alt=function(d,a,h){for(var g=0;g=0&&h<=100)return this.set(d,h),!0}return!1},u}();function m(u,o,f,d){var a=d?u.split(d):[u];for(var h in a){if(typeof a[h]!="string")continue;var g=a[h].split(f);if(g.length!==2)continue;var p=g[0],S=g[1];o(p,S)}}var c=new y.default(0,0,""),r=c.align==="middle"?"middle":"center";function n(u,o,f){var d=u;function a(){var p=_(u);if(p===null)throw new Error("Malformed timestamp: "+d);return u=u.replace(/^[^\sa-zA-Z-]+/,""),p}function h(p,S){var w=new C;m(p,function(A,l){var i;switch(A){case"region":for(var x=f.length-1;x>=0;x--)if(f[x].id===l){w.set(A,f[x].region);break}break;case"vertical":w.alt(A,l,["rl","lr"]);break;case"line":i=l.split(","),w.integer(A,i[0]),w.percent(A,i[0])&&w.set("snapToLines",!1),w.alt(A,i[0],["auto"]),i.length===2&&w.alt("lineAlign",i[1],["start",r,"end"]);break;case"position":i=l.split(","),w.percent(A,i[0]),i.length===2&&w.alt("positionAlign",i[1],["start",r,"end","line-left","line-right","auto"]);break;case"size":w.percent(A,l);break;case"align":w.alt(A,l,["start",r,"end","left","right"]);break}},/:/,/\s/),S.region=w.get("region",null),S.vertical=w.get("vertical","");var B=w.get("line","auto");B==="auto"&&c.line===-1&&(B=-1),S.line=B,S.lineAlign=w.get("lineAlign","start"),S.snapToLines=w.get("snapToLines",!0),S.size=w.get("size",100),S.align=w.get("align",r);var b=w.get("position","auto");b==="auto"&&c.position===50&&(b=S.align==="start"||S.align==="left"?0:S.align==="end"||S.align==="right"?100:50),S.position=b}function g(){u=u.replace(/^\s+/,"")}if(g(),o.startTime=a(),g(),u.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);u=u.substr(3),g(),o.endTime=a(),g(),h(u,o)}function e(u){return u.replace(//gi,` `)}var s=function(){function u(){this.state="INITIAL",this.buffer="",this.decoder=new E,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var o=u.prototype;return o.parse=function(d){var a=this;d&&(a.buffer+=a.decoder.decode(d,{stream:!0}));function h(){var b=a.buffer,A=0;for(b=e(b);A")===-1){a.cue.id=p;continue}case"CUE":if(!a.cue){a.state="BADCUE";continue}try{n(p,a.cue,a.regionList)}catch(b){a.cue=null,a.state="BADCUE";continue}a.state="CUETEXT";continue;case"CUETEXT":{var B=p.indexOf("-->")!==-1;if(!p||B&&(w=!0)){a.oncue&&a.cue&&a.oncue(a.cue),a.cue=null,a.state="ID";continue}if(a.cue===null)continue;a.cue.text&&(a.cue.text+=` `),a.cue.text+=p}continue;case"BADCUE":p||(a.state="ID")}}}catch(b){a.state==="CUETEXT"&&a.cue&&a.oncue&&a.oncue(a.cue),a.cue=null,a.state=a.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},o.flush=function(){var d=this;try{if((d.cue||d.state==="HEADER")&&(d.buffer+=` `,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(a){d.onparsingerror&&d.onparsingerror(a)}return d.onflush&&d.onflush(),this},u}()},"./src/utils/webvtt-parser.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"generateCueId",function(){return s}),P.d(Y,"parseWebVTT",function(){return o});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/vttparser.ts"),_=P("./src/demux/id3.ts"),C=P("./src/utils/timescale-conversion.ts"),m=P("./src/remux/mp4-remuxer.ts"),c=/\r\n|\n\r|\n|\r/g,r=function(d,a,h){return h===void 0&&(h=0),d.substr(h,a.length)===a},n=function(d){var a=parseInt(d.substr(-3)),h=parseInt(d.substr(-6,2)),g=parseInt(d.substr(-9,2)),p=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(y.isFiniteNumber)(a)||!Object(y.isFiniteNumber)(h)||!Object(y.isFiniteNumber)(g)||!Object(y.isFiniteNumber)(p))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return a+=1e3*h,a+=60*1e3*g,a+=60*60*1e3*p,a},e=function(d){for(var a=5381,h=d.length;h;)a=a*33^d.charCodeAt(--h);return(a>>>0).toString()};function s(f,d,a){return e(f.toString())+e(d.toString())+e(a)}var u=function(d,a,h){var g=d[a],p=d[g.prevCC];if(!p||!p.new&&g.new){d.ccOffset=d.presentationOffset=g.start,g.new=!1;return}for(;(S=p)!==null&&S!==void 0&&S.new;){var S;d.ccOffset+=g.start-p.start,g.new=!1,g=p,p=d[g.prevCC]}d.presentationOffset=h};function o(f,d,a,h,g,p,S,w){var B=new E.VTTParser,b=Object(_.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(c,` `).split(` `),A=[],l=Object(C.toMpegTsClockFromTimescale)(d,a),i="00:00.000",x=0,O=0,T,D=!0,R=!1;B.oncue=function(k){var H=h[g],J=h.ccOffset,U=(x-l)/9e4;if(H!=null&&H.new&&(O!==void 0?J=h.ccOffset=H.start:u(h,g,U)),U&&(J=U-h.presentationOffset),R){var K=k.endTime-k.startTime,G=Object(m.normalizePts)((k.startTime+J-O)*9e4,p*9e4)/9e4;k.startTime=G,k.endTime=G+K}var N=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(N)),k.id||(k.id=s(k.startTime,k.endTime,N)),k.endTime>0&&A.push(k)},B.onparsingerror=function(k){T=k},B.onflush=function(){if(T){w(T);return}S(A)},b.forEach(function(k){if(D)if(r(k,"X-TIMESTAMP-MAP=")){D=!1,R=!0,k.substr(16).split(",").forEach(function(H){r(H,"LOCAL:")?i=H.substr(6):r(H,"MPEGTS:")&&(x=parseInt(H.substr(7)))});try{O=n(i)/1e3}catch(H){R=!1,T=H}return}else k===""&&(D=!1);B.parse(k+` `)}),B.flush()}},"./src/utils/xhr-loader.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/utils/logger.ts"),E=P("./src/loader/load-stats.ts"),_=/^age:\s*[\d.]+\s*$/m,C=function(){function m(r){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=r?r.xhrSetup:null,this.stats=new E.LoadStats,this.retryDelay=0}var c=m.prototype;return c.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},c.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()))},c.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},c.load=function(n,e,s){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=e,this.callbacks=s,this.retryDelay=e.retryDelay,this.loadInternal()},c.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var s=this.loader=new self.XMLHttpRequest,u=this.stats;u.loading.first=0,u.loaded=0;var o=this.xhrSetup;try{if(o)try{o(s,e.url)}catch(a){s.open("GET",e.url,!0),o(s,e.url)}s.readyState||s.open("GET",e.url,!0);var f=this.context.headers;if(f)for(var d in f)s.setRequestHeader(d,f[d])}catch(a){this.callbacks.onError({code:s.status,text:a.message},e,s);return}e.rangeEnd&&s.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),s.onreadystatechange=this.readystatechange.bind(this),s.onprogress=this.loadprogress.bind(this),s.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),s.send()},c.readystatechange=function(){var n=this.context,e=this.loader,s=this.stats;if(!n||!e)return;var u=e.readyState,o=this.config;if(s.aborted)return;if(u>=2)if(self.clearTimeout(this.requestTimeout),s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start)),u===4){e.onreadystatechange=null,e.onprogress=null;var f=e.status;if(f>=200&&f<300){s.loading.end=Math.max(self.performance.now(),s.loading.first);var d,a;if(n.responseType==="arraybuffer"?(d=e.response,a=d.byteLength):(d=e.responseText,a=d.length),s.loaded=s.total=a,!this.callbacks)return;var h=this.callbacks.onProgress;if(h&&h(s,n,d,e),!this.callbacks)return;var g={url:e.responseURL,data:d};this.callbacks.onSuccess(g,s,n,e)}else s.retry>=o.maxRetry||f>=400&&f<499?(y.logger.error(f+" while loading "+n.url),this.callbacks.onError({code:f,text:e.statusText},n,e)):(y.logger.warn(f+" 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,o.maxRetryDelay),s.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout)},c.loadtimeout=function(){y.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},c.loadprogress=function(n){var e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},c.getCacheAge=function(){var n=null;if(this.loader&&_.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");n=e?parseFloat(e):null}return n},m}();Y.default=C}}).default})},vHTk:function(Ze,we,M){Ze.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Ze,we,M){var ue=M("SrGk"),Y=M("bYtY");function P(_,C){ue.call(this,_,C,["filter"],"__filter_in_use__","_shadowDom")}Y.inherits(P,ue),P.prototype.addWithoutUpdate=function(_,C){if(C&&y(C.style)){var m;if(C._shadowDom){m=C._shadowDom;var c=this.getDefs(!0);c.contains(C._shadowDom)||this.addDom(m)}else m=this.add(C);this.markUsed(C);var r=m.getAttribute("id");_.style.filter="url(#"+r+")"}},P.prototype.add=function(_){var C=this.createElement("filter");return _._shadowDomId=_._shadowDomId||this.nextId++,C.setAttribute("id","zr"+this._zrId+"-shadow-"+_._shadowDomId),this.updateDom(_,C),this.addDom(C),C},P.prototype.update=function(_,C){var m=C.style;if(y(m)){var c=this;ue.prototype.update.call(this,C,function(){c.updateDom(C,C._shadowDom)})}else this.remove(_,C)},P.prototype.remove=function(_,C){C._shadowDomId!=null&&(this.removeDom(_),_.style.filter="")},P.prototype.updateDom=function(_,C){var m=C.getElementsByTagName("feDropShadow");m.length===0?m=this.createElement("feDropShadow"):m=m[0];var c=_.style,r=_.scale&&_.scale[0]||1,n=_.scale&&_.scale[1]||1,e,s,u,o;if(c.shadowBlur||c.shadowOffsetX||c.shadowOffsetY)e=c.shadowOffsetX||0,s=c.shadowOffsetY||0,u=c.shadowBlur,o=c.shadowColor;else if(c.textShadowBlur)e=c.textShadowOffsetX||0,s=c.textShadowOffsetY||0,u=c.textShadowBlur,o=c.textShadowColor;else{this.removeDom(C,c);return}m.setAttribute("dx",e/r),m.setAttribute("dy",s/n),m.setAttribute("flood-color",o);var f=u/2/r,d=u/2/n,a=f+" "+d;m.setAttribute("stdDeviation",a),C.setAttribute("x","-100%"),C.setAttribute("y","-100%"),C.setAttribute("width",Math.ceil(u/2*200)+"%"),C.setAttribute("height",Math.ceil(u/2*200)+"%"),C.appendChild(m),_._shadowDom=C},P.prototype.markUsed=function(_){_._shadowDom&&ue.prototype.markUsed.call(this,_._shadowDom)};function y(_){return _&&(_.shadowBlur||_.shadowOffsetX||_.shadowOffsetY||_.textShadowBlur||_.textShadowOffsetX||_.textShadowOffsetY)}var E=P;Ze.exports=E},vUf6:function(Ze,we,M){Ze.exports=M.p+"static/xxtj.38a4bc0a.svg"},vWvF:function(Ze,we,M){var ue=M("Bq2U"),Y=M("SUKs"),P=M("bYtY"),y=P.isString,E=P.isFunction,_=P.isObject,C=P.isArrayLike,m=P.indexOf,c=function(){this.animators=[]};c.prototype={constructor:c,animate:function(u,o){var f,d=!1,a=this,h=this.__zr;if(u){var g=u.split("."),p=a;d=g[0]==="shape";for(var S=0,w=g.length;S0&&u.animate(o,!1).when(a==null?500:a,p).delay(h||0)}function e(u,o,f,d){if(!o)u.attr(f,d);else{var a={};a[o]={},a[o][f]=d,u.attr(a)}}var s=c;Ze.exports=s},w8Aa:function(Ze,we,M){Ze.exports={img:"img___3e4yQ"}},wCXF:function(Ze,we,M){"use strict";M.d(we,"a",function(){return le});var ue=M("rePB"),Y=M("VTBJ"),P=M("KQm4"),y=M("U8pU"),E=M("ODXe"),_=M("q1tI"),C=M("TSYQ"),m=M.n(C),c=M("Gytx"),r=M.n(c),n=M("Kwbf"),e=M("t23M"),s=M("qx4F"),u=M("6eGT"),o=M("IBYe"),f=M("Ff2n"),d=M("c+Xe"),a=M("fyJ8"),h=M("biw7");function g(Ke,ze,yt,Et,ct){var lt=yt[Ke]||{},rt=yt[ze]||{},qe,$e;lt.fixed==="left"?qe=Et.left[Ke]:rt.fixed==="right"&&($e=Et.right[ze]);var Pe=!1,je=!1,Ne=!1,et=!1,mt=yt[ze+1],At=yt[Ke-1];if(ct==="rtl"){if(qe!==void 0){var Ut=At&&At.fixed==="left";et=!Ut}else if($e!==void 0){var Xt=mt&&mt.fixed==="right";Ne=!Xt}}else if(qe!==void 0){var un=mt&&mt.fixed==="left";Pe=!un}else if($e!==void 0){var jt=At&&At.fixed==="right";je=!jt}return{fixLeft:qe,fixRight:$e,lastFixLeft:Pe,firstFixRight:je,lastFixRight:Ne,firstFixLeft:et,isSticky:Et.isSticky}}var p=M("sR1s");function S(Ke){var ze=Ke.cells,yt=Ke.stickyOffsets,Et=Ke.flattenColumns,ct=Ke.rowComponent,lt=Ke.cellComponent,rt=Ke.onHeaderRow,qe=Ke.index,$e=_.useContext(h.a),Pe=$e.prefixCls,je=$e.direction,Ne;rt&&(Ne=rt(ze.map(function(mt){return mt.column}),qe));var et=Object(p.a)(ze.map(function(mt){return mt.column}));return _.createElement(ct,Object.assign({},Ne),ze.map(function(mt,At){var Ut=mt.column,Xt=g(mt.colStart,mt.colEnd,Et,yt,je),un;return Ut&&Ut.onHeaderCell&&(un=mt.column.onHeaderCell(Ut)),_.createElement(a.a,Object.assign({},mt,{ellipsis:Ut.ellipsis,align:Ut.align,component:lt,prefixCls:Pe,key:et[At]},Xt,{additionalProps:un,rowType:"header"}))}))}S.displayName="HeaderRow";var w=S;function B(Ke){var ze=[];function yt(rt,qe){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ze[$e]=ze[$e]||[];var Pe=qe,je=rt.filter(Boolean).map(function(Ne){var et={key:Ne.key,className:Ne.className||"",children:Ne.title,column:Ne,colStart:Pe},mt=1,At=Ne.children;return At&&At.length>0&&(mt=yt(At,Pe,$e+1).reduce(function(Ut,Xt){return Ut+Xt},0),et.hasSubColumns=!0),"colSpan"in Ne&&(mt=Ne.colSpan),"rowSpan"in Ne&&(et.rowSpan=Ne.rowSpan),et.colSpan=mt,et.colEnd=et.colStart+mt-1,ze[$e].push(et),Pe+=mt,mt});return je}yt(Ke,0);for(var Et=ze.length,ct=function(qe){ze[qe].forEach(function($e){!("rowSpan"in $e)&&!$e.hasSubColumns&&($e.rowSpan=Et-qe)})},lt=0;lt=0;qe-=1){var $e=ze[qe],Pe=yt&&yt[qe],je=Pe&&Pe[l.a];($e||je||rt)&&(ct.unshift(_.createElement("col",Object.assign({key:qe,style:{width:$e,minWidth:$e}},je))),rt=!0)}return _.createElement("colgroup",null,ct)}var x=i;function O(Ke,ze){return Object(_.useMemo)(function(){for(var yt=[],Et=0;Et1?ye-1:0),be=1;be=Ne&&(vn=Ne-et),rt({scrollLeft:vn/Ne*(je+2)}),jt.current.x=bt.pageX},ft=function(){var bt=Object(ke.b)(lt.current).top,Ht=bt+lt.current.offsetHeight,Gt=document.documentElement.scrollTop+window.innerHeight;Ht-Object(s.a)()<=Gt||bt>=Gt-qe?un(function(xn){return Object(Y.a)(Object(Y.a)({},xn),{},{isHiddenScrollBar:!0})}):un(function(xn){return Object(Y.a)(Object(Y.a)({},xn),{},{isHiddenScrollBar:!1})})},It=function(bt){un(function(Ht){return Object(Y.a)(Object(Y.a)({},Ht),{},{scrollLeft:bt/je*Ne||0})})};return _.useImperativeHandle(yt,function(){return{setScrollLeft:It}}),_.useEffect(function(){var Ot=Object(Fe.a)(document.body,"mouseup",Re,!1),bt=Object(Fe.a)(document.body,"mousemove",St,!1);return ft(),function(){Ot.remove(),bt.remove()}},[et,Tt]),_.useEffect(function(){var Ot=Object(Fe.a)(window,"scroll",ft,!1),bt=Object(Fe.a)(window,"resize",ft,!1);return function(){Ot.remove(),bt.remove()}},[]),_.useEffect(function(){Xt.isHiddenScrollBar||un(function(Ot){var bt,Ht;return Object(Y.a)(Object(Y.a)({},Ot),{},{scrollLeft:lt.current.scrollLeft/((bt=lt.current)===null||bt===void 0?void 0:bt.scrollWidth)*((Ht=lt.current)===null||Ht===void 0?void 0:Ht.clientWidth)})})},[Xt.isHiddenScrollBar]),je<=Ne||!et||Xt.isHiddenScrollBar?null:_.createElement("div",{style:{height:Object(s.a)(),width:Ne,bottom:qe},className:"".concat(Pe,"-sticky-scroll")},_.createElement("div",{onMouseDown:We,ref:mt,className:m()("".concat(Pe,"-sticky-scroll-bar"),Object(ue.a)({},"".concat(Pe,"-sticky-scroll-bar-active"),Tt)),style:{width:"".concat(et,"px"),transform:"translate3d(".concat(Xt.scrollLeft,"px, 0, 0)")}}))},F=_.forwardRef(re);function W(Ke,ze){return _.useMemo(function(){var yt=!!Ke;return{isSticky:yt,stickyClassName:yt?"".concat(ze,"-sticky-header"):"",offsetHeader:Object(y.a)(Ke)==="object"&&Ke.offsetHeader||0,offsetScroll:Object(y.a)(Ke)==="object"&&Ke.offsetScroll||0}},[Ke,ze])}var de=[],ne={},le="rc-table-internal-hook",De=_.memo(function(Ke){var ze=Ke.children;return ze},function(Ke,ze){return r()(Ke.props,ze.props)?Ke.pingLeft!==ze.pingLeft||Ke.pingRight!==ze.pingRight:!1});function Xe(Ke){var ze,yt=Ke.prefixCls,Et=Ke.className,ct=Ke.rowClassName,lt=Ke.style,rt=Ke.data,qe=Ke.rowKey,$e=Ke.scroll,Pe=Ke.tableLayout,je=Ke.direction,Ne=Ke.title,et=Ke.footer,mt=Ke.summary,At=Ke.id,Ut=Ke.showHeader,Xt=Ke.components,un=Ke.emptyText,jt=Ke.onRow,Zt=Ke.onHeaderRow,Mt=Ke.internalHooks,Tt=Ke.transformColumns,Ct=Ke.internalRefs,Re=Ke.sticky,We=rt||de,St=!!We.length,ft=_.useState(0),It=Object(E.a)(ft,2),Ot=It[0],bt=It[1];_.useEffect(function(){bt(Object(s.a)())});var Ht=_.useMemo(function(){return Object(p.c)(Xt,{})},[Xt]),Gt=_.useCallback(function(va,oa){return Object(p.b)(Ht,va)||oa},[Ht]),xn=_.useMemo(function(){return typeof qe=="function"?qe:function(va){var oa=va&&va[qe];return oa}},[qe]),vn=Object(l.c)(Ke),sr=vn.expandIcon,xr=vn.expandedRowKeys,Kn=vn.defaultExpandedRowKeys,En=vn.defaultExpandAllRows,Qr=vn.expandedRowRender,sa=vn.onExpand,Xr=vn.onExpandedRowsChange,Nr=vn.expandRowByClick,ba=vn.rowExpandable,ja=vn.expandIconColumnIndex,oi=vn.expandedRowClassName,Le=vn.childrenColumnName,Qe=vn.indentSize,ot=sr||ce,_t=Le||"children",Kt=_.useMemo(function(){return Qr?"row":Ke.expandable&&Mt===le&&Ke.expandable.__PARENT_RENDER_ICON__||We.some(function(va){return va&&Object(y.a)(va)==="object"&&va[_t]})?"nest":!1},[!!Qr,We]),nn=_.useState(function(){return Kn||(En?Ie(We,xn,_t):[])}),ve=Object(E.a)(nn,2),z=ve[0],Z=ve[1],ye=_.useMemo(function(){return new Set(xr||z||[])},[xr,z]),Ce=_.useCallback(function(va){var oa=xn(va,We.indexOf(va)),ua,to=ye.has(oa);to?(ye.delete(oa),ua=Object(P.a)(ye)):ua=[].concat(Object(P.a)(ye),[oa]),Z(ua),sa&&sa(!to,va),Xr&&Xr(ua)},[xn,ye,We,sa,Xr]),be=_.useState(0),ht=Object(E.a)(be,2),Nt=ht[0],sn=ht[1],pn=Object(me.b)(Object(Y.a)(Object(Y.a)(Object(Y.a)({},Ke),vn),{},{expandable:!!Qr,expandedKeys:ye,getRowKey:xn,onTriggerExpand:Ce,expandIcon:ot,expandIconColumnIndex:ja,direction:je}),Mt===le?Tt:null),zt=Object(E.a)(pn,2),qn=zt[0],Un=zt[1],rr=_.useMemo(function(){return{columns:qn,flattenColumns:Un}},[qn,Un]),Sr=_.useRef(),ia=_.useRef(),Dr=_.useRef(),na=_.useState(!1),Tr=Object(E.a)(na,2),ma=Tr[0],ha=Tr[1],Oa=_.useState(!1),xa=Object(E.a)(Oa,2),ka=xa[0],Ha=xa[1],Ia=Ae(new Map),Yr=Object(E.a)(Ia,2),za=Yr[0],Ga=Yr[1],Da=Object(p.a)(Un),si=Da.map(function(va){return za.get(va)}),di=_.useMemo(function(){return si},[si.join("_")]),Ma=he(di,Un.length,je),zr=$e&&Object(p.d)($e.y),Ar=$e&&Object(p.d)($e.x),Gr=Ar&&Un.some(function(va){var oa=va.fixed;return oa}),qr=_.useRef(),_a=W(Re,yt),Jr=_a.isSticky,ji=_a.offsetHeader,Fa=_a.offsetScroll,vi=_a.stickyClassName,vo,Wo,Ca;zr&&(Wo={overflowY:"scroll",maxHeight:$e.y}),Ar&&(vo={overflowX:"auto"},zr||(Wo={overflowY:"hidden"}),Ca={width:$e.x===!0?"auto":$e.x,minWidth:"100%"});var Ro=_.useCallback(function(va,oa){Ga(function(ua){var to=new Map(ua);return to.set(va,oa),to})},[]),hi=Ee(null),os=Object(E.a)(hi,2),eo=os[0],ss=os[1];function Jo(va,oa){if(!oa)return;typeof oa=="function"?oa(va):oa.scrollLeft!==va&&(oa.scrollLeft=va)}var Ui=function(oa){var ua=oa.currentTarget,to=oa.scrollLeft,ls=typeof to=="number"?to:ua.scrollLeft,us=ua||ne;if(!ss()||ss()===us){var Is;eo(us),Jo(ls,ia.current),Jo(ls,Dr.current),Jo(ls,(Is=qr.current)===null||Is===void 0?void 0:Is.setScrollLeft)}if(ua){var xs=ua.scrollWidth,js=ua.clientWidth;ha(ls>0),Ha(ls * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License */(function(ue,Y){Ze.exports=Y()})(this,function(){"use strict";/*! ***************************************************************************** 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 ue=function(q,V){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,$){ee.__proto__=$}||function(ee,$){for(var Se in $)Object.prototype.hasOwnProperty.call($,Se)&&(ee[Se]=$[Se])},ue(q,V)};function Y(q,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");ue(q,V);function ee(){this.constructor=q}q.prototype=V===null?Object.create(V):(ee.prototype=V.prototype,new ee)}var P=function(){return P=Object.assign||function(V){for(var ee,$=1,Se=arguments.length;$0&&Ue[Ue.length-1])&&(Rt[0]===6||Rt[0]===2)){ee=0;continue}if(Rt[0]===3&&(!Ue||Rt[1]>Ue[0]&&Rt[1]=55296&&Se<=56319&&ee<$){var Ue=q.charCodeAt(ee++);(Ue&64512)===56320?V.push(((Se&1023)<<10)+(Ue&1023)+65536):(V.push(Se),ee--)}else V.push(Se)}return V},n=function(){for(var q=[],V=0;V>10)+55296,tt%1024+56320)),(Se+1===ee||$.length>16384)&&(Ue+=String.fromCharCode.apply(String,$),$.length=0)}return Ue},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),u=0;u>4,Ft[Se++]=(tt&15)<<4|vt>>2,Ft[Se++]=(vt&3)<<6|pt&63;return Rt},h=function(q){for(var V=q.length,ee=[],$=0;$>p,A=1<>p,x=b+i,O=x,T=2048>>6,D=O+T,R=65536>>S,k=1<=0){if(V<55296||V>56319&&V<=65535)return ee=this.index[V>>p],ee=(ee<>p)],ee=(ee<>S),ee=this.index[ee],ee+=V>>p&H,ee=this.index[ee],ee=(ee<oe?(Se.push(!0),vt-=oe):Se.push(!1),["normal","auto","loose"].indexOf(V)!==-1&&[8208,8211,12316,12448].indexOf(Ue)!==-1)return $.push(tt),ee.push(re);if(vt===Ae||vt===ge){if(tt===0)return $.push(tt),ee.push(lt);var pt=ee[tt-1];return Ot.indexOf(pt)===-1?($.push($[tt-1]),ee.push(pt)):($.push(tt),ee.push(lt))}if($.push(tt),vt===rt)return ee.push(V==="strict"?le:et);if(vt===un)return ee.push(lt);if(vt===ct)return ee.push(lt);if(vt===jt)return Ue>=131072&&Ue<=196605||Ue>=196608&&Ue<=262141?ee.push(et):ee.push(lt);ee.push(vt)}),[$,ee,Se]},xn=function(q,V,ee,$){var Se=$[ee];if(Array.isArray(q)?q.indexOf(Se)!==-1:q===Se)for(var Ue=ee;Ue<=$.length;){Ue++;var tt=$[Ue];if(tt===V)return!0;if(tt!==fe)break}if(Se===fe)for(var Ue=ee;Ue>0;){Ue--;var vt=$[Ue];if(Array.isArray(q)?q.indexOf(vt)!==-1:q===vt)for(var pt=ee;pt<=$.length;){pt++;var tt=$[pt];if(tt===V)return!0;if(tt!==fe)break}if(vt!==fe)break}return!1},vn=function(q,V){for(var ee=q;ee>=0;){var $=V[ee];if($===fe)ee--;else return $}return 0},sr=function(q,V,ee,$,Se){if(ee[$]===0)return Tt;var Ue=$-1;if(Array.isArray(Se)&&Se[Ue]===!0)return Tt;var tt=Ue-1,vt=Ue+1,pt=V[Ue],Rt=tt>=0?V[tt]:0,Ft=V[vt];if(pt===se&&Ft===_e)return Tt;if(St.indexOf(pt)!==-1)return Mt;if(St.indexOf(Ft)!==-1)return Tt;if(ft.indexOf(Ft)!==-1)return Tt;if(vn(Ue,V)===he)return Ct;if(Re.get(q[Ue])===ge)return Tt;if((pt===qe||pt===$e)&&Re.get(q[vt])===ge)return Tt;if(pt===pe||Ft===pe)return Tt;if(pt===ie)return Tt;if([fe,Ie,ke].indexOf(pt)===-1&&Ft===ie)return Tt;if([F,W,de,xt,Et].indexOf(Ft)!==-1)return Tt;if(vn(Ue,V)===De)return Tt;if(xn(Xe,De,Ue,V))return Tt;if(xn([F,W],le,Ue,V))return Tt;if(xn(ce,ce,Ue,V))return Tt;if(pt===fe)return Ct;if(pt===Xe||Ft===Xe)return Tt;if(Ft===re||pt===re)return Ct;if([Ie,ke,le].indexOf(Ft)!==-1||pt===Fe)return Tt;if(Rt===Ne&&Ht.indexOf(pt)!==-1)return Tt;if(pt===Et&&Ft===Ne)return Tt;if(Ft===ne)return Tt;if(We.indexOf(Ft)!==-1&&pt===Ke||We.indexOf(pt)!==-1&&Ft===Ke)return Tt;if(pt===yt&&[et,qe,$e].indexOf(Ft)!==-1||[et,qe,$e].indexOf(pt)!==-1&&Ft===ze)return Tt;if(We.indexOf(pt)!==-1&&It.indexOf(Ft)!==-1||It.indexOf(pt)!==-1&&We.indexOf(Ft)!==-1)return Tt;if([yt,ze].indexOf(pt)!==-1&&(Ft===Ke||[De,ke].indexOf(Ft)!==-1&&V[vt+1]===Ke)||[De,ke].indexOf(pt)!==-1&&Ft===Ke||pt===Ke&&[Ke,Et,xt].indexOf(Ft)!==-1)return Tt;if([Ke,Et,xt,F,W].indexOf(Ft)!==-1)for(var Jt=Ue;Jt>=0;){var en=V[Jt];if(en===Ke)return Tt;if([Et,xt].indexOf(en)!==-1)Jt--;else break}if([yt,ze].indexOf(Ft)!==-1)for(var Jt=[F,W].indexOf(pt)!==-1?tt:Ue;Jt>=0;){var en=V[Jt];if(en===Ke)return Tt;if([Et,xt].indexOf(en)!==-1)Jt--;else break}if(mt===pt&&[mt,At,Pe,je].indexOf(Ft)!==-1||[At,Pe].indexOf(pt)!==-1&&[At,Ut].indexOf(Ft)!==-1||[Ut,je].indexOf(pt)!==-1&&Ft===Ut)return Tt;if(bt.indexOf(pt)!==-1&&[ne,ze].indexOf(Ft)!==-1||bt.indexOf(Ft)!==-1&&pt===yt)return Tt;if(We.indexOf(pt)!==-1&&We.indexOf(Ft)!==-1)return Tt;if(pt===xt&&We.indexOf(Ft)!==-1)return Tt;if(We.concat(Ke).indexOf(pt)!==-1&&Ft===De&&Zt.indexOf(q[vt])===-1||We.concat(Ke).indexOf(Ft)!==-1&&pt===W)return Tt;if(pt===Xt&&Ft===Xt){for(var br=ee[Ue],Nn=1;br>0&&(br--,V[br]===Xt);)Nn++;if(Nn%2!==0)return Tt}return pt===qe&&Ft===$e?Tt:Ct},xr=function(q,V){V||(V={lineBreak:"normal",wordBreak:"normal"});var ee=Gt(q,V.lineBreak),$=ee[0],Se=ee[1],Ue=ee[2];(V.wordBreak==="break-all"||V.wordBreak==="break-word")&&(Se=Se.map(function(vt){return[Ke,lt,un].indexOf(vt)!==-1?et:vt}));var tt=V.wordBreak==="keep-all"?Ue.map(function(vt,pt){return vt&&q[pt]>=19968&&q[pt]<=40959}):void 0;return[$,Se,tt]},Kn=function(){function q(V,ee,$,Se){this.codePoints=V,this.required=ee===Mt,this.start=$,this.end=Se}return q.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},q}(),En=function(q,V){var ee=r(q),$=xr(ee,V),Se=$[0],Ue=$[1],tt=$[2],vt=ee.length,pt=0,Rt=0;return{next:function(){if(Rt>=vt)return{done:!0,value:null};for(var Ft=Tt;Rt=zr&&q<=57},Ro=function(q){return q>=55296&&q<=57343},hi=function(q){return Ca(q)||q>=ji&&q<=vi||q>=Ar&&q<=qr},os=function(q){return q>=Ar&&q<=Jr},eo=function(q){return q>=ji&&q<=Wo},ss=function(q){return os(q)||eo(q)},Jo=function(q){return q>=Tr},Ui=function(q){return q===ba||q===Le||q===Qe},Zo=function(q){return ss(q)||Jo(q)||q===Ce},ps=function(q){return Zo(q)||Ca(q)||q===be},kn=function(q){return q>=Yr&&q<=za||q===Ga||q>=Da&&q<=si||q===di},Cr=function(q,V){return q!==oi?!1:V!==ba},gr=function(q,V,ee){return q===be?Zo(V)||Cr(V,ee):Zo(q)?!0:!!(q===oi&&Cr(q,V))},Vr=function(q,V,ee){return q===Oa||q===be?Ca(V)?!0:V===Ia&&Ca(ee):q===Ia?Ca(V):Ca(q)},Aa=function(q){var V=0,ee=1;(q[V]===Oa||q[V]===be)&&(q[V]===be&&(ee=-1),V++);for(var $=[];Ca(q[V]);)$.push(q[V++]);var Se=$.length?parseInt(n.apply(void 0,$),10):0;q[V]===Ia&&V++;for(var Ue=[];Ca(q[V]);)Ue.push(q[V++]);var tt=Ue.length,vt=tt?parseInt(n.apply(void 0,Ue),10):0;(q[V]===Fa||q[V]===Gr)&&V++;var pt=1;(q[V]===Oa||q[V]===be)&&(q[V]===be&&(pt=-1),V++);for(var Rt=[];Ca(q[V]);)Rt.push(q[V++]);var Ft=Rt.length?parseInt(n.apply(void 0,Rt),10):0;return ee*(Se+vt*Math.pow(10,-tt))*Math.pow(10,pt*Ft)},Sa={type:2},la={type:3},Ai={type:4},Hi={type:13},ra={type:8},zo={type:21},fa={type:9},Si={type:10},uo={type:11},Gi={type:12},va={type:14},oa={type:23},ua={type:1},to={type:25},ls={type:24},us={type:26},Is={type:27},xs={type:28},js={type:29},Zs={type:31},cs={type:32},dl=function(){function q(){this._value=[]}return q.prototype.write=function(V){this._value=this._value.concat(r(V))},q.prototype.read=function(){for(var V=[],ee=this.consumeToken();ee!==cs;)V.push(ee),ee=this.consumeToken();return V},q.prototype.consumeToken=function(){var V=this.consumeCodePoint();switch(V){case ot:return this.consumeStringToken(ot);case Kt:var ee=this.peekCodePoint(0),$=this.peekCodePoint(1),Se=this.peekCodePoint(2);if(ps(ee)||Cr($,Se)){var Ue=gr(ee,$,Se)?sa:Qr,tt=this.consumeName();return{type:5,value:tt,flags:Ue}}break;case nn:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),Hi;break;case z:return this.consumeStringToken(z);case Z:return Sa;case ye:return la;case ha:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),va;break;case Oa:if(Vr(V,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(V),this.consumeNumericToken();break;case xa:return Ai;case be:var vt=V,pt=this.peekCodePoint(0),Rt=this.peekCodePoint(1);if(Vr(vt,pt,Rt))return this.reconsumeCodePoint(V),this.consumeNumericToken();if(gr(vt,pt,Rt))return this.reconsumeCodePoint(V),this.consumeIdentLikeToken();if(pt===be&&Rt===sn)return this.consumeCodePoint(),this.consumeCodePoint(),ls;break;case Ia:if(Vr(V,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(V),this.consumeNumericToken();break;case ja:if(this.peekCodePoint(0)===ha)for(this.consumeCodePoint();;){var Ft=this.consumeCodePoint();if(Ft===ha&&(Ft=this.consumeCodePoint(),Ft===ja))return this.consumeToken();if(Ft===Ma)return this.consumeToken()}break;case ka:return us;case Ha:return Is;case Nt:if(this.peekCodePoint(0)===ht&&this.peekCodePoint(1)===be&&this.peekCodePoint(2)===be)return this.consumeCodePoint(),this.consumeCodePoint(),to;break;case pn:var Jt=this.peekCodePoint(0),en=this.peekCodePoint(1),br=this.peekCodePoint(2);if(gr(Jt,en,br)){var tt=this.consumeName();return{type:7,value:tt}}break;case zt:return xs;case oi:if(Cr(V,this.peekCodePoint(0)))return this.reconsumeCodePoint(V),this.consumeIdentLikeToken();break;case qn:return js;case Un:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),ra;break;case rr:return uo;case ia:return Gi;case _a:case vo:var Nn=this.peekCodePoint(0),dr=this.peekCodePoint(1);return Nn===Oa&&(hi(dr)||dr===Sr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(V),this.consumeIdentLikeToken();case Dr:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),fa;if(this.peekCodePoint(0)===Dr)return this.consumeCodePoint(),zo;break;case na:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),Si;break;case Ma:return cs}return Ui(V)?(this.consumeWhiteSpace(),Zs):Ca(V)?(this.reconsumeCodePoint(V),this.consumeNumericToken()):Zo(V)?(this.reconsumeCodePoint(V),this.consumeIdentLikeToken()):{type:6,value:n(V)}},q.prototype.consumeCodePoint=function(){var V=this._value.shift();return typeof V=="undefined"?-1:V},q.prototype.reconsumeCodePoint=function(V){this._value.unshift(V)},q.prototype.peekCodePoint=function(V){return V>=this._value.length?-1:this._value[V]},q.prototype.consumeUnicodeRangeToken=function(){for(var V=[],ee=this.consumeCodePoint();hi(ee)&&V.length<6;)V.push(ee),ee=this.consumeCodePoint();for(var $=!1;ee===Sr&&V.length<6;)V.push(ee),ee=this.consumeCodePoint(),$=!0;if($){var Se=parseInt(n.apply(void 0,V.map(function(pt){return pt===Sr?zr:pt})),16),Ue=parseInt(n.apply(void 0,V.map(function(pt){return pt===Sr?vi:pt})),16);return{type:30,start:Se,end:Ue}}var tt=parseInt(n.apply(void 0,V),16);if(this.peekCodePoint(0)===be&&hi(this.peekCodePoint(1))){this.consumeCodePoint(),ee=this.consumeCodePoint();for(var vt=[];hi(ee)&&vt.length<6;)vt.push(ee),ee=this.consumeCodePoint();var Ue=parseInt(n.apply(void 0,vt),16);return{type:30,start:tt,end:Ue}}else return{type:30,start:tt,end:tt}},q.prototype.consumeIdentLikeToken=function(){var V=this.consumeName();return V.toLowerCase()==="url"&&this.peekCodePoint(0)===Z?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Z?(this.consumeCodePoint(),{type:19,value:V}):{type:20,value:V}},q.prototype.consumeUrlToken=function(){var V=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ma)return{type:22,value:""};var ee=this.peekCodePoint(0);if(ee===z||ee===ot){var $=this.consumeStringToken(this.consumeCodePoint());return $.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ma||this.peekCodePoint(0)===ye)?(this.consumeCodePoint(),{type:22,value:$.value}):(this.consumeBadUrlRemnants(),oa)}for(;;){var Se=this.consumeCodePoint();if(Se===Ma||Se===ye)return{type:22,value:n.apply(void 0,V)};if(Ui(Se))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ma||this.peekCodePoint(0)===ye?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,V)}):(this.consumeBadUrlRemnants(),oa);if(Se===ot||Se===z||Se===Z||kn(Se))return this.consumeBadUrlRemnants(),oa;if(Se===oi)if(Cr(Se,this.peekCodePoint(0)))V.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),oa;else V.push(Se)}},q.prototype.consumeWhiteSpace=function(){for(;Ui(this.peekCodePoint(0));)this.consumeCodePoint()},q.prototype.consumeBadUrlRemnants=function(){for(;;){var V=this.consumeCodePoint();if(V===ye||V===Ma)return;Cr(V,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},q.prototype.consumeStringSlice=function(V){for(var ee=5e4,$="";V>0;){var Se=Math.min(ee,V);$+=n.apply(void 0,this._value.splice(0,Se)),V-=Se}return this._value.shift(),$},q.prototype.consumeStringToken=function(V){var ee="",$=0;do{var Se=this._value[$];if(Se===Ma||Se===void 0||Se===V)return ee+=this.consumeStringSlice($),{type:0,value:ee};if(Se===ba)return this._value.splice(0,$),ua;if(Se===oi){var Ue=this._value[$+1];Ue!==Ma&&Ue!==void 0&&(Ue===ba?(ee+=this.consumeStringSlice($),$=-1,this._value.shift()):Cr(Se,Ue)&&(ee+=this.consumeStringSlice($),ee+=n(this.consumeEscapedCodePoint()),$=-1))}$++}while(!0)},q.prototype.consumeNumber=function(){var V=[],ee=Xr,$=this.peekCodePoint(0);for(($===Oa||$===be)&&V.push(this.consumeCodePoint());Ca(this.peekCodePoint(0));)V.push(this.consumeCodePoint());$=this.peekCodePoint(0);var Se=this.peekCodePoint(1);if($===Ia&&Ca(Se))for(V.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=Nr;Ca(this.peekCodePoint(0));)V.push(this.consumeCodePoint());$=this.peekCodePoint(0),Se=this.peekCodePoint(1);var Ue=this.peekCodePoint(2);if(($===Fa||$===Gr)&&((Se===Oa||Se===be)&&Ca(Ue)||Ca(Se)))for(V.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=Nr;Ca(this.peekCodePoint(0));)V.push(this.consumeCodePoint());return[Aa(V),ee]},q.prototype.consumeNumericToken=function(){var V=this.consumeNumber(),ee=V[0],$=V[1],Se=this.peekCodePoint(0),Ue=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(gr(Se,Ue,tt)){var vt=this.consumeName();return{type:15,number:ee,flags:$,unit:vt}}return Se===ve?(this.consumeCodePoint(),{type:16,number:ee,flags:$}):{type:17,number:ee,flags:$}},q.prototype.consumeEscapedCodePoint=function(){var V=this.consumeCodePoint();if(hi(V)){for(var ee=n(V);hi(this.peekCodePoint(0))&&ee.length<6;)ee+=n(this.consumeCodePoint());Ui(this.peekCodePoint(0))&&this.consumeCodePoint();var $=parseInt(ee,16);return $===0||Ro($)||$>1114111?ma:$}return V===Ma?ma:V},q.prototype.consumeName=function(){for(var V="";;){var ee=this.consumeCodePoint();if(ps(ee))V+=n(ee);else if(Cr(ee,this.peekCodePoint(0)))V+=n(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(ee),V}},q}(),$s=function(){function q(V){this._tokens=V}return q.create=function(V){var ee=new dl;return ee.write(V),new q(ee.read())},q.parseValue=function(V){return q.create(V).parseComponentValue()},q.parseValues=function(V){return q.create(V).parseComponentValues()},q.prototype.parseComponentValue=function(){for(var V=this.consumeToken();V.type===31;)V=this.consumeToken();if(V.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(V);var ee=this.consumeComponentValue();do V=this.consumeToken();while(V.type===31);if(V.type===32)return ee;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},q.prototype.parseComponentValues=function(){for(var V=[];;){var ee=this.consumeComponentValue();if(ee.type===32)return V;V.push(ee),V.push()}},q.prototype.consumeComponentValue=function(){var V=this.consumeToken();switch(V.type){case 11:case 28:case 2:return this.consumeSimpleBlock(V.type);case 19:return this.consumeFunction(V)}return V},q.prototype.consumeSimpleBlock=function(V){for(var ee={type:V,values:[]},$=this.consumeToken();;){if($.type===32||Ye($,V))return ee;this.reconsumeToken($),ee.values.push(this.consumeComponentValue()),$=this.consumeToken()}},q.prototype.consumeFunction=function(V){for(var ee={name:V.value,values:[],type:18};;){var $=this.consumeToken();if($.type===32||$.type===3)return ee;this.reconsumeToken($),ee.values.push(this.consumeComponentValue())}},q.prototype.consumeToken=function(){var V=this._tokens.shift();return typeof V=="undefined"?cs:V},q.prototype.reconsumeToken=function(V){this._tokens.unshift(V)},q}(),xo=function(q){return q.type===15},ms=function(q){return q.type===17},Qa=function(q){return q.type===20},_s=function(q){return q.type===0},_o=function(q,V){return Qa(q)&&q.value===V},Hs=function(q){return q.type!==31},ut=function(q){return q.type!==31&&q.type!==4},Ge=function(q){var V=[],ee=[];return q.forEach(function($){if($.type===4){if(ee.length===0)throw new Error("Error parsing function args, zero tokens for arg");V.push(ee),ee=[];return}$.type!==31&&ee.push($)}),ee.length&&V.push(ee),V},Ye=function(q,V){return V===11&&q.type===12||V===28&&q.type===29?!0:V===2&&q.type===3},Je=function(q){return q.type===17||q.type===15},Te=function(q){return q.type===16||Je(q)},Ve=function(q){return q.length>1?[q[0],q[1]]:[q[0]]},Be={type:17,number:0,flags:Xr},at={type:16,number:50,flags:Xr},nt={type:16,number:100,flags:Xr},st=function(q,V,ee){var $=q[0],Se=q[1];return[it($,V),it(typeof Se!="undefined"?Se:$,ee)]},it=function(q,V){if(q.type===16)return q.number/100*V;if(xo(q))switch(q.unit){case"rem":case"em":return 16*q.number;case"px":default:return q.number}return q.number},dt="deg",Dt="grad",Qt="rad",Bt="turn",$t={name:"angle",parse:function(q,V){if(V.type===15)switch(V.unit){case dt:return Math.PI*V.number/180;case Dt:return Math.PI/200*V.number;case Qt:return V.number;case Bt:return Math.PI*2*V.number}throw new Error("Unsupported angle type")}},ln=function(q){return q.type===15&&(q.unit===dt||q.unit===Dt||q.unit===Qt||q.unit===Bt)},On=function(q){var V=q.filter(Qa).map(function(ee){return ee.value}).join(" ");switch(V){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Be,Be];case"to top":case"bottom":return Wt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Be,nt];case"to right":case"left":return Wt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[nt,nt];case"to bottom":case"top":return Wt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[nt,Be];case"to left":case"right":return Wt(270)}return 0},Wt=function(q){return Math.PI*q/180},qt={name:"color",parse:function(q,V){if(V.type===18){var ee=hn[V.name];if(typeof ee=="undefined")throw new Error('Attempting to parse an unsupported color function "'+V.name+'"');return ee(q,V.values)}if(V.type===5){if(V.value.length===3){var $=V.value.substring(0,1),Se=V.value.substring(1,2),Ue=V.value.substring(2,3);return tn(parseInt($+$,16),parseInt(Se+Se,16),parseInt(Ue+Ue,16),1)}if(V.value.length===4){var $=V.value.substring(0,1),Se=V.value.substring(1,2),Ue=V.value.substring(2,3),tt=V.value.substring(3,4);return tn(parseInt($+$,16),parseInt(Se+Se,16),parseInt(Ue+Ue,16),parseInt(tt+tt,16)/255)}if(V.value.length===6){var $=V.value.substring(0,2),Se=V.value.substring(2,4),Ue=V.value.substring(4,6);return tn(parseInt($,16),parseInt(Se,16),parseInt(Ue,16),1)}if(V.value.length===8){var $=V.value.substring(0,2),Se=V.value.substring(2,4),Ue=V.value.substring(4,6),tt=V.value.substring(6,8);return tn(parseInt($,16),parseInt(Se,16),parseInt(Ue,16),parseInt(tt,16)/255)}}if(V.type===20){var vt=_n[V.value.toUpperCase()];if(typeof vt!="undefined")return vt}return _n.TRANSPARENT}},yn=function(q){return(255&q)===0},Rn=function(q){var V=255&q,ee=255&q>>8,$=255&q>>16,Se=255&q>>24;return V<255?"rgba("+Se+","+$+","+ee+","+V/255+")":"rgb("+Se+","+$+","+ee+")"},tn=function(q,V,ee,$){return(q<<24|V<<16|ee<<8|Math.round($*255)<<0)>>>0},bn=function(q,V){if(q.type===17)return q.number;if(q.type===16){var ee=V===3?1:255;return V===3?q.number/100*ee:Math.round(q.number/100*ee)}return 0},Ln=function(q,V){var ee=V.filter(ut);if(ee.length===3){var $=ee.map(bn),Se=$[0],Ue=$[1],tt=$[2];return tn(Se,Ue,tt,1)}if(ee.length===4){var vt=ee.map(bn),Se=vt[0],Ue=vt[1],tt=vt[2],pt=vt[3];return tn(Se,Ue,tt,pt)}return 0};function Xn(q,V,ee){return ee<0&&(ee+=1),ee>=1&&(ee-=1),ee<1/6?(V-q)*ee*6+q:ee<1/2?V:ee<2/3?(V-q)*6*(2/3-ee)+q:q}var rn=function(q,V){var ee=V.filter(ut),$=ee[0],Se=ee[1],Ue=ee[2],tt=ee[3],vt=($.type===17?Wt($.number):$t.parse(q,$))/(Math.PI*2),pt=Te(Se)?Se.number/100:0,Rt=Te(Ue)?Ue.number/100:0,Ft=typeof tt!="undefined"&&Te(tt)?it(tt,1):1;if(pt===0)return tn(Rt*255,Rt*255,Rt*255,1);var Jt=Rt<=.5?Rt*(pt+1):Rt+pt-Rt*pt,en=Rt*2-Jt,br=Xn(en,Jt,vt+1/3),Nn=Xn(en,Jt,vt),dr=Xn(en,Jt,vt-1/3);return tn(br*255,Nn*255,dr*255,Ft)},hn={hsl:rn,hsla:rn,rgb:Ln,rgba:Ln},An=function(q,V){return qt.parse(q,$s.create(V).parseComponentValue())},_n={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},tr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(q,V){return V.map(function(ee){if(Qa(ee))switch(ee.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cn={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fn=function(q,V){var ee=qt.parse(q,V[0]),$=V[1];return $&&Te($)?{color:ee,stop:$}:{color:ee,stop:null}},Ir=function(q,V){var ee=q[0],$=q[q.length-1];ee.stop===null&&(ee.stop=Be),$.stop===null&&($.stop=nt);for(var Se=[],Ue=0,tt=0;ttUe?Se.push(pt):Se.push(Ue),Ue=pt}else Se.push(null)}for(var Rt=null,tt=0;tttt.optimumDistance)?{optimumCorner:vt,optimumDistance:Ft}:tt},{optimumDistance:Se?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Qn=function(q,V,ee,$,Se){var Ue=0,tt=0;switch(q.size){case 0:q.shape===0?Ue=tt=Math.min(Math.abs(V),Math.abs(V-$),Math.abs(ee),Math.abs(ee-Se)):q.shape===1&&(Ue=Math.min(Math.abs(V),Math.abs(V-$)),tt=Math.min(Math.abs(ee),Math.abs(ee-Se)));break;case 2:if(q.shape===0)Ue=tt=Math.min(ur(V,ee),ur(V,ee-Se),ur(V-$,ee),ur(V-$,ee-Se));else if(q.shape===1){var vt=Math.min(Math.abs(ee),Math.abs(ee-Se))/Math.min(Math.abs(V),Math.abs(V-$)),pt=Fr($,Se,V,ee,!0),Rt=pt[0],Ft=pt[1];Ue=ur(Rt-V,(Ft-ee)/vt),tt=vt*Ue}break;case 1:q.shape===0?Ue=tt=Math.max(Math.abs(V),Math.abs(V-$),Math.abs(ee),Math.abs(ee-Se)):q.shape===1&&(Ue=Math.max(Math.abs(V),Math.abs(V-$)),tt=Math.max(Math.abs(ee),Math.abs(ee-Se)));break;case 3:if(q.shape===0)Ue=tt=Math.max(ur(V,ee),ur(V,ee-Se),ur(V-$,ee),ur(V-$,ee-Se));else if(q.shape===1){var vt=Math.max(Math.abs(ee),Math.abs(ee-Se))/Math.max(Math.abs(V),Math.abs(V-$)),Jt=Fr($,Se,V,ee,!1),Rt=Jt[0],Ft=Jt[1];Ue=ur(Rt-V,(Ft-ee)/vt),tt=vt*Ue}break}return Array.isArray(q.size)&&(Ue=it(q.size[0],$),tt=q.size.length===2?it(q.size[1],Se):Ue),[Ue,tt]},kr=function(q,V){var ee=Wt(180),$=[];return Ge(V).forEach(function(Se,Ue){if(Ue===0){var tt=Se[0];if(tt.type===20&&tt.value==="to"){ee=On(Se);return}else if(ln(tt)){ee=$t.parse(q,tt);return}}var vt=Fn(q,Se);$.push(vt)}),{angle:ee,stops:$,type:1}},ta=function(q,V){var ee=Wt(180),$=[];return Ge(V).forEach(function(Se,Ue){if(Ue===0){var tt=Se[0];if(tt.type===20&&["top","left","right","bottom"].indexOf(tt.value)!==-1){ee=On(Se);return}else if(ln(tt)){ee=($t.parse(q,tt)+Wt(270))%Wt(360);return}}var vt=Fn(q,Se);$.push(vt)}),{angle:ee,stops:$,type:1}},Wr=function(q,V){var ee=Wt(180),$=[],Se=1,Ue=0,tt=3,vt=[];return Ge(V).forEach(function(pt,Rt){var Ft=pt[0];if(Rt===0){if(Qa(Ft)&&Ft.value==="linear"){Se=1;return}else if(Qa(Ft)&&Ft.value==="radial"){Se=2;return}}if(Ft.type===18){if(Ft.name==="from"){var Jt=qt.parse(q,Ft.values[0]);$.push({stop:Be,color:Jt})}else if(Ft.name==="to"){var Jt=qt.parse(q,Ft.values[0]);$.push({stop:nt,color:Jt})}else if(Ft.name==="color-stop"){var en=Ft.values.filter(ut);if(en.length===2){var Jt=qt.parse(q,en[1]),br=en[0];ms(br)&&$.push({stop:{type:16,number:br.number*100,flags:br.flags},color:Jt})}}}}),Se===1?{angle:(ee+Wt(180))%Wt(360),stops:$,type:Se}:{size:tt,shape:Ue,stops:$,position:vt,type:Se}},yr="closest-side",Dn="farthest-side",ar="closest-corner",Pr="farthest-corner",jn="circle",$n="ellipse",ir="cover",Zn="contain",zn=function(q,V){var ee=0,$=3,Se=[],Ue=[];return Ge(V).forEach(function(tt,vt){var pt=!0;if(vt===0){var Rt=!1;pt=tt.reduce(function(Jt,en){if(Rt)if(Qa(en))switch(en.value){case"center":return Ue.push(at),Jt;case"top":case"left":return Ue.push(Be),Jt;case"right":case"bottom":return Ue.push(nt),Jt}else(Te(en)||Je(en))&&Ue.push(en);else if(Qa(en))switch(en.value){case jn:return ee=0,!1;case $n:return ee=1,!1;case"at":return Rt=!0,!1;case yr:return $=0,!1;case ir:case Dn:return $=1,!1;case Zn:case ar:return $=2,!1;case Pr:return $=3,!1}else if(Je(en)||Te(en))return Array.isArray($)||($=[]),$.push(en),!1;return Jt},pt)}if(pt){var Ft=Fn(q,tt);Se.push(Ft)}}),{size:$,shape:ee,stops:Se,position:Ue,type:2}},fn=function(q,V){var ee=0,$=3,Se=[],Ue=[];return Ge(V).forEach(function(tt,vt){var pt=!0;if(vt===0?pt=tt.reduce(function(Ft,Jt){if(Qa(Jt))switch(Jt.value){case"center":return Ue.push(at),!1;case"top":case"left":return Ue.push(Be),!1;case"right":case"bottom":return Ue.push(nt),!1}else if(Te(Jt)||Je(Jt))return Ue.push(Jt),!1;return Ft},pt):vt===1&&(pt=tt.reduce(function(Ft,Jt){if(Qa(Jt))switch(Jt.value){case jn:return ee=0,!1;case $n:return ee=1,!1;case Zn:case yr:return $=0,!1;case Dn:return $=1,!1;case ar:return $=2,!1;case ir:case Pr:return $=3,!1}else if(Je(Jt)||Te(Jt))return Array.isArray($)||($=[]),$.push(Jt),!1;return Ft},pt)),pt){var Rt=Fn(q,tt);Se.push(Rt)}}),{size:$,shape:ee,stops:Se,position:Ue,type:2}},on=function(q){return q.type===1},Gn=function(q){return q.type===2},Jn={name:"image",parse:function(q,V){if(V.type===22){var ee={url:V.value,type:0};return q.cache.addImage(V.value),ee}if(V.type===18){var $=mr[V.name];if(typeof $=="undefined")throw new Error('Attempting to parse an unsupported image function "'+V.name+'"');return $(q,V.values)}throw new Error("Unsupported image type "+V.type)}};function Sn(q){return!(q.type===20&&q.value==="none")&&(q.type!==18||!!mr[q.name])}var mr={"linear-gradient":kr,"-moz-linear-gradient":ta,"-ms-linear-gradient":ta,"-o-linear-gradient":ta,"-webkit-linear-gradient":ta,"radial-gradient":zn,"-moz-radial-gradient":fn,"-ms-radial-gradient":fn,"-o-radial-gradient":fn,"-webkit-radial-gradient":fn,"-webkit-gradient":Wr},Kr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(q,V){if(V.length===0)return[];var ee=V[0];return ee.type===20&&ee.value==="none"?[]:V.filter(function($){return ut($)&&Sn($)}).map(function($){return Jn.parse(q,$)})}},Va={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(q,V){return V.map(function(ee){if(Qa(ee))switch(ee.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ra={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(q,V){return Ge(V).map(function(ee){return ee.filter(Te)}).map(Ve)}},aa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(q,V){return Ge(V).map(function(ee){return ee.filter(Qa).map(function($){return $.value}).join(" ")}).map(gi)}},gi=function(q){switch(q){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ti;(function(q){q.AUTO="auto",q.CONTAIN="contain",q.COVER="cover"})(ti||(ti={}));var Ka={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(q,V){return Ge(V).map(function(ee){return ee.filter(no)})}},no=function(q){return Qa(q)||Te(q)},ro=function(q){return{name:"border-"+q+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Di=ro("top"),Io=ro("right"),Mo=ro("bottom"),ao=ro("left"),Ii=function(q){return{name:"border-radius-"+q,initialValue:"0 0",prefix:!1,type:1,parse:function(V,ee){return Ve(ee.filter(Te))}}},ki=Ii("top-left"),So=Ii("top-right"),co=Ii("bottom-right"),ho=Ii("bottom-left"),Qi=function(q){return{name:"border-"+q+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(V,ee){switch(ee){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Mi=Qi("top"),Vi=Qi("right"),Ki=Qi("bottom"),go=Qi("left"),Fi=function(q){return{name:"border-"+q+"-width",initialValue:"0",type:0,prefix:!1,parse:function(V,ee){return xo(ee)?ee.number:0}}},yo=Fi("top"),Xa=Fi("right"),io=Fi("bottom"),Lo=Fi("left"),Wi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ti={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(q,V){switch(V){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(q,V){return V.filter(Qa).reduce(function(ee,$){return ee|qo($.value)},0)}},qo=function(q){switch(q){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},$o={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(q,V){switch(V){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Go={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(q,V){return V.type===20&&V.value==="normal"?0:V.type===17||V.type===15?V.number:0}},Xi;(function(q){q.NORMAL="normal",q.STRICT="strict"})(Xi||(Xi={}));var es={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(q,V){switch(V){case"strict":return Xi.STRICT;case"normal":default:return Xi.NORMAL}}},yi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ua=function(q,V){return Qa(q)&&q.value==="normal"?1.2*V:q.type===17?V*q.number:Te(q)?it(q,V):V},li={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(q,V){return V.type===20&&V.value==="none"?null:Jn.parse(q,V)}},Na={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(q,V){switch(V){case"inside":return 0;case"outside":default:return 1}}},Yi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(q,V){switch(V){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},bo=function(q){return{name:"margin-"+q,initialValue:"0",prefix:!1,type:4}},Li=bo("top"),Vo=bo("right"),Po=bo("bottom"),Xo=bo("left"),Bi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(q,V){return V.filter(Qa).map(function(ee){switch(ee.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},In={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(q,V){switch(V){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ji=function(q){return{name:"padding-"+q,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},vs=Ji("top"),ts=Ji("right"),ca=Ji("bottom"),Ur=Ji("left"),ui={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(q,V){switch(V){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},wa={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(q,V){switch(V){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},To={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(q,V){return V.length===1&&_o(V[0],"none")?[]:Ge(V).map(function(ee){for(var $={color:_n.TRANSPARENT,offsetX:Be,offsetY:Be,blur:Be},Se=0,Ue=0;Ue1?1:0],this.overflowWrap=cr(V,In,ee.overflowWrap),this.paddingTop=cr(V,vs,ee.paddingTop),this.paddingRight=cr(V,ts,ee.paddingRight),this.paddingBottom=cr(V,ca,ee.paddingBottom),this.paddingLeft=cr(V,Ur,ee.paddingLeft),this.paintOrder=cr(V,No,ee.paintOrder),this.position=cr(V,wa,ee.position),this.textAlign=cr(V,ui,ee.textAlign),this.textDecorationColor=cr(V,lr,($=ee.textDecorationColor)!==null&&$!==void 0?$:ee.color),this.textDecorationLine=cr(V,fr,(Se=ee.textDecorationLine)!==null&&Se!==void 0?Se:ee.textDecoration),this.textShadow=cr(V,To,ee.textShadow),this.textTransform=cr(V,Zi,ee.textTransform),this.transform=cr(V,Eo,ee.transform),this.transformOrigin=cr(V,Za,ee.transformOrigin),this.visibility=cr(V,Tn,ee.visibility),this.webkitTextStrokeColor=cr(V,jo,ee.webkitTextStrokeColor),this.webkitTextStrokeWidth=cr(V,Ts,ee.webkitTextStrokeWidth),this.wordBreak=cr(V,Yt,ee.wordBreak),this.zIndex=cr(V,Cn,ee.zIndex)}return q.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},q.prototype.isTransparent=function(){return yn(this.backgroundColor)},q.prototype.isTransformed=function(){return this.transform!==null},q.prototype.isPositioned=function(){return this.position!==0},q.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},q.prototype.isFloating=function(){return this.float!==0},q.prototype.isInlineLevel=function(){return da(this.display,4)||da(this.display,33554432)||da(this.display,268435456)||da(this.display,536870912)||da(this.display,67108864)||da(this.display,134217728)},q}(),Al=function(){function q(V,ee){this.content=cr(V,Oi,ee.content),this.quotes=cr(V,fi,ee.quotes)}return q}(),Qs=function(){function q(V,ee){this.counterIncrement=cr(V,qi,ee.counterIncrement),this.counterReset=cr(V,qa,ee.counterReset)}return q}(),cr=function(q,V,ee){var $=new dl,Se=ee!==null&&typeof ee!="undefined"?ee.toString():V.initialValue;$.write(Se);var Ue=new $s($.read());switch(V.type){case 2:var tt=Ue.parseComponentValue();return V.parse(q,Qa(tt)?tt.value:V.initialValue);case 0:return V.parse(q,Ue.parseComponentValue());case 1:return V.parse(q,Ue.parseComponentValues());case 4:return Ue.parseComponentValue();case 3:switch(V.format){case"angle":return $t.parse(q,Ue.parseComponentValue());case"color":return qt.parse(q,Ue.parseComponentValue());case"image":return Jn.parse(q,Ue.parseComponentValue());case"length":var vt=Ue.parseComponentValue();return Je(vt)?vt:Be;case"length-percentage":var pt=Ue.parseComponentValue();return Te(pt)?pt:Be;case"time":return Vt.parse(q,Ue.parseComponentValue())}break}},ys="data-html2canvas-debug",Ks=function(q){var V=q.getAttribute(ys);switch(V){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Bs=function(q,V){var ee=Ks(q);return ee===1||V===ee},fo=function(){function q(V,ee){if(this.context=V,this.textNodes=[],this.elements=[],this.flags=0,Bs(ee,3))debugger;this.styles=new hl(V,window.getComputedStyle(ee,null)),Wl(ee)&&(this.styles.animationDuration.some(function($){return $>0})&&(ee.style.animationDuration="0s"),this.styles.transform!==null&&(ee.style.transform="none")),this.bounds=m(this.context,ee),Bs(ee,4)&&(this.flags|=16)}return q}(),bs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ms=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Es=0;Es>4,Ft[Se++]=(tt&15)<<4|vt>>2,Ft[Se++]=(vt&3)<<6|pt&63;return Rt},zs=function(q){for(var V=q.length,ee=[],$=0;$>Ho,Ta=1<>Ho,Pn=Rr+Wn,wn=Pn,nr=2048>>6,Bn=wn+nr,_r=65536>>Ls,Mr=1<=0){if(V<55296||V>56319&&V<=65535)return ee=this.index[V>>Ho],ee=(ee<>Ho)],ee=(ee<>Ls),ee=this.index[ee],ee+=V>>Ho&jr,ee=this.index[ee],ee=(ee<=55296&&Se<=56319&&ee<$){var Ue=q.charCodeAt(ee++);(Ue&64512)===56320?V.push(((Se&1023)<<10)+(Ue&1023)+65536):(V.push(Se),ee--)}else V.push(Se)}return V},gu=function(){for(var q=[],V=0;V>10)+55296,tt%1024+56320)),(Se+1===ee||$.length>16384)&&(Ue+=String.fromCharCode.apply(String,$),$.length=0)}return Ue},yu=bi(bs),rs="\xD7",nu="\xF7",zu=function(q){return yu.get(q)},Gu=function(q,V,ee){var $=ee-2,Se=V[$],Ue=V[ee-1],tt=V[ee];if(Ue===el&&tt===ns)return rs;if(Ue===el||Ue===ns||Ue===hs)return nu;if(tt===el||tt===ns||tt===hs)return nu;if(Ue===Zl&&[Zl,ql,mu,Bo].indexOf(tt)!==-1)return rs;if((Ue===mu||Ue===ql)&&(tt===ql||tt===$l))return rs;if((Ue===Bo||Ue===$l)&&tt===$l)return rs;if(tt===eu||tt===tl)return rs;if(tt===nl)return rs;if(Ue===Cs)return rs;if(Ue===eu&&tt===vu){for(;Se===tl;)Se=V[--$];if(Se===vu)return rs}if(Ue===tu&&tt===tu){for(var vt=0;Se===tu;)vt++,Se=V[--$];if(vt%2===0)return rs}return nu},Gs=function(q){var V=Wu(q),ee=V.length,$=0,Se=0,Ue=V.map(zu);return{next:function(){if($>=ee)return{done:!0,value:null};for(var tt=rs;$tt.x||Ft.y>tt.y;return tt=Ft,Rt===0?!0:Jt});return q.body.removeChild(V),vt},Ps=function(){return typeof new Image().crossOrigin!="undefined"},Vu=function(){return typeof new XMLHttpRequest().responseType=="string"},Xu=function(q){var V=new Image,ee=q.createElement("canvas"),$=ee.getContext("2d");if(!$)return!1;V.src="data:image/svg+xml,";try{$.drawImage(V,0,0),ee.toDataURL()}catch(Se){return!1}return!0},rl=function(q){return q[0]===0&&q[1]===255&&q[2]===0&&q[3]===255},bu=function(q){var V=q.createElement("canvas"),ee=100;V.width=ee,V.height=ee;var $=V.getContext("2d");if(!$)return Promise.reject(!1);$.fillStyle="rgb(0, 255, 0)",$.fillRect(0,0,ee,ee);var Se=new Image,Ue=V.toDataURL();Se.src=Ue;var tt=Fl(ee,ee,0,0,Se);return $.fillStyle="red",$.fillRect(0,0,ee,ee),ru(tt).then(function(vt){$.drawImage(vt,0,0);var pt=$.getImageData(0,0,ee,ee).data;$.fillStyle="red",$.fillRect(0,0,ee,ee);var Rt=q.createElement("div");return Rt.style.backgroundImage="url("+Ue+")",Rt.style.height=ee+"px",rl(pt)?ru(Fl(ee,ee,0,0,Rt)):Promise.reject(!1)}).then(function(vt){return $.drawImage(vt,0,0),rl($.getImageData(0,0,ee,ee).data)}).catch(function(){return!1})},Fl=function(q,V,ee,$,Se){var Ue="http://www.w3.org/2000/svg",tt=document.createElementNS(Ue,"svg"),vt=document.createElementNS(Ue,"foreignObject");return tt.setAttributeNS(null,"width",q.toString()),tt.setAttributeNS(null,"height",V.toString()),vt.setAttributeNS(null,"width","100%"),vt.setAttributeNS(null,"height","100%"),vt.setAttributeNS(null,"x",ee.toString()),vt.setAttributeNS(null,"y",$.toString()),vt.setAttributeNS(null,"externalResourcesRequired","true"),tt.appendChild(vt),vt.appendChild(Se),tt},ru=function(q){return new Promise(function(V,ee){var $=new Image;$.onload=function(){return V($)},$.onerror=ee,$.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(q))})},$i={get SUPPORT_RANGE_BOUNDS(){var q=kl(document);return Object.defineProperty($i,"SUPPORT_RANGE_BOUNDS",{value:q}),q},get SUPPORT_WORD_BREAKING(){var q=$i.SUPPORT_RANGE_BOUNDS&&wl(document);return Object.defineProperty($i,"SUPPORT_WORD_BREAKING",{value:q}),q},get SUPPORT_SVG_DRAWING(){var q=Xu(document);return Object.defineProperty($i,"SUPPORT_SVG_DRAWING",{value:q}),q},get SUPPORT_FOREIGNOBJECT_DRAWING(){var q=typeof Array.from=="function"&&typeof window.fetch=="function"?bu(document):Promise.resolve(!1);return Object.defineProperty($i,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:q}),q},get SUPPORT_CORS_IMAGES(){var q=Ps();return Object.defineProperty($i,"SUPPORT_CORS_IMAGES",{value:q}),q},get SUPPORT_RESPONSE_TYPE(){var q=Vu();return Object.defineProperty($i,"SUPPORT_RESPONSE_TYPE",{value:q}),q},get SUPPORT_CORS_XHR(){var q="withCredentials"in new XMLHttpRequest;return Object.defineProperty($i,"SUPPORT_CORS_XHR",{value:q}),q},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var q=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty($i,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:q}),q}},Os=function(){function q(V,ee){this.text=V,this.bounds=ee}return q}(),au=function(q,V,ee,$){var Se=Eu(V,ee),Ue=[],tt=0;return Se.forEach(function(vt){if(ee.textDecorationLine.length||vt.trim().length>0)if($i.SUPPORT_RANGE_BOUNDS){var pt=Nl($,tt,vt.length).getClientRects();if(pt.length>1){var Rt=ou(vt),Ft=0;Rt.forEach(function(en){Ue.push(new Os(en,C.fromDOMRectList(q,Nl($,Ft+tt,en.length).getClientRects()))),Ft+=en.length})}else Ue.push(new Os(vt,C.fromDOMRectList(q,pt)))}else{var Jt=$.splitText(vt.length);Ue.push(new Os(vt,iu(q,$))),$=Jt}else $i.SUPPORT_RANGE_BOUNDS||($=$.splitText(vt.length));tt+=vt.length}),Ue},iu=function(q,V){var ee=V.ownerDocument;if(ee){var $=ee.createElement("html2canvaswrapper");$.appendChild(V.cloneNode(!0));var Se=V.parentNode;if(Se){Se.replaceChild($,V);var Ue=m(q,$);return $.firstChild&&Se.replaceChild($.firstChild,$),Ue}}return C.EMPTY},Nl=function(q,V,ee){var $=q.ownerDocument;if(!$)throw new Error("Node has no owner document");var Se=$.createRange();return Se.setStart(q,V),Se.setEnd(q,V+ee),Se},ou=function(q){if($i.SUPPORT_NATIVE_TEXT_SEGMENTATION){var V=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(V.segment(q)).map(function(ee){return ee.segment})}return Cl(q)},xl=function(q,V){if($i.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ee=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(ee.segment(q)).map(function($){return $.segment})}return Cu(q,V)},Eu=function(q,V){return V.letterSpacing!==0?ou(q):xl(q,V)},Yu=[32,160,4961,65792,65793,4153,4241],Cu=function(q,V){for(var ee=En(q,{lineBreak:V.lineBreak,wordBreak:V.overflowWrap==="break-word"?"break-word":V.wordBreak}),$=[],Se,Ue=function(){if(Se.value){var tt=Se.value.slice(),vt=r(tt),pt="";vt.forEach(function(Rt){Yu.indexOf(Rt)===-1?pt+=n(Rt):(pt.length&&$.push(pt),$.push(n(Rt)),pt="")}),pt.length&&$.push(pt)}};!(Se=ee.next()).done;)Ue();return $},jl=function(){function q(V,ee,$){this.text=Ju(ee.data,$.textTransform),this.textBounds=au(V,this.text,$,ee)}return q}(),Ju=function(q,V){switch(V){case 1:return q.toLowerCase();case 3:return q.replace(Zu,_l);case 2:return q.toUpperCase();default:return q}},Zu=/(^|\s|:|-|\(|\))([a-z])/g,_l=function(q,V,ee){return q.length>0?V+ee.toUpperCase():q},su=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.src=$.currentSrc||$.src,Se.intrinsicWidth=$.naturalWidth,Se.intrinsicHeight=$.naturalHeight,Se.context.cache.addImage(Se.src),Se}return V}(fo),lu=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.canvas=$,Se.intrinsicWidth=$.width,Se.intrinsicHeight=$.height,Se}return V}(fo),wu=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this,Ue=new XMLSerializer,tt=m(ee,$);return $.setAttribute("width",tt.width+"px"),$.setAttribute("height",tt.height+"px"),Se.svg="data:image/svg+xml,"+encodeURIComponent(Ue.serializeToString($)),Se.intrinsicWidth=$.width.baseVal.value,Se.intrinsicHeight=$.height.baseVal.value,Se.context.cache.addImage(Se.svg),Se}return V}(fo),Hl=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.value=$.value,Se}return V}(fo),Ql=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.start=$.start,Se.reversed=typeof $.reversed=="boolean"&&$.reversed===!0,Se}return V}(fo),qu=[{type:15,flags:0,unit:"px",number:3}],xu=[{type:16,flags:0,number:50}],_u=function(q){return q.width>q.height?new C(q.left+(q.width-q.height)/2,q.top,q.height,q.height):q.width0)ee.textNodes.push(new jl(q,Se,ee.styles));else if(pl(Se))if(hu(Se)&&Se.assignedNodes)Se.assignedNodes().forEach(function(vt){return Tl(q,vt,ee,$)});else{var tt=Du(q,Se);tt.styles.isVisible()&&(Iu(Se,tt,$)?tt.flags|=4:uu(tt.styles)&&(tt.flags|=2),ec.indexOf(Se.tagName)!==-1&&(tt.flags|=8),ee.elements.push(tt),Se.slot,Se.shadowRoot?Tl(q,Se.shadowRoot,tt,$):!Ol(Se)&&!Lu(Se)&&!Dl(Se)&&Tl(q,Se,tt,$))}},Du=function(q,V){return al(V)?new su(q,V):Pu(V)?new lu(q,V):Lu(V)?new wu(q,V):Mu(V)?new Hl(q,V):zl(V)?new Ql(q,V):tc(V)?new Kl(q,V):Dl(V)?new Tu(q,V):Ol(V)?new Bu(q,V):As(V)?new Ou(q,V):new fo(q,V)},Ru=function(q,V){var ee=Du(q,V);return ee.flags|=4,Tl(q,V,ee,ee),ee},Iu=function(q,V,ee){return V.styles.isPositionedWithZIndex()||V.styles.opacity<1||V.styles.isTransformed()||mi(q)&&ee.styles.isTransparent()},uu=function(q){return q.isPositioned()||q.isFloating()},cu=function(q){return q.nodeType===Node.TEXT_NODE},pl=function(q){return q.nodeType===Node.ELEMENT_NODE},Wl=function(q){return pl(q)&&typeof q.style!="undefined"&&!Us(q)},Us=function(q){return typeof q.className=="object"},Mu=function(q){return q.tagName==="LI"},zl=function(q){return q.tagName==="OL"},tc=function(q){return q.tagName==="INPUT"},nc=function(q){return q.tagName==="HTML"},Lu=function(q){return q.tagName==="svg"},mi=function(q){return q.tagName==="BODY"},Pu=function(q){return q.tagName==="CANVAS"},Gl=function(q){return q.tagName==="VIDEO"},al=function(q){return q.tagName==="IMG"},As=function(q){return q.tagName==="IFRAME"},Bl=function(q){return q.tagName==="STYLE"},du=function(q){return q.tagName==="SCRIPT"},Ol=function(q){return q.tagName==="TEXTAREA"},Dl=function(q){return q.tagName==="SELECT"},hu=function(q){return q.tagName==="SLOT"},Au=function(q){return q.tagName.indexOf("-")>0},Uu=function(){function q(){this.counters={}}return q.prototype.getCounterValue=function(V){var ee=this.counters[V];return ee&&ee.length?ee[ee.length-1]:1},q.prototype.getCounterValues=function(V){var ee=this.counters[V];return ee||[]},q.prototype.pop=function(V){var ee=this;V.forEach(function($){return ee.counters[$].pop()})},q.prototype.parse=function(V){var ee=this,$=V.counterIncrement,Se=V.counterReset,Ue=!0;$!==null&&$.forEach(function(vt){var pt=ee.counters[vt.counter];pt&&vt.increment!==0&&(Ue=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=vt.increment)});var tt=[];return Ue&&Se.forEach(function(vt){var pt=ee.counters[vt.counter];tt.push(vt.counter),pt||(pt=ee.counters[vt.counter]=[]),pt.push(vt.reset)}),tt},q}(),ku={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Vl={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Fu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},$a={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},il=function(q,V,ee,$,Se,Ue){return qee?L(q,Se,Ue.length>0):$.integers.reduce(function(tt,vt,pt){for(;q>=vt;)q-=vt,tt+=$.values[pt];return tt},"")+Ue},Nu=function(q,V,ee,$){var Se="";do ee||q--,Se=$(q)+Se,q/=V;while(q*V>=V);return Se},Ci=function(q,V,ee,$,Se){var Ue=ee-V+1;return(q<0?"-":"")+(Nu(Math.abs(q),Ue,$,function(tt){return n(Math.floor(tt%Ue)+V)})+Se)},ol=function(q,V,ee){ee===void 0&&(ee=". ");var $=V.length;return Nu(Math.abs(q),$,!1,function(Se){return V[Math.floor(Se%$)]})+ee},ks=1<<0,Xs=1<<1,ri=1<<2,Rl=1<<3,Fs=function(q,V,ee,$,Se,Ue){if(q<-9999||q>9999)return L(q,4,Se.length>0);var tt=Math.abs(q),vt=Se;if(tt===0)return V[0]+vt;for(var pt=0;tt>0&&pt<=4;pt++){var Rt=tt%10;Rt===0&&da(Ue,ks)&&vt!==""?vt=V[Rt]+vt:Rt>1||Rt===1&&pt===0||Rt===1&&pt===1&&da(Ue,Xs)||Rt===1&&pt===1&&da(Ue,ri)&&q>100||Rt===1&&pt>1&&da(Ue,Rl)?vt=V[Rt]+(pt>0?ee[pt-1]:"")+vt:Rt===1&&pt>0&&(vt=ee[pt-1]+vt),tt=Math.floor(tt/10)}return(q<0?$:"")+vt},ju="\u5341\u767E\u5343\u842C",Il="\u62FE\u4F70\u4EDF\u842C",t="\u30DE\u30A4\u30CA\u30B9",v="\uB9C8\uC774\uB108\uC2A4",L=function(q,V,ee){var $=ee?". ":"",Se=ee?"\u3001":"",Ue=ee?", ":"",tt=ee?" ":"";switch(V){case 0:return"\u2022"+tt;case 1:return"\u25E6"+tt;case 2:return"\u25FE"+tt;case 5:var vt=Ci(q,48,57,!0,$);return vt.length<4?"0"+vt:vt;case 4:return ol(q,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Se);case 6:return il(q,1,3999,ku,3,$).toLowerCase();case 7:return il(q,1,3999,ku,3,$);case 8:return Ci(q,945,969,!1,$);case 9:return Ci(q,97,122,!1,$);case 10:return Ci(q,65,90,!1,$);case 11:return Ci(q,1632,1641,!0,$);case 12:case 49:return il(q,1,9999,Vl,3,$);case 35:return il(q,1,9999,Vl,3,$).toLowerCase();case 13:return Ci(q,2534,2543,!0,$);case 14:case 30:return Ci(q,6112,6121,!0,$);case 15:return ol(q,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Se);case 16:return ol(q,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Se);case 17:case 48:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8CA0",Se,Xs|ri|Rl);case 47:return Fs(q,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Il,"\u8CA0",Se,ks|Xs|ri|Rl);case 42:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8D1F",Se,Xs|ri|Rl);case 41:return Fs(q,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Il,"\u8D1F",Se,ks|Xs|ri|Rl);case 26:return Fs(q,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",t,Se,0);case 25:return Fs(q,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",t,Se,ks|Xs|ri);case 31:return Fs(q,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",v,Ue,ks|Xs|ri);case 33:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",v,Ue,0);case 32:return Fs(q,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",v,Ue,ks|Xs|ri);case 18:return Ci(q,2406,2415,!0,$);case 20:return il(q,1,19999,$a,3,$);case 21:return Ci(q,2790,2799,!0,$);case 22:return Ci(q,2662,2671,!0,$);case 22:return il(q,1,10999,Fu,3,$);case 23:return ol(q,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return ol(q,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Ci(q,3302,3311,!0,$);case 28:return ol(q,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",Se);case 29:return ol(q,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",Se);case 34:return Ci(q,3792,3801,!0,$);case 37:return Ci(q,6160,6169,!0,$);case 38:return Ci(q,4160,4169,!0,$);case 39:return Ci(q,2918,2927,!0,$);case 40:return Ci(q,1776,1785,!0,$);case 43:return Ci(q,3046,3055,!0,$);case 44:return Ci(q,3174,3183,!0,$);case 45:return Ci(q,3664,3673,!0,$);case 46:return Ci(q,3872,3881,!0,$);case 3:default:return Ci(q,48,57,!0,$)}},I="data-html2canvas-ignore",j=function(){function q(V,ee,$){if(this.context=V,this.options=$,this.scrolledElements=[],this.referenceElement=ee,this.counters=new Uu,this.quoteDepth=0,!ee.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(ee.ownerDocument.documentElement,!1)}return q.prototype.toIFrame=function(V,ee){var $=this,Se=xe(V,ee);if(!Se.contentWindow)return Promise.reject("Unable to find iframe window");var Ue=V.defaultView.pageXOffset,tt=V.defaultView.pageYOffset,vt=Se.contentWindow,pt=vt.document,Rt=He(Se).then(function(){return y($,void 0,void 0,function(){var Ft,Jt;return E(this,function(en){switch(en.label){case 0:return this.scrolledElements.forEach(an),vt&&(vt.scrollTo(ee.left,ee.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(vt.scrollY!==ee.top||vt.scrollX!==ee.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(vt.scrollX-ee.left,vt.scrollY-ee.top,0,0))),Ft=this.options.onclone,Jt=this.clonedReferenceElement,typeof Jt=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:pt.fonts&&pt.fonts.ready?[4,pt.fonts.ready]:[3,2];case 1:en.sent(),en.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Me(pt)]:[3,4];case 3:en.sent(),en.label=4;case 4:return typeof Ft=="function"?[2,Promise.resolve().then(function(){return Ft(pt,Jt)}).then(function(){return Se})]:[2,Se]}})})});return pt.open(),pt.write(kt(document.doctype)+""),Pt(this.referenceElement.ownerDocument,Ue,tt),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),Rt},q.prototype.createElementClone=function(V){if(Bs(V,2))debugger;if(Pu(V))return this.createCanvasClone(V);if(Gl(V))return this.createVideoClone(V);if(Bl(V))return this.createStyleClone(V);var ee=V.cloneNode(!1);return al(ee)&&(al(V)&&V.currentSrc&&V.currentSrc!==V.src&&(ee.src=V.currentSrc,ee.srcset=""),ee.loading==="lazy"&&(ee.loading="eager")),Au(ee)?this.createCustomElementClone(ee):ee},q.prototype.createCustomElementClone=function(V){var ee=document.createElement("html2canvascustomelement");return wt(V.style,ee),ee},q.prototype.createStyleClone=function(V){try{var ee=V.sheet;if(ee&&ee.cssRules){var $=[].slice.call(ee.cssRules,0).reduce(function(Ue,tt){return tt&&typeof tt.cssText=="string"?Ue+tt.cssText:Ue},""),Se=V.cloneNode(!1);return Se.textContent=$,Se}}catch(Ue){if(this.context.logger.error("Unable to access cssRules property",Ue),Ue.name!=="SecurityError")throw Ue}return V.cloneNode(!1)},q.prototype.createCanvasClone=function(V){var ee;if(this.options.inlineImages&&V.ownerDocument){var $=V.ownerDocument.createElement("img");try{return $.src=V.toDataURL(),$}catch(Rt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",V)}}var Se=V.cloneNode(!1);try{Se.width=V.width,Se.height=V.height;var Ue=V.getContext("2d"),tt=Se.getContext("2d");if(tt)if(!this.options.allowTaint&&Ue)tt.putImageData(Ue.getImageData(0,0,V.width,V.height),0,0);else{var vt=(ee=V.getContext("webgl2"))!==null&&ee!==void 0?ee:V.getContext("webgl");if(vt){var pt=vt.getContextAttributes();(pt==null?void 0:pt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",V)}tt.drawImage(V,0,0)}return Se}catch(Rt){this.context.logger.info("Unable to clone canvas as it is tainted",V)}return Se},q.prototype.createVideoClone=function(V){var ee=V.ownerDocument.createElement("canvas");ee.width=V.offsetWidth,ee.height=V.offsetHeight;var $=ee.getContext("2d");try{return $&&($.drawImage(V,0,0,ee.width,ee.height),this.options.allowTaint||$.getImageData(0,0,ee.width,ee.height)),ee}catch(Ue){this.context.logger.info("Unable to clone video as it is tainted",V)}var Se=V.ownerDocument.createElement("canvas");return Se.width=V.offsetWidth,Se.height=V.offsetHeight,Se},q.prototype.appendChildNode=function(V,ee,$){(!pl(ee)||!du(ee)&&!ee.hasAttribute(I)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(ee)))&&((!this.options.copyStyles||!pl(ee)||!Bl(ee))&&V.appendChild(this.cloneNode(ee,$)))},q.prototype.cloneChildNodes=function(V,ee,$){for(var Se=this,Ue=V.shadowRoot?V.shadowRoot.firstChild:V.firstChild;Ue;Ue=Ue.nextSibling)if(pl(Ue)&&hu(Ue)&&typeof Ue.assignedNodes=="function"){var tt=Ue.assignedNodes();tt.length&&tt.forEach(function(vt){return Se.appendChildNode(ee,vt,$)})}else this.appendChildNode(ee,Ue,$)},q.prototype.cloneNode=function(V,ee){if(cu(V))return document.createTextNode(V.data);if(!V.ownerDocument)return V.cloneNode(!1);var $=V.ownerDocument.defaultView;if($&&pl(V)&&(Wl(V)||Us(V))){var Se=this.createElementClone(V);Se.style.transitionProperty="none";var Ue=$.getComputedStyle(V),tt=$.getComputedStyle(V,":before"),vt=$.getComputedStyle(V,":after");this.referenceElement===V&&Wl(Se)&&(this.clonedReferenceElement=Se),mi(Se)&&pr(Se);var pt=this.counters.parse(new Qs(this.context,Ue)),Rt=this.resolvePseudoContent(V,Se,tt,ae.BEFORE);Au(V)&&(ee=!0),Gl(V)||this.cloneChildNodes(V,Se,ee),Rt&&Se.insertBefore(Rt,Se.firstChild);var Ft=this.resolvePseudoContent(V,Se,vt,ae.AFTER);return Ft&&Se.appendChild(Ft),this.counters.pop(pt),(Ue&&(this.options.copyStyles||Us(V))&&!As(V)||ee)&&wt(Ue,Se),(V.scrollTop!==0||V.scrollLeft!==0)&&this.scrolledElements.push([Se,V.scrollLeft,V.scrollTop]),(Ol(V)||Dl(V))&&(Ol(Se)||Dl(Se))&&(Se.value=V.value),Se}return V.cloneNode(!1)},q.prototype.resolvePseudoContent=function(V,ee,$,Se){var Ue=this;if(!$)return;var tt=$.content,vt=ee.ownerDocument;if(!vt||!tt||tt==="none"||tt==="-moz-alt-content"||$.display==="none")return;this.counters.parse(new Qs(this.context,$));var pt=new Al(this.context,$),Rt=vt.createElement("html2canvaspseudoelement");wt($,Rt),pt.content.forEach(function(Jt){if(Jt.type===0)Rt.appendChild(vt.createTextNode(Jt.value));else if(Jt.type===22){var en=vt.createElement("img");en.src=Jt.value,en.style.opacity="1",Rt.appendChild(en)}else if(Jt.type===18){if(Jt.name==="attr"){var br=Jt.values.filter(Qa);br.length&&Rt.appendChild(vt.createTextNode(V.getAttribute(br[0].value)||""))}else if(Jt.name==="counter"){var Nn=Jt.values.filter(ut),dr=Nn[0],ea=Nn[1];if(dr&&Qa(dr)){var vr=Ue.counters.getCounterValue(dr.value),wr=ea&&Qa(ea)?Yi.parse(Ue.context,ea.value):3;Rt.appendChild(vt.createTextNode(L(vr,wr,!1)))}}else if(Jt.name==="counters"){var Wa=Jt.values.filter(ut),dr=Wa[0],Ea=Wa[1],ea=Wa[2];if(dr&&Qa(dr)){var ai=Ue.counters.getCounterValues(dr.value),Er=ea&&Qa(ea)?Yi.parse(Ue.context,ea.value):3,ei=Ea&&Ea.type===0?Ea.value:"",ii=ai.map(function(is){return L(is,Er,!1)}).join(ei);Rt.appendChild(vt.createTextNode(ii))}}}else if(Jt.type===20)switch(Jt.value){case"open-quote":Rt.appendChild(vt.createTextNode(ko(pt.quotes,Ue.quoteDepth++,!0)));break;case"close-quote":Rt.appendChild(vt.createTextNode(ko(pt.quotes,--Ue.quoteDepth,!1)));break;default:Rt.appendChild(vt.createTextNode(Jt.value))}}),Rt.className=Vn+" "+or;var Ft=Se===ae.BEFORE?" "+Vn:" "+or;return Us(ee)?ee.className.baseValue+=Ft:ee.className+=Ft,Rt},q.destroy=function(V){return V.parentNode?(V.parentNode.removeChild(V),!0):!1},q}(),ae;(function(q){q[q.BEFORE=0]="BEFORE",q[q.AFTER=1]="AFTER"})(ae||(ae={}));var xe=function(q,V){var ee=q.createElement("iframe");return ee.className="html2canvas-container",ee.style.visibility="hidden",ee.style.position="fixed",ee.style.left="-10000px",ee.style.top="0px",ee.style.border="0",ee.width=V.width.toString(),ee.height=V.height.toString(),ee.scrolling="no",ee.setAttribute(I,"true"),q.body.appendChild(ee),ee},Oe=function(q){return new Promise(function(V){if(q.complete){V();return}if(!q.src){V();return}q.onload=V,q.onerror=V})},Me=function(q){return Promise.all([].slice.call(q.images,0).map(Oe))},He=function(q){return new Promise(function(V,ee){var $=q.contentWindow;if(!$)return ee("No window assigned for iframe");var Se=$.document;$.onload=q.onload=function(){$.onload=q.onload=null;var Ue=setInterval(function(){Se.body.childNodes.length>0&&Se.readyState==="complete"&&(clearInterval(Ue),V(q))},50)}})},gt=["all","d","content"],wt=function(q,V){for(var ee=q.length-1;ee>=0;ee--){var $=q.item(ee);gt.indexOf($)===-1&&V.style.setProperty($,q.getPropertyValue($))}return V},kt=function(q){var V="";return q&&(V+=""),V},Pt=function(q,V,ee){q&&q.defaultView&&(V!==q.defaultView.pageXOffset||ee!==q.defaultView.pageYOffset)&&q.defaultView.scrollTo(V,ee)},an=function(q){var V=q[0],ee=q[1],$=q[2];V.scrollLeft=ee,V.scrollTop=$},gn=":before",Mn=":after",Vn="___html2canvas___pseudoelement_before",or="___html2canvas___pseudoelement_after",Yn=`{ content: "" !important; display: none !important; }`,pr=function(q){Hr(q,"."+Vn+gn+Yn+` .`+or+Mn+Yn)},Hr=function(q,V){var ee=q.ownerDocument;if(ee){var $=ee.createElement("style");$.textContent=V,q.appendChild($)}},Lr=function(){function q(){}return q.getOrigin=function(V){var ee=q._link;return ee?(ee.href=V,ee.href=ee.href,ee.protocol+ee.hostname+ee.port):"about:blank"},q.isSameOrigin=function(V){return q.getOrigin(V)===q._origin},q.setContext=function(V){q._link=V.document.createElement("a"),q._origin=q.getOrigin(V.location.href)},q._origin="about:blank",q}(),pa=function(){function q(V,ee){this.context=V,this._options=ee,this._cache={}}return q.prototype.addImage=function(V){var ee=Promise.resolve();return this.has(V)||(wo(V)||Yo(V))&&(this._cache[V]=this.loadImage(V)).catch(function(){}),ee},q.prototype.match=function(V){return this._cache[V]},q.prototype.loadImage=function(V){return y(this,void 0,void 0,function(){var ee,$,Se,Ue,tt=this;return E(this,function(vt){switch(vt.label){case 0:return ee=Lr.isSameOrigin(V),$=!Co(V)&&this._options.useCORS===!0&&$i.SUPPORT_CORS_IMAGES&&!ee,Se=!Co(V)&&!ee&&!wo(V)&&typeof this._options.proxy=="string"&&$i.SUPPORT_CORS_XHR&&!$,!ee&&this._options.allowTaint===!1&&!Co(V)&&!wo(V)&&!Se&&!$?[2]:(Ue=V,Se?[4,this.proxy(Ue)]:[3,2]);case 1:Ue=vt.sent(),vt.label=2;case 2:return this.context.logger.debug("Added image "+V.substring(0,256)),[4,new Promise(function(pt,Rt){var Ft=new Image;Ft.onload=function(){return pt(Ft)},Ft.onerror=Rt,(zi(Ue)||$)&&(Ft.crossOrigin="anonymous"),Ft.src=Ue,Ft.complete===!0&&setTimeout(function(){return pt(Ft)},500),tt._options.imageTimeout>0&&setTimeout(function(){return Rt("Timed out ("+tt._options.imageTimeout+"ms) loading image")},tt._options.imageTimeout)})];case 3:return[2,vt.sent()]}})})},q.prototype.has=function(V){return typeof this._cache[V]!="undefined"},q.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},q.prototype.proxy=function(V){var ee=this,$=this._options.proxy;if(!$)throw new Error("No proxy defined");var Se=V.substring(0,256);return new Promise(function(Ue,tt){var vt=$i.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(vt==="text")Ue(pt.response);else{var Jt=new FileReader;Jt.addEventListener("load",function(){return Ue(Jt.result)},!1),Jt.addEventListener("error",function(en){return tt(en)},!1),Jt.readAsDataURL(pt.response)}else tt("Failed to proxy resource "+Se+" with status code "+pt.status)},pt.onerror=tt;var Rt=$.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+$+Rt+"url="+encodeURIComponent(V)+"&responseType="+vt),vt!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=vt),ee._options.imageTimeout){var Ft=ee._options.imageTimeout;pt.timeout=Ft,pt.ontimeout=function(){return tt("Timed out ("+Ft+"ms) proxying "+Se)}}pt.send()})},q}(),ci=/^data:image\/svg\+xml/i,so=/^data:image\/.*;base64,/i,Ri=/^data:image\/.*/i,Yo=function(q){return $i.SUPPORT_SVG_DRAWING||!mo(q)},Co=function(q){return Ri.test(q)},zi=function(q){return so.test(q)},wo=function(q){return q.substr(0,4)==="blob"},mo=function(q){return q.substr(-3).toLowerCase()==="svg"||ci.test(q)},Hn=function(){function q(V,ee){this.type=0,this.x=V,this.y=ee}return q.prototype.add=function(V,ee){return new q(this.x+V,this.y+ee)},q}(),wi=function(q,V,ee){return new Hn(q.x+(V.x-q.x)*ee,q.y+(V.y-q.y)*ee)},xi=function(){function q(V,ee,$,Se){this.type=1,this.start=V,this.startControl=ee,this.endControl=$,this.end=Se}return q.prototype.subdivide=function(V,ee){var $=wi(this.start,this.startControl,V),Se=wi(this.startControl,this.endControl,V),Ue=wi(this.endControl,this.end,V),tt=wi($,Se,V),vt=wi(Se,Ue,V),pt=wi(tt,vt,V);return ee?new q(this.start,$,tt,pt):new q(pt,vt,Ue,this.end)},q.prototype.add=function(V,ee){return new q(this.start.add(V,ee),this.startControl.add(V,ee),this.endControl.add(V,ee),this.end.add(V,ee))},q.prototype.reverse=function(){return new q(this.end,this.endControl,this.startControl,this.start)},q}(),_i=function(q){return q.type===1},ml=function(){function q(V){var ee=V.styles,$=V.bounds,Se=st(ee.borderTopLeftRadius,$.width,$.height),Ue=Se[0],tt=Se[1],vt=st(ee.borderTopRightRadius,$.width,$.height),pt=vt[0],Rt=vt[1],Ft=st(ee.borderBottomRightRadius,$.width,$.height),Jt=Ft[0],en=Ft[1],br=st(ee.borderBottomLeftRadius,$.width,$.height),Nn=br[0],dr=br[1],ea=[];ea.push((Ue+pt)/$.width),ea.push((Nn+Jt)/$.width),ea.push((tt+dr)/$.height),ea.push((Rt+en)/$.height);var vr=Math.max.apply(Math,ea);vr>1&&(Ue/=vr,tt/=vr,pt/=vr,Rt/=vr,Jt/=vr,en/=vr,Nn/=vr,dr/=vr);var wr=$.width-pt,Wa=$.height-en,Ea=$.width-Jt,ai=$.height-dr,Er=ee.borderTopWidth,ei=ee.borderRightWidth,ii=ee.borderBottomWidth,ya=ee.borderLeftWidth,fs=it(ee.paddingTop,V.bounds.width),is=it(ee.paddingRight,V.bounds.width),ws=it(ee.paddingBottom,V.bounds.width),Do=it(ee.paddingLeft,V.bounds.width);this.topLeftBorderDoubleOuterBox=Ue>0||tt>0?ga($.left+ya/3,$.top+Er/3,Ue-ya/3,tt-Er/3,Ba.TOP_LEFT):new Hn($.left+ya/3,$.top+Er/3),this.topRightBorderDoubleOuterBox=Ue>0||tt>0?ga($.left+wr,$.top+Er/3,pt-ei/3,Rt-Er/3,Ba.TOP_RIGHT):new Hn($.left+$.width-ei/3,$.top+Er/3),this.bottomRightBorderDoubleOuterBox=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt-ei/3,en-ii/3,Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei/3,$.top+$.height-ii/3),this.bottomLeftBorderDoubleOuterBox=Nn>0||dr>0?ga($.left+ya/3,$.top+ai,Nn-ya/3,dr-ii/3,Ba.BOTTOM_LEFT):new Hn($.left+ya/3,$.top+$.height-ii/3),this.topLeftBorderDoubleInnerBox=Ue>0||tt>0?ga($.left+ya*2/3,$.top+Er*2/3,Ue-ya*2/3,tt-Er*2/3,Ba.TOP_LEFT):new Hn($.left+ya*2/3,$.top+Er*2/3),this.topRightBorderDoubleInnerBox=Ue>0||tt>0?ga($.left+wr,$.top+Er*2/3,pt-ei*2/3,Rt-Er*2/3,Ba.TOP_RIGHT):new Hn($.left+$.width-ei*2/3,$.top+Er*2/3),this.bottomRightBorderDoubleInnerBox=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt-ei*2/3,en-ii*2/3,Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei*2/3,$.top+$.height-ii*2/3),this.bottomLeftBorderDoubleInnerBox=Nn>0||dr>0?ga($.left+ya*2/3,$.top+ai,Nn-ya*2/3,dr-ii*2/3,Ba.BOTTOM_LEFT):new Hn($.left+ya*2/3,$.top+$.height-ii*2/3),this.topLeftBorderStroke=Ue>0||tt>0?ga($.left+ya/2,$.top+Er/2,Ue-ya/2,tt-Er/2,Ba.TOP_LEFT):new Hn($.left+ya/2,$.top+Er/2),this.topRightBorderStroke=Ue>0||tt>0?ga($.left+wr,$.top+Er/2,pt-ei/2,Rt-Er/2,Ba.TOP_RIGHT):new Hn($.left+$.width-ei/2,$.top+Er/2),this.bottomRightBorderStroke=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt-ei/2,en-ii/2,Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei/2,$.top+$.height-ii/2),this.bottomLeftBorderStroke=Nn>0||dr>0?ga($.left+ya/2,$.top+ai,Nn-ya/2,dr-ii/2,Ba.BOTTOM_LEFT):new Hn($.left+ya/2,$.top+$.height-ii/2),this.topLeftBorderBox=Ue>0||tt>0?ga($.left,$.top,Ue,tt,Ba.TOP_LEFT):new Hn($.left,$.top),this.topRightBorderBox=pt>0||Rt>0?ga($.left+wr,$.top,pt,Rt,Ba.TOP_RIGHT):new Hn($.left+$.width,$.top),this.bottomRightBorderBox=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt,en,Ba.BOTTOM_RIGHT):new Hn($.left+$.width,$.top+$.height),this.bottomLeftBorderBox=Nn>0||dr>0?ga($.left,$.top+ai,Nn,dr,Ba.BOTTOM_LEFT):new Hn($.left,$.top+$.height),this.topLeftPaddingBox=Ue>0||tt>0?ga($.left+ya,$.top+Er,Math.max(0,Ue-ya),Math.max(0,tt-Er),Ba.TOP_LEFT):new Hn($.left+ya,$.top+Er),this.topRightPaddingBox=pt>0||Rt>0?ga($.left+Math.min(wr,$.width-ei),$.top+Er,wr>$.width+ei?0:Math.max(0,pt-ei),Math.max(0,Rt-Er),Ba.TOP_RIGHT):new Hn($.left+$.width-ei,$.top+Er),this.bottomRightPaddingBox=Jt>0||en>0?ga($.left+Math.min(Ea,$.width-ya),$.top+Math.min(Wa,$.height-ii),Math.max(0,Jt-ei),Math.max(0,en-ii),Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei,$.top+$.height-ii),this.bottomLeftPaddingBox=Nn>0||dr>0?ga($.left+ya,$.top+Math.min(ai,$.height-ii),Math.max(0,Nn-ya),Math.max(0,dr-ii),Ba.BOTTOM_LEFT):new Hn($.left+ya,$.top+$.height-ii),this.topLeftContentBox=Ue>0||tt>0?ga($.left+ya+Do,$.top+Er+fs,Math.max(0,Ue-(ya+Do)),Math.max(0,tt-(Er+fs)),Ba.TOP_LEFT):new Hn($.left+ya+Do,$.top+Er+fs),this.topRightContentBox=pt>0||Rt>0?ga($.left+Math.min(wr,$.width+ya+Do),$.top+Er+fs,wr>$.width+ya+Do?0:pt-ya+Do,Rt-(Er+fs),Ba.TOP_RIGHT):new Hn($.left+$.width-(ei+is),$.top+Er+fs),this.bottomRightContentBox=Jt>0||en>0?ga($.left+Math.min(Ea,$.width-(ya+Do)),$.top+Math.min(Wa,$.height+Er+fs),Math.max(0,Jt-(ei+is)),en-(ii+ws),Ba.BOTTOM_RIGHT):new Hn($.left+$.width-(ei+is),$.top+$.height-(ii+ws)),this.bottomLeftContentBox=Nn>0||dr>0?ga($.left+ya+Do,$.top+ai,Math.max(0,Nn-(ya+Do)),dr-(ii+ws),Ba.BOTTOM_LEFT):new Hn($.left+ya+Do,$.top+$.height-(ii+ws))}return q}(),Ba;(function(q){q[q.TOP_LEFT=0]="TOP_LEFT",q[q.TOP_RIGHT=1]="TOP_RIGHT",q[q.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",q[q.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ba||(Ba={}));var ga=function(q,V,ee,$,Se){var Ue=4*((Math.sqrt(2)-1)/3),tt=ee*Ue,vt=$*Ue,pt=q+ee,Rt=V+$;switch(Se){case Ba.TOP_LEFT:return new xi(new Hn(q,Rt),new Hn(q,Rt-vt),new Hn(pt-tt,V),new Hn(pt,V));case Ba.TOP_RIGHT:return new xi(new Hn(q,V),new Hn(q+tt,V),new Hn(pt,Rt-vt),new Hn(pt,Rt));case Ba.BOTTOM_RIGHT:return new xi(new Hn(pt,V),new Hn(pt,V+vt),new Hn(q+tt,Rt),new Hn(q,Rt));case Ba.BOTTOM_LEFT:default:return new xi(new Hn(pt,Rt),new Hn(pt-tt,Rt),new Hn(q,V+vt),new Hn(q,V))}},as=function(q){return[q.topLeftBorderBox,q.topRightBorderBox,q.bottomRightBorderBox,q.bottomLeftBorderBox]},lo=function(q){return[q.topLeftContentBox,q.topRightContentBox,q.bottomRightContentBox,q.bottomLeftContentBox]},vl=function(q){return[q.topLeftPaddingBox,q.topRightPaddingBox,q.bottomRightPaddingBox,q.bottomLeftPaddingBox]},Ns=function(){function q(V,ee,$){this.offsetX=V,this.offsetY=ee,this.matrix=$,this.type=0,this.target=2|4}return q}(),Ds=function(){function q(V,ee){this.path=V,this.target=ee,this.type=1}return q}(),sl=function(){function q(V){this.opacity=V,this.type=2,this.target=2|4}return q}(),Oo=function(q){return q.type===0},ll=function(q){return q.type===1},fu=function(q){return q.type===2},ic=function(q,V){return q.length===V.length?q.some(function(ee,$){return ee===V[$]}):!1},Ac=function(q,V,ee,$,Se){return q.map(function(Ue,tt){switch(tt){case 0:return Ue.add(V,ee);case 1:return Ue.add(V+$,ee);case 2:return Ue.add(V+$,ee+Se);case 3:return Ue.add(V,ee+Se)}return Ue})},oc=function(){function q(V){this.element=V,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return q}(),sc=function(){function q(V,ee){if(this.container=V,this.parent=ee,this.effects=[],this.curves=new ml(this.container),this.container.styles.opacity<1&&this.effects.push(new sl(this.container.styles.opacity)),this.container.styles.transform!==null){var $=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Se=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ue=this.container.styles.transform;this.effects.push(new Ns($,Se,Ue))}if(this.container.styles.overflowX!==0){var tt=as(this.curves),vt=vl(this.curves);ic(tt,vt)?this.effects.push(new Ds(tt,2|4)):(this.effects.push(new Ds(tt,2)),this.effects.push(new Ds(vt,4)))}}return q.prototype.getEffects=function(V){for(var ee=[2,3].indexOf(this.container.styles.position)===-1,$=this.parent,Se=this.effects.slice(0);$;){var Ue=$.effects.filter(function(pt){return!ll(pt)});if(ee||$.container.styles.position!==0||!$.parent){if(Se.unshift.apply(Se,Ue),ee=[2,3].indexOf($.container.styles.position)===-1,$.container.styles.overflowX!==0){var tt=as($.curves),vt=vl($.curves);ic(tt,vt)||Se.unshift(new Ds(vt,2|4))}}else Se.unshift.apply(Se,Ue);$=$.parent}return Se.filter(function(pt){return da(pt.target,V)})},q}(),rc=function(q,V,ee,$){q.container.elements.forEach(function(Se){var Ue=da(Se.flags,4),tt=da(Se.flags,2),vt=new sc(Se,q);da(Se.styles.display,2048)&&$.push(vt);var pt=da(Se.flags,8)?[]:$;if(Ue||tt){var Rt=Ue||Se.styles.isPositioned()?ee:V,Ft=new oc(vt);if(Se.styles.isPositioned()||Se.styles.opacity<1||Se.styles.isTransformed()){var Jt=Se.styles.zIndex.order;if(Jt<0){var en=0;Rt.negativeZIndex.some(function(Nn,dr){return Jt>Nn.element.container.styles.zIndex.order?(en=dr,!1):en>0}),Rt.negativeZIndex.splice(en,0,Ft)}else if(Jt>0){var br=0;Rt.positiveZIndex.some(function(Nn,dr){return Jt>=Nn.element.container.styles.zIndex.order?(br=dr+1,!1):br>0}),Rt.positiveZIndex.splice(br,0,Ft)}else Rt.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ft)}else Se.styles.isFloating()?Rt.nonPositionedFloats.push(Ft):Rt.nonPositionedInlineLevel.push(Ft);rc(vt,Ft,Ue?Ft:ee,pt)}else Se.styles.isInlineLevel()?V.inlineLevel.push(vt):V.nonInlineLevel.push(vt),rc(vt,V,ee,pt);da(Se.flags,8)&&lc(Se,pt)})},lc=function(q,V){for(var ee=q instanceof Ql?q.start:1,$=q instanceof Ql?q.reversed:!1,Se=0;Se0&&ee.intrinsicHeight>0){var Ue=Qu(ee),tt=vl($);this.path(tt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Se,0,0,ee.intrinsicWidth,ee.intrinsicHeight,Ue.left,Ue.top,Ue.width,Ue.height),this.ctx.restore()}},V.prototype.renderNodeContent=function(ee){return y(this,void 0,void 0,function(){var $,Se,Ue,tt,vt,pt,Rt,Rt,Ft,Jt,en,br,Nn,dr,ea,vr,wr,Wa,Ea,Rt,ai,Nn,vr;return E(this,function(Er){switch(Er.label){case 0:this.applyEffects(ee.getEffects(4)),$=ee.container,Se=ee.curves,Ue=$.styles,tt=0,vt=$.textNodes,Er.label=1;case 1:return tt0&&wr>0&&(Wa=Ue.ctx.createPattern(is,"repeat"),Ue.renderRepeat(Nn,Wa,dr,ea))):Gn(Ft)&&(Ys=ac(ee,$,[null,null,null]),Nn=Ys[0],gl=Ys[1],yl=Ys[2],vr=Ys[3],wr=Ys[4],bl=Ft.position.length===0?[at]:Ft.position,dr=it(bl[0],vr),ea=it(bl[bl.length-1],wr),Ml=Qn(Ft,dr,ea,vr,wr),Js=Ml[0],El=Ml[1],Js>0&&El>0&&(Ll=Ue.ctx.createRadialGradient(gl+dr,yl+ea,0,gl+dr,yl+ea,Js),Ir(Ft.stops,Js*2).forEach(function(pu){return Ll.addColorStop(pu.stop,Rn(pu.color))}),Ue.path(Nn),Ue.ctx.fillStyle=Ll,Js!==El?(Pl=ee.bounds.left+.5*ee.bounds.width,ul=ee.bounds.top+.5*ee.bounds.height,Ul=El/Js,cl=1/Ul,Ue.ctx.save(),Ue.ctx.translate(Pl,ul),Ue.ctx.transform(1,0,0,Ul,0,0),Ue.ctx.translate(-Pl,-ul),Ue.ctx.fillRect(gl,cl*(yl-ul)+ul,vr,wr*cl),Ue.ctx.restore()):Ue.ctx.fill())),Jl.label=6;case 6:return $--,[2]}})},Ue=this,tt=0,vt=ee.styles.backgroundImage.slice(0).reverse(),Rt.label=1;case 1:return tt0?Ft.style===2?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,vt,ee.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return en.sent(),[3,11];case 5:return Ft.style===3?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,vt,ee.curves,3)]:[3,7];case 6:return en.sent(),[3,11];case 7:return Ft.style===4?[4,this.renderDoubleBorder(Ft.color,Ft.width,vt,ee.curves)]:[3,9];case 8:return en.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ft.color,vt,ee.curves)];case 10:en.sent(),en.label=11;case 11:vt++,en.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},V.prototype.renderDashedDottedBorder=function(ee,$,Se,Ue,tt){return y(this,void 0,void 0,function(){var vt,pt,Rt,Ft,Jt,en,br,Nn,dr,ea,vr,wr,Wa,Ea,ai,Er,ai,Er;return E(this,function(ei){return this.ctx.save(),vt=vc(Ue,Se),pt=uc(Ue,Se),tt===2&&(this.path(pt),this.ctx.clip()),_i(pt[0])?(Rt=pt[0].start.x,Ft=pt[0].start.y):(Rt=pt[0].x,Ft=pt[0].y),_i(pt[1])?(Jt=pt[1].end.x,en=pt[1].end.y):(Jt=pt[1].x,en=pt[1].y),Se===0||Se===2?br=Math.abs(Rt-Jt):br=Math.abs(Ft-en),this.ctx.beginPath(),tt===3?this.formatPath(vt):this.formatPath(pt.slice(0,2)),Nn=$<3?$*3:$*2,dr=$<3?$*2:$,tt===3&&(Nn=$,dr=$),ea=!0,br<=Nn*2?ea=!1:br<=Nn*2+dr?(vr=br/(2*Nn+dr),Nn*=vr,dr*=vr):(wr=Math.floor((br+dr)/(Nn+dr)),Wa=(br-wr*Nn)/(wr-1),Ea=(br-(wr+1)*Nn)/wr,dr=Ea<=0||Math.abs(dr-Wa)0?[].concat(Object(Y.a)(f),Object(Y.a)(n(g).map(function(p){return Object(P.a)({fixed:h},p)}))):[].concat(Object(Y.a)(f),[Object(P.a)(Object(P.a)({},d),{},{fixed:h})])},[])}function e(o){for(var f=!0,d=0;d=0;g-=1){var p=o[g];if(h&&p.fixed!=="right")h=!1;else if(!h&&p.fixed==="right"){Object(C.a)(!1,"Index ".concat(g+1," of `columns` missing `fixed='right'` prop."));break}}}function s(o){return o.map(function(f){var d=f.fixed,a=Object(y.a)(f,["fixed"]),h=d;return d==="left"?h="right":d==="right"&&(h="left"),Object(P.a)({fixed:h},a)})}function u(o,f){var d=o.prefixCls,a=o.columns,h=o.children,g=o.expandable,p=o.expandedKeys,S=o.getRowKey,w=o.onTriggerExpand,B=o.expandIcon,b=o.rowExpandable,A=o.expandIconColumnIndex,l=o.direction,i=o.expandRowByClick,x=E.useMemo(function(){return a||r(h)},[a,h]),O=E.useMemo(function(){if(g){var R,k=A||0,H=x[k],J=(R={},Object(ue.a)(R,c.a,{className:"".concat(d,"-expand-icon-col")}),Object(ue.a)(R,"title",""),Object(ue.a)(R,"fixed",H?H.fixed:null),Object(ue.a)(R,"className","".concat(d,"-row-expand-icon-cell")),Object(ue.a)(R,"render",function(G,N,Q){var X=S(N,Q),te=p.has(X),oe=b?b(N):!0,me=B({prefixCls:d,expanded:te,expandable:oe,record:N,onExpand:w});return i?E.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},me):me}),R),U=x.slice();return k>=0&&U.splice(k,0,J),U}return x},[g,x,S,p,B,l]),T=E.useMemo(function(){var R=O;return f&&(R=f(R)),R.length||(R=[{render:function(){return null}}]),R},[f,O,l]),D=E.useMemo(function(){return l==="rtl"?s(n(T)):n(T)},[T,l]);return[T,D]}we.b=u},wYyv:function(Ze,we,M){"use strict";const ue=(P,y,E)=>{const _=y<0?P.length+y:y;if(_>=0&&_(P=[...P],ue(P,y,E),P);Ze.exports=Y,Ze.exports.mutate=ue},wzkS:function(Ze,we,M){"use strict";M.d(we,"c",function(){return E}),M.d(we,"b",function(){return _}),M.d(we,"d",function(){return C}),M.d(we,"a",function(){return c}),M.d(we,"e",function(){return r});var ue=M("9og8"),Y=M("WmNS"),P=M.n(Y),y=M("ErOA");function E(n){return Object(y.c)("libraries/".concat(n,".json"))}function _(){return Object(y.c)("library_tags.json")}function C(n){return m.apply(this,arguments)}function m(){return m=Object(ue.a)(P.a.mark(function n(e){var s;return P.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(y.b)("attachments/".concat(e,".json"));case 2:return s=o.sent,o.abrupt("return",s.status===0);case 4:case"end":return o.stop()}},n)})),m.apply(this,arguments)}function c(n){return Object(y.f)("libraries.json",n)}function r(n,e){return Object(y.g)("libraries/".concat(n,".json"),e)}},x6Kt:function(Ze,we,M){var ue=M("y+Vt"),Y=M("VpOo"),P=M("nPnh"),y=P.subPixelOptimizeRect,E={},_=ue.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(C,m){var c,r,n,e;this.subPixelOptimize?(y(E,m,this.style),c=E.x,r=E.y,n=E.width,e=E.height,E.r=m.r,m=E):(c=m.x,r=m.y,n=m.width,e=m.height),m.r?Y.buildPath(C,m):C.rect(c,r,n,e),C.closePath();return}});Ze.exports=_},"y+Vt":function(Ze,we,M){var ue=M("Gev7"),Y=M("bYtY"),P=M("IMiH"),y=M("2DNl"),E=M("3C/r"),_=E.prototype.getCanvasPattern,C=Math.abs,m=new P(!0);function c(n){ue.call(this,n),this.path=null}c.prototype={constructor:c,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var s=this.style,u=this.path||m,o=s.hasStroke(),f=s.hasFill(),d=s.fill,a=s.stroke,h=f&&!!d.colorStops,g=o&&!!a.colorStops,p=f&&!!d.image,S=o&&!!a.image;if(s.bind(n,this,e),this.setTransform(n),this.__dirty){var w;h&&(w=w||this.getBoundingRect(),this._fillGradient=s.getGradient(n,d,w)),g&&(w=w||this.getBoundingRect(),this._strokeGradient=s.getGradient(n,a,w))}h?n.fillStyle=this._fillGradient:p&&(n.fillStyle=_.call(d,n)),g?n.strokeStyle=this._strokeGradient:S&&(n.strokeStyle=_.call(a,n));var B=s.lineDash,b=s.lineDashOffset,A=!!n.setLineDash,l=this.getGlobalScale();if(u.setScale(l[0],l[1],this.segmentIgnoreThreshold),this.__dirtyPath||B&&!A&&o?(u.beginPath(n),B&&!A&&(u.setLineDash(B),u.setLineDashOffset(b)),this.buildPath(u,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),f)if(s.fillOpacity!=null){var i=n.globalAlpha;n.globalAlpha=s.fillOpacity*s.opacity,u.fill(n),n.globalAlpha=i}else u.fill(n);if(B&&A&&(n.setLineDash(B),n.lineDashOffset=b),o)if(s.strokeOpacity!=null){var i=n.globalAlpha;n.globalAlpha=s.strokeOpacity*s.opacity,u.stroke(n),n.globalAlpha=i}else u.stroke(n);B&&A&&n.setLineDash([]),s.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,s){},createPathProxy:function(){this.path=new P},getBoundingRect:function(){var n=this._rect,e=this.style,s=!n;if(s){var u=this.path;u||(u=this.path=new P),this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape,!1)),n=u.getBoundingRect()}if(this._rect=n,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||s){o.copy(n);var f=e.lineWidth,d=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(f=Math.max(f,this.strokeContainThreshold||4)),d>1e-10&&(o.width+=f/d,o.height+=f/d,o.x-=f/d/2,o.y-=f/d/2)}return o}return n},contain:function(n,e){var s=this.transformCoordToLocal(n,e),u=this.getBoundingRect(),o=this.style;if(n=s[0],e=s[1],u.contain(n,e)){var f=this.path.data;if(o.hasStroke()){var d=o.lineWidth,a=o.strokeNoScale?this.getLineScale():1;if(a>1e-10&&(o.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),y.containStroke(f,d/a,n,e)))return!0}if(o.hasFill())return y.contain(f,n,e)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):ue.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var s=this.shape;if(s){if(Y.isObject(n))for(var u in n)n.hasOwnProperty(u)&&(s[u]=n[u]);else s[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&C(n[0]-1)>1e-10&&C(n[3]-1)>1e-10?Math.sqrt(C(n[0]*n[3]-n[2]*n[1])):1}},c.extend=function(n){var e=function(u){c.call(this,u),n.style&&this.style.extendFrom(n.style,!1);var o=n.shape;if(o){this.shape=this.shape||{};var f=this.shape;for(var d in o)!f.hasOwnProperty(d)&&o.hasOwnProperty(d)&&(f[d]=o[d])}n.init&&n.init.call(this,u)};Y.inherits(e,c);for(var s in n)s!=="style"&&s!=="shape"&&(e.prototype[s]=n[s]);return e},Y.inherits(c,ue);var r=c;Ze.exports=r},"y0+3":function(Ze,we,M){"use strict";M.d(we,"a",function(){return n}),M.d(we,"b",function(){return s});var ue=/margin|padding|width|height|max|min|offset/,Y={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function y(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function E(u,o,f){if(o=o.toLowerCase(),f==="auto"){if(o==="height")return u.offsetHeight;if(o==="width")return u.offsetWidth}return o in Y||(Y[o]=ue.test(o)),Y[o]?parseFloat(f)||0:f}function _(u,o){var f=arguments.length,d=y(u);return o=P[o]?"cssFloat"in u.style?"cssFloat":"styleFloat":o,f===1?d:E(u,o,d[o]||u.style[o])}function C(u,o,f){var d=arguments.length;if(o=P[o]?"cssFloat"in u.style?"cssFloat":"styleFloat":o,d===3)return typeof f=="number"&&ue.test(o)&&(f="".concat(f,"px")),u.style[o]=f,f;for(var a in o)o.hasOwnProperty(a)&&C(u,a,o[a]);return y(u)}function m(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function c(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function r(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),o=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:o}}function n(){var u=document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:o}}function e(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function s(u){var o=u.getBoundingClientRect(),f=document.documentElement;return{left:o.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:o.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}},"y1J/":function(Ze,we,M){Ze.exports=M.p+"static/yz.688d901a.png"},y23F:function(Ze,we){function M(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}M.prototype={constructor:M,_dragStart:function(P){for(var y=P.target;y&&!y.draggable;)y=y.parent;y&&(this._draggingTarget=y,y.dragging=!0,this._x=P.offsetX,this._y=P.offsetY,this.dispatchToElement(ue(y,P),"dragstart",P.event))},_drag:function(P){var y=this._draggingTarget;if(y){var E=P.offsetX,_=P.offsetY,C=E-this._x,m=_-this._y;this._x=E,this._y=_,y.drift(C,m,P),this.dispatchToElement(ue(y,P),"drag",P.event);var c=this.findHover(E,_,y).target,r=this._dropTarget;this._dropTarget=c,y!==c&&(r&&c!==r&&this.dispatchToElement(ue(r,P),"dragleave",P.event),c&&c!==r&&this.dispatchToElement(ue(c,P),"dragenter",P.event))}},_dragEnd:function(P){var y=this._draggingTarget;y&&(y.dragging=!1),this.dispatchToElement(ue(y,P),"dragend",P.event),this._dropTarget&&this.dispatchToElement(ue(this._dropTarget,P),"drop",P.event),this._draggingTarget=null,this._dropTarget=null}};function ue(P,y){return{target:P,topTarget:y&&y.topTarget}}var Y=M;Ze.exports=Y},y5JW:function(Ze,we,M){"use strict";M.d(we,"c",function(){return f}),M.d(we,"a",function(){return d});var ue=M("DZo9"),Y=M("8z0m"),P=M("+L6B"),y=M("2/Rp"),E=M("9og8"),_=M("k1fw"),C=M("oBTY"),m=M("miYZ"),c=M("tsqr"),r=M("WmNS"),n=M.n(r),e=M("q1tI"),s=M.n(e),u=M("m3rI"),o=M("wzkS"),f="\u3000\u3000";function d(a){var h=["Bytes","KB","MB","GB","TB"];if(a==0)return"0 Byte";var g=parseInt(""+Math.floor(Math.log(a)/Math.log(1024)),10);return(a/Math.pow(1024,g)).toFixed(1)+" "+h[g]}we.b=function(a){var h=a.value,g=h===void 0?[]:h,p=a.action,S=a.onChange,w=a.className,B=a.maxSize,b=B===void 0?150:B,A=a.title,l=A===void 0?"\u6587\u4EF6\u4E0A\u4F20":A,i=a.accept,x=i===void 0?null:i,O={multiple:!1,fileList:g,accept:x,withCredentials:!0,beforeUpload:function(R){var k=R.size/1024/1024;return k0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:g.length>0,ghost:!0},l),s.a.createElement("span",{onClick:T,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",b,"M) ")))}},yslc:function(Ze,we){Ze.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="},yxFR:function(Ze,we,M){var ue=M("y+Vt"),Y=M("nPnh"),P=Y.subPixelOptimizeLine,y={},E=ue.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(_,C){var m,c,r,n;this.subPixelOptimize?(P(y,C,this.style),m=y.x1,c=y.y1,r=y.x2,n=y.y2):(m=C.x1,c=C.y1,r=C.x2,n=C.y2);var e=C.percent;if(e===0)return;_.moveTo(m,c),e<1&&(r=m*(1-e)+r*e,n=c*(1-e)+n*e),_.lineTo(r,n)},pointAt:function(_){var C=this.shape;return[C.x1*(1-_)+C.x2*_,C.y1*(1-_)+C.y2*_]}});Ze.exports=E},zarK:function(Ze,we,M){var ue=M("YH21"),Y=ue.addEventListener,P=ue.removeEventListener,y=ue.normalizeEvent,E=ue.getNativeEvent,_=M("bYtY"),C=M("H6uX"),m=M("ItGF"),c=300,r=m.domSupported,n=function(){var D=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],R=["touchstart","touchend","touchmove"],k={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},H=_.map(D,function(J){var U=J.replace("mouse","pointer");return k.hasOwnProperty(U)?U:J});return{mouse:D,touch:R,pointer:H}}(),e={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function s(D){return D==="mousewheel"&&m.browser.firefox?"DOMMouseScroll":D}function u(D){var R=D.pointerType;return R==="pen"||R==="touch"}function o(D){D.touching=!0,D.touchTimer!=null&&(clearTimeout(D.touchTimer),D.touchTimer=null),D.touchTimer=setTimeout(function(){D.touching=!1,D.touchTimer=null},700)}function f(D){D&&(D.zrByTouch=!0)}function d(D,R){return y(D.dom,new h(D,R),!0)}function a(D,R){for(var k=R,H=!1;k&&k.nodeType!==9&&!(H=k.domBelongToZr||k!==R&&k===D.painterRoot);)k=k.parentNode;return H}function h(D,R){this.type=R.type,this.target=this.currentTarget=D.dom,this.pointerType=R.pointerType,this.clientX=R.clientX,this.clientY=R.clientY}var g=h.prototype;g.stopPropagation=g.stopImmediatePropagation=g.preventDefault=_.noop;var p={mousedown:function(D){D=y(this.dom,D),this._mayPointerCapture=[D.zrX,D.zrY],this.trigger("mousedown",D)},mousemove:function(D){D=y(this.dom,D);var R=this._mayPointerCapture;R&&(D.zrX!==R[0]||D.zrY!==R[1])&&l(this,!0),this.trigger("mousemove",D)},mouseup:function(D){D=y(this.dom,D),l(this,!1),this.trigger("mouseup",D)},mouseout:function(D){D=y(this.dom,D),this._pointerCapturing&&(D.zrEventControl="no_globalout");var R=D.toElement||D.relatedTarget;D.zrIsToLocalDOM=a(this,R),this.trigger("mouseout",D)},touchstart:function(D){D=y(this.dom,D),f(D),this._lastTouchMoment=new Date,this.handler.processGesture(D,"start"),p.mousemove.call(this,D),p.mousedown.call(this,D)},touchmove:function(D){D=y(this.dom,D),f(D),this.handler.processGesture(D,"change"),p.mousemove.call(this,D)},touchend:function(D){D=y(this.dom,D),f(D),this.handler.processGesture(D,"end"),p.mouseup.call(this,D),+new Date-this._lastTouchMoment