You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
403 lines
1.1 MiB
403 lines
1.1 MiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[214,5,7,8,10,14],{"+92d":function(je,ne,N){je.exports=N.p+"static/b1.2ca4a493.svg"},"+GGh":function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGHa7L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Qt2AqcBRuDhyEunEmg22PzCfR/M8DZG0n7Xny1kOuI8N/XGDrxJUCyxjB5bKGdUe6BGZvjswYvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+ua5":function(je,ne,N){},"/cxE":function(je,ne,N){"use strict";N.d(ne,"f",function(){return I}),N.d(ne,"g",function(){return j}),N.d(ne,"h",function(){return C}),N.d(ne,"e",function(){return W}),N.d(ne,"b",function(){return k}),N.d(ne,"c",function(){return e}),N.d(ne,"d",function(){return O}),N.d(ne,"a",function(){return g});class Q{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(()=>{throw p.stack?new Error(p.message+`
|
|
|
|
`+p.stack):p},0)}}emit(p){this.listeners.forEach(u=>{u(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const M=new Q;function I(p){W(p)||M.onUnexpectedError(p);return}function j(p){W(p)||M.onUnexpectedExternalError(p);return}function C(p){if(p instanceof Error){let{name:u,message:a}=p;const r=p.stacktrace||p.stack;return{$isError:!0,name:u,message:a,stack:r}}return p}const R="Canceled";function W(p){return p instanceof Error&&p.name===R&&p.message===R}function k(){const p=new Error(R);return p.name=p.message,p}function e(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function O(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class g extends Error{constructor(p){super("NotSupported");p&&(this.message=p)}}},"24hK":function(je,ne,N){"use strict";N.d(ne,"a",function(){return M});class Q{constructor(I){this.element=I,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class M{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let I=this._first;for(;I!==Q.Undefined;){const j=I.next;I.prev=Q.Undefined,I.next=Q.Undefined,I=j}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,j){const C=new Q(I);if(this._first===Q.Undefined)this._first=C,this._last=C;else if(j){const W=this._last;this._last=C,C.prev=W,W.next=C}else{const W=this._first;this._first=C,C.next=W,W.prev=C}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(C))}}shift(){if(this._first===Q.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Q.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Q.Undefined&&I.next!==Q.Undefined){const j=I.prev;j.next=I.next,I.next.prev=j}else I.prev===Q.Undefined&&I.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):I.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):I.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Q.Undefined;)yield I.element,I=I.next}}},"3/fG":function(je,ne,N){"use strict";N.d(ne,"a",function(){return M});function Q(I,j){let C;return j.length===0?C=I:C=I.replace(/\{(\d+)\}/g,function(R,W){const k=W[0];return typeof j[k]!="undefined"?j[k]:R}),C}function M(I,j,...C){return Q(j,C)}},"5A5F":function(je,ne,N){je.exports={flex_box_center:"flex_box_center___3fvo9",flex_space_between:"flex_space_between___2dIWe",flex_box_vertical_center:"flex_box_vertical_center___213Et",flex_box_center_end:"flex_box_center_end___1GXlY",flex_box_column:"flex_box_column___2XTWO",wrap:"wrap___1JbzU",addQuestion:"addQuestion___3n7jZ",content:"content___2Crhb",left:"left___12ObT",filterPoint:"filterPoint___1wSyY",filterType:"filterType___32Vjx",btnWarp:"btnWarp___XLUgV",btn:"btn___33IXa",count:"count___2zHIG",btnActive:"btnActive___2vIUq",fold:"fold___26POp",action:"action___m_eZE",filterOrigin:"filterOrigin___OKol4",control:"control___1SAJX",search:"search___2AvaM",searchIcon:"searchIcon___2TozR",table:"table___1Q9AI",tabWarp:"tabWarp___3884f",customTable:"customTable___6Ubut","btn-style-1":"btn-style-1___m4kGi","btn-style-2":"btn-style-2___2uJ8s","btn-style-3":"btn-style-3___3kuYl",right:"right___Ie2u1",statistics:"statistics___TecQK",title:"title___1uK2v",statisticItem:"statisticItem___oBHb3",rate:"rate___15q55",dataName:"dataName___1uxmm",sort:"sort___1hyjY",rankHeader:"rankHeader___3MEZr",rankIcon:"rankIcon___t_Ggc",li:"li___3lR-W",myRecord:"myRecord___3MQJH",recordPrefix:"recordPrefix___3rIwK",mine:"mine___1LgRJ",avatar:"avatar___2X3bF",nickname:"nickname___3uP5f",myRank:"myRank___3GS-w",questionNumber:"questionNumber___3kBy-",titleWarp:"titleWarp___t0Zdh",hov:"hov___30B5q",statusText:"statusText___3pFTN",hovBtn:"hovBtn___3ciGX",tag:"tag___hllWE",problemsclose:"problemsclose___1X9HB",imgsrc:"imgsrc___3koep",sendModal:"sendModal___1P3qc",bottom:"bottom___1gmim",line:"line___psQHn",del:"del___1Qufp"}},"5VLF":function(je,ne,N){"use strict";var Q,M;function I(j,C,R){var W=function(k,e){return j.js_beautify(k,e)};return W.js=j.js_beautify,W.css=C.css_beautify,W.html=R.html_beautify,W.js_beautify=j.js_beautify,W.css_beautify=C.css_beautify,W.html_beautify=R.html_beautify,W}!(Q=[N("6UM0"),N("TXwP"),N("psGv")],M=function(j,C,R){return I(j,C,R)}.apply(ne,Q),M!==void 0&&(je.exports=M))},"5Y4S":function(je,ne,N){"use strict";N.d(ne,"a",function(){return I});var Q=N("MNsG");const M=Q.b.performance&&typeof Q.b.performance.now=="function";class I{constructor(j){this._highResolution=M&&j,this._startTime=this._now(),this._stopTime=-1}static create(j=!0){return new I(j)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Q.b.performance.now():Date.now()}}},"6+eU":function(je,ne,N){"use strict";N.d(ne,"a",function(){return m});var Q=N("wx14"),M=N("rePB"),I=N("VTBJ"),j=N("1OyB"),C=N("vuIU"),R=N("Ji7U"),W=N("LK+K"),k=N("q1tI"),e=N.n(k),O=N("TSYQ"),g=N.n(O),p=function(_){var h,d="".concat(_.rootPrefixCls,"-item"),l=g()(d,"".concat(d,"-").concat(_.page),(h={},Object(M.a)(h,"".concat(d,"-active"),_.active),Object(M.a)(h,_.className,!!_.className),Object(M.a)(h,"".concat(d,"-disabled"),!_.page),h)),c=function(){_.onClick(_.page)},v=function(T){_.onKeyPress(T,_.onClick,_.page)};return e.a.createElement("li",{title:_.showTitle?_.page:null,className:l,onClick:c,onKeyPress:v,tabIndex:"0"},_.itemRender(_.page,"page",e.a.createElement("a",{rel:"nofollow"},_.page)))},u=p,a={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},r=function(x){Object(R.a)(h,x);var _=Object(W.a)(h);function h(){var d;Object(j.a)(this,h);for(var l=arguments.length,c=new Array(l),v=0;v<l;v++)c[v]=arguments[v];return d=_.call.apply(_,[this].concat(c)),d.state={goInputText:""},d.buildOptionText=function(f){return"".concat(f," ").concat(d.props.locale.items_per_page)},d.changeSize=function(f){d.props.changeSize(Number(f))},d.handleChange=function(f){d.setState({goInputText:f.target.value})},d.handleBlur=function(f){var T=d.props,L=T.goButton,P=T.quickGo,S=T.rootPrefixCls,A=d.state.goInputText;if(L||A==="")return;if(f.relatedTarget&&(f.relatedTarget.className.indexOf("".concat(S,"-prev"))>=0||f.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;d.setState({goInputText:""}),P(d.getValidValue())},d.go=function(f){var T=d.state.goInputText;if(T==="")return;(f.keyCode===a.ENTER||f.type==="click")&&(d.setState({goInputText:""}),d.props.quickGo(d.getValidValue()))},d}return Object(C.a)(h,[{key:"getValidValue",value:function(){var l=this.state,c=l.goInputText,v=l.current;return!c||isNaN(c)?v:Number(c)}},{key:"getPageSizeOptions",value:function(){var l=this.props,c=l.pageSize,v=l.pageSizeOptions;return v.some(function(f){return f.toString()===c.toString()})?v:v.concat([c.toString()]).sort(function(f,T){var L=isNaN(Number(f))?0:Number(f),P=isNaN(Number(T))?0:Number(T);return L-P})}},{key:"render",value:function(){var l=this,c=this.props,v=c.pageSize,f=c.locale,T=c.rootPrefixCls,L=c.changeSize,P=c.quickGo,S=c.goButton,A=c.selectComponentClass,H=c.buildOptionText,D=c.selectPrefixCls,K=c.disabled,V=this.state.goInputText,oe="".concat(T,"-options"),le=A,Ce=null,xe=null,ie=null;if(!L&&!P)return null;var Se=this.getPageSizeOptions();if(L&&le){var Pe=Se.map(function(de,$){return e.a.createElement(le.Option,{key:$,value:de.toString()},(H||l.buildOptionText)(de))});Ce=e.a.createElement(le,{disabled:K,prefixCls:D,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(v||Se[0]).toString(),onChange:this.changeSize,getPopupContainer:function($){return $.parentNode}},Pe)}return P&&(S&&(ie=typeof S=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(oe,"-quick-jumper-button")},f.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),xe=e.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},f.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:V,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,ie)),e.a.createElement("li",{className:"".concat(oe)},Ce,xe)}}]),h}(e.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var o=r,s=N("N2Kk");function i(){}function n(x){return typeof x=="number"&&isFinite(x)&&Math.floor(x)===x}function t(x,_,h){return h}function b(x,_,h){var d=typeof x=="undefined"?_.pageSize:x;return Math.floor((h.total-1)/d)+1}var y=function(x){Object(R.a)(h,x);var _=Object(W.a)(h);function h(d){var l;Object(j.a)(this,h),l=_.call(this,d),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(b(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(L,P){var S=l.props.prefixCls,A=L||e.a.createElement("button",{type:"button","aria-label":P,className:"".concat(S,"-item-link")});return typeof L=="function"&&(A=e.a.createElement(L,Object(I.a)({},l.props))),A},l.savePaginationNode=function(L){l.paginationNode=L},l.isValid=function(L){return n(L)&&L!==l.state.current},l.shouldDisplayQuickJumper=function(){var L=l.props,P=L.showQuickJumper,S=L.pageSize,A=L.total;return A<=S?!1:P},l.handleKeyDown=function(L){(L.keyCode===a.ARROW_UP||L.keyCode===a.ARROW_DOWN)&&L.preventDefault()},l.handleKeyUp=function(L){var P=l.getValidValue(L),S=l.state.currentInputValue;P!==S&&l.setState({currentInputValue:P}),L.keyCode===a.ENTER?l.handleChange(P):L.keyCode===a.ARROW_UP?l.handleChange(P-1):L.keyCode===a.ARROW_DOWN&&l.handleChange(P+1)},l.changePageSize=function(L){var P=l.state.current,S=b(L,l.state,l.props);P=P>S?S:P,S===0&&(P=l.state.current),typeof L=="number"&&("pageSize"in l.props||l.setState({pageSize:L}),"current"in l.props||l.setState({current:P,currentInputValue:P})),l.props.onShowSizeChange(P,L),"onChange"in l.props&&l.props.onChange&&l.props.onChange(P,L)},l.handleChange=function(L){var P=l.props.disabled,S=L;if(l.isValid(S)&&!P){var A=b(void 0,l.state,l.props);S>A?S=A:S<1&&(S=1),"current"in l.props||l.setState({current:S,currentInputValue:S});var H=l.state.pageSize;return l.props.onChange(S,H),S}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current<b(void 0,l.state,l.props)},l.runIfEnter=function(L,P){if(L.key==="Enter"||L.charCode===13){for(var S=arguments.length,A=new Array(S>2?S-2:0),H=2;H<S;H++)A[H-2]=arguments[H];P.apply(void 0,A)}},l.runIfEnterPrev=function(L){l.runIfEnter(L,l.prev)},l.runIfEnterNext=function(L){l.runIfEnter(L,l.next)},l.runIfEnterJumpPrev=function(L){l.runIfEnter(L,l.jumpPrev)},l.runIfEnterJumpNext=function(L){l.runIfEnter(L,l.jumpNext)},l.handleGoTO=function(L){(L.keyCode===a.ENTER||L.type==="click")&&l.handleChange(l.state.currentInputValue)};var c=d.onChange!==i,v="current"in d;v&&!c&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var f=d.defaultCurrent;"current"in d&&(f=d.current);var T=d.defaultPageSize;return"pageSize"in d&&(T=d.pageSize),f=Math.min(f,b(T,void 0,d)),l.state={current:f,currentInputValue:f,pageSize:T},l}return Object(C.a)(h,[{key:"componentDidUpdate",value:function(l,c){var v=this.props.prefixCls;if(c.current!==this.state.current&&this.paginationNode){var f=this.paginationNode.querySelector(".".concat(v,"-item-").concat(c.current));f&&document.activeElement===f&&f.blur()}}},{key:"getValidValue",value:function(l){var c=l.target.value,v=b(void 0,this.state,this.props),f=this.state.currentInputValue,T;return c===""?T=c:isNaN(Number(c))?T=f:c>=v?T=v:T=Number(c),T}},{key:"getShowSizeChanger",value:function(){var l=this.props,c=l.showSizeChanger,v=l.total,f=l.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:v>f}},{key:"renderPrev",value:function(l){var c=this.props,v=c.prevIcon,f=c.itemRender,T=f(l,"prev",this.getItemIcon(v,"prev page")),L=!this.hasPrev();return Object(k.isValidElement)(T)?Object(k.cloneElement)(T,{disabled:L}):T}},{key:"renderNext",value:function(l){var c=this.props,v=c.nextIcon,f=c.itemRender,T=f(l,"next",this.getItemIcon(v,"next page")),L=!this.hasNext();return Object(k.isValidElement)(T)?Object(k.cloneElement)(T,{disabled:L}):T}},{key:"render",value:function(){var l=this,c=this.props,v=c.prefixCls,f=c.className,T=c.style,L=c.disabled,P=c.hideOnSinglePage,S=c.total,A=c.locale,H=c.showQuickJumper,D=c.showLessItems,K=c.showTitle,V=c.showTotal,oe=c.simple,le=c.itemRender,Ce=c.showPrevNextJumpers,xe=c.jumpPrevIcon,ie=c.jumpNextIcon,Se=c.selectComponentClass,Pe=c.selectPrefixCls,de=c.pageSizeOptions,$=this.state,Ne=$.current,lt=$.pageSize,it=$.currentInputValue;if(P===!0&&S<=lt)return null;var Je=b(void 0,this.state,this.props),at=[],Ue=null,ze=null,et=null,ee=null,ge=null,_e=H&&H.goButton,we=D?1:2,Ve=Ne-1>0?Ne-1:0,Ze=Ne+1<Je?Ne+1:Je,rt=Object.keys(this.props).reduce(function(Y,J){return(J.substr(0,5)==="data-"||J.substr(0,5)==="aria-"||J==="role")&&(Y[J]=l.props[J]),Y},{});if(oe)return _e&&(typeof _e=="boolean"?ge=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},A.jump_to_confirm):ge=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_e),ge=e.a.createElement("li",{title:K?"".concat(A.jump_to).concat(Ne,"/").concat(Je):null,className:"".concat(v,"-simple-pager")},ge)),e.a.createElement("ul",Object(Q.a)({className:g()(v,"".concat(v,"-simple"),Object(M.a)({},"".concat(v,"-disabled"),L),f),style:T,ref:this.savePaginationNode},rt),e.a.createElement("li",{title:K?A.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:g()("".concat(v,"-prev"),Object(M.a)({},"".concat(v,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Ve)),e.a.createElement("li",{title:K?"".concat(Ne,"/").concat(Je):null,className:"".concat(v,"-simple-pager")},e.a.createElement("input",{type:"text",value:it,disabled:L,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(v,"-slash")},"/"),Je),e.a.createElement("li",{title:K?A.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:g()("".concat(v,"-next"),Object(M.a)({},"".concat(v,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ze)),ge);if(Je<=3+we*2){var $e={locale:A,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:K,itemRender:le};Je||at.push(e.a.createElement(u,Object(Q.a)({},$e,{key:"noPager",page:Je,className:"".concat(v,"-disabled")})));for(var ft=1;ft<=Je;ft+=1){var ht=Ne===ft;at.push(e.a.createElement(u,Object(Q.a)({},$e,{key:ft,page:ft,active:ht})))}}else{var ye=D?A.prev_3:A.prev_5,Ae=D?A.next_3:A.next_5;Ce&&(Ue=e.a.createElement("li",{title:K?ye:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:g()("".concat(v,"-jump-prev"),Object(M.a)({},"".concat(v,"-jump-prev-custom-icon"),!!xe))},le(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(xe,"prev page"))),ze=e.a.createElement("li",{title:K?Ae:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:g()("".concat(v,"-jump-next"),Object(M.a)({},"".concat(v,"-jump-next-custom-icon"),!!ie))},le(this.getJumpNextPage(),"jump-next",this.getItemIcon(ie,"next page")))),ee=e.a.createElement(u,{locale:A,last:!0,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Je,page:Je,active:!1,showTitle:K,itemRender:le}),et=e.a.createElement(u,{locale:A,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:K,itemRender:le});var ke=Math.max(1,Ne-we),He=Math.min(Ne+we,Je);Ne-1<=we&&(He=1+we*2),Je-Ne<=we&&(ke=Je-we*2);for(var Ie=ke;Ie<=He;Ie+=1){var Le=Ne===Ie;at.push(e.a.createElement(u,{locale:A,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ie,page:Ie,active:Le,showTitle:K,itemRender:le}))}Ne-1>=we*2&&Ne!==1+2&&(at[0]=Object(k.cloneElement)(at[0],{className:"".concat(v,"-item-after-jump-prev")}),at.unshift(Ue)),Je-Ne>=we*2&&Ne!==Je-2&&(at[at.length-1]=Object(k.cloneElement)(at[at.length-1],{className:"".concat(v,"-item-before-jump-next")}),at.push(ze)),ke!==1&&at.unshift(et),He!==Je&&at.push(ee)}var fe=null;V&&(fe=e.a.createElement("li",{className:"".concat(v,"-total-text")},V(S,[S===0?0:(Ne-1)*lt+1,Ne*lt>S?S:Ne*lt])));var re=!this.hasPrev()||!Je,ae=!this.hasNext()||!Je;return e.a.createElement("ul",Object(Q.a)({className:g()(v,f,Object(M.a)({},"".concat(v,"-disabled"),L)),style:T,unselectable:"unselectable",ref:this.savePaginationNode},rt),fe,e.a.createElement("li",{title:K?A.prev_page:null,onClick:this.prev,tabIndex:re?null:0,onKeyPress:this.runIfEnterPrev,className:g()("".concat(v,"-prev"),Object(M.a)({},"".concat(v,"-disabled"),re)),"aria-disabled":re},this.renderPrev(Ve)),at,e.a.createElement("li",{title:K?A.next_page:null,onClick:this.next,tabIndex:ae?null:0,onKeyPress:this.runIfEnterNext,className:g()("".concat(v,"-next"),Object(M.a)({},"".concat(v,"-disabled"),ae)),"aria-disabled":ae},this.renderNext(Ze)),e.a.createElement(o,{disabled:L,locale:A,rootPrefixCls:v,selectComponentClass:Se,selectPrefixCls:Pe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ne,pageSize:lt,pageSizeOptions:de,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var v={};if("current"in l&&(v.current=l.current,l.current!==c.current&&(v.currentInputValue=v.current)),"pageSize"in l&&l.pageSize!==c.pageSize){var f=c.current,T=b(l.pageSize,c,l);f=f>T?T:f,"current"in l||(v.current=f,v.currentInputValue=f),v.pageSize=l.pageSize}return v}}]),h}(e.a.Component);y.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:i,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:i,locale:s.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var m=y},"6RRn":function(je,ne,N){"use strict";var Q=N("wCXF"),M=N("n6Qo");N.d(ne,"b",function(){return M.a});var I=N("IBYe"),j=N("6eGT"),C=N("hW8S");N.d(ne,"a",function(){return C.a}),ne.c=Q.b},"6UM0":function(je,ne,N){var Q,M;(function(){var I;(function(){"use strict";var C=[function(e,O,g){var p=g(1).Beautifier,u=g(5).Options;function a(r,o){var s=new p(r,o);return s.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new u}},function(e,O,g){var p=g(2).Output,u=g(3).Token,a=g(4),r=g(5).Options,o=g(7).Tokenizer,s=g(7).line_starters,i=g(7).positionable_operators,n=g(7).TOKEN;function t(D,K){return K.indexOf(D)!==-1}function b(D){return D.replace(/^\s+/g,"")}function y(D){for(var K={},V=0;V<D.length;V++)K[D[V].replace(/-/g,"_")]=D[V];return K}function m(D,K){return D&&D.type===n.RESERVED&&D.text===K}function x(D,K){return D&&D.type===n.RESERVED&&t(D.text,K)}var _=["case","return","do","if","throw","else","await","break","continue","async"],h=["before-newline","after-newline","preserve-newline"],d=y(h),l=[d.before_newline,d.preserve_newline],c={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function v(D,K){if(K.multiline_frame||K.mode===c.ForInitializer||K.mode===c.Conditional)return;D.remove_indent(K.start_line_index)}function f(D){D=D.replace(a.allLineBreaks,`
|
|
`);for(var K=[],V=D.indexOf(`
|
|
`);V!==-1;)K.push(D.substring(0,V)),D=D.substring(V+1),V=D.indexOf(`
|
|
`);return D.length&&K.push(D),K}function T(D){return D===c.ArrayLiteral}function L(D){return t(D,[c.Expression,c.ForInitializer,c.Conditional])}function P(D,K){for(var V=0;V<D.length;V++){var oe=D[V].trim();if(oe.charAt(0)!==K)return!1}return!0}function S(D,K){for(var V=0,oe=D.length,le;V<oe;V++)if(le=D[V],le&&le.indexOf(K)!==0)return!1;return!0}function A(D,K){K=K||{},this._source_text=D||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(K)}A.prototype.create_flags=function(D,K){var V=0;D&&(V=D.indentation_level,!this._output.just_added_newline()&&D.line_indent_level>V&&(V=D.line_indent_level));var oe={mode:K,parent:D,last_token:D?D.last_token:new u(n.START_BLOCK,""),last_word:D?D.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:V,alignment:0,line_indent_level:D?D.line_indent_level:V,start_line_index:this._output.get_line_number(),ternary_depth:0};return oe},A.prototype._reset=function(D){var K=D.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(c.BlockStatement);var V=new o(D,this._options);return this._tokens=V.tokenize(),D},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,K=this._reset(this._source_text),V=this._options.eol;this._options.eol==="auto"&&(V=`
|
|
`,K&&a.lineBreak.test(K||"")&&(V=K.match(a.lineBreak)[0]));for(var oe=this._tokens.next();oe;)this.handle_token(oe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=oe,oe=this._tokens.next();return D=this._output.get_code(V),D},A.prototype.handle_token=function(D,K){D.type===n.START_EXPR?this.handle_start_expr(D):D.type===n.END_EXPR?this.handle_end_expr(D):D.type===n.START_BLOCK?this.handle_start_block(D):D.type===n.END_BLOCK?this.handle_end_block(D):D.type===n.WORD?this.handle_word(D):D.type===n.RESERVED?this.handle_word(D):D.type===n.SEMICOLON?this.handle_semicolon(D):D.type===n.STRING?this.handle_string(D):D.type===n.EQUALS?this.handle_equals(D):D.type===n.OPERATOR?this.handle_operator(D):D.type===n.COMMA?this.handle_comma(D):D.type===n.BLOCK_COMMENT?this.handle_block_comment(D,K):D.type===n.COMMENT?this.handle_comment(D,K):D.type===n.DOT?this.handle_dot(D):D.type===n.EOF?this.handle_eof(D):D.type===n.UNKNOWN?this.handle_unknown(D,K):this.handle_unknown(D,K)},A.prototype.handle_whitespace_and_comments=function(D,K){var V=D.newlines,oe=this._options.keep_array_indentation&&T(this._flags.mode);if(D.comments_before)for(var le=D.comments_before.next();le;)this.handle_whitespace_and_comments(le,K),this.handle_token(le,K),le=D.comments_before.next();if(oe)for(var Ce=0;Ce<V;Ce+=1)this.print_newline(Ce>0,K);else if(this._options.max_preserve_newlines&&V>this._options.max_preserve_newlines&&(V=this._options.max_preserve_newlines),this._options.preserve_newlines&&V>1){this.print_newline(!1,K);for(var xe=1;xe<V;xe+=1)this.print_newline(!0,K)}};var H=["async","break","continue","return","throw","yield"];A.prototype.allow_wrap_or_preserved_newline=function(D,K){if(K=K===void 0?!1:K,this._output.just_added_newline())return;var V=this._options.preserve_newlines&&D.newlines||K,oe=t(this._flags.last_token.text,i)||t(D.text,i);if(oe){var le=t(this._flags.last_token.text,i)&&t(this._options.operator_position,l)||t(D.text,i);V=V&&le}if(V)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(x(this._flags.last_token,H))return;this._output.set_wrap_point()}},A.prototype.print_newline=function(D,K){if(!K&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==n.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var V=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&m(V,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(D)&&(this._flags.multiline_frame=!0)},A.prototype.print_token_line_indentation=function(D){this._output.just_added_newline()&&(this._options.keep_array_indentation&&D.newlines&&(D.text==="["||T(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(D.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},A.prototype.print_token=function(D){if(this._output.raw){this._output.add_raw_token(D);return}if(this._options.comma_first&&D.previous&&D.previous.type===n.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(D),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(D),this._output.non_breaking_space=!0,this._output.add_token(D.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},A.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.set_mode=function(D){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,D),this._flags=this.create_flags(this._previous_flags,D),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===c.Statement&&v(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.start_of_object_property=function(){return this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"]))},A.prototype.start_of_statement=function(D){var K=!1;return K=K||x(this._flags.last_token,["var","let","const"])&&D.type===n.WORD,K=K||m(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement)&&x(this._flags.last_token,H)&&!D.newlines,K=K||m(this._flags.last_token,"else")&&!(m(D,"if")&&!D.comments_before),K=K||this._flags.last_token.type===n.END_EXPR&&(this._previous_flags.mode===c.ForInitializer||this._previous_flags.mode===c.Conditional),K=K||this._flags.last_token.type===n.WORD&&this._flags.mode===c.BlockStatement&&!this._flags.in_case&&!(D.text==="--"||D.text==="++")&&this._last_last_text!=="function"&&D.type!==n.WORD&&D.type!==n.RESERVED,K=K||this._flags.mode===c.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"])),K?(this.set_mode(c.Statement),this.indent(),this.handle_whitespace_and_comments(D,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D,x(D,["do","for","if","while"])),!0):!1},A.prototype.handle_start_expr=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D);var K=c.Expression;if(D.text==="["){if(this._flags.last_token.type===n.WORD||this._flags.last_token.text===")"){x(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(D),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=c.ArrayLiteral,T(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),t(this._flags.last_token.type,[n.START_EXPR,n.END_EXPR,n.WORD,n.OPERATOR,n.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===n.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=c.ForInitializer):t(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=c.Conditional):t(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&D.whitespace_before===""?this._output.space_before_token=!1:(t(this._flags.last_token.text,s)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D);else if(this._flags.last_token.type===n.WORD){this._output.space_before_token=!1;var V=this._tokens.peek(-3);if(this._options.space_after_named_function&&V){var oe=this._tokens.peek(-4);x(V,["async","function"])||V.text==="*"&&x(oe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===c.ObjectLiteral?(V.text==="{"||V.text===","||V.text==="*"&&(oe.text==="{"||oe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(D);(this._flags.last_token.type===n.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&t(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===n.START_BLOCK?this.print_newline():(this._flags.last_token.type===n.END_EXPR||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===n.COMMA)&&this.allow_wrap_or_preserved_newline(D,D.newlines),this.print_token(D),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},A.prototype.handle_end_expr=function(D){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(D,D.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===n.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(D),this.restore_mode(),v(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===c.Conditional&&(this._previous_flags.mode=c.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},A.prototype.handle_start_block=function(D){this.handle_whitespace_and_comments(D);var K=this._tokens.peek(),V=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===n.END_EXPR?(this.set_mode(c.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(c.BlockStatement):V&&(t(V.text,[":",","])&&t(K.type,[n.STRING,n.WORD,n.RESERVED])||t(K.text,["get","set","..."])&&t(V.type,[n.WORD,n.RESERVED]))?t(this._last_last_text,["class","interface"])&&!t(V.text,[":",","])?this.set_mode(c.BlockStatement):this.set_mode(c.ObjectLiteral):this._flags.last_token.type===n.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(c.BlockStatement):t(this._flags.last_token.type,[n.EQUALS,n.START_EXPR,n.COMMA,n.OPERATOR])||x(this._flags.last_token,["return","throw","import","default"])?this.set_mode(c.ObjectLiteral):this.set_mode(c.BlockStatement),this._flags.last_token&&(x(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var oe=!K.comments_before&&K.text==="}",le=oe&&this._flags.last_word==="function"&&this._flags.last_token.type===n.END_EXPR;if(this._options.brace_preserve_inline){var Ce=0,xe=null;this._flags.inline_frame=!0;do if(Ce+=1,xe=this._tokens.peek(Ce-1),xe.newlines){this._flags.inline_frame=!1;break}while(xe.type!==n.EOF&&!(xe.type===n.END_BLOCK&&xe.opened===D))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==n.OPERATOR&&(le||this._flags.last_token.type===n.EQUALS||x(this._flags.last_token,_)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.COMMA)&&((this._flags.last_token.type===n.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(D),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==n.OPERATOR&&this._flags.last_token.type!==n.START_EXPR&&(this._flags.last_token.type===n.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(D),this.indent(),!oe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},A.prototype.handle_end_block=function(D){for(this.handle_whitespace_and_comments(D);this._flags.mode===c.Statement;)this.restore_mode();var K=this._flags.last_token.type===n.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(T(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(D)},A.prototype.handle_word=function(D){if(D.type===n.RESERVED){if(t(D.text,["set","get"])&&this._flags.mode!==c.ObjectLiteral)D.type=n.WORD;else if(D.text==="import"&&t(this._tokens.peek().text,["(","."]))D.type=n.WORD;else if(t(D.text,["as","from"])&&!this._flags.import_block)D.type=n.WORD;else if(this._flags.mode===c.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(D.type=n.WORD)}}if(this.start_of_statement(D)?x(this._flags.last_token,["var","let","const"])&&D.type===n.WORD&&(this._flags.declaration_statement=!0):D.newlines&&!L(this._flags.mode)&&(this._flags.last_token.type!==n.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==n.EQUALS&&(this._options.preserve_newlines||!x(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(D),this.print_newline()):this.handle_whitespace_and_comments(D),this._flags.do_block&&!this._flags.do_while)if(m(D,"while")){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&m(D,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===c.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&x(D,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(D),this._flags.in_case=!0;return}if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D)),m(D,"function")){(t(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(t(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===n.OPERATOR))&&(!this._output.just_added_blankline()&&!D.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD?x(this._flags.last_token,["get","set","new","export"])||x(this._flags.last_token,H)?this._output.space_before_token=!0:m(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===n.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(L(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(D),this._flags.last_word=D.text;return}var V="NONE";if(this._flags.last_token.type===n.END_BLOCK?this._previous_flags.inline_frame?V="SPACE":x(D,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines?V="NEWLINE":(V="SPACE",this._output.space_before_token=!0):V="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&this._flags.mode===c.BlockStatement?V="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&L(this._flags.mode)?V="SPACE":this._flags.last_token.type===n.STRING?V="NEWLINE":this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&t(this._last_last_text,["{",","]))?V="SPACE":this._flags.last_token.type===n.START_BLOCK?this._flags.inline_frame?V="SPACE":V="NEWLINE":this._flags.last_token.type===n.END_EXPR&&(this._output.space_before_token=!0,V="NEWLINE"),x(D,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?V="SPACE":V="NEWLINE"),x(D,["else","catch","finally"]))if((!(this._flags.last_token.type===n.END_BLOCK&&this._previous_flags.mode===c.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var oe=this._output.current_line;oe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else V==="NEWLINE"?x(this._flags.last_token,_)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&x(D,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==n.END_EXPR?(this._flags.last_token.type!==n.START_EXPR||!x(D,["var","let","const"]))&&this._flags.last_token.text!==":"&&(m(D,"if")&&m(D.previous,"else")?this._output.space_before_token=!0:this.print_newline()):x(D,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():V==="SPACE"&&(this._output.space_before_token=!0);D.previous&&(D.previous.type===n.WORD||D.previous.type===n.RESERVED)&&(this._output.space_before_token=!0),this.print_token(D),this._flags.last_word=D.text,D.type===n.RESERVED&&(D.text==="do"?this._flags.do_block=!0:D.text==="if"?this._flags.if_block=!0:D.text==="import"?this._flags.import_block=!0:this._flags.import_block&&m(D,"from")&&(this._flags.import_block=!1))},A.prototype.handle_semicolon=function(D){this.start_of_statement(D)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(D);for(var K=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&m(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(D)},A.prototype.handle_string=function(D){D.text.startsWith("`")&&D.newlines===0&&D.whitespace_before===""&&(D.previous.text===")"||this._flags.last_token.type===n.WORD)||(this.start_of_statement(D)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(D),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D):D.text.startsWith("`")&&this._flags.last_token.type===n.END_EXPR&&(D.previous.text==="]"||D.previous.text===")")&&D.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(D)},A.prototype.handle_equals=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0},A.prototype.handle_comma=function(D){this.handle_whitespace_and_comments(D,!0),this.print_token(D),this._output.space_before_token=!0,this._flags.declaration_statement?(L(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)):this._flags.mode===c.ObjectLiteral||this._flags.mode===c.Statement&&this._flags.parent.mode===c.ObjectLiteral?(this._flags.mode===c.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)},A.prototype.handle_operator=function(D){var K=D.text==="*"&&(x(this._flags.last_token,["function","yield"])||t(this._flags.last_token.type,[n.START_BLOCK,n.COMMA,n.END_BLOCK,n.SEMICOLON])),V=t(D.text,["-","+"])&&(t(this._flags.last_token.type,[n.START_BLOCK,n.START_EXPR,n.EQUALS,n.OPERATOR])||t(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(D)){var oe=!K;this.handle_whitespace_and_comments(D,oe)}if(D.text==="*"&&this._flags.last_token.type===n.DOT){this.print_token(D);return}if(D.text==="::"){this.print_token(D);return}if(this._flags.last_token.type===n.OPERATOR&&t(this._options.operator_position,l)&&this.allow_wrap_or_preserved_newline(D),D.text===":"&&this._flags.in_case){this.print_token(D),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==n.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var le=!0,Ce=!0,xe=!1;if(D.text===":"?this._flags.ternary_depth===0?le=!1:(this._flags.ternary_depth-=1,xe=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!V&&!K&&this._options.preserve_newlines&&t(D.text,i)){var ie=D.text===":",Se=ie&&xe,Pe=ie&&!xe;switch(this._options.operator_position){case d.before_newline:this._output.space_before_token=!Pe,this.print_token(D),(!ie||Se)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case d.after_newline:this._output.space_before_token=!0,!ie||Se?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(D):this._output.space_before_token=!1,this.print_token(D),this._output.space_before_token=!0;return;case d.preserve_newline:Pe||this.allow_wrap_or_preserved_newline(D),le=!(this._output.just_added_newline()||Pe),this._output.space_before_token=le,this.print_token(D),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(D),le=!1;var de=this._tokens.peek();Ce=de&&t(de.type,[n.WORD,n.RESERVED])}else if(D.text==="...")this.allow_wrap_or_preserved_newline(D),le=this._flags.last_token.type===n.START_BLOCK,Ce=!1;else if(t(D.text,["--","++","!","~"])||V){if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR)&&this.allow_wrap_or_preserved_newline(D),le=!1,Ce=!1,D.newlines&&(D.text==="--"||D.text==="++"||D.text==="~")){var $=x(this._flags.last_token,_)&&D.newlines;$&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline($,!0)}this._flags.last_token.text===";"&&L(this._flags.mode)&&(le=!0),this._flags.last_token.type===n.RESERVED?le=!0:this._flags.last_token.type===n.END_EXPR?le=!(this._flags.last_token.text==="]"&&(D.text==="--"||D.text==="++")):this._flags.last_token.type===n.OPERATOR&&(le=t(D.text,["--","-","++","+"])&&t(this._flags.last_token.text,["--","-","++","+"]),t(D.text,["+","-"])&&t(this._flags.last_token.text,["--","++"])&&(Ce=!0)),(this._flags.mode===c.BlockStatement&&!this._flags.inline_frame||this._flags.mode===c.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||le,this.print_token(D),this._output.space_before_token=Ce},A.prototype.handle_block_comment=function(D,K){if(this._output.raw){this._output.add_raw_token(D),D.directives&&D.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(D.directives){this.print_newline(!1,K),this.print_token(D),D.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(D.text)&&!D.newlines){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0;return}else this.print_block_commment(D,K)},A.prototype.print_block_commment=function(D,K){var V=f(D.text),oe,le=!1,Ce=!1,xe=D.whitespace_before,ie=xe.length;if(this.print_newline(!1,K),this.print_token_line_indentation(D),this._output.add_token(V[0]),this.print_newline(!1,K),V.length>1){for(V=V.slice(1),le=P(V,"*"),Ce=S(V,xe),le&&(this._flags.alignment=1),oe=0;oe<V.length;oe++)le?(this.print_token_line_indentation(D),this._output.add_token(b(V[oe]))):Ce&&V[oe]?(this.print_token_line_indentation(D),this._output.add_token(V[oe].substring(ie))):(this._output.current_line.set_indent(-1),this._output.add_token(V[oe])),this.print_newline(!1,K);this._flags.alignment=0}},A.prototype.handle_comment=function(D,K){D.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(D),this.print_newline(!1,K)},A.prototype.handle_dot=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),x(this._flags.last_token,_)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(D,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(D)},A.prototype.handle_unknown=function(D,K){this.print_token(D),D.text[D.text.length-1]===`
|
|
`&&this.print_newline(!1,K)},A.prototype.handle_eof=function(D){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D)},e.exports.Beautifier=A},function(e){function O(u){this.__parent=u,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}O.prototype.clone_empty=function(){var u=new O(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},O.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},O.prototype.has_match=function(u){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(u))return!0;return!1},O.prototype.set_indent=function(u,a){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},O.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},O.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},O.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},O.prototype.is_empty=function(){return this.__items.length===0},O.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},O.prototype.push=function(u){this.__items.push(u);var a=u.lastIndexOf(`
|
|
`);a!==-1?this.__character_count=u.length-a:this.__character_count+=u.length},O.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},O.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},O.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},O.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},O.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function g(u,a){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),a=a||"",u.indent_level>0&&(a=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}g.prototype.get_indent_size=function(u,a){var r=this.__base_string_length;return a=a||0,u<0&&(r=0),r+=u*this.__indent_size,r+=a,r},g.prototype.get_indent_string=function(u,a){var r=this.__base_string;return a=a||0,u<0&&(u=0,r=""),a+=u*this.__indent_size,this.__ensure_cache(a),r+=this.__cache[a],r},g.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var u=this.__cache.length,a=0,r="";this.__indent_size&&u>=this.__indent_size&&(a=Math.floor(u/this.__indent_size),u-=a*this.__indent_size,r=new Array(a+1).join(this.__indent_string)),u&&(r+=new Array(u+1).join(" ")),this.__cache.push(r)};function p(u,a){this.__indent_cache=new g(u,a),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new O(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(u,a){return this.__indent_cache.get_indent_string(u,a)},p.prototype.get_indent_size=function(u,a){return this.__indent_cache.get_indent_size(u,a)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(u){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
|
|
`);return u!==`
|
|
`&&(r=r.replace(/[\n]/g,u)),r},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(u,a){return u=u||0,a=a||0,this.next_line.set_indent(u,a),this.__lines.length>1?(this.current_line.set_indent(u,a),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(u){for(var a=0;a<u.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(u.whitespace_before),this.current_line.push(u.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},p.prototype.add_token=function(u){this.__add_space_before_token(),this.current_line.push(u),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},p.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},p.prototype.remove_indent=function(u){for(var a=this.__lines.length;u<a;)this.__lines[u]._remove_indent(),u++;this.current_line._remove_wrap_indent()},p.prototype.trim=function(u){for(u=u===void 0?!1:u,this.current_line.trim();u&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(u,a){for(var r=this.__lines.length-2;r>=0;){var o=this.__lines[r];if(o.is_empty())break;if(o.item(0).indexOf(u)!==0&&o.item(-1)!==a){this.__lines.splice(r+1,0,new O(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=p},function(e){function O(g,p,u,a){this.type=g,this.text=p,this.comments_before=null,this.newlines=u||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=O},function(e,O){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",u="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\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8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",r="(?:\\\\u[0-9a-fA-F]{4}|["+g+u+"])",o="(?:\\\\u[0-9a-fA-F]{4}|["+p+u+a+"])*";O.identifier=new RegExp(r+o,"g"),O.identifierStart=new RegExp(r),O.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+p+u+a+"])+");var s=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;O.newline=/[\n\r\u2028\u2029]/,O.lineBreak=new RegExp(`\r
|
|
|`+O.newline.source),O.allLineBreaks=new RegExp(O.lineBreak.source,"g")},function(e,O,g){var p=g(6).Options,u=["before-newline","after-newline","preserve-newline"];function a(r){p.call(this,r,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var i=0;i<s.length;i++)s[i]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=s[i];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",u),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}a.prototype=new p,e.exports.Options=a},function(e){function O(u,a){this.raw_options=g(u,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}O.prototype._get_array=function(u,a){var r=this.raw_options[u],o=a||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(o=r.concat()):typeof r=="string"&&(o=r.split(/[^a-zA-Z0-9_\/\-]+/)),o},O.prototype._get_boolean=function(u,a){var r=this.raw_options[u],o=r===void 0?!!a:!!r;return o},O.prototype._get_characters=function(u,a){var r=this.raw_options[u],o=a||"";return typeof r=="string"&&(o=r.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),o},O.prototype._get_number=function(u,a){var r=this.raw_options[u];a=parseInt(a,10),isNaN(a)&&(a=0);var o=parseInt(r,10);return isNaN(o)&&(o=a),o},O.prototype._get_selection=function(u,a,r){var o=this._get_selection_list(u,a,r);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+u+`' can only be one of the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[u]+"'");return o[0]},O.prototype._get_selection_list=function(u,a,r){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[a[0]],!this._is_valid_selection(r,a))throw new Error("Invalid Default Value!");var o=this._get_array(u,r);if(!this._is_valid_selection(o,a))throw new Error("Invalid Option Value: The option '"+u+`' can contain only the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[u]+"'");return o},O.prototype._is_valid_selection=function(u,a){return u.length&&a.length&&!u.some(function(r){return a.indexOf(r)===-1})};function g(u,a){var r={};u=p(u);var o;for(o in u)o!==a&&(r[o]=u[o]);if(a&&u[a])for(o in u[a])r[o]=u[a][o];return r}function p(u){var a={},r;for(r in u){var o=r.replace(/-/g,"_");a[o]=u[r]}return a}e.exports.Options=O,e.exports.normalizeOpts=p,e.exports.mergeOpts=g},function(e,O,g){var p=g(8).InputScanner,u=g(9).Tokenizer,a=g(9).TOKEN,r=g(13).Directives,o=g(4),s=g(12).Pattern,i=g(14).TemplatablePattern;function n(P,S){return S.indexOf(P)!==-1}var t={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},b=new r(/\/\*/,/\*\//),y=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,m=/[0-9]/,x=/[^\d\.]/,_=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),h=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";h=h.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),h="\\?\\.(?!\\d) "+h,h=h.replace(/ /g,"|");var d=new RegExp(h),l="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),c=l.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),v=new RegExp("^(?:"+c.join("|")+")$"),f,T=function(P,S){u.call(this,P,S),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var A=new s(this._input),H=new i(this._input).read_options(this._options);this.__patterns={template:H,identifier:H.starting_with(o.identifier).matching(o.identifierMatch),number:A.matching(y),punct:A.matching(d),comment:A.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:A.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:A.matching(/<!--/),html_comment_end:A.matching(/-->/),include:A.starting_with(/#include/).until_after(o.lineBreak),shebang:A.starting_with(/#!/).until_after(o.lineBreak),xml:A.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:H.until(/['\\\n\r\u2028\u2029]/),double_quote:H.until(/["\\\n\r\u2028\u2029]/),template_text:H.until(/[`\\$]/),template_expression:H.until(/[`}\\]/)}};T.prototype=new u,T.prototype._is_comment=function(P){return P.type===t.COMMENT||P.type===t.BLOCK_COMMENT||P.type===t.UNKNOWN},T.prototype._is_opening=function(P){return P.type===t.START_BLOCK||P.type===t.START_EXPR},T.prototype._is_closing=function(P,S){return(P.type===t.END_BLOCK||P.type===t.END_EXPR)&&S&&(P.text==="]"&&S.text==="["||P.text===")"&&S.text==="("||P.text==="}"&&S.text==="{")},T.prototype._reset=function(){f=!1},T.prototype._get_next_token=function(P,S){var A=null;this._readWhitespace();var H=this._input.peek();return H===null?this._create_token(t.EOF,""):(A=A||this._read_non_javascript(H),A=A||this._read_string(H),A=A||this._read_word(P),A=A||this._read_singles(H),A=A||this._read_comment(H),A=A||this._read_regexp(H,P),A=A||this._read_xml(H,P),A=A||this._read_punctuation(),A=A||this._create_token(t.UNKNOWN,this._input.next()),A)},T.prototype._read_word=function(P){var S;if(S=this.__patterns.identifier.read(),S!=="")return S=S.replace(o.allLineBreaks,`
|
|
`),!(P.type===t.DOT||P.type===t.RESERVED&&(P.text==="set"||P.text==="get"))&&v.test(S)?(S==="in"||S==="of")&&(P.type===t.WORD||P.type===t.STRING)?this._create_token(t.OPERATOR,S):this._create_token(t.RESERVED,S):this._create_token(t.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(t.WORD,S)},T.prototype._read_singles=function(P){var S=null;return P==="("||P==="["?S=this._create_token(t.START_EXPR,P):P===")"||P==="]"?S=this._create_token(t.END_EXPR,P):P==="{"?S=this._create_token(t.START_BLOCK,P):P==="}"?S=this._create_token(t.END_BLOCK,P):P===";"?S=this._create_token(t.SEMICOLON,P):P==="."&&x.test(this._input.peek(1))?S=this._create_token(t.DOT,P):P===","&&(S=this._create_token(t.COMMA,P)),S&&this._input.next(),S},T.prototype._read_punctuation=function(){var P=this.__patterns.punct.read();if(P!=="")return P==="="?this._create_token(t.EQUALS,P):P==="?."?this._create_token(t.DOT,P):this._create_token(t.OPERATOR,P)},T.prototype._read_non_javascript=function(P){var S="";if(P==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(t.UNKNOWN,S.trim()+`
|
|
`);if(S=this.__patterns.include.read(),S)return this._create_token(t.UNKNOWN,S.trim()+`
|
|
`);P=this._input.next();var A="#";if(this._input.hasNext()&&this._input.testChar(m)){do P=this._input.next(),A+=P;while(this._input.hasNext()&&P!=="#"&&P!=="=");return P==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(A+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(A+="{}",this._input.next(),this._input.next())),this._create_token(t.WORD,A)}this._input.back()}else if(P==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)S+=this._input.next();return f=!0,this._create_token(t.COMMENT,S)}}else if(f&&P==="-"&&(S=this.__patterns.html_comment_end.read(),S))return f=!1,this._create_token(t.COMMENT,S);return null},T.prototype._read_comment=function(P){var S=null;if(P==="/"){var A="";if(this._input.peek(1)==="*"){A=this.__patterns.block_comment.read();var H=b.get_directives(A);H&&H.ignore==="start"&&(A+=b.readIgnored(this._input)),A=A.replace(o.allLineBreaks,`
|
|
`),S=this._create_token(t.BLOCK_COMMENT,A),S.directives=H}else this._input.peek(1)==="/"&&(A=this.__patterns.comment.read(),S=this._create_token(t.COMMENT,A))}return S},T.prototype._read_string=function(P){if(P==="`"||P==="'"||P==='"'){var S=this._input.next();return this.has_char_escapes=!1,P==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(P),this.has_char_escapes&&this._options.unescape_strings&&(S=L(S)),this._input.peek()===P&&(S+=this._input.next()),S=S.replace(o.allLineBreaks,`
|
|
`),this._create_token(t.STRING,S)}return null},T.prototype._allow_regexp_or_xml=function(P){return P.type===t.RESERVED&&n(P.text,["return","case","throw","else","do","typeof","yield"])||P.type===t.END_EXPR&&P.text===")"&&P.opened.previous.type===t.RESERVED&&n(P.opened.previous.text,["if","while","for"])||n(P.type,[t.COMMENT,t.START_EXPR,t.START_BLOCK,t.START,t.END_BLOCK,t.OPERATOR,t.EQUALS,t.EOF,t.SEMICOLON,t.COMMA])},T.prototype._read_regexp=function(P,S){if(P==="/"&&this._allow_regexp_or_xml(S)){for(var A=this._input.next(),H=!1,D=!1;this._input.hasNext()&&(H||D||this._input.peek()!==P)&&!this._input.testChar(o.newline);)A+=this._input.peek(),H?H=!1:(H=this._input.peek()==="\\",this._input.peek()==="["?D=!0:this._input.peek()==="]"&&(D=!1)),this._input.next();return this._input.peek()===P&&(A+=this._input.next(),A+=this._input.read(o.identifier)),this._create_token(t.STRING,A)}return null},T.prototype._read_xml=function(P,S){if(this._options.e4x&&P==="<"&&this._allow_regexp_or_xml(S)){var A="",H=this.__patterns.xml.read_match();if(H){for(var D=H[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=D.indexOf("{")===0,V=0;H;){var oe=!!H[1],le=H[2],Ce=!!H[H.length-1]||le.slice(0,8)==="![CDATA[";if(!Ce&&(le===D||K&&le.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(oe?--V:++V),A+=H[0],V<=0)break;H=this.__patterns.xml.read_match()}return H||(A+=this._input.match(/[\s\S]*/g)[0]),A=A.replace(o.allLineBreaks,`
|
|
`),this._create_token(t.STRING,A)}}return null};function L(P){for(var S="",A=0,H=new p(P),D=null;H.hasNext();)if(D=H.match(/([\s]|[^\\]|\\\\)+/g),D&&(S+=D[0]),H.peek()==="\\"){if(H.next(),H.peek()==="x")D=H.match(/x([0-9A-Fa-f]{2})/g);else if(H.peek()==="u")D=H.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",H.hasNext()&&(S+=H.next());continue}if(!D)return P;if(A=parseInt(D[1],16),A>126&&A<=255&&D[0].indexOf("x")===0)return P;if(A>=0&&A<32){S+="\\"+D[0];continue}else A===34||A===39||A===92?S+="\\"+String.fromCharCode(A):S+=String.fromCharCode(A)}return S}T.prototype._read_string_recursive=function(P,S,A){var H,D;P==="'"?D=this.__patterns.single_quote:P==='"'?D=this.__patterns.double_quote:P==="`"?D=this.__patterns.template_text:P==="}"&&(D=this.__patterns.template_expression);for(var K=D.read(),V="";this._input.hasNext();){if(V=this._input.next(),V===P||!S&&o.newline.test(V)){this._input.back();break}else V==="\\"&&this._input.hasNext()?(H=this._input.peek(),H==="x"||H==="u"?this.has_char_escapes=!0:H==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),V+=this._input.next()):A&&(A==="${"&&V==="$"&&this._input.peek()==="{"&&(V+=this._input.next()),A===V&&(P==="`"?V+=this._read_string_recursive("}",S,"`"):V+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(V+=this._input.next())));V+=D.read(),K+=V}return K},e.exports.Tokenizer=T,e.exports.TOKEN=t,e.exports.positionable_operators=_.slice(),e.exports.line_starters=l.slice()},function(e){var O=RegExp.prototype.hasOwnProperty("sticky");function g(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var p=null;return this.hasNext()&&(p=this.__input.charAt(this.__position),this.__position+=1),p},g.prototype.peek=function(p){var u=null;return p=p||0,p+=this.__position,p>=0&&p<this.__input_length&&(u=this.__input.charAt(p)),u},g.prototype.__match=function(p,u){p.lastIndex=u;var a=p.exec(this.__input);return a&&!(O&&p.sticky)&&(a.index!==u&&(a=null)),a},g.prototype.test=function(p,u){return u=u||0,u+=this.__position,u>=0&&u<this.__input_length?!!this.__match(p,u):!1},g.prototype.testChar=function(p,u){var a=this.peek(u);return p.lastIndex=0,a!==null&&p.test(a)},g.prototype.match=function(p){var u=this.__match(p,this.__position);return u?this.__position+=u[0].length:u=null,u},g.prototype.read=function(p,u,a){var r="",o;return p&&(o=this.match(p),o&&(r+=o[0])),u&&(o||!p)&&(r+=this.readUntil(u,a)),r},g.prototype.readUntil=function(p,u){var a="",r=this.__position;p.lastIndex=this.__position;var o=p.exec(this.__input);return o?(r=o.index,u&&(r+=o[0].length)):r=this.__input_length,a=this.__input.substring(this.__position,r),this.__position=r,a},g.prototype.readUntilAfter=function(p){return this.readUntil(p,!0)},g.prototype.get_regexp=function(p,u){var a=null,r="g";return u&&O&&(r="y"),typeof p=="string"&&p!==""?a=new RegExp(p,r):p&&(a=new RegExp(p.source,r)),a},g.prototype.get_literal_regexp=function(p){return RegExp(p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(p){var u=this.__position,a=this.readUntilAfter(p);return this.__position=u,a},g.prototype.lookBack=function(p){var u=this.__position-1;return u>=p.length&&this.__input.substring(u-p.length,u).toLowerCase()===p},e.exports.InputScanner=g},function(e,O,g){var p=g(8).InputScanner,u=g(3).Token,a=g(10).TokenStream,r=g(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(i,n){this._input=new p(i),this._options=n||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var i,n=new u(o.START,""),t=null,b=[],y=new a;n.type!==o.EOF;){for(i=this._get_next_token(n,t);this._is_comment(i);)y.add(i),i=this._get_next_token(n,t);y.isEmpty()||(i.comments_before=y,y=new a),i.parent=t,this._is_opening(i)?(b.push(t),t=i):t&&this._is_closing(i,t)&&(i.opened=t,t.closed=i,t=b.pop(),i.parent=t),i.previous=n,n.next=i,this.__tokens.add(i),n=i}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(i,n){this._readWhitespace();var t=this._input.read(/.+/g);return t?this._create_token(o.RAW,t):this._create_token(o.EOF,"")},s.prototype._is_comment=function(i){return!1},s.prototype._is_opening=function(i){return!1},s.prototype._is_closing=function(i,n){return!1},s.prototype._create_token=function(i,n){var t=new u(i,n,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return t},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=s,e.exports.TOKEN=o},function(e){function O(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}O.prototype.restart=function(){this.__position=0},O.prototype.isEmpty=function(){return this.__tokens_length===0},O.prototype.hasNext=function(){return this.__position<this.__tokens_length},O.prototype.next=function(){var g=null;return this.hasNext()&&(g=this.__tokens[this.__position],this.__position+=1),g},O.prototype.peek=function(g){var p=null;return g=g||0,g+=this.__position,g>=0&&g<this.__tokens_length&&(p=this.__tokens[g]),p},O.prototype.add=function(g){this.__parent_token&&(g.parent=this.__parent_token),this.__tokens.push(g),this.__tokens_length+=1},e.exports.TokenStream=O},function(e,O,g){var p=g(12).Pattern;function u(a,r){p.call(this,a,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}u.prototype=new p,u.prototype.__set_whitespace_patterns=function(a,r){a+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},u.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var r=this.__split(this._newline_regexp,a);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return a},u.prototype.matching=function(a,r){var o=this._create();return o.__set_whitespace_patterns(a,r),o._update(),o},u.prototype._create=function(){return new u(this._input,this)},u.prototype.__split=function(a,r){a.lastIndex=0;for(var o=0,s=[],i=a.exec(r);i;)s.push(r.substring(o,i.index)),o=i.index+i[0].length,i=a.exec(r);return o<r.length?s.push(r.substring(o,r.length)):s.push(""),s},e.exports.WhitespacePattern=u},function(e){function O(g,p){this._input=g,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,p&&(this._starting_pattern=this._input.get_regexp(p._starting_pattern,!0),this._match_pattern=this._input.get_regexp(p._match_pattern,!0),this._until_pattern=this._input.get_regexp(p._until_pattern),this._until_after=p._until_after)}O.prototype.read=function(){var g=this._input.read(this._starting_pattern);return(!this._starting_pattern||g)&&(g+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),g},O.prototype.read_match=function(){return this._input.match(this._match_pattern)},O.prototype.until_after=function(g){var p=this._create();return p._until_after=!0,p._until_pattern=this._input.get_regexp(g),p._update(),p},O.prototype.until=function(g){var p=this._create();return p._until_after=!1,p._until_pattern=this._input.get_regexp(g),p._update(),p},O.prototype.starting_with=function(g){var p=this._create();return p._starting_pattern=this._input.get_regexp(g,!0),p._update(),p},O.prototype.matching=function(g){var p=this._create();return p._match_pattern=this._input.get_regexp(g,!0),p._update(),p},O.prototype._create=function(){return new O(this._input,this)},O.prototype._update=function(){},e.exports.Pattern=O},function(e){function O(g,p){g=typeof g=="string"?g:g.source,p=typeof p=="string"?p:p.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+p,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+p,"g")}O.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var p={};this.__directive_pattern.lastIndex=0;for(var u=this.__directive_pattern.exec(g);u;)p[u[1]]=u[2],u=this.__directive_pattern.exec(g);return p},O.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=O},function(e,O,g){var p=g(12).Pattern,u={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function a(r,o){p.call(this,r,o),this.__template_pattern=null,this._disabled=Object.assign({},u),this._excluded=Object.assign({},u),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var s=new p(r);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new p,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(r){var o=this._create();return o._disabled[r]=!0,o._update(),o},a.prototype.read_options=function(r){var o=this._create();for(var s in u)o._disabled[s]=r.templating.indexOf(s)===-1;return o._update(),o},a.prototype.exclude=function(r){var o=this._create();return o._excluded[r]=!0,o._update(),o},a.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),r+=o,o=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},a.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},a.prototype._read_template=function(){var r="",o=this._input.peek();if(o==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(r=r||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},e.exports.TemplatablePattern=a}],R={};function W(e){var O=R[e];if(O!==void 0)return O.exports;var g=R[e]={exports:{}};return C[e](g,g.exports,W),g.exports}var k=W(0);I=k})();var j=I;!(Q=[],M=function(){return{js_beautify:j}}.apply(ne,Q),M!==void 0&&(je.exports=M))})()},"6eGT":function(je,ne,N){"use strict";function Q(M){return null}ne.a=Q},"6nfa":function(je,ne,N){je.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"746U":function(je,ne,N){"use strict";N.d(ne,"f",function(){return Q}),N.d(ne,"l",function(){return M}),N.d(ne,"k",function(){return I}),N.d(ne,"j",function(){return j}),N.d(ne,"g",function(){return C}),N.d(ne,"m",function(){return R}),N.d(ne,"h",function(){return W}),N.d(ne,"n",function(){return k}),N.d(ne,"c",function(){return e}),N.d(ne,"a",function(){return O}),N.d(ne,"i",function(){return g}),N.d(ne,"o",function(){return p}),N.d(ne,"e",function(){return r}),N.d(ne,"d",function(){return o}),N.d(ne,"p",function(){return s}),N.d(ne,"b",function(){return i});function Q(n){return Array.isArray(n)}function M(n){return typeof n=="string"}function I(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function j(n){return typeof n=="number"&&!isNaN(n)}function C(n){return n===!0||n===!1}function R(n){return typeof n=="undefined"}function W(n){return!k(n)}function k(n){return R(n)||n===null}function e(n,t){if(!n)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function O(n){if(k(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function g(n){return typeof n=="function"}function p(n,t){const b=Math.min(n.length,t.length);for(let y=0;y<b;y++)u(n[y],t[y])}function u(n,t){if(M(t)){if(typeof n!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(g(t)){try{if(n instanceof t)return}catch(b){}if(!k(n)&&n.constructor===t)return;if(t.length===1&&t.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function a(n){let t=[],b=Object.getPrototypeOf(n);for(;Object.prototype!==b;)t=t.concat(Object.getOwnPropertyNames(b)),b=Object.getPrototypeOf(b);return t}function r(n){const t=[];for(const b of a(n))typeof n[b]=="function"&&t.push(b);return t}function o(n,t){const b=m=>function(){const x=Array.prototype.slice.call(arguments,0);return t(m,x)};let y={};for(const m of n)y[m]=b(m);return y}function s(n){return n===null?void 0:n}function i(n,t="Unreachable"){throw new Error(t)}},"815F":function(je,ne,N){"use strict";N.d(ne,"e",function(){return W}),N.d(ne,"c",function(){return e}),N.d(ne,"d",function(){return O}),N.d(ne,"a",function(){return p}),N.d(ne,"f",function(){return u}),N.d(ne,"b",function(){return a});var Q=N("KQm4"),M=N("VTBJ"),I=N("Ff2n"),j=N("Zm9Q"),C=N("Kwbf"),R=N("OZM5");function W(r,o){return r!=null?r:o}function k(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function s(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(i||[]).forEach(function(t){var b=t.key,y=t.children;Object(C.a)(b!=null,"Tree node must have a certain key: [".concat(n).concat(b,"]"));var m=String(b);Object(C.a)(!o.has(m)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(m)),o.set(m,!0),s(y,"".concat(n).concat(m," > "))})}s(r)}function e(r){function o(s){var i=Object(j.a)(s);return i.map(function(n){if(!Object(R.i)(n))return Object(C.a)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,b=n.props,y=b.children,m=Object(I.a)(b,["children"]),x=Object(M.a)({key:t},m),_=o(y);return _.length&&(x.children=_),x}).filter(function(n){return n})}return o(r)}function O(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(o===!0?[]:o),i=[];function n(t){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(y,m){var x=Object(R.h)(b?b.pos:"0",m),_=W(y.key,x),h=Object(M.a)(Object(M.a)({},y),{},{parent:b,pos:x,children:null,data:y,isStart:[].concat(Object(Q.a)(b?b.isStart:[]),[m===0]),isEnd:[].concat(Object(Q.a)(b?b.isEnd:[]),[m===t.length-1])});return i.push(h),o===!0||s.has(_)?h.children=n(y.children||[],h):h.children=[],h})}return n(r),i}function g(r,o,s){var i;s?typeof s=="string"?i=function(b){return b[s]}:typeof s=="function"&&(i=function(b){return s(b)}):i=function(b,y){return W(b.key,y)};function n(t,b,y){var m=t?t.children:r,x=t?Object(R.h)(y.pos,b):"0";if(t){var _=i(t,x),h={node:t,index:b,pos:x,key:_,parentPos:y.node?y.pos:null,level:y.level+1};o(h)}m&&m.forEach(function(d,l){n(d,l,{node:t,pos:x,level:y?y.level+1:-1})})}n(null)}function p(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.initWrapper,i=o.processEntity,n=o.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,b={},y={},m={posEntities:b,keyEntities:y};return s&&(m=s(m)||m),g(r,function(x){var _=x.node,h=x.index,d=x.pos,l=x.key,c=x.parentPos,v=x.level,f={node:_,index:h,key:l,pos:d,level:v},T=W(l,d);b[d]=f,y[T]=f,f.parent=b[c],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),i&&i(f,m)},t),n&&n(m),m}function u(r,o){var s=o.expandedKeys,i=o.selectedKeys,n=o.loadedKeys,t=o.loadingKeys,b=o.checkedKeys,y=o.halfCheckedKeys,m=o.dragOverNodeKey,x=o.dropPosition,_=o.keyEntities,h=_[r],d={eventKey:r,expanded:s.indexOf(r)!==-1,selected:i.indexOf(r)!==-1,loaded:n.indexOf(r)!==-1,loading:t.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:y.indexOf(r)!==-1,pos:String(h?h.pos:""),dragOver:m===r&&x===0,dragOverGapTop:m===r&&x===-1,dragOverGapBottom:m===r&&x===1};return d}function a(r){var o=r.data,s=r.expanded,i=r.selected,n=r.checked,t=r.loaded,b=r.loading,y=r.halfChecked,m=r.dragOver,x=r.dragOverGapTop,_=r.dragOverGapBottom,h=r.pos,d=r.active,l=Object(M.a)(Object(M.a)({},o),{},{expanded:s,selected:i,checked:n,loaded:t,loading:b,halfChecked:y,dragOver:m,dragOverGapTop:x,dragOverGapBottom:_,pos:h,active:d});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(C.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),l}},"8HAY":function(je,ne,N){"use strict";N.d(ne,"a",function(){return C}),N.d(ne,"b",function(){return R}),N.d(ne,"d",function(){return W}),N.d(ne,"e",function(){return k}),N.d(ne,"c",function(){return e});var Q=N("MI8n"),M=N("pmY6"),I=N("3/fG"),j=function(O,g,p,u){function a(r){return r instanceof p?r:new p(function(o){o(r)})}return new(p||(p=Promise))(function(r,o){function s(t){try{n(u.next(t))}catch(b){o(b)}}function i(t){try{n(u.throw(t))}catch(b){o(b)}}function n(t){t.done?r(t.value):a(t.value).then(s,i)}n((u=u.apply(O,g||[])).next())})};class C extends M.a{constructor(O,g="",p="",u=!0,a){super();this._onDidChange=this._register(new Q.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=O,this._label=g,this._cssClass=p,this._enabled=u,this._actionCallback=a}get id(){return this._id}get label(){return this._label}set label(O){this._setLabel(O)}_setLabel(O){this._label!==O&&(this._label=O,this._onDidChange.fire({label:O}))}get tooltip(){return this._tooltip||""}set tooltip(O){this._setTooltip(O)}_setTooltip(O){this._tooltip!==O&&(this._tooltip=O,this._onDidChange.fire({tooltip:O}))}get class(){return this._cssClass}set class(O){this._setClass(O)}_setClass(O){this._cssClass!==O&&(this._cssClass=O,this._onDidChange.fire({class:O}))}get enabled(){return this._enabled}set enabled(O){this._setEnabled(O)}_setEnabled(O){this._enabled!==O&&(this._enabled=O,this._onDidChange.fire({enabled:O}))}get checked(){return this._checked}set checked(O){this._setChecked(O)}_setChecked(O){this._checked!==O&&(this._checked=O,this._onDidChange.fire({checked:O}))}run(O,g){return j(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(O))})}}class R extends M.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Q.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Q.b),this.onDidRun=this._onDidRun.event}run(O,g){return j(this,void 0,void 0,function*(){if(!O.enabled)return;this._onBeforeRun.fire({action:O});let p;try{yield this.runAction(O,g)}catch(u){p=u}this._onDidRun.fire({action:O,error:p})})}runAction(O,g){return j(this,void 0,void 0,function*(){yield O.run(g)})}}class W extends C{constructor(O){super(W.ID,O,O?"separator text":"separator");this.checked=!1,this.enabled=!1}}W.ID="vs.actions.separator";class k{constructor(O,g,p,u){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=O,this.label=g,this.class=u,this._actions=p}get actions(){return this._actions}dispose(){}run(){return j(this,void 0,void 0,function*(){})}}class e extends C{constructor(){super(e.ID,I.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(je,ne,N){je.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(je,ne,N){je.exports={button:"button___1wy9m"}},"8mKB":function(je,ne,N){"use strict";var Q=N("rePB"),M=N("1OyB"),I=N("vuIU"),j=N("Ji7U"),C=N("md7G"),R=N("foSv"),W=N("q1tI"),k=N.n(W),e=N("m+aA"),O=N("TSYQ"),g=N.n(O),p=N("4IlW");function u(d){var l=d.pageXOffset,c="scrollLeft";if(typeof l!="number"){var v=d.document;l=v.documentElement[c],typeof l!="number"&&(l=v.body[c])}return l}function a(d){var l,c,v=d.ownerDocument,f=v.body,T=v&&v.documentElement,L=d.getBoundingClientRect();return l=L.left,c=L.top,l-=T.clientLeft||f.clientLeft||0,c-=T.clientTop||f.clientTop||0,{left:l,top:c}}function r(d){var l=a(d),c=d.ownerDocument,v=c.defaultView||c.parentWindow;return l.left+=u(v),l.left}function o(d){var l=s();return function(){var v=Object(R.a)(d),f;if(l){var T=Object(R.a)(this).constructor;f=Reflect.construct(v,arguments,T)}else f=v.apply(this,arguments);return Object(C.a)(this,f)}}function s(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(d){return!1}}var i=function(d){Object(j.a)(c,d);var l=o(c);function c(){var v;return Object(M.a)(this,c),v=l.apply(this,arguments),v.onHover=function(f){var T=v.props,L=T.onHover,P=T.index;L(f,P)},v.onClick=function(f){var T=v.props,L=T.onClick,P=T.index;L(f,P)},v.onKeyDown=function(f){var T=v.props,L=T.onClick,P=T.index;f.keyCode===13&&L(f,P)},v}return Object(I.a)(c,[{key:"getClassName",value:function(){var f=this.props,T=f.prefixCls,L=f.index,P=f.value,S=f.allowHalf,A=f.focused,H=L+1,D=T;return P===0&&L===0&&A?D+=" ".concat(T,"-focused"):S&&P+.5>=H&&P<H?(D+=" ".concat(T,"-half ").concat(T,"-active"),A&&(D+=" ".concat(T,"-focused"))):(D+=H<=P?" ".concat(T,"-full"):" ".concat(T,"-zero"),H===P&&A&&(D+=" ".concat(T,"-focused"))),D}},{key:"render",value:function(){var f=this.onHover,T=this.onClick,L=this.onKeyDown,P=this.props,S=P.disabled,A=P.prefixCls,H=P.character,D=P.characterRender,K=P.index,V=P.count,oe=P.value,le=typeof H=="function"?H(this.props):H,Ce=k.a.createElement("li",{className:this.getClassName()},k.a.createElement("div",{onClick:S?null:T,onKeyDown:S?null:L,onMouseMove:S?null:f,role:"radio","aria-checked":oe>K?"true":"false","aria-posinset":K+1,"aria-setsize":V,tabIndex:S?-1:0},k.a.createElement("div",{className:"".concat(A,"-first")},le),k.a.createElement("div",{className:"".concat(A,"-second")},le)));return D&&(Ce=D(Ce,this.props)),Ce}}]),c}(k.a.Component);function n(d,l){var c=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);l&&(v=v.filter(function(f){return Object.getOwnPropertyDescriptor(d,f).enumerable})),c.push.apply(c,v)}return c}function t(d){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?n(Object(c),!0).forEach(function(v){Object(Q.a)(d,v,c[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(c)):n(Object(c)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(c,v))})}return d}function b(d){var l=y();return function(){var v=Object(R.a)(d),f;if(l){var T=Object(R.a)(this).constructor;f=Reflect.construct(v,arguments,T)}else f=v.apply(this,arguments);return Object(C.a)(this,f)}}function y(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(d){return!1}}function m(){}var x=function(d){Object(j.a)(c,d);var l=b(c);function c(v){var f;Object(M.a)(this,c),f=l.call(this,v),f.onHover=function(L,P){var S=f.props.onHoverChange,A=f.getStarValue(P,L.pageX),H=f.state.cleanedValue;A!==H&&f.setState({hoverValue:A,cleanedValue:null}),S(A)},f.onMouseLeave=function(){var L=f.props.onHoverChange;f.setState({hoverValue:void 0,cleanedValue:null}),L(void 0)},f.onClick=function(L,P){var S=f.props.allowClear,A=f.state.value,H=f.getStarValue(P,L.pageX),D=!1;S&&(D=H===A),f.onMouseLeave(),f.changeValue(D?0:H),f.setState({cleanedValue:D?H:null})},f.onFocus=function(){var L=f.props.onFocus;f.setState({focused:!0}),L&&L()},f.onBlur=function(){var L=f.props.onBlur;f.setState({focused:!1}),L&&L()},f.onKeyDown=function(L){var P=L.keyCode,S=f.props,A=S.count,H=S.allowHalf,D=S.onKeyDown,K=S.direction,V=K==="rtl",oe=f.state.value;P===p.a.RIGHT&&oe<A&&!V?(H?oe+=.5:oe+=1,f.changeValue(oe),L.preventDefault()):P===p.a.LEFT&&oe>0&&!V||P===p.a.RIGHT&&oe>0&&V?(H?oe-=.5:oe-=1,f.changeValue(oe),L.preventDefault()):P===p.a.LEFT&&oe<A&&V&&(H?oe+=.5:oe+=1,f.changeValue(oe),L.preventDefault()),D&&D(L)},f.saveRef=function(L){return function(P){f.stars[L]=P}},f.saveRate=function(L){f.rate=L};var T=v.value;return T===void 0&&(T=v.defaultValue),f.stars={},f.state={value:T,focused:!1,cleanedValue:null},f}return Object(I.a)(c,[{key:"componentDidMount",value:function(){var f=this.props,T=f.autoFocus,L=f.disabled;T&&!L&&this.focus()}},{key:"getStarDOM",value:function(f){return Object(e.a)(this.stars[f])}},{key:"getStarValue",value:function(f,T){var L=this.props,P=L.allowHalf,S=L.direction,A=S==="rtl",H=f+1;if(P){var D=this.getStarDOM(f),K=r(D),V=D.clientWidth;(A&&T-K>V/2||!A&&T-K<V/2)&&(H-=.5)}return H}},{key:"focus",value:function(){var f=this.props.disabled;f||this.rate.focus()}},{key:"blur",value:function(){var f=this.props.disabled;f||this.rate.blur()}},{key:"changeValue",value:function(f){var T=this.props.onChange;"value"in this.props||this.setState({value:f}),T(f)}},{key:"render",value:function(){for(var f=this.props,T=f.count,L=f.allowHalf,P=f.style,S=f.prefixCls,A=f.disabled,H=f.className,D=f.character,K=f.characterRender,V=f.tabIndex,oe=f.direction,le=this.state,Ce=le.value,xe=le.hoverValue,ie=le.focused,Se=[],Pe=A?"".concat(S,"-disabled"):"",de=0;de<T;de+=1)Se.push(k.a.createElement(i,{ref:this.saveRef(de),index:de,count:T,disabled:A,prefixCls:"".concat(S,"-star"),allowHalf:L,value:xe===void 0?Ce:xe,onClick:this.onClick,onHover:this.onHover,key:de,character:D,characterRender:K,focused:ie}));var $=g()(S,Pe,H,Object(Q.a)({},"".concat(S,"-rtl"),oe==="rtl"));return k.a.createElement("ul",{className:$,style:P,onMouseLeave:A?null:this.onMouseLeave,tabIndex:A?-1:V,onFocus:A?null:this.onFocus,onBlur:A?null:this.onBlur,onKeyDown:A?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Se)}}],[{key:"getDerivedStateFromProps",value:function(f,T){return"value"in f&&f.value!==void 0?t(t({},T),{},{value:f.value}):T}}]),c}(k.a.Component);x.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:m,character:"\u2605",onHoverChange:m,tabIndex:0,direction:"ltr"};var _=x,h=ne.a=_},"9Bee":function(je,ne,N){"use strict";var Q=N("DYRE"),M=N("zeV3"),I=N("+L6B"),j=N("2/Rp"),C=N("k1fw"),R=N("9og8"),W=N("tJVT"),k=N("WmNS"),e=N.n(k),O=N("q1tI"),g=N.n(O),p=N("vg9a"),u=N("DlQD"),a=N.n(u),r=N("rUJ1");function o(B,E){var w=B.match(/^(\s+)(?:```)/);if(w===null)return E;var U=w[1];return E.split(`
|
|
`).map(function(G){var F=G.match(/^\s+/);if(F===null)return G;var me=Object(W.a)(F,1),Ge=me[0];return Ge.length>=U.length?G.slice(U.length):G}).join(`
|
|
`)}var s=[],i=["<ul>"],n=new a.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){s.length=0,i=["<ul>"]}var y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(B,E,w,U){if(E>=B.length||B[E].level<=w)return E;var G=B[E];U.push("<li><a href='#"+G.anchor+"'>"+G.text+"</a>"),E++;var F=[];return E=m(B,E,G.level,F),F.length>0&&(U.push("<ul>"),F.forEach(function(me){U.push(me)}),U.push("</ul>")),U.push("</li>"),E=m(B,E,w,U),E}function x(){return m(s,0,0,i),i.push("</ul>"),i.join("")}var _={heading:function(E){var w=t.exec(E);if(w)return{type:"heading",raw:w[0],depth:w[1].length,text:w[2]}},fences:function(E){var w=this.rules.block.fences.exec(E);if(w){var U=w[0],G=o(U,w[3]||""),F=w[2]?w[2].trim():w[2];if(["latex","katex","math"].indexOf(F)>=0){var me=l(),Ge=G;G=me,c[me]={type:"block",expression:Ge}}return{type:"code",raw:U,lang:F,text:G}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,d=0,l=function(){return"__special_katext_id_".concat(d++,"__")},c={};function v(){return c}function f(){d=0,c={}}function T(B){return B=B.replace(h,function(E,w){var U=l();return c[U]={type:"inline",expression:w},U}),B}var L=n.listitem;n.listitem=function(B){return L(T(B))};var P=n.paragraph;n.paragraph=function(B){return P(T(B))};var S=n.tablecell;n.tablecell=function(B,E){return S(T(B),E)},n.code=function(B,E,w){var U=(E||"").match(/\S*/)[0];return U?["latex","katex","math"].indexOf(U)>=0?"<p class='editormd-tex'>".concat(B,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(E,'">').concat(w?B:Object(r.escape)(B,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(w?B:Object(r.escape)(B,!0))+"</code></pre>"},n.heading=function(B,E,w){var U=this.options.headerPrefix+w.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:U,level:E,text:B}),"<h"+E+' id="'+U+'">'+B+"</h"+E+">"},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:_,renderer:n});var A=a.a,H=N("SJMd"),D=N("ulZh"),K=N.n(D),V=N("m3rI"),oe=N("Oy/b"),le=N("p5ED"),Ce=N("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 xe=function(B,E){return(xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var G in U)Object.prototype.hasOwnProperty.call(U,G)&&(w[G]=U[G])})(B,E)};function ie(B,E){function w(){this.constructor=B}xe(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function Se(B,E,w,U){return new(w||(w=Promise))(function(G,F){function me(St){try{dt(U.next(St))}catch(Ye){F(Ye)}}function Ge(St){try{dt(U.throw(St))}catch(Ye){F(Ye)}}function dt(St){var Ye;St.done?G(St.value):(Ye=St.value,Ye instanceof w?Ye:new w(function(Dt){Dt(Ye)})).then(me,Ge)}dt((U=U.apply(B,E||[])).next())})}function Pe(B,E){var w,U,G,F,me={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return F={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ge(dt){return function(St){return function(Ye){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(G=2&Ye[0]?U.return:Ye[0]?U.throw||((G=U.return)&&G.call(U),0):U.next)&&!(G=G.call(U,Ye[1])).done)return G;switch(U=0,G&&(Ye=[2&Ye[0],G.value]),Ye[0]){case 0:case 1:G=Ye;break;case 4:return me.label++,{value:Ye[1],done:!1};case 5:me.label++,U=Ye[1],Ye=[0];continue;case 7:Ye=me.ops.pop(),me.trys.pop();continue;default:if(!(G=me.trys,(G=G.length>0&&G[G.length-1])||Ye[0]!==6&&Ye[0]!==2)){me=0;continue}if(Ye[0]===3&&(!G||Ye[1]>G[0]&&Ye[1]<G[3])){me.label=Ye[1];break}if(Ye[0]===6&&me.label<G[1]){me.label=G[1],G=Ye;break}if(G&&me.label<G[2]){me.label=G[2],me.ops.push(Ye);break}G[2]&&me.ops.pop(),me.trys.pop();continue}Ye=E.call(B,me)}catch(Dt){Ye=[6,Dt],U=0}finally{w=G=0}if(5&Ye[0])throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}([dt,St])}}}function de(){for(var B=0,E=0,w=arguments.length;E<w;E++)B+=arguments[E].length;var U=Array(B),G=0;for(E=0;E<w;E++)for(var F=arguments[E],me=0,Ge=F.length;me<Ge;me++,G++)U[G]=F[me];return U}var $=function(){function B(){}return B.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},B.setAttributes=function(E,w){for(var U=0,G=w;U<G.length;U++){var F=G[U],me=F[0],Ge=F[1];E.setAttribute(me,Ge)}},B.createRect=function(E,w,U){var G=document.createElementNS("http://www.w3.org/2000/svg","rect");return G.setAttribute("width",E.toString()),G.setAttribute("height",w.toString()),U&&B.setAttributes(G,U),G},B.createLine=function(E,w,U,G,F){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",E.toString()),me.setAttribute("y1",w.toString()),me.setAttribute("x2",U.toString()),me.setAttribute("y2",G.toString()),F&&B.setAttributes(me,F),me},B.createPolygon=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","polygon");return U.setAttribute("points",E),w&&B.setAttributes(U,w),U},B.createCircle=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","circle");return U.setAttribute("cx",(E/2).toString()),U.setAttribute("cy",(E/2).toString()),U.setAttribute("r",E.toString()),w&&B.setAttributes(U,w),U},B.createEllipse=function(E,w,U){var G=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return G.setAttribute("cx",(E/2).toString()),G.setAttribute("cy",(w/2).toString()),G.setAttribute("rx",(E/2).toString()),G.setAttribute("ry",(w/2).toString()),U&&B.setAttributes(G,U),G},B.createGroup=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","g");return E&&B.setAttributes(w,E),w},B.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},B.createMarker=function(E,w,U,G,F,me,Ge){var dt=document.createElementNS("http://www.w3.org/2000/svg","marker");return B.setAttributes(dt,[["id",E],["orient",w],["markerWidth",U.toString()],["markerHeight",G.toString()],["refX",F.toString()],["refY",me.toString()]]),dt.appendChild(Ge),dt},B.createText=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","text");return w.setAttribute("x","0"),w.setAttribute("y","0"),E&&B.setAttributes(w,E),w},B.createTSpan=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","tspan");return U.textContent=E,w&&B.setAttributes(U,w),U},B.createImage=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","image");return E&&B.setAttributes(w,E),w},B.createPoint=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return U.x=E,U.y=w,U},B.createPath=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","path");return U.setAttribute("d",E),w&&B.setAttributes(U,w),U},B}(),Ne=function(){function B(){}return B.addKey=function(E){B.key=E},Object.defineProperty(B,"isLicensed",{get:function(){return!!B.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(B.key)},enumerable:!1,configurable:!0}),B}(),lt=function(){function B(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return B.prototype.rasterize=function(E,w,U){var G=this;return new Promise(function(F){var me=U!==void 0?U:document.createElement("canvas");E===null&&(G.markersOnly=!0,G.naturalSize=!1);var Ge=document.createElementNS("http://www.w3.org/2000/svg","svg");Ge.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ge.setAttribute("width",w.width.baseVal.valueAsString),Ge.setAttribute("height",w.height.baseVal.valueAsString),Ge.setAttribute("viewBox","0 0 "+w.viewBox.baseVal.width.toString()+" "+w.viewBox.baseVal.height.toString()),Ge.innerHTML=w.innerHTML,G.naturalSize===!0?(Ge.width.baseVal.value=E.naturalWidth,Ge.height.baseVal.value=E.naturalHeight):G.width!==void 0&&G.height!==void 0&&(Ge.width.baseVal.value=G.width,Ge.height.baseVal.value=G.height),me.width=Ge.width.baseVal.value,me.height=Ge.height.baseVal.value;var dt=Ge.outerHTML,St=me.getContext("2d");G.markersOnly!==!0&&St.drawImage(E,0,0,me.width,me.height);var Ye=window.URL,Dt=new Image(me.width,me.height);Dt.setAttribute("crossOrigin","anonymous");var Nt=new Blob([dt],{type:"image/svg+xml"}),on=Ye.createObjectURL(Nt);Dt.onload=function(){St.drawImage(Dt,0,0),Ye.revokeObjectURL(on);var kn=me.toDataURL(G.imageType,G.imageQuality);F(kn)},Dt.src=on})},B}(),it=function(){},Je=function(){function B(E){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+E+"_"}return Object.defineProperty(B.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),B.prototype.addClass=function(E){return this.styleSheet===void 0&&this.addStyleSheet(),E.name=""+this.classNamePrefix+E.localName,this.classes.push(E),this.styleSheet.sheet.insertRule("."+E.name+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length),E},B.prototype.addRule=function(E){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(E),this.styleSheet.sheet.insertRule(E.selector+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length)},B.prototype.addStyleSheet=function(){var E;this.styleSheet=document.createElement("style"),((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).appendChild(this.styleSheet),this.addRule(new at("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new at("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new at("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Ue("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Ue("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},B.prototype.removeStyleSheet=function(){var E;this.styleSheet&&(((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},B}(),at=function(B,E){this.selector=B,this.style=E},Ue=function(B,E){this.localName=B,this.style=E},ze=function(){function B(E,w,U,G,F){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=E,this.displayMode=w,this.markerItems=U,this.uiStyleSettings=G,this.styles=F,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return B.prototype.show=function(E){var w=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=E,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var U=document.createElement("div");U.className=this.toolbarBlockStyleClass.name,U.style.whiteSpace="nowrap",this.uiContainer.appendChild(U),this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(F){var me=document.createElement("div");me.className=""+w.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",F.typeName),me.innerHTML=F.icon,me.addEventListener("click",function(){w.markerToolbarButtonClicked(me,F)}),w.buttons.push(me),w.markerButtons.push(me)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var G=document.createElement("div");G.className=this.toolbarBlockStyleClass.name,G.style.whiteSpace="nowrap",G.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(G),this.addActionButton(G,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(G,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},B.prototype.addButtonClickListener=function(E){this.buttonClickListeners.push(E)},B.prototype.removeButtonClickListener=function(E){this.buttonClickListeners.indexOf(E)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(E),1)},B.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},B.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var E=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var w=0;w<this.markerButtons.length;w++)w<E||w===E&&this.markerButtons.length-1===E?this.markerButtonBlock.appendChild(this.markerButtons[w]):(w===E&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[w]))}},B.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},B.prototype.resetButtonStyles=function(){var E=this;this.buttons.forEach(function(w){w.className=w.className.replace(E.uiStyleSettings.toolbarButtonStyleColorsClassName?E.uiStyleSettings.toolbarButtonStyleColorsClassName:E.toolbarButtonStyleColorsClass.name,"").trim(),w.className=w.className.replace(E.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?E.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:E.toolbarActiveButtonStyleColorsClass.name,"").trim(),w.className+=" "+(E.uiStyleSettings.toolbarButtonStyleColorsClassName?E.uiStyleSettings.toolbarButtonStyleColorsClassName:E.toolbarButtonStyleColorsClass.name)})},B.prototype.addActionButton=function(E,w,U){var G=this,F=document.createElement("div");switch(F.className=""+this.toolbarButtonStyleClass.name,F.innerHTML=w,F.setAttribute("data-action",U),F.addEventListener("click",function(){G.actionToolbarButtonClicked(F,U)}),U){case"select":F.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":F.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":F.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":F.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":F.style.fill=this.uiStyleSettings.closeButtonColor}E.appendChild(F),this.buttons.push(F)},B.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ue("toolbar",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ue("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ue("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ue("toolbar-overflow-block",`
|
|
position: absolute;
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
z-index: 10;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ue("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var E=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ue("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*E)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*E)+`px;
|
|
padding: `+E+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ue("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ue("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new at("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new at("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},B.prototype.markerToolbarButtonClicked=function(E,w){this.setActiveButton(E),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(U){return U("marker",w)}),this.markerButtonOverflowBlock.style.display="none"},B.prototype.actionToolbarButtonClicked=function(E,w){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(U){return U("action",w)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},B.prototype.setActiveButton=function(E){this.resetButtonStyles(),E.className=E.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),E.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},B.prototype.setActiveMarkerButton=function(E){var w=this.markerButtons.find(function(U){return U.getAttribute("data-type-name")===E});w&&this.setActiveButton(w)},B.prototype.setCurrentMarker=function(E){var w=this;this.currentMarker=E,this.buttons.filter(function(U){return/delete|notes/.test(U.getAttribute("data-action"))}).forEach(function(U){w.currentMarker===void 0?(U.style.fillOpacity="0.4",U.style.pointerEvents="none"):(U.style.fillOpacity="1",U.style.pointerEvents="all")})},B}(),et=function(){function B(E,w,U,G){this.panels=[],this.panelButtons=[],this.markerjsContainer=E,this.displayMode=w,this.uiStyleSettings=U,this.styles=G,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return B.prototype.addStyles=function(){var E;this.toolboxStyleClass=this.styles.addClass(new Ue("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 Ue("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var w=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ue("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ue("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ue("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 Ue("toolbox-panel-row_colors",`
|
|
background-color: `+((E=this.uiStyleSettings.toolboxBackgroundColor)!==null&&E!==void 0?E:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ue("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
|
|
padding: `+w+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ue("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ue("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new at("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new at("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},B.prototype.show=function(E){var w;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=E,this.uiContainer.className=this.toolboxStyleClass.name+" "+((w=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&w!==void 0?w:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},B.prototype.setPanelButtons=function(E){var w,U,G=this;this.panels=E,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((w=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&w!==void 0?w:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((U=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&U!==void 0?U:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(F){var me;F.uiStyleSettings=G.uiStyleSettings;var Ge=document.createElement("div");Ge.className=G.toolboxButtonStyleClass.name+" "+((me=G.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:G.toolboxButtonStyleColorsClass.name),Ge.innerHTML=F.icon,Ge.title=F.title,Ge.addEventListener("click",function(){G.panelButtonClick(F)}),G.panelButtons.push(Ge),G.buttonRow.appendChild(Ge)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},B.prototype.panelButtonClick=function(E){var w=this,U=-1;if(E!==this.activePanel){U=this.panels.indexOf(E),this.panelRow.innerHTML="";var G=E.getUi();G.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(G),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=E}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){w.displayMode==="inline"?w.panelRow.style.display="none":w.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(F,me){var Ge,dt;F.className=w.toolboxButtonStyleClass.name+" "+(me===U?""+((Ge=w.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:w.toolboxActiveButtonStyleColorsClass.name):""+((dt=w.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dt!==void 0?dt:w.toolboxButtonStyleColorsClass.name))})},B}(),ee=function(B,E){this.title=B,this.icon=E},ge=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=U,me.currentColor=G,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return ie(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.overflow="hidden",U.style.whiteSpace="nowrap",this.colors.forEach(function(G){var F=w.getColorBox(G);U.appendChild(F),w.colorBoxes.push(F)}),U},E.prototype.getColorBox=function(w){var U=this,G=this.uiStyleSettings.toolbarHeight/4,F=this.uiStyleSettings.toolbarHeight-G,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=F-2+"px",me.style.height=F-2+"px",me.style.padding="1px",me.style.marginRight="2px",me.style.marginBottom="2px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderRadius=(F+2)/2+"px",me.style.borderColor=w===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){U.setCurrentColor(w,me)});var Ge=document.createElement("div");return Ge.style.display="inline-block",Ge.style.width=F-2+"px",Ge.style.height=F-2+"px",Ge.style.backgroundColor=w,Ge.style.borderRadius=F/2+"px",w==="transparent"&&(Ge.style.fill=this.uiStyleSettings.toolboxAccentColor,Ge.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),me.appendChild(Ge),me},E.prototype.setCurrentColor=function(w,U){var G=this;this.currentColor=w,this.colorBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(w)},E}(ee),_e=function(){function B(E,w,U){this._state="new",this._isSelected=!1,this._container=E,this._overlayContainer=w,this.globalSettings=U,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(B.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(E){return!1},Object.defineProperty(B.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),B.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},B.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},B.prototype.pointerDown=function(E,w){},B.prototype.dblClick=function(E,w){},B.prototype.manipulate=function(E){},B.prototype.pointerUp=function(E){this.stateChanged()},B.prototype.dispose=function(){},B.prototype.addMarkerVisualToContainer=function(E){this.container.childNodes.length>0?this.container.insertBefore(E,this.container.childNodes[0]):this.container.appendChild(E)},B.prototype.getState=function(){return{typeName:B.typeName,state:this.state,notes:this.notes}},B.prototype.restoreState=function(E){this._state=E.state,this.notes=E.notes},B.prototype.scale=function(E,w){},B.prototype.colorChanged=function(E){this.onColorChanged&&this.onColorChanged(E),this.stateChanged()},B.prototype.fillColorChanged=function(E){this.onFillColorChanged&&this.onFillColorChanged(E),this.stateChanged()},B.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var E=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),E.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(E)&&this.onStateChanged(this)}},B.typeName="MarkerBase",B}(),we=function(){function B(){this.findGripByVisual=this.findGripByVisual.bind(this)}return B.prototype.findGripByVisual=function(E){return this.topLeft.ownsTarget(E)?this.topLeft:this.topCenter.ownsTarget(E)?this.topCenter:this.topRight.ownsTarget(E)?this.topRight:this.centerLeft.ownsTarget(E)?this.centerLeft:this.centerRight.ownsTarget(E)?this.centerRight:this.bottomLeft.ownsTarget(E)?this.bottomLeft:this.bottomCenter.ownsTarget(E)?this.bottomCenter:this.bottomRight.ownsTarget(E)?this.bottomRight:void 0},B}(),Ve=function(){function B(){this.GRIP_SIZE=10,this.visual=$.createGroup(),this.visual.appendChild($.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild($.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return B.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},B}(),Ze=function(){function B(){}return B.toITransformMatrix=function(E){return{a:E.a,b:E.b,c:E.c,d:E.d,e:E.e,f:E.f}},B.toSVGMatrix=function(E,w){return E.a=w.a,E.b=w.b,E.c=w.c,E.d=w.d,E.e=w.e,E.f=w.f,E},B}(),rt=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.left=0,F.top=0,F.width=0,F.height=0,F.defaultSize={x:50,y:20},F.offsetX=0,F.offsetY=0,F.rotationAngle=0,F.CB_DISTANCE=10,F._suppressMarkerCreateEvent=!1,F.container.transform.baseVal.appendItem($.createTransform()),F.setupControlBox(),F}return ie(E,B),Object.defineProperty(E.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"visual",{get:function(){return this._visual},set:function(w){this._visual=w;var U=$.createTransform();this._visual.transform.baseVal.appendItem(U)},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(w){return!!B.prototype.ownsTarget.call(this,w)||!!(this.controlGrips.findGripByVisual(w)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(w))},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.left=w.x,this.top=w.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var G=this.unrotatePoint(w);if(this.manipulationStartX=G.x,this.manipulationStartY=G.y,this.offsetX=G.x-this.left,this.offsetY=G.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(U),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(U)){this.activeGrip=this.rotatorGrip;var F=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=F.x-this.width/2,this.top=F.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},E.prototype.pointerUp=function(w){var U=this.state;B.prototype.pointerUp.call(this,w),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(w),this._state="select",U==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},E.prototype.moveVisual=function(w){this.visual.style.transform="translate("+w.x+"px, "+w.y+"px)"},E.prototype.manipulate=function(w){var U=this.unrotatePoint(w);this.state==="creating"?this.resize(w):this.state==="move"?(this.left=this.manipulationStartLeft+(U.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(U.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(U):this.state==="rotate"&&this.rotate(w)},E.prototype.resize=function(w){var U=this.manipulationStartLeft,G=this.manipulationStartWidth,F=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:U=this.manipulationStartLeft+w.x-this.manipulationStartX,G=this.manipulationStartWidth+this.manipulationStartLeft-U;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:G=this.manipulationStartWidth+w.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:F=this.manipulationStartTop+w.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-F;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+w.y-this.manipulationStartY}G>=0?(this.left=U,this.width=G):(this.left=U+G,this.width=-G),me>=0?(this.top=F,this.height=me):(this.top=F+me,this.height=-me),this.setSize()},E.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},E.prototype.rotate=function(w){if(Math.abs(w.x-this.centerX)>.1){var U=Math.sign(w.x-this.centerX);this.rotationAngle=180*Math.atan((w.y-this.centerY)/(w.x-this.centerX))/Math.PI+90*U,this.applyRotation()}},E.prototype.applyRotation=function(){var w=this.container.transform.baseVal.getItem(0);w.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(w,0)},E.prototype.rotatePoint=function(w){if(this.rotationAngle===0)return w;var U=this.container.getCTM(),G=$.createPoint(w.x,w.y);return{x:(G=G.matrixTransform(U)).x,y:G.y}},E.prototype.unrotatePoint=function(w){if(this.rotationAngle===0)return w;var U=this.container.getCTM();U=U.inverse();var G=$.createPoint(w.x,w.y);return{x:(G=G.matrixTransform(U)).x,y:G.y}},E.prototype.select=function(){B.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){B.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=$.createGroup();var w=$.createTransform();w.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(w),this.container.appendChild(this.controlBox),this.controlRect=$.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=$.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 we,this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){var w=this.controlBox.transform.baseVal.getItem(0);w.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(w,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()},E.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()},E.prototype.createGrip=function(){var w=new Ve;return w.visual.transform.baseVal.appendItem($.createTransform()),this.controlBox.appendChild(w.visual),w},E.prototype.positionGrips=function(){var w=this.controlGrips.topLeft.GRIP_SIZE,U=-w/2,G=U,F=(this.width+this.CB_DISTANCE)/2-w/2,me=(this.height+this.CB_DISTANCE)/2-w/2,Ge=this.height+this.CB_DISTANCE-w/2,dt=this.width+this.CB_DISTANCE-w/2;this.positionGrip(this.controlGrips.topLeft.visual,U,G),this.positionGrip(this.controlGrips.topCenter.visual,F,G),this.positionGrip(this.controlGrips.topRight.visual,dt,G),this.positionGrip(this.controlGrips.centerLeft.visual,U,me),this.positionGrip(this.controlGrips.centerRight.visual,dt,me),this.positionGrip(this.controlGrips.bottomLeft.visual,U,Ge),this.positionGrip(this.controlGrips.bottomCenter.visual,F,Ge),this.positionGrip(this.controlGrips.bottomRight.visual,dt,Ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,F,G-3*this.CB_DISTANCE)},E.prototype.positionGrip=function(w,U,G){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,G),w.transform.baseVal.replaceItem(F,0)},E.prototype.hideControlBox=function(){this.controlBox.style.display="none"},E.prototype.showControlBox=function(){this.controlBox.style.display=""},E.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ze.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ze.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.left=U.left,this.top=U.top,this.width=U.width,this.height=U.height,this.rotationAngle=U.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ze.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,U.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ze.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,U.containerTransformMatrix))},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U);var G=this.rotatePoint({x:this.left,y:this.top}),F=this.unrotatePoint({x:G.x*w,y:G.y*U});this.left=F.x,this.top=F.y,this.width=this.width*w,this.height=this.height*U,this.adjustControlBox()},E}(_e),$e=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.fillColor="transparent",F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.opacity=1,F.setStrokeColor=F.setStrokeColor.bind(F),F.setFillColor=F.setFillColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.createVisual=F.createVisual.bind(F),F}return ie(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual)},E.prototype.createVisual=function(){this.visual=$.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)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.setSize()},E.prototype.setSize=function(){B.prototype.setSize.call(this),$.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(w){B.prototype.pointerUp.call(this,w),this.setSize()},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.visual&&$.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(w),this.stateChanged()},E.prototype.setFillColor=function(w){this.fillColor=w,this.visual&&$.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.visual&&$.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.visual&&$.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){var U=w;this.fillColor=U.fillColor,this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.opacity=U.opacity,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize()},E.title="Rectangle marker",E}(rt),ft=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return me.widths=[],me.widthBoxes=[],me.widths=U,me.currentWidth=G,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return ie(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",this.widths.forEach(function(G){var F=document.createElement("div");F.style.display="flex",F.style.flexGrow="2",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.borderColor=G===w.currentWidth?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentWidth(G,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=G.toString(),me.style.marginRight="5px",F.appendChild(me);var Ge=document.createElement("div");Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.display="flex",Ge.style.alignItems="center";var dt=document.createElement("hr");dt.style.minWidth="20px",dt.style.border="0px",dt.style.borderTop=G+"px solid "+w.uiStyleSettings.toolboxColor,dt.style.flexGrow="2",Ge.appendChild(dt),F.appendChild(Ge),w.widthBoxes.push(F)}),U},E.prototype.setCurrentWidth=function(w,U){var G=this;this.currentWidth=w,this.widthBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},E}(ee),ht=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return me.styles=[],me.styleBoxes=[],me.styles=U,me.currentStyle=G,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return ie(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",this.styles.forEach(function(G){var F=document.createElement("div");F.style.display="flex",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.overflow="hidden",F.style.maxWidth=100/w.styles.length-5+"%",F.style.borderColor=G===w.currentStyle?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentStyle(G,F)}),U.appendChild(F);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ge=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+w.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(G!==""?'stroke-dasharray="'+G+'"':"")+` />
|
|
</svg>`;me.innerHTML=Ge,F.appendChild(me),w.styleBoxes.push(F)}),U},E.prototype.setCurrentStyle=function(w,U){var G=this;this.currentStyle=w,this.styleBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(ee),ye=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.strokeColor=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.strokePanel=new ge("Line color",G.defaultColorSet,G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ie(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="FrameMarker",E.title="Frame marker",E.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',E}($e),Ae=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},ke=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.x1=0,F.y1=0,F.x2=0,F.y2=0,F.defaultLength=50,F.manipulationStartX=0,F.manipulationStartY=0,F.manipulationStartX1=0,F.manipulationStartY1=0,F.manipulationStartX2=0,F.manipulationStartY2=0,F.setupControlBox(),F}return ie(E,B),E.prototype.ownsTarget=function(w){return!!B.prototype.ownsTarget.call(this,w)||!(!this.grip1.ownsTarget(w)&&!this.grip2.ownsTarget(w))},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.manipulationStartX=w.x,this.manipulationStartY=w.y,this.state==="new"&&(this.x1=w.x,this.y1=w.y,this.x2=w.x,this.y2=w.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(U)?this.activeGrip=this.grip1:this.grip2.ownsTarget(U)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},E.prototype.pointerUp=function(w){var U=this.state;B.prototype.pointerUp.call(this,w),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(w),this._state="select",U==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},E.prototype.adjustVisual=function(){},E.prototype.manipulate=function(w){this.state==="creating"?this.resize(w):this.state==="move"?(this.x1=this.manipulationStartX1+w.x-this.manipulationStartX,this.y1=this.manipulationStartY1+w.y-this.manipulationStartY,this.x2=this.manipulationStartX2+w.x-this.manipulationStartX,this.y2=this.manipulationStartY2+w.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(w)},E.prototype.resize=function(w){switch(this.activeGrip){case this.grip1:this.x1=w.x,this.y1=w.y;break;case this.grip2:case void 0:this.x2=w.x,this.y2=w.y}this.adjustVisual(),this.adjustControlBox()},E.prototype.select=function(){B.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){B.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=$.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){this.positionGrips()},E.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},E.prototype.createGrip=function(){var w=new Ve;return w.visual.transform.baseVal.appendItem($.createTransform()),this.controlBox.appendChild(w.visual),w},E.prototype.positionGrips=function(){var w=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-w/2,this.y1-w/2),this.positionGrip(this.grip2.visual,this.x2-w/2,this.y2-w/2)},E.prototype.positionGrip=function(w,U,G){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,G),w.transform.baseVal.replaceItem(F,0)},E.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.x1=U.x1,this.y1=U.y1,this.x2=U.x2,this.y2=U.y2},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.x1=this.x1*w,this.y1=this.y1*U,this.x2=this.x2*w,this.y2=this.y2*U,this.adjustVisual(),this.adjustControlBox()},E}(_e),He=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.setStrokeColor=F.setStrokeColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.strokeColor=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.strokePanel=new ge("Line color",G.defaultColorSet,G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ie(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.selectorLine&&w!==this.visibleLine)},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.selectorLine=$.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=$.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)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},E.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()),$.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),$.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.adjustVisual(),this.colorChanged(w)},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.adjustVisual()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.createVisual(),this.adjustVisual()},E.typeName="LineMarker",E.title="Line marker",E.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',E}(ke),Ie=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return me.fonts=[],me.fontBoxes=[],me.fonts=U,me.currentFont=G,me.setCurrentFont=me.setCurrentFont.bind(me),me}return ie(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.overflow="hidden",U.style.flexGrow="2",this.fonts.forEach(function(G){var F=document.createElement("div");F.style.display="inline-block",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.overflow="hidden",F.style.maxWidth=100/w.fonts.length-5+"%",F.style.borderColor=G===w.currentFont?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentFont(G,F)}),U.appendChild(F);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=G,me.style.overflow="hidden";var Ge=document.createElement("div");Ge.style.whiteSpace="nowrap",Ge.style.overflow="hidden",Ge.style.textOverflow="ellipsis",Ge.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ge),F.appendChild(me),w.fontBoxes.push(F)}),U},E.prototype.setCurrentFont=function(w,U){var G=this;this.currentFont=w,this.fontBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(ee),Le=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.color="transparent",F.padding=5,F.DEFAULT_TEXT="your text here",F.text=F.DEFAULT_TEXT,F.isMoved=!1,F.color=G.defaultColor,F.fontFamily=G.defaultFontFamily,F.defaultSize={x:100,y:30},F.setColor=F.setColor.bind(F),F.setFont=F.setFont.bind(F),F.renderText=F.renderText.bind(F),F.sizeText=F.sizeText.bind(F),F.textEditDivClicked=F.textEditDivClicked.bind(F),F.showTextEditor=F.showTextEditor.bind(F),F.setSize=F.setSize.bind(F),F.positionTextEditor=F.positionTextEditor.bind(F),F.colorPanel=new ge("Color",G.defaultColorSet,G.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.fontFamilyPanel=new Ie("Font",G.defaultFontFamilies,G.defaultFontFamily),F.fontFamilyPanel.onFontChanged=F.setFont,F}return ie(E,B),E.prototype.ownsTarget=function(w){if(B.prototype.ownsTarget.call(this,w)||w===this.visual||w===this.textElement||w===this.bgRectangle)return!0;var U=!1;return this.textElement.childNodes.forEach(function(G){G===w&&(U=!0)}),U},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.bgRectangle=$.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=$.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem($.createTransform()),this.textElement.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.isMoved=!1,this.pointerDownPoint=w,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.renderText=function(){var w=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(U){w.textElement.appendChild($.createTSpan(U.trim()===""?" ":U.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},E.prototype.getTextScale=function(){var w=this.textElement.getBBox(),U=1;if(w.width>0&&w.height>0){var G=(1*this.width-this.width*this.padding*2/100)/w.width,F=(1*this.height-this.height*this.padding*2/100)/w.height;U=Math.min(G,F)}return U},E.prototype.getTextPosition=function(w){var U=this.textElement.getBBox(),G=0,F=0;return U.width>0&&U.height>0&&(G=(this.width-U.width*w)/2,F=this.height/2-U.height*w/2),{x:G,y:F}},E.prototype.sizeText=function(){var w=this.textElement.getBBox(),U=this.getTextScale(),G=this.getTextPosition(U);G.y-=w.y*U,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+G.x+"px, "+G.y+"px) scale("+U+", "+U+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(G.x,G.y),this.textElement.transform.baseVal.getItem(1).setScale(U,U))},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(w.x-this.pointerDownPoint.x)>5||Math.abs(w.y-this.pointerDownPoint.y)>5)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.isMoved=!0,this.setSize(),this.sizeText()},E.prototype.setSize=function(){B.prototype.setSize.call(this),this.visual&&this.bgRectangle&&($.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},E.prototype.pointerUp=function(w){var U=this.state;U==="creating"&&(this._suppressMarkerCreateEvent=!0),B.prototype.pointerUp.call(this,w),this.setSize(),(U==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},E.prototype.showTextEditor=function(){var w=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(U){U.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var U=Number.parseFloat(w.textEditor.style.fontSize);w.textEditor.clientWidth>=Number.parseInt(w.textEditor.style.maxWidth)&&U>.9;)U-=.1,w.textEditor.style.fontSize=Math.max(U,.9)+"em"}),this.textEditor.addEventListener("keyup",function(U){U.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(U){if(U.clipboardData){var G=U.clipboardData.getData("text"),F=window.getSelection();if(!F.rangeCount)return!1;F.deleteFromDocument(),F.getRangeAt(0).insertNode(document.createTextNode(G)),U.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){w.textEditDivClicked(w.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},E.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var w=this.getTextScale(),U=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),G=this.textElement.getBBox(),F={x:G.width*w,y:G.height*w};U.x-=F.x/2,U.y-=F.y/2,this.textEditor.style.top=U.y+"px",this.textEditor.style.left=U.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-U.x+"px",this.textEditor.style.fontSize=Math.max(16*w,12)+"px",this.textElement.style.display="none"}},E.prototype.textEditDivClicked=function(w){this.text=w.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},E.prototype.select=function(){B.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},E.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),B.prototype.deselect.call(this)},E.prototype.dblClick=function(w,U){B.prototype.dblClick.call(this,w,U),this.showTextEditor()},E.prototype.setColor=function(w){this.textElement&&$.setAttributes(this.textElement,[["fill",w]]),this.color=w,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(w)},E.prototype.setFont=function(w){this.textElement&&$.setAttributes(this.textElement,[["font-family",w]]),this.fontFamily=w,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},E.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},E.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.color=U.color,this.fontFamily=U.fontFamily,this.padding=U.padding,this.text=U.text,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize(),this.sizeText(),this.positionTextEditor()},E.typeName="TextMarker",E.title="Text marker",E.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',E}(rt),fe=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.color="transparent",F.lineWidth=3,F.drawing=!1,F.pixelRatio=1,F.color=G.defaultColor,F.lineWidth=G.defaultStrokeWidth,F.pixelRatio=G.freehandPixelRatio,F.setColor=F.setColor.bind(F),F.addCanvas=F.addCanvas.bind(F),F.finishCreation=F.finishCreation.bind(F),F.setLineWidth=F.setLineWidth.bind(F),F.colorPanel=new ge("Color",G.defaultColorSet,G.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.lineWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.lineWidthPanel.onWidthChanged=F.setLineWidth,F}return ie(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.drawingImage)},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.drawingImage=$.createImage(),this.visual.appendChild(this.drawingImage);var w=$.createTransform();this.visual.transform.baseVal.appendItem(w),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,U){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(w.x,w.y),this.drawing=!0):B.prototype.pointerDown.call(this,w,U)},E.prototype.manipulate=function(w){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(w.x,w.y),this.canvasContext.stroke()):B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),$.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(w){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):B.prototype.pointerUp.call(this,w)},E.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)},E.prototype.select=function(){this.state==="creating"&&this.finishCreation(),B.prototype.select.call(this)},E.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),B.prototype.deselect.call(this)},E.prototype.finishCreation=function(){for(var w=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),U=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],G=U[0],F=U[1],me=U[2],Ge=U[3],dt=!1,St=0;St<this.canvasElement.height;St++)for(var Ye=0;Ye<this.canvasElement.width;Ye++)w.data[St*this.canvasElement.width*4+4*Ye+3]>0&&(dt=!0,St<F&&(F=St),Ye<G&&(G=Ye),St>Ge&&(Ge=St),Ye>me&&(me=Ye));if(dt){this.left=G/this.pixelRatio,this.top=F/this.pixelRatio,this.width=(me-G)/this.pixelRatio,this.height=(Ge-F)/this.pixelRatio;var Dt=document.createElement("canvas");Dt.width=me-G,Dt.height=Ge-F,Dt.getContext("2d").putImageData(this.canvasContext.getImageData(G,F,me-G,Ge-F),0,0),this.drawingImgUrl=Dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},E.prototype.setDrawingImage=function(){$.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},E.prototype.setColor=function(w){this.color=w,this.colorChanged(w)},E.prototype.setLineWidth=function(w){this.lineWidth=w},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({drawingImgUrl:this.drawingImgUrl},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){this.createVisual(),B.prototype.restoreState.call(this,w),this.drawingImgUrl=w.drawingImgUrl,this.setDrawingImage()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setDrawingImage()},E.typeName="FreehandMarker",E.title="Freehand marker",E.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',E}(rt),re=function(B){function E(w,U,G){var F=B.call(this,w,G||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return F.typeBoxes=[],F.currentType=U,F.setCurrentType=F.setCurrentType.bind(F),F}return ie(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2";for(var G=function(Ge){var dt="both";switch(Ge){case 0:dt="both";break;case 1:dt="start";break;case 2:dt="end";break;case 3:dt="none"}var St=document.createElement("div");if(St.style.display="flex",St.style.flexGrow="2",St.style.alignItems="center",St.style.justifyContent="space-between",St.style.padding="5px",St.style.borderWidth="2px",St.style.borderStyle="solid",St.style.borderColor=dt===F.currentType?F.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){w.setCurrentType(dt,St)}),U.appendChild(St),dt==="both"||dt==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Ye.style.marginLeft="5px",St.appendChild(Ye)}var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.minHeight="20px",Dt.style.flexGrow="2";var Nt=document.createElement("hr");if(Nt.style.minWidth="20px",Nt.style.border="0px",Nt.style.borderTop="3px solid "+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee"),Nt.style.flexGrow="2",Dt.appendChild(Nt),St.appendChild(Dt),dt==="both"||dt==="end"){var on=document.createElement("div");on.style.display="flex",on.style.alignItems="center",on.style.minHeight="20px",on.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,0 10,5 0,10" fill="`+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,on.style.marginRight="5px",St.appendChild(on)}F.typeBoxes.push(St)},F=this,me=0;me<4;me++)G(me);return U},E.prototype.setCurrentType=function(w,U){var G=this;this.currentType=w,this.typeBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings!==void 0?G.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(ee),ae=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.arrowType="end",F.arrowBaseHeight=10,F.arrowBaseWidth=10,F.getArrowPoints=F.getArrowPoints.bind(F),F.setArrowType=F.setArrowType.bind(F),F.arrowTypePanel=new re("Arrow type","end"),F.arrowTypePanel.onArrowTypeChanged=F.setArrowType,F}return ie(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.arrow1&&w!==this.arrow2)},E.prototype.getArrowPoints=function(w,U){var G=this.arrowBaseWidth+2*this.strokeWidth,F=this.arrowBaseHeight+2*this.strokeWidth;return w-G/2+","+(U+F/2)+" "+w+","+(U-F/2)+" "+(w+G/2)+","+(U+F/2)},E.prototype.createTips=function(){this.arrow1=$.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=$.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.arrow2)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(B.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",$.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),$.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var w=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),U=this.arrow1.transform.baseVal.getItem(0);U.setRotate(w,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(U,0);var G=this.arrow2.transform.baseVal.getItem(0);G.setRotate(w+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(G,0)}},E.prototype.setArrowType=function(w){this.arrowType=w,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({arrowType:this.arrowType},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.arrowType=U.arrowType,this.createTips(),this.adjustVisual()},E.typeName="ArrowMarker",E.title="Arrow marker",E.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',E}(He),Y=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.fillColor=G.defaultFillColor,F.strokeWidth=0,F.fillPanel=new ge("Color",G.defaultColorSet,G.defaultFillColor),F.fillPanel.onColorChanged=F.setFillColor,F}return ie(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="CoverMarker",E.title="Cover marker",E.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',E}($e),J=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return me.opacities=[],me.opacityBoxes=[],me.opacities=U,me.currentOpacity=G,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return ie(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",U.style.justifyContent="space-between",this.opacities.forEach(function(G){var F=document.createElement("div");F.style.display="flex",F.style.alignItems="center",F.style.justifyContent="center",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.borderColor=G===w.currentOpacity?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentOpacity(G,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=100*G+"%",F.appendChild(me),w.opacityBoxes.push(F)}),U},E.prototype.setCurrentOpacity=function(w,U){var G=this;this.currentOpacity=w,this.opacityBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(ee),Z=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.setOpacity=F.setOpacity.bind(F),F.fillColor=G.defaultHighlightColor,F.strokeWidth=0,F.opacity=G.defaultHighlightOpacity,F.fillPanel=new ge("Color",G.defaultColorSet,F.fillColor),F.fillPanel.onColorChanged=F.setFillColor,F.opacityPanel=new J("Opacity",G.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ie(E,B),E.prototype.setOpacity=function(w){this.opacity=w,this.visual&&$.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="HighlightMarker",E.title="Highlight marker",E.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',E}(Y),se='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ee=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.bgColor="transparent",F.tipPosition={x:0,y:0},F.tipBase1Position={x:0,y:0},F.tipBase2Position={x:0,y:0},F.tipMoving=!1,F.color=G.defaultStrokeColor,F.bgColor=G.defaultFillColor,F.fontFamily=G.defaultFontFamily,F.defaultSize={x:100,y:30},F.setBgColor=F.setBgColor.bind(F),F.getTipPoints=F.getTipPoints.bind(F),F.positionTip=F.positionTip.bind(F),F.setTipPoints=F.setTipPoints.bind(F),F.colorPanel=new ge("Text color",G.defaultColorSet,F.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),F.colorPanel.onColorChanged=F.setColor,F.bgColorPanel=new ge("Fill color",G.defaultColorSet,F.bgColor,se),F.bgColorPanel.onColorChanged=F.setBgColor,F.fontFamilyPanel=new Ie("Font",G.defaultFontFamilies,G.defaultFontFamily),F.fontFamilyPanel.onFontChanged=F.setFont,F.tipGrip=new Ve,F.tipGrip.visual.transform.baseVal.appendItem($.createTransform()),F.controlBox.appendChild(F.tipGrip.visual),F}return ie(E,B),E.prototype.ownsTarget=function(w){return B.prototype.ownsTarget.call(this,w)||this.tipGrip.ownsTarget(w)||this.tip===w},E.prototype.createTip=function(){$.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=$.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},E.prototype.pointerDown=function(w,U){this.state==="new"&&B.prototype.pointerDown.call(this,w,U),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(U)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):B.prototype.pointerDown.call(this,w,U)},E.prototype.pointerUp=function(w){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,B.prototype.pointerUp.call(this,w);else{var U=this.state==="creating";B.prototype.pointerUp.call(this,w),this.setTipPoints(U),this.positionTip()}},E.prototype.manipulate=function(w){if(this.tipMoving){var U=this.unrotatePoint(w);this.tipPosition={x:U.x-this.manipulationStartLeft,y:U.y-this.manipulationStartTop},this.positionTip()}else B.prototype.manipulate.call(this,w)},E.prototype.setBgColor=function(w){this.bgRectangle&&this.tip&&($.setAttributes(this.bgRectangle,[["fill",w]]),$.setAttributes(this.tip,[["fill",w]])),this.bgColor=w,this.fillColorChanged(w)},E.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},E.prototype.setTipPoints=function(w){w===void 0&&(w=!1);var U=Math.min(this.height/2,15),G=this.height/5;w&&(this.tipPosition={x:U+G/2,y:this.height+20});var F=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?F<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(G=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:U,y:0},this.tipBase2Position={x:U+G,y:0}):(this.tipBase1Position={x:0,y:U},this.tipBase2Position={x:0,y:U+G}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?F<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(G=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-U-G,y:0},this.tipBase2Position={x:this.width-U,y:0}):(this.tipBase1Position={x:this.width,y:U},this.tipBase2Position={x:this.width,y:U+G}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?F<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(G=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-U-G,y:this.height},this.tipBase2Position={x:this.width-U,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-U-G},this.tipBase2Position={x:this.width,y:this.height-U}):F<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(G=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:U,y:this.height},this.tipBase2Position={x:U+G,y:this.height}):(this.tipBase1Position={x:0,y:this.height-U},this.tipBase2Position={x:0,y:this.height-U-G})},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.positionTip()},E.prototype.positionTip=function(){$.setAttributes(this.tip,[["points",this.getTipPoints()]]);var w=this.tipGrip.visual.transform.baseVal.getItem(0);w.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(w,0)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.select=function(){this.positionTip(),B.prototype.select.call(this)},E.prototype.getState=function(){var w=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.bgColor=U.bgColor,this.tipPosition=U.tipPosition,B.prototype.restoreState.call(this,w),this.createTip(),this.setTipPoints()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.tipPosition={x:this.tipPosition.x*w,y:this.tipPosition.y*U},this.positionTip()},E.typeName="CalloutMarker",E.title="Callout marker",E.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',E}(Le),De=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.fillColor="transparent",F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.opacity=1,F.strokeColor=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.fillColor=G.defaultFillColor,F.setStrokeColor=F.setStrokeColor.bind(F),F.setFillColor=F.setFillColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.setOpacity=F.setOpacity.bind(F),F.createVisual=F.createVisual.bind(F),F.strokePanel=new ge("Line color",de(G.defaultColorSet,["transparent"]),G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.fillPanel=new ge("Fill color",de(G.defaultColorSet,["transparent"]),F.fillColor,se),F.fillPanel.onColorChanged=F.setFillColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F.opacityPanel=new J("Opacity",G.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ie(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual)},E.prototype.createVisual=function(){this.visual=$.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.setSize()},E.prototype.setSize=function(){B.prototype.setSize.call(this),$.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},E.prototype.pointerUp=function(w){B.prototype.pointerUp.call(this,w),this.setSize()},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.visual&&$.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(w),this.stateChanged()},E.prototype.setFillColor=function(w){this.fillColor=w,this.visual&&$.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(w),this.stateChanged()},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.visual&&$.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.visual&&$.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.setOpacity=function(w){this.opacity=w,this.visual&&$.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.fillColor=U.fillColor,this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.opacity=U.opacity,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize()},E.typeName="EllipseMarker",E.title="Ellipse marker",E.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',E}(rt),Ke=function(B){function E(w,U,G){return B.call(this,w,U,G)||this}return ie(E,B),Object.defineProperty(E.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.tip1&&w!==this.tip2)},E.prototype.createTips=function(){this.tip1=$.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.tip1),this.tip2=$.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.tip2)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(B.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&($.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var w=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),U=this.tip1.transform.baseVal.getItem(0);U.setRotate(w,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(U,0);var G=this.tip2.transform.baseVal.getItem(0);G.setRotate(w+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(G,0)}},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w),this.createTips(),this.adjustVisual()},E.typeName="MeasurementMarker",E.title="Measurement marker",E.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',E}(He),ut=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.strokePanel.colors=G.defaultColorSet,F.fillColor="transparent",F}return ie(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="EllipseFrameMarker",E.title="Ellipse frame marker",E.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',E}(De),ct=function(){function B(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(B.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),B.prototype.addUndoStep=function(E){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(E)||(this.undoStack.push(E),JSON.stringify(this.lastRedoStep)!==JSON.stringify(E)&&this.redoStack.splice(0,this.redoStack.length))},B.prototype.replaceLastUndoStep=function(E){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=E)},B.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},B.prototype.undo=function(){if(this.undoStack.length>1){var E=this.undoStack.pop();return E!==void 0&&this.redoStack.push(E),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},B.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},B}(),Oe=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.curveX=0,F.curveY=0,F.manipulationStartCurveX=0,F.manipulationStartCurveY=0,F.setStrokeColor=F.setStrokeColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.positionGrips=F.positionGrips.bind(F),F.addControlGrips=F.addControlGrips.bind(F),F.adjustVisual=F.adjustVisual.bind(F),F.setupControlBox=F.setupControlBox.bind(F),F.resize=F.resize.bind(F),F.strokeColor=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.strokePanel=new ge("Line color",G.defaultColorSet,G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ie(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.selectorCurve&&w!==this.visibleCurve&&!this.curveGrip.ownsTarget(w))},E.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.selectorCurve=$.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=$.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)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=w.x,this.curveY=w.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(U)&&(this.activeGrip=this.curveGrip,this._state="resize")},E.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),$.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),$.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setupControlBox=function(){B.prototype.setupControlBox.call(this),this.curveControlLine1=$.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=$.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)},E.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,B.prototype.addControlGrips.call(this)},E.prototype.positionGrips=function(){B.prototype.positionGrips.call(this);var w=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-w/2,this.curveY-w/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()))},E.prototype.manipulate=function(w){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+w.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+w.y-this.manipulationStartY),B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){this.activeGrip===this.curveGrip&&(this.curveX=w.x,this.curveY=w.y),B.prototype.resize.call(this,w),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.adjustVisual(),this.colorChanged(w)},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.adjustVisual()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.adjustVisual()},E.prototype.scale=function(w,U){this.curveX=this.curveX*w,this.curveY=this.curveY*U,B.prototype.scale.call(this,w,U)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.curveX=U.curveX,this.curveY=U.curveY,this.createVisual(),this.adjustVisual()},E.typeName="CurveMarker",E.title="Curve marker",E.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',E}(ke),ot=function(){function B(E,w){w===void 0&&(w=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=E,this.cancelable=w}return Object.defineProperty(B.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),B.prototype.preventDefault=function(){this._defaultPrevented=!0},B}(),st=function(B){function E(w,U,G){var F=B.call(this,w,!1)||this;return F.dataUrl=U,F.state=G,F}return ie(E,B),E}(ot),Qe=function(B){function E(w,U,G){G===void 0&&(G=!1);var F=B.call(this,w,G)||this;return F.marker=U,F}return ie(E,B),E}(ot),_t=function(){function B(){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 B.prototype.addEventListener=function(E,w){this[E].push(w)},B.prototype.removeEventListener=function(E,w){var U=this[E].indexOf(w);U>-1&&this[E].splice(U,1)},B}(),Tt=function(){function B(E){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ae,this._isOpen=!1,this.undoRedoManager=new ct,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 _t,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=B.instanceCounter++,this.styles=new Je(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=E,this.targetRoot=document.body,this.width=E.clientWidth,this.height=E.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(B.prototype,"ALL_MARKER_TYPES",{get:function(){return[ye,fe,ae,Le,ut,De,Z,Ee,Ke,Y,He,Oe]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ye,fe,ae,Le,De,Z,Ee]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ye,fe,ae,Le,Z]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(E){var w=this;this._availableMarkerTypes.splice(0),E.forEach(function(U){if(typeof U=="string"){var G=w.ALL_MARKER_TYPES.find(function(F){return F.typeName===U});G!==void 0&&w._availableMarkerTypes.push(G)}else w._availableMarkerTypes.push(U)})},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(E){this._zoomLevel=E,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(B.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),B.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ne.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},B.prototype.show=function(){var E=this;this.styles.styleSheetRoot===void 0&&it.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=it.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(w){return w(new ot(E))})},B.prototype.render=function(){return Se(this,void 0,void 0,function(){var E;return Pe(this,function(w){switch(w.label){case 0:return this.setCurrentMarker(),(E=new lt).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.markersOnly=this.renderMarkersOnly,E.width=this.renderWidth,E.height=this.renderHeight,[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return w.sent(),[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,w.sent()]}})})},B.prototype.close=function(E){var w=this;if(E===void 0&&(E=!1),this.isOpen){var U=!1;E||this.eventListeners.beforeclose.forEach(function(G){var F=new ot(w,!0);G(F),F.defaultPrevented&&(U=!0)}),U||(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(G){return G(new ot(w))}),this.detachEvents(),this._isOpen=!1)}},B.prototype.addMarkersToToolbar=function(){for(var E,w=[],U=0;U<arguments.length;U++)w[U]=arguments[U];(E=this._availableMarkerTypes).push.apply(E,w)},B.prototype.addRenderEventListener=function(E){this.addEventListener("render",function(w){E(w.dataUrl,w.state)})},B.prototype.removeRenderEventListener=function(E){},B.prototype.addCloseEventListener=function(E){this.addEventListener("close",function(){E()})},B.prototype.removeCloseEventListener=function(E){},B.prototype.setupResizeObserver=function(){var E=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){E.resize(E.target.clientWidth,E.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return E.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},B.prototype.onPopupTargetResize=function(){var E=1*this.target.clientWidth/this.target.clientHeight,w=this.editorCanvas.clientWidth/E>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*E:this.editorCanvas.clientWidth,U=w<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/E;this.resize(w,U)},B.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},B.prototype.resize=function(E,w){this._isResizing=!0;var U=E/this.imageWidth,G=w/this.imageHeight;this.imageWidth=Math.round(E),this.imageHeight=Math.round(w),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(U,G),this._isResizing=!1},B.prototype.scaleMarkers=function(E,w){var U,G=this;this._currentMarker&&this._currentMarker instanceof Le?this._currentMarker.scale(E,w):(U=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(F){F!==G._currentMarker&&F.scale(E,w)}),U!==void 0&&this.setCurrentMarker(U)},B.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},B.prototype.setTopLeft=function(){var E=this.editingTarget.getBoundingClientRect(),w=this.editorCanvas.getBoundingClientRect();this.left=E.left-w.left,this.top=E.top-w.top},B.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},B.prototype.addDefs=function(){for(var E,w=[],U=0;U<arguments.length;U++)w[U]=arguments[U];this.defs=$.createDefs(),this.addDefsToImage(),(E=this.defs).append.apply(E,w)},B.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},B.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},B.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},B.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},B.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},B.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},B.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},B.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var E=document.createElement("a");E.href="https://markerjs.com/",E.target="_blank",E.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',E.title="Powered by marker.js",E.style.display="grid",E.style.alignItems="center",E.style.justifyItems="center",E.style.padding="3px",E.style.width="20px",E.style.height="20px",this.logoUI.appendChild(E),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},B.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")},B.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"},B.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},B.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 E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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 ze(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new et(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},B.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},B.prototype.removeMarker=function(E){this.markerImage.removeChild(E.container),this.markers.indexOf(E)>-1&&this.markers.splice(this.markers.indexOf(E),1),E.dispose()},B.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())},B.prototype.toolbarButtonClicked=function(E,w){if(E==="marker"&&w!==void 0)this.createNewMarker(w);else if(E==="action")switch(w){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()}},B.prototype.deleteSelectedMarker=function(){var E=this;if(this._currentMarker!==void 0){var w=!1;if(this.eventListeners.markerbeforedelete.forEach(function(G){var F=new Qe(E,E._currentMarker,!0);G(F),F.defaultPrevented&&(w=!0)}),!w){var U=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(G){return G(new Qe(E,U))})}}},B.prototype.clear=function(){var E=this,w=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ge=new Qe(E,void 0,!0);me(Ge),Ge.defaultPrevented&&(w=!0)}),!w)){this.setCurrentMarker();for(var U=function(me){var Ge=G.markers[me];G.setCurrentMarker(G.markers[me]),G._currentMarker.dispose(),G.markerImage.removeChild(G._currentMarker.container),G.markers.splice(G.markers.indexOf(G._currentMarker),1),G.eventListeners.markerdelete.forEach(function(dt){return dt(new Qe(E,Ge))})},G=this,F=this.markers.length-1;F>=0;F--)U(F);this.addUndoStep()}},Object.defineProperty(B.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),B.prototype.showNotesEditor=function(){var E;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=(E=this._currentMarker.notes)!==null&&E!==void 0?E:"",this.overlayContainer.appendChild(this.notesArea))},B.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)},B.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},B.prototype.addUndoStep=function(){var E=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var w=this.getState(),U=this.undoRedoManager.getLastUndoStep();if(!U||U.width===w.width&&U.height===w.height){var G=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(w),G<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(F){return F(new ot(E))})}else this.undoRedoManager.replaceLastUndoStep(w),this.eventListeners.statechange.forEach(function(F){return F(new ot(E))})}},B.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},B.prototype.undoStep=function(){var E=this,w=this.undoRedoManager.undo();w!==void 0&&(this.restoreState(w),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(U){return U(new ot(E))}))},B.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},B.prototype.redoStep=function(){var E=this,w=this.undoRedoManager.redo();w!==void 0&&(this.restoreState(w),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(U){return U(new ot(E))}))},B.prototype.stepZoom=function(){var E=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=E<this.zoomSteps.length-1?this.zoomSteps[E+1]:this.zoomSteps[0]},B.prototype.panTo=function(E){this.contentDiv.scrollBy({left:this.prevPanPoint.x-E.x,top:this.prevPanPoint.y-E.y}),this.prevPanPoint=E},B.prototype.startRenderAndClose=function(){return Se(this,void 0,void 0,function(){var E,w,U=this;return Pe(this,function(G){switch(G.label){case 0:return[4,this.render()];case 1:return E=G.sent(),w=this.getState(),this.eventListeners.render.forEach(function(F){return F(new st(U,E,w))}),this.close(!0),[2]}})})},B.prototype.getState=function(E){E===!0&&this.setCurrentMarker();var w={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(U){return w.markers.push(U.getState())}),w},B.prototype.restoreState=function(E){var w=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);E.markers.forEach(function(U){var G=w._availableMarkerTypes.find(function(me){return me.typeName===U.typeName});if(G!==void 0){var F=w.addNewMarker(G);F.restoreState(U),w.markers.push(F)}}),E.width&&E.height&&(E.width!==this.imageWidth||E.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/E.width,this.imageHeight/E.height),this.eventListeners.restorestate.forEach(function(U){return U(new ot(w))})},B.prototype.addNewMarker=function(E){var w=$.createGroup();return this.markerImage.appendChild(w),new E(w,this.overlayContainer,this.settings)},B.prototype.createNewMarker=function(E){var w,U=this;(w=typeof E=="string"?this._availableMarkerTypes.find(function(G){return G.typeName===E}):E)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(w),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(w.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(G){return G(new Qe(U,U._currentMarker))}))},B.prototype.markerCreated=function(E){var w=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(E),this.setCurrentMarker(E),E instanceof fe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(fe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(U){return U(new Qe(w,w._currentMarker))})},B.prototype.colorChanged=function(E){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=E,this.settings.defaultStrokeColor=E)},B.prototype.fillColorChanged=function(E){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=E)},B.prototype.markerStateChanged=function(E){var w=this;this.eventListeners.markerchange.forEach(function(U){return U(new Qe(w,E))})},B.prototype.setCurrentMarker=function(E){var w=this;this._currentMarker!==E&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(U){return U(new Qe(w,w._currentMarker))})),this._currentMarker=E,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(U){return U(new Qe(w,w._currentMarker))}))},B.prototype.onPointerDown=function(E){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||E.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var w=this.markers.find(function(U){return U.ownsTarget(E.target)});w!==void 0?(this.setCurrentMarker(w),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(E.clientX,E.clientY),E.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:E.clientX,y:E.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(E.clientX,E.clientY))},B.prototype.onDblClick=function(E){if(this._isFocused||this.focus(),this.mode==="select"){var w=this.markers.find(function(U){return U.ownsTarget(E.target)});w!==void 0&&w!==this._currentMarker&&this.setCurrentMarker(w),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(E.clientX,E.clientY),E.target):this.setCurrentMarker()}},B.prototype.onPointerMove=function(E){this.touchPoints!==1&&E.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||E.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(E.clientX,E.clientY)):this.zoomLevel>1&&this.panTo({x:E.clientX,y:E.clientY}))},B.prototype.onPointerUp=function(E){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(E.clientX,E.clientY)),this.isDragging=!1,this.addUndoStep()},B.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},B.prototype.onKeyUp=function(E){this._currentMarker===void 0||this.notesArea!==void 0||E.key!=="Delete"&&E.key!=="Backspace"||this.deleteSelectedMarker()},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.markerImage.getBoundingClientRect();return{x:(E-U.left)/this.zoomLevel,y:(w-U.top)/this.zoomLevel}},B.prototype.onWindowResize=function(){this.positionUI()},B.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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()},B.prototype.addLicenseKey=function(E){Ne.addKey(E)},B.prototype.addEventListener=function(E,w){this.eventListeners.addEventListener(E,w)},B.prototype.removeEventListener=function(E,w){this.eventListeners.removeEventListener(E,w)},B.prototype.renderState=function(E){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(E),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(B.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),B.prototype.focus=function(){var E=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(w){return w(new ot(E))}))},B.prototype.blur=function(){var E=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(w){return w(new ot(E))}))},B.instanceCounter=0,B}();/* **********************************
|
|
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 Et=function(B,E){return(Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var G in U)Object.prototype.hasOwnProperty.call(U,G)&&(w[G]=U[G])})(B,E)};function Rt(B,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function w(){this.constructor=B}Et(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function bt(B,E,w,U){return new(w||(w=Promise))(function(G,F){function me(St){try{dt(U.next(St))}catch(Ye){F(Ye)}}function Ge(St){try{dt(U.throw(St))}catch(Ye){F(Ye)}}function dt(St){var Ye;St.done?G(St.value):(Ye=St.value,Ye instanceof w?Ye:new w(function(Dt){Dt(Ye)})).then(me,Ge)}dt((U=U.apply(B,E||[])).next())})}function xt(B,E){var w,U,G,F,me={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return F={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ge(dt){return function(St){return function(Ye){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(G=2&Ye[0]?U.return:Ye[0]?U.throw||((G=U.return)&&G.call(U),0):U.next)&&!(G=G.call(U,Ye[1])).done)return G;switch(U=0,G&&(Ye=[2&Ye[0],G.value]),Ye[0]){case 0:case 1:G=Ye;break;case 4:return me.label++,{value:Ye[1],done:!1};case 5:me.label++,U=Ye[1],Ye=[0];continue;case 7:Ye=me.ops.pop(),me.trys.pop();continue;default:if(!(G=me.trys,(G=G.length>0&&G[G.length-1])||Ye[0]!==6&&Ye[0]!==2)){me=0;continue}if(Ye[0]===3&&(!G||Ye[1]>G[0]&&Ye[1]<G[3])){me.label=Ye[1];break}if(Ye[0]===6&&me.label<G[1]){me.label=G[1],G=Ye;break}if(G&&me.label<G[2]){me.label=G[2],me.ops.push(Ye);break}G[2]&&me.ops.pop(),me.trys.pop();continue}Ye=E.call(B,me)}catch(Dt){Ye=[6,Dt],U=0}finally{w=G=0}if(5&Ye[0])throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}([dt,St])}}}var Ot=function(){function B(){}return B.addKey=function(E){B.key=E},Object.defineProperty(B,"isLicensed",{get:function(){return!!B.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(B.key)},enumerable:!1,configurable:!0}),B}(),qe=function(){function B(){}return B.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},B.setAttributes=function(E,w){for(var U=0,G=w;U<G.length;U++){var F=G[U],me=F[0],Ge=F[1];E.setAttribute(me,Ge)}},B.createRect=function(E,w,U){var G=document.createElementNS("http://www.w3.org/2000/svg","rect");return G.setAttribute("width",E.toString()),G.setAttribute("height",w.toString()),U&&B.setAttributes(G,U),G},B.createLine=function(E,w,U,G,F){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",E.toString()),me.setAttribute("y1",w.toString()),me.setAttribute("x2",U.toString()),me.setAttribute("y2",G.toString()),F&&B.setAttributes(me,F),me},B.createPolygon=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","polygon");return U.setAttribute("points",E),w&&B.setAttributes(U,w),U},B.createCircle=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","circle");return U.setAttribute("cx",(E/2).toString()),U.setAttribute("cy",(E/2).toString()),U.setAttribute("r",E.toString()),w&&B.setAttributes(U,w),U},B.createEllipse=function(E,w,U){var G=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return G.setAttribute("cx",(E/2).toString()),G.setAttribute("cy",(w/2).toString()),G.setAttribute("rx",(E/2).toString()),G.setAttribute("ry",(w/2).toString()),U&&B.setAttributes(G,U),G},B.createGroup=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","g");return E&&B.setAttributes(w,E),w},B.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},B.createMarker=function(E,w,U,G,F,me,Ge){var dt=document.createElementNS("http://www.w3.org/2000/svg","marker");return B.setAttributes(dt,[["id",E],["orient",w],["markerWidth",U.toString()],["markerHeight",G.toString()],["refX",F.toString()],["refY",me.toString()]]),dt.appendChild(Ge),dt},B.createText=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","text");return w.setAttribute("x","0"),w.setAttribute("y","0"),E&&B.setAttributes(w,E),w},B.createTSpan=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","tspan");return U.textContent=E,w&&B.setAttributes(U,w),U},B.createImage=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","image");return E&&B.setAttributes(w,E),w},B.createPoint=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return U.x=E,U.y=w,U},B.createPath=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","path");return U.setAttribute("d",E),w&&B.setAttributes(U,w),U},B.createElement=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg",E);return w&&B.setAttributes(U,w),U},B.getHollowRectanglePath=function(E,w,U,G,F,me,Ge,dt){return"M"+E+","+w+"V"+(w+G)+"H"+(E+U)+"V"+w+"H"+F+"V"+me+"H"+(F+Ge)+"V"+(me+dt)+"H"+F+"V"+w+"Z"},B}(),Bt=function(){function B(E){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+E+"_"}return Object.defineProperty(B.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),B.prototype.addClass=function(E){return this.styleSheet===void 0&&this.addStyleSheet(),E.name=""+this.classNamePrefix+E.localName,this.classes.push(E),this.styleSheet.sheet.insertRule("."+E.name+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length),E},B.prototype.addRule=function(E){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(E),this.styleSheet.sheet.insertRule(E.selector+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length)},B.prototype.addStyleSheet=function(){var E;this.styleSheet=document.createElement("style"),((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).appendChild(this.styleSheet),this.addRule(new gt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new gt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new gt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new vt("_fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new vt("_fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},B.prototype.removeStyleSheet=function(){var E;this.styleSheet&&(((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},B}(),gt=function(B,E){this.selector=B,this.style=E},vt=function(B,E){this.localName=B,this.style=E},wt=function(){function B(){this.blocks=[],this.display=""}return B.prototype.addButtonBlock=function(E){E.className=this.blockClassName,E.buttonClassName=this.buttonClassName,E.buttonColorsClassName=this.buttonColorsClassName,E.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(E)},B.prototype.addElementBlock=function(E){E.className===void 0&&(E.className=this.blockClassName),this.blocks.push(E)},B.prototype.getUI=function(){var E=document.createElement("div");return E.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,E.style.display=this.display,this.blocks.forEach(function(w){return E.appendChild(w.getUI())}),E},B}(),pt=function(){function B(){}return B.prototype.getUI=function(){var E=document.createElement("div");if(E.className=this.className,this.minWidth!==void 0&&(E.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":E.style.justifyContent="flex-start";break;case"center":E.style.justifyContent="center";break;case"end":E.style.justifyContent="flex-end"}return E.style.whiteSpace="nowrap",E},B}(),tn=function(B){function E(){var w=B!==null&&B.apply(this,arguments)||this;return w.buttons=[],w}return Rt(E,B),E.prototype.addButton=function(w){w.className=this.buttonClassName,w.colorsClassName=this.buttonColorsClassName,w.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(w)},E.prototype.getUI=function(){var w=B.prototype.getUI.call(this);return this.buttons.forEach(function(U){return w.appendChild(U.getUI())}),w},E}(pt),Yt=function(){function B(E,w){this._isActive=!1,this._isHidden=!1,this._icon=E,this.title=w,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(B.prototype,"icon",{get:function(){return this._icon},set:function(E){this._icon=E,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isActive",{get:function(){return this._isActive},set:function(E){this._isActive=E,this.adjustClassName()},enumerable:!1,configurable:!0}),B.prototype.getUI=function(){var E=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return E.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},B.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},B.prototype.hide=function(){this._isHidden=!0},B}(),cn=function(B){function E(){var w=B!==null&&B.apply(this,arguments)||this;return w.elements=[],w}return Rt(E,B),E.prototype.addElement=function(w){this.elements.push(w)},E.prototype.getUI=function(){var w=B.prototype.getUI.call(this);return this.elements.forEach(function(U){return w.appendChild(U)}),w},E}(pt),Ht=function(){function B(E,w){this.horizontal=E,this.vertical=w}return Object.defineProperty(B.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),B.prototype.getVerticalLength=function(E){return E/this.ratio},B.prototype.getHorizontalLength=function(E){return E*this.ratio},B}(),At=function(){function B(){}return B.getIcon=function(E,w){if(E>0&&w>0){var U=new Ht(E,w),G=U.ratio>=1?20:U.getHorizontalLength(20),F=U.ratio<1?20:U.getVerticalLength(20),me=document.createElementNS("http://www.w3.org/2000/svg","svg");me.setAttribute("xmlns","http://www.w3.org/2000/svg"),me.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(me);var Ge=qe.createDefs();me.appendChild(Ge);var dt=qe.createElement("clipPath",[["id","text-bg-clip"]]);Ge.appendChild(dt);var St=qe.createPath(qe.getHollowRectanglePath((24-G)/2,(24-F)/2,G,F,(24-G)/2+2,(24-F)/2+2,G-4,F-4));me.appendChild(St);var Ye=qe.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ye.appendChild(qe.createTSpan(E+":"+w)),me.appendChild(Ye);var Dt=Ye.getBBox();qe.setAttributes(Ye,[["x",((24-Dt.width)/2).toString()],["y",((24-Dt.height)/2-Dt.y).toString()]]);var Nt=qe.createPath(qe.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Dt.width))/2,(24-Math.ceil(Dt.height))/2,Math.ceil(Dt.width),Math.ceil(Dt.height)));return dt.appendChild(Nt),qe.setAttributes(St,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(me),me.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},B}(),Ft=function(B){function E(w,U,G){var F=B.call(this,w,U)||this;return F.isDropdownOpen=!1,F.onClick=F.dropdownButtonClicked,F.dropdownButtons=G,F}return Rt(E,B),E.prototype.setupDropdown=function(){var w=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(U){U.className=w.className,U.colorsClassName=w.colorsClassName,w.dropdownBlock.appendChild(U.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},E.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},E.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},E.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},E.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},E.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},E}(Yt),fn=function(){function B(E,w){this.GRIP_SIZE=10,this.color=E,this.fillColor=w,this.visual=qe.createGroup(),this.visual.appendChild(qe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(qe.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return B.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},B.prototype.setCenter=function(E,w){this.visual.childNodes.forEach(function(U){return qe.setAttributes(U,[["cx",E.toString()],["cy",w.toString()]])})},B}(),ln=function(){function B(E,w,U,G){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=E,this.canvasHeight=w,this.margin=U,this.container=G,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(B.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(E){this._aspectRatio=E,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(E){this._isGridVisible=E,this.gridContainer&&qe.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(E){this._zoomFactor=E,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),B.prototype.open=function(){var E=this;this.cropShadeElement=qe.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=qe.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var w=0;w<this.numberOfGridLines;w++)this.horizontalGridLines.push(qe.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(qe.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(U){return E.gridContainer.appendChild(U)}),this.verticalGridLines.forEach(function(U){return E.gridContainer.appendChild(U)}),this.cropRectElement=qe.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new fn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new fn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new fn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new fn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},B.prototype.setCropRectangle=function(E){this.cropRect=E;var w=Object.assign({},this.cropRect);this.zoomFactor!==1&&(w.width=this.cropRect.width*this.zoomFactor,w.height=this.cropRect.height*this.zoomFactor,w.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-w.width/2,w.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-w.height/2),qe.setAttributes(this.cropRectElement,[["x",w.x.toString()],["y",w.y.toString()],["width",w.width.toString()],["height",w.height.toString()]]);var U=w.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(F,me){var Ge=w.y+U*(me+1);qe.setAttributes(F,[["x1",""+w.x],["y1",""+Ge],["x2",""+(w.x+w.width)],["y2",""+Ge]])});var G=w.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(F,me){var Ge=w.x+G*(me+1);qe.setAttributes(F,[["x1",""+Ge],["y1",""+w.y],["x2",""+Ge],["y2",""+(w.y+w.height)]])}),qe.setAttributes(this.cropShadeElement,[["d",qe.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,w.x,w.y,w.width,w.height)]]),this.topLeftGrip.setCenter(w.x,w.y),this.topRightGrip.setCenter(w.x+w.width,w.y),this.bottomLeftGrip.setCenter(w.x,w.y+w.height),this.bottomRightGrip.setCenter(w.x+w.width,w.y+w.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},B.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)},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.container.getBoundingClientRect();return{x:E-U.left+this.margin,y:w-U.top+this.margin}},B.prototype.onPointerDown=function(E){this.container.setPointerCapture(E.pointerId),this.previousPoint=this.clientToLocalCoordinates(E.clientX,E.clientY),this.cropRectElement===E.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(E.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(E.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(E.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(E.target)&&(this.activeGrip=this.bottomRightGrip)},B.prototype.onPointerMove=function(E){if(this.isMoving)this.move(this.clientToLocalCoordinates(E.clientX,E.clientY));else if(this.activeGrip){var w=this.clientToLocalCoordinates(E.clientX,E.clientY);this.resize(w)}E.preventDefault()},B.prototype.onPointerUp=function(E){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(E.pointerId)},B.prototype.move=function(E){var w=E.x-this.previousPoint.x,U=E.y-this.previousPoint.y;this.zoomFactor!==1&&(w=-w/this.zoomFactor,U=-U/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+w),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+U),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=E},B.prototype.resize=function(E){var w=Object.assign({},this.cropRect),U=E.x-this.previousPoint.x,G=E.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:w.x+U<this.margin&&(U=this.margin-w.x),w.x+=U,w.width=this.cropRect.x+this.cropRect.width-w.x;break;case this.bottomRightGrip:case this.topRightGrip:w.width+U>this.canvasWidth*this.zoomFactor&&(U=this.canvasWidth*this.zoomFactor-w.width),w.width+=U}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(w.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(U),w.height=this.aspectRatio.getVerticalLength(w.width)):(w.y+=G,w.height=this.cropRect.y+this.cropRect.height-w.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?w.height=this.aspectRatio.getVerticalLength(w.width):w.height+=G}w.width<10&&(w.x=this.cropRect.x,w.width=10),w.height<10&&(w.y=this.cropRect.y,w.height=10),this.previousPoint=E,w.x>=this.margin&&w.y>=this.margin&&w.x-this.margin+w.width<=this.canvasWidth&&w.y-this.margin+w.height<=this.canvasHeight&&(this.cropRect=w,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},B.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var E=this.cropRect.x+this.cropRect.width/2,w=this.cropRect.y+this.cropRect.height/2,U=this.aspectRatio.getHorizontalLength(this.cropRect.height),G=this.aspectRatio.getVerticalLength(this.cropRect.width);U/this.canvasWidth<G/this.canvasHeight?this.cropRect.width=U:this.cropRect.height=G,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=E-this.cropRect.width/2,this.cropRect.y=w-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)}},B.prototype.getRescaledRect=function(E,w,U,G,F,me){var Ge=U/E,dt=G/w;return{x:(F.x-me)*Ge+me,y:(F.y-me)*dt+me,width:F.width*Ge,height:F.height*dt}},B.prototype.scaleCanvas=function(E,w){var U=this.getRescaledRect(this.canvasWidth,this.canvasHeight,E,w,this.cropRect,this.margin);this.canvasWidth=E,this.canvasHeight=w,this.onCropChange&&this.onCropChange(U),this.setCropRectangle(U)},B}(),Tn=function(){function B(E){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=E,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(B.prototype,"angle",{get:function(){return this._angle},set:function(E){this._angle=E,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),B.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},B.prototype.onPointerDown=function(E){this.controlContainer.setPointerCapture(E.pointerId),this.isDragging=!0,this.previousPoint={x:E.clientX,y:E.clientY}},B.prototype.onPointerMove=function(E){this.isDragging&&(this.onAngleChange&&this.onAngleChange((E.clientX-this.previousPoint.x)/5),this.previousPoint.x=E.clientX)},B.prototype.onPointerUp=function(E){this.isDragging&&this.onAngleChange&&this.onAngleChange((E.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(E.pointerId)},B.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var E=this.angleLabelText.getBBox();qe.setAttributes(this.angleLabelElement,[["x",((this.width-E.width)/2).toString()],["y",(this.height/2).toString()]])}},B.prototype.positionScaleShape=function(){if(this.scaleShape){var E=this.scaleShape.transform.baseVal.getItem(0);E.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(E,0)}},B.prototype.getVisual=function(){var E=document.createElementNS("http://www.w3.org/2000/svg","svg");E.setAttribute("xmlns","http://www.w3.org/2000/svg"),E.setAttribute("width",this.width+"px"),E.setAttribute("height",this.height+"px"),E.setAttribute("viewBox","0 0 "+this.width+" "+this.height),E.style.flexShrink="0",document.body.appendChild(E);for(var w="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,U=1;U<=this.width/5+10;U++){var G=U%5==0?this.height/3:this.height/6;w+="h4v"+-G+"h1v"+G}w+="v1H0Z",this.scaleShape=qe.createPath(w);var F=qe.createTransform();this.scaleShape.transform.baseVal.appendItem(F),E.appendChild(this.scaleShape),this.angleLabelElement=qe.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=qe.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var me=qe.createTSpan("");return me.innerHTML="°",this.angleLabelElement.appendChild(me),E.appendChild(this.angleLabelElement),document.body.removeChild(E),E},B}(),Mn=function(){function B(){this.naturalSize=!1,this.imageType="image/png"}return B.prototype.rasterize=function(E,w,U,G,F,me,Ge){var dt=this;return new Promise(function(St){var Ye=document.createElement("canvas");Ye.width=E.width.baseVal.value-2*G,Ye.height=E.height.baseVal.value-2*G;var Dt=1,Nt=1;dt.naturalSize===!0?(Dt=w.naturalWidth/(E.width.baseVal.value-2*G)/me,Nt=w.naturalHeight/(E.height.baseVal.value-2*G)/Ge,Ye.width=w.naturalWidth/me,Ye.height=w.naturalHeight/Ge):dt.width!==void 0&&dt.height!==void 0&&(Dt=dt.width/U.width,Nt=dt.height/U.height,Ye.width*=Dt,Ye.height*=Nt);var on=Ye.getContext("2d");on.translate(Ye.width/2,Ye.height/2),on.rotate(F*Math.PI/180),on.scale(me,Ge),on.translate(-Ye.width/2,-Ye.height/2),on.drawImage(w,0,0,Ye.width,Ye.height);var kn=document.createElement("canvas");kn.width=U.width*Dt,kn.height=U.height*Nt,kn.getContext("2d").putImageData(on.getImageData((U.x-G)*Dt,(U.y-G)*Nt,U.width*Dt,U.height*Nt),0,0),St(kn.toDataURL(dt.imageType,dt.imageQuality))})},B}(),Vn=function(){function B(E){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=B.instanceCounter++,this.styles=new Bt(this.instanceNo),this.target=E,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(B.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(E){this._zoomToCropEnabled=E,E?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(E){this._isGridVisible=E,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"gridLines",{get:function(){return this._gridLines},set:function(E){this._gridLines=E,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(E){this._rotationAngle=E,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"aspectRatio",{get:function(){var E;return(E=this._aspectRatio)!==null&&E!==void 0?E:this.aspectRatios[0]},set:function(E){this._aspectRatio=E},enumerable:!1,configurable:!0}),B.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},B.prototype.show=function(){this.showUI(),this.open()},B.prototype.close=function(E){E===void 0&&(E=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),E||this.closeEventListeners.forEach(function(w){return w()}),this._isOpen=!1)},B.prototype.addRenderEventListener=function(E){this.renderEventListeners.push(E)},B.prototype.removeRenderEventListener=function(E){this.renderEventListeners.indexOf(E)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(E),1)},B.prototype.addCloseEventListener=function(E){this.closeEventListeners.push(E)},B.prototype.removeCloseEventListener=function(E){this.closeEventListeners.indexOf(E)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(E),1)},B.prototype.setupResizeObserver=function(){var E=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){E.resize(E.target.clientWidth,E.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))},B.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var E=1*this.target.clientWidth/this.target.clientHeight,w=this.contentDiv.clientWidth/E>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*E:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,U=w+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/E;this.resize(w,U)}},B.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},B.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",qe.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},B.prototype.resize=function(E,w){this.imageWidth=Math.round(E),this.imageHeight=Math.round(w),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},B.prototype.setEditingTarget=function(){var E=document.createElement("canvas");E.width=this.target.naturalWidth,E.height=this.target.naturalHeight,E.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var w=E.toDataURL();qe.setAttributes(this.editingTarget,[["href",w]]),this.setEditingTargetSize()},B.prototype.setTopLeft=function(){var E=this.target.getBoundingClientRect(),w=this.editorCanvas.getBoundingClientRect();this.left=E.left-w.left-this.CANVAS_MARGIN,this.top=E.top-w.top-this.CANVAS_MARGIN},B.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=qe.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=qe.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=qe.createGroup(),this.editingTargetRotationScaleContainer=qe.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var E=qe.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(E);var w=qe.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(w),this.editingTargetContainer=qe.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},B.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},B.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=qe.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new ln(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},B.prototype.zoomToCrop=function(){if(this.cropRect){var E=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,w=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=E+"px "+w+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-E+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-w+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},B.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},B.prototype.cropRectChanged=function(E){this.cropRect=E,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},B.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},B.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"},B.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},B.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var E=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,w=this.target.offsetTop>E+this.CANVAS_MARGIN?this.target.offsetTop-(E+this.CANVAS_MARGIN):0;this.coverDiv.style.top=w+"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},B.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},B.prototype.addTopToolbar=function(){var E=this;this.topToolbar=new wt,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 w=new tn;w.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(w);var U=[];this.aspectRatios.forEach(function(Nt){var on=new Yt(At.getIcon(Nt.horizontal,Nt.vertical),Nt.horizontal===0&&Nt.vertical===0?"FREE":Nt.horizontal+":"+Nt.vertical);on.onClick=function(){return E.ratioButtonClicked(Nt)},U.push(on)}),this.aspectRatioButton=new Ft(At.getIcon(0,0),"Aspect ratio",U),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,w.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var G=new Yt('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");G.isActive=this.isGridVisible,G.onClick=function(){E.isGridVisible=!E.isGridVisible,G.isActive=E.isGridVisible},w.addButton(G);var F=new Yt('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(F.isActive=this.zoomToCropEnabled,F.onClick=function(){E.zoomToCropEnabled=!E.zoomToCropEnabled,F.isActive=E.zoomToCropEnabled},w.addButton(F),!Ot.isLicensed){var me=new cn;this.topToolbar.addElementBlock(me);var Ge=document.createElement("div");Ge.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var dt=document.createElement("a");dt.style.color="currentColor",dt.href="https://markerjs.com/products/cropro",dt.target="_blank",dt.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Ge.appendChild(dt),me.addElement(Ge)}var St=new tn;St.minWidth=3*this.toolbarHeight+"px",St.contentAlign="end",this.topToolbar.addButtonBlock(St);var Ye=new Yt('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Ye.onClick=this.startRenderAndClose,St.addButton(Ye),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ye.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Dt=new Yt('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");Dt.onClick=this.close,St.addButton(Dt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Dt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},B.prototype.addBottomToolbar=function(){var E=this;this.bottomToolbar=new wt,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 w=new tn;w.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(w);var U=new Yt('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");U.onClick=this.rotateLeftButtonClicked,w.addButton(U);var G=new Yt('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");G.onClick=this.rotateRightButtonClicked,w.addButton(G);var F=new cn;F.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(F),this.straightener=new Tn("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(St){E.rotateBy(St),E.straightener.angle=E.rotationAngle},F.addElement(this.straightener.getUI());var me=new tn;me.minWidth=2*this.toolbarHeight+"px",me.contentAlign="end",this.bottomToolbar.addButtonBlock(me);var Ge=new Yt('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Ge.onClick=this.flipHorizontallyButtonClicked,me.addButton(Ge);var dt=new Yt('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");dt.onClick=this.flipVerticallyButtonClicked,me.addButton(dt)},B.prototype.ratioButtonClicked=function(E){this.aspectRatio=E,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},B.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=At.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},B.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Ht(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},B.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},B.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},B.prototype.restoreState=function(E){if(E){var w=this.cropLayer.getRescaledRect(E.width,E.height,this.imageWidth,this.imageHeight,E.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(w),this.cropRectChanged(w),this.flippedHorizontally=E.flippedHorizontally,this.flippedVertically=E.flippedVertically,this.applyFlip(),this.rotationAngle=E.rotationAngle,this.applyRotation()}},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.cropImage.getBoundingClientRect();return{x:E-U.left,y:w-U.top}},B.prototype.onWindowResize=function(){this.positionUI()},B.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var E=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=E+"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()},B.prototype.rotateLeftButtonClicked=function(){var E=this.rotationAngle-90;this.rotationAngle%90!=0&&(E+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(E)},B.prototype.rotateRightButtonClicked=function(){var E=this.rotationAngle+90;this.rotationAngle%90!=0&&(E-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(E)},B.prototype.rotateTo=function(E){E=(E=E>180?E-360:E)<=-180?E+360:E,this.rotationAngle=E,this.applyRotation()},B.prototype.rotateBy=function(E){this.rotateTo((this.rotationAngle+E)%360)},B.prototype.applyRotation=function(){var E=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var w=this.editingTargetRotationContainer.transform.baseVal.getItem(0);w.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(w,0);var U=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/U.width,this.imageHeight/U.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=E},B.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},B.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},B.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},B.prototype.startRenderAndClose=function(){return bt(this,void 0,void 0,function(){var E,w;return xt(this,function(U){switch(U.label){case 0:return[4,this.render()];case 1:return E=U.sent(),w=this.getState(),this.renderEventListeners.forEach(function(G){return G(E,w)}),this.close(!0),[2]}})})},B.prototype.render=function(){return bt(this,void 0,void 0,function(){var E;return xt(this,function(w){switch(w.label){case 0:return(E=new Mn).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.width=this.renderWidth,E.height=this.renderHeight,this.unzoomFromCrop(),qe.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,E.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 w.sent(),[4,E.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,w.sent()]}})})},B.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new vt("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 vt("toolbar_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new vt("toolbar-block",`
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: content-box;
|
|
`));var E=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new vt("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.toolbarHeight-2*E)+`px;
|
|
height: `+(this.toolbarHeight-2*E)+`px;
|
|
padding: `+E+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new vt("toolbar_button_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new vt("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 vt("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 vt("toolbar_dropdown_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new vt("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 vt("toolbar_straightener",`
|
|
display: flex;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
height: `+(this.toolbarHeight-2*E)+`px;
|
|
padding: `+E+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new vt("toolbar_straightener_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`))},B.instanceCounter=0,B}(),Yn=N("8hTe"),Ut=N.n(Yn),qn=/<pre[^>]*>/g;function fi(B){var E=document.createElement("div");return E.innerHTML=B,E.childNodes.length===0?"":E.childNodes[0].nodeValue}var $n=ne.a=function(B){var E=B.value,w=E===void 0?"":E,U=B.edit,G=U===void 0?!1:U,F=B.className,me=B.showTextOnly,Ge=B.showLines,dt=B.replaces,St=B.zoomImg,Ye=B.hasMask,Dt=B.style,Nt=Dt===void 0?{}:Dt,on=B.stylesPrev,kn=on===void 0?{}:on,Xn=String(w),Me=Object(O.useRef)(),Dn=Object(O.useRef)(),oi=Object(O.useState)(""),Jn=Object(W.a)(oi,2),pi=Jn[0],ei=Jn[1],wn=Object(O.useState)("office"),Kn=Object(W.a)(wn,2),li=Kn[0],mi=Kn[1],xi=function(){var Wt=new Vn(Dn.current);Wt.displayMode="popup",Wt.addRenderEventListener(function(){var yn=Object(R.a)(e.a.mark(function Zt(On){var un;return e.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:return Me.current.style.display="none",Rn.next=3,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:On}});case 3:un=Rn.sent,un!=null&&un.id&&dt(Dn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(un==null?void 0:un.id,"?type=").concat(un.content_type));case 5:case"end":return Rn.stop()}},Zt)}));return function(Zt){return yn.apply(this,arguments)}}()),Wt.show()},Ni=function(){var Wt=new Tt(Dn.current);Wt.settings.displayMode="popup",Wt.addEventListener("render",function(){var yn=Object(R.a)(e.a.mark(function Zt(On){var un;return e.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if(Me.current.style.display="none",!Dn.current){Rn.next=6;break}return Rn.next=4,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:On.dataUrl}});case 4:un=Rn.sent,un!=null&&un.id&&dt(Dn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(un==null?void 0:un.id,"?type=").concat(un.content_type));case 6:case"end":return Rn.stop()}},Zt)}));return function(Zt){return yn.apply(this,arguments)}}()),Wt.show(),window.markerArea=Wt},ui=Object(O.useMemo)(function(){Me.current&&(Me.current.style.zIndex=-1);try{var dn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Wt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Xn=Xn.replace(dn,"("+V.a.API_SERVER+"/api/attachments/").replace(Wt,'"'+V.a.API_SERVER+"/api/attachments/").replace(yn,'"'+V.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`)}catch(vi){}var Zt=A(Xn),On=v();if(Xn.match(/\[TOC\]/)&&(Zt=Zt.replace("<p>[TOC]</p>",x()),b()),Zt=Zt.replace(/(__special_katext_id_\d+__)/g,function(vi,Rn){var Ti=On[Rn],yi=Ti.type,bi=Ti.expression;return Object(oe.renderToString)(fi(bi)||"",{displayMode:yi==="block",throwOnError:!1,output:"html"})}),Zt=Zt.replace(/▁/g,"\u2581\u2581\u2581"),f(),me){var un=document.createElement("div");return un.innerHTML=Zt,un.innerText}return setTimeout(function(){return Ri()},500),Zt},[Xn]),Ln=Object(O.useRef)();y.WebkitLineClamp=Ge,Ge&&(Nt=Object(C.a)(Object(C.a)({},Nt),y));function ti(dn){var Wt=dn.target;if(Wt.tagName.toUpperCase()==="IMG"){if(St){var yn=Wt.getAttribute("src");ei(yn),mi("image")}}else if(Wt.tagName.toUpperCase()==="A"){var Zt=Wt.getAttribute("href");if(Zt.indexOf("office")>-1)dn.preventDefault(),ei(Zt),mi("office");else if(Zt.indexOf("application/pdf")>-1)dn.preventDefault(),ei(Zt),mi("pdf");else if(Zt.indexOf("text/html")>-1)dn.preventDefault(),ei(Zt),mi("html");else if(Zt.startsWith("#")){dn.preventDefault();var On=document.getElementById(Zt.replace("#",""));On&&On.scrollIntoView(!0)}}}var Ri=function(){var Wt,yn=(Wt=Ln.current)===null||Wt===void 0?void 0:Wt.querySelectorAll("video");yn==null||yn.forEach(function(Zt){if(Zt.oncontextmenu=function(){return!1},Zt.src.indexOf(".m3u8")>-1&&!Zt.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var On=new K.a;On.loadSource(Zt.src),On.attachMedia(Zt)}}})};Object(O.useEffect)(function(){if(Ln.current&&ui&&(ui.match(qn)&&window.PR.prettyPrint()),Ln.current)return Ln.current.addEventListener("click",ti),function(){Ln.current.removeEventListener("click",ti),f(),b()}},[ui,Ln.current,ti]);var gi=function(Wt){if(!G)return;Wt.target.nodeName==="IMG"?(Me.current.style.zIndex=1,Me.current.style.display="flex",Me.current.style.width=Wt.target.clientWidth+"px",Me.current.style.height=Wt.target.clientHeight+"px",Me.current.style.top=Wt.target.offsetTop+"px",Me.current.style.left=Wt.target.offsetLeft+"px",Dn.current.src=Wt.target.getAttribute("src")):Me.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:Ln,style:Object(C.a)({},Nt),className:"".concat(F||""," markdown-body ").concat(Ut.a.mdBody),onMouseOver:gi,dangerouslySetInnerHTML:{__html:ui}}),g.a.createElement("div",{ref:Me,className:Ut.a.button},g.a.createElement(M.a,null,g.a.createElement(j.a,{onClick:function(){return xi()}},"\u88C1\u526A"),g.a.createElement(j.a,{onClick:function(){return Ni()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:Dn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(le.a,{close:!0,data:pi,type:pi!=null&&pi.length?li:"",style:Object(C.a)({},kn),onClose:function(){return ei("")}}))}},"9JIy":function(je,ne,N){je.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},BJfS:function(je,ne){var N=function(Q){return Q.replace(/[A-Z]/g,function(M){return"-"+M.toLowerCase()}).toLowerCase()};je.exports=N},BU3w:function(je,ne,N){"use strict";N.d(ne,"a",function(){return R});var Q=N("MNnm"),M="rc-util-key";function I(W){if(W.attachTo)return W.attachTo;var k=document.querySelector("head");return k||document.body}function j(W){var k,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Q.a)())return null;var O=document.createElement("style");if((k=e.csp)===null||k===void 0?void 0:k.nonce){var g;O.nonce=(g=e.csp)===null||g===void 0?void 0:g.nonce}O.innerHTML=W;var p=I(e),u=p.firstChild;return e.prepend&&p.prepend?p.prepend(O):e.prepend&&u?p.insertBefore(O,u):p.appendChild(O),O}var C=new Map;function R(W,k){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=I(e);if(!C.has(O)){var g=j("",e),p=g.parentNode;C.set(O,p),p.removeChild(g)}var u=Array.from(C.get(O).children).find(function(i){return i.tagName==="STYLE"&&i[M]===k});if(u){var a,r;if(((a=e.csp)===null||a===void 0?void 0:a.nonce)&&u.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var o;u.nonce=(o=e.csp)===null||o===void 0?void 0:o.nonce}return u.innerHTML!==W&&(u.innerHTML=W),u}var s=j(W,e);return s[M]=k,s}},BdwD:function(je,ne,N){"use strict";var Q=N("+L6B"),M=N("2/Rp"),I=N("0Owb"),j=N("k1fw"),C=N("q1tI"),R=N.n(C),W=N("FOrL"),k=N.n(W),e=function(g){var p=g.buttonProps,u=p===void 0?{}:p,a=g.styles,r=a===void 0?{}:a,o=g.customText,s=g.ButtonText,i=g.ButtonClick,n=g.Buttonclass,t=g.ButtonTwo;return R.a.createElement("section",{className:"tc animated fadeIn",style:Object(j.a)(Object(j.a)({},{color:"#999",margin:"200px auto"}),r)},R.a.createElement("img",{src:k.a}),R.a.createElement("p",{className:"mt20 font14"},o||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),s&&R.a.createElement(M.a,Object(I.a)({className:n,onClick:i},u),s),t&&t)};ne.a=e},Bq7L:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAc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F+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"C/vA":function(je,ne,N){"use strict";N.d(ne,"a",function(){return Q});function Q(M){const I=this;let j=!1,C;return function(){return j||(j=!0,C=M.apply(I,arguments)),C}}},"Cg/j":function(je,ne,N){"use strict";N.d(ne,"b",function(){return Q}),N.d(ne,"a",function(){return M}),N.d(ne,"c",function(){return j}),N.d(ne,"d",function(){return C});var Q;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function W(k){return k[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=W})(Q||(Q={}));const M=j("instantiationService");function I(R,W,k,e){W[Q.DI_TARGET]===W?W[Q.DI_DEPENDENCIES].push({id:R,index:k,optional:e}):(W[Q.DI_DEPENDENCIES]=[{id:R,index:k,optional:e}],W[Q.DI_TARGET]=W)}function j(R){if(Q.serviceIds.has(R))return Q.serviceIds.get(R);const W=function(k,e,O){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(W,k,O,!1)};return W.toString=()=>R,Q.serviceIds.set(R,W),W}function C(R){return function(W,k,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(R,W,e,!0)}}},DlQD:function(je,ne,N){(function(Q,M){je.exports=M()})(this,function(){"use strict";function Q(fe,re){for(var ae=0;ae<re.length;ae++){var Y=re[ae];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(fe,Y.key,Y)}}function M(fe,re,ae){return re&&Q(fe.prototype,re),ae&&Q(fe,ae),fe}function I(fe,re){if(!fe)return;if(typeof fe=="string")return j(fe,re);var ae=Object.prototype.toString.call(fe).slice(8,-1);if(ae==="Object"&&fe.constructor&&(ae=fe.constructor.name),ae==="Map"||ae==="Set")return Array.from(fe);if(ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return j(fe,re)}function j(fe,re){(re==null||re>fe.length)&&(re=fe.length);for(var ae=0,Y=new Array(re);ae<re;ae++)Y[ae]=fe[ae];return Y}function C(fe,re){var ae;if(typeof Symbol=="undefined"||fe[Symbol.iterator]==null){if(Array.isArray(fe)||(ae=I(fe))||re&&fe&&typeof fe.length=="number"){ae&&(fe=ae);var Y=0;return function(){return Y>=fe.length?{done:!0}:{done:!1,value:fe[Y++]}}}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 ae=fe[Symbol.iterator](),ae.next.bind(ae)}function R(fe,re){return re={exports:{}},fe(re,re.exports),re.exports}var W=R(function(fe){function re(){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 ae(Y){fe.exports.defaults=Y}fe.exports={defaults:re(),getDefaults:re,changeDefaults:ae}}),k=W.defaults,e=W.getDefaults,O=W.changeDefaults,g=/[&<>"']/,p=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},o=function(re){return r[re]};function s(fe,re){if(re){if(g.test(fe))return fe.replace(p,o)}else if(u.test(fe))return fe.replace(a,o);return fe}var i=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function n(fe){return fe.replace(i,function(re,ae){return ae=ae.toLowerCase(),ae==="colon"?":":ae.charAt(0)==="#"?ae.charAt(1)==="x"?String.fromCharCode(parseInt(ae.substring(2),16)):String.fromCharCode(+ae.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(fe,re){fe=fe.source||fe,re=re||"";var ae={replace:function(J,Z){return Z=Z.source||Z,Z=Z.replace(t,"$1"),fe=fe.replace(J,Z),ae},getRegex:function(){return new RegExp(fe,re)}};return ae}var y=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(fe,re,ae){if(fe){var Y;try{Y=decodeURIComponent(n(ae)).replace(y,"").toLowerCase()}catch(J){return null}if(Y.indexOf("javascript:")===0||Y.indexOf("vbscript:")===0||Y.indexOf("data:")===0)return null}re&&!m.test(ae)&&(ae=c(re,ae));try{ae=encodeURI(ae).replace(/%25/g,"%")}catch(J){return null}return ae}var _={},h=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(fe,re){_[" "+fe]||(h.test(fe)?_[" "+fe]=fe+"/":_[" "+fe]=L(fe,"/",!0)),fe=_[" "+fe];var ae=fe.indexOf(":")===-1;return re.substring(0,2)==="//"?ae?re:fe.replace(d,"$1")+re:re.charAt(0)==="/"?ae?re:fe.replace(l,"$1")+re:fe+re}var v={exec:function(){}};function f(fe){for(var re=1,ae,Y;re<arguments.length;re++){ae=arguments[re];for(Y in ae)Object.prototype.hasOwnProperty.call(ae,Y)&&(fe[Y]=ae[Y])}return fe}function T(fe,re){var ae=fe.replace(/\|/g,function(Z,se,Ee){for(var De=!1,Ke=se;--Ke>=0&&Ee[Ke]==="\\";)De=!De;return De?"|":" |"}),Y=ae.split(/ \|/),J=0;if(Y.length>re)Y.splice(re);else for(;Y.length<re;)Y.push("");for(;J<Y.length;J++)Y[J]=Y[J].trim().replace(/\\\|/g,"|");return Y}function L(fe,re,ae){var Y=fe.length;if(Y===0)return"";for(var J=0;J<Y;){var Z=fe.charAt(Y-J-1);if(Z===re&&!ae)J++;else if(Z!==re&&ae)J++;else break}return fe.substr(0,Y-J)}function P(fe,re){if(fe.indexOf(re[1])===-1)return-1;for(var ae=fe.length,Y=0,J=0;J<ae;J++)if(fe[J]==="\\")J++;else if(fe[J]===re[0])Y++;else if(fe[J]===re[1]&&(Y--,Y<0))return J;return-1}function S(fe){fe&&fe.sanitize&&!fe.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var A={escape:s,unescape:n,edit:b,cleanUrl:x,resolveUrl:c,noopTest:v,merge:f,splitCells:T,rtrim:L,findClosingBracket:P,checkSanitizeDeprecation:S},H=W.defaults,D=A.rtrim,K=A.splitCells,V=A.escape,oe=A.findClosingBracket;function le(fe,re,ae){var Y=re.href,J=re.title?V(re.title):null,Z=fe[1].replace(/\\([\[\]])/g,"$1");return fe[0].charAt(0)!=="!"?{type:"link",raw:ae,href:Y,title:J,text:Z}:{type:"image",raw:ae,href:Y,title:J,text:V(Z)}}function Ce(fe,re){var ae=fe.match(/^(\s+)(?:```)/);if(ae===null)return re;var Y=ae[1];return re.split(`
|
|
`).map(function(J){var Z=J.match(/^\s+/);if(Z===null)return J;var se=Z[0];return se.length>=Y.length?J.slice(Y.length):J}).join(`
|
|
`)}var xe=function(){function fe(ae){this.options=ae||H}var re=fe.prototype;return re.space=function(Y){var J=this.rules.block.newline.exec(Y);if(J)return J[0].length>1?{type:"space",raw:J[0]}:{raw:`
|
|
`}},re.code=function(Y,J){var Z=this.rules.block.code.exec(Y);if(Z){var se=J[J.length-1];if(se&&se.type==="paragraph")return{raw:Z[0],text:Z[0].trimRight()};var Ee=Z[0].replace(/^ {4}/gm,"");return{type:"code",raw:Z[0],codeBlockStyle:"indented",text:this.options.pedantic?Ee:D(Ee,`
|
|
`)}}},re.fences=function(Y){var J=this.rules.block.fences.exec(Y);if(J){var Z=J[0],se=Ce(Z,J[3]||"");return{type:"code",raw:Z,lang:J[2]?J[2].trim():J[2],text:se}}},re.heading=function(Y){var J=this.rules.block.heading.exec(Y);if(J)return{type:"heading",raw:J[0],depth:J[1].length,text:J[2]}},re.nptable=function(Y){var J=this.rules.block.nptable.exec(Y);if(J){var Z={type:"table",header:K(J[1].replace(/^ *| *\| *$/g,"")),align:J[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:J[3]?J[3].replace(/\n$/,"").split(`
|
|
`):[],raw:J[0]};if(Z.header.length===Z.align.length){var se=Z.align.length,Ee;for(Ee=0;Ee<se;Ee++)/^ *-+: *$/.test(Z.align[Ee])?Z.align[Ee]="right":/^ *:-+: *$/.test(Z.align[Ee])?Z.align[Ee]="center":/^ *:-+ *$/.test(Z.align[Ee])?Z.align[Ee]="left":Z.align[Ee]=null;for(se=Z.cells.length,Ee=0;Ee<se;Ee++)Z.cells[Ee]=K(Z.cells[Ee],Z.header.length);return Z}}},re.hr=function(Y){var J=this.rules.block.hr.exec(Y);if(J)return{type:"hr",raw:J[0]}},re.blockquote=function(Y){var J=this.rules.block.blockquote.exec(Y);if(J){var Z=J[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:J[0],text:Z}}},re.list=function(Y){var J=this.rules.block.list.exec(Y);if(J){for(var Z=J[0],se=J[2],Ee=se.length>1,De=se[se.length-1]===")",Ke={type:"list",raw:Z,ordered:Ee,start:Ee?+se.slice(0,-1):"",loose:!1,items:[]},ut=J[0].match(this.rules.block.item),ct=!1,Oe,ot,st,Qe,_t,Tt,Et,Rt=ut.length,bt=0;bt<Rt;bt++)Oe=ut[bt],Z=Oe,ot=Oe.length,Oe=Oe.replace(/^ *([*+-]|\d+[.)]) */,""),~Oe.indexOf(`
|
|
`)&&(ot-=Oe.length,Oe=this.options.pedantic?Oe.replace(/^ {1,4}/gm,""):Oe.replace(new RegExp("^ {1,"+ot+"}","gm"),"")),bt!==Rt-1&&(st=this.rules.block.bullet.exec(ut[bt+1])[0],(Ee?st.length===1||!De&&st[st.length-1]===")":st.length>1||this.options.smartLists&&st!==se)&&(Qe=ut.slice(bt+1).join(`
|
|
`),Ke.raw=Ke.raw.substring(0,Ke.raw.length-Qe.length),bt=Rt-1)),_t=ct||/\n\n(?!\s*$)/.test(Oe),bt!==Rt-1&&(ct=Oe.charAt(Oe.length-1)===`
|
|
`,_t||(_t=ct)),_t&&(Ke.loose=!0),Tt=/^\[[ xX]\] /.test(Oe),Et=void 0,Tt&&(Et=Oe[1]!==" ",Oe=Oe.replace(/^\[[ xX]\] +/,"")),Ke.items.push({type:"list_item",raw:Z,task:Tt,checked:Et,loose:_t,text:Oe});return Ke}},re.html=function(Y){var J=this.rules.block.html.exec(Y);if(J)return{type:this.options.sanitize?"paragraph":"html",raw:J[0],pre:!this.options.sanitizer&&(J[1]==="pre"||J[1]==="script"||J[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(J[0]):V(J[0]):J[0]}},re.def=function(Y){var J=this.rules.block.def.exec(Y);if(J){J[3]&&(J[3]=J[3].substring(1,J[3].length-1));var Z=J[1].toLowerCase().replace(/\s+/g," ");return{tag:Z,raw:J[0],href:J[2],title:J[3]}}},re.table=function(Y){var J=this.rules.block.table.exec(Y);if(J){var Z={type:"table",header:K(J[1].replace(/^ *| *\| *$/g,"")),align:J[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:J[3]?J[3].replace(/\n$/,"").split(`
|
|
`):[]};if(Z.header.length===Z.align.length){Z.raw=J[0];var se=Z.align.length,Ee;for(Ee=0;Ee<se;Ee++)/^ *-+: *$/.test(Z.align[Ee])?Z.align[Ee]="right":/^ *:-+: *$/.test(Z.align[Ee])?Z.align[Ee]="center":/^ *:-+ *$/.test(Z.align[Ee])?Z.align[Ee]="left":Z.align[Ee]=null;for(se=Z.cells.length,Ee=0;Ee<se;Ee++)Z.cells[Ee]=K(Z.cells[Ee].replace(/^ *\| *| *\| *$/g,""),Z.header.length);return Z}}},re.lheading=function(Y){var J=this.rules.block.lheading.exec(Y);if(J)return{type:"heading",raw:J[0],depth:J[2].charAt(0)==="="?1:2,text:J[1]}},re.paragraph=function(Y){var J=this.rules.block.paragraph.exec(Y);if(J)return{type:"paragraph",raw:J[0],text:J[1].charAt(J[1].length-1)===`
|
|
`?J[1].slice(0,-1):J[1]}},re.text=function(Y,J){var Z=this.rules.block.text.exec(Y);if(Z){var se=J[J.length-1];return se&&se.type==="text"?{raw:Z[0],text:Z[0]}:{type:"text",raw:Z[0],text:Z[0]}}},re.escape=function(Y){var J=this.rules.inline.escape.exec(Y);if(J)return{type:"escape",raw:J[0],text:V(J[1])}},re.tag=function(Y,J,Z){var se=this.rules.inline.tag.exec(Y);if(se)return!J&&/^<a /i.test(se[0])?J=!0:J&&/^<\/a>/i.test(se[0])&&(J=!1),!Z&&/^<(pre|code|kbd|script)(\s|>)/i.test(se[0])?Z=!0:Z&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(se[0])&&(Z=!1),{type:this.options.sanitize?"text":"html",raw:se[0],inLink:J,inRawBlock:Z,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):V(se[0]):se[0]}},re.link=function(Y){var J=this.rules.inline.link.exec(Y);if(J){var Z=oe(J[2],"()");if(Z>-1){var se=J[0].indexOf("!")===0?5:4,Ee=se+J[1].length+Z;J[2]=J[2].substring(0,Z),J[0]=J[0].substring(0,Ee).trim(),J[3]=""}var De=J[2],Ke="";if(this.options.pedantic){var ut=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(De);ut?(De=ut[1],Ke=ut[3]):Ke=""}else Ke=J[3]?J[3].slice(1,-1):"";De=De.trim().replace(/^<([\s\S]*)>$/,"$1");var ct=le(J,{href:De&&De.replace(this.rules.inline._escapes,"$1"),title:Ke&&Ke.replace(this.rules.inline._escapes,"$1")},J[0]);return ct}},re.reflink=function(Y,J){var Z;if((Z=this.rules.inline.reflink.exec(Y))||(Z=this.rules.inline.nolink.exec(Y))){var se=(Z[2]||Z[1]).replace(/\s+/g," ");if(se=J[se.toLowerCase()],!se||!se.href){var Ee=Z[0].charAt(0);return{type:"text",raw:Ee,text:Ee}}var De=le(Z,se,Z[0]);return De}},re.strong=function(Y,J,Z){Z===void 0&&(Z="");var se=this.rules.inline.strong.start.exec(Y);if(se&&(!se[1]||se[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){J=J.slice(-1*Y.length);var Ee=se[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ee.lastIndex=0;for(var De;(se=Ee.exec(J))!=null;)if(De=this.rules.inline.strong.middle.exec(J.slice(0,se.index+3)),De)return{type:"strong",raw:Y.slice(0,De[0].length),text:Y.slice(2,De[0].length-2)}}},re.em=function(Y,J,Z){Z===void 0&&(Z="");var se=this.rules.inline.em.start.exec(Y);if(se&&(!se[1]||se[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){J=J.slice(-1*Y.length);var Ee=se[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ee.lastIndex=0;for(var De;(se=Ee.exec(J))!=null;)if(De=this.rules.inline.em.middle.exec(J.slice(0,se.index+2)),De)return{type:"em",raw:Y.slice(0,De[0].length),text:Y.slice(1,De[0].length-1)}}},re.codespan=function(Y){var J=this.rules.inline.code.exec(Y);if(J){var Z=J[2].replace(/\n/g," "),se=/[^ ]/.test(Z),Ee=Z.startsWith(" ")&&Z.endsWith(" ");return se&&Ee&&(Z=Z.substring(1,Z.length-1)),Z=V(Z,!0),{type:"codespan",raw:J[0],text:Z}}},re.br=function(Y){var J=this.rules.inline.br.exec(Y);if(J)return{type:"br",raw:J[0]}},re.del=function(Y){var J=this.rules.inline.del.exec(Y);if(J)return{type:"del",raw:J[0],text:J[1]}},re.autolink=function(Y,J){var Z=this.rules.inline.autolink.exec(Y);if(Z){var se,Ee;return Z[2]==="@"?(se=V(this.options.mangle?J(Z[1]):Z[1]),Ee="mailto:"+se):(se=V(Z[1]),Ee=se),{type:"link",raw:Z[0],text:se,href:Ee,tokens:[{type:"text",raw:se,text:se}]}}},re.url=function(Y,J){var Z;if(Z=this.rules.inline.url.exec(Y)){var se,Ee;if(Z[2]==="@")se=V(this.options.mangle?J(Z[0]):Z[0]),Ee="mailto:"+se;else{var De;do De=Z[0],Z[0]=this.rules.inline._backpedal.exec(Z[0])[0];while(De!==Z[0]);se=V(Z[0]),Z[1]==="www."?Ee="http://"+se:Ee=se}return{type:"link",raw:Z[0],text:se,href:Ee,tokens:[{type:"text",raw:se,text:se}]}}},re.inlineText=function(Y,J,Z){var se=this.rules.inline.text.exec(Y);if(se){var Ee;return J?Ee=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):V(se[0]):se[0]:Ee=V(this.options.smartypants?Z(se[0]):se[0]),{type:"text",raw:se[0],text:Ee}}},fe}(),ie=A.noopTest,Se=A.edit,Pe=A.merge,de={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ie,table:ie,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};de._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,de._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,de.def=Se(de.def).replace("label",de._label).replace("title",de._title).getRegex(),de.bullet=/(?:[*+-]|\d{1,9}[.)])/,de.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,de.item=Se(de.item,"gm").replace(/bull/g,de.bullet).getRegex(),de.list=Se(de.list).replace(/bull/g,de.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+de.def.source+")").getRegex(),de._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",de._comment=/<!--(?!-?>)[\s\S]*?-->/,de.html=Se(de.html,"i").replace("comment",de._comment).replace("tag",de._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de.paragraph=Se(de._paragraph).replace("hr",de.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",de._tag).getRegex(),de.blockquote=Se(de.blockquote).replace("paragraph",de.paragraph).getRegex(),de.normal=Pe({},de),de.gfm=Pe({},de.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*|$)"}),de.gfm.nptable=Se(de.gfm.nptable).replace("hr",de.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",de._tag).getRegex(),de.gfm.table=Se(de.gfm.table).replace("hr",de.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",de._tag).getRegex(),de.pedantic=Pe({},de.normal,{html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",de._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ie,paragraph:Se(de.normal._paragraph).replace("hr",de.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",de.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ie,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ie,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};$._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",$.punctuation=Se($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",$._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",$.em.start=Se($.em.start).replace(/punctuation/g,$._punctuation).getRegex(),$.em.middle=Se($.em.middle).replace(/punctuation/g,$._punctuation).replace(/overlapSkip/g,$._overlapSkip).getRegex(),$.em.endAst=Se($.em.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.em.endUnd=Se($.em.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.start=Se($.strong.start).replace(/punctuation/g,$._punctuation).getRegex(),$.strong.middle=Se($.strong.middle).replace(/punctuation/g,$._punctuation).replace(/blockSkip/g,$._blockSkip).getRegex(),$.strong.endAst=Se($.strong.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.endUnd=Se($.strong.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=Se($._blockSkip,"g").getRegex(),$.overlapSkip=Se($._overlapSkip,"g").getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._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])?)+(?![-_])/,$.autolink=Se($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=Se($.tag).replace("comment",de._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=Se($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=Se($.reflink).replace("label",$._label).getRegex(),$.reflinkSearch=Se($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal=Pe({},$),$.pedantic=Pe({},$.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",$._label).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()}),$.gfm=Pe({},$.normal,{escape:Se($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),$.gfm.url=Se($.gfm.url,"i").replace("email",$.gfm._extended_email).getRegex(),$.breaks=Pe({},$.gfm,{br:Se($.br).replace("{2,}","*").getRegex(),text:Se($.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ne={block:de,inline:$},lt=W.defaults,it=Ne.block,Je=Ne.inline;function at(fe){return fe.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Ue(fe){var re="",ae,Y,J=fe.length;for(ae=0;ae<J;ae++)Y=fe.charCodeAt(ae),Math.random()>.5&&(Y="x"+Y.toString(16)),re+="&#"+Y+";";return re}var ze=function(){function fe(ae){this.tokens=[],this.tokens.links=Object.create(null),this.options=ae||lt,this.options.tokenizer=this.options.tokenizer||new xe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Y={block:it.normal,inline:Je.normal};this.options.pedantic?(Y.block=it.pedantic,Y.inline=Je.pedantic):this.options.gfm&&(Y.block=it.gfm,this.options.breaks?Y.inline=Je.breaks:Y.inline=Je.gfm),this.tokenizer.rules=Y}fe.lex=function(Y,J){var Z=new fe(J);return Z.lex(Y)};var re=fe.prototype;return re.lex=function(Y){return Y=Y.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(Y,this.tokens,!0),this.inline(this.tokens),this.tokens},re.blockTokens=function(Y,J,Z){J===void 0&&(J=[]),Z===void 0&&(Z=!0),Y=Y.replace(/^ +$/gm,"");for(var se,Ee,De,Ke;Y;){if(se=this.tokenizer.space(Y)){Y=Y.substring(se.raw.length),se.type&&J.push(se);continue}if(se=this.tokenizer.code(Y,J)){Y=Y.substring(se.raw.length),se.type?J.push(se):(Ke=J[J.length-1],Ke.raw+=`
|
|
`+se.raw,Ke.text+=`
|
|
`+se.text);continue}if(se=this.tokenizer.fences(Y)){Y=Y.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.heading(Y)){Y=Y.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.nptable(Y)){Y=Y.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.hr(Y)){Y=Y.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.blockquote(Y)){Y=Y.substring(se.raw.length),se.tokens=this.blockTokens(se.text,[],Z),J.push(se);continue}if(se=this.tokenizer.list(Y)){for(Y=Y.substring(se.raw.length),De=se.items.length,Ee=0;Ee<De;Ee++)se.items[Ee].tokens=this.blockTokens(se.items[Ee].text,[],!1);J.push(se);continue}if(se=this.tokenizer.html(Y)){Y=Y.substring(se.raw.length),J.push(se);continue}if(Z&&(se=this.tokenizer.def(Y))){Y=Y.substring(se.raw.length),this.tokens.links[se.tag]||(this.tokens.links[se.tag]={href:se.href,title:se.title});continue}if(se=this.tokenizer.table(Y)){Y=Y.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.lheading(Y)){Y=Y.substring(se.raw.length),J.push(se);continue}if(Z&&(se=this.tokenizer.paragraph(Y))){Y=Y.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.text(Y,J)){Y=Y.substring(se.raw.length),se.type?J.push(se):(Ke=J[J.length-1],Ke.raw+=`
|
|
`+se.raw,Ke.text+=`
|
|
`+se.text);continue}if(Y){var ut="Infinite loop on byte: "+Y.charCodeAt(0);if(this.options.silent){console.error(ut);break}else throw new Error(ut)}}return J},re.inline=function(Y){var J,Z,se,Ee,De,Ke,ut=Y.length;for(J=0;J<ut;J++){Ke=Y[J];switch(Ke.type){case"paragraph":case"text":case"heading":{Ke.tokens=[],this.inlineTokens(Ke.text,Ke.tokens);break}case"table":{for(Ke.tokens={header:[],cells:[]},Ee=Ke.header.length,Z=0;Z<Ee;Z++)Ke.tokens.header[Z]=[],this.inlineTokens(Ke.header[Z],Ke.tokens.header[Z]);for(Ee=Ke.cells.length,Z=0;Z<Ee;Z++)for(De=Ke.cells[Z],Ke.tokens.cells[Z]=[],se=0;se<De.length;se++)Ke.tokens.cells[Z][se]=[],this.inlineTokens(De[se],Ke.tokens.cells[Z][se]);break}case"blockquote":{this.inline(Ke.tokens);break}case"list":{for(Ee=Ke.items.length,Z=0;Z<Ee;Z++)this.inline(Ke.items[Z].tokens);break}}}return Y},re.inlineTokens=function(Y,J,Z,se,Ee){J===void 0&&(J=[]),Z===void 0&&(Z=!1),se===void 0&&(se=!1),Ee===void 0&&(Ee="");var De,Ke=Y,ut;if(this.tokens.links){var ct=Object.keys(this.tokens.links);if(ct.length>0)for(;(ut=this.tokenizer.rules.inline.reflinkSearch.exec(Ke))!=null;)ct.includes(ut[0].slice(ut[0].lastIndexOf("[")+1,-1))&&(Ke=Ke.slice(0,ut.index)+"["+"a".repeat(ut[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ut=this.tokenizer.rules.inline.blockSkip.exec(Ke))!=null;)Ke=Ke.slice(0,ut.index)+"["+"a".repeat(ut[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Y;){if(De=this.tokenizer.escape(Y)){Y=Y.substring(De.raw.length),J.push(De);continue}if(De=this.tokenizer.tag(Y,Z,se)){Y=Y.substring(De.raw.length),Z=De.inLink,se=De.inRawBlock,J.push(De);continue}if(De=this.tokenizer.link(Y)){Y=Y.substring(De.raw.length),De.type==="link"&&(De.tokens=this.inlineTokens(De.text,[],!0,se)),J.push(De);continue}if(De=this.tokenizer.reflink(Y,this.tokens.links)){Y=Y.substring(De.raw.length),De.type==="link"&&(De.tokens=this.inlineTokens(De.text,[],!0,se)),J.push(De);continue}if(De=this.tokenizer.strong(Y,Ke,Ee)){Y=Y.substring(De.raw.length),De.tokens=this.inlineTokens(De.text,[],Z,se),J.push(De);continue}if(De=this.tokenizer.em(Y,Ke,Ee)){Y=Y.substring(De.raw.length),De.tokens=this.inlineTokens(De.text,[],Z,se),J.push(De);continue}if(De=this.tokenizer.codespan(Y)){Y=Y.substring(De.raw.length),J.push(De);continue}if(De=this.tokenizer.br(Y)){Y=Y.substring(De.raw.length),J.push(De);continue}if(De=this.tokenizer.del(Y)){Y=Y.substring(De.raw.length),De.tokens=this.inlineTokens(De.text,[],Z,se),J.push(De);continue}if(De=this.tokenizer.autolink(Y,Ue)){Y=Y.substring(De.raw.length),J.push(De);continue}if(!Z&&(De=this.tokenizer.url(Y,Ue))){Y=Y.substring(De.raw.length),J.push(De);continue}if(De=this.tokenizer.inlineText(Y,se,at)){Y=Y.substring(De.raw.length),Ee=De.raw.slice(-1),J.push(De);continue}if(Y){var Oe="Infinite loop on byte: "+Y.charCodeAt(0);if(this.options.silent){console.error(Oe);break}else throw new Error(Oe)}}return J},M(fe,null,[{key:"rules",get:function(){return{block:it,inline:Je}}}]),fe}(),et=W.defaults,ee=A.cleanUrl,ge=A.escape,_e=function(){function fe(ae){this.options=ae||et}var re=fe.prototype;return re.code=function(Y,J,Z){var se=(J||"").match(/\S*/)[0];if(this.options.highlight){var Ee=this.options.highlight(Y,se);Ee!=null&&Ee!==Y&&(Z=!0,Y=Ee)}return se?'<pre><code class="'+this.options.langPrefix+ge(se,!0)+'">'+(Z?Y:ge(Y,!0))+`</code></pre>
|
|
`:"<pre><code>"+(Z?Y:ge(Y,!0))+`</code></pre>
|
|
`},re.blockquote=function(Y){return`<blockquote>
|
|
`+Y+`</blockquote>
|
|
`},re.html=function(Y){return Y},re.heading=function(Y,J,Z,se){return this.options.headerIds?"<h"+J+' id="'+this.options.headerPrefix+se.slug(Z)+'">'+Y+"</h"+J+`>
|
|
`:"<h"+J+">"+Y+"</h"+J+`>
|
|
`},re.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},re.list=function(Y,J,Z){var se=J?"ol":"ul",Ee=J&&Z!==1?' start="'+Z+'"':"";return"<"+se+Ee+`>
|
|
`+Y+"</"+se+`>
|
|
`},re.listitem=function(Y){return"<li>"+Y+`</li>
|
|
`},re.checkbox=function(Y){return"<input "+(Y?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},re.paragraph=function(Y){return"<p>"+Y+`</p>
|
|
`},re.table=function(Y,J){return J&&(J="<tbody>"+J+"</tbody>"),`<table>
|
|
<thead>
|
|
`+Y+`</thead>
|
|
`+J+`</table>
|
|
`},re.tablerow=function(Y){return`<tr>
|
|
`+Y+`</tr>
|
|
`},re.tablecell=function(Y,J){var Z=J.header?"th":"td",se=J.align?"<"+Z+' align="'+J.align+'">':"<"+Z+">";return se+Y+"</"+Z+`>
|
|
`},re.strong=function(Y){return"<strong>"+Y+"</strong>"},re.em=function(Y){return"<em>"+Y+"</em>"},re.codespan=function(Y){return"<code>"+Y+"</code>"},re.br=function(){return this.options.xhtml?"<br/>":"<br>"},re.del=function(Y){return"<del>"+Y+"</del>"},re.link=function(Y,J,Z){if(Y=ee(this.options.sanitize,this.options.baseUrl,Y),Y===null)return Z;var se='<a href="'+ge(Y)+'"';return J&&(se+=' title="'+J+'"'),se+=">"+Z+"</a>",se},re.image=function(Y,J,Z){if(Y=ee(this.options.sanitize,this.options.baseUrl,Y),Y===null)return Z;var se='<img src="'+Y+'" alt="'+Z+'"';return J&&(se+=' title="'+J+'"'),se+=this.options.xhtml?"/>":">",se},re.text=function(Y){return Y},fe}(),we=function(){function fe(){}var re=fe.prototype;return re.strong=function(Y){return Y},re.em=function(Y){return Y},re.codespan=function(Y){return Y},re.del=function(Y){return Y},re.html=function(Y){return Y},re.text=function(Y){return Y},re.link=function(Y,J,Z){return""+Z},re.image=function(Y,J,Z){return""+Z},re.br=function(){return""},fe}(),Ve=function(){function fe(){this.seen={}}var re=fe.prototype;return re.slug=function(Y){var J=Y.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(J)){var Z=J;do this.seen[Z]++,J=Z+"-"+this.seen[Z];while(this.seen.hasOwnProperty(J))}return this.seen[J]=0,J},fe}(),Ze=W.defaults,rt=A.unescape,$e=function(){function fe(ae){this.options=ae||Ze,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new we,this.slugger=new Ve}fe.parse=function(Y,J){var Z=new fe(J);return Z.parse(Y)};var re=fe.prototype;return re.parse=function(Y,J){J===void 0&&(J=!0);var Z="",se,Ee,De,Ke,ut,ct,Oe,ot,st,Qe,_t,Tt,Et,Rt,bt,xt,Ot,qe,Bt=Y.length;for(se=0;se<Bt;se++){Qe=Y[se];switch(Qe.type){case"space":continue;case"hr":{Z+=this.renderer.hr();continue}case"heading":{Z+=this.renderer.heading(this.parseInline(Qe.tokens),Qe.depth,rt(this.parseInline(Qe.tokens,this.textRenderer)),this.slugger);continue}case"code":{Z+=this.renderer.code(Qe.text,Qe.lang,Qe.escaped);continue}case"table":{for(ot="",Oe="",Ke=Qe.header.length,Ee=0;Ee<Ke;Ee++)Oe+=this.renderer.tablecell(this.parseInline(Qe.tokens.header[Ee]),{header:!0,align:Qe.align[Ee]});for(ot+=this.renderer.tablerow(Oe),st="",Ke=Qe.cells.length,Ee=0;Ee<Ke;Ee++){for(ct=Qe.tokens.cells[Ee],Oe="",ut=ct.length,De=0;De<ut;De++)Oe+=this.renderer.tablecell(this.parseInline(ct[De]),{header:!1,align:Qe.align[De]});st+=this.renderer.tablerow(Oe)}Z+=this.renderer.table(ot,st);continue}case"blockquote":{st=this.parse(Qe.tokens),Z+=this.renderer.blockquote(st);continue}case"list":{for(_t=Qe.ordered,Tt=Qe.start,Et=Qe.loose,Ke=Qe.items.length,st="",Ee=0;Ee<Ke;Ee++)bt=Qe.items[Ee],xt=bt.checked,Ot=bt.task,Rt="",bt.task&&(qe=this.renderer.checkbox(xt),Et?bt.tokens.length>0&&bt.tokens[0].type==="text"?(bt.tokens[0].text=qe+" "+bt.tokens[0].text,bt.tokens[0].tokens&&bt.tokens[0].tokens.length>0&&bt.tokens[0].tokens[0].type==="text"&&(bt.tokens[0].tokens[0].text=qe+" "+bt.tokens[0].tokens[0].text)):bt.tokens.unshift({type:"text",text:qe}):Rt+=qe),Rt+=this.parse(bt.tokens,Et),st+=this.renderer.listitem(Rt,Ot,xt);Z+=this.renderer.list(st,_t,Tt);continue}case"html":{Z+=this.renderer.html(Qe.text);continue}case"paragraph":{Z+=this.renderer.paragraph(this.parseInline(Qe.tokens));continue}case"text":{for(st=Qe.tokens?this.parseInline(Qe.tokens):Qe.text;se+1<Bt&&Y[se+1].type==="text";)Qe=Y[++se],st+=`
|
|
`+(Qe.tokens?this.parseInline(Qe.tokens):Qe.text);Z+=J?this.renderer.paragraph(st):st;continue}default:{var gt='Token with "'+Qe.type+'" type was not found.';if(this.options.silent){console.error(gt);return}else throw new Error(gt)}}}return Z},re.parseInline=function(Y,J){J=J||this.renderer;var Z="",se,Ee,De=Y.length;for(se=0;se<De;se++){Ee=Y[se];switch(Ee.type){case"escape":{Z+=J.text(Ee.text);break}case"html":{Z+=J.html(Ee.text);break}case"link":{Z+=J.link(Ee.href,Ee.title,this.parseInline(Ee.tokens,J));break}case"image":{Z+=J.image(Ee.href,Ee.title,Ee.text);break}case"strong":{Z+=J.strong(this.parseInline(Ee.tokens,J));break}case"em":{Z+=J.em(this.parseInline(Ee.tokens,J));break}case"codespan":{Z+=J.codespan(Ee.text);break}case"br":{Z+=J.br();break}case"del":{Z+=J.del(this.parseInline(Ee.tokens,J));break}case"text":{Z+=J.text(Ee.text);break}default:{var Ke='Token with "'+Ee.type+'" type was not found.';if(this.options.silent){console.error(Ke);return}else throw new Error(Ke)}}}return Z},fe}(),ft=A.merge,ht=A.checkSanitizeDeprecation,ye=A.escape,Ae=W.getDefaults,ke=W.changeDefaults,He=W.defaults;function Ie(fe,re,ae){if(typeof fe=="undefined"||fe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof fe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(fe)+", string expected");if(typeof re=="function"&&(ae=re,re=null),re=ft({},Ie.defaults,re||{}),ht(re),ae){var Y=re.highlight,J;try{J=ze.lex(fe,re)}catch(De){return ae(De)}var Z=function(Ke){var ut;if(!Ke)try{ut=$e.parse(J,re)}catch(ct){Ke=ct}return re.highlight=Y,Ke?ae(Ke):ae(null,ut)};if(!Y||Y.length<3)return Z();if(delete re.highlight,!J.length)return Z();var se=0;Ie.walkTokens(J,function(De){De.type==="code"&&(se++,setTimeout(function(){Y(De.text,De.lang,function(Ke,ut){if(Ke)return Z(Ke);ut!=null&&ut!==De.text&&(De.text=ut,De.escaped=!0),se--,se===0&&Z()})},0))}),se===0&&Z();return}try{var Ee=ze.lex(fe,re);return re.walkTokens&&Ie.walkTokens(Ee,re.walkTokens),$e.parse(Ee,re)}catch(De){if(De.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,re.silent)return"<p>An error occurred:</p><pre>"+ye(De.message+"",!0)+"</pre>";throw De}}Ie.options=Ie.setOptions=function(fe){return ft(Ie.defaults,fe),ke(Ie.defaults),Ie},Ie.getDefaults=Ae,Ie.defaults=He,Ie.use=function(fe){var re=ft({},fe);if(fe.renderer&&function(){var Y=Ie.defaults.renderer||new _e,J=function(Ee){var De=Y[Ee];Y[Ee]=function(){for(var Ke=arguments.length,ut=new Array(Ke),ct=0;ct<Ke;ct++)ut[ct]=arguments[ct];var Oe=fe.renderer[Ee].apply(Y,ut);return Oe===!1&&(Oe=De.apply(Y,ut)),Oe}};for(var Z in fe.renderer)J(Z);re.renderer=Y}(),fe.tokenizer&&function(){var Y=Ie.defaults.tokenizer||new xe,J=function(Ee){var De=Y[Ee];Y[Ee]=function(){for(var Ke=arguments.length,ut=new Array(Ke),ct=0;ct<Ke;ct++)ut[ct]=arguments[ct];var Oe=fe.tokenizer[Ee].apply(Y,ut);return Oe===!1&&(Oe=De.apply(Y,ut)),Oe}};for(var Z in fe.tokenizer)J(Z);re.tokenizer=Y}(),fe.walkTokens){var ae=Ie.defaults.walkTokens;re.walkTokens=function(Y){fe.walkTokens(Y),ae&&ae(Y)}}Ie.setOptions(re)},Ie.walkTokens=function(fe,re){for(var ae=C(fe),Y;!(Y=ae()).done;){var J=Y.value;re(J);switch(J.type){case"table":{for(var Z=C(J.tokens.header),se;!(se=Z()).done;){var Ee=se.value;Ie.walkTokens(Ee,re)}for(var De=C(J.tokens.cells),Ke;!(Ke=De()).done;)for(var ut=Ke.value,ct=C(ut),Oe;!(Oe=ct()).done;){var ot=Oe.value;Ie.walkTokens(ot,re)}break}case"list":{Ie.walkTokens(J.items,re);break}default:J.tokens&&Ie.walkTokens(J.tokens,re)}}},Ie.Parser=$e,Ie.parser=$e.parse,Ie.Renderer=_e,Ie.TextRenderer=we,Ie.Lexer=ze,Ie.lexer=ze.lex,Ie.Tokenizer=xe,Ie.Slugger=Ve,Ie.parse=Ie;var Le=Ie;return Le})},FOrL:function(je,ne,N){je.exports=N.p+"static/nodata.a6b3f948.png"},FWmy:function(je,ne,N){"use strict";N.d(ne,"a",function(){return Q});function Q(M,I){if(!M)throw new Error(I?`Assertion failed (${I})`:"Assertion Failed")}},IBYe:function(je,ne,N){"use strict";function Q(M){return null}ne.a=Q},JAbv:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFx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HrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},JYp7:function(je,ne,N){"use strict";N.d(ne,"a",function(){return Q});var Q;(function(M){function I(t){return t&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"}M.is=I;const j=Object.freeze([]);function C(){return j}M.empty=C;function*R(t){yield t}M.single=R;function W(t){return t||j}M.from=W;function k(t){return!t||t[Symbol.iterator]().next().done===!0}M.isEmpty=k;function e(t){return t[Symbol.iterator]().next().value}M.first=e;function O(t,b){for(const y of t)if(b(y))return!0;return!1}M.some=O;function g(t,b){for(const y of t)if(b(y))return y;return}M.find=g;function*p(t,b){for(const y of t)b(y)&&(yield y)}M.filter=p;function*u(t,b){let y=0;for(const m of t)yield b(m,y++)}M.map=u;function*a(...t){for(const b of t)for(const y of b)yield y}M.concat=a;function*r(t){for(const b of t)for(const y of b)yield y}M.concatNested=r;function o(t,b,y){let m=y;for(const x of t)m=b(m,x);return m}M.reduce=o;function*s(t,b,y=t.length){for(b<0&&(b+=t.length),y<0?y+=t.length:y>t.length&&(y=t.length);b<y;b++)yield t[b]}M.slice=s;function i(t,b=Number.POSITIVE_INFINITY){const y=[];if(b===0)return[y,t];const m=t[Symbol.iterator]();for(let x=0;x<b;x++){const _=m.next();if(_.done)return[y,M.empty()];y.push(_.value)}return[y,{[Symbol.iterator](){return m}}]}M.consume=i;function n(t,b,y=(m,x)=>m===x){const m=t[Symbol.iterator](),x=b[Symbol.iterator]();for(;;){const _=m.next(),h=x.next();if(_.done!==h.done)return!1;if(_.done)return!0;if(!y(_.value,h.value))return!1}}M.equals=n})(Q||(Q={}))},KOXS:function(je,ne,N){je.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},LdHM:function(je,ne,N){"use strict";N.d(ne,"b",function(){return t}),N.d(ne,"a",function(){return y});var Q=N("1OyB"),M=N("vuIU"),I=N("Ji7U"),j=N("LK+K"),C=N("q1tI"),R=N("rePB"),W=N("Ff2n"),k=N("ODXe"),e=N("4IlW"),O=N("bX4T"),g=N("YrtM"),p=N("TSYQ"),u=N.n(p),a=N("+nKL"),r=N("8OUc"),o=function(K,V){var oe=K.prefixCls,le=K.id,Ce=K.flattenOptions,xe=K.childrenAsData,ie=K.values,Se=K.searchValue,Pe=K.multiple,de=K.defaultActiveFirstOption,$=K.height,Ne=K.itemHeight,lt=K.notFoundContent,it=K.open,Je=K.menuItemSelectedIcon,at=K.virtual,Ue=K.onSelect,ze=K.onToggleOpen,et=K.onActiveValue,ee=K.onScroll,ge=K.onMouseEnter,_e="".concat(oe,"-item"),we=Object(g.a)(function(){return Ce},[it,Ce],function(Le,fe){return fe[0]&&Le[1]!==fe[1]}),Ve=C.useRef(null),Ze=function(fe){fe.preventDefault()},rt=function(fe){Ve.current&&Ve.current.scrollTo({index:fe})},$e=function(fe){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=we.length,Y=0;Y<ae;Y+=1){var J=(fe+Y*re+ae)%ae,Z=we[J],se=Z.group,Ee=Z.data;if(!se&&!Ee.disabled)return J}return-1},ft=C.useState(function(){return $e(0)}),ht=Object(k.a)(ft,2),ye=ht[0],Ae=ht[1],ke=function(fe){Ae(fe);var re=we[fe];if(!re){et(null,-1);return}et(re.data.value,fe)};C.useEffect(function(){ke(de!==!1?$e(0):-1)},[we.length,Se]),C.useEffect(function(){var Le=setTimeout(function(){if(!Pe&&it&&ie.size===1){var fe=Array.from(ie)[0],re=we.findIndex(function(ae){var Y=ae.data;return Y.value===fe});ke(re),rt(re)}});return function(){return clearTimeout(Le)}},[it]);var He=function(fe){fe!==void 0&&Ue(fe,{selected:!ie.has(fe)}),Pe||ze(!1)};if(C.useImperativeHandle(V,function(){return{onKeyDown:function(fe){var re=fe.which;switch(re){case e.a.UP:case e.a.DOWN:{var ae=0;if(re===e.a.UP?ae=-1:re===e.a.DOWN&&(ae=1),ae!==0){var Y=$e(ye+ae,ae);rt(Y),ke(Y)}break}case e.a.ENTER:{var J=we[ye];J&&!J.data.disabled?He(J.data.value):He(void 0),it&&fe.preventDefault();break}case e.a.ESC:ze(!1)}},onKeyUp:function(){},scrollTo:function(fe){rt(fe)}}}),we.length===0)return C.createElement("div",{role:"listbox",id:"".concat(le,"_list"),className:"".concat(_e,"-empty"),onMouseDown:Ze},lt);function Ie(Le){var fe=we[Le];if(!fe)return null;var re=fe.data||{},ae=re.value,Y=re.label,J=re.children,Z=Object(O.a)(re,!0),se=xe?J:Y;return fe?C.createElement("div",Object.assign({"aria-label":typeof se=="string"?se:null},Z,{key:Le,role:"option",id:"".concat(le,"_list_").concat(Le),"aria-selected":ie.has(ae)}),ae):null}return C.createElement(C.Fragment,null,C.createElement("div",{role:"listbox",id:"".concat(le,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ie(ye-1),Ie(ye),Ie(ye+1)),C.createElement(a.a,{itemKey:"key",ref:Ve,data:we,height:$,itemHeight:Ne,fullHeight:!1,onMouseDown:Ze,onScroll:ee,virtual:at,onMouseEnter:ge},function(Le,fe){var re,ae=Le.group,Y=Le.groupOption,J=Le.data,Z=J.label,se=J.key;if(ae)return C.createElement("div",{className:u()(_e,"".concat(_e,"-group"))},Z!==void 0?Z:se);var Ee=J.disabled,De=J.value,Ke=J.title,ut=J.children,ct=J.style,Oe=J.className,ot=Object(W.a)(J,["disabled","value","title","children","style","className"]),st=ie.has(De),Qe="".concat(_e,"-option"),_t=u()(_e,Qe,Oe,(re={},Object(R.a)(re,"".concat(Qe,"-grouped"),Y),Object(R.a)(re,"".concat(Qe,"-active"),ye===fe&&!Ee),Object(R.a)(re,"".concat(Qe,"-disabled"),Ee),Object(R.a)(re,"".concat(Qe,"-selected"),st),re)),Tt=xe?ut:Z,Et=!Je||typeof Je=="function"||st;return C.createElement("div",Object.assign({},ot,{"aria-selected":st,className:_t,title:Ke,onMouseMove:function(){if(ye===fe||Ee)return;ke(fe)},onClick:function(){Ee||He(De)},style:ct}),C.createElement("div",{className:"".concat(Qe,"-content")},Tt||De),C.isValidElement(Je)||st,Et&&C.createElement(r.a,{className:"".concat(_e,"-option-state"),customizeIcon:Je,customizeIconProps:{isSelected:st}},st?"\u2713":null))}))},s=C.forwardRef(o);s.displayName="OptionList";var i=s,n=function(){return null};n.isSelectOption=!0;var t=n,b=function(){return null};b.isSelectOptGroup=!0;var y=b,m=N("VTBJ"),x=N("Zm9Q");function _(D){var K=D.key,V=D.props,oe=V.children,le=V.value,Ce=Object(W.a)(V,["children","value"]);return Object(m.a)({key:K,value:le!==void 0?le:K,children:oe},Ce)}function h(D){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(x.a)(D).map(function(V,oe){if(!C.isValidElement(V)||!V.type)return null;var le=V.type.isSelectOptGroup,Ce=V.key,xe=V.props,ie=xe.children,Se=Object(W.a)(xe,["children"]);return K||!le?_(V):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(Ce===null?oe:Ce,"__"),label:Ce},Se),{},{options:h(ie)})}).filter(function(V){return V})}var d=N("2Qr1"),l=N("qNPg"),c=N("U8pU"),v=N("Kwbf"),f=N("WKfj");function T(D){var K=D.mode,V=D.options,oe=D.children,le=D.backfill,Ce=D.allowClear,xe=D.placeholder,ie=D.getInputElement,Se=D.showSearch,Pe=D.onSearch,de=D.defaultOpen,$=D.autoFocus,Ne=D.labelInValue,lt=D.value,it=D.inputValue,Je=D.optionLabelProp,at=K==="multiple"||K==="tags",Ue=Se!==void 0?Se:at||K==="combobox",ze=V||h(oe);if(Object(v.a)(K!=="tags"||ze.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var et=ze.some(function(_e){return _e.options?_e.options.some(function(we){return typeof("value"in we?we.value:we.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(v.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(v.a)(K!=="combobox"||!Je,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(v.a)(K==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(v.a)(K==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(v.b)(K!=="combobox"||!ie||!Ce||!xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Pe&&!Ue&&K!=="combobox"&&K!=="tags"&&Object(v.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(v.b)(!de||$,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),lt!=null){var ee=Object(f.d)(lt);Object(v.a)(!Ne||ee.every(function(_e){return Object(c.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(v.a)(!at||Array.isArray(lt),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var ge=null;Object(x.a)(oe).some(function(_e){if(!C.isValidElement(_e)||!_e.type)return!1;var we=_e.type;if(we.isSelectOption)return!1;if(we.isSelectOptGroup){var Ve=Object(x.a)(_e.props.children).every(function(Ze){return!C.isValidElement(Ze)||!_e.type||Ze.type.isSelectOption?!0:(ge=Ze.type,!1)});return!Ve}return ge=we,!0}),ge&&Object(v.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ge.displayName||ge.name||ge,"`.")),Object(v.a)(it===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=T,P=Object(l.a)({prefixCls:"rc-select",components:{optionList:i},convertChildrenToData:h,flattenOptions:d.d,getLabeledValue:d.e,filterOptions:d.b,isValueDisabled:d.g,findValueOption:d.c,warningProps:L,fillOptionsWithMissingValue:d.a}),S=function(D){Object(I.a)(V,D);var K=Object(j.a)(V);function V(){var oe;return Object(Q.a)(this,V),oe=K.apply(this,arguments),oe.selectRef=C.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(M.a)(V,[{key:"render",value:function(){return C.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),V}(C.Component);S.Option=t,S.OptGroup=y;var A=S,H=ne.c=A},MEgm:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmm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J3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},MI8n:function(je,ne,N){"use strict";N.d(ne,"c",function(){return C}),N.d(ne,"b",function(){return e}),N.d(ne,"e",function(){return O}),N.d(ne,"a",function(){return g}),N.d(ne,"d",function(){return p}),N.d(ne,"f",function(){return u});var Q=N("/cxE"),M=N("pmY6"),I=N("24hK"),j=N("5Y4S"),C;(function(a){a.None=()=>M.a.None;function r(T){return(L,P=null,S)=>{let A=!1,H;return H=T(D=>A?void 0:(H?H.dispose():A=!0,L.call(P,D)),null,S),A&&H.dispose(),H}}a.once=r;function o(T,L){return y((P,S=null,A)=>T(H=>P.call(S,L(H)),null,A))}a.map=o;function s(T,L){return y((P,S=null,A)=>T(H=>{L(H),P.call(S,H)},null,A))}a.forEach=s;function i(T,L){return y((P,S=null,A)=>T(H=>L(H)&&P.call(S,H),null,A))}a.filter=i;function n(T){return T}a.signal=n;function t(...T){return(L,P=null,S)=>Object(M.e)(...T.map(A=>A(H=>L.call(P,H),null,S)))}a.any=t;function b(T,L,P){let S=P;return o(T,A=>(S=L(S,A),S))}a.reduce=b;function y(T){let L;const P=new e({onFirstListenerAdd(){L=T(P.fire,P)},onLastListenerRemove(){L.dispose()}});return P.event}function m(T,L,P=100,S=!1,A){let H,D,K,V=0;const oe=new e({leakWarningThreshold:A,onFirstListenerAdd(){H=T(le=>{V++,D=L(D,le),S&&!K&&(oe.fire(D),D=void 0),clearTimeout(K),K=setTimeout(()=>{const Ce=D;D=void 0,K=void 0,(!S||V>1)&&oe.fire(Ce),V=0},P)})},onLastListenerRemove(){H.dispose()}});return oe.event}a.debounce=m;function x(T,L=(P,S)=>P===S){let P=!0,S;return i(T,A=>{const H=P||!L(A,S);return P=!1,S=A,H})}a.latch=x;function _(T,L){return[a.filter(T,L),a.filter(T,P=>!L(P))]}a.split=_;function h(T,L=!1,P=[]){let S=P.slice(),A=T(K=>{S?S.push(K):D.fire(K)});const H=()=>{S&&S.forEach(K=>D.fire(K)),S=null},D=new e({onFirstListenerAdd(){A||(A=T(K=>D.fire(K)))},onFirstListenerDidAdd(){S&&(L?setTimeout(H):H())},onLastListenerRemove(){A&&A.dispose(),A=null}});return D.event}a.buffer=h;class d{constructor(T){this.event=T}map(T){return new d(o(this.event,T))}forEach(T){return new d(s(this.event,T))}filter(T){return new d(i(this.event,T))}reduce(T,L){return new d(b(this.event,T,L))}latch(){return new d(x(this.event))}debounce(T,L=100,P=!1,S){return new d(m(this.event,T,L,P,S))}on(T,L,P){return this.event(T,L,P)}once(T,L,P){return r(this.event)(T,L,P)}}function l(T){return new d(T)}a.chain=l;function c(T,L,P=S=>S){const S=(...K)=>D.fire(P(...K)),A=()=>T.on(L,S),H=()=>T.removeListener(L,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:H});return D.event}a.fromNodeEventEmitter=c;function v(T,L,P=S=>S){const S=(...K)=>D.fire(P(...K)),A=()=>T.addEventListener(L,S),H=()=>T.removeEventListener(L,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:H});return D.event}a.fromDOMEventEmitter=v;function f(T){return new Promise(L=>r(T)(L))}a.toPromise=f})(C||(C={}));class R{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${R._idPool++}`}start(a){this._stopWatch=new j.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let W=-1;class k{constructor(a,r=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=r,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let r=W;if(typeof this.customThreshold=="number"&&(r=this.customThreshold),r<=0||a<r)return;this._stacks||(this._stacks=new Map);const o=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),s=this._stacks.get(o)||0;if(this._stacks.set(o,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let i,n=0;for(const[t,b]of this._stacks)(!i||n<b)&&(i=t,n=b);console.warn(`[${this.name}] potential listener LEAK detected, having ${a} listeners already. MOST frequent listener (${n}):`),console.warn(i)}return()=>{const i=this._stacks.get(o)||0;this._stacks.set(o,i-1)}}}class e{constructor(a){var r;this._disposed=!1,this._options=a,this._leakageMon=W>0?new k(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(a,r,o)=>{var s;this._listeners||(this._listeners=new I.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const n=this._listeners.push(r?[a,r]:a);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,r);const t=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size),b=Object(M.i)(()=>{if(t&&t(),!this._disposed&&(n(),this._options&&this._options.onLastListenerRemove)){const y=this._listeners&&!this._listeners.isEmpty();y||this._options.onLastListenerRemove(this)}});return o instanceof M.b?o.add(b):Array.isArray(o)&&o.push(b),b}),this._event}fire(a){var r,o;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let s of this._listeners)this._deliveryQueue.push([s,a]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,i]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,i):s[0].call(s[1],i)}catch(n){Object(Q.f)(n)}}(o=this._perfMon)===null||o===void 0||o.stop()}}dispose(){var a,r,o,s,i;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(s=(o=this._options)===null||o===void 0?void 0:o.onLastListenerRemove)===null||s===void 0||s.call(o),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class O extends e{constructor(a){super(a);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class g extends O{constructor(a){var r;super(a);this._delay=(r=a.delay)!==null&&r!==void 0?r:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class p{constructor(){this.buffers=[]}wrapEvent(a){return(r,o,s)=>a(i=>{const n=this.buffers[this.buffers.length-1];n?n.push(()=>r.call(o,i)):r.call(o,i)},void 0,s)}bufferEvents(a){const r=[];this.buffers.push(r);const o=a();return this.buffers.pop(),r.forEach(s=>s()),o}}class u{constructor(){this.listening=!1,this.inputEvent=C.None,this.inputEventListener=M.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(je,ne,N){"use strict";(function(Q,M){N.d(ne,"b",function(){return o}),N.d(ne,"i",function(){return t}),N.d(ne,"f",function(){return b}),N.d(ne,"d",function(){return y}),N.d(ne,"g",function(){return m}),N.d(ne,"h",function(){return x}),N.d(ne,"c",function(){return _}),N.d(ne,"k",function(){return h}),N.d(ne,"j",function(){return d}),N.d(ne,"a",function(){return l}),N.d(ne,"e",function(){return f});var I;const j="en";let C=!1,R=!1,W=!1,k=!1,e=!1,O=!1,g=!1,p,u=j,a,r;const o=typeof self=="object"?self:typeof Q=="object"?Q:{};let s;typeof o.vscode!="undefined"&&typeof o.vscode.process!="undefined"?s=o.vscode.process:typeof M!="undefined"&&(s=M);const i=typeof((I=s==null?void 0:s.versions)===null||I===void 0?void 0:I.electron)=="string"&&s.type==="renderer";if(typeof navigator=="object"&&!i)r=navigator.userAgent,C=r.indexOf("Windows")>=0,R=r.indexOf("Macintosh")>=0,g=(r.indexOf("Macintosh")>=0||r.indexOf("iPad")>=0||r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,W=r.indexOf("Linux")>=0,O=!0,p=navigator.language,u=p;else if(typeof s=="object"){C=s.platform==="win32",R=s.platform==="darwin",W=s.platform==="linux",k=W&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,p=j,u=j;const T=s.env.VSCODE_NLS_CONFIG;if(T)try{const L=JSON.parse(T),P=L.availableLanguages["*"];p=L.locale,u=P||j,a=L._translationsConfigFile}catch(L){}e=!0}else console.error("Unable to resolve platform.");let n=0;R?n=1:C?n=3:W&&(n=2);const t=C,b=R,y=W,m=e,x=O,_=g,h=r,d=function(){if(o.setImmediate)return o.setImmediate.bind(o);if(typeof o.postMessage=="function"&&!o.importScripts){let P=[];o.addEventListener("message",A=>{if(A.data&&A.data.vscodeSetImmediateId)for(let H=0,D=P.length;H<D;H++){const K=P[H];if(K.id===A.data.vscodeSetImmediateId){P.splice(H,1),K.callback();return}}});let S=0;return A=>{const H=++S;P.push({id:H,callback:A}),o.postMessage({vscodeSetImmediateId:H},"*")}}if(typeof(s==null?void 0:s.nextTick)=="function")return s.nextTick.bind(s);const L=Promise.resolve();return P=>L.then(P)}(),l=R||g?2:C?1:3;let c=!0,v=!1;function f(){if(!v){v=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2;const L=new Uint16Array(T.buffer);c=L[0]===(2<<8)+1}return c}}).call(this,N("IyRk"),N("Q2Ig"))},N0LK:function(je,ne,N){"use strict";N.d(ne,"C",function(){return Q}),N.d(ne,"v",function(){return I}),N.d(ne,"s",function(){return j}),N.d(ne,"t",function(){return C}),N.d(ne,"U",function(){return R}),N.d(ne,"J",function(){return W}),N.d(ne,"O",function(){return k}),N.d(ne,"p",function(){return e}),N.d(ne,"T",function(){return O}),N.d(ne,"q",function(){return g}),N.d(ne,"N",function(){return p}),N.d(ne,"M",function(){return u}),N.d(ne,"Q",function(){return a}),N.d(ne,"u",function(){return r}),N.d(ne,"x",function(){return o}),N.d(ne,"I",function(){return s}),N.d(ne,"f",function(){return i}),N.d(ne,"h",function(){return n}),N.d(ne,"g",function(){return t}),N.d(ne,"i",function(){return b}),N.d(ne,"G",function(){return y}),N.d(ne,"H",function(){return m}),N.d(ne,"r",function(){return x}),N.d(ne,"R",function(){return _}),N.d(ne,"d",function(){return h}),N.d(ne,"e",function(){return d}),N.d(ne,"E",function(){return l}),N.d(ne,"F",function(){return c}),N.d(ne,"j",function(){return v}),N.d(ne,"z",function(){return f}),N.d(ne,"K",function(){return L}),N.d(ne,"L",function(){return P}),N.d(ne,"m",function(){return A}),N.d(ne,"k",function(){return D}),N.d(ne,"A",function(){return V}),N.d(ne,"a",function(){return oe}),N.d(ne,"n",function(){return le}),N.d(ne,"l",function(){return Ce}),N.d(ne,"D",function(){return xe}),N.d(ne,"B",function(){return ie}),N.d(ne,"b",function(){return Se}),N.d(ne,"S",function(){return Pe}),N.d(ne,"o",function(){return de}),N.d(ne,"P",function(){return $}),N.d(ne,"w",function(){return Ne}),N.d(ne,"c",function(){return lt}),N.d(ne,"y",function(){return at});function Q(ee){return!ee||typeof ee!="string"?!0:ee.trim().length===0}const M=/{(\d+)}/g;function I(ee,...ge){return ge.length===0?ee:ee.replace(M,function(_e,we){const Ve=parseInt(we,10);return isNaN(Ve)||Ve<0||Ve>=ge.length?_e:ge[Ve]})}function j(ee){return ee.replace(/[<>&]/g,function(ge){switch(ge){case"<":return"<";case">":return">";case"&":return"&";default:return ge}})}function C(ee){return ee.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(ee,ge=" "){const _e=W(ee,ge);return k(_e,ge)}function W(ee,ge){if(!ee||!ge)return ee;const _e=ge.length;if(_e===0||ee.length===0)return ee;let we=0;for(;ee.indexOf(ge,we)===we;)we=we+_e;return ee.substring(we)}function k(ee,ge){if(!ee||!ge)return ee;const _e=ge.length,we=ee.length;if(_e===0||we===0)return ee;let Ve=we,Ze=-1;for(;!(Ze=ee.lastIndexOf(ge,Ve-1),Ze===-1||Ze+_e!==Ve);){if(Ze===0)return"";Ve=Ze}return ee.substring(0,Ve)}function e(ee){return ee.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function O(ee){return ee.replace(/\*/g,"")}function g(ee,ge,_e={}){if(!ee)throw new Error("Cannot create regex from empty string");ge||(ee=C(ee)),_e.wholeWord&&(/\B/.test(ee.charAt(0))||(ee="\\b"+ee),/\B/.test(ee.charAt(ee.length-1))||(ee=ee+"\\b"));let we="";return _e.global&&(we+="g"),_e.matchCase||(we+="i"),_e.multiline&&(we+="m"),_e.unicode&&(we+="u"),new RegExp(ee,we)}function p(ee){if(ee.source==="^"||ee.source==="^$"||ee.source==="$"||ee.source==="^\\s*$")return!1;const ge=ee.exec("");return!!(ge&&ee.lastIndex===0)}function u(ee){return(ee.global?"g":"")+(ee.ignoreCase?"i":"")+(ee.multiline?"m":"")+(ee.unicode?"u":"")}function a(ee){return ee.split(/\r\n|\r|\n/)}function r(ee){for(let ge=0,_e=ee.length;ge<_e;ge++){const we=ee.charCodeAt(ge);if(we!==32&&we!==9)return ge}return-1}function o(ee,ge=0,_e=ee.length){for(let we=ge;we<_e;we++){const Ve=ee.charCodeAt(we);if(Ve!==32&&Ve!==9)return ee.substring(ge,we)}return ee.substring(ge,_e)}function s(ee,ge=ee.length-1){for(let _e=ge;_e>=0;_e--){const we=ee.charCodeAt(_e);if(we!==32&&we!==9)return _e}return-1}function i(ee,ge){return ee<ge?-1:ee>ge?1:0}function n(ee,ge,_e=0,we=ee.length,Ve=0,Ze=ge.length){for(;_e<we&&Ve<Ze;_e++,Ve++){let ft=ee.charCodeAt(_e),ht=ge.charCodeAt(Ve);if(ft<ht)return-1;if(ft>ht)return 1}const rt=we-_e,$e=Ze-Ve;return rt<$e?-1:rt>$e?1:0}function t(ee,ge){return b(ee,ge,0,ee.length,0,ge.length)}function b(ee,ge,_e=0,we=ee.length,Ve=0,Ze=ge.length){for(;_e<we&&Ve<Ze;_e++,Ve++){let ft=ee.charCodeAt(_e),ht=ge.charCodeAt(Ve);if(ft===ht)continue;if(ft>=128||ht>=128)return n(ee.toLowerCase(),ge.toLowerCase(),_e,we,Ve,Ze);y(ft)&&(ft-=32),y(ht)&&(ht-=32);const ye=ft-ht;if(ye===0)continue;return ye}const rt=we-_e,$e=Ze-Ve;return rt<$e?-1:rt>$e?1:0}function y(ee){return ee>=97&&ee<=122}function m(ee){return ee>=65&&ee<=90}function x(ee,ge){return ee.length===ge.length&&b(ee,ge)===0}function _(ee,ge){const _e=ge.length;return ge.length>ee.length?!1:b(ee,ge,0,_e)===0}function h(ee,ge){let _e,we=Math.min(ee.length,ge.length);for(_e=0;_e<we;_e++)if(ee.charCodeAt(_e)!==ge.charCodeAt(_e))return _e;return we}function d(ee,ge){let _e,we=Math.min(ee.length,ge.length);const Ve=ee.length-1,Ze=ge.length-1;for(_e=0;_e<we;_e++)if(ee.charCodeAt(Ve-_e)!==ge.charCodeAt(Ze-_e))return _e;return we}function l(ee){return 55296<=ee&&ee<=56319}function c(ee){return 56320<=ee&&ee<=57343}function v(ee,ge){return(ee-55296<<10)+(ge-56320)+65536}function f(ee,ge,_e){const we=ee.charCodeAt(_e);if(l(we)&&_e+1<ge){const Ve=ee.charCodeAt(_e+1);if(c(Ve))return v(we,Ve)}return we}function T(ee,ge){const _e=ee.charCodeAt(ge-1);if(c(_e)&&ge>1){const we=ee.charCodeAt(ge-2);if(l(we))return v(we,_e)}return _e}function L(ee,ge){const _e=it.getInstance(),we=ge,Ve=ee.length,Ze=f(ee,Ve,ge);ge+=Ze>=65536?2:1;let rt=_e.getGraphemeBreakType(Ze);for(;ge<Ve;){const $e=f(ee,Ve,ge),ft=_e.getGraphemeBreakType($e);if(lt(rt,ft))break;ge+=$e>=65536?2:1,rt=ft}return ge-we}function P(ee,ge){const _e=it.getInstance(),we=ge,Ve=T(ee,ge);ge-=Ve>=65536?2:1;let Ze=_e.getGraphemeBreakType(Ve);for(;ge>0;){const rt=T(ee,ge),$e=_e.getGraphemeBreakType(rt);if(lt($e,Ze))break;ge-=rt>=65536?2:1,Ze=$e}return we-ge}const S=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function A(ee){return S.test(ee)}const H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function D(ee){return H.test(ee)}const K=/^[\t\n\r\x20-\x7E]*$/;function V(ee){return K.test(ee)}const oe=/[\u2028\u2029]/;function le(ee){return oe.test(ee)}function Ce(ee){for(let ge=0,_e=ee.length;ge<_e;ge++)if(xe(ee.charCodeAt(ge)))return!0;return!1}function xe(ee){return ee=+ee,ee>=11904&&ee<=55215||ee>=63744&&ee<=64255||ee>=65281&&ee<=65374}function ie(ee){return ee>=127462&&ee<=127487||ee===8986||ee===8987||ee===9200||ee===9203||ee>=9728&&ee<=10175||ee===11088||ee===11093||ee>=127744&&ee<=128591||ee>=128640&&ee<=128764||ee>=128992&&ee<=129003||ee>=129280&&ee<=129535||ee>=129648&&ee<=129750}const Se=String.fromCharCode(65279);function Pe(ee){return!!(ee&&ee.length>0&&ee.charCodeAt(0)===65279)}function de(ee,ge=!1){return ee?(ge&&(ee=ee.replace(/\\./g,"")),ee.toLowerCase()!==ee):!1}function $(ee){const ge=90-65+1;return ee=ee%(2*ge),ee<ge?String.fromCharCode(97+ee):String.fromCharCode(65+ee-ge)}function Ne(ee){const ge=it.getInstance();return ge.getGraphemeBreakType(ee)}function lt(ee,ge){return ee===0?ge!==5&&ge!==7:ee===2&&ge===3?!1:ee===4||ee===2||ee===3||(ge===4||ge===2||ge===3)?!0:ee===8&&(ge===8||ge===9||ge===11||ge===12)||((ee===11||ee===9)&&(ge===9||ge===10)||((ee===12||ee===10)&&ge===10||(ge===5||ge===13||(ge===7||(ee===1||ee===13&&ge===14)))))?!1:!(ee===6&&ge===6)}class it{constructor(){this._data=Je()}static getInstance(){return it._INSTANCE||(it._INSTANCE=new it),it._INSTANCE}getGraphemeBreakType(ee){if(ee<32)return ee===10?3:ee===13?2:4;if(ee<127)return 0;const ge=this._data,_e=ge.length/3;let we=1;for(;we<=_e;)if(ee<ge[3*we])we=2*we;else if(ee>ge[3*we+1])we=2*we+1;else return ge[3*we+2];return 0}}it._INSTANCE=null;function Je(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function at(ee,ge){if(ee===0)return 0;const _e=Ue(ee,ge);if(_e!==void 0)return _e;const we=T(ge,ee);return ee-=ze(we),ee}function Ue(ee,ge){let _e=T(ge,ee);for(ee-=ze(_e);et(_e)||_e===65039||_e===8419;){if(ee===0)return;_e=T(ge,ee),ee-=ze(_e)}if(!ie(_e))return;if(ee>=0){const we=T(ge,ee);we===8205&&(ee-=ze(we))}return ee}function ze(ee){return ee>=65536?2:1}function et(ee){return 127995<=ee&&ee<=127999}},NQs2:function(je,ne,N){je.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(je,ne,N){"use strict";N.d(ne,"a",function(){return k}),N.d(ne,"h",function(){return r}),N.d(ne,"l",function(){return n}),N.d(ne,"e",function(){return _}),N.d(ne,"i",function(){return c}),N.d(ne,"j",function(){return de}),N.d(ne,"c",function(){return ee}),N.d(ne,"b",function(){return Ze}),N.d(ne,"g",function(){return ht}),N.d(ne,"f",function(){return He}),N.d(ne,"k",function(){return se}),N.d(ne,"d",function(){return ut});var Q=N("q1tI"),M=N.n(Q),I=N("NQs2"),j=N.n(I),C=N("ygoZ"),R=N.n(C),W=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.img,_t=Oe.imgWidth,Tt=_t===void 0?346:_t,Et=Oe.title,Rt=Oe.sunTitle,bt=Oe.bannerExtraContent;return M.a.createElement("div",{className:j.a.banner},M.a.createElement("div",{className:j.a.content},M.a.createElement("aside",null,M.a.createElement("p",null,M.a.createElement("b",null,Et),M.a.createElement("span",null,Rt)),st.length>0&&M.a.createElement("div",{className:j.a.btns},st.map(function(xt,Ot){return M.a.createElement("div",{key:Ot,onClick:xt.click},xt.name,xt.sign?M.a.createElement("img",{src:R.a,width:39}):null)})),bt),M.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Qe,width:Tt})))},k=W,e=N("tJVT"),O=N("6nfa"),g=N.n(O),p=N("TSYQ"),u=N.n(p),a=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.value,_t=Oe.onChange,Tt=Oe.className,Et=Oe.title,Rt=Oe.titleWidth,bt=Rt===void 0?41:Rt,xt=Oe.style,Ot=xt===void 0?{}:xt,qe=Oe.fontColor,Bt=qe===void 0?"#6A7283":qe,gt=Object(Q.useState)(0),vt=Object(e.a)(gt,2),wt=vt[0],pt=vt[1],tn=Object(Q.useState)(!1),Yt=Object(e.a)(tn,2),cn=Yt[0],Ht=Yt[1],At=Object(Q.useRef)(null);return Object(Q.useEffect)(function(){if(st.length!==0){var Ft;(At==null||((Ft=At.current)===null||Ft===void 0)?void 0:Ft.clientHeight)>92?pt(1):pt(0)}st.length===0&&pt(0)},[st]),M.a.createElement("div",{className:u()(g.a.row,Tt),style:Ot},M.a.createElement("div",{style:{width:bt,marginTop:cn?12:4},className:g.a.title},Et),M.a.createElement("div",{className:cn?"".concat(g.a.tagsWrap," ").concat(g.a.tagsBorderWrap):g.a.tagsWrap},M.a.createElement("div",{className:g.a.bar,style:wt>0?{height:wt===1?92:"auto",overflow:wt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},M.a.createElement("div",{className:g.a.name,ref:At},st==null?void 0:st.map(function(Ft){return M.a.createElement("span",{onClick:function(){return _t(Ft.id)},key:Ft.id,title:Ft.name,style:{color:Bt},className:Qe===Ft.id?g.a.active:""},Ft.name)}))),!!wt&&M.a.createElement(Q.Fragment,null,wt===1?M.a.createElement("div",{onClick:function(){var fn;pt(2),(At==null||((fn=At.current)===null||fn===void 0)?void 0:fn.clientHeight)>205?Ht(!0):Ht(!1)},className:g.a.action},"\u5C55\u5F00",M.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):M.a.createElement("div",{onClick:function(){pt(1),Ht(!1)},className:g.a.action},"\u6536\u8D77",M.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r=a,o=N("cz0n"),s=N.n(o),i=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.value,_t=Oe.onChange,Tt=Oe.className;return M.a.createElement("div",{className:u()(s.a.tabs,Tt)},st.map(function(Et){return M.a.createElement("span",{onClick:function(){return _t(Et.id)},className:Qe===Et.id?s.a.active:"",key:Et.id},Et.name)}))},n=i,t=N("5NDa"),b=N("5rEg"),y=N("KOXS"),m=N.n(y),x=function(Oe){var ot,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.value,Tt=Oe.onChange,Et=Oe.className,Rt=Oe.style,bt=Rt===void 0?{}:Rt,xt=Oe.placeholder,Ot=Object(Q.useState)(""),qe=Object(e.a)(Ot,2),Bt=qe[0],gt=qe[1],vt=Object(Q.useState)(""),wt=Object(e.a)(vt,2),pt=wt[0],tn=wt[1];Object(Q.useEffect)(function(){var Ht;(Ht=JSON.stringify(_t))!==null&&Ht!==void 0&&Ht.includes("{")?(gt(_t.id),tn(_t.value)):tn(_t)},[_t]);var Yt=function(){Tt(pt||null,Bt||"")},cn=function(At){if(At===Bt)return;gt(At),Tt(pt,At)};return M.a.createElement("div",{className:u()(m.a.input,Et),style:bt},!!Qe.length&&M.a.createElement("div",{className:m.a.dropdown},M.a.createElement("div",{className:m.a.text},(ot=Qe.find(function(Ht){return Ht.id===Bt}))===null||ot===void 0?void 0:ot.name,M.a.createElement("i",{className:"iconfont icon-zhankai4"}),M.a.createElement("b",{className:m.a.b1}),M.a.createElement("b",{className:m.a.b2})),M.a.createElement("div",{className:m.a.menu},Qe.map(function(Ht,At){return M.a.createElement("div",{key:At,onClick:function(){return cn(Ht.id)}},Ht.name)}))),M.a.createElement(b.a,{onPressEnter:Yt,value:pt,onChange:function(At){return tn(At.target.value||"")},bordered:!1,placeholder:xt}),M.a.createElement("i",{onClick:Yt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},_=x,h=N("f9pc"),d=N.n(h),l=function(Oe){var ot=Oe.value,st=Oe.onChange,Qe=Oe.className,_t=Oe.total,Tt=Oe.pageSize,Et=Oe.style,Rt=Et===void 0?{}:Et,bt=ot<2,xt=ot>=Math.ceil(_t/Tt);return _t<=Tt?M.a.createElement(M.a.Fragment,null):M.a.createElement("div",{className:u()(d.a.quickPager,Qe),style:Rt},M.a.createElement("div",{onClick:function(){bt||st(ot-1,"prev")},className:bt?d.a.disabled:""},"\u4E0A\u4E00\u9875"),M.a.createElement("div",{onClick:function(){xt||st(ot+1,"next")},className:xt?d.a.disabled:""},"\u4E0B\u4E00\u9875"))},c=l,v=N("T2oS"),f=N("W9HT"),T=N("pC0b"),L=N("GzdX"),P=N("5Dmo"),S=N("3S7+"),A=N("Oe0F"),H=N.n(A),D=N("m3rI"),K=N("1vsH"),V=N("JAbv"),oe=N.n(V),le=N("Bq7L"),Ce=N.n(le),xe=N("MEgm"),ie=N.n(xe),Se=N("BdwD"),Pe=function(Oe){var ot=Oe.className,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.col,Tt=_t===void 0?4:_t,Et=Oe.right,Rt=Oe.bottom,bt=Rt===void 0?23:Rt,xt=Oe.precision,Ot=xt===void 0?0:xt,qe=Oe.wrapWidth,Bt=qe===void 0?1200:qe,gt=Oe.trackEventItems,vt=Oe.loading,wt=Math.floor((Bt-(Tt-1)*Et)/Tt);return M.a.createElement(f.a,{spinning:vt},M.a.createElement("div",{className:u()(H.a.list,ot)},!!Qe.length&&Qe.map(function(pt,tn){var Yt=pt.name,cn=pt.id,Ht=pt.identifier,At=pt.power,Ft=pt.cover_image_id,fn=pt.pic;return M.a.createElement("div",{className:H.a.wrap,key:cn,style:{width:wt,marginRight:(1+tn)%Tt===0?0:Et+Ot,marginBottom:bt}},M.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Ht,"/challenges"),className:H.a.li,onClick:function(Tn){Tn.preventDefault(),gt&&Object(K.cb)([gt]),At&&Object(K.S)("/shixuns/".concat(Ht,"/challenges"))}},M.a.createElement("div",{className:H.a.img},M.a.createElement("img",{className:H.a.cover,src:Ft?"".concat(D.a.API_SERVER,"/api/attachments/").concat(Ft):"".concat(D.a.IMG_SERVER,"/").concat(fn)}),pt.is_jupyter&&M.a.createElement("img",{className:H.a.sign,src:oe.a}),pt.is_jupyter_lab&&M.a.createElement("img",{className:H.a.sign,src:Ce.a}),pt.is_unity_3d&&M.a.createElement("img",{className:H.a.sign,src:ie.a})),M.a.createElement("div",{className:H.a.name},M.a.createElement(S.a,{title:Yt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},M.a.createElement("span",{className:H.a.e},Yt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),M.a.createElement("div",{className:H.a.tags},M.a.createElement(S.a,{placement:"bottom",title:"\u5173\u5361\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),M.a.createElement("span",null,pt.challenges_count))),!!pt.myshixuns_count&&M.a.createElement(S.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),M.a.createElement("span",null,pt.myshixuns_count))),M.a.createElement(S.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},M.a.createElement("span",null,M.a.createElement("span",null,pt.level))),M.a.createElement("div",{className:H.a.rate},M.a.createElement(L.a,{allowHalf:!0,disabled:!0,defaultValue:pt.score_info}),M.a.createElement("span",null,"\xA0",pt.score_info?"".concat(pt.score_info,"\u5206"):"5\u5206")))),!At&&M.a.createElement("div",{className:H.a.lockWrap},M.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),M.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qe.length&&M.a.createElement(Se.a,null)))},de=Pe,$=N("ZJlW"),Ne=N.n($),lt=N("z4EP"),it=N.n(lt),Je=N("+GGh"),at=N.n(Je),Ue=N("cFMs"),ze=N.n(Ue),et=function(Oe){var ot=Oe.className,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.col,Tt=_t===void 0?4:_t,Et=Oe.right,Rt=Oe.bottom,bt=Rt===void 0?23:Rt,xt=Oe.precision,Ot=xt===void 0?0:xt,qe=Oe.wrapWidth,Bt=qe===void 0?1200:qe,gt=Oe.trackEventItems,vt=Oe.loading,wt=Math.floor((Bt-(Tt-1)*Et)/Tt);return M.a.createElement(f.a,{spinning:vt},M.a.createElement("div",{className:u()(Ne.a.list,ot)},!!Qe.length&&Qe.map(function(pt,tn){var Yt=pt.name,cn=pt.id,Ht=pt.identifier,At=pt.featured,Ft=pt.school_name,fn=pt.image_url,ln=pt.excellent;return M.a.createElement("div",{key:cn,className:Ne.a.wrap,style:{width:wt,marginRight:(1+tn)%Tt===0?0:Et+Ot,marginBottom:bt}},M.a.createElement("a",{target:"_blank",href:"/paths/".concat(Ht),className:Ne.a.li,onClick:function(Mn){Mn.preventDefault(),gt&&Object(K.cb)([gt]),Object(K.S)("/paths/".concat(Ht))}},M.a.createElement("div",{className:Ne.a.img},M.a.createElement("img",{className:Ne.a.cover,src:"".concat(D.a.IMG_SERVER,"/").concat(fn)}),At===1&&M.a.createElement("img",{className:Ne.a.sign,src:it.a}),At===2&&M.a.createElement("img",{className:Ne.a.sign,src:""}),At===3&&M.a.createElement("img",{className:Ne.a.sign,src:at.a}),At===4&&M.a.createElement("img",{className:Ne.a.sign,src:""}),At===5&&M.a.createElement("img",{className:Ne.a.sign,src:ze.a})),M.a.createElement("div",{className:Ne.a.name},M.a.createElement(S.a,{title:Yt},M.a.createElement("span",{className:Ne.a.e},Yt))),M.a.createElement(S.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Ft)},M.a.createElement("div",{className:Ne.a.unit},M.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ft)),M.a.createElement("div",{className:Ne.a.tags},M.a.createElement(S.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),M.a.createElement("span",null,pt.stages_count))),M.a.createElement(S.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),M.a.createElement("span",null,pt.members_count))),ln&&M.a.createElement("div",{className:Ne.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!Qe.length&&M.a.createElement(Se.a,null)))},ee=et,ge=N("iL++"),_e=N.n(ge),we=N("xiVL"),Ve=function(Oe){var ot=Oe.className,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.col,Tt=_t===void 0?4:_t,Et=Oe.right,Rt=Oe.bottom,bt=Rt===void 0?23:Rt,xt=Oe.precision,Ot=xt===void 0?0:xt,qe=Oe.wrapWidth,Bt=qe===void 0?1200:qe,gt=Oe.trackEventItems,vt=Oe.loading,wt=Math.floor((Bt-(Tt-1)*Et)/Tt);return M.a.createElement(f.a,{spinning:vt},M.a.createElement("div",{className:u()(_e.a.list,ot)},!!Qe.length&&Qe.map(function(pt,tn){var Yt=pt.subject_identifier,cn=pt.id,Ht=pt.identifier,At=pt.power,Ft=pt.is_public!=0&&pt.is_public;return M.a.createElement("div",{className:_e.a.wrap,key:cn,style:{width:wt,marginRight:(1+tn)%Tt===0?0:Et+Ot,marginBottom:bt}},M.a.createElement("a",{className:_e.a.li,onClick:function(ln){ln.preventDefault()}},M.a.createElement("div",{className:_e.a.top},M.a.createElement(S.a,{title:pt.name},M.a.createElement("div",{className:_e.a.name},pt.name)),M.a.createElement("img",{className:_e.a.img,src:D.a.IMG_SERVER+"/images/"+pt.avatar_url}),M.a.createElement("div",{className:_e.a.text},pt.creator),Yt&&M.a.createElement("div",{className:_e.a.btns},M.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),M.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ft&&M.a.createElement("div",{className:_e.a.sign},"\u516C\u5F00")),M.a.createElement("div",{className:_e.a.bottom},pt.visits>0&&M.a.createElement(S.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-liulanyan"}),M.a.createElement("span",null,pt.visits))),pt.course_members_count>0&&M.a.createElement(S.a,{title:"\u6210\u5458",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan"}),pt.course_members_count)),pt.tasks_count>0&&M.a.createElement(S.a,{title:"\u4F5C\u4E1A",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-zuoye"}),pt.tasks_count)),pt.is_end?M.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):M.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),M.a.createElement("div",{className:_e.a.lockWrap},pt.is_accessible?M.a.createElement(M.a.Fragment,null,Yt&&M.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Yt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),M.a.createElement("div",{onClick:function(ln){gt&&Object(K.cb)([gt]),Object(K.S)(pt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):M.a.createElement(M.a.Fragment,null,M.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),M.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!Qe.length&&M.a.createElement(Se.a,null)))},Ze=Ve,rt=N("f0W+"),$e=N.n(rt),ft=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.value,_t=Oe.onChange,Tt=Oe.className,Et=Oe.style,Rt=Et===void 0?{}:Et,bt=Oe.tabBarExtraContent;return M.a.createElement("div",{className:u()($e.a.tabs,Tt),style:Rt},M.a.createElement("div",{className:$e.a.tabsWrap},st.map(function(xt,Ot){return M.a.createElement("div",{onClick:function(){return _t(xt.id)},className:Qe===xt.id?$e.a.active:"",key:Ot},xt.name)})),M.a.createElement("div",{className:$e.a.tabBar},bt))},ht=ft,ye=N("9JIy"),Ae=N.n(ye),ke=function(Oe){var ot=Oe.className,st=Oe.style,Qe=st===void 0?{}:st,_t=Oe.children;return M.a.createElement("div",{className:u()(Ae.a.table,ot),style:Qe},_t)},He=ke,Ie=N("qVdP"),Le=N("jsC+"),fe=N("lUTK"),re=N("BvKs"),ae=N("8WcF"),Y=N.n(ae),J=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],Z=function(Oe){var ot,st=Oe.sortValue,Qe=Oe.dropValue,_t=Oe.className,Tt=Oe.onSort,Et=Oe.onDrop,Rt=Oe.dataSource,bt=Rt===void 0?J:Rt;return M.a.createElement("div",{className:u()(Y.a.orderWrap,_t)},M.a.createElement(Le.a,{overlay:M.a.createElement(re.a,null,bt.map(function(xt,Ot){return M.a.createElement(re.a.Item,{key:Ot,onClick:function(){return Et(xt.id)}},xt.name)}))},M.a.createElement("span",{className:Y.a.orderTextWrap},(ot=bt.find(function(xt){return Qe===xt.id}))===null||ot===void 0?void 0:ot.name)),M.a.createElement("span",{className:Y.a.orderIconWrap},M.a.createElement("span",{className:Y.a.orderAsc},M.a.createElement("i",{className:st==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Y.a.cursorPointer," ").concat(Y.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Y.a.cursorPointer),onClick:function(){return Tt(st==="asc"?"desc":"asc")}})),M.a.createElement("span",{className:Y.a.orderDesc},M.a.createElement("i",{className:st==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Y.a.cursorPointer," ").concat(Y.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Y.a.cursorPointer),onClick:function(){return Tt(st==="asc"?"desc":"asc")}}))))},se=Z,Ee=N("siWv"),De=N.n(Ee),Ke=function(Oe){var ot=Oe.className,st=Oe.style,Qe=Oe.children,_t=Oe.onClick;return M.a.createElement("div",{onClick:_t,className:u()(De.a.btn,ot),style:st},Qe)},ut=Ke},NvD2:function(je,ne,N){"use strict";N.d(ne,"a",function(){return R});var Q=N("Kwbf");function M(W,k){var e=new Set;return W.forEach(function(O){k.has(O)||e.add(O)}),e}function I(W){var k=W||{},e=k.disabled,O=k.disableCheckbox,g=k.checkable;return!!(e||O)||g===!1}function j(W,k,e,O){for(var g=new Set(W),p=new Set,u=0;u<=e;u+=1){var a=k.get(u)||new Set;a.forEach(function(i){var n=i.key,t=i.node,b=i.children,y=b===void 0?[]:b;g.has(n)&&!O(t)&&y.filter(function(m){return!O(m.node)}).forEach(function(m){g.add(m.key)})})}for(var r=new Set,o=e;o>=0;o-=1){var s=k.get(o)||new Set;s.forEach(function(i){var n=i.parent,t=i.node;if(O(t)||!i.parent||r.has(i.parent.key))return;if(O(i.parent.node)){r.add(n.key);return}var b=!0,y=!1;(n.children||[]).filter(function(m){return!O(m.node)}).forEach(function(m){var x=m.key,_=g.has(x);b&&!_&&(b=!1),!y&&(_||p.has(x))&&(y=!0)}),b&&g.add(n.key),y&&p.add(n.key),r.add(n.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(M(p,g))}}function C(W,k,e,O,g){for(var p=new Set(W),u=new Set(k),a=0;a<=O;a+=1){var r=e.get(a)||new Set;r.forEach(function(n){var t=n.key,b=n.node,y=n.children,m=y===void 0?[]:y;!p.has(t)&&!u.has(t)&&!g(b)&&m.filter(function(x){return!g(x.node)}).forEach(function(x){p.delete(x.key)})})}u=new Set;for(var o=new Set,s=O;s>=0;s-=1){var i=e.get(s)||new Set;i.forEach(function(n){var t=n.parent,b=n.node;if(g(b)||!n.parent||o.has(n.parent.key))return;if(g(n.parent.node)){o.add(t.key);return}var y=!0,m=!1;(t.children||[]).filter(function(x){return!g(x.node)}).forEach(function(x){var _=x.key,h=p.has(_);y&&!h&&(y=!1),!m&&(h||u.has(_))&&(m=!0)}),y||p.delete(t.key),m&&u.add(t.key),o.add(t.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(M(u,p))}}function R(W,k,e,O){var g=[],p;O?p=O:p=I;var u=new Set(W.filter(function(s){var i=!!e[s];return i||g.push(s),i})),a=new Map,r=0;Object.keys(e).forEach(function(s){var i=e[s],n=i.level,t=a.get(n);t||(t=new Set,a.set(n,t)),t.add(i),r=Math.max(r,n)}),Object(Q.a)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var o;return k===!0?o=j(u,a,r,p):o=C(u,k.halfCheckedKeys,a,r,p),o}},OZM5:function(je,ne,N){"use strict";N.d(ne,"b",function(){return O}),N.d(ne,"a",function(){return g}),N.d(ne,"k",function(){return p}),N.d(ne,"h",function(){return u}),N.d(ne,"i",function(){return a}),N.d(ne,"g",function(){return r}),N.d(ne,"c",function(){return o}),N.d(ne,"d",function(){return s}),N.d(ne,"j",function(){return t}),N.d(ne,"e",function(){return b}),N.d(ne,"f",function(){return y});var Q=N("KQm4"),M=N("U8pU"),I=N("Ff2n"),j=N("q1tI"),C=N.n(j),R=N("Kwbf"),W=N("WaYH"),k=.25,e=2;function O(m,x){var _=m.slice(),h=_.indexOf(x);return h>=0&&_.splice(h,1),_}function g(m,x){var _=m.slice();return _.indexOf(x)===-1&&_.push(x),_}function p(m){return m.split("-")}function u(m,x){return"".concat(m,"-").concat(x)}function a(m){return m&&m.type&&m.type.isTreeNode}function r(m,x){var _=[m],h=x[m];function d(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var v=c.key,f=c.children;_.push(v),d(f)})}return d(h.children),_}function o(m,x){var _=m.clientY,h=x.selectHandle.getBoundingClientRect(),d=h.top,l=h.bottom,c=h.height,v=Math.max(c*k,e);return _<=d+v?-1:_>=l-v?1:0}function s(m,x){if(!m)return;var _=x.multiple;return _?m.slice():m.length?[m[0]]:m}var i=function(x){return x};function n(m,x){if(!m)return[];var _=x||{},h=_.processProps,d=h===void 0?i:h,l=Array.isArray(m)?m:[m];return l.map(function(c){var v=c.children,f=Object(I.a)(c,["children"]),T=n(v,x);return C.a.createElement(W.a,Object.assign({},d(f)),T)})}function t(m){if(!m)return null;var x;if(Array.isArray(m))x={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(M.a)(m)==="object")x={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return x}function b(m,x){var _=new Set;function h(d){if(_.has(d))return;var l=x[d];if(!l)return;_.add(d);var c=l.parent,v=l.node;if(v.disabled)return;c&&h(c.key)}return(m||[]).forEach(function(d){h(d)}),Object(Q.a)(_)}function y(m){var x={};return Object.keys(m).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(x[_]=m[_])}),x}},Oe0F:function(je,ne,N){je.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},"SA+Z":function(je,ne,N){var Q=N("wTVA"),M=N("EbDI"),I=N("ZhPi"),j=N("wkBT");function C(R){return Q(R)||M(R)||I(R)||j()}je.exports=C,je.exports.__esModule=!0,je.exports.default=je.exports},SJMd:function(je,ne){/**
|
|
* @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 N,Q,M,I=!1,j,C;window.PR_SHOULD_USE_CONTINUATION=!0;var R,W;(function(){var k=window,e=["break,continue,do,else,for,if,return,while"],O=[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],g=[O,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[g,"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"],u=[g,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[g,"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"],r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",o=[g,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="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",i=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],n=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],t=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[p,a,u,o,s,i,n,t],y=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,m="str",x="kwd",_="com",h="typ",d="lit",l="pun",c="pln",v="tag",f="dec",T="src",L="atn",P="atv",S="nocode",A="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(Ue){for(var ze=0,et=!1,ee=!1,ge=0,_e=Ue.length;ge<_e;++ge){var we=Ue[ge];if(we.ignoreCase)ee=!0;else if(/[a-z]/i.test(we.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){et=!0,ee=!1;break}}var Ve={b:8,t:9,n:10,v:11,f:12,r:13};function Ze(ye){var Ae=ye.charCodeAt(0);if(Ae!==92)return Ae;var ke=ye.charAt(1);return Ae=Ve[ke],Ae||("0"<=ke&&ke<="7"?parseInt(ye.substring(1),8):ke==="u"||ke==="x"?parseInt(ye.substring(2),16):ye.charCodeAt(1))}function rt(ye){if(ye<32)return(ye<16?"\\x0":"\\x")+ye.toString(16);var Ae=String.fromCharCode(ye);return Ae==="\\"||Ae==="-"||Ae==="]"||Ae==="^"?"\\"+Ae:Ae}function $e(ye){var Ae=ye.substring(1,ye.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ke=[],He=Ae[0]==="^",Ie=["["];He&&Ie.push("^");for(var Le=He?1:0,fe=Ae.length;Le<fe;++Le){var re=Ae[Le];if(/\\[bdsw]/i.test(re))Ie.push(re);else{var ae=Ze(re),Y;Le+2<fe&&Ae[Le+1]==="-"?(Y=Ze(Ae[Le+2]),Le+=2):Y=ae,ke.push([ae,Y]),Y<65||ae>122||(Y<65||ae>90||ke.push([Math.max(65,ae)|32,Math.min(Y,90)|32]),Y<97||ae>122||ke.push([Math.max(97,ae)&~32,Math.min(Y,122)&~32]))}}ke.sort(function(Ee,De){return Ee[0]-De[0]||De[1]-Ee[1]});for(var J=[],Z=[],Le=0;Le<ke.length;++Le){var se=ke[Le];se[0]<=Z[1]+1?Z[1]=Math.max(Z[1],se[1]):J.push(Z=se)}for(var Le=0;Le<J.length;++Le){var se=J[Le];Ie.push(rt(se[0])),se[1]>se[0]&&(se[1]+1>se[0]&&Ie.push("-"),Ie.push(rt(se[1])))}return Ie.push("]"),Ie.join("")}function ft(ye){for(var Ae=ye.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")),ke=Ae.length,He=[],Ie=0,Le=0;Ie<ke;++Ie){var fe=Ae[Ie];if(fe==="(")++Le;else if(fe.charAt(0)==="\\"){var re=+fe.substring(1);re&&(re<=Le?He[re]=-1:Ae[Ie]=rt(re))}}for(var Ie=1;Ie<He.length;++Ie)He[Ie]===-1&&(He[Ie]=++ze);for(var Ie=0,Le=0;Ie<ke;++Ie){var fe=Ae[Ie];if(fe==="(")++Le,He[Le]||(Ae[Ie]="(?:");else if(fe.charAt(0)==="\\"){var re=+fe.substring(1);re&&re<=Le&&(Ae[Ie]="\\"+He[re])}}for(var Ie=0;Ie<ke;++Ie)Ae[Ie]==="^"&&Ae[Ie+1]!=="^"&&(Ae[Ie]="");if(ye.ignoreCase&&et)for(var Ie=0;Ie<ke;++Ie){var fe=Ae[Ie],ae=fe.charAt(0);fe.length>=2&&ae==="["?Ae[Ie]=$e(fe):ae!=="\\"&&(Ae[Ie]=fe.replace(/[a-zA-Z]/g,function(Z){var se=Z.charCodeAt(0);return"["+String.fromCharCode(se&~32,se|32)+"]"}))}return Ae.join("")}for(var ht=[],ge=0,_e=Ue.length;ge<_e;++ge){var we=Ue[ge];if(we.global||we.multiline)throw new Error(""+we);ht.push("(?:"+ft(we)+")")}return new RegExp(ht.join("|"),ee?"gi":"g")}function D(Ue,ze){var et=/(?:^|\s)nocode(?:\s|$)/,ee=[],ge=0,_e=[],we=0;function Ve(Ze){var rt=Ze.nodeType;if(rt==1){if(et.test(Ze.className))return;for(var $e=Ze.firstChild;$e;$e=$e.nextSibling)Ve($e);var ft=Ze.nodeName.toLowerCase();(ft==="br"||ft==="li")&&(ee[we]=`
|
|
`,_e[we<<1]=ge++,_e[we++<<1|1]=Ze)}else if(rt==3||rt==4){var ht=Ze.nodeValue;ht.length&&(ze?ht=ht.replace(/\r\n?/g,`
|
|
`):ht=ht.replace(/[ \t\r\n]+/g," "),ee[we]=ht,_e[we<<1]=ge,ge+=ht.length,_e[we++<<1|1]=Ze)}}return Ve(Ue),{sourceCode:ee.join("").replace(/\n$/,""),spans:_e}}function K(Ue,ze,et,ee,ge){if(!et)return;var _e={sourceNode:Ue,pre:1,langExtension:null,numberLines:null,sourceCode:et,spans:null,basePos:ze,decorations:null};ee(_e),ge.push.apply(ge,_e.decorations)}var V=/\S/;function oe(Ue){for(var ze=void 0,et=Ue.firstChild;et;et=et.nextSibling){var ee=et.nodeType;ze=ee===1?ze?Ue:et:ee===3&&V.test(et.nodeValue)?Ue:ze}return ze===Ue?void 0:ze}function le(Ue,ze){var et={},ee;(function(){for(var we=Ue.concat(ze),Ve=[],Ze={},rt=0,$e=we.length;rt<$e;++rt){var ft=we[rt],ht=ft[3];if(ht)for(var ye=ht.length;--ye>=0;)et[ht.charAt(ye)]=ft;var Ae=ft[1],ke=""+Ae;Ze.hasOwnProperty(ke)||(Ve.push(Ae),Ze[ke]=null)}Ve.push(/[\0-\uffff]/),ee=H(Ve)})();var ge=ze.length,_e=function(we){for(var Ve=we.sourceCode,Ze=we.basePos,rt=we.sourceNode,$e=[Ze,c],ft=0,ht=Ve.match(ee)||[],ye={},Ae=0,ke=ht.length;Ae<ke;++Ae){var He=ht[Ae],Ie=ye[He],Le=void 0,fe;if(typeof Ie=="string")fe=!1;else{var re=et[He.charAt(0)];if(re)Le=He.match(re[1]),Ie=re[0];else{for(var ae=0;ae<ge;++ae)if(re=ze[ae],Le=He.match(re[1]),Le){Ie=re[0];break}Le||(Ie=c)}fe=Ie.length>=5&&Ie.substring(0,5)==="lang-",fe&&!(Le&&typeof Le[1]=="string")&&(fe=!1,Ie=T),fe||(ye[He]=Ie)}var Y=ft;if(ft+=He.length,!fe)$e.push(Ze+Y,Ie);else{var J=Le[1],Z=He.indexOf(J),se=Z+J.length;Le[2]&&(se=He.length-Le[2].length,Z=se-J.length);var Ee=Ie.substring(5);K(rt,Ze+Y,He.substring(0,Z),_e,$e),K(rt,Ze+Y+Z,J,$(Ee,J),$e),K(rt,Ze+Y+se,He.substring(se),_e,$e)}}we.decorations=$e};return _e}function Ce(Ue){var ze=[],et=[];Ue.tripleQuotedStrings?ze.push([m,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ue.multiLineStrings?ze.push([m,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ze.push([m,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ue.verbatimStrings&&et.push([m,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=Ue.hashComments;ee&&(Ue.cStyleComments?(ee>1?ze.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ze.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),et.push([m,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ze.push([_,/^#[^\r\n]*/,null,"#"])),Ue.cStyleComments&&(et.push([_,/^\/\/[^\r\n]*/,null]),et.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ge=Ue.regexLiterals;if(ge){var _e=ge>1?"":`
|
|
\r`,we=_e?".":"[\\S\\s]",Ve="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+we+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+we+")*(?:\\x5D|$))+/";et.push(["lang-regex",RegExp("^"+A+"("+Ve+")")])}var Ze=Ue.types;Ze&&et.push([h,Ze]);var rt=(""+Ue.keywords).replace(/^ | $/g,"");rt.length&&et.push([x,new RegExp("^(?:"+rt.replace(/[\s,]+/g,"|")+")\\b"),null]),ze.push([c,/^\s+/,null,` \r
|
|
\xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return Ue.regexLiterals&&($e+="(?!s*/)"),et.push([d,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[d,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[l,new RegExp($e),null]),le(ze,et)}var xe=Ce({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ie(Ue,ze,et){for(var ee=/(?:^|\s)nocode(?:\s|$)/,ge=/\r\n?|\n/,_e=Ue.ownerDocument,we=_e.createElement("li");Ue.firstChild;)we.appendChild(Ue.firstChild);var Ve=[we];function Ze(Ae){var ke=Ae.nodeType;if(ke==1&&!ee.test(Ae.className))if(Ae.nodeName==="br")rt(Ae),Ae.parentNode&&Ae.parentNode.removeChild(Ae);else for(var He=Ae.firstChild;He;He=He.nextSibling)Ze(He);else if((ke==3||ke==4)&&et){var Ie=Ae.nodeValue,Le=Ie.match(ge);if(Le){var fe=Ie.substring(0,Le.index);Ae.nodeValue=fe;var re=Ie.substring(Le.index+Le[0].length);if(re){var ae=Ae.parentNode;ae.insertBefore(_e.createTextNode(re),Ae.nextSibling)}rt(Ae),fe||Ae.parentNode.removeChild(Ae)}}}function rt(Ae){for(;!Ae.nextSibling;)if(Ae=Ae.parentNode,!Ae)return;function ke(Le,fe){var re=fe?Le.cloneNode(!1):Le,ae=Le.parentNode;if(ae){var Y=ke(ae,1),J=Le.nextSibling;Y.appendChild(re);for(var Z=J;Z;Z=J)J=Z.nextSibling,Y.appendChild(Z)}return re}for(var He=ke(Ae.nextSibling,0),Ie;(Ie=He.parentNode)&&Ie.nodeType===1;)He=Ie;Ve.push(He)}for(var $e=0;$e<Ve.length;++$e)Ze(Ve[$e]);ze===(ze|0)&&Ve[0].setAttribute("value",ze);var ft=_e.createElement("ol");ft.className="linenums";for(var ht=Math.max(0,ze-1|0)||0,$e=0,ye=Ve.length;$e<ye;++$e)we=Ve[$e],we.className="L"+($e+ht)%10,we.firstChild||we.appendChild(_e.createTextNode("\xA0")),ft.appendChild(we);Ue.appendChild(ft)}function Se(Ue){var ze=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ze=ze&&+ze[1]<=8;var et=/\n/g,ee=Ue.sourceCode,ge=ee.length,_e=0,we=Ue.spans,Ve=we.length,Ze=0,rt=Ue.decorations,$e=rt.length,ft=0;rt[$e]=ge;var ht,ye;for(ye=ht=0;ye<$e;)rt[ye]!==rt[ye+2]?(rt[ht++]=rt[ye++],rt[ht++]=rt[ye++]):ye+=2;for($e=ht,ye=ht=0;ye<$e;){for(var Ae=rt[ye],ke=rt[ye+1],He=ye+2;He+2<=$e&&rt[He+1]===ke;)He+=2;rt[ht++]=Ae,rt[ht++]=ke,ye=He}$e=rt.length=ht;var Ie=Ue.sourceNode,Le="";Ie&&(Le=Ie.style.display,Ie.style.display="none");try{for(var fe=null;Ze<Ve;){var re=we[Ze],ae=we[Ze+2]||ge,Y=rt[ft+2]||ge,He=Math.min(ae,Y),J=we[Ze+1],Z;if(J.nodeType!==1&&(Z=ee.substring(_e,He))){ze&&(Z=Z.replace(et,"\r")),J.nodeValue=Z;var se=J.ownerDocument,Ee=se.createElement("span");Ee.className=rt[ft+1];var De=J.parentNode;De.replaceChild(Ee,J),Ee.appendChild(J),_e<ae&&(we[Ze+1]=J=se.createTextNode(ee.substring(He,ae)),De.insertBefore(J,Ee.nextSibling))}_e=He,_e>=ae&&(Ze+=2),_e>=Y&&(ft+=2)}}finally{Ie&&(Ie.style.display=Le)}}var Pe={};function de(Ue,ze){for(var et=ze.length;--et>=0;){var ee=ze[et];Pe.hasOwnProperty(ee)?k.console&&console.warn("cannot override language handler %s",ee):Pe[ee]=Ue}}function $(Ue,ze){return Ue&&Pe.hasOwnProperty(Ue)||(Ue=/^\s*</.test(ze)?"default-markup":"default-code"),Pe[Ue]}de(xe,["default-code"]),de(le([],[[c,/^[^<?]+/],[f,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),de(le([[c,/^[\s]+/,null,` \r
|
|
`],[P,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[v,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[L,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[l,/^[=<>\/]+/],["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"]),de(le([],[[P,/^[\s\S]+/]]),["uq.val"]),de(Ce({keywords:p,hashComments:!0,cStyleComments:!0,types:y}),["c","cc","cpp","cxx","cyc","m"]),de(Ce({keywords:"null,true,false"}),["json"]),de(Ce({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:y}),["cs"]),de(Ce({keywords:u,cStyleComments:!0}),["java"]),de(Ce({keywords:t,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),de(Ce({keywords:i,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),de(Ce({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),de(Ce({keywords:n,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),de(Ce({keywords:o,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),de(Ce({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),de(le([],[[m,/^[\s\S]+/]]),["regex"]);function Ne(Ue){var ze=Ue.langExtension;try{var et=D(Ue.sourceNode,Ue.pre),ee=et.sourceCode;Ue.sourceCode=ee,Ue.spans=et.spans,Ue.basePos=0,$(ze,ee)(Ue),Se(Ue)}catch(ge){k.console&&console.log(ge&&ge.stack||ge)}}function lt(Ue,ze,et){var ee=et||!1,ge=ze||null,_e=document.createElement("div");_e.innerHTML="<pre>"+Ue+"</pre>",_e=_e.firstChild,ee&&ie(_e,ee,!0);var we={langExtension:ge,numberLines:ee,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ne(we),_e.innerHTML}function it(Ue,ze){var et=ze||document.body,ee=et.ownerDocument||document;function ge(re){return et.getElementsByTagName(re)}for(var _e=[ge("pre"),ge("code"),ge("xmp")],we=[],Ve=0;Ve<_e.length;++Ve)for(var Ze=0,rt=_e[Ve].length;Ze<rt;++Ze)we.push(_e[Ve][Ze]);_e=null;var $e=Date;$e.now||($e={now:function(){return+new Date}});var ft=0,ht=/\blang(?:uage)?-([\w.]+)(?!\S)/,ye=/\bprettyprint\b/,Ae=/\bprettyprinted\b/,ke=/pre|xmp/i,He=/^code$/i,Ie=/^(?:pre|code|xmp)$/i,Le={};function fe(){for(var re=k.PR_SHOULD_USE_CONTINUATION?$e.now()+250:Infinity;ft<we.length&&$e.now()<re;ft++){for(var ae=we[ft],Y=Le,J=ae;J=J.previousSibling;){var Z=J.nodeType,se=(Z===7||Z===8)&&J.nodeValue;if(se?!/^\??prettify\b/.test(se):Z!==3||/\S/.test(J.nodeValue))break;if(se){Y={},se.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Rt,bt,xt){Y[bt]=xt});break}}var Ee=ae.className;if((Y!==Le||ye.test(Ee))&&!Ae.test(Ee)){for(var De=!1,Ke=ae.parentNode;Ke;Ke=Ke.parentNode){var ut=Ke.tagName;if(Ie.test(ut)&&Ke.className&&ye.test(Ke.className)){De=!0;break}}if(!De){ae.className+=" prettyprinted";var ct=Y.lang;if(!ct){ct=Ee.match(ht);var Oe;!ct&&(Oe=oe(ae))&&He.test(Oe.tagName)&&(ct=Oe.className.match(ht)),ct&&(ct=ct[1])}var ot;if(ke.test(ae.tagName))ot=1;else{var st=ae.currentStyle,Qe=ee.defaultView,_t=st?st.whiteSpace:Qe&&Qe.getComputedStyle?Qe.getComputedStyle(ae,null).getPropertyValue("white-space"):0;ot=_t&&_t.substring(0,3)==="pre"}var Tt=Y.linenums;(Tt=Tt==="true"||+Tt)||(Tt=Ee.match(/\blinenums\b(?::(\d+))?/),Tt=Tt?Tt[1]&&Tt[1].length?+Tt[1]:!0:!1),Tt&&ie(ae,Tt,ot);var Et={langExtension:ct,sourceNode:ae,numberLines:Tt,pre:ot,sourceCode:null,basePos:null,spans:null,decorations:null};Ne(Et)}}}ft<we.length?k.setTimeout(fe,250):typeof Ue=="function"&&Ue()}fe()}var Je=k.PR={createSimpleLexer:le,registerLangHandler:de,sourceDecorator:Ce,PR_ATTRIB_NAME:L,PR_ATTRIB_VALUE:P,PR_COMMENT:_,PR_DECLARATION:f,PR_KEYWORD:x,PR_LITERAL:d,PR_NOCODE:S,PR_PLAIN:c,PR_PUNCTUATION:l,PR_SOURCE:T,PR_STRING:m,PR_TAG:v,PR_TYPE:h,prettyPrintOne:I?k.prettyPrintOne=lt:R=lt,prettyPrint:W=I?k.prettyPrint=it:W=it},at=k.define;typeof at=="function"&&at.amd&&at("google-code-prettify",[],function(){return Je})})()},T8No:function(je,ne,N){"use strict";N.d(ne,"a",function(){return W}),N.d(ne,"e",function(){return k}),N.d(ne,"c",function(){return l}),N.d(ne,"b",function(){return c}),N.d(ne,"d",function(){return v}),N.d(ne,"f",function(){return L});var Q=N("MNsG"),M=N("N0LK"),I=N("Cg/j");let j=Q.k||"";const C=new Map;C.set("false",!1),C.set("true",!0),C.set("isMac",Q.f),C.set("isLinux",Q.d),C.set("isWindows",Q.i),C.set("isWeb",Q.h),C.set("isMacNative",Q.f&&!Q.h),C.set("isEdge",j.indexOf("Edg/")>=0),C.set("isFirefox",j.indexOf("Firefox")>=0),C.set("isChrome",j.indexOf("Chrome")>=0),C.set("isSafari",j.indexOf("Safari")>=0);const R=Object.prototype.hasOwnProperty;class W{static has(S){return p.create(S)}static equals(S,A){return u.create(S,A)}static regex(S,A){return m.create(S,A)}static not(S){return s.create(S)}static and(...S){return h.create(S,null)}static or(...S){return d.create(S,null,!0)}static deserialize(S,A=!1){return S?this._deserializeOrExpression(S,A):void 0}static _deserializeOrExpression(S,A){let H=S.split("||");return d.create(H.map(D=>this._deserializeAndExpression(D,A)),null,!0)}static _deserializeAndExpression(S,A){let H=S.split("&&");return h.create(H.map(D=>this._deserializeOne(D,A)),null)}static _deserializeOne(S,A){if(S=S.trim(),S.indexOf("!=")>=0){let H=S.split("!=");return o.create(H[0].trim(),this._deserializeValue(H[1],A))}if(S.indexOf("==")>=0){let H=S.split("==");return u.create(H[0].trim(),this._deserializeValue(H[1],A))}if(S.indexOf("=~")>=0){let H=S.split("=~");return m.create(H[0].trim(),this._deserializeRegexValue(H[1],A))}if(S.indexOf(" in ")>=0){let H=S.split(" in ");return a.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(S)){const H=S.split(">=");return t.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(S)){const H=S.split(">");return n.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(S)){const H=S.split("<=");return y.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(S)){const H=S.split("<");return b.create(H[0].trim(),H[1].trim())}return/^\!\s*/.test(S)?s.create(S.substr(1).trim()):p.create(S)}static _deserializeValue(S,A){if(S=S.trim(),S==="true")return!0;if(S==="false")return!1;let H=/^'([^']*)'$/.exec(S);return H?H[1].trim():S}static _deserializeRegexValue(S,A){if(Object(M.C)(S)){if(A)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let H=S.indexOf("/"),D=S.lastIndexOf("/");if(H===D||H<0){if(A)throw new Error(`bad regexp-value '${S}', missing /-enclosure`);return console.warn(`bad regexp-value '${S}', missing /-enclosure`),null}let K=S.slice(H+1,D),V=S[D+1]==="i"?"i":"";try{return new RegExp(K,V)}catch(oe){if(A)throw new Error(`bad regexp-value '${S}', parse error: ${oe}`);return console.warn(`bad regexp-value '${S}', parse error: ${oe}`),null}}}function k(S,A){const H=S?S.substituteConstants():void 0,D=A?A.substituteConstants():void 0;return!H&&!D?!0:!H||!D?!1:H.equals(D)}function e(S,A){return S.cmp(A)}class O{constructor(){this.type=0}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!1}serialize(){return"false"}keys(){return[]}negate(){return g.INSTANCE}}O.INSTANCE=new O;class g{constructor(){this.type=1}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!0}serialize(){return"true"}keys(){return[]}negate(){return O.INSTANCE}}g.INSTANCE=new g;class p{constructor(S,A){this.key=S,this.negated=A,this.type=2}static create(S,A=null){const H=C.get(S);return typeof H=="boolean"?H?g.INSTANCE:O.INSTANCE:new p(S,A)}cmp(S){return S.type!==this.type?this.type-S.type:f(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=C.get(this.key);return typeof S=="boolean"?S?g.INSTANCE:O.INSTANCE:this}evaluate(S){return!!S.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this)),this.negated}}class u{constructor(S,A,H){this.key=S,this.value=A,this.negated=H,this.type=4}static create(S,A,H=null){if(typeof A=="boolean")return A?p.create(S,H):s.create(S,H);const D=C.get(S);if(typeof D=="boolean"){const K=D?"true":"false";return A===K?g.INSTANCE:O.INSTANCE}return new u(S,A,H)}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=C.get(this.key);if(typeof S=="boolean"){const A=S?"true":"false";return this.value===A?g.INSTANCE:O.INSTANCE}return this}evaluate(S){return S.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this.value,this)),this.negated}}class a{constructor(S,A){this.key=S,this.valueKey=A,this.type=10,this.negated=null}static create(S,A){return new a(S,A)}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.valueKey,S.key,S.valueKey)}equals(S){return S.type===this.type?this.key===S.key&&this.valueKey===S.valueKey:!1}substituteConstants(){return this}evaluate(S){const A=S.getValue(this.valueKey),H=S.getValue(this.key);return Array.isArray(A)?A.indexOf(H)>=0:typeof H=="string"&&typeof A=="object"&&A!==null?R.call(A,H):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=r.create(this)),this.negated}}class r{constructor(S){this._actual=S,this.type=11}static create(S){return new r(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class o{constructor(S,A,H){this.key=S,this.value=A,this.negated=H,this.type=5}static create(S,A,H=null){if(typeof A=="boolean")return A?s.create(S,H):p.create(S,H);const D=C.get(S);if(typeof D=="boolean"){const K=D?"true":"false";return A===K?O.INSTANCE:g.INSTANCE}return new o(S,A,H)}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=C.get(this.key);if(typeof S=="boolean"){const A=S?"true":"false";return this.value===A?O.INSTANCE:g.INSTANCE}return this}evaluate(S){return S.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class s{constructor(S,A){this.key=S,this.negated=A,this.type=3}static create(S,A=null){const H=C.get(S);return typeof H=="boolean"?H?O.INSTANCE:g.INSTANCE:new s(S,A)}cmp(S){return S.type!==this.type?this.type-S.type:f(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=C.get(this.key);return typeof S=="boolean"?S?O.INSTANCE:g.INSTANCE:this}evaluate(S){return!S.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function i(S,A){if(typeof S=="string"){const H=parseFloat(S);isNaN(H)||(S=H)}return typeof S=="string"||typeof S=="number"?A(S):O.INSTANCE}class n{constructor(S,A,H){this.key=S,this.value=A,this.negated=H,this.type=12}static create(S,A,H=null){return i(A,D=>new n(S,D,H))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class t{constructor(S,A,H){this.key=S,this.value=A,this.negated=H,this.type=13}static create(S,A,H=null){return i(A,D=>new t(S,D,H))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class b{constructor(S,A,H){this.key=S,this.value=A,this.negated=H,this.type=14}static create(S,A,H=null){return i(A,D=>new b(S,D,H))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this.value,this)),this.negated}}class y{constructor(S,A,H){this.key=S,this.value=A,this.negated=H,this.type=15}static create(S,A,H=null){return i(A,D=>new y(S,D,H))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=n.create(this.key,this.value,this)),this.negated}}class m{constructor(S,A){this.key=S,this.regexp=A,this.type=7,this.negated=null}static create(S,A){return new m(S,A)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.key<S.key)return-1;if(this.key>S.key)return 1;const A=this.regexp?this.regexp.source:"",H=S.regexp?S.regexp.source:"";return A<H?-1:A>H?1:0}equals(S){if(S.type===this.type){const A=this.regexp?this.regexp.source:"",H=S.regexp?S.regexp.source:"";return this.key===S.key&&A===H}return!1}substituteConstants(){return this}evaluate(S){let A=S.getValue(this.key);return this.regexp?this.regexp.test(A):!1}serialize(){const S=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${S}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this)),this.negated}}class x{constructor(S){this._actual=S,this.type=8}static create(S){return new x(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function _(S){let A=null;for(let H=0,D=S.length;H<D;H++){const K=S[H].substituteConstants();if(S[H]!==K&&A===null){A=[];for(let V=0;V<H;V++)A[V]=S[V]}A!==null&&(A[H]=K)}return A===null?S:A}class h{constructor(S,A){this.expr=S,this.negated=A,this.type=6}static create(S,A){return h._normalizeArr(S,A)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let A=0,H=this.expr.length;A<H;A++){const D=e(this.expr[A],S.expr[A]);if(D!==0)return D}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let A=0,H=this.expr.length;A<H;A++)if(!this.expr[A].equals(S.expr[A]))return!1;return!0}return!1}substituteConstants(){const S=_(this.expr);return S===this.expr?this:h.create(S,this.negated)}evaluate(S){for(let A=0,H=this.expr.length;A<H;A++)if(!this.expr[A].evaluate(S))return!1;return!0}static _normalizeArr(S,A){const H=[];let D=!1;for(const K of S){if(!K)continue;if(K.type===1){D=!0;continue}if(K.type===0)return O.INSTANCE;if(K.type===6){H.push(...K.expr);continue}H.push(K)}if(H.length===0&&D)return g.INSTANCE;if(H.length===0)return;if(H.length===1)return H[0];H.sort(e);for(let K=1;K<H.length;K++)H[K-1].equals(H[K])&&(H.splice(K,1),K--);if(H.length===1)return H[0];for(;H.length>1;){const K=H[H.length-1];if(K.type!==9)break;H.pop();const V=H.pop(),oe=H.length===0,le=d.create(K.expr.map(Ce=>h.create([Ce,V],null)),null,oe);le&&(H.push(le),H.sort(e))}return H.length===1?H[0]:new h(H,A)}serialize(){return this.expr.map(S=>S.serialize()).join(" && ")}keys(){const S=[];for(let A of this.expr)S.push(...A.keys());return S}negate(){if(!this.negated){const S=[];for(let A of this.expr)S.push(A.negate());this.negated=d.create(S,this,!0)}return this.negated}}class d{constructor(S,A){this.expr=S,this.negated=A,this.type=9}static create(S,A,H){return d._normalizeArr(S,A,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let A=0,H=this.expr.length;A<H;A++){const D=e(this.expr[A],S.expr[A]);if(D!==0)return D}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let A=0,H=this.expr.length;A<H;A++)if(!this.expr[A].equals(S.expr[A]))return!1;return!0}return!1}substituteConstants(){const S=_(this.expr);return S===this.expr?this:d.create(S,this.negated,!1)}evaluate(S){for(let A=0,H=this.expr.length;A<H;A++)if(this.expr[A].evaluate(S))return!0;return!1}static _normalizeArr(S,A,H){let D=[],K=!1;if(S){for(let V=0,oe=S.length;V<oe;V++){const le=S[V];if(!le)continue;if(le.type===0){K=!0;continue}if(le.type===1)return g.INSTANCE;if(le.type===9){D=D.concat(le.expr);continue}D.push(le)}if(D.length===0&&K)return O.INSTANCE;D.sort(e)}if(D.length===0)return;if(D.length===1)return D[0];for(let V=1;V<D.length;V++)D[V-1].equals(D[V])&&(D.splice(V,1),V--);if(D.length===1)return D[0];if(H){for(let V=0;V<D.length;V++)for(let oe=V+1;oe<D.length;oe++)L(D[V],D[oe])&&(D.splice(oe,1),oe--);if(D.length===1)return D[0]}return new d(D,A)}serialize(){return this.expr.map(S=>S.serialize()).join(" || ")}keys(){const S=[];for(let A of this.expr)S.push(...A.keys());return S}negate(){if(!this.negated){let S=[];for(let A of this.expr)S.push(A.negate());for(;S.length>1;){const A=S.shift(),H=S.shift(),D=[];for(const V of P(A))for(const oe of P(H))D.push(h.create([V,oe],null));const K=S.length===0;S.unshift(d.create(D,null,K))}this.negated=S[0]}return this.negated}}class l extends p{constructor(S,A,H){super(S,null);this._defaultValue=A,typeof H=="object"?l._info.push(Object.assign(Object.assign({},H),{key:S})):H!==!0&&l._info.push({key:S,description:H,type:A!=null?typeof A:void 0})}static all(){return l._info.values()}bindTo(S){return S.createKey(this.key,this._defaultValue)}getValue(S){return S.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(S){return u.create(this.key,S)}}l._info=[];const c=Object(I.c)("contextKeyService"),v="setContext";function f(S,A){return S<A?-1:S>A?1:0}function T(S,A,H,D){return S<H?-1:S>H?1:A<D?-1:A>D?1:0}function L(S,A){if(A.type===6&&S.type!==9&&S.type!==6){for(const K of A.expr)if(S.equals(K))return!0}const H=S.negate(),D=P(H).concat(P(A));D.sort(e);for(let K=0;K<D.length;K++){const V=D[K],oe=V.negate();for(let le=K+1;le<D.length;le++){const Ce=D[le];if(oe.equals(Ce))return!0}}return!1}function P(S){return S.type===9?S.expr:[S]}},TXwP:function(je,ne,N){var Q,M;(function(){var I;(function(){"use strict";var C=[,,function(e){function O(u){this.__parent=u,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}O.prototype.clone_empty=function(){var u=new O(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},O.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},O.prototype.has_match=function(u){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(u))return!0;return!1},O.prototype.set_indent=function(u,a){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},O.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},O.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},O.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},O.prototype.is_empty=function(){return this.__items.length===0},O.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},O.prototype.push=function(u){this.__items.push(u);var a=u.lastIndexOf(`
|
|
`);a!==-1?this.__character_count=u.length-a:this.__character_count+=u.length},O.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},O.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},O.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},O.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},O.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function g(u,a){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),a=a||"",u.indent_level>0&&(a=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}g.prototype.get_indent_size=function(u,a){var r=this.__base_string_length;return a=a||0,u<0&&(r=0),r+=u*this.__indent_size,r+=a,r},g.prototype.get_indent_string=function(u,a){var r=this.__base_string;return a=a||0,u<0&&(u=0,r=""),a+=u*this.__indent_size,this.__ensure_cache(a),r+=this.__cache[a],r},g.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var u=this.__cache.length,a=0,r="";this.__indent_size&&u>=this.__indent_size&&(a=Math.floor(u/this.__indent_size),u-=a*this.__indent_size,r=new Array(a+1).join(this.__indent_string)),u&&(r+=new Array(u+1).join(" ")),this.__cache.push(r)};function p(u,a){this.__indent_cache=new g(u,a),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new O(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(u,a){return this.__indent_cache.get_indent_string(u,a)},p.prototype.get_indent_size=function(u,a){return this.__indent_cache.get_indent_size(u,a)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(u){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
|
|
`);return u!==`
|
|
`&&(r=r.replace(/[\n]/g,u)),r},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(u,a){return u=u||0,a=a||0,this.next_line.set_indent(u,a),this.__lines.length>1?(this.current_line.set_indent(u,a),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(u){for(var a=0;a<u.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(u.whitespace_before),this.current_line.push(u.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},p.prototype.add_token=function(u){this.__add_space_before_token(),this.current_line.push(u),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},p.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},p.prototype.remove_indent=function(u){for(var a=this.__lines.length;u<a;)this.__lines[u]._remove_indent(),u++;this.current_line._remove_wrap_indent()},p.prototype.trim=function(u){for(u=u===void 0?!1:u,this.current_line.trim();u&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(u,a){for(var r=this.__lines.length-2;r>=0;){var o=this.__lines[r];if(o.is_empty())break;if(o.item(0).indexOf(u)!==0&&o.item(-1)!==a){this.__lines.splice(r+1,0,new O(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=p},,,,function(e){function O(u,a){this.raw_options=g(u,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}O.prototype._get_array=function(u,a){var r=this.raw_options[u],o=a||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(o=r.concat()):typeof r=="string"&&(o=r.split(/[^a-zA-Z0-9_\/\-]+/)),o},O.prototype._get_boolean=function(u,a){var r=this.raw_options[u],o=r===void 0?!!a:!!r;return o},O.prototype._get_characters=function(u,a){var r=this.raw_options[u],o=a||"";return typeof r=="string"&&(o=r.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),o},O.prototype._get_number=function(u,a){var r=this.raw_options[u];a=parseInt(a,10),isNaN(a)&&(a=0);var o=parseInt(r,10);return isNaN(o)&&(o=a),o},O.prototype._get_selection=function(u,a,r){var o=this._get_selection_list(u,a,r);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+u+`' can only be one of the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[u]+"'");return o[0]},O.prototype._get_selection_list=function(u,a,r){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[a[0]],!this._is_valid_selection(r,a))throw new Error("Invalid Default Value!");var o=this._get_array(u,r);if(!this._is_valid_selection(o,a))throw new Error("Invalid Option Value: The option '"+u+`' can contain only the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[u]+"'");return o},O.prototype._is_valid_selection=function(u,a){return u.length&&a.length&&!u.some(function(r){return a.indexOf(r)===-1})};function g(u,a){var r={};u=p(u);var o;for(o in u)o!==a&&(r[o]=u[o]);if(a&&u[a])for(o in u[a])r[o]=u[a][o];return r}function p(u){var a={},r;for(r in u){var o=r.replace(/-/g,"_");a[o]=u[r]}return a}e.exports.Options=O,e.exports.normalizeOpts=p,e.exports.mergeOpts=g},,function(e){var O=RegExp.prototype.hasOwnProperty("sticky");function g(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var p=null;return this.hasNext()&&(p=this.__input.charAt(this.__position),this.__position+=1),p},g.prototype.peek=function(p){var u=null;return p=p||0,p+=this.__position,p>=0&&p<this.__input_length&&(u=this.__input.charAt(p)),u},g.prototype.__match=function(p,u){p.lastIndex=u;var a=p.exec(this.__input);return a&&!(O&&p.sticky)&&(a.index!==u&&(a=null)),a},g.prototype.test=function(p,u){return u=u||0,u+=this.__position,u>=0&&u<this.__input_length?!!this.__match(p,u):!1},g.prototype.testChar=function(p,u){var a=this.peek(u);return p.lastIndex=0,a!==null&&p.test(a)},g.prototype.match=function(p){var u=this.__match(p,this.__position);return u?this.__position+=u[0].length:u=null,u},g.prototype.read=function(p,u,a){var r="",o;return p&&(o=this.match(p),o&&(r+=o[0])),u&&(o||!p)&&(r+=this.readUntil(u,a)),r},g.prototype.readUntil=function(p,u){var a="",r=this.__position;p.lastIndex=this.__position;var o=p.exec(this.__input);return o?(r=o.index,u&&(r+=o[0].length)):r=this.__input_length,a=this.__input.substring(this.__position,r),this.__position=r,a},g.prototype.readUntilAfter=function(p){return this.readUntil(p,!0)},g.prototype.get_regexp=function(p,u){var a=null,r="g";return u&&O&&(r="y"),typeof p=="string"&&p!==""?a=new RegExp(p,r):p&&(a=new RegExp(p.source,r)),a},g.prototype.get_literal_regexp=function(p){return RegExp(p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(p){var u=this.__position,a=this.readUntilAfter(p);return this.__position=u,a},g.prototype.lookBack=function(p){var u=this.__position-1;return u>=p.length&&this.__input.substring(u-p.length,u).toLowerCase()===p},e.exports.InputScanner=g},,,,,function(e){function O(g,p){g=typeof g=="string"?g:g.source,p=typeof p=="string"?p:p.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+p,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+p,"g")}O.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var p={};this.__directive_pattern.lastIndex=0;for(var u=this.__directive_pattern.exec(g);u;)p[u[1]]=u[2],u=this.__directive_pattern.exec(g);return p},O.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=O},,function(e,O,g){var p=g(16).Beautifier,u=g(17).Options;function a(r,o){var s=new p(r,o);return s.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new u}},function(e,O,g){var p=g(17).Options,u=g(2).Output,a=g(8).InputScanner,r=g(13).Directives,o=new r(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,i=/\r\n|[\r\n]/g,n=/\s/,t=/(?:\s|\n)+/g,b=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,y=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function m(x,_){this._source_text=x||"",this._options=new p(_),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}m.prototype.eatString=function(x){var _="";for(this._ch=this._input.next();this._ch;){if(_+=this._ch,this._ch==="\\")_+=this._input.next();else if(x.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return _},m.prototype.eatWhitespace=function(x){for(var _=n.test(this._input.peek()),h=0;n.test(this._input.peek());)this._ch=this._input.next(),x&&this._ch===`
|
|
`&&((h===0||h<this._options.max_preserve_newlines)&&(h++,this._output.add_new_line(!0)));return _},m.prototype.foundNestedPseudoClass=function(){for(var x=0,_=1,h=this._input.peek(_);h;){if(h==="{")return!0;if(h==="(")x+=1;else if(h===")"){if(x===0)return!1;x-=1}else if(h===";"||h==="}")return!1;_++,h=this._input.peek(_)}return!1},m.prototype.print_string=function(x){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(x)},m.prototype.preserveSingleSpace=function(x){x&&(this._output.space_before_token=!0)},m.prototype.indent=function(){this._indentLevel++},m.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x=this._source_text,_=this._options.eol;_==="auto"&&(_=`
|
|
`,x&&s.test(x||"")&&(_=x.match(s)[0])),x=x.replace(i,`
|
|
`);var h=x.match(/^[\t ]*/)[0];this._output=new u(this._options,h),this._input=new a(x),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var d=0,l=!1,c=!1,v=!1,f=!1,T=!1,L=!1,P=this._ch,S=!1,A,H,D;A=this._input.read(t),H=A!=="",D=P,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),P=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var K=this._input.read(b),V=o.get_directives(K);V&&V.ignore==="start"&&(K+=o.readIgnored(this._input)),this.print_string(K),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(y)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(H),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var oe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);oe.match(/[ :]$/)&&(oe=this.eatString(": ").replace(/\s$/,""),this.print_string(oe),this._output.space_before_token=!0),oe=oe.replace(/\s$/,""),oe==="extend"?f=!0:oe==="import"&&(T=!0),oe in this.NESTED_AT_RULE?(this._nestedLevel+=1,oe in this.CONDITIONAL_GROUP_RULE&&(v=!0)):!l&&d===0&&oe.indexOf(":")!==-1&&(c=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(H),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")c&&(c=!1,this.outdent()),v?(v=!1,l=this._indentLevel>=this._nestedLevel):l=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&l&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(D==="("?this._output.space_before_token=!1:D!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),D==="{"&&this._output.trim(!0),T=!1,f=!1,c&&(this.outdent(),c=!1),this.print_string(this._ch),l=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var le=0;le<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;le++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[le])){S=!0;break}(l||v)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!f&&d===0?(this.print_string(":"),c||(c=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ce=D==='"'||D==="'";this.preserveSingleSpace(Ce||H),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")S=!1,d===0?(c&&(this.outdent(),c=!1),f=!1,T=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),d++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),d&&(d--,this.outdent()));else{var xe=!1;this._input.lookBack("with")&&(xe=!0),this.preserveSingleSpace(H||xe),this.print_string(this._ch),c&&D==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),L=!0):(this.eatWhitespace(),d++,this.indent())}else if(this._ch===")")d&&(d--,this.outdent()),L&&this._input.peek()===";"&&this._options.selector_separator_newline&&(L=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!c||L)&&d===0&&!T&&!f?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!c&&d===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&n.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(H),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),n.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ie=D==='"'||D==="'";this.preserveSingleSpace(ie||H),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&S&&this._output.add_new_line()}var Se=this._output.get_code(_);return Se},e.exports.Beautifier=m},function(e,O,g){var p=g(6).Options;function u(a){p.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s<o.length;s++)o[s]!=="expand"?this.brace_style="collapse":this.brace_style=o[s]}u.prototype=new p,e.exports.Options=u}],R={};function W(e){var O=R[e];if(O!==void 0)return O.exports;var g=R[e]={exports:{}};return C[e](g,g.exports,W),g.exports}var k=W(15);I=k})();var j=I;!(Q=[],M=function(){return{css_beautify:j}}.apply(ne,Q),M!==void 0&&(je.exports=M))})()},Vhoy:function(je,ne,N){"use strict";N.d(ne,"d",function(){return j}),N.d(ne,"e",function(){return C}),N.d(ne,"c",function(){return R}),N.d(ne,"b",function(){return W}),N.d(ne,"a",function(){return k});var Q=N("MI8n");class M{constructor(){this._icons=new Map,this._onDidRegister=new Q.b}add(e){const O=this._icons.get(e.id);O?e.description?O.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const I=new M,j=I;function C(e,O){return new W(e,O)}function R(e){return e?e.replace(/\$\((.*?)\)/g,(O,g)=>` ${g} `).trim():""}class W{constructor(e,O,g){this.id=e,this.definition=O,this.description=g,I.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var k;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const O=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function g(a){if(a instanceof W)return["codicon","codicon-"+a.id];const r=O.exec(a.id);if(!r)return g(W.error);let[,o,s]=r;const i=["codicon","codicon-"+o];return s&&i.push("codicon-modifier-"+s.substr(1)),i}e.asClassNameArray=g;function p(a){return g(a).join(" ")}e.asClassName=p;function u(a){return"."+g(a).join(".")}e.asCSSSelector=u})(k||(k={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(W||(W={}))},WaYH:function(je,ne,N){"use strict";var Q=N("rePB"),M=N("Ff2n"),I=N("VTBJ"),j=N("1OyB"),C=N("vuIU"),R=N("JX7q"),W=N("Ji7U"),k=N("LK+K"),e=N("q1tI"),O=N("TSYQ"),g=N.n(O),p=N("sboe"),u=N("OZM5"),a=function(x){var _=x.prefixCls,h=x.level,d=x.isStart,l=x.isEnd;if(!h)return null;for(var c="".concat(_,"-indent-unit"),v=[],f=0;f<h;f+=1){var T;v.push(e.createElement("span",{key:f,className:g()(c,(T={},Object(Q.a)(T,"".concat(c,"-start"),d[f+1]),Object(Q.a)(T,"".concat(c,"-end"),l[f+1]),Object(Q.a)(T,"".concat(c,"-end-first-level"),!f&&l[0]),T))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},v)},r=a,o=N("815F"),s="open",i="close",n="---",t=function(m){Object(W.a)(_,m);var x=Object(k.a)(_);function _(){var h;return Object(j.a)(this,_),h=x.apply(this,arguments),h.state={dragNodeHighlight:!1},h.onSelectorClick=function(d){var l=h.props.context.onNodeClick;l(d,Object(o.b)(h.props)),h.isSelectable()?h.onSelect(d):h.onCheck(d)},h.onSelectorDoubleClick=function(d){var l=h.props.context.onNodeDoubleClick;l(d,Object(o.b)(h.props))},h.onSelect=function(d){if(h.isDisabled())return;var l=h.props.context.onNodeSelect;d.preventDefault(),l(d,Object(o.b)(h.props))},h.onCheck=function(d){if(h.isDisabled())return;var l=h.props,c=l.disableCheckbox,v=l.checked,f=h.props.context.onNodeCheck;if(!h.isCheckable()||c)return;d.preventDefault();var T=!v;f(d,Object(o.b)(h.props),T)},h.onMouseEnter=function(d){var l=h.props.context.onNodeMouseEnter;l(d,Object(o.b)(h.props))},h.onMouseLeave=function(d){var l=h.props.context.onNodeMouseLeave;l(d,Object(o.b)(h.props))},h.onContextMenu=function(d){var l=h.props.context.onNodeContextMenu;l(d,Object(o.b)(h.props))},h.onDragStart=function(d){var l=h.props.context.onNodeDragStart;d.stopPropagation(),h.setState({dragNodeHighlight:!0}),l(d,Object(R.a)(h));try{d.dataTransfer.setData("text/plain","")}catch(c){}},h.onDragEnter=function(d){var l=h.props.context.onNodeDragEnter;d.preventDefault(),d.stopPropagation(),l(d,Object(R.a)(h))},h.onDragOver=function(d){var l=h.props.context.onNodeDragOver;d.preventDefault(),d.stopPropagation(),l(d,Object(R.a)(h))},h.onDragLeave=function(d){var l=h.props.context.onNodeDragLeave;d.stopPropagation(),l(d,Object(R.a)(h))},h.onDragEnd=function(d){var l=h.props.context.onNodeDragEnd;d.stopPropagation(),h.setState({dragNodeHighlight:!1}),l(d,Object(R.a)(h))},h.onDrop=function(d){var l=h.props.context.onNodeDrop;d.preventDefault(),d.stopPropagation(),h.setState({dragNodeHighlight:!1}),l(d,Object(R.a)(h))},h.onExpand=function(d){var l=h.props.context.onNodeExpand;l(d,Object(o.b)(h.props))},h.setSelectHandle=function(d){h.selectHandle=d},h.getNodeState=function(){var d=h.props.expanded;return h.isLeaf()?null:d?s:i},h.hasChildren=function(){var d=h.props.eventKey,l=h.props.context.keyEntities,c=l[d]||{},v=c.children;return!!(v||[]).length},h.isLeaf=function(){var d=h.props,l=d.isLeaf,c=d.loaded,v=h.props.context.loadData,f=h.hasChildren();return l===!1?!1:l||!v&&!f||v&&c&&!f},h.isDisabled=function(){var d=h.props.disabled,l=h.props.context.disabled;return!!(l||d)},h.isCheckable=function(){var d=h.props.checkable,l=h.props.context.checkable;return!l||d===!1?!1:l},h.syncLoadData=function(d){var l=d.expanded,c=d.loading,v=d.loaded,f=h.props.context,T=f.loadData,L=f.onNodeLoad;if(c)return;T&&l&&!h.isLeaf()&&(!h.hasChildren()&&!v&&L(Object(o.b)(h.props)))},h.renderSwitcher=function(){var d=h.props,l=d.expanded,c=d.switcherIcon,v=h.props.context,f=v.prefixCls,T=v.switcherIcon,L=c||T;if(h.isLeaf())return e.createElement("span",{className:g()("".concat(f,"-switcher"),"".concat(f,"-switcher-noop"))},typeof L=="function"?L(Object(I.a)(Object(I.a)({},h.props),{},{isLeaf:!0})):L);var P=g()("".concat(f,"-switcher"),"".concat(f,"-switcher_").concat(l?s:i));return e.createElement("span",{onClick:h.onExpand,className:P},typeof L=="function"?L(Object(I.a)(Object(I.a)({},h.props),{},{isLeaf:!1})):L)},h.renderCheckbox=function(){var d=h.props,l=d.checked,c=d.halfChecked,v=d.disableCheckbox,f=h.props.context.prefixCls,T=h.isDisabled(),L=h.isCheckable();if(!L)return null;var P=typeof L!="boolean"?L:null;return e.createElement("span",{className:g()("".concat(f,"-checkbox"),l&&"".concat(f,"-checkbox-checked"),!l&&c&&"".concat(f,"-checkbox-indeterminate"),(T||v)&&"".concat(f,"-checkbox-disabled")),onClick:h.onCheck},P)},h.renderIcon=function(){var d=h.props.loading,l=h.props.context.prefixCls;return e.createElement("span",{className:g()("".concat(l,"-iconEle"),"".concat(l,"-icon__").concat(h.getNodeState()||"docu"),d&&"".concat(l,"-icon_loading"))})},h.renderSelector=function(){var d=h.state.dragNodeHighlight,l=h.props,c=l.title,v=l.selected,f=l.icon,T=l.loading,L=l.data,P=h.props.context,S=P.prefixCls,A=P.showIcon,H=P.icon,D=P.draggable,K=P.loadData,V=P.titleRender,oe=h.isDisabled(),le="".concat(S,"-node-content-wrapper"),Ce;if(A){var xe=f||H;Ce=xe?e.createElement("span",{className:g()("".concat(S,"-iconEle"),"".concat(S,"-icon__customize"))},typeof xe=="function"?xe(h.props):xe):h.renderIcon()}else K&&T&&(Ce=h.renderIcon());var ie;typeof c=="function"?ie=c(L):V?ie=V(L):ie=c;var Se=e.createElement("span",{className:"".concat(S,"-title")},ie);return e.createElement("span",{ref:h.setSelectHandle,title:typeof c=="string"?c:"",className:g()("".concat(le),"".concat(le,"-").concat(h.getNodeState()||"normal"),!oe&&(v||d)&&"".concat(S,"-node-selected"),!oe&&D&&"draggable"),draggable:!oe&&D||void 0,"aria-grabbed":!oe&&D||void 0,onMouseEnter:h.onMouseEnter,onMouseLeave:h.onMouseLeave,onContextMenu:h.onContextMenu,onClick:h.onSelectorClick,onDoubleClick:h.onSelectorDoubleClick,onDragStart:D?h.onDragStart:void 0},Ce,Se)},h}return Object(C.a)(_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var d=this.props.selectable,l=this.props.context.selectable;return typeof d=="boolean"?d:l}},{key:"render",value:function(){var d,l=this.props,c=l.eventKey,v=l.className,f=l.style,T=l.dragOver,L=l.dragOverGapTop,P=l.dragOverGapBottom,S=l.isLeaf,A=l.isStart,H=l.isEnd,D=l.expanded,K=l.selected,V=l.checked,oe=l.halfChecked,le=l.loading,Ce=l.domRef,xe=l.active,ie=l.onMouseMove,Se=Object(M.a)(l,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Pe=this.props.context,de=Pe.prefixCls,$=Pe.filterTreeNode,Ne=Pe.draggable,lt=Pe.keyEntities,it=this.isDisabled(),Je=Object(u.f)(Se),at=lt[c]||{},Ue=at.level,ze=H[H.length-1];return e.createElement("div",Object.assign({ref:Ce,className:g()(v,"".concat(de,"-treenode"),(d={},Object(Q.a)(d,"".concat(de,"-treenode-disabled"),it),Object(Q.a)(d,"".concat(de,"-treenode-switcher-").concat(D?"open":"close"),!S),Object(Q.a)(d,"".concat(de,"-treenode-checkbox-checked"),V),Object(Q.a)(d,"".concat(de,"-treenode-checkbox-indeterminate"),oe),Object(Q.a)(d,"".concat(de,"-treenode-selected"),K),Object(Q.a)(d,"".concat(de,"-treenode-loading"),le),Object(Q.a)(d,"".concat(de,"-treenode-active"),xe),Object(Q.a)(d,"".concat(de,"-treenode-leaf-last"),ze),Object(Q.a)(d,"drag-over",!it&&T),Object(Q.a)(d,"drag-over-gap-top",!it&&L),Object(Q.a)(d,"drag-over-gap-bottom",!it&&P),Object(Q.a)(d,"filter-node",$&&$(Object(o.b)(this.props))),d)),style:f,onDragEnter:Ne?this.onDragEnter:void 0,onDragOver:Ne?this.onDragOver:void 0,onDragLeave:Ne?this.onDragLeave:void 0,onDrop:Ne?this.onDrop:void 0,onDragEnd:Ne?this.onDragEnd:void 0,onMouseMove:ie},Je),e.createElement(r,{prefixCls:de,level:Ue,isStart:A,isEnd:H}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(e.Component),b=function(x){return e.createElement(p.a.Consumer,null,function(_){return e.createElement(t,Object.assign({},x,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:n},b.isTreeNode=1;var y=ne.a=b},Y1PL:function(je,ne,N){"use strict";N.r(ne),N.d(ne,"ResizableTextArea",function(){return oe});var Q=N("wx14"),M=N("1OyB"),I=N("vuIU"),j=N("Ji7U"),C=N("LK+K"),R=N("q1tI"),W=N("VTBJ"),k=N("rePB"),e=N("Zm9Q"),O=N("Kwbf"),g=N("c+Xe"),p=N("m+aA"),u=N("bdgK"),a=new Map;function r(xe){xe.forEach(function(ie){var Se,Pe=ie.target;(Se=a.get(Pe))===null||Se===void 0||Se.forEach(function(de){return de(Pe)})})}var o=new u.default(r),s=null,i=null;function n(xe,ie){a.has(xe)||(a.set(xe,new Set),o.observe(xe)),a.get(xe).add(ie)}function t(xe,ie){a.has(xe)&&(a.get(xe).delete(ie),a.get(xe).size||(o.unobserve(xe),a.delete(xe)))}var b=function(xe){Object(j.a)(Se,xe);var ie=Object(C.a)(Se);function Se(){return Object(M.a)(this,Se),ie.apply(this,arguments)}return Object(I.a)(Se,[{key:"render",value:function(){return this.props.children}}]),Se}(R.Component),y=R.createContext(null);function m(xe){var ie=xe.children,Se=xe.onBatchResize,Pe=R.useRef(0),de=R.useRef([]),$=R.useContext(y),Ne=R.useCallback(function(lt,it,Je){Pe.current+=1;var at=Pe.current;de.current.push({size:lt,element:it,data:Je}),Promise.resolve().then(function(){at===Pe.current&&(Se==null||Se(de.current),de.current=[])}),$==null||$(lt,it,Je)},[Se,$]);return R.createElement(y.Provider,{value:Ne},ie)}function x(xe){var ie=xe.children,Se=xe.disabled,Pe=R.useRef(null),de=R.useRef(null),$=R.useContext(y),Ne=R.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),lt=R.isValidElement(ie)&&Object(g.c)(ie),it=lt?ie.ref:null,Je=R.useMemo(function(){return Object(g.a)(it,Pe)},[it,Pe]),at=R.useRef(xe);at.current=xe;var Ue=R.useCallback(function(ze){var et=at.current,ee=et.onResize,ge=et.data,_e=ze.getBoundingClientRect(),we=_e.width,Ve=_e.height,Ze=ze.offsetWidth,rt=ze.offsetHeight,$e=Math.floor(we),ft=Math.floor(Ve);if(Ne.current.width!==$e||Ne.current.height!==ft||Ne.current.offsetWidth!==Ze||Ne.current.offsetHeight!==rt){var ht={width:$e,height:ft,offsetWidth:Ze,offsetHeight:rt};Ne.current=ht;var ye=Ze===Math.round(we)?we:Ze,Ae=rt===Math.round(Ve)?Ve:rt,ke=Object(W.a)(Object(W.a)({},ht),{},{offsetWidth:ye,offsetHeight:Ae});$==null||$(ke,ze,ge),ee&&Promise.resolve().then(function(){ee(ke,ze)})}},[]);return R.useEffect(function(){var ze=Object(p.a)(Pe.current)||Object(p.a)(de.current);return ze&&!Se&&n(ze,Ue),function(){return t(ze,Ue)}},[Pe.current,Se]),R.createElement(b,{ref:de},lt?R.cloneElement(ie,{ref:Je}):ie)}var _="rc-observer-key";function h(xe){var ie=xe.children,Se=Object(e.a)(ie);return Se.map(function(Pe,de){var $=(Pe==null?void 0:Pe.key)||"".concat(_,"-").concat(de);return R.createElement(x,Object(Q.a)({},xe,{key:$}),Pe)})}h.Collection=m;var d=h,l=N("bT9E"),c=N("TSYQ"),v=N.n(c),f=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important
|
|
`,T=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],L={},P;function S(xe){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se=xe.getAttribute("id")||xe.getAttribute("data-reactid")||xe.getAttribute("name");if(ie&&L[Se])return L[Se];var Pe=window.getComputedStyle(xe),de=Pe.getPropertyValue("box-sizing")||Pe.getPropertyValue("-moz-box-sizing")||Pe.getPropertyValue("-webkit-box-sizing"),$=parseFloat(Pe.getPropertyValue("padding-bottom"))+parseFloat(Pe.getPropertyValue("padding-top")),Ne=parseFloat(Pe.getPropertyValue("border-bottom-width"))+parseFloat(Pe.getPropertyValue("border-top-width")),lt=T.map(function(Je){return"".concat(Je,":").concat(Pe.getPropertyValue(Je))}).join(";"),it={sizingStyle:lt,paddingSize:$,borderSize:Ne,boxSizing:de};return ie&&Se&&(L[Se]=it),it}function A(xe){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),xe.getAttribute("wrap")?P.setAttribute("wrap",xe.getAttribute("wrap")):P.removeAttribute("wrap");var de=S(xe,ie),$=de.paddingSize,Ne=de.borderSize,lt=de.boxSizing,it=de.sizingStyle;P.setAttribute("style","".concat(it,";").concat(f)),P.value=xe.value||xe.placeholder||"";var Je=Number.MIN_SAFE_INTEGER,at=Number.MAX_SAFE_INTEGER,Ue=P.scrollHeight,ze;if(lt==="border-box"?Ue+=Ne:lt==="content-box"&&(Ue-=$),Se!==null||Pe!==null){P.value=" ";var et=P.scrollHeight-$;Se!==null&&(Je=et*Se,lt==="border-box"&&(Je=Je+$+Ne),Ue=Math.max(Je,Ue)),Pe!==null&&(at=et*Pe,lt==="border-box"&&(at=at+$+Ne),ze=Ue>at?"":"hidden",Ue=Math.min(at,Ue))}return{height:Ue,minHeight:Je,maxHeight:at,overflowY:ze,resize:"none"}}var H=N("Gytx"),D=N.n(H),K;(function(xe){xe[xe.NONE=0]="NONE",xe[xe.RESIZING=1]="RESIZING",xe[xe.RESIZED=2]="RESIZED"})(K||(K={}));var V=function(xe){Object(j.a)(Se,xe);var ie=Object(C.a)(Se);function Se(Pe){var de;return Object(M.a)(this,Se),de=ie.call(this,Pe),de.nextFrameActionId=void 0,de.resizeFrameId=void 0,de.textArea=void 0,de.saveTextArea=function($){de.textArea=$},de.handleResize=function($){var Ne=de.state.resizeStatus,lt=de.props,it=lt.autoSize,Je=lt.onResize;if(Ne!==K.NONE)return;typeof Je=="function"&&Je($),it&&de.resizeOnNextFrame()},de.resizeOnNextFrame=function(){cancelAnimationFrame(de.nextFrameActionId),de.nextFrameActionId=requestAnimationFrame(de.resizeTextarea)},de.resizeTextarea=function(){var $=de.props.autoSize;if(!$||!de.textArea)return;var Ne=$.minRows,lt=$.maxRows,it=A(de.textArea,!1,Ne,lt);de.setState({textareaStyles:it,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(de.resizeFrameId),de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:K.RESIZED},function(){de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:K.NONE}),de.fixFirefoxAutoScroll()})})})})},de.renderTextArea=function(){var $=de.props,Ne=$.prefixCls,lt=Ne===void 0?"rc-textarea":Ne,it=$.autoSize,Je=$.onResize,at=$.className,Ue=$.disabled,ze=de.state,et=ze.textareaStyles,ee=ze.resizeStatus,ge=Object(l.a)(de.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=v()(lt,at,Object(k.a)({},"".concat(lt,"-disabled"),Ue));"value"in ge&&(ge.value=ge.value||"");var we=Object(W.a)(Object(W.a)(Object(W.a)({},de.props.style),et),ee===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return R.createElement(d,{onResize:de.handleResize,disabled:!(it||Je)},R.createElement("textarea",Object(Q.a)({},ge,{className:_e,style:we,ref:de.saveTextArea})))},de.state={textareaStyles:{},resizeStatus:K.NONE},de}return Object(I.a)(Se,[{key:"componentDidUpdate",value:function(de){(de.value!==this.props.value||!D()(de.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 de=this.textArea.selectionStart,$=this.textArea.selectionEnd;this.textArea.setSelectionRange(de,$)}}catch(Ne){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Se}(R.Component),oe=V,le=function(xe){Object(j.a)(Se,xe);var ie=Object(C.a)(Se);function Se(Pe){var de;Object(M.a)(this,Se),de=ie.call(this,Pe),de.resizableTextArea=void 0,de.focus=function(){de.resizableTextArea.textArea.focus()},de.saveTextArea=function(Ne){de.resizableTextArea=Ne},de.handleChange=function(Ne){var lt=de.props.onChange;de.setValue(Ne.target.value,function(){de.resizableTextArea.resizeTextarea()}),lt&<(Ne)},de.handleKeyDown=function(Ne){var lt=de.props,it=lt.onPressEnter,Je=lt.onKeyDown;Ne.keyCode===13&&it&&it(Ne),Je&&Je(Ne)};var $=typeof Pe.value=="undefined"||Pe.value===null?Pe.defaultValue:Pe.value;return de.state={value:$},de}return Object(I.a)(Se,[{key:"setValue",value:function(de,$){"value"in this.props||this.setState({value:de},$)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return R.createElement(oe,Object(Q.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(de){return"value"in de?{value:de.value}:null}}]),Se}(R.Component),Ce=ne.default=le},ZJlW:function(je,ne,N){je.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},ZW9T:function(je,ne,N){"use strict";N.d(ne,"a",function(){return H});var Q=N("k1fw"),M=N("oBTY"),I=N("miYZ"),j=N("tsqr"),C=N("rAM+"),R=N("tJVT"),W=N("PpiC"),k=N("q1tI"),e=N.n(k),O=N("bdgK"),g=N("9og8"),p=N("WmNS"),u=N.n(p),a={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},r={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},o={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},s={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},i=N("5VLF"),n=N.n(i),t={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},b=function(K,V){return V.map(function(oe){return{label:oe,kind:K.languages.CompletionItemKind.Keyword,insertText:oe}})},y=function(K){return Object.keys(t.tables).map(function(V){return{label:V,kind:K.languages.CompletionItemKind.Variable,insertText:V}})},m=function(K,V){var oe=t.tables[K];return oe?oe.map(function(le){return{label:le,kind:V.languages.CompletionItemKind.Field,insertText:le}}):[]};function x(D,K,V,oe,le){var Ce=K.getWordUntilPosition(V),xe={startLineNumber:V.lineNumber,endLineNumber:V.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},ie=oe.map(function(Se){return{label:Se,kind:D.languages.CompletionItemKind.Keyword,insertText:Se,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}});return le.map(function(Se){ie.push(Object(Q.a)(Object(Q.a)({},Se),{},{range:xe}))}),ie}var _=function(D){t.languages.map(function(le){return D.languages.registerDocumentFormattingEditProvider(le,{provideDocumentFormattingEdits:function(xe,ie,Se){return Object(g.a)(u.a.mark(function Pe(){var de;return u.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return de=n()(xe.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),Ne.abrupt("return",[{range:xe.getFullModelRange(),text:de}]);case 2:case"end":return Ne.stop()}},Pe)}))()}}),le});var K=o.quickKey.map(function(le){return{label:le.label,kind:D.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),V=s.quickKey.map(function(le){return{label:le.label,kind:D.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),oe=r.quickKey.map(function(le){return{label:le.label,kind:D.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}});D.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ce,xe){var ie=Ce.getWordUntilPosition(xe),Se={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},Pe=Ce.getLineContent(xe.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[].concat(Object(M.a)(o.keywords.map(function(de){return{label:de,kind:D.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(M.a)(o.quickKey.map(function(de){return{label:de.label,kind:D.languages.CompletionItemKind.Function,documentation:de.content,insertText:Pe.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}}),D.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ce,xe){var ie=Ce.getWordUntilPosition(xe),Se={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn};return{suggestions:Object(M.a)(a.keywords.map(function(Pe){return{label:Pe,kind:D.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}}))}}}),D.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ce,xe){var ie=Ce.getWordUntilPosition(xe),Se={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},Pe=Ce.getLineContent(xe.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[].concat(Object(M.a)(r.keywords.map(function(de){return{label:de,kind:D.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(M.a)(r.quickKey.map(function(de){return{label:de.label,kind:D.languages.CompletionItemKind.Function,documentation:de.content,insertText:Pe.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}}),D.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ce,xe){var ie=Ce.getWordUntilPosition(xe),Se={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},Pe=Ce.getLineContent(xe.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[].concat(Object(M.a)(s.keywords.map(function(de){return{label:de,kind:D.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(M.a)(s.quickKey.map(function(de){return{label:de.label,kind:D.languages.CompletionItemKind.Function,documentation:de.content,insertText:Pe.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}})},h="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",d=N("fjLI"),l=N("LvDl"),c=N("+ua5");function v(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}function f(){}var T=!1,L={"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 P(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=D;if(Array.isArray(D)){for(var V=0;V<D.length;V++){var oe=L[D[V]];if(oe)return oe}return K[0]}return L[K]||K}var S=null,A=ne.b=function(D){var K=D.width,V=K===void 0?"100%":K,oe=D.height,le=oe===void 0?"100%":oe,Ce=D.value,xe=D.language,ie=xe===void 0?"javascript":xe,Se=D.style,Pe=Se===void 0?{}:Se,de=D.options,$=de===void 0?{}:de,Ne=D.overrideServices,lt=Ne===void 0?{}:Ne,it=D.theme,Je=it===void 0?"vs-dark":it,at=D.onEditBlur,Ue=D.onSave,ze=D.autoHeight,et=ze===void 0?!1:ze,ee=D.forbidCopy,ge=ee===void 0?!1:ee,_e=D.onChange,we=_e===void 0?f:_e,Ve=D.editorDidMount,Ze=Ve===void 0?f:Ve,rt=D.onFocus,$e=rt===void 0?f:rt,ft=D.filename,ht=ft===void 0?"educoder.txt":ft,ye=D.errorLine,Ae=D.errorContent,ke=Ae===void 0?"":Ae,He=Object(W.a)(D,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Ie=Object(k.useRef)(),Le=Object(k.useRef)({}),fe=Object(k.useRef)(),re=Object(k.useRef)(),ae=Object(k.useRef)(!1),Y=Object(k.useRef)(),J=Object(k.useState)(!1),Z=Object(R.a)(J,2),se=Z[0],Ee=Z[1];function De(){var gt;return Ie.current&&(gt=new O.default(function(vt){var wt=Object(C.a)(vt),pt;try{for(wt.s();!(pt=wt.n()).done;){var tn=pt.value;(tn.target.offsetHeight>0||tn.target.offsetWidth>0)&&Le.current.instance.layout()}}catch(Yt){wt.e(Yt)}finally{wt.f()}}),gt.observe(Ie.current)),gt}function Ke(){j.b.warn(decodeURIComponent(h))}var ut=function(){var vt=Le.current.instance;if(Ce!=null&&vt&&se){var wt=vt.getModel();wt&&Ce!==wt.getValue()&&(T=!0,wt.setValue(Ce),vt.layout(),T=!1)}};Object(k.useEffect)(function(){re.current&&clearTimeout(re.current),re.current=setTimeout(function(){ut()},500)},[Ce,se,Le.current]),Object(k.useEffect)(function(){if(ye&&Le.current&&Le.current.instance){var gt=Le.current.instance;gt.changeViewZones(function(wt){var pt=document.createElement("div");pt.style.padding="10px 20px",pt.style.width="calc(100% - 20px)",pt.className="my-error-line-wrp",pt.innerHTML=ke,wt.addZone({afterLineNumber:ye||11,heightInLines:3,domNode:pt})});var vt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};gt.addOverlayWidget(vt),gt.revealPositionInCenter({lineNumber:20,column:1})}},[ye,Le.current,se]);function ct(){var gt=Le.current.instance;if(gt){var vt=gt.getSelection(),wt=Le.current.pastePos||{},pt=new S.Range(wt.startLineNumber||vt.endLineNumber,wt.startColumn||vt.endColumn,wt.endLineNumber||vt.endLineNumber,wt.endColumn||vt.endColumn);setTimeout(function(){gt.executeEdits("",[{range:pt,text:""}])},300)}}function Oe(gt){(window.navigator.platform.match("Mac")?gt.metaKey:gt.ctrlKey)&>.keyCode==83&&(gt.preventDefault(),Ue())}var ot=function(){if(et&&Le.current.instance){var vt=Le.current.instance.getContentHeight();qe(vt<le?le:vt)}else qe(le)};function st(gt){var vt=document.createEvent("MouseEvents");vt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),gt.dispatchEvent(vt)}function Qe(gt,vt){var wt=window.URL||window.webkitURL||window,pt=new Blob([vt]),tn=document.createElementNS("http://www.w3.org/1999/xhtml","a");tn.href=wt.createObjectURL(pt),tn.download=gt,st(tn)}Object(k.useEffect)(function(){ot()},[ot]),Object(k.useEffect)(function(){Ie.current&&!se&&Promise.all([N.e(16),N.e(28)]).then(N.t.bind(null,"M/lh",7)).then(function(gt){try{S=gt,Le.current.instance=S.editor.create(Ie.current,{value:Ce,language:P(ie),theme:Je,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},lt);var vt=Le.current.instance,wt=d.d._menuItems,pt=Object(M.a)(wt).find(function(At){return At[0]._debugName=="EditorContext"}),tn=pt[1],Yt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],cn=function(Ft,fn){var ln=Ft._first;do{var Tn,Mn,Vn=fn.includes((Tn=ln.element)===null||Tn===void 0||((Mn=Tn.command)===null||Mn===void 0)?void 0:Mn.id);Vn&&Ft._remove(ln)}while(ln=ln.next)};if(Ze(vt,S),setTimeout(function(){ot(),Le.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Qe(ht||"educoder.txt",vt.getValue())}}),vt.getDomNode().addEventListener("input",function(){fe.current.autoFormat&&vt.getAction("editor.action.formatDocument").run()})},500),Le.current.subscription=vt.onDidChangeModelContent(function(At){ae.current?clearTimeout(Y.current):(ot(),we(vt.getValue(),At)),Y.current=setTimeout(function(){ae.current=!1},500)}),window.Monaco||_(S,P(ie)),ge&&(cn(tn,Yt),Ie.current.classList.add("noCopyPaste"),vt.onKeyDown(function(At){var Ft=At.keyCode,fn=At.ctrlKey,ln=At.metaKey;(Ft===33||Ft===52)&&(ln||fn)&&(Ke(),At.preventDefault())})),window.Monaco=S,at&&vt.onDidBlurEditorWidget(function(){at(vt.getValue())}),$e&&vt.onDidFocusEditorText(function(){$e(vt.getValue())}),ge){vt.addCommand(S.KeyMod.CtrlCmd|S.KeyCode.KEY_V,function(){return Ke(),null}),vt.onDidPaste(function(At){Le.current.pastePos=At});try{window.addEventListener("paste",ct)}catch(At){}}var Ht=De();return Ee(!0),function(){var At=Le.current.instance;At.dispose();var Ft=At.getModel();Ft&&Ft.dispose(),Le.current.subscription&&Le.current.subscription.dispose(),ge&&window.removeEventListener("paste",ct),Ht.unobserve(Ie.current)}}catch(At){}})},[]),Object(k.useEffect)(function(){var gt=Le.current.instance;if(gt&&se)return document.addEventListener("keydown",Oe,!1),function(){document.removeEventListener("keydown",Oe)}},[Ue,se]),Object(k.useEffect)(function(){var gt=Le.current.instance;if(gt&&se){var vt=P(ie);S.editor.setModelLanguage(gt.getModel(),vt),console.log("language:",ie,gt.getModel(),vt)}},[ie,se]),Object(k.useEffect)(function(){var gt=Le.current.instance;gt&&se&&S.editor.setTheme(Je)},[Je,se]),Object(k.useEffect)(function(){var gt=Le.current.instance;fe.current=$,gt&&se&&(gt.updateOptions(Object(Q.a)({},$)),setTimeout(function(){gt.getModel().updateOptions(Object(Q.a)({},$))},200))},[JSON.stringify($),se]),Object(k.useEffect)(function(){var gt=Le.current.instance;gt&&se&>.layout()},[V,le,se]);var _t=Object(k.useState)(v(V)),Tt=Object(R.a)(_t,2),Et=Tt[0],Rt=Tt[1],bt=Object(k.useState)(v(le)),xt=Object(R.a)(bt,2),Ot=xt[0],qe=xt[1],Bt=Object(Q.a)(Object(Q.a)({},Pe),{},{width:Et,height:Ot});return e.a.createElement("div",{className:"my-monaco-editor",ref:Ie,style:Bt})};function H(D){var K=D.width,V=K===void 0?"100%":K,oe=D.height,le=oe===void 0?"100%":oe,Ce=D.original,xe=D.modified,ie=D.language,Se=D.options,Pe=Se===void 0?{}:Se,de=Object(k.useRef)(),$=Object(k.useState)(null),Ne=Object(R.a)($,2),lt=Ne[0],it=Ne[1];function Je(et){var ee;return de.current&&(ee=new O.default(function(ge){var _e=Object(C.a)(ge),we;try{for(_e.s();!(we=_e.n()).done;){var Ve=we.value;(Ve.target.offsetHeight>0||Ve.target.offsetWidth>0)&&et.layout()}}catch(Ze){_e.e(Ze)}finally{_e.f()}}),ee.observe(de.current)),ee}Object(k.useEffect)(function(){de.current&&Promise.all([N.e(16),N.e(28)]).then(N.t.bind(null,"M/lh",7)).then(function(et){S=et;var ee=S.editor.createDiffEditor(de.current,Object(Q.a)(Object(Q.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},Pe),{},{wordWrap:!0}));it(ee);var ge=Je(ee);return function(){ee.dispose();var _e=ee.getModel();_e&&_e.dispose(),ge.unobserve(de.current)}})},[]),Object(k.useEffect)(function(){lt&<.setModel({original:S.editor.createModel(Ce,ie),modified:S.editor.createModel(xe,ie)})},[Ce,xe,ie,lt]);var at=v(V),Ue=v(le),ze={width:at,height:Ue};return e.a.createElement("div",{className:"my-diff-editor",ref:de,style:ze})}},a2OE:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAkCAYAAABR/76qAAAAAXNSR0IArs4c6QAAE31JREFUeF61W3uQVcWZ/3137oxP1DE+EWIUJFlQkHkoougiz+ExvIe54COru6ZWk2xqd2OybKViWWWy1tZWLLc2q8ZH/nCYYRBkBIcBS6NRAZ2HjgiiEDQDioiAiAozc7u/re4+3afPuefeubDlqYI799zTp/v07/t970OIHbzj1gfBOAPMfWDuBWQfkBWQEAB/iSvp90QrhR3G2+dfjGPH7gCLXgC9kKIXRMdxevlqGrXyK97yt/WQ2e9Bci+Ie8GyDyzUvQQgD9GErnXxNRTzndcN/h8Qv0Mz9z1azPXfxjXcjOkQmApCLzj4l0IvStFIC7BvoDm5GbWQWACgBIy0/jT/tlEGvxpovPqdcgG8rYelGAqWADPsJ4GPAFRDo1du9sdw58xKltkOgEHB9cwSVJIaRtUv7ubXJ7QwRK36TZ1X9yMwAN4H8HS6seudYhYambN18MMQ8ieAZDD+kWo/i4DIz59/EY73nW7GKLmKH8dPbEqBL6gOh3L2qhG/AuN+d97uZgnGUx0i+5Q0Ia/AjRB4JWc8cIgy+E4xi8wFcPutPQypAbSbTsxHwKmbacyKrpyH6JhVAfR3sgwB1wBZADdPaGEhagnmdw0u8V8hUxPppjc/LGaRju18XwrPP/6/gLxLrU/NSaRBvJvmfP6Iu271oLWQclYohEphKGEMBFILkDmlD7UL9m//uzpPOIYUqqgO2/MCGB+fDgHkJvwIEkv02BSgtkF/mvnTYIzPM/9rSOmrzZjk8W8nA8gBA9VT6U1CO1218ppEKeqYVcHc36kA0iDqjVIMLAkYeH0LwLUGYMs+2UA3dt5yQuBtG1mGvx59GlIuYhaGxQ4Qqb7cTXMOaxD5mTPWgnmWWYvS1laT2PXFgLO7oED0wTAA3kP1+H3is1sGxsd7DOQmKJN0b6Kw2LkKzZ+0JnMui1JckwDg0h5mHuoAYVZS3k5XrXIA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QllLpX9uT/pNTenRLh77r9Bigkg+QkE7wFjJ1Lpl6niuU8KSSRvuu4SSPmzyDsSyrssPe23NH7zIX5xpCrbjNK/6zKg6lERXTR1d2Oxkq4FZfVZ0yHFJCM1wfsYSlSJHqOFvQU7tLkRvwG0c3IYhC/A+FyFDEhjKyTeojokvtY20Pq4EYvBWOpCa/vyZhr30kLssOO5GTdB4AGU4TZagN357suNqAJ0nfIgGAdB2AuJXUhjZ741/h9lg+MKrzmoaAAAAABJRU5ErkJggg=="},bT9E:function(je,ne,N){"use strict";N.d(ne,"a",function(){return M});var Q=N("VTBJ");function M(I,j){var C=Object(Q.a)({},I);return Array.isArray(j)&&j.forEach(function(R){delete C[R]}),C}},biw7:function(je,ne,N){"use strict";var Q=N("q1tI"),M=N.n(Q),I=Q.createContext(null);ne.a=I},cFMs:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF61XQl4VdW1/m9GIAlhDGEIBATB2aetvCfYwYoDqKioVZGi4vxq9VlHVNSqtCA+obaKoBat4gRiHVBQBH2aiG3VKgIhYQhhyEQIhAwkuee8b49n7X32ubkRe7+PL3c4e5999vr3v/619jqHGH7gl+/7qdhSdAI8nAJgFHx/FHwUwPdyAOQAfgZ8X55V/mWf2b8YxF/+Ir/xj+R7/V4ed6jt2blUn3ocpG91fjU+dQwdl++RmWT9qWug79Wl0WPJ5fL+AcTYG/aKyXlhf8VH4zt1jB4faWfblfZL+1LHGedVX6r+aGd6kMEYla1CWIqJIR/qy/f/kY6y9vGAdzmAcfC83BBAFGgMoBAj6AtVxrYARo2r+yJANABJjGqDIQRkBV4FYPbZ08MXb+hY1Htybn5NtH1UG8cxDEzqawUs/Vl1G5OLT9lUmk0BRYNDfS87UH0rYKohG1anHxxwMPqmA3Oghp+PXKNaE98XYH5FUVe04BYg9lv4fm8+UzYD8YsiKzaKiZSROgIA/Z1eTKg9WZr2OU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BKP8NEV+n3GGS5/9/aODhUXT7opcAAAAASUVORK5CYII="},cz0n:function(je,ne,N){je.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},"f0W+":function(je,ne,N){je.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(je,ne,N){je.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fjLI:function(je,ne,N){"use strict";N.d(ne,"f",function(){return u}),N.d(ne,"b",function(){return a}),N.d(ne,"a",function(){return r}),N.d(ne,"d",function(){return o}),N.d(ne,"e",function(){return s}),N.d(ne,"c",function(){return i});var Q=N("8HAY"),M=N("Vhoy"),I=N("MI8n"),j=N("JYp7"),C=N("pmY6"),R=N("24hK"),W=N("nnTU"),k=N("T8No"),e=N("Cg/j"),O=N("t9D7"),g=function(n,t,b,y){var m=arguments.length,x=m<3?t:y===null?y=Object.getOwnPropertyDescriptor(t,b):y,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(n,t,b,y);else for(var h=n.length-1;h>=0;h--)(_=n[h])&&(x=(m<3?_(x):m>3?_(t,b,x):_(t,b))||x);return m>3&&x&&Object.defineProperty(t,b,x),x},p=function(n,t){return function(b,y){t(b,y,n)}};function u(n){return n.command!==void 0}class a{constructor(n){this.id=a._idPool++,this._debugName=n}}a._idPool=0,a.CommandPalette=new a("CommandPalette"),a.EditorContext=new a("EditorContext"),a.SimpleEditorContext=new a("SimpleEditorContext"),a.EditorContextCopy=new a("EditorContextCopy"),a.EditorContextPeek=new a("EditorContextPeek"),a.MenubarEditMenu=new a("MenubarEditMenu"),a.MenubarCopy=new a("MenubarCopy"),a.MenubarGoMenu=new a("MenubarGoMenu"),a.MenubarSelectionMenu=new a("MenubarSelectionMenu"),a.InlineCompletionsActions=new a("InlineCompletionsActions");const r=Object(e.c)("menuService"),o=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new I.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:n=>n===a.CommandPalette}}addCommand(n){return this.addCommands(j.a.single(n))}addCommands(n){for(const t of n)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(C.i)(()=>{let t=!1;for(const b of n)t=this._commands.delete(b.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(n){return this._commands.get(n)}getCommands(){const n=new Map;return this._commands.forEach((t,b)=>n.set(b,t)),n}appendMenuItem(n,t){return this.appendMenuItems(j.a.single({id:n,item:t}))}appendMenuItems(n){const t=new Set,b=new R.a;for(const{id:y,item:m}of n){let x=this._menuItems.get(y);x||(x=new R.a,this._menuItems.set(y,x)),b.push(x.push(m)),t.add(y)}return this._onDidChangeMenu.fire(t),Object(C.i)(()=>{if(b.size>0){for(let y of b)y();this._onDidChangeMenu.fire(t),b.clear()}})}getMenuItems(n){let t;return this._menuItems.has(n)?t=[...this._menuItems.get(n)]:t=[],n===a.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(n){const t=new Set;for(const b of n)u(b)&&(t.add(b.command.id),b.alt&&t.add(b.alt.id));this._commands.forEach((b,y)=>{t.has(y)||n.push({command:b})})}};class s extends Q.e{constructor(n,t,b,y){super(`submenuitem.${n.submenu.id}`,typeof n.title=="string"?n.title:n.title.value,[],"submenu");this.item=n,this._menuService=t,this._contextKeyService=b,this._options=y}get actions(){const n=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),b=t.getActions(this._options);t.dispose();for(const[,y]of b)y.length>0&&(n.push(...y),n.push(new Q.d));return n.length&&n.pop(),n}}let i=class n{constructor(t,b,y,m,x){var _,h;if(this._commandService=x,this.id=t.id,this.label=(y==null?void 0:y.renderShortTitle)&&t.shortTitle?typeof t.shortTitle=="string"?t.shortTitle:t.shortTitle.value:typeof t.title=="string"?t.title:t.title.value,this.tooltip=(h=typeof t.tooltip=="string"?t.tooltip:(_=t.tooltip)===null||_===void 0?void 0:_.value)!==null&&h!==void 0?h:"",this.enabled=!t.precondition||m.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const d=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=m.contextMatchesRules(d.condition),this.checked&&d.tooltip&&(this.tooltip=typeof d.tooltip=="string"?d.tooltip:d.tooltip.value),d.title&&(this.label=typeof d.title=="string"?d.title:d.title.value)}this.item=t,this.alt=b?new n(b,void 0,y,m,x):void 0,this._options=y,O.d.isThemeIcon(t.icon)&&(this.class=M.a.asClassName(t.icon))}dispose(){}run(...t){var b,y;let m=[];return((b=this._options)===null||b===void 0?void 0:b.arg)&&(m=[...m,this._options.arg]),((y=this._options)===null||y===void 0?void 0:y.shouldForwardArgs)&&(m=[...m,...t]),this._commandService.executeCommand(this.id,...m)}};i=g([p(3,k.b),p(4,W.b)],i)},fyJ8:function(je,ne,N){"use strict";var Q=N("rePB"),M=N("VTBJ"),I=N("Ff2n"),j=N("U8pU"),C=N("q1tI"),R=N.n(C),W=N("TSYQ"),k=N.n(W),e=N("c+Xe"),O=N("sR1s");function g(o){return o&&Object(j.a)(o)==="object"&&!Array.isArray(o)&&!C.isValidElement(o)}function p(o){return typeof o=="string"?!0:Object(e.c)(o)}function u(o,s){var i,n=o.prefixCls,t=o.className,b=o.record,y=o.index,m=o.dataIndex,x=o.render,_=o.children,h=o.component,d=h===void 0?"td":h,l=o.colSpan,c=o.rowSpan,v=o.fixLeft,f=o.fixRight,T=o.firstFixLeft,L=o.lastFixLeft,P=o.firstFixRight,S=o.lastFixRight,A=o.appendNode,H=o.additionalProps,D=H===void 0?{}:H,K=o.ellipsis,V=o.align,oe=o.rowType,le=o.isSticky,Ce="".concat(n,"-cell"),xe,ie;if(_)ie=_;else{var Se=Object(O.b)(b,m);if(ie=Se,x){var Pe=x(Se,b,y);g(Pe)?(ie=Pe.children,xe=Pe.props):ie=Pe}}Object(j.a)(ie)==="object"&&!Array.isArray(ie)&&!C.isValidElement(ie)&&(ie=null),K&&(L||P)&&(ie=C.createElement("span",{className:"".concat(Ce,"-content")},ie));var de=xe||{},$=de.colSpan,Ne=de.rowSpan,lt=de.style,it=de.className,Je=Object(I.a)(de,["colSpan","rowSpan","style","className"]),at=$!==void 0?$:l,Ue=Ne!==void 0?Ne:c;if(at===0||Ue===0)return null;var ze={},et=typeof v=="number",ee=typeof f=="number";et&&(ze.position="sticky",ze.left=v),ee&&(ze.position="sticky",ze.right=f);var ge={};V&&(ge.textAlign=V);var _e,we=K===!0?{showTitle:!0}:K;we&&(we.showTitle||oe==="header")&&(typeof ie=="string"||typeof ie=="number"?_e=ie.toString():C.isValidElement(ie)&&typeof ie.props.children=="string"&&(_e=ie.props.children));var Ve=Object(M.a)(Object(M.a)(Object(M.a)({title:_e},Je),D),{},{colSpan:at&&at!==1?at:null,rowSpan:Ue&&Ue!==1?Ue:null,className:k()(Ce,t,(i={},Object(Q.a)(i,"".concat(Ce,"-fix-left"),et),Object(Q.a)(i,"".concat(Ce,"-fix-left-first"),T),Object(Q.a)(i,"".concat(Ce,"-fix-left-last"),L),Object(Q.a)(i,"".concat(Ce,"-fix-right"),ee),Object(Q.a)(i,"".concat(Ce,"-fix-right-first"),P),Object(Q.a)(i,"".concat(Ce,"-fix-right-last"),S),Object(Q.a)(i,"".concat(Ce,"-ellipsis"),K),Object(Q.a)(i,"".concat(Ce,"-with-append"),A),Object(Q.a)(i,"".concat(Ce,"-fix-sticky"),(et||ee)&&le),i),D.className,it),style:Object(M.a)(Object(M.a)(Object(M.a)(Object(M.a)({},D.style),ge),ze),lt),ref:p(d)?s:null});return C.createElement(d,Object.assign({},Ve),A,ie)}var a=C.forwardRef(u);a.displayName="Cell";var r=C.memo(a,function(o,s){return s.shouldCellUpdate?!s.shouldCellUpdate(s.record,o.record):!1});ne.a=r},hW8S:function(je,ne,N){"use strict";N.d(ne,"a",function(){return j}),N.d(ne,"c",function(){return C}),N.d(ne,"b",function(){return R});var Q=N("VTBJ"),M=N("Ff2n"),I=N("Kwbf"),j="RC_TABLE_INTERNAL_COL_DEFINE";function C(W){var k=W.expandable,e=Object(M.a)(W,["expandable"]);return"expandable"in W?Object(Q.a)(Object(Q.a)({},e),k):e}function R(W){return Object.keys(W).reduce(function(k,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(k[e]=W[e]),k},{})}},"iL++":function(je,ne,N){je.exports={flex_box_center:"flex_box_center___2pHUo",flex_space_between:"flex_space_between___3Bfes",flex_box_vertical_center:"flex_box_vertical_center___1thiW",flex_box_center_end:"flex_box_center_end___3Zr7k",flex_box_column:"flex_box_column___3xe1a",list:"list___3rlGv",wrap:"wrap____oZzM",lockWrap:"lockWrap___24eY2",top:"top___3SCOc",sign:"sign____uZ_B",name:"name___2nHyM",img:"img___3Spn7",text:"text___1Pg2L",btns:"btns___Kr_Ti",bottom:"bottom___2_iOx"}},ic2d:function(je,ne,N){"use strict";N.d(ne,"a",function(){return j});var Q=N("FWmy"),M=N("746U");class I{constructor(){this.data=new Map}add(C,R){Q.a(M.l(C)),Q.a(M.k(R)),Q.a(!this.data.has(C),"There is already an extension with this id"),this.data.set(C,R)}as(C){return this.data.get(C)||null}}const j=new I},k3GJ:function(je,ne,N){"use strict";N.d(ne,"a",function(){return We});var Q=N("rePB"),M=N("ODXe"),I=N("Ff2n"),j=N("VTBJ"),C=N("q1tI"),R=N("TSYQ"),W=N.n(R),k=N("Zm9Q"),e=N("6cGi"),O=N("KQm4"),g=N("xEkU"),p=N.n(g),u=N("t23M");function a(te){var pe=Object(C.useRef)(),be=Object(C.useRef)(!1);function ue(){for(var z=arguments.length,q=new Array(z),X=0;X<z;X++)q[X]=arguments[X];be.current||(p.a.cancel(pe.current),pe.current=p()(function(){te.apply(void 0,q)}))}return Object(C.useEffect)(function(){return function(){be.current=!0,p.a.cancel(pe.current)}},[]),ue}function r(te){var pe=Object(C.useRef)([]),be=Object(C.useState)({}),ue=Object(M.a)(be,2),z=ue[1],q=Object(C.useRef)(typeof te=="function"?te():te),X=a(function(){var he=q.current;pe.current.forEach(function(Te){he=Te(he)}),pe.current=[],q.current=he,z({})});function ce(he){pe.current.push(he),X()}return[q.current,ce]}var o=N("4IlW");function s(te,pe){var be,ue=te.prefixCls,z=te.id,q=te.active,X=te.rtl,ce=te.tab,he=ce.key,Te=ce.tab,ve=ce.disabled,Re=ce.closeIcon,Be=te.tabBarGutter,nt=te.tabPosition,tt=te.closable,mt=te.renderWrapper,kt=te.removeAriaLabel,zt=te.editable,jt=te.onClick,Jt=te.onRemove,Vt=te.onFocus,Kt="".concat(ue,"-tab");C.useEffect(function(){return Jt},[]);var Gt={};nt==="top"||nt==="bottom"?Gt[X?"marginLeft":"marginRight"]=Be:Gt.marginBottom=Be;var rn=zt&&tt!==!1&&!ve;function Qt(Mt){if(ve)return;jt(Mt)}function An(Mt){Mt.preventDefault(),Mt.stopPropagation(),zt.onEdit("remove",{key:he,event:Mt})}var pn=C.createElement("div",{key:he,ref:pe,className:W()(Kt,(be={},Object(Q.a)(be,"".concat(Kt,"-with-remove"),rn),Object(Q.a)(be,"".concat(Kt,"-active"),q),Object(Q.a)(be,"".concat(Kt,"-disabled"),ve),be)),style:Gt,onClick:Qt},C.createElement("div",{role:"tab","aria-selected":q,id:z&&"".concat(z,"-tab-").concat(he),className:"".concat(Kt,"-btn"),"aria-controls":z&&"".concat(z,"-panel-").concat(he),"aria-disabled":ve,tabIndex:ve?null:0,onClick:function(Lt){Lt.stopPropagation(),Qt(Lt)},onKeyDown:function(Lt){[o.a.SPACE,o.a.ENTER].includes(Lt.which)&&(Lt.preventDefault(),Qt(Lt))},onFocus:Vt},Te),rn&&C.createElement("button",{type:"button","aria-label":kt||"remove",tabIndex:0,className:"".concat(Kt,"-remove"),onClick:function(Lt){Lt.stopPropagation(),An(Lt)}},Re||zt.removeIcon||"\xD7"));return mt&&(pn=mt(pn)),pn}var i=C.forwardRef(s),n={width:0,height:0,left:0,top:0};function t(te,pe,be){return Object(C.useMemo)(function(){for(var ue,z=new Map,q=pe.get((ue=te[0])===null||ue===void 0?void 0:ue.key)||n,X=q.left+q.width,ce=0;ce<te.length;ce+=1){var he=te[ce].key,Te=pe.get(he);if(!Te){var ve;Te=pe.get((ve=te[ce-1])===null||ve===void 0?void 0:ve.key)||n}var Re=z.get(he)||Object(j.a)({},Te);Re.right=X-Re.left-Re.width,z.set(he,Re)}return z},[te.map(function(ue){return ue.key}).join("_"),pe,be])}var b={width:0,height:0,left:0,top:0,right:0};function y(te,pe,be,ue,z){var q=z.tabs,X=z.tabPosition,ce=z.rtl,he,Te,ve;["top","bottom"].includes(X)?(he="width",Te=ce?"right":"left",ve=Math.abs(pe.left)):(he="height",Te="top",ve=-pe.top);var Re=pe[he],Be=be[he],nt=ue[he],tt=Re;return Be+nt>Re&&(tt=Re-nt),Object(C.useMemo)(function(){if(!q.length)return[0,0];for(var mt=q.length,kt=mt,zt=0;zt<mt;zt+=1){var jt=te.get(q[zt].key)||b;if(jt[Te]+jt[he]>ve+tt){kt=zt-1;break}}for(var Jt=0,Vt=mt-1;Vt>=0;Vt-=1){var Kt=te.get(q[Vt].key)||b;if(Kt[Te]<ve){Jt=Vt+1;break}}return[Jt,kt]},[te,ve,tt,X,q.map(function(mt){return mt.key}).join("_"),ce])}var m=N("wx14"),x=N("1OyB"),_=N("vuIU"),h=N("JX7q"),d=N("Ji7U"),l=N("LK+K"),c=N("I8Z2"),v=N("bT9E"),f=N("2GS6"),T=N("Gytx"),L=N.n(T),P=N("U8pU"),S=/iPhone/i,A=/iPod/i,H=/iPad/i,D=/\bAndroid(?:.+)Mobile\b/i,K=/Android/i,V=/\bAndroid(?:.+)SD4930UR\b/i,oe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,le=/Windows Phone/i,Ce=/\bWindows(?:.+)ARM\b/i,xe=/BlackBerry/i,ie=/BB10/i,Se=/Opera Mini/i,Pe=/\b(CriOS|Chrome)(?:.+)Mobile/i,de=/Mobile(?:.+)Firefox\b/i;function $(te,pe){return te.test(pe)}function Ne(te){var pe=te||(typeof navigator!="undefined"?navigator.userAgent:""),be=(pe||"").split("[FBAN");if(typeof be[1]!="undefined"){var ue=be,z=Object(M.a)(ue,1);pe=z[0]}if(be=pe.split("Twitter"),typeof be[1]!="undefined"){var q=be,X=Object(M.a)(q,1);pe=X[0]}var ce={apple:{phone:$(S,pe)&&!$(le,pe),ipod:$(A,pe),tablet:!$(S,pe)&&$(H,pe)&&!$(le,pe),device:($(S,pe)||$(A,pe)||$(H,pe))&&!$(le,pe)},amazon:{phone:$(V,pe),tablet:!$(V,pe)&&$(oe,pe),device:$(V,pe)||$(oe,pe)},android:{phone:!$(le,pe)&&$(V,pe)||!$(le,pe)&&$(D,pe),tablet:!$(le,pe)&&!$(V,pe)&&!$(D,pe)&&($(oe,pe)||$(K,pe)),device:!$(le,pe)&&($(V,pe)||$(oe,pe)||$(D,pe)||$(K,pe))||$(/\bokhttp\b/i,pe)},windows:{phone:$(le,pe),tablet:$(Ce,pe),device:$(le,pe)||$(Ce,pe)},other:{blackberry:$(xe,pe),blackberry10:$(ie,pe),opera:$(Se,pe),firefox:$(de,pe),chrome:$(Pe,pe),device:$(xe,pe)||$(ie,pe)||$(Se,pe)||$(de,pe)||$(Pe,pe)},any:null,phone:null,tablet:null};return ce.any=ce.apple.device||ce.android.device||ce.windows.device||ce.other.device,ce.phone=ce.apple.phone||ce.android.phone||ce.windows.phone,ce.tablet=ce.apple.tablet||ce.android.tablet||ce.windows.tablet,ce}var lt=Object(j.a)(Object(j.a)({},Ne()),{},{isMobile:Ne}),it=lt;function Je(){}function at(te,pe,be){var ue=pe||"";return te.key||"".concat(ue,"item_").concat(be)}function Ue(te){return"".concat(te,"-menu-")}function ze(te,pe){var be=-1;C.Children.forEach(te,function(ue){be+=1,ue&&ue.type&&ue.type.isMenuItemGroup?C.Children.forEach(ue.props.children,function(z){be+=1,pe(z,be)}):pe(ue,be)})}function et(te,pe,be){if(!te||be.find)return;C.Children.forEach(te,function(ue){if(ue){var z=ue.type;if(!z||!(z.isSubMenu||z.isMenuItem||z.isMenuItemGroup))return;pe.indexOf(ue.key)!==-1?be.find=!0:ue.props.children&&et(ue.props.children,pe,be)}})}var ee=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],ge=function(pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=pe&&typeof pe.getBoundingClientRect=="function"&&pe.getBoundingClientRect().width;if(ue){if(be){var z=getComputedStyle(pe),q=z.marginLeft,X=z.marginRight;ue+=+q.replace("px","")+ +X.replace("px","")}ue=+ue.toFixed(6)}return ue||0},_e=function(pe,be,ue){pe&&Object(P.a)(pe.style)==="object"&&(pe.style[be]=ue)},we=function(){return it.any},Ve=N("bdgK"),Ze=N("i8i4"),rt=N.n(Ze),$e=N("wgJM"),ft=N("l4aY"),ht=N("m+aA"),ye=N("c+Xe"),Ae=N("zT1h"),ke=N("QC+M");function He(te,pe,be){return be?te[0]===pe[0]:te[0]===pe[0]&&te[1]===pe[1]}function Ie(te,pe,be){var ue=te[pe]||{};return Object(j.a)(Object(j.a)({},ue),be)}function Le(te,pe,be,ue){for(var z=be.points,q=Object.keys(te),X=0;X<q.length;X+=1){var ce=q[X];if(He(te[ce].points,z,ue))return"".concat(pe,"-placement-").concat(ce)}return""}var fe=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var te=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(te)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(te==null?void 0:te.substr(0,4)))},re=N("MNnm");function ae(te,pe){var be={};return be[te.toLowerCase()]=pe.toLowerCase(),be["Webkit".concat(te)]="webkit".concat(pe),be["Moz".concat(te)]="moz".concat(pe),be["ms".concat(te)]="MS".concat(pe),be["O".concat(te)]="o".concat(pe.toLowerCase()),be}function Y(te,pe){var be={animationend:ae("Animation","AnimationEnd"),transitionend:ae("Transition","TransitionEnd")};return te&&("AnimationEvent"in pe||delete be.animationend.animation,"TransitionEvent"in pe||delete be.transitionend.transition),be}var J=Y(Object(re.a)(),typeof window!="undefined"?window:{}),Z={};if(Object(re.a)()){var se=document.createElement("div");Z=se.style}var Ee={};function De(te){if(Ee[te])return Ee[te];var pe=J[te];if(pe)for(var be=Object.keys(pe),ue=be.length,z=0;z<ue;z+=1){var q=be[z];if(Object.prototype.hasOwnProperty.call(pe,q)&&q in Z)return Ee[te]=pe[q],Ee[te]}return""}var Ke=De("animationend"),ut=De("transitionend"),ct=!!(Ke&&ut),Oe=Ke||"animationend",ot=ut||"transitionend";function st(te,pe){if(!te)return null;if(Object(P.a)(te)==="object"){var be=pe.replace(/-\w/g,function(ue){return ue[1].toUpperCase()});return te[be]}return"".concat(te,"-").concat(pe)}var Qe="none",_t="appear",Tt="enter",Et="leave",Rt="none",bt="prepare",xt="start",Ot="active",qe="end";function Bt(te){var pe=Object(C.useRef)(!1),be=Object(C.useState)(te),ue=Object(M.a)(be,2),z=ue[0],q=ue[1];function X(ce){pe.current||q(ce)}return Object(C.useEffect)(function(){return function(){pe.current=!0}},[]),[z,X]}var gt=Object(re.a)()?C.useLayoutEffect:C.useEffect,vt=gt,wt=function(){var te=C.useRef(null);function pe(){$e.a.cancel(te.current)}function be(ue){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;pe();var q=Object($e.a)(function(){z<=1?ue({isCanceled:function(){return q!==te.current}}):be(ue,z-1)});te.current=q}return C.useEffect(function(){return function(){pe()}},[]),[be,pe]},pt=[bt,xt,Ot,qe],tn=!1,Yt=!0;function cn(te){return te===Ot||te===qe}var Ht=function(te,pe){var be=C.useState(Rt),ue=Object(M.a)(be,2),z=ue[0],q=ue[1],X=wt(),ce=Object(M.a)(X,2),he=ce[0],Te=ce[1];function ve(){q(bt)}return vt(function(){if(z!==Rt&&z!==qe){var Re=pt.indexOf(z),Be=pt[Re+1],nt=pe(z);nt===tn?q(Be):he(function(tt){function mt(){if(tt.isCanceled())return;q(Be)}nt===!0?mt():Promise.resolve(nt).then(mt)})}},[te,z]),C.useEffect(function(){return function(){Te()}},[]),[ve,z]},At=function(te){var pe=Object(C.useRef)(),be=Object(C.useRef)(te);be.current=te;var ue=C.useCallback(function(X){be.current(X)},[]);function z(X){X&&(X.removeEventListener(ot,ue),X.removeEventListener(Oe,ue))}function q(X){pe.current&&pe.current!==X&&z(pe.current),X&&X!==pe.current&&(X.addEventListener(ot,ue),X.addEventListener(Oe,ue),pe.current=X)}return C.useEffect(function(){return function(){z(pe.current)}},[]),[q,z]};function Ft(te,pe,be,ue){var z=ue.motionEnter,q=z===void 0?!0:z,X=ue.motionAppear,ce=X===void 0?!0:X,he=ue.motionLeave,Te=he===void 0?!0:he,ve=ue.motionDeadline,Re=ue.motionLeaveImmediately,Be=ue.onAppearPrepare,nt=ue.onEnterPrepare,tt=ue.onLeavePrepare,mt=ue.onAppearStart,kt=ue.onEnterStart,zt=ue.onLeaveStart,jt=ue.onAppearActive,Jt=ue.onEnterActive,Vt=ue.onLeaveActive,Kt=ue.onAppearEnd,Gt=ue.onEnterEnd,rn=ue.onLeaveEnd,Qt=ue.onVisibleChanged,An=Bt(),pn=Object(M.a)(An,2),Mt=pn[0],Lt=pn[1],$t=Bt(Qe),nn=Object(M.a)($t,2),Ct=nn[0],an=nn[1],En=Bt(null),sn=Object(M.a)(En,2),vn=sn[0],Sn=sn[1],Fn=Object(C.useRef)(!1),Qn=Object(C.useRef)(null),In=Object(C.useRef)(!1),Zn=Object(C.useRef)(null);function Ei(){var xn=be();return xn||Zn.current}var ri=Object(C.useRef)(!1);function ai(xn){var hn=Ei();if(xn&&!xn.deadline&&xn.target!==hn)return;var Wn;Ct===_t&&ri.current?Wn=Kt==null?void 0:Kt(hn,xn):Ct===Tt&&ri.current?Wn=Gt==null?void 0:Gt(hn,xn):Ct===Et&&ri.current&&(Wn=rn==null?void 0:rn(hn,xn)),Wn!==!1&&!In.current&&(an(Qe),Sn(null))}var Pn=At(ai),zn=Object(M.a)(Pn,1),Hn=zn[0],Un=C.useMemo(function(){var xn,hn,Wn;switch(Ct){case"appear":return xn={},Object(Q.a)(xn,bt,Be),Object(Q.a)(xn,xt,mt),Object(Q.a)(xn,Ot,jt),xn;case"enter":return hn={},Object(Q.a)(hn,bt,nt),Object(Q.a)(hn,xt,kt),Object(Q.a)(hn,Ot,Jt),hn;case"leave":return Wn={},Object(Q.a)(Wn,bt,tt),Object(Q.a)(Wn,xt,zt),Object(Q.a)(Wn,Ot,Vt),Wn;default:return{}}},[Ct]),Li=Ht(Ct,function(xn){if(xn===bt){var hn=Un[bt];return hn?hn(Ei()):tn}if(bn in Un){var Wn;Sn(((Wn=Un[bn])===null||Wn===void 0?void 0:Wn.call(Un,Ei(),null))||null)}return bn===Ot&&(Hn(Ei()),ve>0&&(clearTimeout(Qn.current),Qn.current=setTimeout(function(){ai({deadline:!0})},ve))),Yt}),Pi=Object(M.a)(Li,2),Hi=Pi[0],bn=Pi[1],Oi=cn(bn);ri.current=Oi,vt(function(){Lt(pe);var xn=Fn.current;if(Fn.current=!0,!te)return;var hn;!xn&&pe&&ce&&(hn=_t),xn&&pe&&q&&(hn=Tt),(xn&&!pe&&Te||!xn&&Re&&!pe&&Te)&&(hn=Et),hn&&(an(hn),Hi())},[pe]),Object(C.useEffect)(function(){(Ct===_t&&!ce||Ct===Tt&&!q||Ct===Et&&!Te)&&an(Qe)},[ce,q,Te]),Object(C.useEffect)(function(){return function(){clearTimeout(Qn.current),In.current=!0}},[]),Object(C.useEffect)(function(){Mt!==void 0&&Ct===Qe&&(Qt==null||Qt(Mt))},[Mt,Ct]);var Wi=vn;return Un[bt]&&bn===xt&&(Wi=Object(j.a)({transition:"none"},Wi)),[Ct,bn,Wi,Mt!=null?Mt:pe]}var fn=function(te){Object(d.a)(be,te);var pe=Object(l.a)(be);function be(){return Object(x.a)(this,be),pe.apply(this,arguments)}return Object(_.a)(be,[{key:"render",value:function(){return this.props.children}}]),be}(C.Component),ln=fn;function Tn(te){var pe=te;Object(P.a)(te)==="object"&&(pe=te.transitionSupport);function be(z){return!!(z.motionName&&pe)}var ue=C.forwardRef(function(z,q){var X=z.visible,ce=X===void 0?!0:X,he=z.removeOnLeave,Te=he===void 0?!0:he,ve=z.forceRender,Re=z.children,Be=z.motionName,nt=z.leavedClassName,tt=z.eventProps,mt=be(z),kt=Object(C.useRef)(),zt=Object(C.useRef)();function jt(){try{return Object(ht.a)(kt.current||zt.current)}catch(an){return null}}var Jt=Ft(mt,ce,jt,z),Vt=Object(M.a)(Jt,4),Kt=Vt[0],Gt=Vt[1],rn=Vt[2],Qt=Vt[3],An=C.useRef(Qt);Qt&&(An.current=!0);var pn=Object(C.useRef)(q);pn.current=q;var Mt=C.useCallback(function(an){kt.current=an,Object(ye.b)(pn.current,an)},[]),Lt,$t=Object(j.a)(Object(j.a)({},tt),{},{visible:ce});if(!Re)Lt=null;else if(Kt===Qe||!be(z))Qt?Lt=Re(Object(j.a)({},$t),Mt):!Te&&An.current?Lt=Re(Object(j.a)(Object(j.a)({},$t),{},{className:nt}),Mt):ve?Lt=Re(Object(j.a)(Object(j.a)({},$t),{},{style:{display:"none"}}),Mt):Lt=null;else{var nn,Ct;Gt===bt?Ct="prepare":cn(Gt)?Ct="active":Gt===xt&&(Ct="start"),Lt=Re(Object(j.a)(Object(j.a)({},$t),{},{className:W()(st(Be,Kt),(nn={},Object(Q.a)(nn,st(Be,"".concat(Kt,"-").concat(Ct)),Ct),Object(Q.a)(nn,Be,typeof Be=="string"),nn)),style:rn}),Mt)}return C.createElement(ln,{ref:zt},Lt)});return ue.displayName="CSSMotion",ue}var Mn=Tn(ct),Vn="add",Yn="keep",Ut="remove",qn="removed";function fi(te){var pe;return te&&Object(P.a)(te)==="object"&&"key"in te?pe=te:pe={key:te},Object(j.a)(Object(j.a)({},pe),{},{key:String(pe.key)})}function $n(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return te.map(fi)}function B(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],be=[],ue=0,z=pe.length,q=$n(te),X=$n(pe);q.forEach(function(Te){for(var ve=!1,Re=ue;Re<z;Re+=1){var Be=X[Re];if(Be.key===Te.key){ue<Re&&(be=be.concat(X.slice(ue,Re).map(function(nt){return Object(j.a)(Object(j.a)({},nt),{},{status:Vn})})),ue=Re),be.push(Object(j.a)(Object(j.a)({},Be),{},{status:Yn})),ue+=1,ve=!0;break}}ve||be.push(Object(j.a)(Object(j.a)({},Te),{},{status:Ut}))}),ue<z&&(be=be.concat(X.slice(ue).map(function(Te){return Object(j.a)(Object(j.a)({},Te),{},{status:Vn})})));var ce={};be.forEach(function(Te){var ve=Te.key;ce[ve]=(ce[ve]||0)+1});var he=Object.keys(ce).filter(function(Te){return ce[Te]>1});return he.forEach(function(Te){be=be.filter(function(ve){var Re=ve.key,Be=ve.status;return Re!==Te||Be!==Ut}),be.forEach(function(ve){ve.key===Te&&(ve.status=Yn)})}),be}var E=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function w(te){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mn,be=function(ue){Object(d.a)(q,ue);var z=Object(l.a)(q);function q(){var X;return Object(x.a)(this,q),X=z.apply(this,arguments),X.state={keyEntities:[]},X.removeKey=function(ce){X.setState(function(he){var Te=he.keyEntities;return{keyEntities:Te.map(function(ve){return ve.key!==ce?ve:Object(j.a)(Object(j.a)({},ve),{},{status:qn})})}})},X}return Object(_.a)(q,[{key:"render",value:function(){var ce=this,he=this.state.keyEntities,Te=this.props,ve=Te.component,Re=Te.children,Be=Te.onVisibleChanged,nt=Object(I.a)(Te,["component","children","onVisibleChanged"]),tt=ve||C.Fragment,mt={};return E.forEach(function(kt){mt[kt]=nt[kt],delete nt[kt]}),delete nt.keys,C.createElement(tt,nt,he.map(function(kt){var zt=kt.status,jt=Object(I.a)(kt,["status"]),Jt=zt===Vn||zt===Yn;return C.createElement(pe,Object(m.a)({},mt,{key:jt.key,visible:Jt,eventProps:jt,onVisibleChanged:function(Kt){Be==null||Be(Kt,{key:jt.key}),Kt||ce.removeKey(jt.key)}}),Re)}))}}],[{key:"getDerivedStateFromProps",value:function(ce,he){var Te=ce.keys,ve=he.keyEntities,Re=$n(Te),Be=B(ve,Re);return{keyEntities:Be.filter(function(nt){var tt=ve.find(function(mt){var kt=mt.key;return nt.key===kt});return!(tt&&tt.status===qn&&nt.status===Ut)})}}}]),q}(C.Component);return be.defaultProps={component:"div"},be}var U=w(ct),G=Mn;function F(te){var pe=te.prefixCls,be=te.motion,ue=te.animation,z=te.transitionName;return be||(ue?{motionName:"".concat(pe,"-").concat(ue)}:z?{motionName:z}:null)}function me(te){var pe=te.prefixCls,be=te.visible,ue=te.zIndex,z=te.mask,q=te.maskMotion,X=te.maskAnimation,ce=te.maskTransitionName;if(!z)return null;var he={};return(q||ce||X)&&(he=Object(j.a)({motionAppear:!0},F({motion:q,prefixCls:pe,transitionName:ce,animation:X}))),C.createElement(G,Object(m.a)({},he,{visible:be,removeOnLeave:!0}),function(Te){var ve=Te.className;return C.createElement("div",{style:{zIndex:ue},className:W()("".concat(pe,"-mask"),ve)})})}var Ge=N("9mu1"),dt=N("o0o1"),St=N.n(dt),Ye=N("HaE+"),Dt=["measure","align",null,"motion"],Nt=function(te,pe){var be=Object(C.useState)(null),ue=Object(M.a)(be,2),z=ue[0],q=ue[1],X=Object(C.useRef)(),ce=Object(C.useRef)(!1);function he(Re){ce.current||q(Re)}function Te(){$e.a.cancel(X.current)}function ve(Re){Te(),X.current=Object($e.a)(function(){he(function(Be){switch(z){case"align":return"motion";case"motion":return"stable";default:}return Be}),Re==null||Re()})}return Object(C.useEffect)(function(){he("measure")},[te]),Object(C.useEffect)(function(){switch(z){case"measure":pe();break;default:}z&&(X.current=Object($e.a)(Object(Ye.a)(St.a.mark(function Re(){var Be,nt;return St.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:Be=Dt.indexOf(z),nt=Dt[Be+1],nt&&Be!==-1&&he(nt);case 3:case"end":return mt.stop()}},Re)}))))},[z]),Object(C.useEffect)(function(){return function(){ce.current=!0,Te()}},[]),[z,ve]},on=function(te){var pe=C.useState({width:0,height:0}),be=Object(M.a)(pe,2),ue=be[0],z=be[1];function q(ce){z({width:ce.offsetWidth,height:ce.offsetHeight})}var X=C.useMemo(function(){var ce={};if(te){var he=ue.width,Te=ue.height;te.indexOf("height")!==-1&&Te?ce.height=Te:te.indexOf("minHeight")!==-1&&Te&&(ce.minHeight=Te),te.indexOf("width")!==-1&&he?ce.width=he:te.indexOf("minWidth")!==-1&&he&&(ce.minWidth=he)}return ce},[te,ue]);return[X,q]},kn=C.forwardRef(function(te,pe){var be=te.visible,ue=te.prefixCls,z=te.className,q=te.style,X=te.children,ce=te.zIndex,he=te.stretch,Te=te.destroyPopupOnHide,ve=te.forceRender,Re=te.align,Be=te.point,nt=te.getRootDomNode,tt=te.getClassNameFromAlign,mt=te.onAlign,kt=te.onMouseEnter,zt=te.onMouseLeave,jt=te.onMouseDown,Jt=te.onTouchStart,Vt=Object(C.useRef)(),Kt=Object(C.useRef)(),Gt=Object(C.useState)(),rn=Object(M.a)(Gt,2),Qt=rn[0],An=rn[1],pn=on(he),Mt=Object(M.a)(pn,2),Lt=Mt[0],$t=Mt[1];function nn(){he&&$t(nt())}var Ct=Nt(be,nn),an=Object(M.a)(Ct,2),En=an[0],sn=an[1],vn=Object(C.useRef)();function Sn(){return Be||nt}function Fn(){var Pn;(Pn=Vt.current)===null||Pn===void 0||Pn.forceAlign()}function Qn(Pn,zn){var Hn=tt(zn);Qt!==Hn&&An(Hn),En==="align"&&(Qt!==Hn?Promise.resolve().then(function(){Fn()}):sn(function(){var Un;(Un=vn.current)===null||Un===void 0||Un.call(vn)}),mt==null||mt(Pn,zn))}var In=Object(j.a)({},F(te));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Pn){var zn=In[Pn];In[Pn]=function(Hn,Un){return sn(),zn==null?void 0:zn(Hn,Un)}});function Zn(){return new Promise(function(Pn){vn.current=Pn})}C.useEffect(function(){!In.motionName&&En==="motion"&&sn()},[In.motionName,En]),C.useImperativeHandle(pe,function(){return{forceAlign:Fn,getElement:function(){return Kt.current}}});var Ei=Object(j.a)(Object(j.a)({},Lt),{},{zIndex:ce,opacity:En==="motion"||En==="stable"||!be?void 0:0,pointerEvents:En==="stable"?void 0:"none"},q),ri=!0;(Re==null?void 0:Re.points)&&(En==="align"||En==="stable")&&(ri=!1);var ai=X;return C.Children.count(X)>1&&(ai=C.createElement("div",{className:"".concat(ue,"-content")},X)),C.createElement(G,Object(m.a)({visible:be,ref:Kt,leavedClassName:"".concat(ue,"-hidden")},In,{onAppearPrepare:Zn,onEnterPrepare:Zn,removeOnLeave:Te,forceRender:ve}),function(Pn,zn){var Hn=Pn.className,Un=Pn.style,Li=W()(ue,z,Qt,Hn);return C.createElement(Ge.a,{target:Sn(),key:"popup",ref:Vt,monitorWindowResize:!0,disabled:ri,align:Re,onAlign:Qn},C.createElement("div",{ref:zn,className:Li,onMouseEnter:kt,onMouseLeave:zt,onMouseDownCapture:jt,onTouchStartCapture:Jt,style:Object(j.a)(Object(j.a)({},Un),Ei)},ai))})});kn.displayName="PopupInner";var Xn=kn,Me=C.forwardRef(function(te,pe){var be=te.prefixCls,ue=te.visible,z=te.zIndex,q=te.children,X=te.mobile;X=X===void 0?{}:X;var ce=X.popupClassName,he=X.popupStyle,Te=X.popupMotion,ve=Te===void 0?{}:Te,Re=X.popupRender,Be=C.useRef();C.useImperativeHandle(pe,function(){return{forceAlign:function(){},getElement:function(){return Be.current}}});var nt=Object(j.a)({zIndex:z},he),tt=q;return C.Children.count(q)>1&&(tt=C.createElement("div",{className:"".concat(be,"-content")},q)),Re&&(tt=Re(tt)),C.createElement(G,Object(m.a)({visible:ue,ref:Be,removeOnLeave:!0},ve),function(mt,kt){var zt=mt.className,jt=mt.style,Jt=W()(be,ce,zt);return C.createElement("div",{ref:kt,className:Jt,style:Object(j.a)(Object(j.a)({},jt),nt)},tt)})});Me.displayName="MobilePopupInner";var Dn=Me,oi=["visible","mobile"],Jn=C.forwardRef(function(te,pe){var be=te.visible,ue=te.mobile,z=Object(I.a)(te,oi),q=Object(C.useState)(be),X=Object(M.a)(q,2),ce=X[0],he=X[1],Te=Object(C.useState)(!1),ve=Object(M.a)(Te,2),Re=ve[0],Be=ve[1],nt=Object(j.a)(Object(j.a)({},z),{},{visible:ce});Object(C.useEffect)(function(){he(be),be&&ue&&Be(fe())},[be,ue]);var tt=Re?C.createElement(Dn,Object(m.a)({},nt,{mobile:ue,ref:pe})):C.createElement(Xn,Object(m.a)({},nt,{ref:pe}));return C.createElement("div",null,C.createElement(me,nt),tt)});Jn.displayName="Popup";var pi=Jn,ei=C.createContext(null),wn=ei;function Kn(){}function li(){return""}function mi(te){return te?te.ownerDocument:window.document}var xi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ni(te){var pe=function(be){Object(d.a)(z,be);var ue=Object(l.a)(z);function z(q){var X;Object(x.a)(this,z),X=ue.call(this,q),X.popupRef=C.createRef(),X.triggerRef=C.createRef(),X.attachId=void 0,X.clickOutsideHandler=void 0,X.touchOutsideHandler=void 0,X.contextMenuOutsideHandler1=void 0,X.contextMenuOutsideHandler2=void 0,X.mouseDownTimeout=void 0,X.focusTime=void 0,X.preClickTime=void 0,X.preTouchTime=void 0,X.delayTimer=void 0,X.hasPopupMouseDown=void 0,X.onMouseEnter=function(he){var Te=X.props.mouseEnterDelay;X.fireEvents("onMouseEnter",he),X.delaySetPopupVisible(!0,Te,Te?null:he)},X.onMouseMove=function(he){X.fireEvents("onMouseMove",he),X.setPoint(he)},X.onMouseLeave=function(he){X.fireEvents("onMouseLeave",he),X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onPopupMouseEnter=function(){X.clearDelayTimer()},X.onPopupMouseLeave=function(he){var Te;if(he.relatedTarget&&!he.relatedTarget.setTimeout&&Object(ft.a)((Te=X.popupRef.current)===null||Te===void 0?void 0:Te.getElement(),he.relatedTarget))return;X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onFocus=function(he){X.fireEvents("onFocus",he),X.clearDelayTimer(),X.isFocusToShow()&&(X.focusTime=Date.now(),X.delaySetPopupVisible(!0,X.props.focusDelay))},X.onMouseDown=function(he){X.fireEvents("onMouseDown",he),X.preClickTime=Date.now()},X.onTouchStart=function(he){X.fireEvents("onTouchStart",he),X.preTouchTime=Date.now()},X.onBlur=function(he){X.fireEvents("onBlur",he),X.clearDelayTimer(),X.isBlurToHide()&&X.delaySetPopupVisible(!1,X.props.blurDelay)},X.onContextMenu=function(he){he.preventDefault(),X.fireEvents("onContextMenu",he),X.setPopupVisible(!0,he)},X.onContextMenuClose=function(){X.isContextMenuToShow()&&X.close()},X.onClick=function(he){if(X.fireEvents("onClick",he),X.focusTime){var Te;if(X.preClickTime&&X.preTouchTime?Te=Math.min(X.preClickTime,X.preTouchTime):X.preClickTime?Te=X.preClickTime:X.preTouchTime&&(Te=X.preTouchTime),Math.abs(Te-X.focusTime)<20)return;X.focusTime=0}X.preClickTime=0,X.preTouchTime=0,X.isClickToShow()&&(X.isClickToHide()||X.isBlurToHide())&&he&&he.preventDefault&&he.preventDefault();var ve=!X.state.popupVisible;(X.isClickToHide()&&!ve||ve&&X.isClickToShow())&&X.setPopupVisible(!X.state.popupVisible,he)},X.onPopupMouseDown=function(){if(X.hasPopupMouseDown=!0,clearTimeout(X.mouseDownTimeout),X.mouseDownTimeout=window.setTimeout(function(){X.hasPopupMouseDown=!1},0),X.context){var he;(he=X.context).onPopupMouseDown.apply(he,arguments)}},X.onDocumentClick=function(he){if(X.props.mask&&!X.props.maskClosable)return;var Te=he.target,ve=X.getRootDomNode(),Re=X.getPopupDomNode();(!Object(ft.a)(ve,Te)||X.isContextMenuOnly())&&!Object(ft.a)(Re,Te)&&!X.hasPopupMouseDown&&X.close()},X.getRootDomNode=function(){var he=X.props.getTriggerDOMNode;if(he)return he(X.triggerRef.current);try{var Te=Object(ht.a)(X.triggerRef.current);if(Te)return Te}catch(ve){}return rt.a.findDOMNode(Object(h.a)(X))},X.getPopupClassNameFromAlign=function(he){var Te=[],ve=X.props,Re=ve.popupPlacement,Be=ve.builtinPlacements,nt=ve.prefixCls,tt=ve.alignPoint,mt=ve.getPopupClassNameFromAlign;return Re&&Be&&Te.push(Le(Be,nt,he,tt)),mt&&Te.push(mt(he)),Te.join(" ")},X.getComponent=function(){var he=X.props,Te=he.prefixCls,ve=he.destroyPopupOnHide,Re=he.popupClassName,Be=he.onPopupAlign,nt=he.popupMotion,tt=he.popupAnimation,mt=he.popupTransitionName,kt=he.popupStyle,zt=he.mask,jt=he.maskAnimation,Jt=he.maskTransitionName,Vt=he.maskMotion,Kt=he.zIndex,Gt=he.popup,rn=he.stretch,Qt=he.alignPoint,An=he.mobile,pn=he.forceRender,Mt=X.state,Lt=Mt.popupVisible,$t=Mt.point,nn=X.getPopupAlign(),Ct={};return X.isMouseEnterToShow()&&(Ct.onMouseEnter=X.onPopupMouseEnter),X.isMouseLeaveToHide()&&(Ct.onMouseLeave=X.onPopupMouseLeave),Ct.onMouseDown=X.onPopupMouseDown,Ct.onTouchStart=X.onPopupMouseDown,C.createElement(pi,Object(m.a)({prefixCls:Te,destroyPopupOnHide:ve,visible:Lt,point:Qt&&$t,className:Re,align:nn,onAlign:Be,animation:tt,getClassNameFromAlign:X.getPopupClassNameFromAlign},Ct,{stretch:rn,getRootDomNode:X.getRootDomNode,style:kt,mask:zt,zIndex:Kt,transitionName:mt,maskAnimation:jt,maskTransitionName:Jt,maskMotion:Vt,ref:X.popupRef,motion:nt,mobile:An,forceRender:pn}),typeof Gt=="function"?Gt():Gt)},X.attachParent=function(he){$e.a.cancel(X.attachId);var Te=X.props,ve=Te.getPopupContainer,Re=Te.getDocument,Be=X.getRootDomNode(),nt;ve?(Be||ve.length===0)&&(nt=ve(Be)):nt=Re(X.getRootDomNode()).body,nt?nt.appendChild(he):X.attachId=Object($e.a)(function(){X.attachParent(he)})},X.getContainer=function(){var he=X.props.getDocument,Te=he(X.getRootDomNode()).createElement("div");return Te.style.position="absolute",Te.style.top="0",Te.style.left="0",Te.style.width="100%",X.attachParent(Te),Te},X.setPoint=function(he){var Te=X.props.alignPoint;if(!Te||!he)return;X.setState({point:{pageX:he.pageX,pageY:he.pageY}})},X.handlePortalUpdate=function(){X.state.prevPopupVisible!==X.state.popupVisible&&X.props.afterPopupVisibleChange(X.state.popupVisible)},X.triggerContextValue={onPopupMouseDown:X.onPopupMouseDown};var ce;return"popupVisible"in q?ce=!!q.popupVisible:ce=!!q.defaultPopupVisible,X.state={prevPopupVisible:ce,popupVisible:ce},xi.forEach(function(he){X["fire".concat(he)]=function(Te){X.fireEvents(he,Te)}}),X}return Object(_.a)(z,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var X=this.props,ce=this.state;if(ce.popupVisible){var he;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(he=X.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ae.a)(he,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(he=he||X.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ae.a)(he,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(he=he||X.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ae.a)(he,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ae.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),$e.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var X;return((X=this.popupRef.current)===null||X===void 0?void 0:X.getElement())||null}},{key:"getPopupAlign",value:function(){var X=this.props,ce=X.popupPlacement,he=X.popupAlign,Te=X.builtinPlacements;return ce&&Te?Ie(Te,ce,he):he}},{key:"setPopupVisible",value:function(X,ce){var he=this.props.alignPoint,Te=this.state.popupVisible;this.clearDelayTimer(),Te!==X&&("popupVisible"in this.props||this.setState({popupVisible:X,prevPopupVisible:Te}),this.props.onPopupVisibleChange(X)),he&&ce&&X&&this.setPoint(ce)}},{key:"delaySetPopupVisible",value:function(X,ce,he){var Te=this,ve=ce*1e3;if(this.clearDelayTimer(),ve){var Re=he?{pageX:he.pageX,pageY:he.pageY}:null;this.delayTimer=window.setTimeout(function(){Te.setPopupVisible(X,Re),Te.clearDelayTimer()},ve)}else this.setPopupVisible(X,he)}},{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(X){var ce=this.props.children.props,he=this.props;return ce[X]&&he[X]?this["fire".concat(X)]:ce[X]||he[X]}},{key:"isClickToShow",value:function(){var X=this.props,ce=X.action,he=X.showAction;return ce.indexOf("click")!==-1||he.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var X=this.props.action;return X==="contextMenu"||X.length===1&&X[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var X=this.props,ce=X.action,he=X.showAction;return ce.indexOf("contextMenu")!==-1||he.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var X=this.props,ce=X.action,he=X.hideAction;return ce.indexOf("click")!==-1||he.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var X=this.props,ce=X.action,he=X.showAction;return ce.indexOf("hover")!==-1||he.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var X=this.props,ce=X.action,he=X.hideAction;return ce.indexOf("hover")!==-1||he.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var X=this.props,ce=X.action,he=X.showAction;return ce.indexOf("focus")!==-1||he.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var X=this.props,ce=X.action,he=X.hideAction;return ce.indexOf("focus")!==-1||he.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var X;(X=this.popupRef.current)===null||X===void 0||X.forceAlign()}}},{key:"fireEvents",value:function(X,ce){var he=this.props.children.props[X];he&&he(ce);var Te=this.props[X];Te&&Te(ce)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var X=this.state.popupVisible,ce=this.props,he=ce.children,Te=ce.forceRender,ve=ce.alignPoint,Re=ce.className,Be=ce.autoDestroy,nt=C.Children.only(he),tt={key:"trigger"};this.isContextMenuToShow()?tt.onContextMenu=this.onContextMenu:tt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(tt.onClick=this.onClick,tt.onMouseDown=this.onMouseDown,tt.onTouchStart=this.onTouchStart):(tt.onClick=this.createTwoChains("onClick"),tt.onMouseDown=this.createTwoChains("onMouseDown"),tt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(tt.onMouseEnter=this.onMouseEnter,ve&&(tt.onMouseMove=this.onMouseMove)):tt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?tt.onMouseLeave=this.onMouseLeave:tt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(tt.onFocus=this.onFocus,tt.onBlur=this.onBlur):(tt.onFocus=this.createTwoChains("onFocus"),tt.onBlur=this.createTwoChains("onBlur"));var mt=W()(nt&&nt.props&&nt.props.className,Re);mt&&(tt.className=mt);var kt=Object(j.a)({},tt);Object(ye.c)(nt)&&(kt.ref=Object(ye.a)(this.triggerRef,nt.ref));var zt=C.cloneElement(nt,kt),jt;return(X||this.popupRef.current||Te)&&(jt=C.createElement(te,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!X&&Be&&(jt=null),C.createElement(wn.Provider,{value:this.triggerContextValue},zt,jt)}}],[{key:"getDerivedStateFromProps",value:function(X,ce){var he=X.popupVisible,Te={};return he!==void 0&&ce.popupVisible!==he&&(Te.popupVisible=he,Te.prevPopupVisible=ce.popupVisible),Te}}]),z}(C.Component);return pe.contextType=wn,pe.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:mi,onPopupVisibleChange:Kn,afterPopupVisibleChange:Kn,onPopupAlign:Kn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},pe}var ui=Ni(ke.a),Ln={adjustX:1,adjustY:1},ti={topLeft:{points:["bl","tl"],overflow:Ln,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ln,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ln,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ln,offset:[4,0]}},Ri={topLeft:{points:["bl","tl"],overflow:Ln,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ln,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ln,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ln,offset:[4,0]}},gi=ti,dn=0,Wt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},yn=function(pe,be,ue){var z=Ue(be),q=pe.getState();pe.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},q.defaultActiveFirst),{},Object(Q.a)({},z,ue))})},Zt=function(te){Object(d.a)(be,te);var pe=Object(l.a)(be);function be(ue){var z;Object(x.a)(this,be),z=pe.call(this,ue),z.onDestroy=function(ve){z.props.onDestroy(ve)},z.onKeyDown=function(ve){var Re=ve.keyCode,Be=z.menuInstance,nt=z.props.store,tt=z.getVisible();if(Re===o.a.ENTER)return z.onTitleClick(ve),yn(nt,z.props.eventKey,!0),!0;if(Re===o.a.RIGHT)return tt?Be.onKeyDown(ve):(z.triggerOpenChange(!0),yn(nt,z.props.eventKey,!0)),!0;if(Re===o.a.LEFT){var mt;if(tt)mt=Be.onKeyDown(ve);else return;return mt||(z.triggerOpenChange(!1),mt=!0),mt}return tt&&(Re===o.a.UP||Re===o.a.DOWN)?Be.onKeyDown(ve):void 0},z.onOpenChange=function(ve){z.props.onOpenChange(ve)},z.onPopupVisibleChange=function(ve){z.triggerOpenChange(ve,ve?"mouseenter":"mouseleave")},z.onMouseEnter=function(ve){var Re=z.props,Be=Re.eventKey,nt=Re.onMouseEnter,tt=Re.store;yn(tt,z.props.eventKey,!1),nt({key:Be,domEvent:ve})},z.onMouseLeave=function(ve){var Re=z.props,Be=Re.parentMenu,nt=Re.eventKey,tt=Re.onMouseLeave;Be.subMenuInstance=Object(h.a)(z),tt({key:nt,domEvent:ve})},z.onTitleMouseEnter=function(ve){var Re=z.props,Be=Re.eventKey,nt=Re.onItemHover,tt=Re.onTitleMouseEnter;nt({key:Be,hover:!0}),tt({key:Be,domEvent:ve})},z.onTitleMouseLeave=function(ve){var Re=z.props,Be=Re.parentMenu,nt=Re.eventKey,tt=Re.onItemHover,mt=Re.onTitleMouseLeave;Be.subMenuInstance=Object(h.a)(z),tt({key:nt,hover:!1}),mt({key:nt,domEvent:ve})},z.onTitleClick=function(ve){var Re=Object(h.a)(z),Be=Re.props;if(Be.onTitleClick({key:Be.eventKey,domEvent:ve}),Be.triggerSubMenuAction==="hover")return;z.triggerOpenChange(!z.getVisible(),"click"),yn(Be.store,z.props.eventKey,!1)},z.onSubMenuClick=function(ve){typeof z.props.onClick=="function"&&z.props.onClick(z.addKeyPath(ve))},z.onSelect=function(ve){z.props.onSelect(ve)},z.onDeselect=function(ve){z.props.onDeselect(ve)},z.getPrefixCls=function(){return"".concat(z.props.rootPrefixCls,"-submenu")},z.getActiveClassName=function(){return"".concat(z.getPrefixCls(),"-active")},z.getDisabledClassName=function(){return"".concat(z.getPrefixCls(),"-disabled")},z.getSelectedClassName=function(){return"".concat(z.getPrefixCls(),"-selected")},z.getOpenClassName=function(){return"".concat(z.props.rootPrefixCls,"-submenu-open")},z.getVisible=function(){return z.state.isOpen},z.getMode=function(){return z.state.mode},z.saveMenuInstance=function(ve){z.menuInstance=ve},z.addKeyPath=function(ve){return Object(j.a)(Object(j.a)({},ve),{},{keyPath:(ve.keyPath||[]).concat(z.props.eventKey)})},z.triggerOpenChange=function(ve,Re){var Be=z.props.eventKey,nt=function(){z.onOpenChange({key:Be,item:Object(h.a)(z),trigger:Re,open:ve})};Re==="mouseenter"?z.mouseenterTimeout=setTimeout(function(){nt()},0):nt()},z.isChildrenSelected=function(){var ve={find:!1};return et(z.props.children,z.props.selectedKeys,ve),ve.find},z.isInlineMode=function(){return z.getMode()==="inline"},z.adjustWidth=function(){if(!z.subMenuTitle||!z.menuInstance)return;var ve=Ze.findDOMNode(z.menuInstance);if(ve.offsetWidth>=z.subMenuTitle.offsetWidth)return;ve.style.minWidth="".concat(z.subMenuTitle.offsetWidth,"px")},z.saveSubMenuTitle=function(ve){z.subMenuTitle=ve},z.getBaseProps=function(){var ve=Object(h.a)(z),Re=ve.props,Be=z.getMode();return{mode:Be==="horizontal"?"vertical":Be,visible:z.getVisible(),level:Re.level+1,inlineIndent:Re.inlineIndent,focusable:!1,onClick:z.onSubMenuClick,onSelect:z.onSelect,onDeselect:z.onDeselect,onDestroy:z.onDestroy,selectedKeys:Re.selectedKeys,eventKey:"".concat(Re.eventKey,"-menu-"),openKeys:Re.openKeys,motion:Re.motion,onOpenChange:z.onOpenChange,subMenuOpenDelay:Re.subMenuOpenDelay,parentMenu:Object(h.a)(z),subMenuCloseDelay:Re.subMenuCloseDelay,forceSubMenuRender:Re.forceSubMenuRender,triggerSubMenuAction:Re.triggerSubMenuAction,builtinPlacements:Re.builtinPlacements,defaultActiveFirst:Re.store.getState().defaultActiveFirst[Ue(Re.eventKey)],multiple:Re.multiple,prefixCls:Re.rootPrefixCls,id:z.internalMenuId,manualRef:z.saveMenuInstance,itemIcon:Re.itemIcon,expandIcon:Re.expandIcon,direction:Re.direction}},z.getMotion=function(ve,Re){var Be=Object(h.a)(z),nt=Be.haveRendered,tt=z.props,mt=tt.motion,kt=tt.rootPrefixCls,zt=Object(j.a)(Object(j.a)({},mt),{},{leavedClassName:"".concat(kt,"-hidden"),removeOnLeave:!1,motionAppear:nt||!Re||ve!=="inline"});return zt};var q=ue.store,X=ue.eventKey,ce=q.getState(),he=ce.defaultActiveFirst;z.isRootMenu=!1;var Te=!1;return he&&(Te=he[X]),yn(q,X,Te),z.state={mode:ue.mode,isOpen:ue.isOpen},z}return Object(_.a)(be,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var z=this,q=this.props,X=q.mode,ce=q.parentMenu,he=q.manualRef,Te=q.isOpen,ve=function(){z.setState({mode:X,isOpen:Te})},Re=Te!==this.state.isOpen,Be=X!==this.state.mode;if((Be||Re)&&($e.a.cancel(this.updateStateRaf),Be?this.updateStateRaf=Object($e.a)(ve):ve()),he&&he(this),X!=="horizontal"||!(ce==null?void 0:ce.isRootMenu)||!Te)return;this.minWidthTimeout=setTimeout(function(){return z.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var z=this.props,q=z.onDestroy,X=z.eventKey;q&&q(X),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),$e.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(z,q){var X=this.getBaseProps();return C.createElement(wi,Object(m.a)({},X,{id:this.internalMenuId,className:z,style:q}),this.props.children)}},{key:"renderChildren",value:function(){var z=this,q=this.getBaseProps(),X=q.mode,ce=q.visible,he=q.forceSubMenuRender,Te=q.direction,ve=this.getMotion(X,ce);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ce||he,!this.haveOpened)return C.createElement("div",null);var Re=W()("".concat(q.prefixCls,"-sub"),Object(Q.a)({},"".concat(q.prefixCls,"-rtl"),Te==="rtl"));return this.isInlineMode()?C.createElement(G,Object(m.a)({visible:q.visible,forceRender:he},ve),function(Be){var nt=Be.className,tt=Be.style,mt=W()(Re,nt);return z.renderPopupMenu(mt,tt)}):this.renderPopupMenu(Re)}},{key:"render",value:function(){var z,q,X,ce=Object(j.a)({},this.props),he=this.getVisible(),Te=this.getPrefixCls(),ve=this.isInlineMode(),Re=this.getMode(),Be=W()(Te,"".concat(Te,"-").concat(Re),(z={},Object(Q.a)(z,ce.className,!!ce.className),Object(Q.a)(z,this.getOpenClassName(),he),Object(Q.a)(z,this.getActiveClassName(),ce.active||he&&!ve),Object(Q.a)(z,this.getDisabledClassName(),ce.disabled),Object(Q.a)(z,this.getSelectedClassName(),this.isChildrenSelected()),z));this.internalMenuId||(ce.eventKey?this.internalMenuId="".concat(ce.eventKey,"$Menu"):(dn+=1,this.internalMenuId="$__$".concat(dn,"$Menu")));var nt={},tt={},mt={};ce.disabled||(nt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},tt={onClick:this.onTitleClick},mt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var kt={},zt=ce.direction,jt=zt==="rtl";ve&&(jt?kt.paddingRight=ce.inlineIndent*ce.level:kt.paddingLeft=ce.inlineIndent*ce.level);var Jt={};this.getVisible()&&(Jt={"aria-owns":this.internalMenuId});var Vt=null;Re!=="horizontal"&&(Vt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Vt=C.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var Kt=C.createElement("div",Object(m.a)({ref:this.saveSubMenuTitle,style:kt,className:"".concat(Te,"-title"),role:"button"},mt,tt,{"aria-expanded":he},Jt,{"aria-haspopup":"true",title:typeof ce.title=="string"?ce.title:void 0}),ce.title,Vt||C.createElement("i",{className:"".concat(Te,"-arrow")})),Gt=this.renderChildren(),rn=((q=ce.parentMenu)===null||q===void 0?void 0:q.isRootMenu)?ce.parentMenu.props.getPopupContainer:function(Sn){return Sn.parentNode},Qt=Wt[Re],An=ce.popupOffset?{offset:ce.popupOffset}:{},pn=W()((X={},Object(Q.a)(X,ce.popupClassName,ce.popupClassName&&!ve),Object(Q.a)(X,"".concat(Te,"-rtl"),jt),X)),Mt=ce.disabled,Lt=ce.triggerSubMenuAction,$t=ce.subMenuOpenDelay,nn=ce.forceSubMenuRender,Ct=ce.subMenuCloseDelay,an=ce.builtinPlacements;ee.forEach(function(Sn){return delete ce[Sn]}),delete ce.onClick;var En=jt?Object(j.a)(Object(j.a)({},Ri),an):Object(j.a)(Object(j.a)({},ti),an);delete ce.direction;var sn=this.getBaseProps(),vn=ve?null:this.getMotion(sn.mode,sn.visible);return C.createElement("li",Object(m.a)({},ce,nt,{className:Be,role:"menuitem"}),C.createElement(ui,{prefixCls:Te,popupClassName:W()("".concat(Te,"-popup"),pn),getPopupContainer:rn,builtinPlacements:En,popupPlacement:Qt,popupVisible:ve?!1:he,popupAlign:An,popup:ve?null:Gt,action:Mt||ve?[]:[Lt],mouseEnterDelay:$t,mouseLeaveDelay:Ct,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:nn,popupMotion:vn},Kt),ve?Gt:null)}}]),be}(C.Component);Zt.defaultProps={onMouseEnter:Je,onMouseLeave:Je,onTitleMouseEnter:Je,onTitleMouseLeave:Je,onTitleClick:Je,manualRef:Je,mode:"vertical",title:""};var On=Object(c.b)(function(te,pe){var be=te.openKeys,ue=te.activeKey,z=te.selectedKeys,q=pe.eventKey,X=pe.subMenuKey;return{isOpen:be.indexOf(q)>-1,active:ue[X]===q,selectedKeys:z}})(Zt);On.isSubMenu=!0;var un=On,vi="menuitem-overflowed",Rn=.5,Ti=function(te){Object(d.a)(be,te);var pe=Object(l.a)(be);function be(){var ue;return Object(x.a)(this,be),ue=pe.apply(this,arguments),ue.resizeObserver=null,ue.mutationObserver=null,ue.originalTotalWidth=0,ue.overflowedItems=[],ue.menuItemSizes=[],ue.cancelFrameId=null,ue.state={lastVisibleIndex:void 0},ue.childRef=C.createRef(),ue.getMenuItemNodes=function(){var z=ue.props.prefixCls,q=ue.childRef.current;return q?[].slice.call(q.children).filter(function(X){return X.className.split(" ").indexOf("".concat(z,"-overflowed-submenu"))<0}):[]},ue.getOverflowedSubMenuItem=function(z,q,X){var ce=ue.props,he=ce.overflowedIndicator,Te=ce.level,ve=ce.mode,Re=ce.prefixCls,Be=ce.theme;if(Te!==1||ve!=="horizontal")return null;var nt=ue.props.children[0],tt=nt.props,mt=tt.children,kt=tt.title,zt=tt.style,jt=Object(I.a)(tt,["children","title","style"]),Jt=Object(j.a)({},zt),Vt="".concat(z,"-overflowed-indicator"),Kt="".concat(z,"-overflowed-indicator");q.length===0&&X!==!0?Jt=Object(j.a)(Object(j.a)({},Jt),{},{display:"none"}):X&&(Jt=Object(j.a)(Object(j.a)({},Jt),{},{visibility:"hidden",position:"absolute"}),Vt="".concat(Vt,"-placeholder"),Kt="".concat(Kt,"-placeholder"));var Gt=Be?"".concat(Re,"-").concat(Be):"",rn={};return ee.forEach(function(Qt){jt[Qt]!==void 0&&(rn[Qt]=jt[Qt])}),C.createElement(un,Object(m.a)({title:he,className:"".concat(Re,"-overflowed-submenu"),popupClassName:Gt},rn,{key:Vt,eventKey:Kt,disabled:!1,style:Jt}),q)},ue.setChildrenWidthAndResize=function(){if(ue.props.mode!=="horizontal")return;var z=ue.childRef.current;if(!z)return;var q=z.children;if(!q||q.length===0)return;var X=z.children[q.length-1];_e(X,"display","inline-block");var ce=ue.getMenuItemNodes(),he=ce.filter(function(Te){return Te.className.split(" ").indexOf(vi)>=0});he.forEach(function(Te){_e(Te,"display","inline-block")}),ue.menuItemSizes=ce.map(function(Te){return ge(Te,!0)}),he.forEach(function(Te){_e(Te,"display","none")}),ue.overflowedIndicatorWidth=ge(z.children[z.children.length-1],!0),ue.originalTotalWidth=ue.menuItemSizes.reduce(function(Te,ve){return Te+ve},0),ue.handleResize(),_e(X,"display","none")},ue.handleResize=function(){if(ue.props.mode!=="horizontal")return;var z=ue.childRef.current;if(!z)return;var q=ge(z);ue.overflowedItems=[];var X=0,ce;ue.originalTotalWidth>q+Rn&&(ce=-1,ue.menuItemSizes.forEach(function(he){X+=he,X+ue.overflowedIndicatorWidth<=q&&(ce+=1)})),ue.setState({lastVisibleIndex:ce})},ue}return Object(_.a)(be,[{key:"componentDidMount",value:function(){var z=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var q=this.childRef.current;if(!q)return;this.resizeObserver=new Ve.default(function(X){X.forEach(function(){var ce=z.cancelFrameId;cancelAnimationFrame(ce),z.cancelFrameId=requestAnimationFrame(z.setChildrenWidthAndResize)})}),[].slice.call(q.children).concat(q).forEach(function(X){z.resizeObserver.observe(X)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){z.resizeObserver.disconnect(),[].slice.call(q.children).concat(q).forEach(function(X){z.resizeObserver.observe(X)}),z.setChildrenWidthAndResize()}),this.mutationObserver.observe(q,{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(z){var q=this,X=this.state.lastVisibleIndex;return(z||[]).reduce(function(ce,he,Te){var ve=he;if(q.props.mode==="horizontal"){var Re=q.getOverflowedSubMenuItem(he.props.eventKey,[]);X!==void 0&&q.props.className.indexOf("".concat(q.props.prefixCls,"-root"))!==-1&&(Te>X&&(ve=C.cloneElement(he,{style:{display:"none"},eventKey:"".concat(he.props.eventKey,"-hidden"),className:"".concat(vi)})),Te===X+1&&(q.overflowedItems=z.slice(X+1).map(function(nt){return C.cloneElement(nt,{key:nt.props.eventKey,mode:"vertical-left"})}),Re=q.getOverflowedSubMenuItem(he.props.eventKey,q.overflowedItems)));var Be=[].concat(Object(O.a)(ce),[Re,ve]);return Te===z.length-1&&Be.push(q.getOverflowedSubMenuItem(he.props.eventKey,[],!0)),Be}return[].concat(Object(O.a)(ce),[ve])},[])}},{key:"render",value:function(){var z=this.props,q=z.visible,X=z.prefixCls,ce=z.overflowedIndicator,he=z.mode,Te=z.level,ve=z.tag,Re=z.children,Be=z.theme,nt=Object(I.a)(z,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),tt=ve;return C.createElement(tt,Object(m.a)({ref:this.childRef},nt),this.renderChildren(Re))}}]),be}(C.Component);Ti.defaultProps={tag:"div",className:""};var yi=Ti;function bi(te){return te.length?te.every(function(pe){return!!pe.props.disabled}):!0}function ni(te,pe,be){var ue=te.getState();te.setState({activeKey:Object(j.a)(Object(j.a)({},ue.activeKey),{},Object(Q.a)({},pe,be))})}function ci(te){return te.eventKey||"0-menu-"}function Si(te,pe){var be=pe,ue=te.children,z=te.eventKey;if(be){var q;if(ze(ue,function(X,ce){X&&X.props&&!X.props.disabled&&be===at(X,z,ce)&&(q=!0)}),q)return be}return be=null,te.defaultActiveFirst&&ze(ue,function(X,ce){!be&&X&&!X.props.disabled&&(be=at(X,z,ce))}),be}function di(te){if(!te)return;var pe=this.instanceArray.indexOf(te);pe!==-1?this.instanceArray[pe]=te:this.instanceArray.push(te)}var Ki=function(te){Object(d.a)(be,te);var pe=Object(l.a)(be);function be(ue){var z;return Object(x.a)(this,be),z=pe.call(this,ue),z.onKeyDown=function(q,X){var ce=q.keyCode,he;if(z.getFlatInstanceArray().forEach(function(ve){ve&&ve.props.active&&ve.onKeyDown&&(he=ve.onKeyDown(q))}),he)return 1;var Te=null;return(ce===o.a.UP||ce===o.a.DOWN)&&(Te=z.step(ce===o.a.UP?-1:1)),Te?(q.preventDefault(),ni(z.props.store,ci(z.props),Te.props.eventKey),typeof X=="function"&&X(Te),1):void 0},z.onItemHover=function(q){var X=q.key,ce=q.hover;ni(z.props.store,ci(z.props),ce?X:null)},z.onDeselect=function(q){z.props.onDeselect(q)},z.onSelect=function(q){z.props.onSelect(q)},z.onClick=function(q){z.props.onClick(q)},z.onOpenChange=function(q){z.props.onOpenChange(q)},z.onDestroy=function(q){z.props.onDestroy(q)},z.getFlatInstanceArray=function(){return z.instanceArray},z.step=function(q){var X=z.getFlatInstanceArray(),ce=z.props.store.getState().activeKey[ci(z.props)],he=X.length;if(!he)return null;q<0&&(X=X.concat().reverse());var Te=-1;if(X.every(function(nt,tt){return nt&&nt.props.eventKey===ce?(Te=tt,!1):!0}),!z.props.defaultActiveFirst&&Te!==-1&&bi(X.slice(Te,he-1)))return;var ve=(Te+1)%he,Re=ve;do{var Be=X[Re];if(!Be||Be.props.disabled)Re=(Re+1)%he;else return Be}while(Re!==ve);return null},z.renderCommonMenuItem=function(q,X,ce){var he=z.props.store.getState(),Te=Object(h.a)(z),ve=Te.props,Re=at(q,ve.eventKey,X),Be=q.props;if(!Be||typeof q.type=="string")return q;var nt=Re===he.activeKey,tt=Object(j.a)(Object(j.a)({mode:Be.mode||ve.mode,level:ve.level,inlineIndent:ve.inlineIndent,renderMenuItem:z.renderMenuItem,rootPrefixCls:ve.prefixCls,index:X,parentMenu:ve.parentMenu,manualRef:Be.disabled?void 0:Object(f.a)(q.ref,di.bind(Object(h.a)(z))),eventKey:Re,active:!Be.disabled&&nt,multiple:ve.multiple,onClick:function(kt){(Be.onClick||Je)(kt),z.onClick(kt)},onItemHover:z.onItemHover,motion:ve.motion,subMenuOpenDelay:ve.subMenuOpenDelay,subMenuCloseDelay:ve.subMenuCloseDelay,forceSubMenuRender:ve.forceSubMenuRender,onOpenChange:z.onOpenChange,onDeselect:z.onDeselect,onSelect:z.onSelect,builtinPlacements:ve.builtinPlacements,itemIcon:Be.itemIcon||z.props.itemIcon,expandIcon:Be.expandIcon||z.props.expandIcon},ce),{},{direction:ve.direction});return(ve.mode==="inline"||we())&&(tt.triggerSubMenuAction="click"),C.cloneElement(q,Object(j.a)(Object(j.a)({},tt),{},{key:Re||X}))},z.renderMenuItem=function(q,X,ce){if(!q)return null;var he=z.props.store.getState(),Te={openKeys:he.openKeys,selectedKeys:he.selectedKeys,triggerSubMenuAction:z.props.triggerSubMenuAction,subMenuKey:ce};return z.renderCommonMenuItem(q,X,Te)},ue.store.setState({activeKey:Object(j.a)(Object(j.a)({},ue.store.getState().activeKey),{},Object(Q.a)({},ue.eventKey,Si(ue,ue.activeKey)))}),z.instanceArray=[],z}return Object(_.a)(be,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(z){return this.props.visible||z.visible||this.props.className!==z.className||!L()(this.props.style,z.style)}},{key:"componentDidUpdate",value:function(z){var q=this.props,X="activeKey"in q?q.activeKey:q.store.getState().activeKey[ci(q)],ce=Si(q,X);if(ce!==X)ni(q.store,ci(q),ce);else if("activeKey"in z){var he=Si(z,z.activeKey);ce!==he&&ni(q.store,ci(q),ce)}}},{key:"render",value:function(){var z=this,q=Object(m.a)({},this.props);this.instanceArray=[];var X=W()(q.prefixCls,q.className,"".concat(q.prefixCls,"-").concat(q.mode)),ce={className:X,role:q.role||"menu"};q.id&&(ce.id=q.id),q.focusable&&(ce.tabIndex=0,ce.onKeyDown=this.onKeyDown);var he=q.prefixCls,Te=q.eventKey,ve=q.visible,Re=q.level,Be=q.mode,nt=q.overflowedIndicator,tt=q.theme;return ee.forEach(function(mt){return delete q[mt]}),delete q.onClick,C.createElement(yi,Object(m.a)({},q,{prefixCls:he,mode:Be,tag:"ul",level:Re,theme:tt,visible:ve,overflowedIndicator:nt},ce),Object(k.a)(q.children).map(function(mt,kt){return z.renderMenuItem(mt,kt,Te||"0-menu-")}))}}]),be}(C.Component);Ki.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Je};var Gi=Object(c.b)()(Ki),wi=Gi,hi=N("Kwbf");function Ii(te,pe,be){var ue=te.prefixCls,z=te.motion,q=te.defaultMotions,X=q===void 0?{}:q,ce=te.openAnimation,he=te.openTransitionName,Te=pe.switchingModeFromInline;if(z)return z;if(Object(P.a)(ce)==="object"&&ce)Object(hi.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ce=="string")return{motionName:"".concat(ue,"-open-").concat(ce)};if(he)return{motionName:he};var ve=X[be];return ve||(Te?null:X.other)}var zi=function(te){Object(d.a)(be,te);var pe=Object(l.a)(be);function be(ue){var z;Object(x.a)(this,be),z=pe.call(this,ue),z.onSelect=function(ce){var he=Object(h.a)(z),Te=he.props;if(Te.selectable){var ve=z.store.getState(),Re=ve.selectedKeys,Be=ce.key;Te.multiple?Re=Re.concat([Be]):Re=[Be],"selectedKeys"in Te||z.store.setState({selectedKeys:Re}),Te.onSelect(Object(j.a)(Object(j.a)({},ce),{},{selectedKeys:Re}))}},z.onClick=function(ce){var he=z.getRealMenuMode(),Te=Object(h.a)(z),ve=Te.store,Re=Te.props.onOpenChange;he!=="inline"&&!("openKeys"in z.props)&&(ve.setState({openKeys:[]}),Re([])),z.props.onClick(ce)},z.onKeyDown=function(ce,he){z.innerMenu.getWrappedInstance().onKeyDown(ce,he)},z.onOpenChange=function(ce){var he=Object(h.a)(z),Te=he.props,ve=z.store.getState().openKeys.concat(),Re=!1,Be=function(tt){var mt=!1;if(tt.open)mt=ve.indexOf(tt.key)===-1,mt&&ve.push(tt.key);else{var kt=ve.indexOf(tt.key);mt=kt!==-1,mt&&ve.splice(kt,1)}Re=Re||mt};Array.isArray(ce)?ce.forEach(Be):Be(ce),Re&&("openKeys"in z.props||z.store.setState({openKeys:ve}),Te.onOpenChange(ve))},z.onDeselect=function(ce){var he=Object(h.a)(z),Te=he.props;if(Te.selectable){var ve=z.store.getState().selectedKeys.concat(),Re=ce.key,Be=ve.indexOf(Re);Be!==-1&&ve.splice(Be,1),"selectedKeys"in Te||z.store.setState({selectedKeys:ve}),Te.onDeselect(Object(j.a)(Object(j.a)({},ce),{},{selectedKeys:ve}))}},z.onMouseEnter=function(ce){z.restoreModeVerticalFromInline();var he=z.props.onMouseEnter;he&&he(ce)},z.onTransitionEnd=function(ce){var he=ce.propertyName==="width"&&ce.target===ce.currentTarget,Te=ce.target.className,ve=Object.prototype.toString.call(Te)==="[object SVGAnimatedString]"?Te.animVal:Te,Re=ce.propertyName==="font-size"&&ve.indexOf("anticon")>=0;(he||Re)&&z.restoreModeVerticalFromInline()},z.setInnerMenu=function(ce){z.innerMenu=ce},z.isRootMenu=!0;var q=ue.defaultSelectedKeys,X=ue.defaultOpenKeys;return"selectedKeys"in ue&&(q=ue.selectedKeys||[]),"openKeys"in ue&&(X=ue.openKeys||[]),z.store=Object(c.c)({selectedKeys:q,openKeys:X,activeKey:{"0-menu-":Si(ue,ue.activeKey)}}),z.state={switchingModeFromInline:!1,prevProps:ue,inlineOpenKeys:[],store:z.store},z}return Object(_.a)(be,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(z){var q=this.props,X=q.siderCollapsed,ce=q.inlineCollapsed,he=q.onOpenChange;(!z.inlineCollapsed&&ce||!z.siderCollapsed&&X)&&he([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var z=this.props.collapsedWidth,q=this.store,X=this.prevOpenKeys,ce=this.getInlineCollapsed()&&(z===0||z==="0"||z==="0px");ce?(this.prevOpenKeys=q.getState().openKeys.concat(),this.store.setState({openKeys:[]})):X&&(this.store.setState({openKeys:X}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var z=this.props.mode,q=this.state.switchingModeFromInline,X=this.getInlineCollapsed();return q&&X?"inline":X?"vertical":z}},{key:"getInlineCollapsed",value:function(){var z=this.props,q=z.inlineCollapsed,X=z.siderCollapsed;return X!==void 0?X:q}},{key:"restoreModeVerticalFromInline",value:function(){var z=this.state.switchingModeFromInline;z&&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 z=Object(j.a)({},Object(v.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),q=this.getRealMenuMode();return z.className+=" ".concat(z.prefixCls,"-root"),z.direction==="rtl"&&(z.className+=" ".concat(z.prefixCls,"-rtl")),z=Object(j.a)(Object(j.a)({},z),{},{mode:q,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ii(this.props,this.state,q)}),delete z.openAnimation,delete z.openTransitionName,C.createElement(c.a,{store:this.store},C.createElement(wi,Object(m.a)({},z,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(z,q){var X=q.prevProps,ce=q.store,he=ce.getState(),Te={},ve={prevProps:z};return X.mode==="inline"&&z.mode!=="inline"&&(ve.switchingModeFromInline=!0),"openKeys"in z?Te.openKeys=z.openKeys||[]:((z.inlineCollapsed&&!X.inlineCollapsed||z.siderCollapsed&&!X.siderCollapsed)&&(ve.switchingModeFromInline=!0,ve.inlineOpenKeys=he.openKeys,Te.openKeys=[]),(!z.inlineCollapsed&&X.inlineCollapsed||!z.siderCollapsed&&X.siderCollapsed)&&(Te.openKeys=q.inlineOpenKeys,ve.inlineOpenKeys=[])),Object.keys(Te).length&&ce.setState(Te),ve}}]),be}(C.Component);zi.defaultProps={selectable:!0,onClick:Je,onSelect:Je,onOpenChange:Je,onDeselect:Je,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 ki=zi,_i=function(te){Object(d.a)(be,te);var pe=Object(l.a)(be);function be(){var ue;return Object(x.a)(this,be),ue=pe.apply(this,arguments),ue.onKeyDown=function(z){var q=z.keyCode;return q===o.a.ENTER?(ue.onClick(z),!0):void 0},ue.onMouseLeave=function(z){var q=ue.props,X=q.eventKey,ce=q.onItemHover,he=q.onMouseLeave;ce({key:X,hover:!1}),he({key:X,domEvent:z})},ue.onMouseEnter=function(z){var q=ue.props,X=q.eventKey,ce=q.onItemHover,he=q.onMouseEnter;ce({key:X,hover:!0}),he({key:X,domEvent:z})},ue.onClick=function(z){var q=ue.props,X=q.eventKey,ce=q.multiple,he=q.onClick,Te=q.onSelect,ve=q.onDeselect,Re=q.isSelected,Be={key:X,keyPath:[X],item:Object(h.a)(ue),domEvent:z};he(Be),ce?Re?ve(Be):Te(Be):Re||Te(Be)},ue.saveNode=function(z){ue.node=z},ue}return Object(_.a)(be,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var z=this.props;z.onDestroy&&z.onDestroy(z.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 z,q=Object(j.a)({},this.props),X=W()(this.getPrefixCls(),q.className,(z={},Object(Q.a)(z,this.getActiveClassName(),!q.disabled&&q.active),Object(Q.a)(z,this.getSelectedClassName(),q.isSelected),Object(Q.a)(z,this.getDisabledClassName(),q.disabled),z)),ce=Object(j.a)(Object(j.a)({},q.attribute),{},{title:typeof q.title=="string"?q.title:void 0,className:X,role:q.role||"menuitem","aria-disabled":q.disabled});q.role==="option"?ce=Object(j.a)(Object(j.a)({},ce),{},{role:"option","aria-selected":q.isSelected}):(q.role===null||q.role==="none")&&(ce.role="none");var he={onClick:q.disabled?null:this.onClick,onMouseLeave:q.disabled?null:this.onMouseLeave,onMouseEnter:q.disabled?null:this.onMouseEnter},Te=Object(j.a)({},q.style);q.mode==="inline"&&(q.direction==="rtl"?Te.paddingRight=q.inlineIndent*q.level:Te.paddingLeft=q.inlineIndent*q.level),ee.forEach(function(Re){return delete q[Re]}),delete q.direction;var ve=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ve=C.createElement(this.props.itemIcon,this.props)),C.createElement("li",Object(m.a)({},Object(v.a)(q,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ce,he,{style:Te,ref:this.saveNode}),q.children,ve)}}]),be}(C.Component);_i.isMenuItem=!0,_i.defaultProps={onSelect:Je,onMouseEnter:Je,onMouseLeave:Je,manualRef:Je};var Ci=Object(c.b)(function(te,pe){var be=te.activeKey,ue=te.selectedKeys,z=pe.eventKey,q=pe.subMenuKey;return{active:be[q]===z,isSelected:Array.isArray(ue)?ue.indexOf(z)!==-1:ue===z}})(_i),Ui=Ci,ii=function(te){Object(d.a)(be,te);var pe=Object(l.a)(be);function be(){var ue;return Object(x.a)(this,be),ue=pe.apply(this,arguments),ue.renderInnerMenuItem=function(z){var q=ue.props,X=q.renderMenuItem,ce=q.index;return X(z,ce,ue.props.subMenuKey)},ue}return Object(_.a)(be,[{key:"render",value:function(){var z=Object(m.a)({},this.props),q=z.className,X=q===void 0?"":q,ce=z.rootPrefixCls,he="".concat(ce,"-item-group-title"),Te="".concat(ce,"-item-group-list"),ve=z.title,Re=z.children;return ee.forEach(function(Be){return delete z[Be]}),delete z.direction,C.createElement("li",Object(m.a)({},z,{onClick:function(nt){return nt.stopPropagation()},className:"".concat(X," ").concat(ce,"-item-group")}),C.createElement("div",{className:he,title:typeof ve=="string"?ve:void 0},ve),C.createElement("ul",{className:Te},C.Children.map(Re,this.renderInnerMenuItem)))}}]),be}(C.Component);ii.isMenuItemGroup=!0,ii.defaultProps={disabled:!0};var $i=ii,Bi=function(pe){var be=pe.className,ue=pe.rootPrefixCls,z=pe.style;return C.createElement("li",{className:"".concat(be," ").concat(ue,"-item-divider"),style:z})};Bi.defaultProps={disabled:!0,className:"",style:{}};var er=Bi,Vi=ki,ji=N("eDIo");function Gn(te,pe){var be=te.prefixCls,ue=te.editable,z=te.locale,q=te.style;return!ue||ue.showAdd===!1?null:C.createElement("button",{ref:pe,type:"button",className:"".concat(be,"-nav-add"),style:q,"aria-label":(z==null?void 0:z.addAriaLabel)||"Add tab",onClick:function(ce){ue.onEdit("add",{event:ce})}},ue.addIcon||"+")}var Ai=C.forwardRef(Gn);function Yi(te,pe){var be=te.prefixCls,ue=te.id,z=te.tabs,q=te.locale,X=te.mobile,ce=te.moreIcon,he=ce===void 0?"More":ce,Te=te.moreTransitionName,ve=te.style,Re=te.className,Be=te.editable,nt=te.tabBarGutter,tt=te.rtl,mt=te.onTabClick,kt=Object(C.useState)(!1),zt=Object(M.a)(kt,2),jt=zt[0],Jt=zt[1],Vt=Object(C.useState)(null),Kt=Object(M.a)(Vt,2),Gt=Kt[0],rn=Kt[1],Qt="".concat(ue,"-more-popup"),An="".concat(be,"-dropdown"),pn=Gt!==null?"".concat(Qt,"-").concat(Gt):null,Mt=q==null?void 0:q.dropdownAriaLabel,Lt=C.createElement(Vi,{onClick:function(vn){var Sn=vn.key,Fn=vn.domEvent;mt(Sn,Fn),Jt(!1)},id:Qt,tabIndex:-1,role:"listbox","aria-activedescendant":pn,selectedKeys:[Gt],"aria-label":Mt!==void 0?Mt:"expanded dropdown"},z.map(function(sn){return C.createElement(Ui,{key:sn.key,id:"".concat(Qt,"-").concat(sn.key),role:"option","aria-controls":ue&&"".concat(ue,"-panel-").concat(sn.key),disabled:sn.disabled},sn.tab)}));function $t(sn){for(var vn=z.filter(function(Zn){return!Zn.disabled}),Sn=vn.findIndex(function(Zn){return Zn.key===Gt})||0,Fn=vn.length,Qn=0;Qn<Fn;Qn+=1){Sn=(Sn+sn+Fn)%Fn;var In=vn[Sn];if(!In.disabled){rn(In.key);return}}}function nn(sn){var vn=sn.which;if(!jt){[o.a.DOWN,o.a.SPACE,o.a.ENTER].includes(vn)&&(Jt(!0),sn.preventDefault());return}switch(vn){case o.a.UP:$t(-1),sn.preventDefault();break;case o.a.DOWN:$t(1),sn.preventDefault();break;case o.a.ESC:Jt(!1);break;case o.a.SPACE:case o.a.ENTER:Gt!==null&&mt(Gt,sn);break}}Object(C.useEffect)(function(){var sn=document.getElementById(pn);sn&&sn.scrollIntoView&&sn.scrollIntoView(!1)},[Gt]),Object(C.useEffect)(function(){jt||rn(null)},[jt]);var Ct=Object(Q.a)({},tt?"marginLeft":"marginRight",nt);z.length||(Ct.visibility="hidden",Ct.order=1);var an=W()(Object(Q.a)({},"".concat(An,"-rtl"),tt)),En=X?null:C.createElement(ji.a,{prefixCls:An,overlay:Lt,trigger:["hover"],visible:jt,transitionName:Te,onVisibleChange:Jt,overlayClassName:an,mouseEnterDelay:.1,mouseLeaveDelay:.1},C.createElement("button",{type:"button",className:"".concat(be,"-nav-more"),style:Ct,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Qt,id:"".concat(ue,"-more"),"aria-expanded":jt,onKeyDown:nn},he));return C.createElement("div",{className:W()("".concat(be,"-nav-operations"),Re),style:ve,ref:pe},En,C.createElement(Ai,{prefixCls:be,locale:q,editable:Be}))}var tr=C.forwardRef(Yi),Di=Object(C.createContext)(null),Xt=.1,qt=.01,_n=20,Nn=Math.pow(.995,_n);function jn(){var te=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(te)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(te.substr(0,4)))}function Xi(te,pe){var be=Object(C.useState)(),ue=Object(M.a)(be,2),z=ue[0],q=ue[1],X=Object(C.useState)(0),ce=Object(M.a)(X,2),he=ce[0],Te=ce[1],ve=Object(C.useState)(0),Re=Object(M.a)(ve,2),Be=Re[0],nt=Re[1],tt=Object(C.useState)(),mt=Object(M.a)(tt,2),kt=mt[0],zt=mt[1],jt=Object(C.useRef)();function Jt(Mt){var Lt=Mt.touches[0],$t=Lt.screenX,nn=Lt.screenY;q({x:$t,y:nn}),window.clearInterval(jt.current)}function Vt(Mt){if(!z)return;Mt.preventDefault();var Lt=Mt.touches[0],$t=Lt.screenX,nn=Lt.screenY;q({x:$t,y:nn});var Ct=$t-z.x,an=nn-z.y;pe(Ct,an);var En=Date.now();Te(En),nt(En-he),zt({x:Ct,y:an})}function Kt(){if(!z)return;if(q(null),zt(null),kt){var Mt=kt.x/Be,Lt=kt.y/Be,$t=Math.abs(Mt),nn=Math.abs(Lt);if(Math.max($t,nn)<Xt)return;var Ct=Mt,an=Lt;jt.current=window.setInterval(function(){if(Math.abs(Ct)<qt&&Math.abs(an)<qt){window.clearInterval(jt.current);return}Ct*=Nn,an*=Nn,pe(Ct*_n,an*_n)},_n)}}var Gt=Object(C.useRef)(0),rn=Object(C.useRef)(!1),Qt=Object(C.useRef)();function An(Mt){var Lt=Mt.deltaX,$t=Mt.deltaY,nn=0,Ct=Math.abs(Lt),an=Math.abs($t);Ct===an?nn=Qt.current==="x"?Lt:$t:Ct>an?(nn=Lt,Qt.current="x"):(nn=$t,Qt.current="y");var En=Date.now();En-Gt.current>100&&(rn.current=!1),(pe(-nn,-nn)||rn.current)&&(Mt.preventDefault(),rn.current=!0),Gt.current=En}var pn=Object(C.useRef)(null);pn.current={onTouchStart:Jt,onTouchMove:Vt,onTouchEnd:Kt,onWheel:An},C.useEffect(function(){function Mt(Ct){pn.current.onTouchStart(Ct)}function Lt(Ct){pn.current.onTouchMove(Ct)}function $t(Ct){pn.current.onTouchEnd(Ct)}function nn(Ct){pn.current.onWheel(Ct)}return document.addEventListener("touchmove",Lt,{passive:!1}),document.addEventListener("touchend",$t,{passive:!1}),te.current.addEventListener("touchstart",Mt,{passive:!1}),te.current.addEventListener("wheel",nn),function(){document.removeEventListener("touchmove",Lt),document.removeEventListener("touchend",$t)}},[])}function Fi(){var te=Object(C.useRef)(new Map);function pe(ue){return te.current.has(ue)||te.current.set(ue,C.createRef()),te.current.get(ue)}function be(ue){te.current.delete(ue)}return[pe,be]}function Ji(te,pe){var be=C.useRef(te),ue=C.useState({}),z=Object(M.a)(ue,2),q=z[1];function X(ce){var he=typeof ce=="function"?ce(be.current):ce;he!==be.current&&pe(he,be.current),be.current=he,q({})}return[be.current,X]}var Qi=function(pe){var be=pe.position,ue=pe.prefixCls,z=pe.extra;if(!z)return null;var q,X=z;return be==="right"&&(q=X.right||!X.left&&X||null),be==="left"&&(q=X.left||null),q?C.createElement("div",{className:"".concat(ue,"-extra-content")},q):null};function nr(te,pe){var be,ue=C.useContext(Di),z=ue.prefixCls,q=ue.tabs,X=te.className,ce=te.style,he=te.id,Te=te.animated,ve=te.activeKey,Re=te.rtl,Be=te.extra,nt=te.editable,tt=te.locale,mt=te.tabPosition,kt=te.tabBarGutter,zt=te.children,jt=te.onTabClick,Jt=te.onTabScroll,Vt=Object(C.useRef)(),Kt=Object(C.useRef)(),Gt=Object(C.useRef)(),rn=Object(C.useRef)(),Qt=Fi(),An=Object(M.a)(Qt,2),pn=An[0],Mt=An[1],Lt=mt==="top"||mt==="bottom",$t=Ji(0,function(mn,en){Lt&&Jt&&Jt({direction:mn>en?"left":"right"})}),nn=Object(M.a)($t,2),Ct=nn[0],an=nn[1],En=Ji(0,function(mn,en){!Lt&&Jt&&Jt({direction:mn>en?"top":"bottom"})}),sn=Object(M.a)(En,2),vn=sn[0],Sn=sn[1],Fn=Object(C.useState)(0),Qn=Object(M.a)(Fn,2),In=Qn[0],Zn=Qn[1],Ei=Object(C.useState)(0),ri=Object(M.a)(Ei,2),ai=ri[0],Pn=ri[1],zn=Object(C.useState)(0),Hn=Object(M.a)(zn,2),Un=Hn[0],Li=Hn[1],Pi=Object(C.useState)(0),Hi=Object(M.a)(Pi,2),bn=Hi[0],Oi=Hi[1],Wi=Object(C.useState)(null),xn=Object(M.a)(Wi,2),hn=xn[0],Wn=xn[1],Vr=Object(C.useState)(null),xr=Object(M.a)(Vr,2),Zi=xr[0],Yr=xr[1],Xr=Object(C.useState)(0),Tr=Object(M.a)(Xr,2),Jr=Tr[0],Qr=Tr[1],Zr=Object(C.useState)(0),Sr=Object(M.a)(Zr,2),qr=Sr[0],$r=Sr[1],ea=r(new Map),wr=Object(M.a)(ea,2),ta=wr[0],na=wr[1],hr=t(q,ta,In),Cr="".concat(z,"-nav-operations-hidden"),ir=0,rr=0;Lt?Re?(ir=0,rr=Math.max(0,In-hn)):(ir=Math.min(0,hn-In),rr=0):(ir=Math.min(0,Zi-ai),rr=0);function fr(mn){return mn<ir?[ir,!1]:mn>rr?[rr,!1]:[mn,!0]}var Ar=Object(C.useRef)(),ia=Object(C.useState)(),Or=Object(M.a)(ia,2),pr=Or[0],Rr=Or[1];function mr(){Rr(Date.now())}function gr(){window.clearTimeout(Ar.current)}Xi(Vt,function(mn,en){var Bn=!1;function si(sr,or){sr(function(lr){var ur=fr(lr+or),qi=Object(M.a)(ur,2),_r=qi[0],Er=qi[1];return Bn=Er,_r})}if(Lt){if(hn>=In)return Bn;si(an,mn)}else{if(Zi>=ai)return Bn;si(Sn,en)}return gr(),mr(),Bn}),Object(C.useEffect)(function(){return gr(),pr&&(Ar.current=window.setTimeout(function(){Rr(0)},100)),gr},[pr]);function Ir(){var mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ve,en=hr.get(mn);if(!en)return;if(Lt){var Bn=Ct;Re?en.right<Ct?Bn=en.right:en.right+en.width>Ct+hn&&(Bn=en.right+en.width-hn):en.left<-Ct?Bn=-en.left:en.left+en.width>-Ct+hn&&(Bn=-(en.left+en.width-hn)),Sn(0),an(fr(Bn)[0])}else{var si=vn;en.top<-vn?si=-en.top:en.top+en.height>-vn+Zi&&(si=-(en.top+en.height-Zi)),an(0),Sn(fr(si)[0])}}var ra=y(hr,{width:hn,height:Zi,left:Ct,top:vn},{width:Un,height:bn},{width:Jr,height:qr},Object(j.a)(Object(j.a)({},te),{},{tabs:q})),Dr=Object(M.a)(ra,2),aa=Dr[0],sa=Dr[1],oa=q.map(function(mn){var en=mn.key;return C.createElement(i,{id:he,prefixCls:z,key:en,rtl:Re,tab:mn,closable:mn.closable,editable:nt,active:en===ve,tabPosition:mt,tabBarGutter:kt,renderWrapper:zt,removeAriaLabel:tt==null?void 0:tt.removeAriaLabel,ref:pn(en),onClick:function(si){jt(en,si)},onRemove:function(){Mt(en)},onFocus:function(){Ir(en),mr(),Re||(Vt.current.scrollLeft=0),Vt.current.scrollTop=0}})}),vr=a(function(){var mn,en,Bn,si,sr,or,lr,ur,qi,_r=((mn=Vt.current)===null||mn===void 0?void 0:mn.offsetWidth)||0,Er=((en=Vt.current)===null||en===void 0?void 0:en.offsetHeight)||0,jr=((Bn=rn.current)===null||Bn===void 0?void 0:Bn.offsetWidth)||0,Fr=((si=rn.current)===null||si===void 0?void 0:si.offsetHeight)||0,fa=((sr=Gt.current)===null||sr===void 0?void 0:sr.offsetWidth)||0,pa=((or=Gt.current)===null||or===void 0?void 0:or.offsetHeight)||0;Wn(_r),Yr(Er),Qr(jr),$r(Fr);var Hr=(((lr=Kt.current)===null||lr===void 0?void 0:lr.offsetWidth)||0)-jr,Wr=(((ur=Kt.current)===null||ur===void 0?void 0:ur.offsetHeight)||0)-Fr;Zn(Hr),Pn(Wr);var Kr=(qi=Gt.current)===null||qi===void 0?void 0:qi.className.includes(Cr);Li(Hr-(Kr?0:fa)),Oi(Wr-(Kr?0:pa)),na(function(){var Gr=new Map;return q.forEach(function(ma){var zr=ma.key,cr=pn(zr).current;cr&&Gr.set(zr,{width:cr.offsetWidth,height:cr.offsetHeight,left:cr.offsetLeft,top:cr.offsetTop})}),Gr})}),la=q.slice(0,aa),ua=q.slice(sa+1),Lr=[].concat(Object(O.a)(la),Object(O.a)(ua)),ca=Object(C.useState)(),Pr=Object(M.a)(ca,2),da=Pr[0],ha=Pr[1],Mi=hr.get(ve),Mr=Object(C.useRef)();function Nr(){p.a.cancel(Mr.current)}Object(C.useEffect)(function(){var mn={};return Mi&&(Lt?(Re?mn.right=Mi.right:mn.left=Mi.left,mn.width=Mi.width):(mn.top=Mi.top,mn.height=Mi.height)),Nr(),Mr.current=p()(function(){ha(mn)}),Nr},[Mi,Lt,Re]),Object(C.useEffect)(function(){Ir()},[ve,Mi,hr,Lt]),Object(C.useEffect)(function(){vr()},[Re,kt,ve,q.map(function(mn){return mn.key}).join("_")]);var kr=!!Lr.length,ar="".concat(z,"-nav-wrap"),yr,br,Ur,Br;return Lt?Re?(br=Ct>0,yr=Ct+hn<In):(yr=Ct<0,br=-Ct+hn<In):(Ur=vn<0,Br=-vn+Zi<ai),C.createElement("div",{ref:pe,role:"tablist",className:W()("".concat(z,"-nav"),X),style:ce,onKeyDown:function(){mr()}},C.createElement(Qi,{position:"left",extra:Be,prefixCls:z}),C.createElement(u.a,{onResize:vr},C.createElement("div",{className:W()(ar,(be={},Object(Q.a)(be,"".concat(ar,"-ping-left"),yr),Object(Q.a)(be,"".concat(ar,"-ping-right"),br),Object(Q.a)(be,"".concat(ar,"-ping-top"),Ur),Object(Q.a)(be,"".concat(ar,"-ping-bottom"),Br),be)),ref:Vt},C.createElement(u.a,{onResize:vr},C.createElement("div",{ref:Kt,className:"".concat(z,"-nav-list"),style:{transform:"translate(".concat(Ct,"px, ").concat(vn,"px)"),transition:pr?"none":void 0}},oa,C.createElement(Ai,{ref:rn,prefixCls:z,locale:tt,editable:nt,style:{visibility:kr?"hidden":null}}),C.createElement("div",{className:W()("".concat(z,"-ink-bar"),Object(Q.a)({},"".concat(z,"-ink-bar-animated"),Te.inkBar)),style:da}))))),C.createElement(tr,Object.assign({},te,{ref:Gt,prefixCls:z,tabs:Lr,className:!kr&&Cr})),C.createElement(Qi,{position:"right",extra:Be,prefixCls:z}))}var dr=C.forwardRef(nr);function Fe(te){var pe=te.id,be=te.activeKey,ue=te.animated,z=te.tabPosition,q=te.rtl,X=te.destroyInactiveTabPane,ce=C.useContext(Di),he=ce.prefixCls,Te=ce.tabs,ve=ue.tabPane,Re=Te.findIndex(function(Be){return Be.key===be});return C.createElement("div",{className:W()("".concat(he,"-content-holder"))},C.createElement("div",{className:W()("".concat(he,"-content"),"".concat(he,"-content-").concat(z),Object(Q.a)({},"".concat(he,"-content-animated"),ve)),style:Re&&ve?Object(Q.a)({},q?"marginRight":"marginLeft","-".concat(Re,"00%")):null},Te.map(function(Be){return C.cloneElement(Be.node,{key:Be.key,prefixCls:he,tabKey:Be.key,id:pe,animated:ve,active:Be.key===be,destroyInactiveTabPane:X})})))}function We(te){var pe=te.prefixCls,be=te.forceRender,ue=te.className,z=te.style,q=te.id,X=te.active,ce=te.animated,he=te.destroyInactiveTabPane,Te=te.tabKey,ve=te.children,Re=C.useState(be),Be=Object(M.a)(Re,2),nt=Be[0],tt=Be[1];C.useEffect(function(){X?tt(!0):he&&tt(!1)},[X,he]);var mt={};return X||(ce?(mt.visibility="hidden",mt.height=0,mt.overflowY="hidden"):mt.display="none"),C.createElement("div",{id:q&&"".concat(q,"-panel-").concat(Te),role:"tabpanel",tabIndex:X?0:-1,"aria-labelledby":q&&"".concat(q,"-tab-").concat(Te),"aria-hidden":!X,style:Object(j.a)(Object(j.a)({},mt),z),className:W()("".concat(pe,"-tabpane"),X&&"".concat(pe,"-tabpane-active"),ue)},(X||nt||be)&&ve)}var Xe=0;function yt(te){return Object(k.a)(te).map(function(pe){if(C.isValidElement(pe)){var be=pe.key!==void 0?String(pe.key):void 0;return Object(j.a)(Object(j.a)({key:be},pe.props),{},{node:pe})}return null}).filter(function(pe){return pe})}function Pt(te,pe){var be,ue=te.id,z=te.prefixCls,q=z===void 0?"rc-tabs":z,X=te.className,ce=te.children,he=te.direction,Te=te.activeKey,ve=te.defaultActiveKey,Re=te.editable,Be=te.animated,nt=te.tabPosition,tt=nt===void 0?"top":nt,mt=te.tabBarGutter,kt=te.tabBarStyle,zt=te.tabBarExtraContent,jt=te.locale,Jt=te.moreIcon,Vt=te.moreTransitionName,Kt=te.destroyInactiveTabPane,Gt=te.renderTabBar,rn=te.onChange,Qt=te.onTabClick,An=te.onTabScroll,pn=Object(I.a)(te,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Mt=yt(ce),Lt=he==="rtl",$t;Be===!1?$t={inkBar:!1,tabPane:!1}:$t=Object(j.a)({inkBar:!0,tabPane:!1},Be!==!0?Be:null);var nn=Object(C.useState)(!1),Ct=Object(M.a)(nn,2),an=Ct[0],En=Ct[1];Object(C.useEffect)(function(){En(jn())},[]);var sn=Object(e.a)(function(){var bn;return(bn=Mt[0])===null||bn===void 0?void 0:bn.key},{value:Te,defaultValue:ve}),vn=Object(M.a)(sn,2),Sn=vn[0],Fn=vn[1],Qn=Object(C.useState)(function(){return Mt.findIndex(function(bn){return bn.key===Sn})}),In=Object(M.a)(Qn,2),Zn=In[0],Ei=In[1];Object(C.useEffect)(function(){var bn=Mt.findIndex(function(Wi){return Wi.key===Sn});if(bn===-1){var Oi;bn=Math.max(0,Math.min(Zn,Mt.length-1)),Fn((Oi=Mt[bn])===null||Oi===void 0?void 0:Oi.key)}Ei(bn)},[Mt.map(function(bn){return bn.key}).join("_"),Sn,Zn]);var ri=Object(e.a)(null,{value:ue}),ai=Object(M.a)(ri,2),Pn=ai[0],zn=ai[1],Hn=tt;an&&!["left","right"].includes(tt)&&(Hn="top"),Object(C.useEffect)(function(){ue||(zn("rc-tabs-".concat(Xe)),Xe+=1)},[]);function Un(bn,Oi){Qt==null||Qt(bn,Oi),Fn(bn),rn==null||rn(bn)}var Li={id:Pn,activeKey:Sn,animated:$t,tabPosition:Hn,rtl:Lt,mobile:an},Pi,Hi=Object(j.a)(Object(j.a)({},Li),{},{editable:Re,locale:jt,moreIcon:Jt,moreTransitionName:Vt,tabBarGutter:mt,onTabClick:Un,onTabScroll:An,extra:zt,style:kt,panes:ce});return Gt?Pi=Gt(Hi,dr):Pi=C.createElement(dr,Object.assign({},Hi)),C.createElement(Di.Provider,{value:{tabs:Mt,prefixCls:q}},C.createElement("div",Object.assign({ref:pe,id:ue,className:W()(q,"".concat(q,"-").concat(Hn),(be={},Object(Q.a)(be,"".concat(q,"-mobile"),an),Object(Q.a)(be,"".concat(q,"-editable"),Re),Object(Q.a)(be,"".concat(q,"-rtl"),Lt),be),X)},pn),Pi,C.createElement(Fe,Object.assign({destroyInactiveTabPane:Kt},Li,{animated:$t}))))}var It=C.forwardRef(Pt);It.TabPane=We;var gn=It,Cn=ne.b=gn},n6Qo:function(je,ne,N){"use strict";N.d(ne,"a",function(){return k});var Q=N("q1tI"),M=N("biw7"),I=N("fyJ8");function j(e){var O=e.className,g=e.index,p=e.children,u=e.colSpan,a=e.rowSpan,r=Q.useContext(M.a),o=r.prefixCls,s=r.fixedInfoList,i=s[g];return Q.createElement(I.a,Object.assign({className:O,index:g,component:"td",prefixCls:o,record:null,dataIndex:null,render:function(){return{children:p,props:{colSpan:u,rowSpan:a}}}},i))}function C(e){return Q.createElement("tr",Object.assign({},e))}function R(e){var O=e.children,g=Q.useContext(M.a),p=g.prefixCls;return Q.createElement("tfoot",{className:"".concat(p,"-summary")},O)}var W=ne.b=R,k={Cell:j,Row:C}},nEHx:function(je,ne,N){"use strict";N.d(ne,"a",function(){return Q});var Q;(function(M){M.DARK="dark",M.LIGHT="light",M.HIGH_CONTRAST="hc"})(Q||(Q={}))},nnTU:function(je,ne,N){"use strict";N.d(ne,"b",function(){return W}),N.d(ne,"a",function(){return k});var Q=N("MI8n"),M=N("JYp7"),I=N("pmY6"),j=N("24hK"),C=N("746U"),R=N("Cg/j");const W=Object(R.c)("commandService"),k=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Q.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,O){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!O)throw new Error("invalid command");return this.registerCommand({id:e,handler:O})}if(e.description){const r=[];for(let s of e.description.args)r.push(s.constraint);const o=e.handler;e.handler=function(s,...i){return Object(C.o)(i,r),o(s,...i)}}const{id:g}=e;let p=this._commands.get(g);p||(p=new j.a,this._commands.set(g,p));let u=p.unshift(e),a=Object(I.i)(()=>{u();const r=this._commands.get(g);(r==null?void 0:r.isEmpty())&&this._commands.delete(g)});return this._onDidRegisterCommand.fire(g),a}registerCommandAlias(e,O){return k.registerCommand(e,(g,...p)=>g.get(W).executeCommand(O,...p))}getCommand(e){const O=this._commands.get(e);return!O||O.isEmpty()?void 0:M.a.first(O)}getCommands(){const e=new Map;for(const O of this._commands.keys()){const g=this.getCommand(O);g&&e.set(O,g)}return e}};k.registerCommand("noop",()=>{})},p5ED:function(je,ne,N){"use strict";var Q=N("+L6B"),M=N("2/Rp"),I=N("5Dmo"),j=N("3S7+"),C=N("k1fw"),R=N("9og8"),W=N("tJVT"),k=N("WmNS"),e=N.n(k),O=N("q1tI"),g=N.n(O),p=N("vHTk"),u=N.n(p),a=N("yEEn"),r=N("ZW9T"),o=N("1vsH"),s=N("V0Rq"),i=N("m3rI");ne.a=function(n){var t,b,y,m,x,_,h,d=n.editOffice,l=d===void 0?"view":d,c=n.data,v=n.theme,f=n.type,T=n.filename,L=n.monacoEditor,P=n.className,S=n.style,A=n.close,H=n.onClose,D=n.hasMask,K=n.disabledDownload,V=Object(O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),oe=Object(W.a)(V,2),le=oe[0],Ce=oe[1],xe=Object(O.useState)(""),ie=Object(W.a)(xe,2),Se=ie[0],Pe=ie[1],de=Object(O.useState)(),$=Object(W.a)(de,2),Ne=$[0],lt=$[1],it=window.ENV==="build"?"/react/build":"",Je=i.a.PROXY_SERVER||location.origin,at,Ue=1024*1024,ze=10*Ue,et=Object(O.useRef)();(t=c)!==null&&t!==void 0&&t.startsWith("/api")&&f!=="txt"&&(c=i.a.API_SERVER+c),f==="office"&&(at=Object(o.T)(c).filesize,at>ze&&(f="other")),T&&L&&(L.filename=T),Object(O.useEffect)(function(){var we,Ve,Ze=(we=document.cookie)===null||we===void 0||((Ve=we.replace(/\s/g,""))===null||Ve===void 0)?void 0:Ve.split(";");Ze==null||Ze.map(function(rt){var $e=rt.split("=");$e[0]==="_educoder_session"&&Pe($e[1])})},[]),Object(O.useEffect)(function(){f==="office"&&ee()},[f,c]);var ee=function(){var we=Object(R.a)(e.a.mark(function Ve(){var Ze,rt,$e;return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return console.log("data:",c),Ze=c,c.startsWith("http")||(Ze=location.origin+Ze),rt=new URL(Ze).pathname.split("/").pop(),ht.next=6,Object(s.V)({attachment_id:rt});case 6:$e=ht.sent,lt($e);case 8:case"end":return ht.stop()}},Ve)}));return function(){return we.apply(this,arguments)}}(),ge=function(){if(c.startsWith("http")||c.startsWith("blob:")){_e();return}Object(o.z)(T||"educoder",c,T)},_e=function(){Object(o.x)(T||"educoder",decodeURIComponent(c))};return g.a.createElement("div",{style:Object(C.a)({},S||{}),className:"".concat(D&&u.a.bgBlack," ").concat(f?u.a.wrp:"hide")},A&&g.a.createElement("div",{className:u.a.close,ref:et},!K&&g.a.createElement(j.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return et.current}},g.a.createElement("span",{onClick:_e},g.a.createElement("i",{className:"icon-quxiaozhiding"}))),g.a.createElement(j.a,{title:"\u5173\u95ED",getPopupContainer:function(){return et.current}},g.a.createElement("span",{className:"",onClick:H},g.a.createElement("i",{className:"icon-guanbi1"})))),g.a.createElement("div",{className:"".concat(u.a[P]," ").concat(P," ").concat(u.a.monaco," ").concat(f==="txt"?"show":"hide")},f==="txt"&&g.a.createElement(r.b,L)),f==="audio"&&g.a.createElement("audio",{src:"".concat(((b=c)===null||b===void 0?void 0:b.indexOf("http://"))>-1||((y=c)===null||y===void 0?void 0:y.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),f==="video"&&g.a.createElement(g.a.Fragment,null,((m=c)===null||m===void 0?void 0:m.indexOf("http"))>-1?g.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):g.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),f==="office"&&Ne&&g.a.createElement("iframe",{src:"".concat(it,"/office.html?key=").concat(Ne.key,"&url=").concat(Je+Ne.url,"&callbackUrl=").concat(Je+Ne.callbackUrl,"&fileType=").concat(Ne.fileType,"&title=").concat(Ne.title,"&model=").concat(l,"&officeServer=").concat(i.a.OFFICE_SERVER,"&disabledDownload=").concat(!!K)}),f==="html"&&g.a.createElement("iframe",{src:c+"&disposition=inline"}),f==="pdf"&&g.a.createElement("iframe",{src:"".concat(it,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!K)}),f==="image"&&g.a.createElement("img",{src:"".concat(((x=c)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((_=c)===null||_===void 0?void 0:_.indexOf("https://"))>-1||(h=c)!==null&&h!==void 0&&h.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),f==="other"&&g.a.createElement("div",null,g.a.createElement(M.a,{type:"primary",size:"large",onClick:ge},g.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),f==="download"&&g.a.createElement(M.a,{type:"primary",size:"large",onClick:ge},g.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pIsd:function(je,ne,N){var Q=N("BJfS"),M=function(C){var R=/[height|width]$/;return R.test(C)},I=function(C){var R="",W=Object.keys(C);return W.forEach(function(k,e){var O=C[k];k=Q(k),M(k)&&typeof O=="number"&&(O=O+"px"),O===!0?R+=k:O===!1?R+="not "+k:R+="("+k+": "+O+")",e<W.length-1&&(R+=" and ")}),R},j=function(C){var R="";return typeof C=="string"?C:C instanceof Array?(C.forEach(function(W,k){R+=I(W),k<C.length-1&&(R+=", ")}),R):I(C)};je.exports=j},pmY6:function(je,ne,N){"use strict";N.d(ne,"h",function(){return O}),N.d(ne,"g",function(){return p}),N.d(ne,"f",function(){return u}),N.d(ne,"e",function(){return a}),N.d(ne,"i",function(){return r}),N.d(ne,"b",function(){return o}),N.d(ne,"a",function(){return s}),N.d(ne,"d",function(){return i}),N.d(ne,"c",function(){return n});var Q=N("C/vA"),M=N("JYp7");const I=!1;let j=null;function C(t){j=t}if(I){const t="__is_disposable_tracked__";C(new class{trackDisposable(b){const y=new Error("Potentially leaked disposable").stack;setTimeout(()=>{b[t]||console.log(y)},3e3)}setParent(b,y){if(b&&b!==s.None)try{b[t]=!0}catch(m){}}markAsDisposed(b){if(b&&b!==s.None)try{b[t]=!0}catch(y){}}markAsSingleton(b){}})}function R(t){return j==null||j.trackDisposable(t),t}function W(t){j==null||j.markAsDisposed(t)}function k(t,b){j==null||j.setParent(t,b)}function e(t,b){if(!j)return;for(const y of t)j.setParent(y,b)}function O(t){return j==null||j.markAsSingleton(t),t}class g extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function p(t){return typeof t.dispose=="function"&&t.dispose.length===0}function u(t){if(M.a.is(t)){let b=[];for(const y of t)if(y)try{y.dispose()}catch(m){b.push(m)}if(b.length===1)throw b[0];if(b.length>1)throw new g(b);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function a(...t){const b=r(()=>u(t));return e(t,b),b}function r(t){const b=R({dispose:Object(Q.a)(()=>{W(b),t()})});return b}class o{constructor(){this._toDispose=new Set,this._isDisposed=!1,R(this)}dispose(){if(this._isDisposed)return;W(this),this._isDisposed=!0,this.clear()}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return k(t,this),this._isDisposed?o.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}o.DISABLE_DISPOSED_WARNING=!1;class s{constructor(){this._store=new o,R(this),k(this._store,this)}dispose(){W(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}s.None=Object.freeze({dispose(){}});class i{constructor(){this._isDisposed=!1,R(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var b;if(this._isDisposed||t===this._value)return;(b=this._value)===null||b===void 0||b.dispose(),t&&k(t,this),this._value=t}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,W(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&k(t,null),t}}class n{constructor(t){this.object=t}dispose(){}}},psGv:function(je,ne,N){var Q,M;(function(){var I;(function(){"use strict";var W=[,,function(g){function p(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var r=new p(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},p.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},p.prototype.has_match=function(r){for(var o=this.__items.length-1;o>=0;o--)if(this.__items[o].match(r))return!0;return!1},p.prototype.set_indent=function(r,o){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=o||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(r){this.__items.push(r);var o=r.lastIndexOf(`
|
|
`);o!==-1?this.__character_count=r.length-o:this.__character_count+=r.length},p.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function u(r,o){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),o=o||"",r.indent_level>0&&(o=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=o,this.__base_string_length=o.length}u.prototype.get_indent_size=function(r,o){var s=this.__base_string_length;return o=o||0,r<0&&(s=0),s+=r*this.__indent_size,s+=o,s},u.prototype.get_indent_string=function(r,o){var s=this.__base_string;return o=o||0,r<0&&(r=0,s=""),o+=r*this.__indent_size,this.__ensure_cache(o),s+=this.__cache[o],s},u.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var r=this.__cache.length,o=0,s="";this.__indent_size&&r>=this.__indent_size&&(o=Math.floor(r/this.__indent_size),r-=o*this.__indent_size,s=new Array(o+1).join(this.__indent_string)),r&&(s+=new Array(r+1).join(" ")),this.__cache.push(s)};function a(r,o){this.__indent_cache=new u(r,o),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(r,o){return this.__indent_cache.get_indent_string(r,o)},a.prototype.get_indent_size=function(r,o){return this.__indent_cache.get_indent_size(r,o)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(r){this.trim(!0);var o=this.current_line.pop();o&&(o[o.length-1]===`
|
|
`&&(o=o.replace(/\n+$/g,"")),this.current_line.push(o)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(`
|
|
`);return r!==`
|
|
`&&(s=s.replace(/[\n]/g,r)),s},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(r,o){return r=r||0,o=o||0,this.next_line.set_indent(r,o),this.__lines.length>1?(this.current_line.set_indent(r,o),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(r){for(var o=0;o<r.newlines;o++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},a.prototype.remove_indent=function(r){for(var o=this.__lines.length;r<o;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(r,o){for(var s=this.__lines.length-2;s>=0;){var i=this.__lines[s];if(i.is_empty())break;if(i.item(0).indexOf(r)!==0&&i.item(-1)!==o){this.__lines.splice(s+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}s--}},g.exports.Output=a},function(g){function p(u,a,r,o){this.type=u,this.text=a,this.comments_before=null,this.newlines=r||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}g.exports.Token=p},,,function(g){function p(r,o){this.raw_options=u(r,o),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(r,o){var s=this.raw_options[r],i=o||[];return typeof s=="object"?s!==null&&typeof s.concat=="function"&&(i=s.concat()):typeof s=="string"&&(i=s.split(/[^a-zA-Z0-9_\/\-]+/)),i},p.prototype._get_boolean=function(r,o){var s=this.raw_options[r],i=s===void 0?!!o:!!s;return i},p.prototype._get_characters=function(r,o){var s=this.raw_options[r],i=o||"";return typeof s=="string"&&(i=s.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),i},p.prototype._get_number=function(r,o){var s=this.raw_options[r];o=parseInt(o,10),isNaN(o)&&(o=0);var i=parseInt(s,10);return isNaN(i)&&(i=o),i},p.prototype._get_selection=function(r,o,s){var i=this._get_selection_list(r,o,s);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
|
|
`+o+`
|
|
You passed in: '`+this.raw_options[r]+"'");return i[0]},p.prototype._get_selection_list=function(r,o,s){if(!o||o.length===0)throw new Error("Selection list cannot be empty.");if(s=s||[o[0]],!this._is_valid_selection(s,o))throw new Error("Invalid Default Value!");var i=this._get_array(r,s);if(!this._is_valid_selection(i,o))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
|
|
`+o+`
|
|
You passed in: '`+this.raw_options[r]+"'");return i},p.prototype._is_valid_selection=function(r,o){return r.length&&o.length&&!r.some(function(s){return o.indexOf(s)===-1})};function u(r,o){var s={};r=a(r);var i;for(i in r)i!==o&&(s[i]=r[i]);if(o&&r[o])for(i in r[o])s[i]=r[o][i];return s}function a(r){var o={},s;for(s in r){var i=s.replace(/-/g,"_");o[i]=r[s]}return o}g.exports.Options=p,g.exports.normalizeOpts=a,g.exports.mergeOpts=u},,function(g){var p=RegExp.prototype.hasOwnProperty("sticky");function u(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},u.prototype.peek=function(a){var r=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(r=this.__input.charAt(a)),r},u.prototype.__match=function(a,r){a.lastIndex=r;var o=a.exec(this.__input);return o&&!(p&&a.sticky)&&(o.index!==r&&(o=null)),o},u.prototype.test=function(a,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(a,r):!1},u.prototype.testChar=function(a,r){var o=this.peek(r);return a.lastIndex=0,o!==null&&a.test(o)},u.prototype.match=function(a){var r=this.__match(a,this.__position);return r?this.__position+=r[0].length:r=null,r},u.prototype.read=function(a,r,o){var s="",i;return a&&(i=this.match(a),i&&(s+=i[0])),r&&(i||!a)&&(s+=this.readUntil(r,o)),s},u.prototype.readUntil=function(a,r){var o="",s=this.__position;a.lastIndex=this.__position;var i=a.exec(this.__input);return i?(s=i.index,r&&(s+=i[0].length)):s=this.__input_length,o=this.__input.substring(this.__position,s),this.__position=s,o},u.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},u.prototype.get_regexp=function(a,r){var o=null,s="g";return r&&p&&(s="y"),typeof a=="string"&&a!==""?o=new RegExp(a,s):a&&(o=new RegExp(a.source,s)),o},u.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(a){var r=this.__position,o=this.readUntilAfter(a);return this.__position=r,o},u.prototype.lookBack=function(a){var r=this.__position-1;return r>=a.length&&this.__input.substring(r-a.length,r).toLowerCase()===a},g.exports.InputScanner=u},function(g,p,u){var a=u(8).InputScanner,r=u(3).Token,o=u(10).TokenStream,s=u(11).WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,b){this._input=new a(t),this._options=b||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};n.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var t,b=new r(i.START,""),y=null,m=[],x=new o;b.type!==i.EOF;){for(t=this._get_next_token(b,y);this._is_comment(t);)x.add(t),t=this._get_next_token(b,y);x.isEmpty()||(t.comments_before=x,x=new o),t.parent=y,this._is_opening(t)?(m.push(y),y=t):y&&this._is_closing(t,y)&&(t.opened=y,y.closed=t,y=m.pop(),t.parent=y),t.previous=b,b.next=t,this.__tokens.add(t),b=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,b){this._readWhitespace();var y=this._input.read(/.+/g);return y?this._create_token(i.RAW,y):this._create_token(i.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,b){return!1},n.prototype._create_token=function(t,b){var y=new r(t,b,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return y},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},g.exports.Tokenizer=n,g.exports.TOKEN=i},function(g){function p(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__tokens[this.__position],this.__position+=1),u},p.prototype.peek=function(u){var a=null;return u=u||0,u+=this.__position,u>=0&&u<this.__tokens_length&&(a=this.__tokens[u]),a},p.prototype.add=function(u){this.__parent_token&&(u.parent=this.__parent_token),this.__tokens.push(u),this.__tokens_length+=1},g.exports.TokenStream=p},function(g,p,u){var a=u(12).Pattern;function r(o,s){a.call(this,o,s),s?this._line_regexp=this._input.get_regexp(s._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new a,r.prototype.__set_whitespace_patterns=function(o,s){o+="\\t ",s+="\\n\\r",this._match_pattern=this._input.get_regexp("["+o+s+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+s+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var o=this._input.read(this._match_pattern);if(o===" ")this.whitespace_before_token=" ";else if(o){var s=this.__split(this._newline_regexp,o);this.newline_count=s.length-1,this.whitespace_before_token=s[this.newline_count]}return o},r.prototype.matching=function(o,s){var i=this._create();return i.__set_whitespace_patterns(o,s),i._update(),i},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(o,s){o.lastIndex=0;for(var i=0,n=[],t=o.exec(s);t;)n.push(s.substring(i,t.index)),i=t.index+t[0].length,t=o.exec(s);return i<s.length?n.push(s.substring(i,s.length)):n.push(""),n},g.exports.WhitespacePattern=r},function(g){function p(u,a){this._input=u,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}p.prototype.read=function(){var u=this._input.read(this._starting_pattern);return(!this._starting_pattern||u)&&(u+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),u},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(u){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(u),a._update(),a},p.prototype.until=function(u){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(u),a._update(),a},p.prototype.starting_with=function(u){var a=this._create();return a._starting_pattern=this._input.get_regexp(u,!0),a._update(),a},p.prototype.matching=function(u){var a=this._create();return a._match_pattern=this._input.get_regexp(u,!0),a._update(),a},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},g.exports.Pattern=p},function(g){function p(u,a){u=typeof u=="string"?u:u.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+a,"g")}p.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(u);r;)a[r[1]]=r[2],r=this.__directive_pattern.exec(u);return a},p.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},g.exports.Directives=p},function(g,p,u){var a=u(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function o(s,i){a.call(this,s,i),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var n=new a(s);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new a,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(s){var i=this._create();return i._disabled[s]=!0,i._update(),i},o.prototype.read_options=function(s){var i=this._create();for(var n in r)i._disabled[n]=s.templating.indexOf(n)===-1;return i._update(),i},o.prototype.exclude=function(s){var i=this._create();return i._excluded[s]=!0,i._update(),i},o.prototype.read=function(){var s="";this._match_pattern?s=this._input.read(this._starting_pattern):s=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),s+=i,i=this._read_template();return this._until_after&&(s+=this._input.readUntilAfter(this._until_pattern)),s},o.prototype.__set_templated_pattern=function(){var s=[];this._disabled.php||s.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||s.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||s.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(s.push(this.__patterns.django._starting_pattern.source),s.push(this.__patterns.django_value._starting_pattern.source),s.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||s.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&s.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+s.join("|")+")")},o.prototype._read_template=function(){var s="",i=this._input.peek();if(i==="<"){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&n==="?"&&(s=s||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&n==="%"&&(s=s||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(s=s||this.__patterns.handlebars_comment.read(),s=s||this.__patterns.handlebars_unescaped.read(),s=s||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(s=s||this.__patterns.django_value.read()),this._excluded.django||(s=s||this.__patterns.django_comment.read(),s=s||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(s=s||this.__patterns.smarty_comment.read(),s=s||this.__patterns.smarty_literal.read(),s=s||this.__patterns.smarty.read()));return s},g.exports.TemplatablePattern=o},,,,function(g,p,u){var a=u(19).Beautifier,r=u(20).Options;function o(s,i,n,t){var b=new a(s,i,n,t);return b.beautify()}g.exports=o,g.exports.defaultOptions=function(){return new r}},function(g,p,u){var a=u(20).Options,r=u(2).Output,o=u(21).Tokenizer,s=u(21).TOKEN,i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,t=function(v,f){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=v.max_preserve_newlines,this.preserve_newlines=v.preserve_newlines,this._output=new r(v,f)};t.prototype.current_line_has_match=function(v){return this._output.current_line.has_match(v)},t.prototype.set_space_before_token=function(v,f){this._output.space_before_token=v,this._output.non_breaking_space=f},t.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},t.prototype.add_raw_token=function(v){this._output.add_raw_token(v)},t.prototype.print_preserved_newlines=function(v){var f=0;v.type!==s.TEXT&&v.previous.type!==s.TEXT&&(f=v.newlines?1:0),this.preserve_newlines&&(f=v.newlines<this.max_preserve_newlines+1?v.newlines:this.max_preserve_newlines+1);for(var T=0;T<f;T++)this.print_newline(T>0);return f!==0},t.prototype.traverse_whitespace=function(v){return v.whitespace_before||v.newlines?(this.print_preserved_newlines(v)||(this._output.space_before_token=!0),!0):!1},t.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},t.prototype.print_newline=function(v){this._output.add_new_line(v)},t.prototype.print_token=function(v){v.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(v.text))},t.prototype.indent=function(){this.indent_level++},t.prototype.get_full_indent=function(v){return v=this.indent_level+(v||0),v<1?"":this._output.get_indent_string(v)};var b=function(v){for(var f=null,T=v.next;T.type!==s.EOF&&v.closed!==T;){if(T.type===s.ATTRIBUTE&&T.text==="type"){T.next&&T.next.type===s.EQUALS&&T.next.next&&T.next.next.type===s.VALUE&&(f=T.next.next.text);break}T=T.next}return f},y=function(v,f){var T=null,L=null;return f.closed?(v==="script"?T="text/javascript":v==="style"&&(T="text/css"),T=b(f)||T,T.search("text/css")>-1?L="css":T.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?L="javascript":T.search(/(text|application|dojo)\/(x-)?(html)/)>-1?L="html":T.search(/test\/null/)>-1&&(L="null"),L):null};function m(v,f){return f.indexOf(v)!==-1}function x(v,f,T){this.parent=v||null,this.tag=f?f.tag_name:"",this.indent_level=T||0,this.parser_token=f||null}function _(v){this._printer=v,this._current_frame=null}_.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},_.prototype.record_tag=function(v){var f=new x(this._current_frame,v,this._printer.indent_level);this._current_frame=f},_.prototype._try_pop_frame=function(v){var f=null;return v&&(f=v.parser_token,this._printer.indent_level=v.indent_level,this._current_frame=v.parent),f},_.prototype._get_frame=function(v,f){for(var T=this._current_frame;T&&!(v.indexOf(T.tag)!==-1);){if(f&&f.indexOf(T.tag)!==-1){T=null;break}T=T.parent}return T},_.prototype.try_pop=function(v,f){var T=this._get_frame([v],f);return this._try_pop_frame(T)},_.prototype.indent_to_tag=function(v){var f=this._get_frame(v);f&&(this._printer.indent_level=f.indent_level)};function h(v,f,T,L){this._source_text=v||"",f=f||{},this._js_beautify=T,this._css_beautify=L,this._tag_stack=null;var P=new a(f,"html");this._options=P,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}h.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v=this._source_text,f=this._options.eol;this._options.eol==="auto"&&(f=`
|
|
`,v&&i.test(v)&&(f=v.match(i)[0])),v=v.replace(n,`
|
|
`);var T=v.match(/^[\t ]*/)[0],L={text:"",type:""},P=new d,S=new t(this._options,T),A=new o(v,this._options).tokenize();this._tag_stack=new _(S);for(var H=null,D=A.next();D.type!==s.EOF;)D.type===s.TAG_OPEN||D.type===s.COMMENT?(H=this._handle_tag_open(S,D,P,L),P=H):D.type===s.ATTRIBUTE||D.type===s.EQUALS||D.type===s.VALUE||D.type===s.TEXT&&!P.tag_complete?H=this._handle_inside_tag(S,D,P,A):D.type===s.TAG_CLOSE?H=this._handle_tag_close(S,D,P):D.type===s.TEXT?H=this._handle_text(S,D,P):S.add_raw_token(D),L=H,D=A.next();var K=S._output.get_code(f);return K},h.prototype._handle_tag_close=function(v,f,T){var L={text:f.text,type:f.type};return v.alignment_size=0,T.tag_complete=!0,v.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),T.is_unformatted?v.add_raw_token(f):(T.tag_start_char==="<"&&(v.set_space_before_token(f.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&T.has_wrapped_attrs&&v.print_newline(!1)),v.print_token(f)),T.indent_content&&!(T.is_unformatted||T.is_content_unformatted)&&(v.indent(),T.indent_content=!1),!T.is_inline_element&&!(T.is_unformatted||T.is_content_unformatted)&&v.set_wrap_point(),L},h.prototype._handle_inside_tag=function(v,f,T,L){var P=T.has_wrapped_attrs,S={text:f.text,type:f.type};if(v.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),T.is_unformatted)v.add_raw_token(f);else if(T.tag_start_char==="{"&&f.type===s.TEXT)v.print_preserved_newlines(f)?(f.newlines=0,v.add_raw_token(f)):v.print_token(f);else{if(f.type===s.ATTRIBUTE?(v.set_space_before_token(!0),T.attr_count+=1):(f.type===s.EQUALS||f.type===s.VALUE&&f.previous.type===s.EQUALS)&&v.set_space_before_token(!1),f.type===s.ATTRIBUTE&&T.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(v.traverse_whitespace(f),P=P||f.newlines!==0),this._is_wrap_attributes_force)){var A=T.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&T.attr_count===1){var H=!0,D=0,K;do{if(K=L.peek(D),K.type===s.ATTRIBUTE){H=!1;break}D+=1}while(D<4&&K.type!==s.EOF&&K.type!==s.TAG_CLOSE);A=!H}A&&(v.print_newline(!1),P=!0)}v.print_token(f),P=P||v.previous_token_wrapped(),T.has_wrapped_attrs=P}return S},h.prototype._handle_text=function(v,f,T){var L={text:f.text,type:"TK_CONTENT"};return T.custom_beautifier_name?this._print_custom_beatifier_text(v,f,T):T.is_unformatted||T.is_content_unformatted?v.add_raw_token(f):(v.traverse_whitespace(f),v.print_token(f)),L},h.prototype._print_custom_beatifier_text=function(v,f,T){var L=this;if(f.text!==""){var P=f.text,S,A=1,H="",D="";T.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:T.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:T.custom_beautifier_name==="html"&&(S=function(xe,ie){var Se=new h(xe,ie,L._js_beautify,L._css_beautify);return Se.beautify()}),this._options.indent_scripts==="keep"?A=0:this._options.indent_scripts==="separate"&&(A=-v.indent_level);var K=v.get_full_indent(A);if(P=P.replace(/\n[ \t]*$/,""),T.custom_beautifier_name!=="html"&&P[0]==="<"&&P.match(/^(<!--|<!\[CDATA\[)/)){var V=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(P);if(!V){v.add_raw_token(f);return}H=K+V[1]+`
|
|
`,P=V[4],V[5]&&(D=K+V[5]),P=P.replace(/\n[ \t]*$/,""),(V[2]||V[3].indexOf(`
|
|
`)!==-1)&&(V=V[3].match(/[ \t]+$/),V&&(f.whitespace_before=V[0]))}if(P)if(S){var oe=function(){this.eol=`
|
|
`};oe.prototype=this._options.raw_options;var le=new oe;P=S(K+P,le)}else{var Ce=f.whitespace_before;Ce&&(P=P.replace(new RegExp(`
|
|
(`+Ce+")?","g"),`
|
|
`)),P=K+P.replace(/\n/g,`
|
|
`+K)}H&&(P?P=H+P+`
|
|
`+D:P=H+D),v.print_newline(!1),P&&(f.text=P,f.whitespace_before="",f.newlines=0,v.add_raw_token(f),v.print_newline(!0))}},h.prototype._handle_tag_open=function(v,f,T,L){var P=this._get_tag_open_token(f);return(T.is_unformatted||T.is_content_unformatted)&&!T.is_empty_element&&f.type===s.TAG_OPEN&&f.text.indexOf("</")===0?(v.add_raw_token(f),P.start_tag_token=this._tag_stack.try_pop(P.tag_name)):(v.traverse_whitespace(f),this._set_tag_position(v,f,P,T,L),P.is_inline_element||v.set_wrap_point(),v.print_token(f)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(P.alignment_size=f.text.length+1),!P.tag_complete&&!P.is_unformatted&&(v.alignment_size=P.alignment_size),P};var d=function(v,f){if(this.parent=v||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!f)this.tag_complete=!0;else{var T;this.tag_start_char=f.text[0],this.text=f.text,this.tag_start_char==="<"?(T=f.text.match(/^<([^\s>]*)/),this.tag_check=T?T[1]:""):(T=f.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=T?T[1]:"",(f.text.startsWith("{{#>")||f.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&f.next!==null?this.tag_check=f.next.text.split(" ")[0]:this.tag_check=f.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),f.type===s.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||f.closed&&f.closed.text==="/>";var L=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(L=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(L)))}};h.prototype._get_tag_open_token=function(v){var f=new d(this._tag_stack.get_parser_token(),v);return f.alignment_size=this._options.wrap_attributes_indent_size,f.is_end_tag=f.is_end_tag||m(f.tag_check,this._options.void_elements),f.is_empty_element=f.tag_complete||f.is_start_tag&&f.is_end_tag,f.is_unformatted=!f.tag_complete&&m(f.tag_check,this._options.unformatted),f.is_content_unformatted=!f.is_empty_element&&m(f.tag_check,this._options.content_unformatted),f.is_inline_element=m(f.tag_name,this._options.inline)||f.tag_name.includes("-")||f.tag_start_char==="{",f},h.prototype._set_tag_position=function(v,f,T,L,P){if(T.is_empty_element||(T.is_end_tag?T.start_tag_token=this._tag_stack.try_pop(T.tag_name):(this._do_optional_end_element(T)&&(T.is_inline_element||v.print_newline(!1)),this._tag_stack.record_tag(T),(T.tag_name==="script"||T.tag_name==="style")&&!(T.is_unformatted||T.is_content_unformatted)&&(T.custom_beautifier_name=y(T.tag_check,f)))),m(T.tag_check,this._options.extra_liners)&&(v.print_newline(!1),v._output.just_added_blankline()||v.print_newline(!0)),T.is_empty_element){if(T.tag_start_char==="{"&&T.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),T.indent_content=!0;var S=v.current_line_has_match(/{{#if/);S||v.print_newline(!1)}T.tag_name==="!--"&&P.type===s.TAG_CLOSE&&L.is_end_tag&&T.text.indexOf(`
|
|
`)===-1||(T.is_inline_element||T.is_unformatted||v.print_newline(!1),this._calcluate_parent_multiline(v,T))}else if(T.is_end_tag){var A=!1;A=T.start_tag_token&&T.start_tag_token.multiline_content,A=A||!T.is_inline_element&&!(L.is_inline_element||L.is_unformatted)&&!(P.type===s.TAG_CLOSE&&T.start_tag_token===L)&&P.type!=="TK_CONTENT",(T.is_content_unformatted||T.is_unformatted)&&(A=!1),A&&v.print_newline(!1)}else T.indent_content=!T.custom_beautifier_name,T.tag_start_char==="<"&&(T.tag_name==="html"?T.indent_content=this._options.indent_inner_html:T.tag_name==="head"?T.indent_content=this._options.indent_head_inner_html:T.tag_name==="body"&&(T.indent_content=this._options.indent_body_inner_html)),!(T.is_inline_element||T.is_unformatted)&&(P.type!=="TK_CONTENT"||T.is_content_unformatted)&&v.print_newline(!1),this._calcluate_parent_multiline(v,T)},h.prototype._calcluate_parent_multiline=function(v,f){f.parent&&v._output.just_added_newline()&&!((f.is_inline_element||f.is_unformatted)&&f.parent.is_inline_element)&&(f.parent.multiline_content=!0)};var l=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],c=["a","audio","del","ins","map","noscript","video"];h.prototype._do_optional_end_element=function(v){var f=null;if(v.is_empty_element||!v.is_start_tag||!v.parent)return;if(v.tag_name==="body")f=f||this._tag_stack.try_pop("head");else if(v.tag_name==="li")f=f||this._tag_stack.try_pop("li",["ol","ul"]);else if(v.tag_name==="dd"||v.tag_name==="dt")f=f||this._tag_stack.try_pop("dt",["dl"]),f=f||this._tag_stack.try_pop("dd",["dl"]);else if(v.parent.tag_name==="p"&&l.indexOf(v.tag_name)!==-1){var T=v.parent.parent;(!T||c.indexOf(T.tag_name)===-1)&&(f=f||this._tag_stack.try_pop("p"))}else v.tag_name==="rp"||v.tag_name==="rt"?(f=f||this._tag_stack.try_pop("rt",["ruby","rtc"]),f=f||this._tag_stack.try_pop("rp",["ruby","rtc"])):v.tag_name==="optgroup"?f=f||this._tag_stack.try_pop("optgroup",["select"]):v.tag_name==="option"?f=f||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):v.tag_name==="colgroup"?f=f||this._tag_stack.try_pop("caption",["table"]):v.tag_name==="thead"?(f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"])):v.tag_name==="tbody"||v.tag_name==="tfoot"?(f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("thead",["table"]),f=f||this._tag_stack.try_pop("tbody",["table"])):v.tag_name==="tr"?(f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(v.tag_name==="th"||v.tag_name==="td")&&(f=f||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),f=f||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return v.parent=this._tag_stack.get_parser_token(),f},g.exports.Beautifier=h},function(g,p,u){var a=u(6).Options;function r(o){a.call(this,o,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new a,g.exports.Options=r},function(g,p,u){var a=u(9).Tokenizer,r=u(9).TOKEN,o=u(13).Directives,s=u(14).TemplatablePattern,i=u(12).Pattern,n={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},t=new o(/<\!--/,/-->/),b=function(y,m){a.call(this,y,m),this._current_tag_name="";var x=new s(this._input).read_options(this._options),_=new i(this._input);if(this.__patterns={word:x.until(/[\n\r\t <]/),single_quote:x.until_after(/'/),double_quote:x.until_after(/"/),attribute:x.until(/[\n\r\t =>]|\/>/),element_name:x.until(/[\n\r\t >\/]/),handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),handlebars_open:_.until(/[\n\r\t }]/),handlebars_raw_close:_.until(/}}/),comment:_.starting_with(/<!--/).until_after(/-->/),cdata:_.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:_.starting_with(/<!\[/).until_after(/]>/),processing:_.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var h=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=_.matching(h).until_after(h)}};b.prototype=new a,b.prototype._is_comment=function(y){return!1},b.prototype._is_opening=function(y){return y.type===n.TAG_OPEN},b.prototype._is_closing=function(y,m){return y.type===n.TAG_CLOSE&&m&&((y.text===">"||y.text==="/>")&&m.text[0]==="<"||y.text==="}}"&&m.text[0]==="{"&&m.text[1]==="{")},b.prototype._reset=function(){this._current_tag_name=""},b.prototype._get_next_token=function(y,m){var x=null;this._readWhitespace();var _=this._input.peek();return _===null?this._create_token(n.EOF,""):(x=x||this._read_open_handlebars(_,m),x=x||this._read_attribute(_,y,m),x=x||this._read_close(_,m),x=x||this._read_raw_content(_,y,m),x=x||this._read_content_word(_),x=x||this._read_comment_or_cdata(_),x=x||this._read_processing(_),x=x||this._read_open(_,m),x=x||this._create_token(n.UNKNOWN,this._input.next()),x)},b.prototype._read_comment_or_cdata=function(y){var m=null,x=null,_=null;if(y==="<"){var h=this._input.peek(1);h==="!"&&(x=this.__patterns.comment.read(),x?(_=t.get_directives(x),_&&_.ignore==="start"&&(x+=t.readIgnored(this._input))):x=this.__patterns.cdata.read()),x&&(m=this._create_token(n.COMMENT,x),m.directives=_)}return m},b.prototype._read_processing=function(y){var m=null,x=null,_=null;if(y==="<"){var h=this._input.peek(1);(h==="!"||h==="?")&&(x=this.__patterns.conditional_comment.read(),x=x||this.__patterns.processing.read()),x&&(m=this._create_token(n.COMMENT,x),m.directives=_)}return m},b.prototype._read_open=function(y,m){var x=null,_=null;return m||y==="<"&&(x=this._input.next(),this._input.peek()==="/"&&(x+=this._input.next()),x+=this.__patterns.element_name.read(),_=this._create_token(n.TAG_OPEN,x)),_},b.prototype._read_open_handlebars=function(y,m){var x=null,_=null;return m||this._options.indent_handlebars&&y==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(x=this.__patterns.handlebars_comment.read(),x=x||this.__patterns.handlebars.read(),_=this._create_token(n.COMMENT,x)):(x=this.__patterns.handlebars_open.read(),_=this._create_token(n.TAG_OPEN,x))),_},b.prototype._read_close=function(y,m){var x=null,_=null;return m&&(m.text[0]==="<"&&(y===">"||y==="/"&&this._input.peek(1)===">")?(x=this._input.next(),y==="/"&&(x+=this._input.next()),_=this._create_token(n.TAG_CLOSE,x)):m.text[0]==="{"&&y==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),_=this._create_token(n.TAG_CLOSE,"}}"))),_},b.prototype._read_attribute=function(y,m,x){var _=null,h="";if(x&&x.text[0]==="<")if(y==="=")_=this._create_token(n.EQUALS,this._input.next());else if(y==='"'||y==="'"){var d=this._input.next();y==='"'?d+=this.__patterns.double_quote.read():d+=this.__patterns.single_quote.read(),_=this._create_token(n.VALUE,d)}else h=this.__patterns.attribute.read(),h&&(m.type===n.EQUALS?_=this._create_token(n.VALUE,h):_=this._create_token(n.ATTRIBUTE,h));return _},b.prototype._is_content_unformatted=function(y){return this._options.void_elements.indexOf(y)===-1&&(this._options.content_unformatted.indexOf(y)!==-1||this._options.unformatted.indexOf(y)!==-1)},b.prototype._read_raw_content=function(y,m,x){var _="";if(x&&x.text[0]==="{")_=this.__patterns.handlebars_raw_close.read();else if(m.type===n.TAG_CLOSE&&m.opened.text[0]==="<"&&m.text[0]!=="/"){var h=m.opened.text.substr(1).toLowerCase();if(h==="script"||h==="style"){var d=this._read_comment_or_cdata(y);if(d)return d.type=n.TEXT,d;_=this._input.readUntil(new RegExp("</"+h+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(h)&&(_=this._input.readUntil(new RegExp("</"+h+"[\\n\\r\\t ]*?>","ig")))}return _?this._create_token(n.TEXT,_):null},b.prototype._read_content_word=function(y){var m="";if(this._options.unformatted_content_delimiter&&(y===this._options.unformatted_content_delimiter[0]&&(m=this.__patterns.unformatted_content_delimiter.read())),m||(m=this.__patterns.word.read()),m)return this._create_token(n.TEXT,m)},g.exports.Tokenizer=b,g.exports.TOKEN=n}],k={};function e(g){var p=k[g];if(p!==void 0)return p.exports;var u=k[g]={exports:{}};return W[g](u,u.exports,e),u.exports}var O=e(18);I=O})();var j=I;if(!0)!(Q=[N,N("6UM0"),N("TXwP")],M=function(W){var k=N("6UM0"),e=N("TXwP");return{html_beautify:function(O,g){return j(O,g,k.js_beautify,e.css_beautify)}}}.apply(ne,Q),M!==void 0&&(je.exports=M));else var C,R})()},pxMS:function(je,ne,N){je.exports=N.p+"static/program-banner.03adba1e.png"},"rAM+":function(je,ne,N){"use strict";N.d(ne,"a",function(){return M});var Q=N("Qw5x");function M(I,j){var C;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(C=Object(Q.a)(I))||j&&I&&typeof I.length=="number"){C&&(I=C);var R=0,W=function(){};return{s:W,n:function(){return R>=I.length?{done:!0}:{done:!1,value:I[R++]}},e:function(p){throw p},f:W}}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 k=!0,e=!1,O;return{s:function(){C=I[Symbol.iterator]()},n:function(){var p=C.next();return k=p.done,p},e:function(p){e=!0,O=p},f:function(){try{!k&&C.return!=null&&C.return()}finally{if(e)throw O}}}}},rUJ1:function(je,ne){const N=/[&<>"']/,Q=/[&<>"']/g,M=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,j={"&":"&","<":"<",">":">",'"':""","'":"'"},C=_=>j[_];function R(_,h){if(h){if(N.test(_))return _.replace(Q,C)}else if(M.test(_))return _.replace(I,C);return _}const W=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function k(_){return _.replace(W,(h,d)=>(d=d.toLowerCase(),d==="colon"?":":d.charAt(0)==="#"?d.charAt(1)==="x"?String.fromCharCode(parseInt(d.substring(2),16)):String.fromCharCode(+d.substring(1)):""))}const e=/(^|[^\[])\^/g;function O(_,h){_=_.source||_,h=h||"";const d={replace:(l,c)=>(c=c.source||c,c=c.replace(e,"$1"),_=_.replace(l,c),d),getRegex:()=>new RegExp(_,h)};return d}const g=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function u(_,h,d){if(_){let l;try{l=decodeURIComponent(k(d)).replace(g,"").toLowerCase()}catch(c){return null}if(l.indexOf("javascript:")===0||l.indexOf("vbscript:")===0||l.indexOf("data:")===0)return null}h&&!p.test(d)&&(d=i(h,d));try{d=encodeURI(d).replace(/%25/g,"%")}catch(l){return null}return d}const a={},r=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function i(_,h){a[" "+_]||(r.test(_)?a[" "+_]=_+"/":a[" "+_]=y(_,"/",!0)),_=a[" "+_];const d=_.indexOf(":")===-1;return h.substring(0,2)==="//"?d?h:_.replace(o,"$1")+h:h.charAt(0)==="/"?d?h:_.replace(s,"$1")+h:_+h}const n={exec:function(){}};function t(_){let h=1,d,l;for(;h<arguments.length;h++){d=arguments[h];for(l in d)Object.prototype.hasOwnProperty.call(d,l)&&(_[l]=d[l])}return _}function b(_,h){const d=_.replace(/\|/g,(v,f,T)=>{let L=!1,P=f;for(;--P>=0&&T[P]==="\\";)L=!L;return L?"|":" |"}),l=d.split(/ \|/);let c=0;if(l.length>h)l.splice(h);else for(;l.length<h;)l.push("");for(;c<l.length;c++)l[c]=l[c].trim().replace(/\\\|/g,"|");return l}function y(_,h,d){const l=_.length;if(l===0)return"";let c=0;for(;c<l;){const v=_.charAt(l-c-1);if(v===h&&!d)c++;else if(v!==h&&d)c++;else break}return _.substr(0,l-c)}function m(_,h){if(_.indexOf(h[1])===-1)return-1;const d=_.length;let l=0,c=0;for(;c<d;c++)if(_[c]==="\\")c++;else if(_[c]===h[0])l++;else if(_[c]===h[1]&&(l--,l<0))return c;return-1}function x(_){_&&_.sanitize&&!_.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}je.exports={escape:R,unescape:k,edit:O,cleanUrl:u,resolveUrl:i,noopTest:n,merge:t,splitCells:b,rtrim:y,findClosingBracket:m,checkSanitizeDeprecation:x}},sR1s:function(je,ne,N){"use strict";N.d(ne,"b",function(){return j}),N.d(ne,"a",function(){return C}),N.d(ne,"c",function(){return R}),N.d(ne,"d",function(){return W});var Q=N("U8pU"),M="RC_TABLE_KEY";function I(k){return k==null?[]:Array.isArray(k)?k:[k]}function j(k,e){if(!e&&typeof e!="number")return k;for(var O=I(e),g=k,p=0;p<O.length;p+=1){if(!g)return null;var u=O[p];g=g[u]}return g}function C(k){var e=[],O={};return k.forEach(function(g){for(var p=g||{},u=p.key,a=p.dataIndex,r=u||I(a).join("-")||M;O[r];)r="".concat(r,"_next");O[r]=!0,e.push(r)}),e}function R(){var k={};function e(u,a){a&&Object.keys(a).forEach(function(r){var o=a[r];o&&Object(Q.a)(o)==="object"?(u[r]=u[r]||{},e(u[r],o)):u[r]=o})}for(var O=arguments.length,g=new Array(O),p=0;p<O;p++)g[p]=arguments[p];return g.forEach(function(u){e(k,u)}),k}function W(k){return k!=null}},sboe:function(je,ne,N){"use strict";N.d(ne,"a",function(){return I});var Q=N("q1tI"),M=N.n(Q),I=Q.createContext(null)},siWv:function(je,ne,N){je.exports={flex_box_center:"flex_box_center___3IH6S",flex_space_between:"flex_space_between___3AU-S",flex_box_vertical_center:"flex_box_vertical_center___1ykIO",flex_box_center_end:"flex_box_center_end___1aIQB",flex_box_column:"flex_box_column___2A_ra",btn:"btn___23gjd"}},t23M:function(je,ne,N){"use strict";var Q=N("VTBJ"),M=N("1OyB"),I=N("vuIU"),j=N("Ji7U"),C=N("LK+K"),R=N("q1tI"),W=N.n(R),k=N("m+aA"),e=N("Zm9Q"),O=N("Kwbf"),g=N("c+Xe"),p=N("bdgK"),u="rc-observer-key",a=function(r){Object(j.a)(s,r);var o=Object(C.a)(s);function s(){var i;return Object(M.a)(this,s),i=o.apply(this,arguments),i.resizeObserver=null,i.childNode=null,i.currentElement=null,i.state={width:0,height:0,offsetHeight:0,offsetWidth:0},i.onResize=function(n){var t=i.props.onResize,b=n[0].target,y=b.getBoundingClientRect(),m=y.width,x=y.height,_=b.offsetWidth,h=b.offsetHeight,d=Math.floor(m),l=Math.floor(x);if(i.state.width!==d||i.state.height!==l||i.state.offsetWidth!==_||i.state.offsetHeight!==h){var c={width:d,height:l,offsetWidth:_,offsetHeight:h};i.setState(c),t&&Promise.resolve().then(function(){t(Object(Q.a)(Object(Q.a)({},c),{},{offsetWidth:_,offsetHeight:h}))})}},i.setChildNode=function(n){i.childNode=n},i}return Object(I.a)(s,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var n=this.props.disabled;if(n){this.destroyObserver();return}var t=Object(k.a)(this.childNode||this),b=t!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new p.default(this.onResize),this.resizeObserver.observe(t))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var n=this.props.children,t=Object(e.a)(n);if(t.length>1)Object(O.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(t.length===0)return Object(O.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=t[0];if(R.isValidElement(b)&&Object(g.c)(b)){var y=b.ref;t[0]=R.cloneElement(b,{ref:Object(g.a)(y,this.setChildNode)})}return t.length===1?t[0]:t.map(function(m,x){return!R.isValidElement(m)||"key"in m&&m.key!==null?m:R.cloneElement(m,{key:"".concat(u,"-").concat(x)})})}}]),s}(R.Component);a.displayName="ResizeObserver",ne.a=a},t9D7:function(je,ne,N){"use strict";N.d(ne,"b",function(){return W}),N.d(ne,"g",function(){return e}),N.d(ne,"d",function(){return O}),N.d(ne,"e",function(){return g}),N.d(ne,"a",function(){return p}),N.d(ne,"f",function(){return r}),N.d(ne,"c",function(){return o});var Q=N("Vhoy"),M=N("MI8n"),I=N("pmY6"),j=N("Cg/j"),C=N("ic2d"),R=N("nEHx");const W=Object(j.c)("themeService");var k;(function(s){function i(n){return n&&typeof n=="object"&&typeof n.id=="string"}s.isThemeColor=i})(k||(k={}));function e(s){return{id:s}}var O;(function(s){function i(x){return x&&typeof x=="object"&&typeof x.id=="string"&&(typeof x.color=="undefined"||k.isThemeColor(x.color))}s.isThemeIcon=i;const n=new RegExp(`^\\$\\((${Q.a.iconNameExpression}(?:${Q.a.iconModifierExpression})?)\\)$`);function t(x){const _=n.exec(x);if(!_)return;let[,h]=_;return{id:h}}s.fromString=t;function b(x,_){let h=x.id;const d=h.lastIndexOf("~");return d!==-1&&(h=h.substring(0,d)),_&&(h=`${h}~${_}`),{id:h}}s.modify=b;function y(x,_){var h,d;return x.id===_.id&&((h=x.color)===null||h===void 0?void 0:h.id)===((d=_.color)===null||d===void 0?void 0:d.id)}s.isEqual=y;function m(x,_){return{id:x.id,color:_?e(_):void 0}}s.asThemeIcon=m,s.asClassNameArray=Q.a.asClassNameArray,s.asClassName=Q.a.asClassName,s.asCSSSelector=Q.a.asCSSSelector})(O||(O={}));function g(s){switch(s){case R.a.DARK:return"vs-dark";case R.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class u{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new M.b}onColorThemeChange(s){return this.themingParticipants.push(s),this.onThemingParticipantAddedEmitter.fire(s),Object(I.i)(()=>{const i=this.themingParticipants.indexOf(s);this.themingParticipants.splice(i,1)})}getThemingParticipants(){return this.themingParticipants}}let a=new u;C.a.add(p.ThemingContribution,a);function r(s){return a.onColorThemeChange(s)}class o extends I.a{constructor(s){super();this.themeService=s,this.theme=s.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(i=>this.onThemeChange(i)))}onThemeChange(s){this.theme=s,this.updateStyles()}updateStyles(){}}},ulZh:function(je,ne,N){typeof window!="undefined"&&function(M,I){je.exports=I()}(this,function(){return function(Q){var M={};function I(j){if(M[j])return M[j].exports;var C=M[j]={i:j,l:!1,exports:{}};return Q[j].call(C.exports,C,C.exports,I),C.l=!0,C.exports}return I.m=Q,I.c=M,I.d=function(j,C,R){I.o(j,C)||Object.defineProperty(j,C,{enumerable:!0,get:R})},I.r=function(j){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},I.t=function(j,C){if(C&1&&(j=I(j)),C&8)return j;if(C&4&&typeof j=="object"&&j&&j.__esModule)return j;var R=Object.create(null);if(I.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:j}),C&2&&typeof j!="string")for(var W in j)I.d(R,W,function(k){return j[k]}.bind(null,W));return R},I.n=function(j){var C=j&&j.__esModule?function(){return j.default}:function(){return j};return I.d(C,"a",C),C},I.o=function(j,C){return Object.prototype.hasOwnProperty.call(j,C)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Q,M,I){"use strict";var j=Object.prototype.hasOwnProperty,C="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(C=!1));function W(g,p,u){this.fn=g,this.context=p,this.once=u||!1}function k(g,p,u,a,r){if(typeof u!="function")throw new TypeError("The listener must be a function");var o=new W(u,a||g,r),s=C?C+p:p;return g._events[s]?g._events[s].fn?g._events[s]=[g._events[s],o]:g._events[s].push(o):(g._events[s]=o,g._eventsCount++),g}function e(g,p){--g._eventsCount===0?g._events=new R:delete g._events[p]}function O(){this._events=new R,this._eventsCount=0}O.prototype.eventNames=function(){var p=[],u,a;if(this._eventsCount===0)return p;for(a in u=this._events)j.call(u,a)&&p.push(C?a.slice(1):a);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(u)):p},O.prototype.listeners=function(p){var u=C?C+p:p,a=this._events[u];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,o=a.length,s=new Array(o);r<o;r++)s[r]=a[r].fn;return s},O.prototype.listenerCount=function(p){var u=C?C+p:p,a=this._events[u];return a?a.fn?1:a.length:0},O.prototype.emit=function(p,u,a,r,o,s){var i=C?C+p:p;if(!this._events[i])return!1;var n=this._events[i],t=arguments.length,b,y;if(n.fn){n.once&&this.removeListener(p,n.fn,void 0,!0);switch(t){case 1:return n.fn.call(n.context),!0;case 2:return n.fn.call(n.context,u),!0;case 3:return n.fn.call(n.context,u,a),!0;case 4:return n.fn.call(n.context,u,a,r),!0;case 5:return n.fn.call(n.context,u,a,r,o),!0;case 6:return n.fn.call(n.context,u,a,r,o,s),!0}for(y=1,b=new Array(t-1);y<t;y++)b[y-1]=arguments[y];n.fn.apply(n.context,b)}else{var m=n.length,x;for(y=0;y<m;y++){n[y].once&&this.removeListener(p,n[y].fn,void 0,!0);switch(t){case 1:n[y].fn.call(n[y].context);break;case 2:n[y].fn.call(n[y].context,u);break;case 3:n[y].fn.call(n[y].context,u,a);break;case 4:n[y].fn.call(n[y].context,u,a,r);break;default:if(!b)for(x=1,b=new Array(t-1);x<t;x++)b[x-1]=arguments[x];n[y].fn.apply(n[y].context,b)}}}return!0},O.prototype.on=function(p,u,a){return k(this,p,u,a,!1)},O.prototype.once=function(p,u,a){return k(this,p,u,a,!0)},O.prototype.removeListener=function(p,u,a,r){var o=C?C+p:p;if(!this._events[o])return this;if(!u)return e(this,o),this;var s=this._events[o];if(s.fn)s.fn===u&&(!r||s.once)&&(!a||s.context===a)&&e(this,o);else{for(var i=0,n=[],t=s.length;i<t;i++)(s[i].fn!==u||r&&!s[i].once||a&&s[i].context!==a)&&n.push(s[i]);n.length?this._events[o]=n.length===1?n[0]:n:e(this,o)}return this},O.prototype.removeAllListeners=function(p){var u;return p?(u=C?C+p:p,this._events[u]&&e(this,u)):(this._events=new R,this._eventsCount=0),this},O.prototype.off=O.prototype.removeListener,O.prototype.addListener=O.prototype.on,O.prefixed=C,O.EventEmitter=O,Q.exports=O},"./node_modules/url-toolkit/src/url-toolkit.js":function(Q,M,I){(function(j){var C=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,R=/^([^\/?#]*)([^]*)$/,W=/(?:\/|^)\.(?=\/)/g,k=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(O,g,p){if(p=p||{},O=O.trim(),g=g.trim(),!g){if(!p.alwaysNormalize)return O;var u=e.parseURL(O);if(!u)throw new Error("Error trying to parse base URL.");return u.path=e.normalizePath(u.path),e.buildURLFromParts(u)}var a=e.parseURL(g);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return p.alwaysNormalize?(a.path=e.normalizePath(a.path),e.buildURLFromParts(a)):g;var r=e.parseURL(O);if(!r)throw new Error("Error trying to parse base URL.");if(!r.netLoc&&r.path&&r.path[0]!=="/"){var o=R.exec(r.path);r.netLoc=o[1],r.path=o[2]}r.netLoc&&!r.path&&(r.path="/");var s={scheme:r.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(s.netLoc=r.netLoc,a.path[0]!=="/"))if(!a.path)s.path=r.path,a.params||(s.params=r.params,a.query||(s.query=r.query));else{var i=r.path,n=i.substring(0,i.lastIndexOf("/")+1)+a.path;s.path=e.normalizePath(n)}return s.path===null&&(s.path=p.alwaysNormalize?e.normalizePath(a.path):a.path),e.buildURLFromParts(s)},parseURL:function(O){var g=C.exec(O);return g?{scheme:g[1]||"",netLoc:g[2]||"",path:g[3]||"",params:g[4]||"",query:g[5]||"",fragment:g[6]||""}:null},normalizePath:function(O){for(O=O.split("").reverse().join("").replace(W,"");O.length!==(O=O.replace(k,"")).length;);return O.split("").reverse().join("")},buildURLFromParts:function(O){return O.scheme+O.netLoc+O.path+O.params+O.query+O.fragment}};Q.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(Q,M,I){function j(p){var u={};function a(o){if(u[o])return u[o].exports;var s=u[o]={i:o,l:!1,exports:{}};return p[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=p,a.c=u,a.i=function(o){return o},a.d=function(o,s,i){a.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:i})},a.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="/",a.oe=function(o){throw console.error(o),o};var r=a(a.s=ENTRY_MODULE);return r.default||r}var C="[\\.|\\-|\\+|\\w|/|@]+",R="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+C+").*?\\)";function W(p){return(p+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function k(p){return!isNaN(1*p)}function e(p,u,a){var r={};r[a]=[];var o=u.toString(),s=o.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return r;for(var i=s[1],n=new RegExp("(\\\\n|\\W)"+W(i)+R,"g"),t;t=n.exec(o);){if(t[3]==="dll-reference")continue;r[a].push(t[3])}for(n=new RegExp("\\("+W(i)+'\\("(dll-reference\\s('+C+'))"\\)\\)'+R,"g");t=n.exec(o);)p[t[2]]||(r[a].push(t[1]),p[t[2]]=I(t[1]).m),r[t[2]]=r[t[2]]||[],r[t[2]].push(t[4]);for(var b=Object.keys(r),y=0;y<b.length;y++)for(var m=0;m<r[b[y]].length;m++)k(r[b[y]][m])&&(r[b[y]][m]=1*r[b[y]][m]);return r}function O(p){var u=Object.keys(p);return u.reduce(function(a,r){return a||p[r].length>0},!1)}function g(p,u){for(var a={main:[u]},r={main:[]},o={main:{}};O(a);)for(var s=Object.keys(a),i=0;i<s.length;i++){var n=s[i],t=a[n],b=t.pop();if(o[n]=o[n]||{},o[n][b]||!p[n][b])continue;o[n][b]=!0,r[n]=r[n]||[],r[n].push(b);for(var y=e(p,p[n][b],n),m=Object.keys(y),x=0;x<m.length;x++)a[m[x]]=a[m[x]]||[],a[m[x]]=a[m[x]].concat(y[m[x]])}return r}Q.exports=function(p,u){u=u||{};var a={main:I.m},r=u.all?{main:Object.keys(a.main)}:g(a,p),o="";Object.keys(r).filter(function(b){return b!=="main"}).forEach(function(b){for(var y=0;r[b][y];)y++;r[b].push(y),a[b][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",o=o+"var "+b+" = ("+j.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+r[b].map(function(m){return""+JSON.stringify(m)+": "+a[b][m].toString()}).join(",")+`});
|
|
`}),o=o+"new (("+j.toString().replace("ENTRY_MODULE",JSON.stringify(p))+")({"+r.main.map(function(b){return""+JSON.stringify(b)+": "+a.main[b].toString()}).join(",")+"}))(self);";var s=new window.Blob([o],{type:"text/javascript"});if(u.bare)return s;var i=window.URL||window.webkitURL||window.mozURL||window.msURL,n=i.createObjectURL(s),t=new window.Worker(n);return t.objectURL=n,t}},"./src/config.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"hlsDefaultConfig",function(){return x}),I.d(M,"mergeConfig",function(){return h}),I.d(M,"enableStreamingMode",function(){return d});var j=I("./src/controller/abr-controller.ts"),C=I("./src/controller/audio-stream-controller.ts"),R=I("./src/controller/audio-track-controller.ts"),W=I("./src/controller/subtitle-stream-controller.ts"),k=I("./src/controller/subtitle-track-controller.ts"),e=I("./src/controller/buffer-controller.ts"),O=I("./src/controller/timeline-controller.ts"),g=I("./src/controller/cap-level-controller.ts"),p=I("./src/controller/fps-controller.ts"),u=I("./src/controller/eme-controller.ts"),a=I("./src/controller/cmcd-controller.ts"),r=I("./src/utils/xhr-loader.ts"),o=I("./src/utils/fetch-loader.ts"),s=I("./src/utils/cues.ts"),i=I("./src/utils/mediakeys-helper.ts"),n=I("./src/utils/logger.ts");function t(){return t=Object.assign||function(l){for(var c=1;c<arguments.length;c++){var v=arguments[c];for(var f in v)Object.prototype.hasOwnProperty.call(v,f)&&(l[f]=v[f])}return l},t.apply(this,arguments)}function b(l,c){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);c&&(f=f.filter(function(T){return Object.getOwnPropertyDescriptor(l,T).enumerable})),v.push.apply(v,f)}return v}function y(l){for(var c=1;c<arguments.length;c++){var v=arguments[c]!=null?arguments[c]:{};c%2?b(Object(v),!0).forEach(function(f){m(l,f,v[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(v)):b(Object(v)).forEach(function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(v,f))})}return l}function m(l,c,v){return c in l?Object.defineProperty(l,c,{value:v,enumerable:!0,configurable:!0,writable:!0}):l[c]=v,l}var x=y(y({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:r.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:j.default,bufferController:e.default,capLevelController:g.default,fpsController:p.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:i.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},_()),{},{subtitleStreamController:W.SubtitleStreamController,subtitleTrackController:k.default,timelineController:O.TimelineController,audioStreamController:C.default,audioTrackController:R.default,emeController:u.default,cmcdController:a.default});function _(){return{cueHandler:s.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function h(l,c){if((c.liveSyncDurationCount||c.liveMaxLatencyDurationCount)&&(c.liveSyncDuration||c.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(c.liveMaxLatencyDurationCount!==void 0&&(c.liveSyncDurationCount===void 0||c.liveMaxLatencyDurationCount<=c.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(c.liveMaxLatencyDuration!==void 0&&(c.liveSyncDuration===void 0||c.liveMaxLatencyDuration<=c.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return t({},l,c)}function d(l){var c=l.loader;if(c!==o.default&&c!==r.default)n.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),l.progressive=!1;else{var v=Object(o.fetchSupported)();v&&(l.loader=o.default,l.progressive=!0,l.enableSoftwareAES=!0,n.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/utils/ewma-bandwidth-estimator.ts"),R=I("./src/events.ts"),W=I("./src/utils/buffer-helper.ts"),k=I("./src/errors.ts"),e=I("./src/types/loader.ts"),O=I("./src/utils/logger.ts");function g(a,r){for(var o=0;o<r.length;o++){var s=r[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function p(a,r,o){return r&&g(a.prototype,r),o&&g(a,o),a}var u=function(){function a(o){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=o;var s=o.config;this.bwEstimator=new C.default(s.abrEwmaSlowVoD,s.abrEwmaFastVoD,s.abrEwmaDefaultEstimate),this.registerListeners()}var r=a.prototype;return r.registerListeners=function(){var s=this.hls;s.on(R.Events.FRAG_LOADING,this.onFragLoading,this),s.on(R.Events.FRAG_LOADED,this.onFragLoaded,this),s.on(R.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.on(R.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var s=this.hls;s.off(R.Events.FRAG_LOADING,this.onFragLoading,this),s.off(R.Events.FRAG_LOADED,this.onFragLoaded,this),s.off(R.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.off(R.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},r.onFragLoading=function(s,i){var n=i.frag;if(n.type===e.PlaylistLevelType.MAIN&&!this.timer){var t;this.fragCurrent=n,this.partCurrent=(t=i.part)!=null?t:null,this.timer=self.setInterval(this.onCheck,100)}},r.onLevelLoaded=function(s,i){var n=this.hls.config;i.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)},r._abandonRulesCheck=function(){var s=this.fragCurrent,i=this.partCurrent,n=this.hls,t=n.autoLevelEnabled,b=n.config,y=n.media;if(!s||!y)return;var m=i?i.stats:s.stats,x=i?i.duration:s.duration;if(m.aborted){O.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!t||y.paused||!y.playbackRate||!y.readyState)return;var _=performance.now()-m.loading.start,h=Math.abs(y.playbackRate);if(_<=500*x/h)return;var d=n.levels,l=n.minAutoLevel,c=d[s.level],v=m.total||Math.max(m.loaded,Math.round(x*c.maxBitrate/8)),f=Math.max(1,m.bwEstimate?m.bwEstimate/8:m.loaded*1e3/_),T=(v-m.loaded)/f,L=y.currentTime,P=(W.BufferHelper.bufferInfo(y,L,b.maxBufferHole).end-L)/h;if(P>=2*x/h||T<=P)return;var S=Number.POSITIVE_INFINITY,A;for(A=s.level-1;A>l;A--){var H=d[A].maxBitrate;if(S=x*H/(8*.8*f),S<P)break}if(S>=T)return;var D=this.bwEstimator.getEstimate();O.logger.warn("Fragment "+s.sn+(i?" part "+i.index:"")+" of level "+s.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+A+`
|
|
Current BW estimate: `+(Object(j.isFiniteNumber)(D)?(D/1024).toFixed(3):"Unknown")+` Kb/s
|
|
Estimated load time for current fragment: `+T.toFixed(3)+` s
|
|
Estimated load time for the next fragment: `+S.toFixed(3)+` s
|
|
Time to underbuffer: `+P.toFixed(3)+" s"),n.nextLoadLevel=A,this.bwEstimator.sample(_,m.loaded),this.clearTimer(),s.loader&&(this.fragCurrent=this.partCurrent=null,s.loader.abort()),n.trigger(R.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:i,stats:m})},r.onFragLoaded=function(s,i){var n=i.frag,t=i.part;if(n.type===e.PlaylistLevelType.MAIN&&Object(j.isFiniteNumber)(n.sn)){var b=t?t.stats:n.stats,y=t?t.duration:n.duration;if(this.clearTimer(),this.lastLoadedFragLevel=n.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var m=this.hls.levels[n.level],x=(m.loaded?m.loaded.bytes:0)+b.loaded,_=(m.loaded?m.loaded.duration:0)+y;m.loaded={bytes:x,duration:_},m.realBitrate=Math.round(8*x/_)}if(n.bitrateTest){var h={stats:b,frag:n,part:t,id:n.type};this.onFragBuffered(R.Events.FRAG_BUFFERED,h),n.bitrateTest=!1}}},r.onFragBuffered=function(s,i){var n=i.frag,t=i.part,b=t?t.stats:n.stats;if(b.aborted)return;if(n.type!==e.PlaylistLevelType.MAIN||n.sn==="initSegment")return;var y=b.parsing.end-b.loading.start;this.bwEstimator.sample(y,b.loaded),b.bwEstimate=this.bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=y/1e3:this.bitrateTestDelay=0},r.onError=function(s,i){switch(i.details){case k.ErrorDetails.FRAG_LOAD_ERROR:case k.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},r.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},r.getNextABRAutoLevel=function(){var s=this.fragCurrent,i=this.partCurrent,n=this.hls,t=n.maxAutoLevel,b=n.config,y=n.minAutoLevel,m=n.media,x=i?i.duration:s?s.duration:0,_=m?m.currentTime:0,h=m&&m.playbackRate!==0?Math.abs(m.playbackRate):1,d=this.bwEstimator?this.bwEstimator.getEstimate():b.abrEwmaDefaultEstimate,l=(W.BufferHelper.bufferInfo(m,_,b.maxBufferHole).end-_)/h,c=this.findBestLevel(d,y,t,l,b.abrBandWidthFactor,b.abrBandWidthUpFactor);if(c>=0)return c;O.logger.trace((l?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var v=x?Math.min(x,b.maxStarvationDelay):b.maxStarvationDelay,f=b.abrBandWidthFactor,T=b.abrBandWidthUpFactor;if(!l){var L=this.bitrateTestDelay;if(L){var P=x?Math.min(x,b.maxLoadingDelay):b.maxLoadingDelay;v=P-L,O.logger.trace("bitrate test took "+Math.round(1e3*L)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*v)+" ms"),f=T=1}}return c=this.findBestLevel(d,y,t,l+v,f,T),Math.max(c,0)},r.findBestLevel=function(s,i,n,t,b,y){for(var m,x=this.fragCurrent,_=this.partCurrent,h=this.lastLoadedFragLevel,d=this.hls.levels,l=d[h],c=!!(l!=null&&(m=l.details)!==null&&m!==void 0&&m.live),v=l==null?void 0:l.codecSet,f=_?_.duration:x?x.duration:0,T=n;T>=i;T--){var L=d[T];if(!L||v&&L.codecSet!==v)continue;var P=L.details,S=(_?P==null?void 0:P.partTarget:P==null?void 0:P.averagetargetduration)||f,A=void 0;T<=h?A=b*s:A=y*s;var H=d[T].maxBitrate,D=H*S/A;if(O.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+T+"/"+Math.round(A)+"/"+H+"/"+S+"/"+t+"/"+D),A>H&&(!D||c&&!this.bitrateTestDelay||D<t))return T}return-1},p(a,[{key:"nextAutoLevel",get:function(){var s=this._nextAutoLevel,i=this.bwEstimator;if(s!==-1&&(!i||!i.canEstimate()))return s;var n=this.getNextABRAutoLevel();return s!==-1&&(n=Math.min(s,n)),n},set:function(s){this._nextAutoLevel=s}}]),a}();M.default=u},"./src/controller/audio-stream-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/controller/base-stream-controller.ts"),R=I("./src/events.ts"),W=I("./src/utils/buffer-helper.ts"),k=I("./src/controller/fragment-tracker.ts"),e=I("./src/types/level.ts"),O=I("./src/types/loader.ts"),g=I("./src/loader/fragment.ts"),p=I("./src/demux/chunk-cache.ts"),u=I("./src/demux/transmuxer-interface.ts"),a=I("./src/types/transmuxer.ts"),r=I("./src/controller/fragment-finders.ts"),o=I("./src/utils/discontinuities.ts"),s=I("./src/errors.ts"),i=I("./src/utils/logger.ts");function n(){return n=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var h=arguments[_];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(x[d]=h[d])}return x},n.apply(this,arguments)}function t(x,_){x.prototype=Object.create(_.prototype),x.prototype.constructor=x,b(x,_)}function b(x,_){return b=Object.setPrototypeOf||function(d,l){return d.__proto__=l,d},b(x,_)}var y=100,m=function(x){t(_,x);function _(d,l){var c;return c=x.call(this,d,l,"[audio-stream-controller]")||this,c.videoBuffer=null,c.videoTrackCC=-1,c.waitingVideoCC=-1,c.audioSwitch=!1,c.trackId=-1,c.waitingData=null,c.mainDetails=null,c.bufferFlushed=!1,c._registerListeners(),c}var h=_.prototype;return h.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},h._registerListeners=function(){var l=this.hls;l.on(R.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(R.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(R.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.on(R.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),l.on(R.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.on(R.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.on(R.Events.ERROR,this.onError,this),l.on(R.Events.BUFFER_RESET,this.onBufferReset,this),l.on(R.Events.BUFFER_CREATED,this.onBufferCreated,this),l.on(R.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.on(R.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),l.on(R.Events.FRAG_BUFFERED,this.onFragBuffered,this)},h._unregisterListeners=function(){var l=this.hls;l.off(R.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(R.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(R.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.off(R.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),l.off(R.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.off(R.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.off(R.Events.ERROR,this.onError,this),l.off(R.Events.BUFFER_RESET,this.onBufferReset,this),l.off(R.Events.BUFFER_CREATED,this.onBufferCreated,this),l.off(R.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.off(R.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),l.off(R.Events.FRAG_BUFFERED,this.onFragBuffered,this)},h.onInitPtsFound=function(l,c){var v=c.frag,f=c.id,T=c.initPTS;if(f==="main"){var L=v.cc;this.initPTS[v.cc]=T,this.log("InitPTS for cc: "+L+" found from main: "+T),this.videoTrackCC=L,this.state===C.State.WAITING_INIT_PTS&&this.tick()}},h.startLoad=function(l){if(!this.levels){this.startPosition=l,this.state=C.State.STOPPED;return}var c=this.lastCurrentTime;this.stopLoad(),this.setInterval(y),this.fragLoadError=0,c>0&&l===-1?(this.log("Override startPosition with lastCurrentTime @"+c.toFixed(3)),this.state=C.State.IDLE):(this.loadedmetadata=!1,this.state=C.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()},h.doTick=function(){switch(this.state){case C.State.IDLE:this.doTickIdle();break;case C.State.WAITING_TRACK:{var l,c=this.levels,v=this.trackId,f=c==null||((l=c[v])===null||l===void 0)?void 0:l.details;if(f){if(this.waitForCdnTuneIn(f))break;this.state=C.State.WAITING_INIT_PTS}break}case C.State.FRAG_LOADING_WAITING_RETRY:{var T,L=performance.now(),P=this.retryDate;(!P||L>=P||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=C.State.IDLE);break}case C.State.WAITING_INIT_PTS:{var S=this.waitingData;if(S){var A=S.frag,H=S.part,D=S.cache,K=S.complete;if(this.initPTS[A.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=C.State.FRAG_LOADING;var V=D.flush(),oe={frag:A,part:H,payload:V,networkDetails:null};this._handleFragmentLoadProgress(oe),K&&x.prototype._handleFragmentLoadComplete.call(this,oe)}else if(this.videoTrackCC!==this.waitingVideoCC)i.logger.log("Waiting fragment cc ("+A.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var le=this.getLoadPosition(),Ce=W.BufferHelper.bufferInfo(this.mediaBuffer,le,this.config.maxBufferHole),xe=Object(r.fragmentWithinToleranceTest)(Ce.end,this.config.maxFragLookUpTolerance,A);xe<0&&(i.logger.log("Waiting fragment cc ("+A.cc+") @ "+A.start+" cancelled because another fragment at "+Ce.end+" is needed"),this.clearWaitingFragment())}}else this.state=C.State.IDLE}}this.onTickEnd()},h.clearWaitingFragment=function(){var l=this.waitingData;l&&(this.fragmentTracker.removeFragment(l.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=C.State.IDLE)},h.onTickEnd=function(){var l=this.media;if(!l||!l.readyState)return;var c=this.mediaBuffer?this.mediaBuffer:l,v=c.buffered;!this.loadedmetadata&&v.length&&(this.loadedmetadata=!0),this.lastCurrentTime=l.currentTime},h.doTickIdle=function(){var l,c,v=this.hls,f=this.levels,T=this.media,L=this.trackId,P=v.config;if(!f||!f[L])return;if(!T&&(this.startFragRequested||!P.startFragPrefetch))return;var S=f[L],A=S.details;if(!A||A.live&&this.levelLastLoaded!==L||this.waitForCdnTuneIn(A)){this.state=C.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,g.ElementaryStreamTypes.AUDIO,O.PlaylistLevelType.AUDIO));var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,O.PlaylistLevelType.AUDIO);if(H===null)return;var D=H.len,K=this.getMaxBufferLength(),V=this.audioSwitch;if(D>=K&&!V)return;if(!V&&this._streamEnded(H,A)){v.trigger(R.Events.BUFFER_EOS,{type:"audio"}),this.state=C.State.ENDED;return}var oe=A.fragments,le=oe[0].start,Ce=H.end;if(V){var xe=this.getLoadPosition();Ce=xe,A.PTSKnown&&xe<le&&((H.end>le||H.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),T.currentTime=le+.05))}var ie=this.getNextFragment(Ce,A);if(!ie){this.bufferFlushed=!0;return}((l=ie.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((c=ie.decryptdata)!==null&&c!==void 0&&c.key)?this.loadKey(ie,A):this.loadFragment(ie,A,Ce)},h.getMaxBufferLength=function(){var l=x.prototype.getMaxBufferLength.call(this),c=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,O.PlaylistLevelType.MAIN);return c===null?l:Math.max(l,c.len)},h.onMediaDetaching=function(){this.videoBuffer=null,x.prototype.onMediaDetaching.call(this)},h.onAudioTracksUpdated=function(l,c){var v=c.audioTracks;this.resetTransmuxer(),this.levels=v.map(function(f){return new e.Level(f)})},h.onAudioTrackSwitching=function(l,c){var v=!!c.url;this.trackId=c.id;var f=this.fragCurrent;f!=null&&f.loader&&f.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),v?this.setInterval(y):this.resetTransmuxer(),v?(this.audioSwitch=!0,this.state=C.State.IDLE):this.state=C.State.STOPPED,this.tick()},h.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},h.onLevelLoaded=function(l,c){this.mainDetails=c.details},h.onAudioTrackLoaded=function(l,c){var v,f=this.levels,T=c.details,L=c.id;if(!f){this.warn("Audio tracks were reset while loading level "+L);return}this.log("Track "+L+" loaded ["+T.startSN+","+T.endSN+"],duration:"+T.totalduration);var P=f[L],S=0;if(T.live||(v=P.details)!==null&&v!==void 0&&v.live){var A=this.mainDetails;if(T.fragments[0]||(T.deltaUpdateFailed=!0),T.deltaUpdateFailed||!A)return;!P.details&&T.hasProgramDateTime&&A.hasProgramDateTime?(Object(o.alignMediaPlaylistByPDT)(T,A),S=T.fragments[0].start):S=this.alignPlaylists(T,P.details)}P.details=T,this.levelLastLoaded=L,!this.startFragRequested&&(this.mainDetails||!T.live)&&this.setStartPosition(P.details,S),this.state===C.State.WAITING_TRACK&&!this.waitForCdnTuneIn(T)&&(this.state=C.State.IDLE),this.tick()},h._handleFragmentLoadProgress=function(l){var c,v=l.frag,f=l.part,T=l.payload,L=this.config,P=this.trackId,S=this.levels;if(!S){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+v.sn+" of level "+v.level+" will not be buffered");return}var A=S[P];console.assert(A,"Audio track is defined on fragment load progress");var H=A.details;console.assert(H,"Audio track details are defined on fragment load progress");var D=L.defaultAudioCodec||A.audioCodec||"mp4a.40.2",K=this.transmuxer;K||(K=this.transmuxer=new u.default(this.hls,O.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var V=this.initPTS[v.cc],oe=(c=v.initSegment)===null||c===void 0?void 0:c.data;if(V!==void 0){var le=!1,Ce=f?f.index:-1,xe=Ce!==-1,ie=new a.ChunkMetadata(v.level,v.sn,v.stats.chunkCount,T.byteLength,Ce,xe);K.push(T,oe,D,"",v,f,H.totalduration,le,ie,V)}else{i.logger.log("Unknown video PTS for cc "+v.cc+", waiting for video PTS before demuxing audio frag "+v.sn+" of ["+H.startSN+" ,"+H.endSN+"],track "+P);var Se=this.waitingData=this.waitingData||{frag:v,part:f,cache:new p.default,complete:!1},Pe=Se.cache;Pe.push(new Uint8Array(T)),this.waitingVideoCC=this.videoTrackCC,this.state=C.State.WAITING_INIT_PTS}},h._handleFragmentLoadComplete=function(l){if(this.waitingData){this.waitingData.complete=!0;return}x.prototype._handleFragmentLoadComplete.call(this,l)},h.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},h.onBufferCreated=function(l,c){var v=c.tracks.audio;v&&(this.mediaBuffer=v.buffer),c.tracks.video&&(this.videoBuffer=c.tracks.video.buffer)},h.onFragBuffered=function(l,c){var v=c.frag,f=c.part;if(v.type!==O.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(v)){this.warn("Fragment "+v.sn+(f?" p: "+f.index:"")+" of level "+v.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}v.sn!=="initSegment"&&(this.fragPrevious=v,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(R.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(v,f)},h.onError=function(l,c){switch(c.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(O.PlaylistLevelType.AUDIO,c);break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==C.State.ERROR&&this.state!==C.State.STOPPED&&(this.state=c.fatal?C.State.ERROR:C.State.IDLE,this.warn(c.details+" while loading frag, switching to "+this.state+" state"));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if(c.parent==="audio"&&(this.state===C.State.PARSING||this.state===C.State.PARSED)){var v=!0,f=this.getFwdBufferInfo(this.mediaBuffer,O.PlaylistLevelType.AUDIO);f&&f.len>.5&&(v=!this.reduceMaxBufferLength(f.len)),v&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},h.onBufferFlushed=function(l,c){var v=c.type;v===g.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},h._handleTransmuxComplete=function(l){var c,v="audio",f=this.hls,T=l.remuxResult,L=l.chunkMeta,P=this.getCurrentContext(L);if(!P){this.warn("The loading context changed while buffering fragment "+L.sn+" of level "+L.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(L.level);return}var S=P.frag,A=P.part,H=T.audio,D=T.text,K=T.id3,V=T.initSegment;if(this.fragContextChanged(S))return;if(this.state=C.State.PARSING,this.audioSwitch&&H&&this.completeAudioSwitch(),V!=null&&V.tracks&&(this._bufferInitSegment(V.tracks,S,L),f.trigger(R.Events.FRAG_PARSING_INIT_SEGMENT,{frag:S,id:v,tracks:V.tracks})),H){var oe=H.startPTS,le=H.endPTS,Ce=H.startDTS,xe=H.endDTS;A&&(A.elementaryStreams[g.ElementaryStreamTypes.AUDIO]={startPTS:oe,endPTS:le,startDTS:Ce,endDTS:xe}),S.setElementaryStreamInfo(g.ElementaryStreamTypes.AUDIO,oe,le,Ce,xe),this.bufferFragmentData(H,S,A,L)}if(K!=null&&(c=K.samples)!==null&&c!==void 0&&c.length){var ie=n({frag:S,id:v},K);f.trigger(R.Events.FRAG_PARSING_METADATA,ie)}if(D){var Se=n({frag:S,id:v},D);f.trigger(R.Events.FRAG_PARSING_USERDATA,Se)}},h._bufferInitSegment=function(l,c,v){if(this.state!==C.State.PARSING)return;l.video&&delete l.video;var f=l.audio;if(!f)return;f.levelCodec=f.codec,f.id="audio",this.log("Init audio buffer, container:"+f.container+", codecs[parsed]=["+f.codec+"]"),this.hls.trigger(R.Events.BUFFER_CODECS,l);var T=f.initSegment;if(T!=null&&T.byteLength){var L={type:"audio",frag:c,part:null,chunkMeta:v,parent:c.type,data:T};this.hls.trigger(R.Events.BUFFER_APPENDING,L)}this.tick()},h.loadFragment=function(l,c,v){var f=this.fragmentTracker.getState(l);this.fragCurrent=l,(this.audioSwitch||f===k.FragmentState.NOT_LOADED||f===k.FragmentState.PARTIAL)&&(l.sn==="initSegment"?this._loadInitSegment(l):c.live&&!Object(j.isFiniteNumber)(this.initPTS[l.cc])?(this.log("Waiting for video PTS in continuity counter "+l.cc+" of live stream before loading audio fragment "+l.sn+" of level "+this.trackId),this.state=C.State.WAITING_INIT_PTS):(this.startFragRequested=!0,x.prototype.loadFragment.call(this,l,c,v)))},h.completeAudioSwitch=function(){var l=this.hls,c=this.media,v=this.trackId;c&&(this.log("Switching audio track : flushing all audio"),x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,l.trigger(R.Events.AUDIO_TRACK_SWITCHED,{id:v})},_}(C.default);M.default=m},"./src/controller/audio-track-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/controller/base-playlist-controller.ts"),W=I("./src/types/loader.ts");function k(u,a){for(var r=0;r<a.length;r++){var o=a[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}function e(u,a,r){return a&&k(u.prototype,a),r&&k(u,r),u}function O(u,a){u.prototype=Object.create(a.prototype),u.prototype.constructor=u,g(u,a)}function g(u,a){return g=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},g(u,a)}var p=function(u){O(a,u);function a(o){var s;return s=u.call(this,o,"[audio-track-controller]")||this,s.tracks=[],s.groupId=null,s.tracksInGroup=[],s.trackId=-1,s.trackName="",s.selectDefaultTrack=!0,s.registerListeners(),s}var r=a.prototype;return r.registerListeners=function(){var s=this.hls;s.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),s.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),s.on(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),s.on(j.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),s.on(j.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var s=this.hls;s.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),s.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),s.off(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),s.off(j.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),s.off(j.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,u.prototype.destroy.call(this)},r.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},r.onManifestParsed=function(s,i){this.tracks=i.audioTracks||[]},r.onAudioTrackLoaded=function(s,i){var n=i.id,t=i.details,b=this.tracksInGroup[n];if(!b){this.warn("Invalid audio track id "+n);return}var y=b.details;b.details=i.details,this.log("audioTrack "+n+" loaded ["+t.startSN+"-"+t.endSN+"]"),n===this.trackId&&(this.retryCount=0,this.playlistLoaded(n,i,y))},r.onLevelLoading=function(s,i){this.switchLevel(i.level)},r.onLevelSwitching=function(s,i){this.switchLevel(i.level)},r.switchLevel=function(s){var i=this.hls.levels[s];if(!(i!=null&&i.audioGroupIds))return;var n=i.audioGroupIds[i.urlId];if(this.groupId!==n){this.groupId=n;var t=this.tracks.filter(function(y){return!n||y.groupId===n});this.selectDefaultTrack&&!t.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=t;var b={audioTracks:t};this.log("Updating audio tracks, "+t.length+' track(s) found in "'+n+'" group-id'),this.hls.trigger(j.Events.AUDIO_TRACKS_UPDATED,b),this.selectInitialTrack()}},r.onError=function(s,i){if(u.prototype.onError.call(this,s,i),i.fatal||!i.context)return;i.context.type===W.PlaylistContextType.AUDIO_TRACK&&i.context.id===this.trackId&&i.context.groupId===this.groupId&&this.retryLoadingOrFail(i)},r.setAudioTrack=function(s){var i=this.tracksInGroup;if(s<0||s>=i.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var n=i[this.trackId];this.log("Now switching to audio-track index "+s);var t=i[s],b=t.id,y=t.groupId,m=y===void 0?"":y,x=t.name,_=t.type,h=t.url;if(this.trackId=s,this.trackName=x,this.selectDefaultTrack=!1,this.hls.trigger(j.Events.AUDIO_TRACK_SWITCHING,{id:b,groupId:m,name:x,type:_,url:h}),t.details&&!t.details.live)return;var d=this.switchParams(t.url,n==null?void 0:n.details);this.loadPlaylist(d)},r.selectInitialTrack=function(){var s=this.tracksInGroup;console.assert(s.length,"Initial audio track should be selected when tracks are known");var i=this.trackName,n=this.findTrackId(i)||this.findTrackId();n!==-1?this.setAudioTrack(n):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},r.findTrackId=function(s){for(var i=this.tracksInGroup,n=0;n<i.length;n++){var t=i[n];if((!this.selectDefaultTrack||t.default)&&(!s||s===t.name))return t.id}return-1},r.loadPlaylist=function(s){var i=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(i)){var n=i.id,t=i.groupId,b=i.url;if(s)try{b=s.addDirectives(b)}catch(y){this.warn("Could not construct new URL with HLS Delivery Directives: "+y)}this.log("loading audio-track playlist for id: "+n),this.clearTimer(),this.hls.trigger(j.Events.AUDIO_TRACK_LOADING,{url:b,id:n,groupId:t,deliveryDirectives:s||null})}},e(a,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(s){this.selectDefaultTrack=!1,this.setAudioTrack(s)}}]),a}(R.default);M.default=p},"./src/controller/base-playlist-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return e});var j=I("./src/polyfills/number.ts"),C=I("./src/types/level.ts"),R=I("./src/controller/level-helper.ts"),W=I("./src/utils/logger.ts"),k=I("./src/errors.ts"),e=function(){function O(p,u){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=W.logger.log.bind(W.logger,u+":"),this.warn=W.logger.warn.bind(W.logger,u+":"),this.hls=p}var g=O.prototype;return g.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},g.onError=function(u,a){a.fatal&&a.type===k.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},g.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},g.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},g.stopLoad=function(){this.canLoad=!1,this.clearTimer()},g.switchParams=function(u,a){var r=a==null?void 0:a.renditionReports;if(r)for(var o=0;o<r.length;o++){var s=r[o],i=""+s.URI;if(i===u.substr(-i.length)){var n=parseInt(s["LAST-MSN"]),t=parseInt(s["LAST-PART"]);if(a&&this.hls.config.lowLatencyMode){var b=Math.min(a.age-a.partTarget,a.targetduration);t!==void 0&&b>a.partTarget&&(t+=1)}if(Object(j.isFiniteNumber)(n))return new C.HlsUrlParameters(n,Object(j.isFiniteNumber)(t)?t:void 0,C.HlsSkip.No)}}},g.loadPlaylist=function(u){},g.shouldLoadTrack=function(u){return this.canLoad&&u&&!!u.url&&(!u.details||u.details.live)},g.playlistLoaded=function(u,a,r){var o=this,s=a.details,i=a.stats,n=i.loading.end?Math.max(0,self.performance.now()-i.loading.end):0;if(s.advancedDateTime=Date.now()-n,s.live||r!=null&&r.live){if(s.reloaded(r),r&&this.log("live playlist "+u+" "+(s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:"MISSED")),r&&s.fragments.length>0&&Object(R.mergeDetails)(r,s),!this.canLoad||!s.live)return;var t,b=void 0,y=void 0;if(s.canBlockReload&&s.endSN&&s.advanced){var m=this.hls.config.lowLatencyMode,x=s.lastPartSn,_=s.endSN,h=s.lastPartIndex,d=h!==-1,l=x===_,c=m?0:h;d?(b=l?_+1:x,y=l?c:h+1):b=_+1;var v=s.age,f=v+s.ageHeader,T=Math.min(f-s.partTarget,s.targetduration*1.5);if(T>0){if(r&&T>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+T+" with playlist age: "+s.age),T=0;else{var L=Math.floor(T/s.targetduration);if(b+=L,y!==void 0){var P=Math.round(T%s.targetduration/s.partTarget);y+=P}this.log("CDN Tune-in age: "+s.ageHeader+"s last advanced "+v.toFixed(2)+"s goal: "+T+" skip sn "+L+" to part "+y)}s.tuneInGoal=T}if(t=this.getDeliveryDirectives(s,a.deliveryDirectives,b,y),m||!l){this.loadPlaylist(t);return}}else t=this.getDeliveryDirectives(s,a.deliveryDirectives,b,y);var S=Object(R.computeReloadInterval)(s,i);b!==void 0&&s.canBlockReload&&(S-=s.partTarget||1),this.log("reload live playlist "+u+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout(function(){return o.loadPlaylist(t)},S)}else this.clearTimer()},g.getDeliveryDirectives=function(u,a,r,o){var s=Object(C.getSkipValue)(u,r);return a!=null&&a.skip&&u.deltaUpdateFailed&&(r=a.msn,o=a.part,s=C.HlsSkip.No),new C.HlsUrlParameters(r,o,s)},g.retryLoadingOrFail=function(u){var a=this,r=this.hls.config,o=this.retryCount<r.levelLoadingMaxRetry;if(o){var s;if(this.retryCount++,u.details.indexOf("LoadTimeOut")>-1&&(s=u.context)!==null&&s!==void 0&&s.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+u.details+'"'),this.loadPlaylist();else{var i=Math.min(Math.pow(2,this.retryCount)*r.levelLoadingRetryDelay,r.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return a.loadPlaylist()},i),this.warn("retry playlist loading #"+this.retryCount+" in "+i+' ms after "'+u.details+'"')}}else this.warn('cannot recover from error "'+u.details+'"'),this.clearTimer(),u.fatal=!0;return o},O}()},"./src/controller/base-stream-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"State",function(){return _}),I.d(M,"default",function(){return h});var j=I("./src/polyfills/number.ts"),C=I("./src/task-loop.ts"),R=I("./src/controller/fragment-tracker.ts"),W=I("./src/utils/buffer-helper.ts"),k=I("./src/utils/logger.ts"),e=I("./src/events.ts"),O=I("./src/errors.ts"),g=I("./src/types/transmuxer.ts"),p=I("./src/utils/mp4-tools.ts"),u=I("./src/utils/discontinuities.ts"),a=I("./src/controller/fragment-finders.ts"),r=I("./src/controller/level-helper.ts"),o=I("./src/loader/fragment-loader.ts"),s=I("./src/crypt/decrypter.ts"),i=I("./src/utils/time-ranges.ts"),n=I("./src/types/loader.ts");function t(d,l){for(var c=0;c<l.length;c++){var v=l[c];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}function b(d,l,c){return l&&t(d.prototype,l),c&&t(d,c),d}function y(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function m(d,l){d.prototype=Object.create(l.prototype),d.prototype.constructor=d,x(d,l)}function x(d,l){return x=Object.setPrototypeOf||function(v,f){return v.__proto__=f,v},x(d,l)}var _={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},h=function(d){m(l,d);function l(v,f,T){var L;return L=d.call(this)||this,L.hls=void 0,L.fragPrevious=null,L.fragCurrent=null,L.fragmentTracker=void 0,L.transmuxer=null,L._state=_.STOPPED,L.media=void 0,L.mediaBuffer=void 0,L.config=void 0,L.bitrateTest=!1,L.lastCurrentTime=0,L.nextLoadPosition=0,L.startPosition=0,L.loadedmetadata=!1,L.fragLoadError=0,L.retryDate=0,L.levels=null,L.fragmentLoader=void 0,L.levelLastLoaded=null,L.startFragRequested=!1,L.decrypter=void 0,L.initPTS=[],L.onvseeking=null,L.onvended=null,L.logPrefix="",L.log=void 0,L.warn=void 0,L.logPrefix=T,L.log=k.logger.log.bind(k.logger,T+":"),L.warn=k.logger.warn.bind(k.logger,T+":"),L.hls=v,L.fragmentLoader=new o.default(v.config),L.fragmentTracker=f,L.config=v.config,L.decrypter=new s.default(v,v.config),v.on(e.Events.KEY_LOADED,L.onKeyLoaded,y(L)),L}var c=l.prototype;return c.doTick=function(){this.onTickEnd()},c.onTickEnd=function(){},c.startLoad=function(f){},c.stopLoad=function(){this.fragmentLoader.abort();var f=this.fragCurrent;f&&this.fragmentTracker.removeFragment(f),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=_.STOPPED},c._streamEnded=function(f,T){var L=this.fragCurrent,P=this.fragmentTracker;if(!T.live&&L&&L.sn===T.endSN&&!f.nextStart){var S=P.getState(L);return S===R.FragmentState.PARTIAL||S===R.FragmentState.OK}return!1},c.onMediaAttached=function(f,T){var L=this.media=this.mediaBuffer=T.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),L.addEventListener("seeking",this.onvseeking),L.addEventListener("ended",this.onvended);var P=this.config;this.levels&&P.autoStartLoad&&this.state===_.STOPPED&&this.startLoad(P.startPosition)},c.onMediaDetaching=function(){var f=this.media;f!=null&&f.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),f&&(f.removeEventListener("seeking",this.onvseeking),f.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},c.onMediaSeeking=function(){var f=this.config,T=this.fragCurrent,L=this.media,P=this.mediaBuffer,S=this.state,A=L?L.currentTime:0,H=W.BufferHelper.bufferInfo(P||L,A,f.maxBufferHole);if(this.log("media seeking to "+(Object(j.isFiniteNumber)(A)?A.toFixed(3):A)+", state: "+S),S===_.ENDED)this.resetLoadingState();else if(T&&!H.len){var D=f.maxFragLookUpTolerance,K=T.start-D,V=T.start+T.duration+D,oe=A>V;(A<K||oe)&&(oe&&T.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),T.loader.abort()),this.resetLoadingState())}L&&(this.lastCurrentTime=A),!this.loadedmetadata&&!H.len&&(this.nextLoadPosition=this.startPosition=A),this.tickImmediate()},c.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},c.onKeyLoaded=function(f,T){if(this.state!==_.KEY_LOADING||T.frag!==this.fragCurrent||!this.levels)return;this.state=_.IDLE;var L=this.levels[T.frag.level].details;L&&this.loadFragment(T.frag,L,T.frag.start)},c.onHandlerDestroying=function(){this.stopLoad(),d.prototype.onHandlerDestroying.call(this)},c.onHandlerDestroyed=function(){this.state=_.STOPPED,this.hls.off(e.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,d.prototype.onHandlerDestroyed.call(this)},c.loadKey=function(f,T){this.log("Loading key for "+f.sn+" of ["+T.startSN+"-"+T.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+f.level),this.state=_.KEY_LOADING,this.fragCurrent=f,this.hls.trigger(e.Events.KEY_LOADING,{frag:f})},c.loadFragment=function(f,T,L){this._loadFragForPlayback(f,T,L)},c._loadFragForPlayback=function(f,T,L){var P=this,S=function(H){if(P.fragContextChanged(f)){P.warn("Fragment "+f.sn+(H.part?" p: "+H.part.index:"")+" of level "+f.level+" was dropped during download."),P.fragmentTracker.removeFragment(f);return}f.stats.chunkCount++,P._handleFragmentLoadProgress(H)};this._doFragLoad(f,T,L,S).then(function(A){if(!A)return;P.fragLoadError=0;var H=P.state;if(P.fragContextChanged(f)){(H===_.FRAG_LOADING||H===_.BACKTRACKING||!P.fragCurrent&&H===_.PARSING)&&(P.fragmentTracker.removeFragment(f),P.state=_.IDLE);return}if("payload"in A&&(P.log("Loaded fragment "+f.sn+" of level "+f.level),P.hls.trigger(e.Events.FRAG_LOADED,A),P.state===_.BACKTRACKING)){P.fragmentTracker.backtrack(f,A),P.resetFragmentLoading(f);return}P._handleFragmentLoadComplete(A)}).catch(function(A){P.warn(A),P.resetFragmentLoading(f)})},c.flushMainBuffer=function(f,T,L){if(L===void 0&&(L=null),!(f-T))return;var P={startOffset:f,endOffset:T,type:L};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,P)},c._loadInitSegment=function(f){var T=this;this._doFragLoad(f).then(function(L){if(!L||T.fragContextChanged(f)||!T.levels)throw new Error("init load aborted");return L}).then(function(L){var P=T.hls,S=L.payload,A=f.decryptdata;if(S&&S.byteLength>0&&A&&A.key&&A.iv&&A.method==="AES-128"){var H=self.performance.now();return T.decrypter.webCryptoDecrypt(new Uint8Array(S),A.key.buffer,A.iv.buffer).then(function(D){var K=self.performance.now();return P.trigger(e.Events.FRAG_DECRYPTED,{frag:f,payload:D,stats:{tstart:H,tdecrypt:K}}),L.payload=D,L})}return L}).then(function(L){var P=T.fragCurrent,S=T.hls,A=T.levels;if(!A)throw new Error("init load aborted, missing levels");var H=A[f.level].details;console.assert(H,"Level details are defined when init segment is loaded");var D=f.stats;T.state=_.IDLE,T.fragLoadError=0,f.data=new Uint8Array(L.payload),D.parsing.start=D.buffering.start=self.performance.now(),D.parsing.end=D.buffering.end=self.performance.now(),L.frag===P&&S.trigger(e.Events.FRAG_BUFFERED,{stats:D,frag:P,part:null,id:f.type}),T.tick()}).catch(function(L){T.warn(L),T.resetFragmentLoading(f)})},c.fragContextChanged=function(f){var T=this.fragCurrent;return!f||!T||f.level!==T.level||f.sn!==T.sn||f.urlId!==T.urlId},c.fragBufferedComplete=function(f,T){var L=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+f.type+" sn: "+f.sn+(T?" part: "+T.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+f.level+" "+i.default.toString(W.BufferHelper.getBuffered(L))),this.state=_.IDLE,this.tick()},c._handleFragmentLoadComplete=function(f){var T=this.transmuxer;if(!T)return;var L=f.frag,P=f.part,S=f.partsLoaded,A=!S||S.length===0||S.some(function(D){return!D}),H=new g.ChunkMetadata(L.level,L.sn,L.stats.chunkCount+1,0,P?P.index:-1,!A);T.flush(H)},c._handleFragmentLoadProgress=function(f){},c._doFragLoad=function(f,T,L,P){var S=this;if(L===void 0&&(L=null),!this.levels)throw new Error("frag load aborted, missing levels");if(L=Math.max(f.start,L||0),this.config.lowLatencyMode&&T){var A=T.partList;if(A&&P){L>f.end&&T.fragmentHint&&(f=T.fragmentHint);var H=this.getNextPart(A,f,L);if(H>-1){var D=A[H];return this.log("Loading part sn: "+f.sn+" p: "+D.index+" cc: "+f.cc+" of playlist ["+T.startSN+"-"+T.endSN+"] parts [0-"+H+"-"+(A.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+f.level+", target: "+parseFloat(L.toFixed(3))),this.nextLoadPosition=D.start+D.duration,this.state=_.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:f,part:A[H],targetBufferTime:L}),this.doFragPartsLoad(f,A,H,P).catch(function(K){return S.handleFragLoadError(K)})}else if(!f.url||this.loadedEndOfParts(A,L))return Promise.resolve(null)}}return this.log("Loading fragment "+f.sn+" cc: "+f.cc+" "+(T?"of ["+T.startSN+"-"+T.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+f.level+", target: "+parseFloat(L.toFixed(3))),Object(j.isFiniteNumber)(f.sn)&&!this.bitrateTest&&(this.nextLoadPosition=f.start+f.duration),this.state=_.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:f,targetBufferTime:L}),this.fragmentLoader.load(f,P).catch(function(K){return S.handleFragLoadError(K)})},c.doFragPartsLoad=function(f,T,L,P){var S=this;return new Promise(function(A,H){var D=[],K=function V(oe){var le=T[oe];S.fragmentLoader.loadPart(f,le,P).then(function(Ce){D[le.index]=Ce;var xe=Ce.part;S.hls.trigger(e.Events.FRAG_LOADED,Ce);var ie=T[oe+1];if(ie&&ie.fragment===f)V(oe+1);else return A({frag:f,part:xe,partsLoaded:D})}).catch(H)};K(L)})},c.handleFragLoadError=function(f){var T=f.data;return T&&T.details===O.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(T.frag,T.part):this.hls.trigger(e.Events.ERROR,T),null},c._handleTransmuxerFlush=function(f){var T=this.getCurrentContext(f);if(!T||this.state!==_.PARSING){this.fragCurrent||(this.state=_.IDLE);return}var L=T.frag,P=T.part,S=T.level,A=self.performance.now();L.stats.parsing.end=A,P&&(P.stats.parsing.end=A),this.updateLevelTiming(L,P,S,f.partial)},c.getCurrentContext=function(f){var T=this.levels,L=f.level,P=f.sn,S=f.part;if(!T||!T[L])return this.warn("Levels object was unset while buffering fragment "+P+" of level "+L+". The current chunk will not be buffered."),null;var A=T[L],H=S>-1?Object(r.getPartWith)(A,P,S):null,D=H?H.fragment:Object(r.getFragmentWithSN)(A,P,this.fragCurrent);return D?{frag:D,part:H,level:A}:null},c.bufferFragmentData=function(f,T,L,P){if(!f||this.state!==_.PARSING)return;var S=f.data1,A=f.data2,H=S;if(S&&A&&(H=Object(p.appendUint8Array)(S,A)),!H||!H.length)return;var D={type:f.type,frag:T,part:L,chunkMeta:P,parent:T.type,data:H};this.hls.trigger(e.Events.BUFFER_APPENDING,D),f.dropped&&f.independent&&!L&&this.flushBufferGap(T)},c.flushBufferGap=function(f){var T=this.media;if(!T)return;if(!W.BufferHelper.isBuffered(T,T.currentTime)){this.flushMainBuffer(0,f.start);return}var L=T.currentTime,P=W.BufferHelper.bufferInfo(T,L,0),S=f.duration,A=Math.min(this.config.maxFragLookUpTolerance*2,S*.25),H=Math.max(Math.min(f.start-A,P.end-A),L+A);f.start-H>A&&this.flushMainBuffer(H,f.start)},c.getFwdBufferInfo=function(f,T){var L=this.config,P=this.getLoadPosition();if(!Object(j.isFiniteNumber)(P))return null;var S=W.BufferHelper.bufferInfo(f,P,L.maxBufferHole);if(S.len===0&&S.nextStart!==void 0){var A=this.fragmentTracker.getBufferedFrag(P,T);if(A&&S.nextStart<A.end)return W.BufferHelper.bufferInfo(f,P,Math.max(S.nextStart,L.maxBufferHole))}return S},c.getMaxBufferLength=function(f){var T=this.config,L;return f?L=Math.max(8*T.maxBufferSize/f,T.maxBufferLength):L=T.maxBufferLength,Math.min(L,T.maxMaxBufferLength)},c.reduceMaxBufferLength=function(f){var T=this.config,L=f||T.maxBufferLength;return T.maxMaxBufferLength>=L?(T.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+T.maxMaxBufferLength+"s"),!0):!1},c.getNextFragment=function(f,T){var L,P,S=T.fragments,A=S.length;if(!A)return null;var H=this.config,D=S[0].start,K;if(T.live){var V=H.initialLiveManifestSize;if(A<V)return this.warn("Not enough fragments to start playback (have: "+A+", need: "+V+")"),null;!T.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(K=this.getInitialLiveFragment(T,S),this.startPosition=K?this.hls.liveSyncPosition||K.start:f)}else f<=D&&(K=S[0]);if(!K){var oe=H.lowLatencyMode?T.partEnd:T.fragmentEnd;K=this.getFragmentAtPosition(f,oe,T)}return(L=K)!==null&&L!==void 0&&L.initSegment&&!((P=K)!==null&&P!==void 0&&P.initSegment.data)&&!this.bitrateTest&&(K=K.initSegment),K},c.getNextPart=function(f,T,L){for(var P=-1,S=!1,A=!0,H=0,D=f.length;H<D;H++){var K=f[H];if(A=A&&!K.independent,P>-1&&L<K.start)break;var V=K.loaded;!V&&(S||K.independent||A)&&K.fragment===T&&(P=H),S=V}return P},c.loadedEndOfParts=function(f,T){var L=f[f.length-1];return L&&T>L.start&&L.loaded},c.getInitialLiveFragment=function(f,T){var L=this.fragPrevious,P=null;if(L){if(f.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+L.programDateTime),P=Object(a.findFragmentByPDT)(T,L.endProgramDateTime,this.config.maxFragLookUpTolerance)),!P){var S=L.sn+1;if(S>=f.startSN&&S<=f.endSN){var A=T[S-f.startSN];L.cc===A.cc&&(P=A,this.log("Live playlist, switching playlist, load frag with next SN: "+P.sn))}P||(P=Object(a.findFragWithCC)(T,L.cc),P&&this.log("Live playlist, switching playlist, load frag with same CC: "+P.sn))}}else{var H=this.hls.liveSyncPosition;H!==null&&(P=this.getFragmentAtPosition(H,this.bitrateTest?f.fragmentEnd:f.edge,f))}return P},c.getFragmentAtPosition=function(f,T,L){var P=this.config,S=this.fragPrevious,A=L.fragments,H=L.endSN,D=L.fragmentHint,K=P.maxFragLookUpTolerance,V=!!(P.lowLatencyMode&&L.partList&&D);V&&D&&!this.bitrateTest&&(A=A.concat(D),H=D.sn);var oe;if(f<T){var le=f>T-K?0:K;oe=Object(a.findFragmentByPTS)(S,A,f,le)}else oe=A[A.length-1];if(oe){var Ce=oe.sn-L.startSN,xe=S&&oe.level===S.level,ie=A[Ce+1],Se=this.fragmentTracker.getState(oe);if(Se===R.FragmentState.BACKTRACKED){oe=null;for(var Pe=Ce;A[Pe]&&this.fragmentTracker.getState(A[Pe])===R.FragmentState.BACKTRACKED;)S?oe=A[Pe--]:oe=A[--Pe];oe||(oe=ie)}else S&&oe.sn===S.sn&&!V&&(xe&&(oe.sn<H&&this.fragmentTracker.getState(ie)!==R.FragmentState.OK?(this.log("SN "+oe.sn+" just loaded, load next one: "+ie.sn),oe=ie):oe=null))}return oe},c.synchronizeToLiveEdge=function(f){var T=this.config,L=this.media;if(!L)return;var P=this.hls.liveSyncPosition,S=L.currentTime,A=f.fragments[0].start,H=f.edge,D=S>=A-T.maxFragLookUpTolerance&&S<=H;if(P!==null&&L.duration>P&&(S<P||!D)){var K=T.liveMaxLatencyDuration!==void 0?T.liveMaxLatencyDuration:T.liveMaxLatencyDurationCount*f.targetduration;(!D&&L.readyState<4||S<H-K)&&(this.loadedmetadata||(this.nextLoadPosition=P),L.readyState&&(this.warn("Playback: "+S.toFixed(3)+" is located too far from the end of live sliding playlist: "+H+", reset currentTime to : "+P.toFixed(3)),L.currentTime=P))}},c.alignPlaylists=function(f,T){var L=this.levels,P=this.levelLastLoaded,S=this.fragPrevious,A=P!==null?L[P]:null,H=f.fragments.length;if(!H)return this.warn("No fragments in live playlist"),0;var D=f.fragments[0].start,K=!T,V=f.alignedSliding&&Object(j.isFiniteNumber)(D);if(K||!V&&!D){Object(u.alignStream)(S,A,f);var oe=f.fragments[0].start;return this.log("Live playlist sliding: "+oe.toFixed(2)+" start-sn: "+(T?T.startSN:"na")+"->"+f.startSN+" prev-sn: "+(S?S.sn:"na")+" fragments: "+H),oe}return D},c.waitForCdnTuneIn=function(f){var T=3;return f.live&&f.canBlockReload&&f.tuneInGoal>Math.max(f.partHoldBack,f.partTarget*T)},c.setStartPosition=function(f,T){var L=this.startPosition;if(L<T&&(L=-1),L===-1||this.lastCurrentTime===-1){var P=f.startTimeOffset;Object(j.isFiniteNumber)(P)?(L=T+P,P<0&&(L+=f.totalduration),L=Math.min(Math.max(T,L),T+f.totalduration),this.log("Start time offset "+P+" found in playlist, adjust startPosition to "+L),this.startPosition=L):f.live?L=this.hls.liveSyncPosition||T:this.startPosition=L=0,this.lastCurrentTime=L}this.nextLoadPosition=L},c.getLoadPosition=function(){var f=this.media,T=0;return this.loadedmetadata&&f?T=f.currentTime:this.nextLoadPosition&&(T=this.nextLoadPosition),T},c.handleFragLoadAborted=function(f,T){this.transmuxer&&f.sn!=="initSegment"&&f.stats.aborted&&(this.warn("Fragment "+f.sn+(T?" part"+T.index:"")+" of level "+f.level+" was aborted"),this.resetFragmentLoading(f))},c.resetFragmentLoading=function(f){(!this.fragCurrent||!this.fragContextChanged(f))&&(this.state=_.IDLE)},c.onFragmentOrKeyLoadError=function(f,T){if(T.fatal)return;var L=T.frag;if(!L||L.type!==f)return;var P=this.fragCurrent;console.assert(P&&L.sn===P.sn&&L.level===P.level&&L.urlId===P.urlId,"Frag load error must match current frag to retry");var S=this.config;if(this.fragLoadError+1<=S.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(L.level))return;var A=Math.min(Math.pow(2,this.fragLoadError)*S.fragLoadingRetryDelay,S.fragLoadingMaxRetryTimeout);this.warn("Fragment "+L.sn+" of "+f+" "+L.level+" failed to load, retrying in "+A+"ms"),this.retryDate=self.performance.now()+A,this.fragLoadError++,this.state=_.FRAG_LOADING_WAITING_RETRY}else T.levelRetry?(f===n.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=_.IDLE):(k.logger.error(T.details+" reaches max retry, redispatch as fatal ..."),T.fatal=!0,this.hls.stopLoad(),this.state=_.ERROR)},c.afterBufferFlushed=function(f,T,L){if(!f)return;var P=W.BufferHelper.getBuffered(f);this.fragmentTracker.detectEvictedFragments(T,P,L),this.state===_.ENDED&&this.resetLoadingState()},c.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=_.IDLE},c.resetLiveStartWhenNotLoaded=function(f){if(!this.loadedmetadata){this.startFragRequested=!1;var T=this.levels?this.levels[f].details:null;if(T!=null&&T.live)return this.startPosition=-1,this.setStartPosition(T,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},c.updateLevelTiming=function(f,T,L,P){var S=this,A=L.details;console.assert(!!A,"level.details must be defined");var H=Object.keys(f.elementaryStreams).reduce(function(D,K){var V=f.elementaryStreams[K];if(V){var oe=V.endPTS-V.startPTS;if(oe<=0)return S.warn("Could not parse fragment "+f.sn+" "+K+" duration reliably ("+oe+") resetting transmuxer to fallback to playlist timing"),S.resetTransmuxer(),D||!1;var le=P?0:Object(r.updateFragPTSDTS)(A,f,V.startPTS,V.endPTS,V.startDTS,V.endDTS);return S.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:A,level:L,drift:le,type:K,frag:f,start:V.startPTS,end:V.endPTS}),!0}return D},!1);H?(this.state=_.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:f,part:T})):this.resetLoadingState()},c.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},b(l,[{key:"state",get:function(){return this._state},set:function(f){var T=this._state;T!==f&&(this._state=f,this.log(T+"->"+f))}}]),l}(C.default)},"./src/controller/buffer-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a});var j=I("./src/polyfills/number.ts"),C=I("./src/events.ts"),R=I("./src/utils/logger.ts"),W=I("./src/errors.ts"),k=I("./src/utils/buffer-helper.ts"),e=I("./src/utils/mediasource-helper.ts"),O=I("./src/loader/fragment.ts"),g=I("./src/controller/buffer-operation-queue.ts"),p=Object(e.getMediaSource)(),u=/([ha]vc.)(?:\.[^.,]+)+/,a=function(){function r(s){var i=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 n=i.hls,t=i.media,b=i.mediaSource;R.logger.log("[buffer-controller]: Media source opened"),t&&(i.updateMediaElementDuration(),n.trigger(C.Events.MEDIA_ATTACHED,{media:t})),b&&b.removeEventListener("sourceopen",i._onMediaSourceOpen),i.checkPendingTracks()},this._onMediaSourceClose=function(){R.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){R.logger.log("[buffer-controller]: Media source ended")},this.hls=s,this._initSourceBuffer(),this.registerListeners()}var o=r.prototype;return o.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},o.destroy=function(){this.unregisterListeners(),this.details=null},o.registerListeners=function(){var i=this.hls;i.on(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),i.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(C.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.on(C.Events.BUFFER_RESET,this.onBufferReset,this),i.on(C.Events.BUFFER_APPENDING,this.onBufferAppending,this),i.on(C.Events.BUFFER_CODECS,this.onBufferCodecs,this),i.on(C.Events.BUFFER_EOS,this.onBufferEos,this),i.on(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),i.on(C.Events.LEVEL_UPDATED,this.onLevelUpdated,this),i.on(C.Events.FRAG_PARSED,this.onFragParsed,this),i.on(C.Events.FRAG_CHANGED,this.onFragChanged,this)},o.unregisterListeners=function(){var i=this.hls;i.off(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),i.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(C.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.off(C.Events.BUFFER_RESET,this.onBufferReset,this),i.off(C.Events.BUFFER_APPENDING,this.onBufferAppending,this),i.off(C.Events.BUFFER_CODECS,this.onBufferCodecs,this),i.off(C.Events.BUFFER_EOS,this.onBufferEos,this),i.off(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),i.off(C.Events.LEVEL_UPDATED,this.onLevelUpdated,this),i.off(C.Events.FRAG_PARSED,this.onFragParsed,this),i.off(C.Events.FRAG_CHANGED,this.onFragChanged,this)},o._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new g.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},o.onManifestParsed=function(i,n){var t=2;(n.audio&&!n.video||!n.altAudio)&&(t=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t,this.details=null,R.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},o.onMediaAttaching=function(i,n){var t=this.media=n.media;if(t&&p){var b=this.mediaSource=new p;b.addEventListener("sourceopen",this._onMediaSourceOpen),b.addEventListener("sourceended",this._onMediaSourceEnded),b.addEventListener("sourceclose",this._onMediaSourceClose),t.src=self.URL.createObjectURL(b),this._objectUrl=t.src}},o.onMediaDetaching=function(){var i=this.media,n=this.mediaSource,t=this._objectUrl;if(n){if(R.logger.log("[buffer-controller]: media source detaching"),n.readyState==="open")try{n.endOfStream()}catch(b){R.logger.warn("[buffer-controller]: onMediaDetaching: "+b.message+" while calling endOfStream")}this.onBufferReset(),n.removeEventListener("sourceopen",this._onMediaSourceOpen),n.removeEventListener("sourceended",this._onMediaSourceEnded),n.removeEventListener("sourceclose",this._onMediaSourceClose),i&&(t&&self.URL.revokeObjectURL(t),i.src===t?(i.removeAttribute("src"),i.load()):R.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(C.Events.MEDIA_DETACHED,void 0)},o.onBufferReset=function(){var i=this;this.getSourceBufferTypes().forEach(function(n){var t=i.sourceBuffer[n];try{t&&(i.removeBufferListeners(n),i.mediaSource&&i.mediaSource.removeSourceBuffer(t),i.sourceBuffer[n]=void 0)}catch(b){R.logger.warn("[buffer-controller]: Failed to reset the "+n+" buffer",b)}}),this._initSourceBuffer()},o.onBufferCodecs=function(i,n){var t=this,b=this.getSourceBufferTypes().length;if(Object.keys(n).forEach(function(y){if(b){var m=t.tracks[y];if(m&&typeof m.buffer.changeType=="function"){var x=n[y],_=x.codec,h=x.levelCodec,d=x.container,l=(m.levelCodec||m.codec).replace(u,"$1"),c=(h||_).replace(u,"$1");if(l!==c){var v=d+";codecs="+(h||_);t.appendChangeType(y,v)}}}else t.pendingTracks[y]=n[y]}),b)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},o.appendChangeType=function(i,n){var t=this,b=this.operationQueue,y={execute:function(){var x=t.sourceBuffer[i];x&&(R.logger.log("[buffer-controller]: changing "+i+" sourceBuffer type to "+n),x.changeType(n)),b.shiftAndExecuteNext(i)},onStart:function(){},onComplete:function(){},onError:function(x){R.logger.warn("[buffer-controller]: Failed to change "+i+" SourceBuffer type",x)}};b.append(y,i)},o.onBufferAppending=function(i,n){var t=this,b=this.hls,y=this.operationQueue,m=this.tracks,x=n.data,_=n.type,h=n.frag,d=n.part,l=n.chunkMeta,c=l.buffering[_],v=self.performance.now();c.start=v;var f=h.stats.buffering,T=d?d.stats.buffering:null;f.start===0&&(f.start=v),T&&T.start===0&&(T.start=v);var L=m.audio,P=_==="audio"&&l.id===1&&(L==null?void 0:L.container)==="audio/mpeg",S={execute:function(){if(c.executeStart=self.performance.now(),P){var H=t.sourceBuffer[_];if(H){var D=h.start-H.timestampOffset;Math.abs(D)>=.1&&(R.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+h.start+" (delta: "+D+") sn: "+h.sn+")"),H.timestampOffset=h.start)}}t.appendExecutor(x,_)},onStart:function(){},onComplete:function(){var H=self.performance.now();c.executeEnd=c.end=H,f.first===0&&(f.first=H),T&&T.first===0&&(T.first=H);var D=t.sourceBuffer,K={};for(var V in D)K[V]=k.BufferHelper.getBuffered(D[V]);t.appendError=0,t.hls.trigger(C.Events.BUFFER_APPENDED,{type:_,frag:h,part:d,chunkMeta:l,parent:h.type,timeRanges:K})},onError:function(H){R.logger.error("[buffer-controller]: Error encountered while trying to append to the "+_+" SourceBuffer",H);var D={type:W.ErrorTypes.MEDIA_ERROR,parent:h.type,details:W.ErrorDetails.BUFFER_APPEND_ERROR,err:H,fatal:!1};H.code===DOMException.QUOTA_EXCEEDED_ERR?D.details=W.ErrorDetails.BUFFER_FULL_ERROR:(t.appendError++,D.details=W.ErrorDetails.BUFFER_APPEND_ERROR,t.appendError>b.config.appendErrorMaxRetry&&(R.logger.error("[buffer-controller]: Failed "+b.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),D.fatal=!0)),b.trigger(C.Events.ERROR,D)}};y.append(S,_)},o.onBufferFlushing=function(i,n){var t=this,b=this.operationQueue,y=function(x){return{execute:t.removeExecutor.bind(t,x,n.startOffset,n.endOffset),onStart:function(){},onComplete:function(){t.hls.trigger(C.Events.BUFFER_FLUSHED,{type:x})},onError:function(h){R.logger.warn("[buffer-controller]: Failed to remove from "+x+" SourceBuffer",h)}}};n.type?b.append(y(n.type),n.type):this.getSourceBufferTypes().forEach(function(m){b.append(y(m),m)})},o.onFragParsed=function(i,n){var t=this,b=n.frag,y=n.part,m=[],x=y?y.elementaryStreams:b.elementaryStreams;x[O.ElementaryStreamTypes.AUDIOVIDEO]?m.push("audiovideo"):(x[O.ElementaryStreamTypes.AUDIO]&&m.push("audio"),x[O.ElementaryStreamTypes.VIDEO]&&m.push("video"));var _=function(){var d=self.performance.now();b.stats.buffering.end=d,y&&(y.stats.buffering.end=d);var l=y?y.stats:b.stats;t.hls.trigger(C.Events.FRAG_BUFFERED,{frag:b,part:y,stats:l,id:b.type})};m.length===0&&R.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+b.type+" level: "+b.level+" sn: "+b.sn),this.blockBuffers(_,m)},o.onFragChanged=function(i,n){this.flushBackBuffer()},o.onBufferEos=function(i,n){var t=this,b=this.getSourceBufferTypes().reduce(function(y,m){var x=t.sourceBuffer[m];return(!n.type||n.type===m)&&(x&&!x.ended&&(x.ended=!0,R.logger.log("[buffer-controller]: "+m+" sourceBuffer now EOS"))),y&&!!(!x||x.ended)},!0);b&&this.blockBuffers(function(){var y=t.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},o.onLevelUpdated=function(i,n){var t=n.details;if(!t.fragments.length)return;this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},o.flushBackBuffer=function(){var i=this.hls,n=this.details,t=this.media,b=this.sourceBuffer;if(!t||n===null)return;var y=this.getSourceBufferTypes();if(!y.length)return;var m=n.live&&i.config.liveBackBufferLength!==null?i.config.liveBackBufferLength:i.config.backBufferLength;if(!Object(j.isFiniteNumber)(m)||m<0)return;var x=t.currentTime,_=n.levelTargetDuration,h=Math.max(m,_),d=Math.floor(x/_)*_-h;y.forEach(function(l){var c=b[l];if(c){var v=k.BufferHelper.getBuffered(c);v.length>0&&d>v.start(0)&&(i.trigger(C.Events.BACK_BUFFER_REACHED,{bufferEnd:d}),n.live&&i.trigger(C.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:d}),i.trigger(C.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:d,type:l}))}})},o.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var i=this.details,n=this.hls,t=this.media,b=this.mediaSource,y=i.fragments[0].start+i.totalduration,m=t.duration,x=Object(j.isFiniteNumber)(b.duration)?b.duration:0;i.live&&n.config.liveDurationInfinity?(R.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),b.duration=Infinity,this.updateSeekableRange(i)):(y>x&&y>m||!Object(j.isFiniteNumber)(m))&&(R.logger.log("[buffer-controller]: Updating Media Source duration to "+y.toFixed(3)),b.duration=y)},o.updateSeekableRange=function(i){var n=this.mediaSource,t=i.fragments,b=t.length;if(b&&i.live&&n!==null&&n!==void 0&&n.setLiveSeekableRange){var y=Math.max(0,t[0].start),m=Math.max(y,y+i.totalduration);n.setLiveSeekableRange(y,m)}},o.checkPendingTracks=function(){var i=this.bufferCodecEventsExpected,n=this.operationQueue,t=this.pendingTracks,b=Object.keys(t).length;if(b&&!i||b===2){this.createSourceBuffers(t),this.pendingTracks={};var y=this.getSourceBufferTypes();if(y.length===0){this.hls.trigger(C.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}y.forEach(function(m){n.executeNext(m)})}},o.createSourceBuffers=function(i){var n=this.sourceBuffer,t=this.mediaSource;if(!t)throw Error("createSourceBuffers called when mediaSource was null");var b=0;for(var y in i)if(!n[y]){var m=i[y];if(!m)throw Error("source buffer exists for track "+y+", however track does not");var x=m.levelCodec||m.codec,_=m.container+";codecs="+x;R.logger.log("[buffer-controller]: creating sourceBuffer("+_+")");try{var h=n[y]=t.addSourceBuffer(_),d=y;this.addBufferListener(d,"updatestart",this._onSBUpdateStart),this.addBufferListener(d,"updateend",this._onSBUpdateEnd),this.addBufferListener(d,"error",this._onSBUpdateError),this.tracks[y]={buffer:h,codec:x,container:m.container,levelCodec:m.levelCodec,id:m.id},b++}catch(l){R.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+l.message),this.hls.trigger(C.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:l,mimeType:_})}}b&&this.hls.trigger(C.Events.BUFFER_CREATED,{tracks:this.tracks})},o._onSBUpdateStart=function(i){var n=this.operationQueue,t=n.current(i);t.onStart()},o._onSBUpdateEnd=function(i){var n=this.operationQueue,t=n.current(i);t.onComplete(),n.shiftAndExecuteNext(i)},o._onSBUpdateError=function(i,n){R.logger.error("[buffer-controller]: "+i+" SourceBuffer error",n),this.hls.trigger(C.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var t=this.operationQueue.current(i);t&&t.onError(n)},o.removeExecutor=function(i,n,t){var b=this.media,y=this.mediaSource,m=this.operationQueue,x=this.sourceBuffer,_=x[i];if(!b||!y||!_){R.logger.warn("[buffer-controller]: Attempting to remove from the "+i+" SourceBuffer, but it does not exist"),m.shiftAndExecuteNext(i);return}var h=Object(j.isFiniteNumber)(b.duration)?b.duration:Infinity,d=Object(j.isFiniteNumber)(y.duration)?y.duration:Infinity,l=Math.max(0,n),c=Math.min(t,h,d);c>l?(R.logger.log("[buffer-controller]: Removing ["+l+","+c+"] from the "+i+" SourceBuffer"),console.assert(!_.updating,i+" sourceBuffer must not be updating"),_.remove(l,c)):m.shiftAndExecuteNext(i)},o.appendExecutor=function(i,n){var t=this.operationQueue,b=this.sourceBuffer,y=b[n];if(!y){R.logger.warn("[buffer-controller]: Attempting to append to the "+n+" SourceBuffer, but it does not exist"),t.shiftAndExecuteNext(n);return}y.ended=!1,console.assert(!y.updating,n+" sourceBuffer must not be updating"),y.appendBuffer(i)},o.blockBuffers=function(i,n){var t=this;if(n===void 0&&(n=this.getSourceBufferTypes()),!n.length){R.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(i);return}var b=this.operationQueue,y=n.map(function(m){return b.appendBlocker(m)});Promise.all(y).then(function(){i(),n.forEach(function(m){var x=t.sourceBuffer[m];(!x||!x.updating)&&b.shiftAndExecuteNext(m)})})},o.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},o.addBufferListener=function(i,n,t){var b=this.sourceBuffer[i];if(!b)return;var y=t.bind(this,i);this.listeners[i].push({event:n,listener:y}),b.addEventListener(n,y)},o.removeBufferListeners=function(i){var n=this.sourceBuffer[i];if(!n)return;this.listeners[i].forEach(function(t){n.removeEventListener(t.event,t.listener)})},r}()},"./src/controller/buffer-operation-queue.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return C});var j=I("./src/utils/logger.ts"),C=function(){function R(k){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=k}var W=R.prototype;return W.append=function(e,O){var g=this.queues[O];g.push(e),g.length===1&&this.buffers[O]&&this.executeNext(O)},W.insertAbort=function(e,O){var g=this.queues[O];g.unshift(e),this.executeNext(O)},W.appendBlocker=function(e){var O,g=new Promise(function(u){O=u}),p={execute:O,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(p,e),g},W.executeNext=function(e){var O=this.buffers,g=this.queues,p=O[e],u=g[e];if(u.length){var a=u[0];try{a.execute()}catch(r){j.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(r),(!p||!p.updating)&&(u.shift(),this.executeNext(e))}}},W.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},W.current=function(e){return this.queues[e][0]},R}()},"./src/controller/cap-level-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts");function C(k,e){for(var O=0;O<e.length;O++){var g=e[O];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(k,g.key,g)}}function R(k,e,O){return e&&C(k.prototype,e),O&&C(k,O),k}var W=function(){function k(O){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=O,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=k.prototype;return e.setStreamController=function(g){this.streamController=g},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var g=this.hls;g.on(j.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),g.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),g.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),g.on(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),g.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var g=this.hls;g.off(j.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),g.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),g.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),g.off(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),g.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(g,p){k.isLevelAllowed(p.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(p.droppedLevel)},e.onMediaAttaching=function(g,p){this.media=p.media instanceof HTMLVideoElement?p.media:null},e.onManifestParsed=function(g,p){var u=this.hls;this.restrictedLevels=[],this.firstLevel=p.firstLevel,u.config.capLevelToPlayerSize&&p.video&&this.startCapping()},e.onBufferCodecs=function(g,p){var u=this.hls;u.config.capLevelToPlayerSize&&p.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var g=this.hls.levels;if(g.length){var p=this.hls;p.autoLevelCapping=this.getMaxLevel(g.length-1),p.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=p.autoLevelCapping}}},e.getMaxLevel=function(g){var p=this,u=this.hls.levels;if(!u.length)return-1;var a=u.filter(function(r,o){return k.isLevelAllowed(o,p.restrictedLevels)&&o<=g});return this.clientRect=null,k.getMaxLevelByMediaSize(a,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var g=this.media,p={width:0,height:0};if(g){var u=g.getBoundingClientRect();p.width=u.width,p.height=u.height,!p.width&&!p.height&&(p.width=u.right-u.left||g.width||0,p.height=u.bottom-u.top||g.height||0)}return this.clientRect=p,p},k.isLevelAllowed=function(g,p){return p===void 0&&(p=[]),p.indexOf(g)===-1},k.getMaxLevelByMediaSize=function(g,p,u){if(!g||!g.length)return-1;for(var a=function(n,t){return t?n.width!==t.width||n.height!==t.height:!0},r=g.length-1,o=0;o<g.length;o+=1){var s=g[o];if((s.width>=p||s.height>=u)&&a(s,g[o+1])){r=o;break}}return r},R(k,[{key:"mediaWidth",get:function(){return this.getDimensions().width*k.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*k.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var g=1;try{g=self.devicePixelRatio}catch(p){}return g}}]),k}();M.default=W},"./src/controller/cmcd-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a});var j=I("./src/events.ts"),C=I("./src/types/cmcd.ts"),R=I("./src/utils/buffer-helper.ts"),W=I("./src/utils/logger.ts");function k(r,o){for(var s=0;s<o.length;s++){var i=o[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}function e(r,o,s){return o&&k(r.prototype,o),s&&k(r,s),r}function O(r,o){var s=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s)return(s=s.call(r)).next.bind(s);if(Array.isArray(r)||(s=g(r))||o&&r&&typeof r.length=="number"){s&&(r=s);var i=0;return function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}}}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 g(r,o){if(!r)return;if(typeof r=="string")return p(r,o);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return p(r,o)}function p(r,o){(o==null||o>r.length)&&(o=r.length);for(var s=0,i=new Array(o);s<o;s++)i[s]=r[s];return i}function u(){return u=Object.assign||function(r){for(var o=1;o<arguments.length;o++){var s=arguments[o];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])}return r},u.apply(this,arguments)}var a=function(){function r(s){var i=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){i.initialized&&(i.starved=!0),i.buffering=!0},this.onPlaying=function(){i.initialized||(i.initialized=!0),i.buffering=!1},this.applyPlaylistData=function(b){try{i.apply(b,{ot:C.CMCDObjectType.MANIFEST,su:!i.initialized})}catch(y){W.logger.warn("Could not generate manifest CMCD data.",y)}},this.applyFragmentData=function(b){try{var y=b.frag,m=i.hls.levels[y.level],x=i.getObjectType(y),_={d:y.duration*1e3,ot:x};(x===C.CMCDObjectType.VIDEO||x===C.CMCDObjectType.AUDIO||x==C.CMCDObjectType.MUXED)&&(_.br=m.bitrate/1e3,_.tb=i.getTopBandwidth(x),_.bl=i.getBufferLength(x)),i.apply(b,_)}catch(h){W.logger.warn("Could not generate segment CMCD data.",h)}},this.hls=s;var n=this.config=s.config,t=n.cmcd;t!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=t.sessionId||r.uuid(),this.cid=t.contentId,this.useHeaders=t.useHeaders===!0,this.registerListeners())}var o=r.prototype;return o.registerListeners=function(){var i=this.hls;i.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),i.on(j.Events.BUFFER_CREATED,this.onBufferCreated,this)},o.unregisterListeners=function(){var i=this.hls;i.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),i.off(j.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},o.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},o.onMediaAttached=function(i,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},o.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},o.onBufferCreated=function(i,n){var t,b;this.audioBuffer=(t=n.tracks.audio)===null||t===void 0?void 0:t.buffer,this.videoBuffer=(b=n.tracks.video)===null||b===void 0?void 0:b.buffer},o.createData=function(){var i;return{v:C.CMCDVersion,sf:C.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(i=this.media)===null||i===void 0?void 0:i.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},o.apply=function(i,n){n===void 0&&(n={}),u(n,this.createData());var t=n.ot===C.CMCDObjectType.INIT||n.ot===C.CMCDObjectType.VIDEO||n.ot===C.CMCDObjectType.MUXED;if(this.starved&&t&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering),this.useHeaders){var b=r.toHeaders(n);if(!Object.keys(b).length)return;i.headers||(i.headers={}),u(i.headers,b)}else{var y=r.toQuery(n);if(!y)return;i.url=r.appendQueryToUri(i.url,y)}},o.getObjectType=function(i){var n=i.type;return n==="subtitle"?C.CMCDObjectType.TIMED_TEXT:i.sn==="initSegment"?C.CMCDObjectType.INIT:n==="audio"?C.CMCDObjectType.AUDIO:n==="main"?this.hls.audioTracks.length?C.CMCDObjectType.VIDEO:C.CMCDObjectType.MUXED:void 0},o.getTopBandwidth=function(i){for(var n=0,t=i===C.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,b=O(t),y;!(y=b()).done;){var m=y.value;m.bitrate>n&&(n=m.bitrate)}return n>0?n:NaN},o.getBufferLength=function(i){var n=this.hls.media,t=i===C.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!t||!n)return NaN;var b=R.BufferHelper.bufferInfo(t,n.currentTime,this.config.maxBufferHole);return b.len*1e3},o.createPlaylistLoader=function(){var i=this.config.pLoader,n=this.applyPlaylistData,t=i||this.config.loader;return function(){function b(m){this.loader=void 0,this.loader=new t(m)}var y=b.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(x,_,h){n(x),this.loader.load(x,_,h)},e(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},o.createFragmentLoader=function(){var i=this.config.fLoader,n=this.applyFragmentData,t=i||this.config.loader;return function(){function b(m){this.loader=void 0,this.loader=new t(m)}var y=b.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(x,_,h){n(x),this.loader.load(x,_,h)},e(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},r.uuid=function(){var i=URL.createObjectURL(new Blob),n=i.toString();return URL.revokeObjectURL(i),n.substr(n.lastIndexOf("/")+1)},r.serialize=function(i){for(var n=[],t=function(P){return!Number.isNaN(P)&&P!=null&&P!==""&&P!==!1},b=function(P){return Math.round(P)},y=function(P){return b(P/100)*100},m=function(P){return encodeURIComponent(P)},x={br:b,d:b,bl:y,dl:y,mtp:y,nor:m,rtp:y,tb:b},_=Object.keys(i||{}).sort(),h=O(_),d;!(d=h()).done;){var l=d.value,c=i[l];if(!t(c))continue;if(l==="v"&&c===1)continue;if(l=="pr"&&c===1)continue;var v=x[l];v&&(c=v(c));var f=typeof c,T=void 0;l==="ot"||l==="sf"||l==="st"?T=l+"="+c:f==="boolean"?T=l:f==="number"?T=l+"="+c:T=l+"="+JSON.stringify(c),n.push(T)}return n.join(",")},r.toHeaders=function(i){for(var n=Object.keys(i),t={},b=["Object","Request","Session","Status"],y=[{},{},{},{}],m={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},x=0,_=n;x<_.length;x++){var h=_[x],d=m[h]!=null?m[h]:1;y[d][h]=i[h]}for(var l=0;l<y.length;l++){var c=r.serialize(y[l]);c&&(t["CMCD-"+b[l]]=c)}return t},r.toQuery=function(i){return"CMCD="+encodeURIComponent(r.serialize(i))},r.appendQueryToUri=function(i,n){if(!n)return i;var t=i.includes("?")?"&":"?";return""+i+t+n},r}()},"./src/controller/eme-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/utils/logger.ts"),W=I("./src/utils/mediakeys-helper.ts");function k(a,r){for(var o=0;o<r.length;o++){var s=r[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function e(a,r,o){return r&&k(a.prototype,r),o&&k(a,o),a}var O=3,g=function(r,o,s){var i={audioCapabilities:[],videoCapabilities:[]};return r.forEach(function(n){i.audioCapabilities.push({contentType:'audio/mp4; codecs="'+n+'"',robustness:s.audioRobustness||""})}),o.forEach(function(n){i.videoCapabilities.push({contentType:'video/mp4; codecs="'+n+'"',robustness:s.videoRobustness||""})}),[i]},p=function(r,o,s,i){switch(r){case W.KeySystems.WIDEVINE:return g(o,s,i);default:throw new Error("Unknown key-system: "+r)}},u=function(){function a(o){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=o,this._config=o.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var r=a.prototype;return r.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},r._registerListeners=function(){this.hls.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this)},r._unregisterListeners=function(){this.hls.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this)},r.getLicenseServerUrl=function(s){switch(s){case W.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+s+'"')},r._attemptKeySystemAccess=function(s,i,n){var t=this,b=p(s,i,n,this._drmSystemOptions);R.logger.log("Requesting encrypted media key-system access");var y=this.requestMediaKeySystemAccess(s,b);this.mediaKeysPromise=y.then(function(m){return t._onMediaKeySystemAccessObtained(s,m)}),y.catch(function(m){R.logger.error('Failed to obtain key-system "'+s+'" access:',m)})},r._onMediaKeySystemAccessObtained=function(s,i){var n=this;R.logger.log('Access for key-system "'+s+'" obtained');var t={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:i,mediaKeySystemDomain:s};this._mediaKeysList.push(t);var b=Promise.resolve().then(function(){return i.createMediaKeys()}).then(function(y){return t.mediaKeys=y,R.logger.log('Media-keys created for key-system "'+s+'"'),n._onMediaKeysCreated(),y});return b.catch(function(y){R.logger.error("Failed to create media-keys:",y)}),b},r._onMediaKeysCreated=function(){var s=this;this._mediaKeysList.forEach(function(i){i.mediaKeysSession||(i.mediaKeysSession=i.mediaKeys.createSession(),s._onNewMediaKeySession(i.mediaKeysSession))})},r._onNewMediaKeySession=function(s){var i=this;R.logger.log("New key-system session "+s.sessionId),s.addEventListener("message",function(n){i._onKeySessionMessage(s,n.message)},!1)},r._onKeySessionMessage=function(s,i){R.logger.log("Got EME message event, creating license request"),this._requestLicense(i,function(n){R.logger.log("Received license data (length: "+(n&&n.byteLength)+"), updating key-session"),s.update(n)})},r.onMediaEncrypted=function(s){var i=this;if(R.logger.log('Media is encrypted using "'+s.initDataType+'" init data type'),!this.mediaKeysPromise){R.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var n=function(b){if(!i._media)return;i._attemptSetMediaKeys(b),i._generateRequestWithPreferredKeySession(s.initDataType,s.initData)};this.mediaKeysPromise.then(n).catch(n)},r._attemptSetMediaKeys=function(s){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var i=this._mediaKeysList[0];if(!i||!i.mediaKeys){R.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}R.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(i.mediaKeys),this._hasSetMediaKeys=!0}},r._generateRequestWithPreferredKeySession=function(s,i){var n=this,t=this._mediaKeysList[0];if(!t){R.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(t.mediaKeysSessionInitialized){R.logger.warn("Key-Session already initialized but requested again");return}var b=t.mediaKeysSession;if(!b){R.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!i){R.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}R.logger.log('Generating key-session request for "'+s+'" init data type'),t.mediaKeysSessionInitialized=!0,b.generateRequest(s,i).then(function(){R.logger.debug("Key-session generation succeeded")}).catch(function(y){R.logger.error("Error generating key-session request:",y),n.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},r._createLicenseXhr=function(s,i,n){var t=new XMLHttpRequest;t.responseType="arraybuffer",t.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,t,s,i,n);var b=this._licenseXhrSetup;if(b)try{b.call(this.hls,t,s),b=void 0}catch(y){R.logger.error(y)}try{t.readyState||t.open("POST",s,!0),b&&b.call(this.hls,t,s)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return t},r._onLicenseRequestReadyStageChange=function(s,i,n,t){switch(s.readyState){case 4:if(s.status===200){this._requestLicenseFailureCount=0,R.logger.log("License request succeeded");var b=s.response,y=this._licenseResponseCallback;if(y)try{b=y.call(this.hls,s,i)}catch(x){R.logger.error(x)}t(b)}else{if(R.logger.error("License Request XHR failed ("+i+"). Status: "+s.status+" ("+s.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>O){this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var m=O-this._requestLicenseFailureCount+1;R.logger.warn("Retrying license request, "+m+" attempts left"),this._requestLicense(n,t)}break}},r._generateLicenseRequestChallenge=function(s,i){switch(s.mediaKeySystemDomain){case W.KeySystems.WIDEVINE:return i}throw new Error("unsupported key-system: "+s.mediaKeySystemDomain)},r._requestLicense=function(s,i){R.logger.log("Requesting content license for key-system");var n=this._mediaKeysList[0];if(!n){R.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var t=this.getLicenseServerUrl(n.mediaKeySystemDomain),b=this._createLicenseXhr(t,s,i);R.logger.log("Sending license request to URL: "+t);var y=this._generateLicenseRequestChallenge(n,s);b.send(y)}catch(m){R.logger.error("Failure requesting DRM license: "+m),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},r.onMediaAttached=function(s,i){if(!this._emeEnabled)return;var n=i.media;this._media=n,n.addEventListener("encrypted",this._onMediaEncrypted)},r.onMediaDetached=function(){var s=this._media,i=this._mediaKeysList;if(!s)return;s.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(i.map(function(n){if(n.mediaKeysSession)return n.mediaKeysSession.close().catch(function(){})})).then(function(){return s.setMediaKeys(null)}).catch(function(){})},r.onManifestParsed=function(s,i){if(!this._emeEnabled)return;var n=i.levels.map(function(b){return b.audioCodec}).filter(function(b){return!!b}),t=i.levels.map(function(b){return b.videoCodec}).filter(function(b){return!!b});this._attemptKeySystemAccess(W.KeySystems.WIDEVINE,n,t)},e(a,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),a}();M.default=u},"./src/controller/fps-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/utils/logger.ts"),R=function(){function W(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var k=W.prototype;return k.setStreamController=function(O){this.streamController=O},k.registerListeners=function(){this.hls.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},k.unregisterListeners=function(){this.hls.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching)},k.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},k.onMediaAttaching=function(O,g){var p=this.hls.config;if(p.capLevelOnFPSDrop){var u=g.media instanceof self.HTMLVideoElement?g.media:null;this.media=u,u&&typeof u.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),p.fpsDroppedMonitoringPeriod)}},k.checkFPS=function(O,g,p){var u=performance.now();if(g){if(this.lastTime){var a=u-this.lastTime,r=p-this.lastDroppedFrames,o=g-this.lastDecodedFrames,s=1e3*r/a,i=this.hls;if(i.trigger(j.Events.FPS_DROP,{currentDropped:r,currentDecoded:o,totalDroppedFrames:p}),s>0&&r>i.config.fpsDroppedMonitoringThreshold*o){var n=i.currentLevel;C.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+n),n>0&&(i.autoLevelCapping===-1||i.autoLevelCapping>=n)&&(n=n-1,i.trigger(j.Events.FPS_DROP_LEVEL_CAPPING,{level:n,droppedLevel:i.currentLevel}),i.autoLevelCapping=n,this.streamController.nextLevelSwitch())}}this.lastTime=u,this.lastDroppedFrames=p,this.lastDecodedFrames=g}},k.checkFPSInterval=function(){var O=this.media;if(O)if(this.isVideoPlaybackQualityAvailable){var g=O.getVideoPlaybackQuality();this.checkFPS(O,g.totalVideoFrames,g.droppedVideoFrames)}else this.checkFPS(O,O.webkitDecodedFrameCount,O.webkitDroppedFrameCount)},W}();M.default=R},"./src/controller/fragment-finders.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"findFragmentByPDT",function(){return R}),I.d(M,"findFragmentByPTS",function(){return W}),I.d(M,"fragmentWithinToleranceTest",function(){return k}),I.d(M,"pdtWithinToleranceTest",function(){return e}),I.d(M,"findFragWithCC",function(){return O});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/binary-search.ts");function R(g,p,u){if(p===null||!Array.isArray(g)||!g.length||!Object(j.isFiniteNumber)(p))return null;var a=g[0].programDateTime;if(p<(a||0))return null;var r=g[g.length-1].endProgramDateTime;if(p>=(r||0))return null;u=u||0;for(var o=0;o<g.length;++o){var s=g[o];if(e(p,u,s))return s}return null}function W(g,p,u,a){u===void 0&&(u=0),a===void 0&&(a=0);var r=null;if(g?r=p[g.sn-p[0].sn+1]||null:u===0&&p[0].start===0&&(r=p[0]),r&&k(u,a,r)===0)return r;var o=C.default.search(p,k.bind(null,u,a));return o||r}function k(g,p,u){g===void 0&&(g=0),p===void 0&&(p=0);var a=Math.min(p,u.duration+(u.deltaPTS?u.deltaPTS:0));return u.start+u.duration-a<=g?1:u.start-a>g&&u.start?-1:0}function e(g,p,u){var a=Math.min(p,u.duration+(u.deltaPTS?u.deltaPTS:0))*1e3,r=u.endProgramDateTime||0;return r-a>g}function O(g,p){return C.default.search(g,function(u){return u.cc<p?1:u.cc>p?-1:0})}},"./src/controller/fragment-tracker.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"FragmentState",function(){return R}),I.d(M,"FragmentTracker",function(){return W});var j=I("./src/events.ts"),C=I("./src/types/loader.ts"),R;(function(O){O.NOT_LOADED="NOT_LOADED",O.BACKTRACKED="BACKTRACKED",O.APPENDING="APPENDING",O.PARTIAL="PARTIAL",O.OK="OK"})(R||(R={}));var W=function(){function O(p){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=p,this._registerListeners()}var g=O.prototype;return g._registerListeners=function(){var u=this.hls;u.on(j.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.on(j.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(j.Events.FRAG_LOADED,this.onFragLoaded,this)},g._unregisterListeners=function(){var u=this.hls;u.off(j.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.off(j.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(j.Events.FRAG_LOADED,this.onFragLoaded,this)},g.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},g.getAppendedFrag=function(u,a){if(a===C.PlaylistLevelType.MAIN){var r=this.activeFragment,o=this.activeParts;if(!r)return null;if(o)for(var s=o.length;s--;){var i=o[s],n=i?i.end:r.appendedPTS;if(i.start<=u&&n!==void 0&&u<=n)return s>9&&(this.activeParts=o.slice(s-9)),i}else if(r.start<=u&&r.appendedPTS!==void 0&&u<=r.appendedPTS)return r}return this.getBufferedFrag(u,a)},g.getBufferedFrag=function(u,a){for(var r=this.fragments,o=Object.keys(r),s=o.length;s--;){var i=r[o[s]];if((i==null?void 0:i.body.type)===a&&i.buffered){var n=i.body;if(n.start<=u&&u<=n.end)return n}}return null},g.detectEvictedFragments=function(u,a,r){var o=this;Object.keys(this.fragments).forEach(function(s){var i=o.fragments[s];if(!i)return;if(!i.buffered){i.body.type===r&&o.removeFragment(i.body);return}var n=i.range[u];if(!n)return;n.time.some(function(t){var b=!o.isTimeBuffered(t.startPTS,t.endPTS,a);return b&&o.removeFragment(i.body),b})})},g.detectPartialFragments=function(u){var a=this,r=this.timeRanges,o=u.frag,s=u.part;if(!r||o.sn==="initSegment")return;var i=e(o),n=this.fragments[i];if(!n)return;Object.keys(r).forEach(function(t){var b=o.elementaryStreams[t];if(!b)return;var y=r[t],m=s!==null||b.partial===!0;n.range[t]=a.getBufferedTimes(o,s,m,y)}),n.backtrack=n.loaded=null,Object.keys(n.range).length?n.buffered=!0:this.removeFragment(n.body)},g.fragBuffered=function(u){var a=e(u),r=this.fragments[a];r&&(r.backtrack=r.loaded=null,r.buffered=!0)},g.getBufferedTimes=function(u,a,r,o){for(var s={time:[],partial:r},i=a?a.start:u.start,n=a?a.end:u.end,t=u.minEndPTS||n,b=u.maxStartPTS||i,y=0;y<o.length;y++){var m=o.start(y)-this.bufferPadding,x=o.end(y)+this.bufferPadding;if(b>=m&&t<=x){s.time.push({startPTS:Math.max(i,o.start(y)),endPTS:Math.min(n,o.end(y))});break}else if(i<x&&n>m)s.partial=!0,s.time.push({startPTS:Math.max(i,o.start(y)),endPTS:Math.min(n,o.end(y))});else if(n<=m)break}return s},g.getPartialFragment=function(u){var a=null,r,o,s,i=0,n=this.bufferPadding,t=this.fragments;return Object.keys(t).forEach(function(b){var y=t[b];if(!y)return;k(y)&&(o=y.body.start-n,s=y.body.end+n,u>=o&&u<=s&&(r=Math.min(u-o,s-u),i<=r&&(a=y.body,i=r)))}),a},g.getState=function(u){var a=e(u),r=this.fragments[a];return r?r.buffered?k(r)?R.PARTIAL:R.OK:r.backtrack?R.BACKTRACKED:R.APPENDING:R.NOT_LOADED},g.backtrack=function(u,a){var r=e(u),o=this.fragments[r];if(!o||o.backtrack)return null;var s=o.backtrack=a||o.loaded;return o.loaded=null,s},g.getBacktrackData=function(u){var a=e(u),r=this.fragments[a];if(r){var o,s=r.backtrack;if(s!=null&&(o=s.payload)!==null&&o!==void 0&&o.byteLength)return s;this.removeFragment(u)}return null},g.isTimeBuffered=function(u,a,r){for(var o,s,i=0;i<r.length;i++){if(o=r.start(i)-this.bufferPadding,s=r.end(i)+this.bufferPadding,u>=o&&a<=s)return!0;if(a<=o)return!1}return!1},g.onFragLoaded=function(u,a){var r=a.frag,o=a.part;if(r.sn==="initSegment"||r.bitrateTest||o)return;var s=e(r);this.fragments[s]={body:r,loaded:a,backtrack:null,buffered:!1,range:Object.create(null)}},g.onBufferAppended=function(u,a){var r=this,o=a.frag,s=a.part,i=a.timeRanges;if(o.type===C.PlaylistLevelType.MAIN)if(this.activeFragment=o,s){var n=this.activeParts;n||(this.activeParts=n=[]),n.push(s)}else this.activeParts=null;this.timeRanges=i,Object.keys(i).forEach(function(t){var b=i[t];if(r.detectEvictedFragments(t,b),!s)for(var y=0;y<b.length;y++)o.appendedPTS=Math.max(b.end(y),o.appendedPTS||0)})},g.onFragBuffered=function(u,a){this.detectPartialFragments(a)},g.hasFragment=function(u){var a=e(u);return!!this.fragments[a]},g.removeFragmentsInRange=function(u,a,r){var o=this;Object.keys(this.fragments).forEach(function(s){var i=o.fragments[s];if(!i)return;if(i.buffered){var n=i.body;n.type===r&&n.start<a&&n.end>u&&o.removeFragment(n)}})},g.removeFragment=function(u){var a=e(u);u.stats.loaded=0,u.clearElementaryStreamInfo(),delete this.fragments[a]},g.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},O}();function k(O){var g,p;return O.buffered&&(((g=O.range.video)===null||g===void 0?void 0:g.partial)||((p=O.range.audio)===null||p===void 0?void 0:p.partial))}function e(O){return O.type+"_"+O.level+"_"+O.urlId+"_"+O.sn}},"./src/controller/gap-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"STALL_MINIMUM_DURATION_MS",function(){return k}),I.d(M,"MAX_START_GAP_JUMP",function(){return e}),I.d(M,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return O}),I.d(M,"SKIP_BUFFER_RANGE_START",function(){return g}),I.d(M,"default",function(){return p});var j=I("./src/utils/buffer-helper.ts"),C=I("./src/errors.ts"),R=I("./src/events.ts"),W=I("./src/utils/logger.ts"),k=250,e=2,O=.1,g=.05,p=function(){function u(r,o,s,i){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=r,this.media=o,this.fragmentTracker=s,this.hls=i}var a=u.prototype;return a.destroy=function(){this.hls=this.fragmentTracker=this.media=null},a.poll=function(o){var s=this.config,i=this.media,n=this.stalled,t=i.currentTime,b=i.seeking,y=this.seeking&&!b,m=!this.seeking&&b;if(this.seeking=b,t!==o){if(this.moved=!0,n!==null){if(this.stallReported){var x=self.performance.now()-n;W.logger.warn("playback not stuck anymore @"+t+", after "+Math.round(x)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((m||y)&&(this.stalled=null),i.paused||i.ended||i.playbackRate===0||!j.BufferHelper.getBuffered(i).length)return;var _=j.BufferHelper.bufferInfo(i,t,0),h=_.len>0,d=_.nextStart||0;if(!h&&!d)return;if(b){var l=_.len>e,c=!d||d-t>e&&!this.fragmentTracker.getPartialFragment(t);if(l||c)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var v,f=Math.max(d,_.start||0)-t,T=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,L=T==null||((v=T.details)===null||v===void 0)?void 0:v.live,P=L?T.details.targetduration*2:e;if(f>0&&f<=P){this._trySkipBufferHole(null);return}}var S=self.performance.now();if(n===null){this.stalled=S;return}var A=S-n;!b&&A>=k&&this._reportStall(_.len);var H=j.BufferHelper.bufferInfo(i,t,s.maxBufferHole);this._tryFixBufferStall(H,A)},a._tryFixBufferStall=function(o,s){var i=this.config,n=this.fragmentTracker,t=this.media,b=t.currentTime,y=n.getPartialFragment(b);if(y){var m=this._trySkipBufferHole(y);if(m)return}o.len>i.maxBufferHole&&s>i.highBufferWatchdogPeriod*1e3&&(W.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},a._reportStall=function(o){var s=this.hls,i=this.media,n=this.stallReported;n||(this.stallReported=!0,W.logger.warn("Playback stalling at @"+i.currentTime+" due to low buffer (buffer="+o+")"),s.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:o}))},a._trySkipBufferHole=function(o){for(var s=this.config,i=this.hls,n=this.media,t=n.currentTime,b=0,y=j.BufferHelper.getBuffered(n),m=0;m<y.length;m++){var x=y.start(m);if(t+s.maxBufferHole>=b&&t<x){var _=Math.max(x+g,n.currentTime+O);return W.logger.warn("skipping hole, adjusting currentTime from "+t+" to "+_),this.moved=!0,this.stalled=null,n.currentTime=_,o&&i.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+t+" to "+_,frag:o}),_}b=y.end(m)}return 0},a._tryNudgeBuffer=function(){var o=this.config,s=this.hls,i=this.media,n=i.currentTime,t=(this.nudgeRetry||0)+1;if(this.nudgeRetry=t,t<o.nudgeMaxRetry){var b=n+t*o.nudgeOffset;W.logger.warn("Nudging 'currentTime' from "+n+" to "+b),i.currentTime=b,s.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else W.logger.error("Playhead still not moving while enough data buffered @"+n+" after "+o.nudgeMaxRetry+" nudges"),s.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},u}()},"./src/controller/id3-track-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/utils/texttrack-utils.ts"),R=I("./src/demux/id3.ts"),W=.25,k=function(){function e(g){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=g,this._registerListeners()}var O=e.prototype;return O.destroy=function(){this._unregisterListeners()},O._registerListeners=function(){var p=this.hls;p.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(j.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),p.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},O._unregisterListeners=function(){var p=this.hls;p.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.off(j.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),p.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},O.onMediaAttached=function(p,u){this.media=u.media},O.onMediaDetaching=function(){if(!this.id3Track)return;Object(C.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},O.getID3Track=function(p){if(!this.media)return;for(var u=0;u<p.length;u++){var a=p[u];if(a.kind==="metadata"&&a.label==="id3")return Object(C.sendAddTrackEvent)(a,this.media),a}return this.media.addTextTrack("metadata","id3")},O.onFragParsingMetadata=function(p,u){if(!this.media)return;var a=u.frag,r=u.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var o=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,s=0;s<r.length;s++){var i=R.getID3Frames(r[s].data);if(i){var n=r[s].pts,t=s<r.length-1?r[s+1].pts:a.end,b=t-n;b<=0&&(t=n+W);for(var y=0;y<i.length;y++){var m=i[y];if(!R.isTimeStampFrame(m)){var x=new o(n,t,"");x.value=m,this.id3Track.addCue(x)}}}}},O.onBufferFlushing=function(p,u){var a=u.startOffset,r=u.endOffset,o=u.type;if(!o||o==="audio"){var s=this.id3Track;s&&Object(C.removeCuesInRange)(s,a,r)}},e}();M.default=k},"./src/controller/latency-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return e});var j=I("./src/errors.ts"),C=I("./src/events.ts"),R=I("./src/utils/logger.ts");function W(O,g){for(var p=0;p<g.length;p++){var u=g[p];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(O,u.key,u)}}function k(O,g,p){return g&&W(O.prototype,g),p&&W(O,p),O}var e=function(){function O(p){var u=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return u.timeupdate()},this.hls=p,this.config=p.config,this.registerListeners()}var g=O.prototype;return g.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},g.registerListeners=function(){this.hls.on(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(C.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(C.Events.ERROR,this.onError,this)},g.unregisterListeners=function(){this.hls.off(C.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(C.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(C.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(C.Events.ERROR,this.onError)},g.onMediaAttached=function(u,a){this.media=a.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},g.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},g.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},g.onLevelUpdated=function(u,a){var r=a.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},g.onError=function(u,a){if(a.details!==j.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,R.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},g.timeupdate=function(){var u=this.media,a=this.levelDetails;if(!u||!a)return;this.currentTime=u.currentTime;var r=this.computeLatency();if(r===null)return;this._latency=r;var o=this.config,s=o.lowLatencyMode,i=o.maxLiveSyncPlaybackRate;if(!s||i===1)return;var n=this.targetLatency;if(n===null)return;var t=r-n,b=Math.min(this.maxLatency,n+a.targetduration),y=t<b;if(a.live&&y&&t>.05&&this.forwardBufferLength>1){var m=Math.min(2,Math.max(1,i)),x=Math.round(2/(1+Math.exp(-.75*t-this.edgeStalled))*20)/20;u.playbackRate=Math.min(m,Math.max(1,x))}else u.playbackRate!==1&&u.playbackRate!==0&&(u.playbackRate=1)},g.estimateLiveEdge=function(){var u=this.levelDetails;return u===null?null:u.edge+u.age},g.computeLatency=function(){var u=this.estimateLiveEdge();return u===null?null:u-this.currentTime},k(O,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var u=this.config,a=this.levelDetails;return u.liveMaxLatencyDuration!==void 0?u.liveMaxLatencyDuration:a?u.liveMaxLatencyDurationCount*a.targetduration:0}},{key:"targetLatency",get:function(){var u=this.levelDetails;if(u===null)return null;var a=u.holdBack,r=u.partHoldBack,o=u.targetduration,s=this.config,i=s.liveSyncDuration,n=s.liveSyncDurationCount,t=s.lowLatencyMode,b=this.hls.userConfig,y=t&&r||a;(b.liveSyncDuration||b.liveSyncDurationCount||y===0)&&(y=i!==void 0?i:n*o);var m=o,x=1;return y+Math.min(this.stallCount*x,m)}},{key:"liveSyncPosition",get:function(){var u=this.estimateLiveEdge(),a=this.targetLatency,r=this.levelDetails;if(u===null||a===null||r===null)return null;var o=r.edge,s=u-a-this.edgeStalled,i=o-r.totalduration,n=o-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(i,s),n)}},{key:"drift",get:function(){var u=this.levelDetails;return u===null?1:u.drift}},{key:"edgeStalled",get:function(){var u=this.levelDetails;if(u===null)return 0;var a=(this.config.lowLatencyMode&&u.partTarget||u.targetduration)*3;return Math.max(u.age-a,0)}},{key:"forwardBufferLength",get:function(){var u=this.media,a=this.levelDetails;if(!u||!a)return 0;var r=u.buffered.length;return r?u.buffered.end(r-1):a.edge-this.currentTime}}]),O}()},"./src/controller/level-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return s});var j=I("./src/types/level.ts"),C=I("./src/events.ts"),R=I("./src/errors.ts"),W=I("./src/utils/codecs.ts"),k=I("./src/controller/level-helper.ts"),e=I("./src/controller/base-playlist-controller.ts"),O=I("./src/types/loader.ts");function g(){return g=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var b in t)Object.prototype.hasOwnProperty.call(t,b)&&(i[b]=t[b])}return i},g.apply(this,arguments)}function p(i,n){for(var t=0;t<n.length;t++){var b=n[t];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(i,b.key,b)}}function u(i,n,t){return n&&p(i.prototype,n),t&&p(i,t),i}function a(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,r(i,n)}function r(i,n){return r=Object.setPrototypeOf||function(b,y){return b.__proto__=y,b},r(i,n)}var o=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),s=function(i){a(n,i);function n(b){var y;return y=i.call(this,b,"[level-controller]")||this,y._levels=[],y._firstLevel=-1,y._startLevel=void 0,y.currentLevelIndex=-1,y.manualLevelIndex=-1,y.onParsedComplete=void 0,y._registerListeners(),y}var t=n.prototype;return t._registerListeners=function(){var y=this.hls;y.on(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.on(C.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),y.on(C.Events.ERROR,this.onError,this)},t._unregisterListeners=function(){var y=this.hls;y.off(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.off(C.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(C.Events.ERROR,this.onError,this)},t.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,i.prototype.destroy.call(this)},t.startLoad=function(){var y=this._levels;y.forEach(function(m){m.loadError=0}),i.prototype.startLoad.call(this)},t.onManifestLoaded=function(y,m){var x=[],_=[],h=[],d,l={},c,v=!1,f=!1,T=!1;if(m.levels.forEach(function(A){var H=A.attrs;v=v||!!(A.width&&A.height),f=f||!!A.videoCodec,T=T||!!A.audioCodec,o&&A.audioCodec&&A.audioCodec.indexOf("mp4a.40.34")!==-1&&(A.audioCodec=void 0);var D=A.bitrate+"-"+A.attrs.RESOLUTION+"-"+A.attrs.CODECS;c=l[D],c?c.url.push(A.url):(c=new j.Level(A),l[D]=c,x.push(c)),H&&(H.AUDIO&&Object(k.addGroupId)(c,"audio",H.AUDIO),H.SUBTITLES&&Object(k.addGroupId)(c,"text",H.SUBTITLES))}),(v||f)&&T&&(x=x.filter(function(A){var H=A.videoCodec,D=A.width,K=A.height;return!!H||!!(D&&K)})),x=x.filter(function(A){var H=A.audioCodec,D=A.videoCodec;return(!H||Object(W.isCodecSupportedInMp4)(H,"audio"))&&(!D||Object(W.isCodecSupportedInMp4)(D,"video"))}),m.audioTracks&&(_=m.audioTracks.filter(function(A){return!A.audioCodec||Object(W.isCodecSupportedInMp4)(A.audioCodec,"audio")}),Object(k.assignTrackIdsByGroup)(_)),m.subtitles&&(h=m.subtitles,Object(k.assignTrackIdsByGroup)(h)),x.length>0){d=x[0].bitrate,x.sort(function(A,H){return A.bitrate-H.bitrate}),this._levels=x;for(var L=0;L<x.length;L++)if(x[L].bitrate===d){this._firstLevel=L,this.log("manifest loaded, "+x.length+" level(s) found, first bitrate: "+d);break}var P=T&&!f,S={levels:x,audioTracks:_,subtitleTracks:h,firstLevel:this._firstLevel,stats:m.stats,audio:T,video:f,altAudio:!P&&_.some(function(A){return!!A.url})};this.hls.trigger(C.Events.MANIFEST_PARSED,S),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(C.Events.ERROR,{type:R.ErrorTypes.MEDIA_ERROR,details:R.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:m.url,reason:"no level with compatible codecs found in manifest"})},t.onError=function(y,m){if(i.prototype.onError.call(this,y,m),m.fatal)return;var x=m.context,_=this._levels[this.currentLevelIndex];if(x&&(x.type===O.PlaylistContextType.AUDIO_TRACK&&_.audioGroupIds&&x.groupId===_.audioGroupIds[_.urlId]||x.type===O.PlaylistContextType.SUBTITLE_TRACK&&_.textGroupIds&&x.groupId===_.textGroupIds[_.urlId])){this.redundantFailover(this.currentLevelIndex);return}var h=!1,d=!0,l;switch(m.details){case R.ErrorDetails.FRAG_LOAD_ERROR:case R.ErrorDetails.FRAG_LOAD_TIMEOUT:case R.ErrorDetails.KEY_LOAD_ERROR:case R.ErrorDetails.KEY_LOAD_TIMEOUT:if(m.frag){var c=this._levels[m.frag.level];c?(c.fragmentError++,c.fragmentError>this.hls.config.fragLoadingMaxRetry&&(l=m.frag.level)):l=m.frag.level}break;case R.ErrorDetails.LEVEL_LOAD_ERROR:case R.ErrorDetails.LEVEL_LOAD_TIMEOUT:x&&(x.deliveryDirectives&&(d=!1),l=x.level),h=!0;break;case R.ErrorDetails.REMUX_ALLOC_ERROR:l=m.level,h=!0;break}l!==void 0&&this.recoverLevel(m,l,h,d)},t.recoverLevel=function(y,m,x,_){var h=y.details,d=this._levels[m];if(d.loadError++,x){var l=this.retryLoadingOrFail(y);if(l)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(_){var c=d.url.length;if(c>1&&d.loadError<c)y.levelRetry=!0,this.redundantFailover(m);else if(this.manualLevelIndex===-1){var v=m===0?this._levels.length-1:m-1;this.currentLevelIndex!==v&&this._levels[v].loadError===0&&(this.warn(h+": switch to "+v),y.levelRetry=!0,this.hls.nextAutoLevel=v)}}},t.redundantFailover=function(y){var m=this._levels[y],x=m.url.length;if(x>1){var _=(m.urlId+1)%x;this.warn("Switching to redundant URL-id "+_),this._levels.forEach(function(h){h.urlId=_}),this.level=y}},t.onFragLoaded=function(y,m){var x=m.frag;if(x!==void 0&&x.type===O.PlaylistLevelType.MAIN){var _=this._levels[x.level];_!==void 0&&(_.fragmentError=0,_.loadError=0)}},t.onLevelLoaded=function(y,m){var x,_=m.level,h=m.details,d=this._levels[_];if(!d){var l;this.warn("Invalid level index "+_),(l=m.deliveryDirectives)!==null&&l!==void 0&&l.skip&&(h.deltaUpdateFailed=!0);return}_===this.currentLevelIndex?(d.fragmentError===0&&(d.loadError=0,this.retryCount=0),this.playlistLoaded(_,m,d.details)):(x=m.deliveryDirectives)!==null&&x!==void 0&&x.skip&&(h.deltaUpdateFailed=!0)},t.onAudioTrackSwitched=function(y,m){var x=this.hls.levels[this.currentLevelIndex];if(!x)return;if(x.audioGroupIds){for(var _=-1,h=this.hls.audioTracks[m.id].groupId,d=0;d<x.audioGroupIds.length;d++)if(x.audioGroupIds[d]===h){_=d;break}_!==x.urlId&&(x.urlId=_,this.startLoad())}},t.loadPlaylist=function(y){var m=this.currentLevelIndex,x=this._levels[m];if(this.canLoad&&x&&x.url.length>0){var _=x.urlId,h=x.url[_];if(y)try{h=y.addDirectives(h)}catch(d){this.warn("Could not construct new URL with HLS Delivery Directives: "+d)}this.log("Attempt loading level index "+m+(y?" at sn "+y.msn+" part "+y.part:"")+" with URL-id "+_+" "+h),this.clearTimer(),this.hls.trigger(C.Events.LEVEL_LOADING,{url:h,level:m,id:_,deliveryDirectives:y||null})}},t.removeLevel=function(y,m){var x=function(d,l){return l!==m},_=this._levels.filter(function(h,d){return d!==y?!0:h.url.length>1&&m!==void 0?(h.url=h.url.filter(x),h.audioGroupIds&&(h.audioGroupIds=h.audioGroupIds.filter(x)),h.textGroupIds&&(h.textGroupIds=h.textGroupIds.filter(x)),h.urlId=0,!0):!1}).map(function(h,d){var l=h.details;return l!=null&&l.fragments&&l.fragments.forEach(function(c){c.level=d}),h});this._levels=_,this.hls.trigger(C.Events.LEVELS_UPDATED,{levels:_})},u(n,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var m,x=this._levels;if(x.length===0)return;if(this.currentLevelIndex===y&&(m=x[y])!==null&&m!==void 0&&m.details)return;if(y<0||y>=x.length){var _=y<0;if(this.hls.trigger(C.Events.ERROR,{type:R.ErrorTypes.OTHER_ERROR,details:R.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:_,reason:"invalid level idx"}),_)return;y=Math.min(y,x.length-1)}this.clearTimer();var h=this.currentLevelIndex,d=x[h],l=x[y];this.log("switching to level "+y+" from "+h),this.currentLevelIndex=y;var c=g({},l,{level:y,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete c._urlId,this.hls.trigger(C.Events.LEVEL_SWITCHING,c);var v=l.details;if(!v||v.live){var f=this.switchParams(l.uri,d==null?void 0:d.details);this.loadPlaylist(f)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(y){this.manualLevelIndex=y,this._startLevel===void 0&&(this._startLevel=y),y!==-1&&(this.level=y)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(y){this._firstLevel=y}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var y=this.hls.config.startLevel;return y!==void 0?y:this._firstLevel}else return this._startLevel},set:function(y){this._startLevel=y}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(y){this.level=y,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=y)}}]),n}(e.default)},"./src/controller/level-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"addGroupId",function(){return R}),I.d(M,"assignTrackIdsByGroup",function(){return W}),I.d(M,"updatePTS",function(){return k}),I.d(M,"updateFragPTSDTS",function(){return O}),I.d(M,"mergeDetails",function(){return g}),I.d(M,"mapPartIntersection",function(){return p}),I.d(M,"mapFragmentIntersection",function(){return u}),I.d(M,"adjustSliding",function(){return a}),I.d(M,"addSliding",function(){return r}),I.d(M,"computeReloadInterval",function(){return o}),I.d(M,"getFragmentWithSN",function(){return s}),I.d(M,"getPartWith",function(){return i});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/logger.ts");function R(n,t,b){switch(t){case"audio":n.audioGroupIds||(n.audioGroupIds=[]),n.audioGroupIds.push(b);break;case"text":n.textGroupIds||(n.textGroupIds=[]),n.textGroupIds.push(b);break}}function W(n){var t={};n.forEach(function(b){var y=b.groupId||"";b.id=t[y]=t[y]||0,t[y]++})}function k(n,t,b){var y=n[t],m=n[b];e(y,m)}function e(n,t){var b=t.startPTS;if(Object(j.isFiniteNumber)(b)){var y=0,m;t.sn>n.sn?(y=b-n.start,m=n):(y=n.start-b,m=t),m.duration!==y&&(m.duration=y)}else if(t.sn>n.sn){var x=n.cc===t.cc;x&&n.minEndPTS?t.start=n.start+(n.minEndPTS-n.start):t.start=n.start+n.duration}else t.start=Math.max(n.start-t.duration,0)}function O(n,t,b,y,m,x){var _=y-b;_<=0&&(C.logger.warn("Fragment should have a positive duration",t),y=b+t.duration,x=m+t.duration);var h=b,d=y,l=t.startPTS,c=t.endPTS;if(Object(j.isFiniteNumber)(l)){var v=Math.abs(l-b);Object(j.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(v,t.deltaPTS):t.deltaPTS=v,h=Math.max(b,l),b=Math.min(b,l),m=Math.min(m,t.startDTS),d=Math.min(y,c),y=Math.max(y,c),x=Math.max(x,t.endDTS)}t.duration=y-b;var f=b-t.start;t.appendedPTS=y,t.start=t.startPTS=b,t.maxStartPTS=h,t.startDTS=m,t.endPTS=y,t.minEndPTS=d,t.endDTS=x;var T=t.sn;if(!n||T<n.startSN||T>n.endSN)return 0;var L,P=T-n.startSN,S=n.fragments;for(S[P]=t,L=P;L>0;L--)e(S[L],S[L-1]);for(L=P;L<S.length-1;L++)e(S[L],S[L+1]);return n.fragmentHint&&e(S[S.length-1],n.fragmentHint),n.PTSKnown=n.alignedSliding=!0,f}function g(n,t){for(var b=null,y=n.fragments,m=y.length-1;m>=0;m--){var x=y[m].initSegment;if(x){b=x;break}}n.fragmentHint&&delete n.fragmentHint.endPTS;var _=0,h;if(u(n,t,function(L,P){L.relurl&&(_=L.cc-P.cc),Object(j.isFiniteNumber)(L.startPTS)&&Object(j.isFiniteNumber)(L.endPTS)&&(P.start=P.startPTS=L.startPTS,P.startDTS=L.startDTS,P.appendedPTS=L.appendedPTS,P.maxStartPTS=L.maxStartPTS,P.endPTS=L.endPTS,P.endDTS=L.endDTS,P.minEndPTS=L.minEndPTS,P.duration=L.endPTS-L.startPTS,P.duration&&(h=P),t.PTSKnown=t.alignedSliding=!0),P.elementaryStreams=L.elementaryStreams,P.loader=L.loader,P.stats=L.stats,P.urlId=L.urlId,L.initSegment&&(P.initSegment=L.initSegment,b=L.initSegment)}),b){var d=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;d.forEach(function(L){var P;(!L.initSegment||L.initSegment.relurl===((P=b)===null||P===void 0?void 0:P.relurl))&&(L.initSegment=b)})}if(t.skippedSegments&&(t.deltaUpdateFailed=t.fragments.some(function(L){return!L}),t.deltaUpdateFailed)){C.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var l=t.skippedSegments;l--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}var c=t.fragments;if(_){C.logger.warn("discontinuity sliding from playlist, take drift into account");for(var v=0;v<c.length;v++)c[v].cc+=_}t.skippedSegments&&(t.startCC=t.fragments[0].cc),p(n.partList,t.partList,function(L,P){P.elementaryStreams=L.elementaryStreams,P.stats=L.stats}),h?O(t,h,h.startPTS,h.endPTS,h.startDTS,h.endDTS):a(n,t),c.length&&(t.totalduration=t.edge-c[0].start),t.driftStartTime=n.driftStartTime,t.driftStart=n.driftStart;var f=t.advancedDateTime;if(t.advanced&&f){var T=t.edge;t.driftStart||(t.driftStartTime=f,t.driftStart=T),t.driftEndTime=f,t.driftEnd=T}else t.driftEndTime=n.driftEndTime,t.driftEnd=n.driftEnd,t.advancedDateTime=n.advancedDateTime}function p(n,t,b){if(n&&t)for(var y=0,m=0,x=n.length;m<=x;m++){var _=n[m],h=t[m+y];_&&h&&_.index===h.index&&_.fragment.sn===h.fragment.sn?b(_,h):y--}}function u(n,t,b){for(var y=t.skippedSegments,m=Math.max(n.startSN,t.startSN)-t.startSN,x=(n.fragmentHint?1:0)+(y?t.endSN:Math.min(n.endSN,t.endSN))-t.startSN,_=t.startSN-n.startSN,h=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,d=n.fragmentHint?n.fragments.concat(n.fragmentHint):n.fragments,l=m;l<=x;l++){var c=d[_+l],v=h[l];y&&!v&&l<y&&(v=t.fragments[l]=c),c&&v&&b(c,v)}}function a(n,t){var b=t.startSN+t.skippedSegments-n.startSN,y=n.fragments;if(b<0||b>=y.length)return;r(t,y[b].start)}function r(n,t){if(t){for(var b=n.fragments,y=n.skippedSegments;y<b.length;y++)b[y].start+=t;n.fragmentHint&&(n.fragmentHint.start+=t)}}function o(n,t){var b=1e3*n.levelTargetDuration,y=b/2,m=n.age,x=m>0&&m<b*3,_=t.loading.end-t.loading.start,h,d=n.availabilityDelay;if(n.updated===!1)if(x){var l=333*n.misses;h=Math.max(Math.min(y,_*2),l),n.availabilityDelay=(n.availabilityDelay||0)+h}else h=y;else x?(d=Math.min(d||b/2,m),n.availabilityDelay=d,h=d+b-m):h=b-_;return Math.round(h)}function s(n,t,b){if(!n||!n.details)return null;var y=n.details,m=y.fragments[t-y.startSN];return m||(m=y.fragmentHint,m&&m.sn===t?m:t<y.startSN&&b&&b.sn===t?b:null)}function i(n,t,b){if(!n||!n.details)return null;var y=n.details.partList;if(y)for(var m=y.length;m--;){var x=y[m];if(x.index===b&&x.fragment.sn===t)return x}return null}},"./src/controller/stream-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return y});var j=I("./src/polyfills/number.ts"),C=I("./src/controller/base-stream-controller.ts"),R=I("./src/is-supported.ts"),W=I("./src/events.ts"),k=I("./src/utils/buffer-helper.ts"),e=I("./src/controller/fragment-tracker.ts"),O=I("./src/types/loader.ts"),g=I("./src/loader/fragment.ts"),p=I("./src/demux/transmuxer-interface.ts"),u=I("./src/types/transmuxer.ts"),a=I("./src/controller/gap-controller.ts"),r=I("./src/errors.ts"),o=I("./src/utils/logger.ts");function s(m,x){for(var _=0;_<x.length;_++){var h=x[_];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}function i(m,x,_){return x&&s(m.prototype,x),_&&s(m,_),m}function n(m,x){m.prototype=Object.create(x.prototype),m.prototype.constructor=m,t(m,x)}function t(m,x){return t=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h},t(m,x)}var b=100,y=function(m){n(x,m);function x(h,d){var l;return l=m.call(this,h,d,"[stream-controller]")||this,l.audioCodecSwap=!1,l.gapController=null,l.level=-1,l._forceStartLoad=!1,l.altAudio=!1,l.audioOnly=!1,l.fragPlaying=null,l.onvplaying=null,l.onvseeked=null,l.fragLastKbps=0,l.stalled=!1,l.couldBacktrack=!1,l.audioCodecSwitch=!1,l.videoBuffer=null,l._registerListeners(),l}var _=x.prototype;return _._registerListeners=function(){var d=this.hls;d.on(W.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(W.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(W.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(W.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(W.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(W.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.on(W.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),d.on(W.Events.ERROR,this.onError,this),d.on(W.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),d.on(W.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),d.on(W.Events.BUFFER_CREATED,this.onBufferCreated,this),d.on(W.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),d.on(W.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),d.on(W.Events.FRAG_BUFFERED,this.onFragBuffered,this)},_._unregisterListeners=function(){var d=this.hls;d.off(W.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(W.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(W.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(W.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(W.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.off(W.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),d.off(W.Events.ERROR,this.onError,this),d.off(W.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),d.off(W.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),d.off(W.Events.BUFFER_CREATED,this.onBufferCreated,this),d.off(W.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),d.off(W.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),d.off(W.Events.FRAG_BUFFERED,this.onFragBuffered,this)},_.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},_.startLoad=function(d){if(this.levels){var l=this.lastCurrentTime,c=this.hls;if(this.stopLoad(),this.setInterval(b),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var v=c.startLevel;v===-1&&(c.config.testBandwidth?(v=0,this.bitrateTest=!0):v=c.nextAutoLevel),this.level=c.nextLoadLevel=v,this.loadedmetadata=!1}l>0&&d===-1&&(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),d=l),this.state=C.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=d,this.tick()}else this._forceStartLoad=!0,this.state=C.State.STOPPED},_.stopLoad=function(){this._forceStartLoad=!1,m.prototype.stopLoad.call(this)},_.doTick=function(){switch(this.state){case C.State.IDLE:this.doTickIdle();break;case C.State.WAITING_LEVEL:{var d,l=this.levels,c=this.level,v=l==null||((d=l[c])===null||d===void 0)?void 0:d.details;if(v&&(!v.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(v))break;this.state=C.State.IDLE;break}break}case C.State.FRAG_LOADING_WAITING_RETRY:{var f,T=self.performance.now(),L=this.retryDate;(!L||T>=L||(f=this.media)!==null&&f!==void 0&&f.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=C.State.IDLE)}break;default:break}this.onTickEnd()},_.onTickEnd=function(){m.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},_.doTickIdle=function(){var d,l,c=this.hls,v=this.levelLastLoaded,f=this.levels,T=this.media,L=c.config,P=c.nextLoadLevel;if(v===null||!T&&(this.startFragRequested||!L.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!f||!f[P])return;var S=f[P];this.level=c.nextLoadLevel=P;var A=S.details;if(!A||this.state===C.State.WAITING_LEVEL||A.live&&this.levelLastLoaded!==P){this.state=C.State.WAITING_LEVEL;return}var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:T,O.PlaylistLevelType.MAIN);if(H===null)return;var D=H.len,K=this.getMaxBufferLength(S.maxBitrate);if(D>=K)return;if(this._streamEnded(H,A)){var V={};this.altAudio&&(V.type="video"),this.hls.trigger(W.Events.BUFFER_EOS,V),this.state=C.State.ENDED;return}var oe=H.end,le=this.getNextFragment(oe,A);if(this.couldBacktrack&&!this.fragPrevious&&le&&le.sn!=="initSegment"){var Ce=le.sn-A.startSN;Ce>1&&(le=A.fragments[Ce-1],this.fragmentTracker.removeFragment(le))}if(le&&this.fragmentTracker.getState(le)===e.FragmentState.OK&&this.nextLoadPosition>oe){var xe=this.audioOnly&&!this.altAudio?g.ElementaryStreamTypes.AUDIO:g.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(T,xe,O.PlaylistLevelType.MAIN),le=this.getNextFragment(this.nextLoadPosition,A)}if(!le)return;le.initSegment&&!le.initSegment.data&&!this.bitrateTest&&(le=le.initSegment),((d=le.decryptdata)===null||d===void 0?void 0:d.keyFormat)==="identity"&&!((l=le.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(le,A):this.loadFragment(le,A,oe)},_.loadFragment=function(d,l,c){var v,f=this.fragmentTracker.getState(d);if(this.fragCurrent=d,f===e.FragmentState.BACKTRACKED){var T=this.fragmentTracker.getBacktrackData(d);if(T){this._handleFragmentLoadProgress(T),this._handleFragmentLoadComplete(T);return}else f=e.FragmentState.NOT_LOADED}f===e.FragmentState.NOT_LOADED||f===e.FragmentState.PARTIAL?d.sn==="initSegment"?this._loadInitSegment(d):this.bitrateTest?(d.bitrateTest=!0,this.log("Fragment "+d.sn+" of level "+d.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(d)):(this.startFragRequested=!0,m.prototype.loadFragment.call(this,d,l,c)):f===e.FragmentState.APPENDING?this.reduceMaxBufferLength(d.duration)&&this.fragmentTracker.removeFragment(d):((v=this.media)===null||v===void 0?void 0:v.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},_.getAppendedFrag=function(d){var l=this.fragmentTracker.getAppendedFrag(d,O.PlaylistLevelType.MAIN);return l&&"fragment"in l?l.fragment:l},_.getBufferedFrag=function(d){return this.fragmentTracker.getBufferedFrag(d,O.PlaylistLevelType.MAIN)},_.followingBufferedFrag=function(d){return d?this.getBufferedFrag(d.end+.5):null},_.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},_.nextLevelSwitch=function(){var d=this.levels,l=this.media;if(l!=null&&l.readyState){var c,v=this.getAppendedFrag(l.currentTime);if(v&&v.start>1&&this.flushMainBuffer(0,v.start-1),!l.paused&&d){var f=this.hls.nextLoadLevel,T=d[f],L=this.fragLastKbps;L&&this.fragCurrent?c=this.fragCurrent.duration*T.maxBitrate/(1e3*L)+1:c=0}else c=0;var P=this.getBufferedFrag(l.currentTime+c);if(P){var S=this.followingBufferedFrag(P);if(S){this.abortCurrentFrag();var A=S.maxStartPTS?S.maxStartPTS:S.start,H=S.duration,D=Math.max(P.end,A+Math.min(Math.max(H-this.config.maxFragLookUpTolerance,H*.5),H*.75));this.flushMainBuffer(D,Number.POSITIVE_INFINITY)}}}},_.abortCurrentFrag=function(){var d=this.fragCurrent;this.fragCurrent=null,d!=null&&d.loader&&d.loader.abort(),this.state===C.State.KEY_LOADING&&(this.state=C.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},_.flushMainBuffer=function(d,l){m.prototype.flushMainBuffer.call(this,d,l,this.altAudio?"video":null)},_.onMediaAttached=function(d,l){m.prototype.onMediaAttached.call(this,d,l);var c=l.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),c.addEventListener("playing",this.onvplaying),c.addEventListener("seeked",this.onvseeked),this.gapController=new a.default(this.config,c,this.fragmentTracker,this.hls)},_.onMediaDetaching=function(){var d=this.media;d&&(d.removeEventListener("playing",this.onvplaying),d.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),m.prototype.onMediaDetaching.call(this)},_.onMediaPlaying=function(){this.tick()},_.onMediaSeeked=function(){var d=this.media,l=d?d.currentTime:null;Object(j.isFiniteNumber)(l)&&this.log("Media seeked to "+l.toFixed(3)),this.tick()},_.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(W.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},_.onManifestParsed=function(d,l){var c=!1,v=!1,f;l.levels.forEach(function(T){f=T.audioCodec,f&&(f.indexOf("mp4a.40.2")!==-1&&(c=!0),f.indexOf("mp4a.40.5")!==-1&&(v=!0))}),this.audioCodecSwitch=c&&v&&!Object(R.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=l.levels,this.startFragRequested=!1},_.onLevelLoading=function(d,l){var c=this.levels;if(!c||this.state!==C.State.IDLE)return;var v=c[l.level];(!v.details||v.details.live&&this.levelLastLoaded!==l.level||this.waitForCdnTuneIn(v.details))&&(this.state=C.State.WAITING_LEVEL)},_.onLevelLoaded=function(d,l){var c,v=this.levels,f=l.level,T=l.details,L=T.totalduration;if(!v){this.warn("Levels were reset while loading level "+f);return}this.log("Level "+f+" loaded ["+T.startSN+","+T.endSN+"], cc ["+T.startCC+", "+T.endCC+"] duration:"+L);var P=this.fragCurrent;P&&(this.state===C.State.FRAG_LOADING||this.state===C.State.FRAG_LOADING_WAITING_RETRY)&&(P.level!==l.level&&P.loader&&(this.state=C.State.IDLE,P.loader.abort()));var S=v[f],A=0;if(T.live||(c=S.details)!==null&&c!==void 0&&c.live){if(T.fragments[0]||(T.deltaUpdateFailed=!0),T.deltaUpdateFailed)return;A=this.alignPlaylists(T,S.details)}if(S.details=T,this.levelLastLoaded=f,this.hls.trigger(W.Events.LEVEL_UPDATED,{details:T,level:f}),this.state===C.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(T))return;this.state=C.State.IDLE}this.startFragRequested?T.live&&this.synchronizeToLiveEdge(T):this.setStartPosition(T,A),this.tick()},_._handleFragmentLoadProgress=function(d){var l,c=d.frag,v=d.part,f=d.payload,T=this.levels;if(!T){this.warn("Levels were reset while fragment load was in progress. Fragment "+c.sn+" of level "+c.level+" will not be buffered");return}var L=T[c.level],P=L.details;if(!P){this.warn("Dropping fragment "+c.sn+" of level "+c.level+" after level details were reset");return}var S=L.videoCodec,A=P.PTSKnown||!P.live,H=(l=c.initSegment)===null||l===void 0?void 0:l.data,D=this._getAudioCodec(L),K=this.transmuxer=this.transmuxer||new p.default(this.hls,O.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),V=v?v.index:-1,oe=V!==-1,le=new u.ChunkMetadata(c.level,c.sn,c.stats.chunkCount,f.byteLength,V,oe),Ce=this.initPTS[c.cc];K.push(f,H,D,S,c,v,P.totalduration,A,le,Ce)},_.onAudioTrackSwitching=function(d,l){var c=this.altAudio,v=!!l.url,f=l.id;if(!v){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var T=this.fragCurrent;T!=null&&T.loader&&(this.log("Switching to main audio track, cancel main fragment load"),T.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var L=this.hls;c&&L.trigger(W.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),L.trigger(W.Events.AUDIO_TRACK_SWITCHED,{id:f})}},_.onAudioTrackSwitched=function(d,l){var c=l.id,v=!!this.hls.audioTracks[c].url;if(v){var f=this.videoBuffer;f&&this.mediaBuffer!==f&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=f)}this.altAudio=v,this.tick()},_.onBufferCreated=function(d,l){var c=l.tracks,v,f,T=!1;for(var L in c){var P=c[L];if(P.id==="main"){if(f=L,v=P,L==="video"){var S=c[L];S&&(this.videoBuffer=S.buffer)}}else T=!0}T&&v?(this.log("Alternate track found, use "+f+".buffered to schedule main fragment loading"),this.mediaBuffer=v.buffer):this.mediaBuffer=this.media},_.onFragBuffered=function(d,l){var c=l.frag,v=l.part;if(c&&c.type!==O.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(c)){this.warn("Fragment "+c.sn+(v?" p: "+v.index:"")+" of level "+c.level+" finished buffering, but was aborted. state: "+this.state),this.state===C.State.PARSED&&(this.state=C.State.IDLE);return}var f=v?v.stats:c.stats;this.fragLastKbps=Math.round(8*f.total/(f.buffering.end-f.loading.first)),c.sn!=="initSegment"&&(this.fragPrevious=c),this.fragBufferedComplete(c,v)},_.onError=function(d,l){switch(l.details){case r.ErrorDetails.FRAG_LOAD_ERROR:case r.ErrorDetails.FRAG_LOAD_TIMEOUT:case r.ErrorDetails.KEY_LOAD_ERROR:case r.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(O.PlaylistLevelType.MAIN,l);break;case r.ErrorDetails.LEVEL_LOAD_ERROR:case r.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==C.State.ERROR&&(l.fatal?(this.warn(""+l.details),this.state=C.State.ERROR):!l.levelRetry&&this.state===C.State.WAITING_LEVEL&&(this.state=C.State.IDLE));break;case r.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="main"&&(this.state===C.State.PARSING||this.state===C.State.PARSED)){var c=!0,v=this.getFwdBufferInfo(this.media,O.PlaylistLevelType.MAIN);v&&v.len>.5&&(c=!this.reduceMaxBufferLength(v.len)),c&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},_.checkBuffer=function(){var d=this.media,l=this.gapController;if(!d||!l||!d.readyState)return;var c=k.BufferHelper.getBuffered(d);!this.loadedmetadata&&c.length?(this.loadedmetadata=!0,this.seekToStartPos()):l.poll(this.lastCurrentTime),this.lastCurrentTime=d.currentTime},_.onFragLoadEmergencyAborted=function(){this.state=C.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},_.onBufferFlushed=function(d,l){var c=l.type;if(c!==g.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var v=(c===g.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(v,c,O.PlaylistLevelType.MAIN)}},_.onLevelsUpdated=function(d,l){this.levels=l.levels},_.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},_.seekToStartPos=function(){var d=this.media,l=d.currentTime,c=this.startPosition;if(c>=0&&l<c){if(d.seeking){o.logger.log("could not seek to "+c+", already seeking at "+l);return}var v=k.BufferHelper.getBuffered(d),f=v.length?v.start(0):0,T=f-c;T>0&&(T<this.config.maxBufferHole||T<this.config.maxFragLookUpTolerance)&&(o.logger.log("adjusting start position by "+T+" to match buffer start"),c+=T,this.startPosition=c),this.log("seek to target start position "+c+" from current time "+l),d.currentTime=c}},_._getAudioCodec=function(d){var l=this.config.defaultAudioCodec||d.audioCodec;return this.audioCodecSwap&&l&&(this.log("Swapping audio codec"),l.indexOf("mp4a.40.5")!==-1?l="mp4a.40.2":l="mp4a.40.5"),l},_._loadBitrateTestFrag=function(d){var l=this;this._doFragLoad(d).then(function(c){var v=l.hls;if(!c||v.nextLoadLevel||l.fragContextChanged(d))return;l.fragLoadError=0,l.state=C.State.IDLE,l.startFragRequested=!1,l.bitrateTest=!1;var f=d.stats;f.parsing.start=f.parsing.end=f.buffering.start=f.buffering.end=self.performance.now(),v.trigger(W.Events.FRAG_LOADED,c)})},_._handleTransmuxComplete=function(d){var l,c="main",v=this.hls,f=d.remuxResult,T=d.chunkMeta,L=this.getCurrentContext(T);if(!L){this.warn("The loading context changed while buffering fragment "+T.sn+" of level "+T.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(T.level);return}var P=L.frag,S=L.part,A=L.level,H=f.video,D=f.text,K=f.id3,V=f.initSegment,oe=this.altAudio?void 0:f.audio;if(this.fragContextChanged(P))return;if(this.state=C.State.PARSING,V){V.tracks&&(this._bufferInitSegment(A,V.tracks,P,T),v.trigger(W.Events.FRAG_PARSING_INIT_SEGMENT,{frag:P,id:c,tracks:V.tracks}));var le=V.initPTS,Ce=V.timescale;Object(j.isFiniteNumber)(le)&&(this.initPTS[P.cc]=le,v.trigger(W.Events.INIT_PTS_FOUND,{frag:P,id:c,initPTS:le,timescale:Ce}))}if(H&&f.independent!==!1){if(A.details){var xe=H.startPTS,ie=H.endPTS,Se=H.startDTS,Pe=H.endDTS;if(S)S.elementaryStreams[H.type]={startPTS:xe,endPTS:ie,startDTS:Se,endDTS:Pe};else if(H.firstKeyFrame&&H.independent&&(this.couldBacktrack=!0),H.dropped&&H.independent){var de=this.getLoadPosition()+this.config.maxBufferHole;if(de<xe){this.backtrack(P);return}P.setElementaryStreamInfo(H.type,P.start,ie,P.start,Pe,!0)}P.setElementaryStreamInfo(H.type,xe,ie,Se,Pe),this.bufferFragmentData(H,P,S,T)}}else if(f.independent===!1){this.backtrack(P);return}if(oe){var $=oe.startPTS,Ne=oe.endPTS,lt=oe.startDTS,it=oe.endDTS;S&&(S.elementaryStreams[g.ElementaryStreamTypes.AUDIO]={startPTS:$,endPTS:Ne,startDTS:lt,endDTS:it}),P.setElementaryStreamInfo(g.ElementaryStreamTypes.AUDIO,$,Ne,lt,it),this.bufferFragmentData(oe,P,S,T)}if(K!=null&&(l=K.samples)!==null&&l!==void 0&&l.length){var Je={frag:P,id:c,samples:K.samples};v.trigger(W.Events.FRAG_PARSING_METADATA,Je)}if(D){var at={frag:P,id:c,samples:D.samples};v.trigger(W.Events.FRAG_PARSING_USERDATA,at)}},_._bufferInitSegment=function(d,l,c,v){var f=this;if(this.state!==C.State.PARSING)return;this.audioOnly=!!l.audio&&!l.video,this.altAudio&&!this.audioOnly&&delete l.audio;var T=l.audio,L=l.video,P=l.audiovideo;if(T){var S=d.audioCodec,A=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(S&&(S.indexOf("mp4a.40.5")!==-1?S="mp4a.40.2":S="mp4a.40.5"),T.metadata.channelCount!==1&&A.indexOf("firefox")===-1&&(S="mp4a.40.5")),A.indexOf("android")!==-1&&T.container!=="audio/mpeg"&&(S="mp4a.40.2",this.log("Android: force audio codec to "+S)),d.audioCodec&&d.audioCodec!==S&&this.log('Swapping manifest audio codec "'+d.audioCodec+'" for "'+S+'"'),T.levelCodec=S,T.id="main",this.log("Init audio buffer, container:"+T.container+", codecs[selected/level/parsed]=["+(S||"")+"/"+(d.audioCodec||"")+"/"+T.codec+"]")}L&&(L.levelCodec=d.videoCodec,L.id="main",this.log("Init video buffer, container:"+L.container+", codecs[level/parsed]=["+(d.videoCodec||"")+"/"+L.codec+"]")),P&&this.log("Init audiovideo buffer, container:"+P.container+", codecs[level/parsed]=["+(d.attrs.CODECS||"")+"/"+P.codec+"]"),this.hls.trigger(W.Events.BUFFER_CODECS,l),Object.keys(l).forEach(function(H){var D=l[H],K=D.initSegment;K!=null&&K.byteLength&&f.hls.trigger(W.Events.BUFFER_APPENDING,{type:H,data:K,frag:c,part:null,chunkMeta:v,parent:c.type})}),this.tick()},_.backtrack=function(d){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(d);var l=this.fragmentTracker.backtrack(d);this.fragPrevious=null,this.nextLoadPosition=d.start,l?this.resetFragmentLoading(d):this.state=C.State.BACKTRACKING},_.checkFragmentChanged=function(){var d=this.media,l=null;if(d&&d.readyState>1&&d.seeking===!1){var c=d.currentTime;if(k.BufferHelper.isBuffered(d,c)?l=this.getAppendedFrag(c):k.BufferHelper.isBuffered(d,c+.1)&&(l=this.getAppendedFrag(c+.1)),l){var v=this.fragPlaying,f=l.level;(!v||l.sn!==v.sn||v.level!==f||l.urlId!==v.urlId)&&(this.hls.trigger(W.Events.FRAG_CHANGED,{frag:l}),(!v||v.level!==f)&&this.hls.trigger(W.Events.LEVEL_SWITCHED,{level:f}),this.fragPlaying=l)}}},i(x,[{key:"nextLevel",get:function(){var d=this.nextBufferedFrag;return d?d.level:-1}},{key:"currentLevel",get:function(){var d=this.media;if(d){var l=this.getAppendedFrag(d.currentTime);if(l)return l.level}return-1}},{key:"nextBufferedFrag",get:function(){var d=this.media;if(d){var l=this.getAppendedFrag(d.currentTime);return this.followingBufferedFrag(l)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),x}(C.default)},"./src/controller/subtitle-stream-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"SubtitleStreamController",function(){return n});var j=I("./src/events.ts"),C=I("./src/utils/logger.ts"),R=I("./src/utils/buffer-helper.ts"),W=I("./src/controller/fragment-finders.ts"),k=I("./src/utils/discontinuities.ts"),e=I("./src/controller/level-helper.ts"),O=I("./src/controller/fragment-tracker.ts"),g=I("./src/controller/base-stream-controller.ts"),p=I("./src/types/loader.ts"),u=I("./src/types/level.ts");function a(t,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(t,m.key,m)}}function r(t,b,y){return b&&a(t.prototype,b),y&&a(t,y),t}function o(t,b){t.prototype=Object.create(b.prototype),t.prototype.constructor=t,s(t,b)}function s(t,b){return s=Object.setPrototypeOf||function(m,x){return m.__proto__=x,m},s(t,b)}var i=500,n=function(t){o(b,t);function b(m,x){var _;return _=t.call(this,m,x,"[subtitle-stream-controller]")||this,_.levels=[],_.currentTrackId=-1,_.tracksBuffered=[],_.mainDetails=null,_._registerListeners(),_}var y=b.prototype;return y.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},y._registerListeners=function(){var x=this.hls;x.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.on(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(j.Events.ERROR,this.onError,this),x.on(j.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.on(j.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.on(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.on(j.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y._unregisterListeners=function(){var x=this.hls;x.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.off(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(j.Events.ERROR,this.onError,this),x.off(j.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.off(j.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.off(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.off(j.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y.startLoad=function(){this.stopLoad(),this.state=g.State.IDLE,this.setInterval(i),this.tick()},y.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},y.onLevelLoaded=function(x,_){this.mainDetails=_.details},y.onSubtitleFragProcessed=function(x,_){var h=_.frag,d=_.success;if(this.fragPrevious=h,this.state=g.State.IDLE,!d)return;var l=this.tracksBuffered[this.currentTrackId];if(!l)return;for(var c,v=h.start,f=0;f<l.length;f++)if(v>=l[f].start&&v<=l[f].end){c=l[f];break}var T=h.start+h.duration;c?c.end=T:(c={start:v,end:T},l.push(c)),this.fragmentTracker.fragBuffered(h)},y.onBufferFlushing=function(x,_){var h=_.startOffset,d=_.endOffset;if(h===0&&d!==Number.POSITIVE_INFINITY){var l=this.currentTrackId,c=this.levels;if(!c.length||!c[l]||!c[l].details)return;var v=c[l].details,f=v.targetduration,T=d-f;if(T<=0)return;_.endOffsetSubtitles=Math.max(0,T),this.tracksBuffered.forEach(function(L){for(var P=0;P<L.length;){if(L[P].end<=T){L.shift();continue}else if(L[P].start<T)L[P].start=T;else break;P++}}),this.fragmentTracker.removeFragmentsInRange(h,T,p.PlaylistLevelType.SUBTITLE)}},y.onError=function(x,_){var h,d=_.frag;if(!d||d.type!==p.PlaylistLevelType.SUBTITLE)return;(h=this.fragCurrent)!==null&&h!==void 0&&h.loader&&this.fragCurrent.loader.abort(),this.state=g.State.IDLE},y.onSubtitleTracksUpdated=function(x,_){var h=this,d=_.subtitleTracks;this.tracksBuffered=[],this.levels=d.map(function(l){return new u.Level(l)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(l){h.tracksBuffered[l.id]=[]}),this.mediaBuffer=null},y.onSubtitleTrackSwitch=function(x,_){if(this.currentTrackId=_.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var h=this.levels[this.currentTrackId];h!=null&&h.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,h&&this.setInterval(i)},y.onSubtitleTrackLoaded=function(x,_){var h,d=_.details,l=_.id,c=this.currentTrackId,v=this.levels;if(!v.length)return;var f=v[c];if(l>=v.length||l!==c||!f)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,d.live||(h=f.details)!==null&&h!==void 0&&h.live){var T=this.mainDetails;if(d.deltaUpdateFailed||!T)return;var L=T.fragments[0];if(!f.details)d.hasProgramDateTime&&T.hasProgramDateTime?Object(k.alignMediaPlaylistByPDT)(d,T):L&&Object(e.addSliding)(d,L.start);else{var P=this.alignPlaylists(d,f.details);P===0&&L&&Object(e.addSliding)(d,L.start)}}if(f.details=d,this.levelLastLoaded=l,this.tick(),d.live&&!this.fragCurrent&&this.media&&this.state===g.State.IDLE){var S=Object(W.findFragmentByPTS)(null,d.fragments,this.media.currentTime,0);S||(this.warn("Subtitle playlist not aligned with playback"),f.details=void 0)}},y._handleFragmentLoadComplete=function(x){var _=x.frag,h=x.payload,d=_.decryptdata,l=this.hls;if(this.fragContextChanged(_))return;if(h&&h.byteLength>0&&d&&d.key&&d.iv&&d.method==="AES-128"){var c=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(h),d.key.buffer,d.iv.buffer).then(function(v){var f=performance.now();l.trigger(j.Events.FRAG_DECRYPTED,{frag:_,payload:v,stats:{tstart:c,tdecrypt:f}})})}},y.doTick=function(){if(!this.media){this.state=g.State.IDLE;return}if(this.state===g.State.IDLE){var x,_=this.currentTrackId,h=this.levels;if(!h.length||!h[_]||!h[_].details)return;var d=h[_].details,l=d.targetduration,c=this.config,v=this.media,f=R.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,v.currentTime-l,c.maxBufferHole),T=f.end,L=f.len,P=this.getMaxBufferLength()+l;if(L>P)return;console.assert(d,"Subtitle track details are defined on idle subtitle stream controller tick");var S=d.fragments,A=S.length,H=d.edge,D,K=this.fragPrevious;if(T<H){var V=c.maxFragLookUpTolerance;K&&d.hasProgramDateTime&&(D=Object(W.findFragmentByPDT)(S,K.endProgramDateTime,V)),D||(D=Object(W.findFragmentByPTS)(K,S,T,V),!D&&K&&K.start<S[0].start&&(D=S[0]))}else D=S[A-1];(x=D)!==null&&x!==void 0&&x.encrypted?(C.logger.log("Loading key for "+D.sn),this.state=g.State.KEY_LOADING,this.hls.trigger(j.Events.KEY_LOADING,{frag:D})):D&&this.fragmentTracker.getState(D)===O.FragmentState.NOT_LOADED&&this.loadFragment(D,d,T)}},y.loadFragment=function(x,_,h){this.fragCurrent=x,t.prototype.loadFragment.call(this,x,_,h)},r(b,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),b}(g.default)},"./src/controller/subtitle-track-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/utils/texttrack-utils.ts"),R=I("./src/controller/base-playlist-controller.ts"),W=I("./src/types/loader.ts");function k(a,r){for(var o=0;o<r.length;o++){var s=r[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function e(a,r,o){return r&&k(a.prototype,r),o&&k(a,o),a}function O(a,r){a.prototype=Object.create(r.prototype),a.prototype.constructor=a,g(a,r)}function g(a,r){return g=Object.setPrototypeOf||function(s,i){return s.__proto__=i,s},g(a,r)}var p=function(a){O(r,a);function r(s){var i;return i=a.call(this,s,"[subtitle-track-controller]")||this,i.media=null,i.tracks=[],i.groupId=null,i.tracksInGroup=[],i.trackId=-1,i.selectDefaultTrack=!0,i.queuedDefaultTrack=-1,i.trackChangeListener=function(){return i.onTextTracksChanged()},i.asyncPollTrackChange=function(){return i.pollTrackChange(0)},i.useTextTrackPolling=!1,i.subtitlePollingInterval=-1,i.subtitleDisplay=!0,i.registerListeners(),i}var o=r.prototype;return o.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,a.prototype.destroy.call(this)},o.registerListeners=function(){var i=this.hls;i.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),i.on(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),i.on(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),i.on(j.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var i=this.hls;i.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),i.off(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),i.off(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),i.off(j.Events.ERROR,this.onError,this)},o.onMediaAttached=function(i,n){if(this.media=n.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},o.pollTrackChange=function(i){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,i)},o.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var i=u(this.media.textTracks);i.forEach(function(n){Object(C.clearCurrentCues)(n)}),this.subtitleTrack=-1,this.media=null},o.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},o.onManifestParsed=function(i,n){this.tracks=n.subtitleTracks},o.onSubtitleTrackLoaded=function(i,n){var t=n.id,b=n.details,y=this.trackId,m=this.tracksInGroup[y];if(!m){this.warn("Invalid subtitle track id "+t);return}var x=m.details;m.details=n.details,this.log("subtitle track "+t+" loaded ["+b.startSN+"-"+b.endSN+"]"),t===this.trackId&&(this.retryCount=0,this.playlistLoaded(t,n,x))},o.onLevelLoading=function(i,n){this.switchLevel(n.level)},o.onLevelSwitching=function(i,n){this.switchLevel(n.level)},o.switchLevel=function(i){var n=this.hls.levels[i];if(!(n!=null&&n.textGroupIds))return;var t=n.textGroupIds[n.urlId];if(this.groupId!==t){var b=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(_){return!t||_.groupId===t});this.tracksInGroup=y;var m=this.findTrackId(b==null?void 0:b.name)||this.findTrackId();this.groupId=t;var x={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+t+'" group-id'),this.hls.trigger(j.Events.SUBTITLE_TRACKS_UPDATED,x),m!==-1&&this.setSubtitleTrack(m,b)}},o.findTrackId=function(i){for(var n=this.tracksInGroup,t=0;t<n.length;t++){var b=n[t];if((!this.selectDefaultTrack||b.default)&&(!i||i===b.name))return b.id}return-1},o.onError=function(i,n){if(a.prototype.onError.call(this,i,n),n.fatal||!n.context)return;n.context.type===W.PlaylistContextType.SUBTITLE_TRACK&&n.context.id===this.trackId&&n.context.groupId===this.groupId&&this.retryLoadingOrFail(n)},o.loadPlaylist=function(i){var n=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(n)){var t=n.id,b=n.groupId,y=n.url;if(i)try{y=i.addDirectives(y)}catch(m){this.warn("Could not construct new URL with HLS Delivery Directives: "+m)}this.log("Loading subtitle playlist for id "+t),this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADING,{url:y,id:t,groupId:b,deliveryDirectives:i||null})}},o.toggleTrackModes=function(i){var n=this,t=this.media,b=this.subtitleDisplay,y=this.trackId;if(!t)return;var m=u(t.textTracks),x=m.filter(function(d){return d.groupId===n.groupId});if(i===-1)[].slice.call(m).forEach(function(d){d.mode="disabled"});else{var _=x[y];_&&(_.mode="disabled")}var h=x[i];h&&(h.mode=b?"showing":"hidden")},o.setSubtitleTrack=function(i,n){var t,b=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=i;return}if(this.trackId!==i&&this.toggleTrackModes(i),this.trackId===i&&(i===-1||(t=b[i])!==null&&t!==void 0&&t.details)||i<-1||i>=b.length)return;this.clearTimer();var y=b[i];if(this.log("Switching to subtitle track "+i),this.trackId=i,y){var m=y.id,x=y.groupId,_=x===void 0?"":x,h=y.name,d=y.type,l=y.url;this.hls.trigger(j.Events.SUBTITLE_TRACK_SWITCH,{id:m,groupId:_,name:h,type:d,url:l});var c=this.switchParams(y.url,n==null?void 0:n.details);this.loadPlaylist(c)}else this.hls.trigger(j.Events.SUBTITLE_TRACK_SWITCH,{id:i})},o.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var i=-1,n=u(this.media.textTracks),t=0;t<n.length;t++)if(n[t].mode==="hidden")i=t;else if(n[t].mode==="showing"){i=t;break}this.subtitleTrack!==i&&(this.subtitleTrack=i)},e(r,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(i){this.selectDefaultTrack=!1;var n=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(i,n)}}]),r}(R.default);function u(a){for(var r=[],o=0;o<a.length;o++){var s=a[o];s.kind==="subtitles"&&s.label&&r.push(a[o])}return r}M.default=p},"./src/controller/timeline-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"TimelineController",function(){return u});var j=I("./src/polyfills/number.ts"),C=I("./src/events.ts"),R=I("./src/utils/cea-608-parser.ts"),W=I("./src/utils/output-filter.ts"),k=I("./src/utils/webvtt-parser.ts"),e=I("./src/utils/texttrack-utils.ts"),O=I("./src/utils/imsc1-ttml-parser.ts"),g=I("./src/types/loader.ts"),p=I("./src/utils/logger.ts"),u=function(){function s(n){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=o(),this.captionsProperties=void 0,this.hls=n,this.config=n.config,this.Cues=n.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var t=new W.default(this,"textTrack1"),b=new W.default(this,"textTrack2"),y=new W.default(this,"textTrack3"),m=new W.default(this,"textTrack4");this.cea608Parser1=new R.default(1,t,b),this.cea608Parser2=new R.default(3,y,m)}n.on(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),n.on(C.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),n.on(C.Events.FRAG_LOADING,this.onFragLoading,this),n.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),n.on(C.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),n.on(C.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),n.on(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),n.on(C.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),n.on(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var i=s.prototype;return i.destroy=function(){var t=this.hls;t.off(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(C.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(C.Events.FRAG_LOADING,this.onFragLoading,this),t.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),t.off(C.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(C.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(C.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},i.addCues=function(t,b,y,m,x){for(var _=!1,h=x.length;h--;){var d=x[h],l=r(d[0],d[1],b,y);if(l>=0&&(d[0]=Math.min(d[0],b),d[1]=Math.max(d[1],y),_=!0,l/(y-b)>.5))return}if(_||x.push([b,y]),this.config.renderTextTracksNatively){var c=this.captionsTracks[t];this.Cues.newCue(c,b,y,m)}else{var v=this.Cues.newCue(null,b,y,m);this.hls.trigger(C.Events.CUES_PARSED,{type:"captions",cues:v,track:t})}},i.onInitPtsFound=function(t,b){var y=this,m=b.frag,x=b.id,_=b.initPTS,h=b.timescale,d=this.unparsedVttFrags;x==="main"&&(this.initPTS[m.cc]=_,this.timescale[m.cc]=h),d.length&&(this.unparsedVttFrags=[],d.forEach(function(l){y.onFragLoaded(C.Events.FRAG_LOADED,l)}))},i.getExistingTrack=function(t){var b=this.media;if(b)for(var y=0;y<b.textTracks.length;y++){var m=b.textTracks[y];if(m[t])return m}return null},i.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},i.createNativeTrack=function(t){if(this.captionsTracks[t])return;var b=this.captionsProperties,y=this.captionsTracks,m=this.media,x=b[t],_=x.label,h=x.languageCode,d=this.getExistingTrack(t);if(d)y[t]=d,Object(e.clearCurrentCues)(y[t]),Object(e.sendAddTrackEvent)(y[t],m);else{var l=this.createTextTrack("captions",_,h);l&&(l[t]=!0,y[t]=l)}},i.createNonNativeTrack=function(t){if(this.nonNativeCaptionsTracks[t])return;var b=this.captionsProperties[t];if(!b)return;var y=b.label,m={_id:t,label:y,kind:"captions",default:b.media?!!b.media.default:!1,closedCaptions:b.media};this.nonNativeCaptionsTracks[t]=m,this.hls.trigger(C.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[m]})},i.createTextTrack=function(t,b,y){var m=this.media;return m?m.addTextTrack(t,b,y):void 0},i.onMediaAttaching=function(t,b){this.media=b.media,this._cleanTracks()},i.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach(function(b){Object(e.clearCurrentCues)(t[b]),delete t[b]}),this.nonNativeCaptionsTracks={}},i.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=o(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},i._cleanTracks=function(){var t=this.media;if(!t)return;var b=t.textTracks;if(b)for(var y=0;y<b.length;y++)Object(e.clearCurrentCues)(b[y])},i.onSubtitleTracksUpdated=function(t,b){var y=this;this.textTracks=[];var m=b.subtitleTracks||[],x=m.some(function(l){return l.textCodec===O.IMSC1_CODEC});if(this.config.enableWebVTT||x&&this.config.enableIMSC1){var _=this.tracks&&m&&this.tracks.length===m.length;if(this.tracks=m||[],this.config.renderTextTracksNatively){var h=this.media?this.media.textTracks:[];this.tracks.forEach(function(l,c){var v;if(c<h.length){for(var f=null,T=0;T<h.length;T++)if(a(h[T],l)){f=h[T];break}f&&(v=f)}v?Object(e.clearCurrentCues)(v):(v=y.createTextTrack("subtitles",l.name,l.lang),v&&(v.mode="disabled")),v&&(v.groupId=l.groupId,y.textTracks.push(v))})}else if(!_&&this.tracks&&this.tracks.length){var d=this.tracks.map(function(l){return{label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}});this.hls.trigger(C.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:d})}}},i.onManifestLoaded=function(t,b){var y=this;this.config.enableCEA708Captions&&b.captions&&b.captions.forEach(function(m){var x=/(?:CC|SERVICE)([1-4])/.exec(m.instreamId);if(!x)return;var _="textTrack"+x[1],h=y.captionsProperties[_];if(!h)return;h.label=m.name,m.lang&&(h.languageCode=m.lang),h.media=m})},i.onFragLoading=function(t,b){var y=this.cea608Parser1,m=this.cea608Parser2,x=this.lastSn,_=this.lastPartIndex;if(!this.enabled||!(y&&m))return;if(b.frag.type===g.PlaylistLevelType.MAIN){var h,d,l=b.frag.sn,c=(h=b==null||((d=b.part)===null||d===void 0)?void 0:d.index)!=null?h:-1;l===x+1||l===x&&c===_+1||(y.reset(),m.reset()),this.lastSn=l,this.lastPartIndex=c}},i.onFragLoaded=function(t,b){var y=b.frag,m=b.payload,x=this.initPTS,_=this.unparsedVttFrags;if(y.type===g.PlaylistLevelType.SUBTITLE)if(m.byteLength){if(!Object(j.isFiniteNumber)(x[y.cc])){_.push(b),x.length&&this.hls.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Missing initial subtitle PTS")});return}var h=y.decryptdata;if(h==null||h.key==null||h.method!=="AES-128"){var d=this.tracks[y.level],l=this.vttCCs;l[y.cc]||(l[y.cc]={start:y.start,prevCC:this.prevCC,new:!0},this.prevCC=y.cc),d&&d.textCodec===O.IMSC1_CODEC?this._parseIMSC1(y,m):this._parseVTTs(y,m,l)}}else this.hls.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Empty subtitle payload")})},i._parseIMSC1=function(t,b){var y=this,m=this.hls;Object(O.parseIMSC1)(b,this.initPTS[t.cc],this.timescale[t.cc],function(x){y._appendCues(x,t.level),m.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},function(x){p.logger.log("Failed to parse IMSC1: "+x),m.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:x})})},i._parseVTTs=function(t,b,y){var m=this,x=this.hls;Object(k.parseWebVTT)(b,this.initPTS[t.cc],this.timescale[t.cc],y,t.cc,t.start,function(_){m._appendCues(_,t.level),x.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},function(_){m._fallbackToIMSC1(t,b),p.logger.log("Failed to parse VTT cue: "+_),x.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:_})})},i._fallbackToIMSC1=function(t,b){var y=this,m=this.tracks[t.level];m.textCodec||Object(O.parseIMSC1)(b,this.initPTS[t.cc],this.timescale[t.cc],function(){m.textCodec=O.IMSC1_CODEC,y._parseIMSC1(t,b)},function(){m.textCodec="wvtt"})},i._appendCues=function(t,b){var y=this.hls;if(this.config.renderTextTracksNatively){var m=this.textTracks[b];if(m.mode==="disabled")return;t.forEach(function(h){return Object(e.addCueToTrack)(m,h)})}else{var x=this.tracks[b],_=x.default?"default":"subtitles"+b;y.trigger(C.Events.CUES_PARSED,{type:"subtitles",cues:t,track:_})}},i.onFragDecrypted=function(t,b){var y=b.frag;if(y.type===g.PlaylistLevelType.SUBTITLE){if(!Object(j.isFiniteNumber)(this.initPTS[y.cc])){this.unparsedVttFrags.push(b);return}this.onFragLoaded(C.Events.FRAG_LOADED,b)}},i.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},i.onFragParsingUserdata=function(t,b){var y=this.cea608Parser1,m=this.cea608Parser2;if(!this.enabled||!(y&&m))return;for(var x=0;x<b.samples.length;x++){var _=b.samples[x].bytes;if(_){var h=this.extractCea608Data(_);y.addData(b.samples[x].pts,h[0]),m.addData(b.samples[x].pts,h[1])}}},i.onBufferFlushing=function(t,b){var y=b.startOffset,m=b.endOffset,x=b.endOffsetSubtitles,_=b.type,h=this.media;if(!h||h.currentTime<m)return;if(!_||_==="video"){var d=this.captionsTracks;Object.keys(d).forEach(function(c){return Object(e.removeCuesInRange)(d[c],y,m)})}if(this.config.renderTextTracksNatively&&(y===0&&x!==void 0)){var l=this.textTracks;Object.keys(l).forEach(function(c){return Object(e.removeCuesInRange)(l[c],y,x)})}},i.extractCea608Data=function(t){for(var b=t[0]&31,y=2,m=[[],[]],x=0;x<b;x++){var _=t[y++],h=127&t[y++],d=127&t[y++],l=(4&_)!==0,c=3&_;if(h===0&&d===0)continue;l&&((c===0||c===1)&&(m[c].push(h),m[c].push(d)))}return m},s}();function a(s,i){return s&&s.label===i.name&&!(s.textTrack1||s.textTrack2)}function r(s,i,n,t){return Math.min(i,t)-Math.max(s,n)}function o(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(W,k){this.subtle=void 0,this.aesIV=void 0,this.subtle=W,this.aesIV=k}var R=C.prototype;return R.decrypt=function(k,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,k)},C}()},"./src/crypt/aes-decryptor.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"removePadding",function(){return C}),I.d(M,"default",function(){return R});var j=I("./src/utils/typed-array.ts");function C(W){var k=W.byteLength,e=k&&new DataView(W.buffer).getUint8(k-1);return e?Object(j.sliceUint8)(W,0,k-e):W}var R=function(){function W(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var k=W.prototype;return k.uint8ArrayToUint32Array_=function(O){for(var g=new DataView(O),p=new Uint32Array(4),u=0;u<4;u++)p[u]=g.getUint32(u*4);return p},k.initTable=function(){var O=this.sBox,g=this.invSBox,p=this.subMix,u=p[0],a=p[1],r=p[2],o=p[3],s=this.invSubMix,i=s[0],n=s[1],t=s[2],b=s[3],y=new Uint32Array(256),m=0,x=0,_=0;for(_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(_=0;_<256;_++){var h=x^x<<1^x<<2^x<<3^x<<4;h=h>>>8^h&255^99,O[m]=h,g[h]=m;var d=y[m],l=y[d],c=y[l],v=y[h]*257^h*16843008;u[m]=v<<24|v>>>8,a[m]=v<<16|v>>>16,r[m]=v<<8|v>>>24,o[m]=v,v=c*16843009^l*65537^d*257^m*16843008,i[h]=v<<24|v>>>8,n[h]=v<<16|v>>>16,t[h]=v<<8|v>>>24,b[h]=v,m?(m=d^y[y[y[c^d]]],x^=y[y[x]]):m=x=1}},k.expandKey=function(O){for(var g=this.uint8ArrayToUint32Array_(O),p=!0,u=0;u<g.length&&p;)p=g[u]===this.key[u],u++;if(p)return;this.key=g;var a=this.keySize=g.length;if(a!==4&&a!==6&&a!==8)throw new Error("Invalid aes key size="+a);var r=this.ksRows=(a+6+1)*4,o,s,i=this.keySchedule=new Uint32Array(r),n=this.invKeySchedule=new Uint32Array(r),t=this.sBox,b=this.rcon,y=this.invSubMix,m=y[0],x=y[1],_=y[2],h=y[3],d,l;for(o=0;o<r;o++){if(o<a){d=i[o]=g[o];continue}l=d,o%a===0?(l=l<<8|l>>>24,l=t[l>>>24]<<24|t[l>>>16&255]<<16|t[l>>>8&255]<<8|t[l&255],l^=b[o/a|0]<<24):a>6&&o%a===4&&(l=t[l>>>24]<<24|t[l>>>16&255]<<16|t[l>>>8&255]<<8|t[l&255]),i[o]=d=(i[o-a]^l)>>>0}for(s=0;s<r;s++)o=r-s,s&3?l=i[o]:l=i[o-4],s<4||o<=4?n[s]=l:n[s]=m[t[l>>>24]]^x[t[l>>>16&255]]^_[t[l>>>8&255]]^h[t[l&255]],n[s]=n[s]>>>0},k.networkToHostOrderSwap=function(O){return O<<24|(O&65280)<<8|(O&16711680)>>8|O>>>24},k.decrypt=function(O,g,p){for(var u=this.keySize+6,a=this.invKeySchedule,r=this.invSBox,o=this.invSubMix,s=o[0],i=o[1],n=o[2],t=o[3],b=this.uint8ArrayToUint32Array_(p),y=b[0],m=b[1],x=b[2],_=b[3],h=new Int32Array(O),d=new Int32Array(h.length),l,c,v,f,T,L,P,S,A,H,D,K,V,oe,le=this.networkToHostOrderSwap;g<h.length;){for(A=le(h[g]),H=le(h[g+1]),D=le(h[g+2]),K=le(h[g+3]),T=A^a[0],L=K^a[1],P=D^a[2],S=H^a[3],V=4,oe=1;oe<u;oe++)l=s[T>>>24]^i[L>>16&255]^n[P>>8&255]^t[S&255]^a[V],c=s[L>>>24]^i[P>>16&255]^n[S>>8&255]^t[T&255]^a[V+1],v=s[P>>>24]^i[S>>16&255]^n[T>>8&255]^t[L&255]^a[V+2],f=s[S>>>24]^i[T>>16&255]^n[L>>8&255]^t[P&255]^a[V+3],T=l,L=c,P=v,S=f,V=V+4;l=r[T>>>24]<<24^r[L>>16&255]<<16^r[P>>8&255]<<8^r[S&255]^a[V],c=r[L>>>24]<<24^r[P>>16&255]<<16^r[S>>8&255]<<8^r[T&255]^a[V+1],v=r[P>>>24]<<24^r[S>>16&255]<<16^r[T>>8&255]<<8^r[L&255]^a[V+2],f=r[S>>>24]<<24^r[T>>16&255]<<16^r[L>>8&255]<<8^r[P&255]^a[V+3],d[g]=le(l^y),d[g+1]=le(f^m),d[g+2]=le(v^x),d[g+3]=le(c^_),y=A,m=H,x=D,_=K,g=g+4}return d.buffer},W}()},"./src/crypt/decrypter.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return g});var j=I("./src/crypt/aes-crypto.ts"),C=I("./src/crypt/fast-aes-key.ts"),R=I("./src/crypt/aes-decryptor.ts"),W=I("./src/utils/logger.ts"),k=I("./src/utils/mp4-tools.ts"),e=I("./src/utils/typed-array.ts"),O=16,g=function(){function p(a,r,o){var s=o===void 0?{}:o,i=s.removePKCS7Padding,n=i===void 0?!0:i;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=a,this.config=r,this.removePKCS7Padding=n,n)try{var t=self.crypto;t&&(this.subtle=t.subtle||t.webkitSubtle)}catch(b){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var u=p.prototype;return u.destroy=function(){this.observer=null},u.isSync=function(){return this.config.enableSoftwareAES},u.flush=function(){var r=this.currentResult;if(!r){this.reset();return}var o=new Uint8Array(r);return this.reset(),this.removePKCS7Padding?Object(R.removePadding)(o):o},u.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},u.decrypt=function(r,o,s,i){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(r),o,s);var n=this.flush();n&&i(n.buffer)}else this.webCryptoDecrypt(new Uint8Array(r),o,s).then(i)},u.softwareDecrypt=function(r,o,s){var i=this.currentIV,n=this.currentResult,t=this.remainderData;this.logOnce("JS AES decrypt"),t&&(r=Object(k.appendUint8Array)(t,r),this.remainderData=null);var b=this.getValidChunk(r);if(!b.length)return null;i&&(s=i);var y=this.softwareDecrypter;y||(y=this.softwareDecrypter=new R.default),y.expandKey(o);var m=n;return this.currentResult=y.decrypt(b.buffer,0,s),this.currentIV=Object(e.sliceUint8)(b,-16).buffer,m||null},u.webCryptoDecrypt=function(r,o,s){var i=this,n=this.subtle;return(this.key!==o||!this.fastAesKey)&&(this.key=o,this.fastAesKey=new C.default(n,o)),this.fastAesKey.expandKey().then(function(t){if(!n)return Promise.reject(new Error("web crypto not initialized"));var b=new j.default(n,s);return b.decrypt(r.buffer,t)}).catch(function(t){return i.onWebCryptoError(t,r,o,s)})},u.onWebCryptoError=function(r,o,s,i){return W.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",r),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(o,s,i)},u.getValidChunk=function(r){var o=r,s=r.length-r.length%O;return s!==r.length&&(o=Object(e.sliceUint8)(r,0,s),this.remainderData=Object(e.sliceUint8)(r,s)),o},u.logOnce=function(r){if(!this.logEnabled)return;W.logger.log("[decrypter.ts]: "+r),this.logEnabled=!1},p}()},"./src/crypt/fast-aes-key.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(W,k){this.subtle=void 0,this.key=void 0,this.subtle=W,this.key=k}var R=C.prototype;return R.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},C}()},"./src/demux/aacdemuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/demux/base-audio-demuxer.ts"),C=I("./src/demux/adts.ts"),R=I("./src/utils/logger.ts"),W=I("./src/demux/id3.ts");function k(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,e(g,p)}function e(g,p){return e=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},e(g,p)}var O=function(g){k(p,g);function p(a,r){var o;return o=g.call(this)||this,o.observer=void 0,o.config=void 0,o.observer=a,o.config=r,o}var u=p.prototype;return u.resetInitSegment=function(r,o,s){g.prototype.resetInitSegment.call(this,r,o,s),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:r,duration:s,inputTimeScale:9e4,dropped:0}},p.probe=function(r){if(!r)return!1;for(var o=W.getID3Data(r,0)||[],s=o.length,i=r.length;s<i;s++)if(C.probe(r,s))return R.logger.log("ADTS sync word found !"),!0;return!1},u.canParse=function(r,o){return C.canParse(r,o)},u.appendFrame=function(r,o,s){C.initTrackConfig(r,this.observer,o,s,r.manifestCodec);var i=C.appendFrame(r,o,s,this.initPTS,this.frameIndex);if(i&&i.missing===0)return i},p}(j.default);O.minProbeByteLength=9,M.default=O},"./src/demux/adts.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"getAudioConfig",function(){return W}),I.d(M,"isHeaderPattern",function(){return k}),I.d(M,"getHeaderLength",function(){return e}),I.d(M,"getFullFrameLength",function(){return O}),I.d(M,"canGetFrameLength",function(){return g}),I.d(M,"isHeader",function(){return p}),I.d(M,"canParse",function(){return u}),I.d(M,"probe",function(){return a}),I.d(M,"initTrackConfig",function(){return r}),I.d(M,"getFrameDuration",function(){return o}),I.d(M,"parseFrameHeader",function(){return s}),I.d(M,"appendFrame",function(){return i});var j=I("./src/utils/logger.ts"),C=I("./src/errors.ts"),R=I("./src/events.ts");function W(n,t,b,y){var m,x,_,h,d=navigator.userAgent.toLowerCase(),l=y,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];m=((t[b+2]&192)>>>6)+1;var v=(t[b+2]&60)>>>2;if(v>c.length-1){n.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+v});return}return _=(t[b+2]&1)<<2,_|=(t[b+3]&192)>>>6,j.logger.log("manifest codec:"+y+", ADTS type:"+m+", samplingIndex:"+v),/firefox/i.test(d)?v>=6?(m=5,h=new Array(4),x=v-3):(m=2,h=new Array(2),x=v):d.indexOf("android")!==-1?(m=2,h=new Array(2),x=v):(m=5,h=new Array(4),y&&(y.indexOf("mp4a.40.29")!==-1||y.indexOf("mp4a.40.5")!==-1)||!y&&v>=6?x=v-3:((y&&y.indexOf("mp4a.40.2")!==-1&&(v>=6&&_===1||/vivaldi/i.test(d))||!y&&_===1)&&(m=2,h=new Array(2)),x=v)),h[0]=m<<3,h[0]|=(v&14)>>1,h[1]|=(v&1)<<7,h[1]|=_<<3,m===5&&(h[1]|=(x&14)>>1,h[2]=(x&1)<<7,h[2]|=2<<2,h[3]=0),{config:h,samplerate:c[v],channelCount:_,codec:"mp4a.40."+m,manifestCodec:l}}function k(n,t){return n[t]===255&&(n[t+1]&246)===240}function e(n,t){return n[t+1]&1?7:9}function O(n,t){return(n[t+3]&3)<<11|n[t+4]<<3|(n[t+5]&224)>>>5}function g(n,t){return t+5<n.length}function p(n,t){return t+1<n.length&&k(n,t)}function u(n,t){return g(n,t)&&k(n,t)&&O(n,t)<=n.length-t}function a(n,t){if(p(n,t)){var b=e(n,t);if(t+b>=n.length)return!1;var y=O(n,t);if(y<=b)return!1;var m=t+y;return m===n.length||p(n,m)}return!1}function r(n,t,b,y,m){if(!n.samplerate){var x=W(t,b,y,m);if(!x)return;n.config=x.config,n.samplerate=x.samplerate,n.channelCount=x.channelCount,n.codec=x.codec,n.manifestCodec=x.manifestCodec,j.logger.log("parsed codec:"+n.codec+", rate:"+x.samplerate+", channels:"+x.channelCount)}}function o(n){return 1024*9e4/n}function s(n,t,b,y,m){var x=e(n,t),_=O(n,t);if(_-=x,_>0){var h=b+y*m;return{headerLength:x,frameLength:_,stamp:h}}}function i(n,t,b,y,m){var x=o(n.samplerate),_=s(t,b,y,m,x);if(_){var h=_.frameLength,d=_.headerLength,l=_.stamp,c=d+h,v=Math.max(0,b+c-t.length),f;v?(f=new Uint8Array(c-d),f.set(t.subarray(b+d,t.length),0)):f=t.subarray(b+d,b+c);var T={unit:f,pts:l};return v||n.samples.push(T),{sample:T,length:c,missing:v}}}},"./src/demux/base-audio-demuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"initPTSFn",function(){return O});var j=I("./src/polyfills/number.ts"),C=I("./src/demux/id3.ts"),R=I("./src/demux/dummy-demuxed-track.ts"),W=I("./src/utils/mp4-tools.ts"),k=I("./src/utils/typed-array.ts"),e=function(){function g(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var p=g.prototype;return p.resetInitSegment=function(a,r,o){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},p.resetTimeStamp=function(){},p.resetContiguity=function(){},p.canParse=function(a,r){return!1},p.appendFrame=function(a,r,o){},p.demux=function(a,r){this.cachedData&&(a=Object(W.appendUint8Array)(this.cachedData,a),this.cachedData=null);var o=C.getID3Data(a,0),s=o?o.length:0,i,n,t=this._audioTrack,b=this._id3Track,y=o?C.getTimeStamp(o):void 0,m=a.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=O(y,r)),o&&o.length>0&&b.samples.push({pts:this.initPTS,dts:this.initPTS,data:o}),n=this.initPTS;s<m;){if(this.canParse(a,s)){var x=this.appendFrame(t,a,s);x?(this.frameIndex++,n=x.sample.pts,s+=x.length,i=s):s=m}else C.canParse(a,s)?(o=C.getID3Data(a,s),b.samples.push({pts:n,dts:n,data:o}),s+=o.length,i=s):s++;if(s===m&&i!==m){var _=Object(k.sliceUint8)(a,i);this.cachedData?this.cachedData=Object(W.appendUint8Array)(this.cachedData,_):this.cachedData=_}}return{audioTrack:t,avcTrack:Object(R.dummyTrack)(),id3Track:b,textTrack:Object(R.dummyTrack)()}},p.demuxSampleAes=function(a,r,o){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},p.flush=function(a){var r=this.cachedData;return r&&(this.cachedData=null,this.demux(r,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(R.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(R.dummyTrack)()}},p.destroy=function(){},g}(),O=function(p,u){return Object(j.isFiniteNumber)(p)?p*90:u*9e4};M.default=e},"./src/demux/chunk-cache.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function R(){this.chunks=[],this.dataLength=0}var W=R.prototype;return W.push=function(e){this.chunks.push(e),this.dataLength+=e.length},W.flush=function(){var e=this.chunks,O=this.dataLength,g;if(e.length)e.length===1?g=e[0]:g=C(e,O);else return new Uint8Array(0);return this.reset(),g},W.reset=function(){this.chunks.length=0,this.dataLength=0},R}();function C(R,W){for(var k=new Uint8Array(W),e=0,O=0;O<R.length;O++){var g=R[O];k.set(g,e),e+=g.length}return k}},"./src/demux/dummy-demuxed-track.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"dummyTrack",function(){return j});function j(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/logger.ts"),C=function(){function R(k){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=k,this.bytesAvailable=k.byteLength,this.word=0,this.bitsAvailable=0}var W=R.prototype;return W.loadWord=function(){var e=this.data,O=this.bytesAvailable,g=e.byteLength-O,p=new Uint8Array(4),u=Math.min(4,O);if(u===0)throw new Error("no bytes available");p.set(e.subarray(g,g+u)),this.word=new DataView(p.buffer).getUint32(0),this.bitsAvailable=u*8,this.bytesAvailable-=u},W.skipBits=function(e){var O;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,O=e>>3,e-=O>>3,this.bytesAvailable-=O,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},W.readBits=function(e){var O=Math.min(this.bitsAvailable,e),g=this.word>>>32-O;return e>32&&j.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=O,this.bitsAvailable>0?this.word<<=O:this.bytesAvailable>0&&this.loadWord(),O=e-O,O>0&&this.bitsAvailable?g<<O|this.readBits(O):g},W.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},W.skipUEG=function(){this.skipBits(1+this.skipLZ())},W.skipEG=function(){this.skipBits(1+this.skipLZ())},W.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},W.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},W.readBoolean=function(){return this.readBits(1)===1},W.readUByte=function(){return this.readBits(8)},W.readUShort=function(){return this.readBits(16)},W.readUInt=function(){return this.readBits(32)},W.skipScalingList=function(e){for(var O=8,g=8,p,u=0;u<e;u++)g!==0&&(p=this.readEG(),g=(O+p+256)%256),O=g===0?O:g},W.readSPS=function(){var e=0,O=0,g=0,p=0,u,a,r,o=this.readUByte.bind(this),s=this.readBits.bind(this),i=this.readUEG.bind(this),n=this.readBoolean.bind(this),t=this.skipBits.bind(this),b=this.skipEG.bind(this),y=this.skipUEG.bind(this),m=this.skipScalingList.bind(this);o();var x=o();if(s(5),t(3),o(),y(),x===100||x===110||x===122||x===244||x===44||x===83||x===86||x===118||x===128){var _=i();if(_===3&&t(1),y(),y(),t(1),n())for(a=_!==3?8:12,r=0;r<a;r++)n()&&(r<6?m(16):m(64))}y();var h=i();if(h===0)i();else if(h===1)for(t(1),b(),b(),u=i(),r=0;r<u;r++)b();y(),t(1);var d=i(),l=i(),c=s(1);c===0&&t(1),t(1),n()&&(e=i(),O=i(),g=i(),p=i());var v=[1,1];if(n()&&n()){var f=o();switch(f){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:{v=[o()<<8|o(),o()<<8|o()];break}}}return{width:Math.ceil((d+1)*16-e*2-O*2),height:(2-c)*(l+1)*16-(c?2:4)*(g+p),pixelRatio:v}},W.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},R}();M.default=C},"./src/demux/id3.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isHeader",function(){return j}),I.d(M,"isFooter",function(){return C}),I.d(M,"getID3Data",function(){return R}),I.d(M,"canParse",function(){return k}),I.d(M,"getTimeStamp",function(){return e}),I.d(M,"isTimeStampFrame",function(){return O}),I.d(M,"getID3Frames",function(){return p}),I.d(M,"decodeFrame",function(){return u}),I.d(M,"utf8ArrayToStr",function(){return i}),I.d(M,"testables",function(){return n});var j=function(m,x){return x+10<=m.length&&(m[x]===73&&m[x+1]===68&&m[x+2]===51&&(m[x+3]<255&&m[x+4]<255&&(m[x+6]<128&&m[x+7]<128&&m[x+8]<128&&m[x+9]<128)))},C=function(m,x){return x+10<=m.length&&(m[x]===51&&m[x+1]===68&&m[x+2]===73&&(m[x+3]<255&&m[x+4]<255&&(m[x+6]<128&&m[x+7]<128&&m[x+8]<128&&m[x+9]<128)))},R=function(m,x){for(var _=x,h=0;j(m,x);){h+=10;var d=W(m,x+6);h+=d,C(m,x+10)&&(h+=10),x+=h}return h>0?m.subarray(_,_+h):void 0},W=function(m,x){var _=0;return _=(m[x]&127)<<21,_|=(m[x+1]&127)<<14,_|=(m[x+2]&127)<<7,_|=m[x+3]&127,_},k=function(m,x){return j(m,x)&&W(m,x+6)+10<=m.length-x},e=function(m){for(var x=p(m),_=0;_<x.length;_++){var h=x[_];if(O(h))return s(h)}return},O=function(m){return m&&m.key==="PRIV"&&m.info==="com.apple.streaming.transportStreamTimestamp"},g=function(m){var x=String.fromCharCode(m[0],m[1],m[2],m[3]),_=W(m,4),h=10;return{type:x,size:_,data:m.subarray(h,h+_)}},p=function(m){for(var x=0,_=[];j(m,x);){var h=W(m,x+6);x+=10;for(var d=x+h;x+8<d;){var l=g(m.subarray(x)),c=u(l);c&&_.push(c),x+=l.size+10}C(m,x)&&(x+=10)}return _},u=function(m){return m.type==="PRIV"?a(m):m.type[0]==="W"?o(m):r(m)},a=function(m){if(m.size<2)return;var x=i(m.data,!0),_=new Uint8Array(m.data.subarray(x.length+1));return{key:m.type,info:x,data:_.buffer}},r=function(m){if(m.size<2)return;if(m.type==="TXXX"){var x=1,_=i(m.data.subarray(x),!0);x+=_.length+1;var h=i(m.data.subarray(x));return{key:m.type,info:_,data:h}}var d=i(m.data.subarray(1));return{key:m.type,data:d}},o=function(m){if(m.type==="WXXX"){if(m.size<2)return;var x=1,_=i(m.data.subarray(x),!0);x+=_.length+1;var h=i(m.data.subarray(x));return{key:m.type,info:_,data:h}}var d=i(m.data);return{key:m.type,data:d}},s=function(m){if(m.data.byteLength===8){var x=new Uint8Array(m.data),_=x[3]&1,h=(x[4]<<23)+(x[5]<<15)+(x[6]<<7)+x[7];return h/=45,_&&(h+=4772185884e-2),Math.round(h)}return},i=function(m,x){x===void 0&&(x=!1);var _=b();if(_){var h=_.decode(m);if(x){var d=h.indexOf("\0");return d!==-1?h.substring(0,d):h}return h.replace(/\0/g,"")}for(var l=m.length,c,v,f,T="",L=0;L<l;){if(c=m[L++],c===0&&x)return T;if(c===0||c===3)continue;switch(c>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:T+=String.fromCharCode(c);break;case 12:case 13:v=m[L++],T+=String.fromCharCode((c&31)<<6|v&63);break;case 14:v=m[L++],f=m[L++],T+=String.fromCharCode((c&15)<<12|(v&63)<<6|(f&63)<<0);break;default:}}return T},n={decodeTextFrame:r},t;function b(){return!t&&typeof self.TextDecoder!="undefined"&&(t=new self.TextDecoder("utf-8")),t}},"./src/demux/mp3demuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/demux/base-audio-demuxer.ts"),C=I("./src/demux/id3.ts"),R=I("./src/utils/logger.ts"),W=I("./src/demux/mpegaudio.ts");function k(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,e(g,p)}function e(g,p){return e=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},e(g,p)}var O=function(g){k(p,g);function p(){return g.apply(this,arguments)||this}var u=p.prototype;return u.resetInitSegment=function(r,o,s){g.prototype.resetInitSegment.call(this,r,o,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:r,duration:s,inputTimeScale:9e4,dropped:0}},p.probe=function(r){if(!r)return!1;for(var o=C.getID3Data(r,0)||[],s=o.length,i=r.length;s<i;s++)if(W.probe(r,s))return R.logger.log("MPEG Audio sync word found !"),!0;return!1},u.canParse=function(r,o){return W.canParse(r,o)},u.appendFrame=function(r,o,s){return this.initPTS===null?void 0:W.appendFrame(r,o,s,this.initPTS,this.frameIndex)},p}(j.default);O.minProbeByteLength=4,M.default=O},"./src/demux/mp4demuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/mp4-tools.ts"),C=I("./src/demux/dummy-demuxed-track.ts"),R=function(){function W(e,O){this.remainderData=null,this.config=void 0,this.config=O}var k=W.prototype;return k.resetTimeStamp=function(){},k.resetInitSegment=function(){},k.resetContiguity=function(){},W.probe=function(O){return Object(j.findBox)({data:O,start:0,end:Math.min(O.length,16384)},["moof"]).length>0},k.demux=function(O){var g=O,p=Object(C.dummyTrack)();if(this.config.progressive){this.remainderData&&(g=Object(j.appendUint8Array)(this.remainderData,O));var u=Object(j.segmentValidRange)(g);this.remainderData=u.remainder,p.samples=u.valid||new Uint8Array}else p.samples=g;return{audioTrack:Object(C.dummyTrack)(),avcTrack:p,id3Track:Object(C.dummyTrack)(),textTrack:Object(C.dummyTrack)()}},k.flush=function(){var O=Object(C.dummyTrack)();return O.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(C.dummyTrack)(),avcTrack:O,id3Track:Object(C.dummyTrack)(),textTrack:Object(C.dummyTrack)()}},k.demuxSampleAes=function(O,g,p){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},k.destroy=function(){},W}();R.minProbeByteLength=1024,M.default=R},"./src/demux/mpegaudio.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"appendFrame",function(){return e}),I.d(M,"parseHeader",function(){return O}),I.d(M,"isHeaderPattern",function(){return g}),I.d(M,"isHeader",function(){return p}),I.d(M,"canParse",function(){return u}),I.d(M,"probe",function(){return a});var j=null,C=[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],R=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],W=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],k=[0,1,1,4];function e(r,o,s,i,n){if(s+24>o.length)return;var t=O(o,s);if(t&&s+t.frameLength<=o.length){var b=t.samplesPerFrame*9e4/t.sampleRate,y=i+n*b,m={unit:o.subarray(s,s+t.frameLength),pts:y,dts:y};return r.config=[],r.channelCount=t.channelCount,r.samplerate=t.sampleRate,r.samples.push(m),{sample:m,length:t.frameLength,missing:0}}}function O(r,o){var s=r[o+1]>>3&3,i=r[o+1]>>1&3,n=r[o+2]>>4&15,t=r[o+2]>>2&3;if(s!==1&&n!==0&&n!==15&&t!==3){var b=r[o+2]>>1&1,y=r[o+3]>>6,m=s===3?3-i:i===3?3:4,x=C[m*14+n-1]*1e3,_=s===3?0:s===2?1:2,h=R[_*3+t],d=y===3?1:2,l=W[s][i],c=k[i],v=l*8*c,f=Math.floor(l*x/h+b)*c;if(j===null){var T=navigator.userAgent||"",L=T.match(/Chrome\/(\d+)/i);j=L?parseInt(L[1]):0}var P=!!j&&j<=87;return P&&i===2&&x>=224e3&&y===0&&(r[o+3]=r[o+3]|128),{sampleRate:h,channelCount:d,frameLength:f,samplesPerFrame:v}}}function g(r,o){return r[o]===255&&(r[o+1]&224)===224&&(r[o+1]&6)!==0}function p(r,o){return o+1<r.length&&g(r,o)}function u(r,o){var s=4;return g(r,o)&&s<=r.length-o}function a(r,o){if(o+1<r.length&&g(r,o)){var s=4,i=O(r,o),n=s;i!=null&&i.frameLength&&(n=i.frameLength);var t=o+n;return t===r.length||p(r,t)}return!1}},"./src/demux/sample-aes.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/crypt/decrypter.ts"),C=I("./src/demux/tsdemuxer.ts"),R=function(){function W(e,O,g){this.keyData=void 0,this.decrypter=void 0,this.keyData=g,this.decrypter=new j.default(e,O,{removePKCS7Padding:!1})}var k=W.prototype;return k.decryptBuffer=function(O,g){this.decrypter.decrypt(O,this.keyData.key.buffer,this.keyData.iv.buffer,g)},k.decryptAacSample=function(O,g,p,u){var a=O[g].unit,r=a.subarray(16,a.length-a.length%16),o=r.buffer.slice(r.byteOffset,r.byteOffset+r.length),s=this;this.decryptBuffer(o,function(i){var n=new Uint8Array(i);a.set(n,16),u||s.decryptAacSamples(O,g+1,p)})},k.decryptAacSamples=function(O,g,p){for(;;g++){if(g>=O.length){p();return}if(O[g].unit.length<32)continue;var u=this.decrypter.isSync();if(this.decryptAacSample(O,g,p,u),!u)return}},k.getAvcEncryptedData=function(O){for(var g=Math.floor((O.length-48)/160)*16+16,p=new Int8Array(g),u=0,a=32;a<=O.length-16;a+=160,u+=16)p.set(O.subarray(a,a+16),u);return p},k.getAvcDecryptedUnit=function(O,g){for(var p=new Uint8Array(g),u=0,a=32;a<=O.length-16;a+=160,u+=16)O.set(p.subarray(u,u+16),a);return O},k.decryptAvcSample=function(O,g,p,u,a,r){var o=Object(C.discardEPB)(a.data),s=this.getAvcEncryptedData(o),i=this;this.decryptBuffer(s.buffer,function(n){a.data=i.getAvcDecryptedUnit(o,n),r||i.decryptAvcSamples(O,g,p+1,u)})},k.decryptAvcSamples=function(O,g,p,u){if(O instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;g++,p=0){if(g>=O.length){u();return}for(var a=O[g].units;!(p>=a.length);p++){var r=a[p];if(r.data.length<=48||r.type!==1&&r.type!==5)continue;var o=this.decrypter.isSync();if(this.decryptAvcSample(O,g,p,u,r,o),!o)return}}},W}();M.default=R},"./src/demux/transmuxer-interface.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a});var j=I("./node_modules/webworkify-webpack/index.js"),C=I.n(j),R=I("./src/events.ts"),W=I("./src/demux/transmuxer.ts"),k=I("./src/utils/logger.ts"),e=I("./src/errors.ts"),O=I("./src/utils/mediasource-helper.ts"),g=I("./node_modules/eventemitter3/index.js"),p=I.n(g),u=Object(O.getMediaSource)()||{isTypeSupported:function(){return!1}},a=function(){function r(s,i,n,t){var b=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=s,this.id=i,this.onTransmuxComplete=n,this.onFlush=t;var y=s.config,m=function(l,c){c=c||{},c.frag=b.frag,c.id=b.id,s.trigger(l,c)};this.observer=new g.EventEmitter,this.observer.on(R.Events.FRAG_DECRYPTED,m),this.observer.on(R.Events.ERROR,m);var x={mp4:u.isTypeSupported("video/mp4"),mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"')},_=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){k.logger.log("demuxing in webworker");var h;try{h=this.worker=j("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),h.addEventListener("message",this.onwmsg),h.onerror=function(d){s.trigger(R.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(d.message+" ("+d.filename+":"+d.lineno+")")})},h.postMessage({cmd:"init",typeSupported:x,vendor:_,id:i,config:JSON.stringify(y)})}catch(d){k.logger.warn("Error in worker:",d),k.logger.error("Error while initializing DemuxerWorker, fallback to inline"),h&&self.URL.revokeObjectURL(h.objectURL),this.transmuxer=new W.default(this.observer,x,y,_,i),this.worker=null}}else this.transmuxer=new W.default(this.observer,x,y,_,i)}var o=r.prototype;return o.destroy=function(){var i=this.worker;if(i)i.removeEventListener("message",this.onwmsg),i.terminate(),this.worker=null;else{var n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.observer=null},o.push=function(i,n,t,b,y,m,x,_,h,d){var l=this;h.transmuxing.start=self.performance.now();var c=this.transmuxer,v=this.worker,f=m?m.start:y.start,T=y.decryptdata,L=this.frag,P=!(L&&y.cc===L.cc),S=!(L&&h.level===L.level),A=L?h.sn-L.sn:-1,H=this.part?h.part-this.part.index:1,D=!S&&(A===1||A===0&&H===1),K=self.performance.now();(S||A||y.stats.parsing.start===0)&&(y.stats.parsing.start=K),m&&(H||!D)&&(m.stats.parsing.start=K);var V=new W.TransmuxState(P,D,_,S,f);if(!D||P){k.logger.log("[transmuxer-interface, "+y.type+"]: Starting new transmux session for sn: "+h.sn+" p: "+h.part+" level: "+h.level+" id: "+h.id+`
|
|
discontinuity: `+P+`
|
|
trackSwitch: `+S+`
|
|
contiguous: `+D+`
|
|
accurateTimeOffset: `+_+`
|
|
timeOffset: `+f);var oe=new W.TransmuxConfig(t,b,n,x,d);this.configureTransmuxer(oe)}if(this.frag=y,this.part=m,v)v.postMessage({cmd:"demux",data:i,decryptdata:T,chunkMeta:h,state:V},i instanceof ArrayBuffer?[i]:[]);else if(c){var le=c.push(i,T,h,V);Object(W.isPromise)(le)?le.then(function(Ce){l.handleTransmuxComplete(Ce)}):this.handleTransmuxComplete(le)}},o.flush=function(i){var n=this;i.transmuxing.start=self.performance.now();var t=this.transmuxer,b=this.worker;if(b)b.postMessage({cmd:"flush",chunkMeta:i});else if(t){var y=t.flush(i);Object(W.isPromise)(y)?y.then(function(m){n.handleFlushResult(m,i)}):this.handleFlushResult(y,i)}},o.handleFlushResult=function(i,n){var t=this;i.forEach(function(b){t.handleTransmuxComplete(b)}),this.onFlush(n)},o.onWorkerMessage=function(i){var n=i.data,t=this.hls;switch(n.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(n.data);break}case"flush":{this.onFlush(n.data);break}default:{n.data=n.data||{},n.data.frag=this.frag,n.data.id=this.id,t.trigger(n.event,n.data);break}}},o.configureTransmuxer=function(i){var n=this.worker,t=this.transmuxer;n?n.postMessage({cmd:"configure",config:i}):t&&t.configure(i)},o.handleTransmuxComplete=function(i){i.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(i)},r}()},"./src/demux/transmuxer-worker.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return e});var j=I("./src/demux/transmuxer.ts"),C=I("./src/events.ts"),R=I("./src/utils/logger.ts"),W=I("./node_modules/eventemitter3/index.js"),k=I.n(W);function e(a){var r=new W.EventEmitter,o=function(i,n){a.postMessage({event:i,data:n})};r.on(C.Events.FRAG_DECRYPTED,o),r.on(C.Events.ERROR,o),a.addEventListener("message",function(s){var i=s.data;switch(i.cmd){case"init":{var n=JSON.parse(i.config);a.transmuxer=new j.default(r,i.typeSupported,n,i.vendor,i.id),Object(R.enableLogs)(n.debug),o("init",null);break}case"configure":{a.transmuxer.configure(i.config);break}case"demux":{var t=a.transmuxer.push(i.data,i.decryptdata,i.chunkMeta,i.state);Object(j.isPromise)(t)?t.then(function(m){O(a,m)}):O(a,t);break}case"flush":{var b=i.chunkMeta,y=a.transmuxer.flush(b);Object(j.isPromise)(y)?y.then(function(m){p(a,m,b)}):p(a,y,b);break}default:break}})}function O(a,r){if(u(r.remuxResult))return;var o=[],s=r.remuxResult,i=s.audio,n=s.video;i&&g(o,i),n&&g(o,n),a.postMessage({event:"transmuxComplete",data:r},o)}function g(a,r){r.data1&&a.push(r.data1.buffer),r.data2&&a.push(r.data2.buffer)}function p(a,r,o){r.forEach(function(s){O(a,s)}),a.postMessage({event:"flush",data:o})}function u(a){return!a.audio&&!a.video&&!a.text&&!a.id3&&!a.initSegment}},"./src/demux/transmuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return n}),I.d(M,"isPromise",function(){return y}),I.d(M,"TransmuxConfig",function(){return m}),I.d(M,"TransmuxState",function(){return x});var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/crypt/decrypter.ts"),W=I("./src/demux/aacdemuxer.ts"),k=I("./src/demux/mp4demuxer.ts"),e=I("./src/demux/tsdemuxer.ts"),O=I("./src/demux/mp3demuxer.ts"),g=I("./src/remux/mp4-remuxer.ts"),p=I("./src/remux/passthrough-remuxer.ts"),u=I("./src/demux/chunk-cache.ts"),a=I("./src/utils/mp4-tools.ts"),r=I("./src/utils/logger.ts"),o;try{o=self.performance.now.bind(self.performance)}catch(_){r.logger.debug("Unable to use Performance API on this environment"),o=self.Date.now}var s=[{demux:e.default,remux:g.default},{demux:k.default,remux:p.default},{demux:W.default,remux:g.default},{demux:O.default,remux:g.default}],i=1024;s.forEach(function(_){var h=_.demux;i=Math.max(i,h.minProbeByteLength)});var n=function(){function _(d,l,c,v,f){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 u.default,this.observer=d,this.typeSupported=l,this.config=c,this.vendor=v,this.id=f}var h=_.prototype;return h.configure=function(l){this.transmuxConfig=l,this.decrypter&&this.decrypter.reset()},h.push=function(l,c,v,f){var T=this,L=v.transmuxing;L.executeStart=o();var P=new Uint8Array(l),S=this.cache,A=this.config,H=this.currentTransmuxState,D=this.transmuxConfig;f&&(this.currentTransmuxState=f);var K=t(P,c);if(K&&K.method==="AES-128"){var V=this.getDecrypter();if(A.enableSoftwareAES){var oe=V.softwareDecrypt(P,K.key.buffer,K.iv.buffer);if(!oe)return L.executeEnd=o(),b(v);P=new Uint8Array(oe)}else return this.decryptionPromise=V.webCryptoDecrypt(P,K.key.buffer,K.iv.buffer).then(function(ze){var et=T.push(ze,null,v);return T.decryptionPromise=null,et}),this.decryptionPromise}var le=f||H,Ce=le.contiguous,xe=le.discontinuity,ie=le.trackSwitch,Se=le.accurateTimeOffset,Pe=le.timeOffset,de=D.audioCodec,$=D.videoCodec,Ne=D.defaultInitPts,lt=D.duration,it=D.initSegmentData;if((xe||ie)&&this.resetInitSegment(it,de,$,lt),xe&&this.resetInitialTimestamp(Ne),Ce||this.resetContiguity(),this.needsProbing(P,xe,ie)){if(S.dataLength){var Je=S.flush();P=Object(a.appendUint8Array)(Je,P)}this.configureTransmuxer(P,D)}var at=this.transmux(P,K,Pe,Se,v),Ue=this.currentTransmuxState;return Ue.contiguous=!0,Ue.discontinuity=!1,Ue.trackSwitch=!1,L.executeEnd=o(),at},h.flush=function(l){var c=this,v=l.transmuxing;v.executeStart=o();var f=this.decrypter,T=this.cache,L=this.currentTransmuxState,P=this.decryptionPromise;if(P)return P.then(function(){return c.flush(l)});var S=[],A=L.timeOffset;if(f){var H=f.flush();H&&S.push(this.push(H,null,l))}var D=T.dataLength;T.reset();var K=this.demuxer,V=this.remuxer;if(!K||!V)return D>=i&&this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),v.executeEnd=o(),[b(l)];var oe=K.flush(A);return y(oe)?oe.then(function(le){return c.flushRemux(S,le,l),S}):(this.flushRemux(S,oe,l),S)},h.flushRemux=function(l,c,v){var f=c.audioTrack,T=c.avcTrack,L=c.id3Track,P=c.textTrack,S=this.currentTransmuxState,A=S.accurateTimeOffset,H=S.timeOffset;r.logger.log("[transmuxer.ts]: Flushed fragment "+v.sn+(v.part>-1?" p: "+v.part:"")+" of level "+v.level);var D=this.remuxer.remux(f,T,L,P,H,A,!0,this.id);l.push({remuxResult:D,chunkMeta:v}),v.transmuxing.executeEnd=o()},h.resetInitialTimestamp=function(l){var c=this.demuxer,v=this.remuxer;if(!c||!v)return;c.resetTimeStamp(l),v.resetTimeStamp(l)},h.resetContiguity=function(){var l=this.demuxer,c=this.remuxer;if(!l||!c)return;l.resetContiguity(),c.resetNextTimestamp()},h.resetInitSegment=function(l,c,v,f){var T=this.demuxer,L=this.remuxer;if(!T||!L)return;T.resetInitSegment(c,v,f),L.resetInitSegment(l,c,v)},h.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},h.transmux=function(l,c,v,f,T){var L;return c&&c.method==="SAMPLE-AES"?L=this.transmuxSampleAes(l,c,v,f,T):L=this.transmuxUnencrypted(l,v,f,T),L},h.transmuxUnencrypted=function(l,c,v,f){var T=this.demuxer.demux(l,c,!1,!this.config.progressive),L=T.audioTrack,P=T.avcTrack,S=T.id3Track,A=T.textTrack,H=this.remuxer.remux(L,P,S,A,c,v,!1,this.id);return{remuxResult:H,chunkMeta:f}},h.transmuxSampleAes=function(l,c,v,f,T){var L=this;return this.demuxer.demuxSampleAes(l,c,v).then(function(P){var S=L.remuxer.remux(P.audioTrack,P.avcTrack,P.id3Track,P.textTrack,v,f,!1,L.id);return{remuxResult:S,chunkMeta:T}})},h.configureTransmuxer=function(l,c){for(var v=this.config,f=this.observer,T=this.typeSupported,L=this.vendor,P=c.audioCodec,S=c.defaultInitPts,A=c.duration,H=c.initSegmentData,D=c.videoCodec,K,V=0,oe=s.length;V<oe;V++)if(s[V].demux.probe(l)){K=s[V];break}K||(r.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),K={demux:k.default,remux:p.default});var le=this.demuxer,Ce=this.remuxer,xe=K.remux,ie=K.demux;(!Ce||!(Ce instanceof xe))&&(this.remuxer=new xe(f,v,T,L)),(!le||!(le instanceof ie))&&(this.demuxer=new ie(f,v,T),this.probe=ie.probe),this.resetInitSegment(H,P,D,A),this.resetInitialTimestamp(S)},h.needsProbing=function(l,c,v){return!this.demuxer||!this.remuxer||c||v},h.getDecrypter=function(){var l=this.decrypter;return l||(l=this.decrypter=new R.default(this.observer,this.config)),l},_}();function t(_,h){var d=null;return _.byteLength>0&&h!=null&&h.key!=null&&h.iv!==null&&h.method!=null&&(d=h),d}var b=function(h){return{remuxResult:{},chunkMeta:h}};function y(_){return"then"in _&&_.then instanceof Function}var m=function(h,d,l,c,v){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=h,this.videoCodec=d,this.initSegmentData=l,this.duration=c,this.defaultInitPts=v},x=function(h,d,l,c,v){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=h,this.contiguous=d,this.accurateTimeOffset=l,this.trackSwitch=c,this.timeOffset=v}},"./src/demux/tsdemuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"discardEPB",function(){return b});var j=I("./src/demux/adts.ts"),C=I("./src/demux/mpegaudio.ts"),R=I("./src/demux/exp-golomb.ts"),W=I("./src/demux/id3.ts"),k=I("./src/demux/sample-aes.ts"),e=I("./src/events.ts"),O=I("./src/utils/mp4-tools.ts"),g=I("./src/utils/logger.ts"),p=I("./src/errors.ts"),u={video:1,audio:2,id3:3,text:4},a=function(){function y(x,_,h){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=x,this.config=_,this.typeSupported=h}y.probe=function(_){var h=y.syncOffset(_);return h<0?!1:(h&&g.logger.warn("MPEG2-TS detected but first sync word found @ offset "+h+", junk ahead ?"),!0)},y.syncOffset=function(_){for(var h=Math.min(1e3,_.length-3*188),d=0;d<h;){if(_[d]===71&&_[d+188]===71&&_[d+2*188]===71)return d;d++}return-1},y.createTrack=function(_,h){return{container:_==="video"||_==="audio"?"video/mp2t":void 0,type:_,id:u[_],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:_==="audio"?h:void 0}};var m=y.prototype;return m.resetInitSegment=function(_,h,d){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=y.createTrack("video",d),this._audioTrack=y.createTrack("audio",d),this._id3Track=y.createTrack("id3",d),this._txtTrack=y.createTrack("text",d),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=_,this.videoCodec=h,this._duration=d},m.resetTimeStamp=function(){},m.resetContiguity=function(){var _=this._audioTrack,h=this._avcTrack,d=this._id3Track;_&&(_.pesData=null),h&&(h.pesData=null),d&&(d.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},m.demux=function(_,h,d,l){d===void 0&&(d=!1),l===void 0&&(l=!1),d||(this.sampleAes=null);var c,v=this._avcTrack,f=this._audioTrack,T=this._id3Track,L=v.pid,P=v.pesData,S=f.pid,A=T.pid,H=f.pesData,D=T.pesData,K=!1,V=this.pmtParsed,oe=this._pmtId,le=_.length;if(this.remainderData&&(_=Object(O.appendUint8Array)(this.remainderData,_),le=_.length,this.remainderData=null),le<188&&!l)return this.remainderData=_,{audioTrack:f,avcTrack:v,id3Track:T,textTrack:this._txtTrack};var Ce=Math.max(0,y.syncOffset(_));le-=(le+Ce)%188,le<_.byteLength&&!l&&(this.remainderData=new Uint8Array(_.buffer,le,_.buffer.byteLength-le));for(var xe=Ce;xe<le;xe+=188)if(_[xe]===71){var ie=!!(_[xe+1]&64),Se=((_[xe+1]&31)<<8)+_[xe+2],Pe=(_[xe+3]&48)>>4,de=void 0;if(Pe>1){if(de=xe+5+_[xe+4],de===xe+188)continue}else de=xe+4;switch(Se){case L:ie&&(P&&(c=i(P))&&this.parseAVCPES(c,!1),P={data:[],size:0}),P&&(P.data.push(_.subarray(de,xe+188)),P.size+=xe+188-de);break;case S:ie&&(H&&(c=i(H))&&(f.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),H={data:[],size:0}),H&&(H.data.push(_.subarray(de,xe+188)),H.size+=xe+188-de);break;case A:ie&&(D&&(c=i(D))&&this.parseID3PES(c),D={data:[],size:0}),D&&(D.data.push(_.subarray(de,xe+188)),D.size+=xe+188-de);break;case 0:ie&&(de+=_[de]+1),oe=this._pmtId=o(_,de);break;case oe:{ie&&(de+=_[de]+1);var $=s(_,de,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,d);L=$.avc,L>0&&(v.pid=L),S=$.audio,S>0&&(f.pid=S,f.isAAC=$.isAAC),A=$.id3,A>0&&(T.pid=A),K&&!V&&(g.logger.log("reparse from beginning"),K=!1,xe=Ce-188),V=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});v.pesData=P,f.pesData=H,T.pesData=D;var Ne={audioTrack:f,avcTrack:v,id3Track:T,textTrack:this._txtTrack};return l&&this.extractRemainingSamples(Ne),Ne},m.flush=function(){var _=this.remainderData;this.remainderData=null;var h;return _?h=this.demux(_,-1,!1,!0):h={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(h),this.sampleAes?this.decrypt(h,this.sampleAes):h},m.extractRemainingSamples=function(_){var h=_.audioTrack,d=_.avcTrack,l=_.id3Track,c=d.pesData,v=h.pesData,f=l.pesData,T;c&&(T=i(c))?(this.parseAVCPES(T,!0),d.pesData=null):d.pesData=c,v&&(T=i(v))?(h.isAAC?this.parseAACPES(T):this.parseMPEGPES(T),h.pesData=null):(v!=null&&v.size&&g.logger.log("last AAC PES packet truncated,might overlap between fragments"),h.pesData=v),f&&(T=i(f))?(this.parseID3PES(T),l.pesData=null):l.pesData=f},m.demuxSampleAes=function(_,h,d){var l=this.demux(_,d,!0,!this.config.progressive),c=this.sampleAes=new k.default(this.observer,this.config,h);return this.decrypt(l,c)},m.decrypt=function(_,h){return new Promise(function(d){var l=_.audioTrack,c=_.avcTrack;l.samples&&l.isAAC?h.decryptAacSamples(l.samples,0,function(){c.samples?h.decryptAvcSamples(c.samples,0,0,function(){d(_)}):d(_)}):c.samples&&h.decryptAvcSamples(c.samples,0,0,function(){d(_)})})},m.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},m.parseAVCPES=function(_,h){var d=this,l=this._avcTrack,c=this.parseAVCNALu(_.data),v=!1,f=this.avcSample,T,L=!1;_.data=null,f&&c.length&&!l.audFound&&(n(f,l),f=this.avcSample=r(!1,_.pts,_.dts,"")),c.forEach(function(P){switch(P.type){case 1:{T=!0,f||(f=d.avcSample=r(!0,_.pts,_.dts,"")),v&&(f.debug+="NDR "),f.frame=!0;var S=P.data;if(L&&S.length>4){var A=new R.default(S).readSliceType();(A===2||A===4||A===7||A===9)&&(f.key=!0)}break}case 5:T=!0,f||(f=d.avcSample=r(!0,_.pts,_.dts,"")),v&&(f.debug+="IDR "),f.key=!0,f.frame=!0;break;case 6:{T=!0,v&&f&&(f.debug+="SEI ");var H=new R.default(b(P.data));H.readUByte();for(var D=0,K=0,V=!1,oe=0;!V&&H.bytesAvailable>1;){D=0;do oe=H.readUByte(),D+=oe;while(oe===255);K=0;do oe=H.readUByte(),K+=oe;while(oe===255);if(D===4&&H.bytesAvailable!==0){V=!0;var le=H.readUByte();if(le===181){var Ce=H.readUShort();if(Ce===49){var xe=H.readUInt();if(xe===1195456820){var ie=H.readUByte();if(ie===3){for(var Se=H.readUByte(),Pe=H.readUByte(),de=31&Se,$=[Se,Pe],Ne=0;Ne<de;Ne++)$.push(H.readUByte()),$.push(H.readUByte()),$.push(H.readUByte());t(d._txtTrack.samples,{type:3,pts:_.pts,bytes:$})}}}}}else if(D===5&&H.bytesAvailable!==0){if(V=!0,K>16){for(var lt=[],it=0;it<16;it++)lt.push(H.readUByte().toString(16)),(it===3||it===5||it===7||it===9)&<.push("-");for(var Je=K-16,at=new Uint8Array(Je),Ue=0;Ue<Je;Ue++)at[Ue]=H.readUByte();t(d._txtTrack.samples,{pts:_.pts,payloadType:D,uuid:lt.join(""),userData:Object(W.utf8ArrayToStr)(at),userDataBytes:at})}}else if(K<H.bytesAvailable)for(var ze=0;ze<K;ze++)H.readUByte()}break}case 7:if(T=!0,L=!0,v&&f&&(f.debug+="SPS "),!l.sps){var et=new R.default(P.data),ee=et.readSPS();l.width=ee.width,l.height=ee.height,l.pixelRatio=ee.pixelRatio,l.sps=[P.data],l.duration=d._duration;for(var ge=P.data.subarray(1,4),_e="avc1.",we=0;we<3;we++){var Ve=ge[we].toString(16);Ve.length<2&&(Ve="0"+Ve),_e+=Ve}l.codec=_e}break;case 8:T=!0,v&&f&&(f.debug+="PPS "),l.pps||(l.pps=[P.data]);break;case 9:T=!1,l.audFound=!0,f&&n(f,l),f=d.avcSample=r(!1,_.pts,_.dts,v?"AUD ":"");break;case 12:T=!1;break;default:T=!1,f&&(f.debug+="unknown NAL "+P.type+" ");break}if(f&&T){var Ze=f.units;Ze.push(P)}}),h&&f&&(n(f,l),this.avcSample=null)},m.getLastNalUnit=function(){var _,h=this.avcSample,d;if(!h||h.units.length===0){var l=this._avcTrack.samples;h=l[l.length-1]}if((_=h)!==null&&_!==void 0&&_.units){var c=h.units;d=c[c.length-1]}return d},m.parseAVCNALu=function(_){var h=_.byteLength,d=this._avcTrack,l=d.naluState||0,c=l,v=[],f=0,T,L,P,S=-1,A=0;for(l===-1&&(S=0,A=_[0]&31,l=0,f=1);f<h;){if(T=_[f++],!l){l=T?0:1;continue}if(l===1){l=T?0:2;continue}if(!T)l=3;else if(T===1){if(S>=0){var H={data:_.subarray(S,f-l-1),type:A};v.push(H)}else{var D=this.getLastNalUnit();if(D&&(c&&f<=4-c&&(D.state&&(D.data=D.data.subarray(0,D.data.byteLength-c))),L=f-l-1,L>0)){var K=new Uint8Array(D.data.byteLength+L);K.set(D.data,0),K.set(_.subarray(0,L),D.data.byteLength),D.data=K,D.state=0}}f<h?(P=_[f]&31,S=f,A=P,l=0):l=-1}else l=0}if(S>=0&&l>=0){var V={data:_.subarray(S,h),type:A,state:l};v.push(V)}if(v.length===0){var oe=this.getLastNalUnit();if(oe){var le=new Uint8Array(oe.data.byteLength+_.byteLength);le.set(oe.data,0),le.set(_,oe.data.byteLength),oe.data=le}}return d.naluState=l,v},m.parseAACPES=function(_){var h=0,d=this._audioTrack,l=this.aacOverFlow,c=_.data;if(l){this.aacOverFlow=null;var v=l.sample.unit.byteLength,f=Math.min(l.missing,v),T=v-f;l.sample.unit.set(c.subarray(0,f),T),d.samples.push(l.sample),h=l.missing}var L,P;for(L=h,P=c.length;L<P-1&&!j.isHeader(c,L);L++);if(L!==h){var S,A;if(L<P-1?(S="AAC PES did not start with ADTS header,offset:"+L,A=!1):(S="no ADTS header found in AAC PES",A=!0),g.logger.warn("parsing error:"+S),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:A,reason:S}),A)return}j.initTrackConfig(d,this.observer,c,L,this.audioCodec);var H;if(_.pts!==void 0)H=_.pts;else if(l){var D=j.getFrameDuration(d.samplerate);H=l.sample.pts+D}else{g.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var K=0;L<P;)if(j.isHeader(c,L)){if(L+5<P){var V=j.appendFrame(d,c,L,H,K);if(V)if(V.missing)this.aacOverFlow=V;else{L+=V.length,K++;continue}}break}else L++},m.parseMPEGPES=function(_){var h=_.data,d=h.length,l=0,c=0,v=_.pts;if(v===void 0){g.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;c<d;)if(C.isHeader(h,c)){var f=C.appendFrame(this._audioTrack,h,c,v,l);if(f)c+=f.length,l++;else break}else c++},m.parseID3PES=function(_){if(_.pts===void 0){g.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(_)},y}();a.minProbeByteLength=188;function r(y,m,x,_){return{key:y,frame:!1,pts:m,dts:x,units:[],debug:_,length:0}}function o(y,m){return(y[m+10]&31)<<8|y[m+11]}function s(y,m,x,_){var h={audio:-1,avc:-1,id3:-1,isAAC:!0},d=(y[m+1]&15)<<8|y[m+2],l=m+3+d-4,c=(y[m+10]&15)<<8|y[m+11];for(m+=12+c;m<l;){var v=(y[m+1]&31)<<8|y[m+2];switch(y[m]){case 207:if(!_){g.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:h.audio===-1&&(h.audio=v);break;case 21:h.id3===-1&&(h.id3=v);break;case 219:if(!_){g.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:h.avc===-1&&(h.avc=v);break;case 3:case 4:x?h.audio===-1&&(h.audio=v,h.isAAC=!1):g.logger.log("MPEG audio found, not supported in this browser");break;case 36:g.logger.warn("Unsupported HEVC stream type found");break;default:break}m+=((y[m+3]&15)<<8|y[m+4])+5}return h}function i(y){var m=0,x,_,h,d,l,c=y.data;if(!y||y.size===0)return null;for(;c[0].length<19&&c.length>1;){var v=new Uint8Array(c[0].length+c[1].length);v.set(c[0]),v.set(c[1],c[0].length),c[0]=v,c.splice(1,1)}x=c[0];var f=(x[0]<<16)+(x[1]<<8)+x[2];if(f===1){if(_=(x[4]<<8)+x[5],_&&_>y.size-6)return null;var T=x[7];T&192&&(d=(x[9]&14)*536870912+(x[10]&255)*4194304+(x[11]&254)*16384+(x[12]&255)*128+(x[13]&254)/2,T&64?(l=(x[14]&14)*536870912+(x[15]&255)*4194304+(x[16]&254)*16384+(x[17]&255)*128+(x[18]&254)/2,d-l>60*9e4&&(g.logger.warn(Math.round((d-l)/9e4)+"s delta between PTS and DTS, align them"),d=l)):l=d),h=x[8];var L=h+9;if(y.size<=L)return null;y.size-=L;for(var P=new Uint8Array(y.size),S=0,A=c.length;S<A;S++){x=c[S];var H=x.byteLength;if(L)if(L>H){L-=H;continue}else x=x.subarray(L),H-=L,L=0;P.set(x,m),m+=H}return _&&(_-=h+3),{data:P,pts:d,dts:l,len:_}}return null}function n(y,m){if(y.units.length&&y.frame){if(y.pts===void 0){var x=m.samples,_=x.length;if(_){var h=x[_-1];y.pts=h.pts,y.dts=h.dts}else{m.dropped++;return}}m.samples.push(y)}y.debug.length&&g.logger.log(y.pts+"/"+y.dts+":"+y.debug)}function t(y,m){var x=y.length;if(x>0){if(m.pts>=y[x-1].pts)y.push(m);else for(var _=x-1;_>=0;_--)if(m.pts<y[_].pts){y.splice(_,0,m);break}}else y.push(m)}function b(y){for(var m=y.byteLength,x=[],_=1;_<m-2;)y[_]===0&&y[_+1]===0&&y[_+2]===3?(x.push(_+2),_+=2):_++;if(x.length===0)return y;var h=m-x.length,d=new Uint8Array(h),l=0;for(_=0;_<h;l++,_++)l===x[0]&&(l++,x.shift()),d[_]=y[l];return d}M.default=a},"./src/errors.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"ErrorTypes",function(){return j}),I.d(M,"ErrorDetails",function(){return C});var j;(function(R){R.NETWORK_ERROR="networkError",R.MEDIA_ERROR="mediaError",R.KEY_SYSTEM_ERROR="keySystemError",R.MUX_ERROR="muxError",R.OTHER_ERROR="otherError"})(j||(j={}));var C;(function(R){R.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",R.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",R.KEY_SYSTEM_NO_SESSION="keySystemNoSession",R.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",R.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",R.MANIFEST_LOAD_ERROR="manifestLoadError",R.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",R.MANIFEST_PARSING_ERROR="manifestParsingError",R.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",R.LEVEL_EMPTY_ERROR="levelEmptyError",R.LEVEL_LOAD_ERROR="levelLoadError",R.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",R.LEVEL_SWITCH_ERROR="levelSwitchError",R.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",R.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",R.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",R.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",R.FRAG_LOAD_ERROR="fragLoadError",R.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",R.FRAG_DECRYPT_ERROR="fragDecryptError",R.FRAG_PARSING_ERROR="fragParsingError",R.REMUX_ALLOC_ERROR="remuxAllocError",R.KEY_LOAD_ERROR="keyLoadError",R.KEY_LOAD_TIMEOUT="keyLoadTimeOut",R.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",R.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",R.BUFFER_APPEND_ERROR="bufferAppendError",R.BUFFER_APPENDING_ERROR="bufferAppendingError",R.BUFFER_STALLED_ERROR="bufferStalledError",R.BUFFER_FULL_ERROR="bufferFullError",R.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",R.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",R.INTERNAL_EXCEPTION="internalException",R.INTERNAL_ABORTED="aborted",R.UNKNOWN="unknown"})(C||(C={}))},"./src/events.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"Events",function(){return j});var j;(function(C){C.MEDIA_ATTACHING="hlsMediaAttaching",C.MEDIA_ATTACHED="hlsMediaAttached",C.MEDIA_DETACHING="hlsMediaDetaching",C.MEDIA_DETACHED="hlsMediaDetached",C.BUFFER_RESET="hlsBufferReset",C.BUFFER_CODECS="hlsBufferCodecs",C.BUFFER_CREATED="hlsBufferCreated",C.BUFFER_APPENDING="hlsBufferAppending",C.BUFFER_APPENDED="hlsBufferAppended",C.BUFFER_EOS="hlsBufferEos",C.BUFFER_FLUSHING="hlsBufferFlushing",C.BUFFER_FLUSHED="hlsBufferFlushed",C.MANIFEST_LOADING="hlsManifestLoading",C.MANIFEST_LOADED="hlsManifestLoaded",C.MANIFEST_PARSED="hlsManifestParsed",C.LEVEL_SWITCHING="hlsLevelSwitching",C.LEVEL_SWITCHED="hlsLevelSwitched",C.LEVEL_LOADING="hlsLevelLoading",C.LEVEL_LOADED="hlsLevelLoaded",C.LEVEL_UPDATED="hlsLevelUpdated",C.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",C.LEVELS_UPDATED="hlsLevelsUpdated",C.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",C.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",C.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",C.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",C.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",C.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",C.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",C.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",C.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",C.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",C.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",C.CUES_PARSED="hlsCuesParsed",C.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",C.INIT_PTS_FOUND="hlsInitPtsFound",C.FRAG_LOADING="hlsFragLoading",C.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",C.FRAG_LOADED="hlsFragLoaded",C.FRAG_DECRYPTED="hlsFragDecrypted",C.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",C.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",C.FRAG_PARSING_METADATA="hlsFragParsingMetadata",C.FRAG_PARSED="hlsFragParsed",C.FRAG_BUFFERED="hlsFragBuffered",C.FRAG_CHANGED="hlsFragChanged",C.FPS_DROP="hlsFpsDrop",C.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",C.ERROR="hlsError",C.DESTROYING="hlsDestroying",C.KEY_LOADING="hlsKeyLoading",C.KEY_LOADED="hlsKeyLoaded",C.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",C.BACK_BUFFER_REACHED="hlsBackBufferReached"})(j||(j={}))},"./src/hls.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return y});var j=I("./node_modules/url-toolkit/src/url-toolkit.js"),C=I.n(j),R=I("./src/loader/playlist-loader.ts"),W=I("./src/loader/key-loader.ts"),k=I("./src/controller/id3-track-controller.ts"),e=I("./src/controller/latency-controller.ts"),O=I("./src/controller/level-controller.ts"),g=I("./src/controller/fragment-tracker.ts"),p=I("./src/controller/stream-controller.ts"),u=I("./src/is-supported.ts"),a=I("./src/utils/logger.ts"),r=I("./src/config.ts"),o=I("./node_modules/eventemitter3/index.js"),s=I.n(o),i=I("./src/events.ts"),n=I("./src/errors.ts");function t(m,x){for(var _=0;_<x.length;_++){var h=x[_];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}function b(m,x,_){return x&&t(m.prototype,x),_&&t(m,_),m}var y=function(){m.isSupported=function(){return Object(u.isSupported)()};function m(_){_===void 0&&(_={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new o.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var h=this.config=Object(r.mergeConfig)(m.DefaultConfig,_);this.userConfig=_,Object(a.enableLogs)(h.debug),this._autoLevelCapping=-1,h.progressive&&Object(r.enableStreamingMode)(h);var d=h.abrController,l=h.bufferController,c=h.capLevelController,v=h.fpsController,f=this.abrController=new d(this),T=this.bufferController=new l(this),L=this.capLevelController=new c(this),P=new v(this),S=new R.default(this),A=new W.default(this),H=new k.default(this),D=this.levelController=new O.default(this),K=new g.FragmentTracker(this),V=this.streamController=new p.default(this,K);L.setStreamController(V),P.setStreamController(V);var oe=[D,V];this.networkControllers=oe;var le=[S,A,f,T,L,P,H,K];this.audioTrackController=this.createController(h.audioTrackController,null,oe),this.createController(h.audioStreamController,K,oe),this.subtitleTrackController=this.createController(h.subtitleTrackController,null,oe),this.createController(h.subtitleStreamController,K,oe),this.createController(h.timelineController,null,le),this.emeController=this.createController(h.emeController,null,le),this.cmcdController=this.createController(h.cmcdController,null,le),this.latencyController=this.createController(e.default,null,le),this.coreComponents=le}var x=m.prototype;return x.createController=function(h,d,l){if(h){var c=d?new h(this,d):new h(this);return l&&l.push(c),c}return null},x.on=function(h,d,l){l===void 0&&(l=this),this._emitter.on(h,d,l)},x.once=function(h,d,l){l===void 0&&(l=this),this._emitter.once(h,d,l)},x.removeAllListeners=function(h){this._emitter.removeAllListeners(h)},x.off=function(h,d,l,c){l===void 0&&(l=this),this._emitter.off(h,d,l,c)},x.listeners=function(h){return this._emitter.listeners(h)},x.emit=function(h,d,l){return this._emitter.emit(h,d,l)},x.trigger=function(h,d){if(this.config.debug)return this.emit(h,h,d);try{return this.emit(h,h,d)}catch(l){a.logger.error("An internal error happened while handling event "+h+'. Error message: "'+l.message+'". Here is a stacktrace:',l),this.trigger(i.Events.ERROR,{type:n.ErrorTypes.OTHER_ERROR,details:n.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:h,error:l})}return!1},x.listenerCount=function(h){return this._emitter.listenerCount(h)},x.destroy=function(){a.logger.log("destroy"),this.trigger(i.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(h){return h.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(h){return h.destroy()}),this.coreComponents.length=0},x.attachMedia=function(h){a.logger.log("attachMedia"),this._media=h,this.trigger(i.Events.MEDIA_ATTACHING,{media:h})},x.detachMedia=function(){a.logger.log("detachMedia"),this.trigger(i.Events.MEDIA_DETACHING,void 0),this._media=null},x.loadSource=function(h){this.stopLoad();var d=this.media,l=this.url,c=this.url=j.buildAbsoluteURL(self.location.href,h,{alwaysNormalize:!0});a.logger.log("loadSource:"+c),d&&l&&l!==c&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(d)),this.trigger(i.Events.MANIFEST_LOADING,{url:h})},x.startLoad=function(h){h===void 0&&(h=-1),a.logger.log("startLoad("+h+")"),this.networkControllers.forEach(function(d){d.startLoad(h)})},x.stopLoad=function(){a.logger.log("stopLoad"),this.networkControllers.forEach(function(h){h.stopLoad()})},x.swapAudioCodec=function(){a.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},x.recoverMediaError=function(){a.logger.log("recoverMediaError");var h=this._media;this.detachMedia(),h&&this.attachMedia(h)},x.removeLevel=function(h,d){d===void 0&&(d=0),this.levelController.removeLevel(h,d)},b(m,[{key:"levels",get:function(){var h=this.levelController.levels;return h||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(h){a.logger.log("set currentLevel:"+h),this.loadLevel=h,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(h){a.logger.log("set nextLevel:"+h),this.levelController.manualLevel=h,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(h){a.logger.log("set loadLevel:"+h),this.levelController.manualLevel=h}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(h){this.levelController.nextLoadLevel=h}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(h){a.logger.log("set firstLevel:"+h),this.levelController.firstLevel=h}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(h){a.logger.log("set startLevel:"+h),h!==-1&&(h=Math.max(h,this.minAutoLevel)),this.levelController.startLevel=h}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(h){var d=!!h;d!==this.config.capLevelToPlayerSize&&(d?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=d)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(h){this._autoLevelCapping!==h&&(a.logger.log("set autoLevelCapping:"+h),this._autoLevelCapping=h)}},{key:"bandwidthEstimate",get:function(){var h=this.abrController.bwEstimator;return h?h.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var h=this.levels,d=this.config.minAutoBitrate;if(!h)return 0;for(var l=h.length,c=0;c<l;c++)if(h[c].maxBitrate>d)return c;return 0}},{key:"maxAutoLevel",get:function(){var h=this.levels,d=this.autoLevelCapping,l;return d===-1&&h&&h.length?l=h.length-1:l=d,l}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(h){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,h)}},{key:"audioTracks",get:function(){var h=this.audioTrackController;return h?h.audioTracks:[]}},{key:"audioTrack",get:function(){var h=this.audioTrackController;return h?h.audioTrack:-1},set:function(h){var d=this.audioTrackController;d&&(d.audioTrack=h)}},{key:"subtitleTracks",get:function(){var h=this.subtitleTrackController;return h?h.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var h=this.subtitleTrackController;return h?h.subtitleTrack:-1},set:function(h){var d=this.subtitleTrackController;d&&(d.subtitleTrack=h)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var h=this.subtitleTrackController;return h?h.subtitleDisplay:!1},set:function(h){var d=this.subtitleTrackController;d&&(d.subtitleDisplay=h)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(h){this.config.lowLatencyMode=h}},{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 i.Events}},{key:"ErrorTypes",get:function(){return n.ErrorTypes}},{key:"ErrorDetails",get:function(){return n.ErrorDetails}},{key:"DefaultConfig",get:function(){return m.defaultConfig?m.defaultConfig:r.hlsDefaultConfig},set:function(h){m.defaultConfig=h}}]),m}();y.defaultConfig=void 0},"./src/is-supported.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isSupported",function(){return R}),I.d(M,"changeTypeSupported",function(){return W});var j=I("./src/utils/mediasource-helper.ts");function C(){return self.SourceBuffer||self.WebKitSourceBuffer}function R(){var k=Object(j.getMediaSource)();if(!k)return!1;var e=C(),O=k&&typeof k.isTypeSupported=="function"&&k.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),g=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!O&&!!g}function W(){var k,e=C();return typeof(e==null||((k=e.prototype)===null||k===void 0)?void 0:k.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a}),I.d(M,"LoadError",function(){return o});var j=I("./src/polyfills/number.ts"),C=I("./src/errors.ts");function R(s,i){s.prototype=Object.create(i.prototype),s.prototype.constructor=s,g(s,i)}function W(s){var i=typeof Map=="function"?new Map:void 0;return W=function(t){if(t===null||!O(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(t))return i.get(t);i.set(t,b)}function b(){return k(t,arguments,p(this).constructor)}return b.prototype=Object.create(t.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g(b,t)},W(s)}function k(s,i,n){return e()?k=Reflect.construct:k=function(b,y,m){var x=[null];x.push.apply(x,y);var _=Function.bind.apply(b,x),h=new _;return m&&g(h,m.prototype),h},k.apply(null,arguments)}function e(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(s){return!1}}function O(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function g(s,i){return g=Object.setPrototypeOf||function(t,b){return t.__proto__=b,t},g(s,i)}function p(s){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p(s)}var u=Math.pow(2,17),a=function(){function s(n){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=n}var i=s.prototype;return i.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},i.abort=function(){this.loader&&this.loader.abort()},i.load=function(t,b){var y=this,m=t.url;if(!m)return Promise.reject(new o({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,networkDetails:null},"Fragment does not have a "+(m?"part list":"url")));this.abort();var x=this.config,_=x.fLoader,h=x.loader;return new Promise(function(d,l){y.loader&&y.loader.destroy();var c=y.loader=t.loader=_?new _(x):new h(x),v=r(t),f={timeout:x.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:x.fragLoadingMaxRetryTimeout,highWaterMark:u};t.stats=c.stats,c.load(v,f,{onSuccess:function(L,P,S,A){y.resetLoader(t,c),d({frag:t,part:null,payload:L.data,networkDetails:A})},onError:function(L,P,S){y.resetLoader(t,c),l(new o({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:L,networkDetails:S}))},onAbort:function(L,P,S){y.resetLoader(t,c),l(new o({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,networkDetails:S}))},onTimeout:function(L,P,S){y.resetLoader(t,c),l(new o({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,networkDetails:S}))},onProgress:function(L,P,S,A){b&&b({frag:t,part:null,payload:S,networkDetails:A})}})})},i.loadPart=function(t,b,y){var m=this;this.abort();var x=this.config,_=x.fLoader,h=x.loader;return new Promise(function(d,l){m.loader&&m.loader.destroy();var c=m.loader=t.loader=_?new _(x):new h(x),v=r(t,b),f={timeout:x.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:x.fragLoadingMaxRetryTimeout,highWaterMark:u};b.stats=c.stats,c.load(v,f,{onSuccess:function(L,P,S,A){m.resetLoader(t,c),m.updateStatsFromPart(t,b);var H={frag:t,part:b,payload:L.data,networkDetails:A};y(H),d(H)},onError:function(L,P,S){m.resetLoader(t,c),l(new o({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:b,response:L,networkDetails:S}))},onAbort:function(L,P,S){t.stats.aborted=b.stats.aborted,m.resetLoader(t,c),l(new o({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,part:b,networkDetails:S}))},onTimeout:function(L,P,S){m.resetLoader(t,c),l(new o({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:b,networkDetails:S}))}})})},i.updateStatsFromPart=function(t,b){var y=t.stats,m=b.stats,x=m.total;if(y.loaded+=m.loaded,x){var _=Math.round(t.duration/b.duration),h=Math.min(Math.round(y.loaded/x),_),d=_-h,l=d*Math.round(y.loaded/h);y.total=y.loaded+l}else y.total=Math.max(y.loaded,y.total);var c=y.loading,v=m.loading;c.start?c.first+=v.first-v.start:(c.start=v.start,c.first=v.first),c.end=v.end},i.resetLoader=function(t,b){t.loader=null,this.loader===b&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),b.destroy()},s}();function r(s,i){i===void 0&&(i=null);var n=i||s,t={frag:s,part:i,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},b=n.byteRangeStartOffset,y=n.byteRangeEndOffset;return Object(j.isFiniteNumber)(b)&&Object(j.isFiniteNumber)(y)&&(t.rangeStart=b,t.rangeEnd=y),t}var o=function(s){R(i,s);function i(n){for(var t,b=arguments.length,y=new Array(b>1?b-1:0),m=1;m<b;m++)y[m-1]=arguments[m];return t=s.call.apply(s,[this].concat(y))||this,t.data=void 0,t.data=n,t}return i}(W(Error))},"./src/loader/fragment.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"ElementaryStreamTypes",function(){return a}),I.d(M,"BaseSegment",function(){return r}),I.d(M,"Fragment",function(){return o}),I.d(M,"Part",function(){return s});var j=I("./src/polyfills/number.ts"),C=I("./node_modules/url-toolkit/src/url-toolkit.js"),R=I.n(C),W=I("./src/utils/logger.ts"),k=I("./src/loader/level-key.ts"),e=I("./src/loader/load-stats.ts");function O(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,g(i,n)}function g(i,n){return g=Object.setPrototypeOf||function(b,y){return b.__proto__=y,b},g(i,n)}function p(i,n){for(var t=0;t<n.length;t++){var b=n[t];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(i,b.key,b)}}function u(i,n,t){return n&&p(i.prototype,n),t&&p(i,t),i}var a;(function(i){i.AUDIO="audio",i.VIDEO="video",i.AUDIOVIDEO="audiovideo"})(a||(a={}));var r=function(){function i(t){var b;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(b={},b[a.AUDIO]=null,b[a.VIDEO]=null,b[a.AUDIOVIDEO]=null,b),this.baseurl=t}var n=i.prototype;return n.setByteRange=function(b,y){var m=b.split("@",2),x=[];m.length===1?x[0]=y?y.byteRangeEndOffset:0:x[0]=parseInt(m[1]),x[1]=parseInt(m[0])+x[0],this._byteRange=x},u(i,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(C.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(b){this._url=b}}]),i}(),o=function(i){O(n,i);function n(b,y){var m;return m=i.call(this,y)||this,m._decryptdata=null,m.rawProgramDateTime=null,m.programDateTime=null,m.tagList=[],m.duration=0,m.sn=0,m.levelkey=void 0,m.type=void 0,m.loader=null,m.level=-1,m.cc=0,m.startPTS=void 0,m.endPTS=void 0,m.appendedPTS=void 0,m.startDTS=void 0,m.endDTS=void 0,m.start=0,m.deltaPTS=void 0,m.maxStartPTS=void 0,m.minEndPTS=void 0,m.stats=new e.LoadStats,m.urlId=0,m.data=void 0,m.bitrateTest=!1,m.title=null,m.initSegment=null,m.type=b,m}var t=n.prototype;return t.createInitializationVector=function(y){for(var m=new Uint8Array(16),x=12;x<16;x++)m[x]=y>>8*(15-x)&255;return m},t.setDecryptDataFromLevelKey=function(y,m){var x=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(x=k.LevelKey.fromURI(y.uri),x.method=y.method,x.iv=this.createInitializationVector(m),x.keyFormat="identity"),x},t.setElementaryStreamInfo=function(y,m,x,_,h,d){d===void 0&&(d=!1);var l=this.elementaryStreams,c=l[y];if(!c){l[y]={startPTS:m,endPTS:x,startDTS:_,endDTS:h,partial:d};return}c.startPTS=Math.min(c.startPTS,m),c.endPTS=Math.max(c.endPTS,x),c.startDTS=Math.min(c.startDTS,_),c.endDTS=Math.max(c.endDTS,h)},t.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[a.AUDIO]=null,y[a.VIDEO]=null,y[a.AUDIOVIDEO]=null},u(n,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var y=this.sn;typeof y!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&W.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),y=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,y)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(j.isFiniteNumber)(this.programDateTime))return null;var y=Object(j.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+y*1e3}},{key:"encrypted",get:function(){var y;return!!((y=this.decryptdata)!==null&&y!==void 0&&y.keyFormat&&this.decryptdata.uri)}}]),n}(r),s=function(i){O(n,i);function n(t,b,y,m,x){var _;_=i.call(this,y)||this,_.fragOffset=0,_.duration=0,_.gap=!1,_.independent=!1,_.relurl=void 0,_.fragment=void 0,_.index=void 0,_.stats=new e.LoadStats,_.duration=t.decimalFloatingPoint("DURATION"),_.gap=t.bool("GAP"),_.independent=t.bool("INDEPENDENT"),_.relurl=t.enumeratedString("URI"),_.fragment=b,_.index=m;var h=t.enumeratedString("BYTERANGE");return h&&_.setByteRange(h,x),x&&(_.fragOffset=x.fragOffset+x.duration),_}return u(n,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var b=this.elementaryStreams;return!!(b.audio||b.video||b.audiovideo)}}]),n}(r)},"./src/loader/key-loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return W});var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/utils/logger.ts"),W=function(){function k(O){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=O,this._registerListeners()}var e=k.prototype;return e._registerListeners=function(){this.hls.on(j.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(j.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var g in this.loaders){var p=this.loaders[g];p&&p.destroy()}this.loaders={}},e.onKeyLoading=function(g,p){var u=p.frag,a=u.type,r=this.loaders[a];if(!u.decryptdata){R.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var o=u.decryptdata.uri;if(o!==this.decrypturl||this.decryptkey===null){var s=this.hls.config;if(r&&(R.logger.warn("abort previous key loader for type:"+a),r.abort()),!o){R.logger.warn("key uri is falsy");return}var i=s.loader,n=u.loader=this.loaders[a]=new i(s);this.decrypturl=o,this.decryptkey=null;var t={url:o,frag:u,responseType:"arraybuffer"},b={timeout:s.fragLoadingTimeOut,maxRetry:0,retryDelay:s.fragLoadingRetryDelay,maxRetryDelay:s.fragLoadingMaxRetryTimeout,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};n.load(t,b,y)}else this.decryptkey&&(u.decryptdata.key=this.decryptkey,this.hls.trigger(j.Events.KEY_LOADED,{frag:u}))},e.loadsuccess=function(g,p,u){var a=u.frag;if(!a.decryptdata){R.logger.error("after key load, decryptdata unset");return}this.decryptkey=a.decryptdata.key=new Uint8Array(g.data),a.loader=null,delete this.loaders[a.type],this.hls.trigger(j.Events.KEY_LOADED,{frag:a})},e.loaderror=function(g,p){var u=p.frag,a=u.loader;a&&a.abort(),delete this.loaders[u.type],this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:u,response:g})},e.loadtimeout=function(g,p){var u=p.frag,a=u.loader;a&&a.abort(),delete this.loaders[u.type],this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:u})},k}()},"./src/loader/level-details.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"LevelDetails",function(){return k});var j=I("./src/polyfills/number.ts");function C(e,O){for(var g=0;g<O.length;g++){var p=O[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}function R(e,O,g){return O&&C(e.prototype,O),g&&C(e,g),e}var W=10,k=function(){function e(g){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=g}var O=e.prototype;return O.reloaded=function(p){if(!p){this.advanced=!0,this.updated=!0;return}var u=this.lastPartSn-p.lastPartSn,a=this.lastPartIndex-p.lastPartIndex;this.updated=this.endSN!==p.endSN||!!a||!!u,this.advanced=this.endSN>p.endSN||u>0||u===0&&a>0,this.updated||this.advanced?this.misses=Math.floor(p.misses*.6):this.misses=p.misses+1,this.availabilityDelay=p.availabilityDelay},R(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(j.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||W}},{key:"drift",get:function(){var p=this.driftEndTime-this.driftStartTime;if(p>0){var u=this.driftEnd-this.driftStart;return u*1e3/p}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var p;return(p=this.fragments)!==null&&p!==void 0&&p.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 p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"LevelKey",function(){return k});var j=I("./node_modules/url-toolkit/src/url-toolkit.js"),C=I.n(j);function R(e,O){for(var g=0;g<O.length;g++){var p=O[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}function W(e,O,g){return O&&R(e.prototype,O),g&&R(e,g),e}var k=function(){e.fromURL=function(g,p){return new e(g,p)},e.fromURI=function(g){return new e(g)};function e(O,g){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,g?this._uri=Object(j.buildAbsoluteURL)(O,g,{alwaysNormalize:!0}):this._uri=O}return W(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"LoadStats",function(){return j});var j=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return n});var j=I("./src/polyfills/number.ts"),C=I("./node_modules/url-toolkit/src/url-toolkit.js"),R=I.n(C),W=I("./src/loader/fragment.ts"),k=I("./src/loader/level-details.ts"),e=I("./src/loader/level-key.ts"),O=I("./src/utils/attr-list.ts"),g=I("./src/utils/logger.ts"),p=I("./src/utils/codecs.ts"),u=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,a=/#EXT-X-MEDIA:(.*)/g,r=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),o=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),s=/\.(mp4|m4s|m4v|m4a)$/i;function i(x){var _,h;return s.test((_=(h=C.parseURL(x))===null||h===void 0?void 0:h.path)!=null?_:"")}var n=function(){function x(){}return x.findGroup=function(h,d){for(var l=0;l<h.length;l++){var c=h[l];if(c.id===d)return c}},x.convertAVC1ToAVCOTI=function(h){var d=h.split(".");if(d.length>2){var l=d.shift()+".";return l+=parseInt(d.shift()).toString(16),l+=("000"+parseInt(d.shift()).toString(16)).substr(-4),l}return h},x.resolve=function(h,d){return C.buildAbsoluteURL(d,h,{alwaysNormalize:!0})},x.parseMasterPlaylist=function(h,d){var l=[],c={},v=!1;u.lastIndex=0;for(var f;(f=u.exec(h))!=null;)if(f[1]){var T=new O.AttrList(f[1]),L={attrs:T,bitrate:T.decimalInteger("AVERAGE-BANDWIDTH")||T.decimalInteger("BANDWIDTH"),name:T.NAME,url:x.resolve(f[2],d)},P=T.decimalResolution("RESOLUTION");P&&(L.width=P.width,L.height=P.height),t((T.CODECS||"").split(/[ ,]+/).filter(function(A){return A}),L),L.videoCodec&&L.videoCodec.indexOf("avc1")!==-1&&(L.videoCodec=x.convertAVC1ToAVCOTI(L.videoCodec)),l.push(L)}else if(f[3]){var S=new O.AttrList(f[3]);S["DATA-ID"]&&(v=!0,c[S["DATA-ID"]]=S)}return{levels:l,sessionData:v?c:null}},x.parseMasterPlaylistMedia=function(h,d,l,c){c===void 0&&(c=[]);var v,f=[],T=0;for(a.lastIndex=0;(v=a.exec(h))!==null;){var L=new O.AttrList(v[1]);if(L.TYPE===l){var P={attrs:L,bitrate:0,id:T++,groupId:L["GROUP-ID"],instreamId:L["INSTREAM-ID"],name:L.NAME||L.LANGUAGE||"",type:l,default:L.bool("DEFAULT"),autoselect:L.bool("AUTOSELECT"),forced:L.bool("FORCED"),lang:L.LANGUAGE,url:L.URI?x.resolve(L.URI,d):""};if(c.length){var S=x.findGroup(c,P.groupId)||c[0];b(P,S,"audioCodec"),b(P,S,"textCodec")}f.push(P)}}return f},x.parseLevelPlaylist=function(h,d,l,c,v){var f=new k.LevelDetails(d),T=f.fragments,L=null,P=0,S=0,A=0,H=0,D=null,K=new W.Fragment(c,d),V,oe,le,Ce=-1,xe=!1;for(r.lastIndex=0,f.m3u8=h;(V=r.exec(h))!==null;){xe&&(xe=!1,K=new W.Fragment(c,d),K.start=A,K.sn=P,K.cc=H,K.level=l,L&&(K.initSegment=L,K.rawProgramDateTime=L.rawProgramDateTime));var ie=V[1];if(ie){K.duration=parseFloat(ie);var Se=(" "+V[2]).slice(1);K.title=Se||null,K.tagList.push(Se?["INF",ie,Se]:["INF",ie])}else if(V[3])Object(j.isFiniteNumber)(K.duration)&&(K.start=A,le&&(K.levelkey=le),K.sn=P,K.level=l,K.cc=H,K.urlId=v,T.push(K),K.relurl=(" "+V[3]).slice(1),m(K,D),D=K,A+=K.duration,P++,S=0,xe=!0);else if(V[4]){var Pe=(" "+V[4]).slice(1);D?K.setByteRange(Pe,D):K.setByteRange(Pe)}else if(V[5])K.rawProgramDateTime=(" "+V[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Ce===-1&&(Ce=T.length);else{if(V=V[0].match(o),!V){g.logger.warn("No matches on slow regex match for level playlist!");continue}for(oe=1;oe<V.length&&!(typeof V[oe]!="undefined");oe++);var de=(" "+V[oe]).slice(1),$=(" "+V[oe+1]).slice(1),Ne=V[oe+2]?(" "+V[oe+2]).slice(1):"";switch(de){case"PLAYLIST-TYPE":f.type=$.toUpperCase();break;case"MEDIA-SEQUENCE":P=f.startSN=parseInt($);break;case"SKIP":{var lt=new O.AttrList($),it=lt.decimalInteger("SKIPPED-SEGMENTS");if(Object(j.isFiniteNumber)(it)){f.skippedSegments=it;for(var Je=it;Je--;)T.unshift(null);P+=it}var at=lt.enumeratedString("RECENTLY-REMOVED-DATERANGES");at&&(f.recentlyRemovedDateranges=at.split(" "));break}case"TARGETDURATION":f.targetduration=parseFloat($);break;case"VERSION":f.version=parseInt($);break;case"EXTM3U":break;case"ENDLIST":f.live=!1;break;case"#":($||Ne)&&K.tagList.push(Ne?[$,Ne]:[$]);break;case"DIS":H++;case"GAP":K.tagList.push([de]);break;case"BITRATE":K.tagList.push([de,$]);break;case"DISCONTINUITY-SEQ":H=parseInt($);break;case"KEY":{var Ue,ze=new O.AttrList($),et=ze.enumeratedString("METHOD"),ee=ze.URI,ge=ze.hexadecimalInteger("IV"),_e=ze.enumeratedString("KEYFORMATVERSIONS"),we=ze.enumeratedString("KEYID"),Ve=(Ue=ze.enumeratedString("KEYFORMAT"))!=null?Ue:"identity",Ze=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Ze.indexOf(Ve)>-1){g.logger.warn("Keyformat "+Ve+" is not supported from the manifest");continue}else if(Ve!=="identity")continue;et&&(le=e.LevelKey.fromURL(d,ee),ee&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(et)>=0&&(le.method=et,le.keyFormat=Ve,we&&(le.keyID=we),_e&&(le.keyFormatVersions=_e),le.iv=ge));break}case"START":{var rt=new O.AttrList($),$e=rt.decimalFloatingPoint("TIME-OFFSET");Object(j.isFiniteNumber)($e)&&(f.startTimeOffset=$e);break}case"MAP":{var ft=new O.AttrList($);K.relurl=ft.URI,ft.BYTERANGE&&K.setByteRange(ft.BYTERANGE),K.level=l,K.sn="initSegment",le&&(K.levelkey=le),K.initSegment=null,L=K,xe=!0;break}case"SERVER-CONTROL":{var ht=new O.AttrList($);f.canBlockReload=ht.bool("CAN-BLOCK-RELOAD"),f.canSkipUntil=ht.optionalFloat("CAN-SKIP-UNTIL",0),f.canSkipDateRanges=f.canSkipUntil>0&&ht.bool("CAN-SKIP-DATERANGES"),f.partHoldBack=ht.optionalFloat("PART-HOLD-BACK",0),f.holdBack=ht.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var ye=new O.AttrList($);f.partTarget=ye.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ae=f.partList;Ae||(Ae=f.partList=[]);var ke=S>0?Ae[Ae.length-1]:void 0,He=S++,Ie=new W.Part(new O.AttrList($),K,d,He,ke);Ae.push(Ie),K.duration+=Ie.duration;break}case"PRELOAD-HINT":{var Le=new O.AttrList($);f.preloadHint=Le;break}case"RENDITION-REPORT":{var fe=new O.AttrList($);f.renditionReports=f.renditionReports||[],f.renditionReports.push(fe);break}default:g.logger.warn("line parsed but not handled: "+V);break}}}D&&!D.relurl?(T.pop(),A-=D.duration,f.partList&&(f.fragmentHint=D)):f.partList&&(m(K,D),K.cc=H,f.fragmentHint=K);var re=T.length,ae=T[0],Y=T[re-1];if(A+=f.skippedSegments*f.targetduration,A>0&&re&&Y){f.averagetargetduration=A/re;var J=Y.sn;f.endSN=J!=="initSegment"?J:0,ae&&(f.startCC=ae.cc,ae.initSegment||f.fragments.every(function(Z){return Z.relurl&&i(Z.relurl)})&&(g.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new W.Fragment(c,d),K.relurl=Y.relurl,K.level=l,K.sn="initSegment",ae.initSegment=K,f.needSidxRanges=!0))}else f.endSN=0,f.startCC=0;return f.fragmentHint&&(A+=f.fragmentHint.duration),f.totalduration=A,f.endCC=H,Ce>0&&y(T,Ce),f},x}();function t(x,_){["video","audio","text"].forEach(function(h){var d=x.filter(function(c){return Object(p.isCodecType)(c,h)});if(d.length){var l=d.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});_[h+"Codec"]=l.length>0?l[0]:d[0],x=x.filter(function(c){return d.indexOf(c)===-1})}}),_.unknownCodecs=x}function b(x,_,h){var d=_[h];d&&(x[h]=d)}function y(x,_){for(var h=x[_],d=_;d--;){var l=x[d];if(!l)return;l.programDateTime=h.programDateTime-l.duration*1e3,h=l}}function m(x,_){x.rawProgramDateTime?x.programDateTime=Date.parse(x.rawProgramDateTime):_!=null&&_.programDateTime&&(x.programDateTime=_.endProgramDateTime),Object(j.isFiniteNumber)(x.programDateTime)||(x.programDateTime=null,x.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/events.ts"),R=I("./src/errors.ts"),W=I("./src/utils/logger.ts"),k=I("./src/utils/mp4-tools.ts"),e=I("./src/loader/m3u8-parser.ts"),O=I("./src/types/loader.ts"),g=I("./src/utils/attr-list.ts");function p(r){var o=r.type;switch(o){case O.PlaylistContextType.AUDIO_TRACK:return O.PlaylistLevelType.AUDIO;case O.PlaylistContextType.SUBTITLE_TRACK:return O.PlaylistLevelType.SUBTITLE;default:return O.PlaylistLevelType.MAIN}}function u(r,o){var s=r.url;return(s===void 0||s.indexOf("data:")===0)&&(s=o.url),s}var a=function(){function r(s){this.hls=void 0,this.loaders=Object.create(null),this.hls=s,this.registerListeners()}var o=r.prototype;return o.registerListeners=function(){var i=this.hls;i.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.on(C.Events.LEVEL_LOADING,this.onLevelLoading,this),i.on(C.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),i.on(C.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},o.unregisterListeners=function(){var i=this.hls;i.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.off(C.Events.LEVEL_LOADING,this.onLevelLoading,this),i.off(C.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),i.off(C.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},o.createInternalLoader=function(i){var n=this.hls.config,t=n.pLoader,b=n.loader,y=t||b,m=new y(n);return i.loader=m,this.loaders[i.type]=m,m},o.getInternalLoader=function(i){return this.loaders[i.type]},o.resetInternalLoader=function(i){this.loaders[i]&&delete this.loaders[i]},o.destroyInternalLoaders=function(){for(var i in this.loaders){var n=this.loaders[i];n&&n.destroy(),this.resetInternalLoader(i)}},o.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},o.onManifestLoading=function(i,n){var t=n.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:O.PlaylistContextType.MANIFEST,url:t,deliveryDirectives:null})},o.onLevelLoading=function(i,n){var t=n.id,b=n.level,y=n.url,m=n.deliveryDirectives;this.load({id:t,groupId:null,level:b,responseType:"text",type:O.PlaylistContextType.LEVEL,url:y,deliveryDirectives:m})},o.onAudioTrackLoading=function(i,n){var t=n.id,b=n.groupId,y=n.url,m=n.deliveryDirectives;this.load({id:t,groupId:b,level:null,responseType:"text",type:O.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:m})},o.onSubtitleTrackLoading=function(i,n){var t=n.id,b=n.groupId,y=n.url,m=n.deliveryDirectives;this.load({id:t,groupId:b,level:null,responseType:"text",type:O.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:m})},o.load=function(i){var n,t=this.hls.config,b=this.getInternalLoader(i);if(b){var y=b.context;if(y&&y.url===i.url){W.logger.trace("[playlist-loader]: playlist request ongoing");return}W.logger.log("[playlist-loader]: aborting previous loader for type: "+i.type),b.abort()}var m,x,_,h;switch(i.type){case O.PlaylistContextType.MANIFEST:m=t.manifestLoadingMaxRetry,x=t.manifestLoadingTimeOut,_=t.manifestLoadingRetryDelay,h=t.manifestLoadingMaxRetryTimeout;break;case O.PlaylistContextType.LEVEL:case O.PlaylistContextType.AUDIO_TRACK:case O.PlaylistContextType.SUBTITLE_TRACK:m=0,x=t.levelLoadingTimeOut;break;default:m=t.levelLoadingMaxRetry,x=t.levelLoadingTimeOut,_=t.levelLoadingRetryDelay,h=t.levelLoadingMaxRetryTimeout;break}if(b=this.createInternalLoader(i),(n=i.deliveryDirectives)!==null&&n!==void 0&&n.part){var d;if(i.type===O.PlaylistContextType.LEVEL&&i.level!==null?d=this.hls.levels[i.level].details:i.type===O.PlaylistContextType.AUDIO_TRACK&&i.id!==null?d=this.hls.audioTracks[i.id].details:i.type===O.PlaylistContextType.SUBTITLE_TRACK&&i.id!==null&&(d=this.hls.subtitleTracks[i.id].details),d){var l=d.partTarget,c=d.targetduration;l&&c&&(x=Math.min(Math.max(l*3,c*.8)*1e3,x))}}var v={timeout:x,maxRetry:m,retryDelay:_,maxRetryDelay:h,highWaterMark:0},f={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};b.load(i,v,f)},o.loadsuccess=function(i,n,t,b){if(b===void 0&&(b=null),t.isSidxRequest){this.handleSidxRequest(i,t),this.handlePlaylistLoaded(i,n,t,b);return}this.resetInternalLoader(t.type);var y=i.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(i,t,"no EXTM3U delimiter",b);return}n.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(i,n,t,b):this.handleMasterPlaylist(i,n,t,b)},o.loaderror=function(i,n,t){t===void 0&&(t=null),this.handleNetworkError(n,t,!1,i)},o.loadtimeout=function(i,n,t){t===void 0&&(t=null),this.handleNetworkError(n,t,!0)},o.handleMasterPlaylist=function(i,n,t,b){var y=this.hls,m=i.data,x=u(i,t),_=e.default.parseMasterPlaylist(m,x),h=_.levels,d=_.sessionData;if(!h.length){this.handleManifestParsingError(i,t,"no level found in manifest",b);return}var l=h.map(function(P){return{id:P.attrs.AUDIO,audioCodec:P.audioCodec}}),c=h.map(function(P){return{id:P.attrs.SUBTITLES,textCodec:P.textCodec}}),v=e.default.parseMasterPlaylistMedia(m,x,"AUDIO",l),f=e.default.parseMasterPlaylistMedia(m,x,"SUBTITLES",c),T=e.default.parseMasterPlaylistMedia(m,x,"CLOSED-CAPTIONS");if(v.length){var L=v.some(function(P){return!P.url});!L&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(W.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),v.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new g.AttrList({}),bitrate:0,url:""}))}y.trigger(C.Events.MANIFEST_LOADED,{levels:h,audioTracks:v,subtitles:f,captions:T,url:x,stats:n,networkDetails:b,sessionData:d})},o.handleTrackOrLevelPlaylist=function(i,n,t,b){var y=this.hls,m=t.id,x=t.level,_=t.type,h=u(i,t),d=Object(j.isFiniteNumber)(m)?m:0,l=Object(j.isFiniteNumber)(x)?x:d,c=p(t),v=e.default.parseLevelPlaylist(i.data,h,l,c,d);if(!v.fragments.length){y.trigger(C.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:h,reason:"no fragments found in level",level:typeof t.level=="number"?t.level:void 0});return}if(_===O.PlaylistContextType.MANIFEST){var f={attrs:new g.AttrList({}),bitrate:0,details:v,name:"",url:h};y.trigger(C.Events.MANIFEST_LOADED,{levels:[f],audioTracks:[],url:h,stats:n,networkDetails:b,sessionData:null})}if(n.parsing.end=performance.now(),v.needSidxRanges){var T,L=(T=v.fragments[0].initSegment)===null||T===void 0?void 0:T.url;this.load({url:L,isSidxRequest:!0,type:_,level:x,levelDetails:v,id:m,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}t.levelDetails=v,this.handlePlaylistLoaded(i,n,t,b)},o.handleSidxRequest=function(i,n){var t=Object(k.parseSegmentIndex)(new Uint8Array(i.data));if(!t)return;var b=t.references,y=n.levelDetails;b.forEach(function(m,x){var _=m.info,h=y.fragments[x];h.byteRange.length===0&&h.setByteRange(String(1+_.end-_.start)+"@"+String(_.start)),h.initSegment&&h.initSegment.setByteRange(String(t.moovEndOffset)+"@0")})},o.handleManifestParsingError=function(i,n,t,b){this.hls.trigger(C.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:n.type===O.PlaylistContextType.MANIFEST,url:i.url,reason:t,response:i,context:n,networkDetails:b})},o.handleNetworkError=function(i,n,t,b){t===void 0&&(t=!1),W.logger.warn("[playlist-loader]: A network "+(t?"timeout":"error")+" occurred while loading "+i.type+" level: "+i.level+" id: "+i.id+' group-id: "'+i.groupId+'"');var y=R.ErrorDetails.UNKNOWN,m=!1,x=this.getInternalLoader(i);switch(i.type){case O.PlaylistContextType.MANIFEST:y=t?R.ErrorDetails.MANIFEST_LOAD_TIMEOUT:R.ErrorDetails.MANIFEST_LOAD_ERROR,m=!0;break;case O.PlaylistContextType.LEVEL:y=t?R.ErrorDetails.LEVEL_LOAD_TIMEOUT:R.ErrorDetails.LEVEL_LOAD_ERROR,m=!1;break;case O.PlaylistContextType.AUDIO_TRACK:y=t?R.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:R.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,m=!1;break;case O.PlaylistContextType.SUBTITLE_TRACK:y=t?R.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:R.ErrorDetails.SUBTITLE_LOAD_ERROR,m=!1;break}x&&this.resetInternalLoader(i.type);var _={type:R.ErrorTypes.NETWORK_ERROR,details:y,fatal:m,url:i.url,loader:x,context:i,networkDetails:n};b&&(_.response=b),this.hls.trigger(C.Events.ERROR,_)},o.handlePlaylistLoaded=function(i,n,t,b){var y=t.type,m=t.level,x=t.id,_=t.groupId,h=t.loader,d=t.levelDetails,l=t.deliveryDirectives;if(!(d!=null&&d.targetduration)){this.handleManifestParsingError(i,t,"invalid target duration",b);return}if(!h)return;d.live&&(h.getCacheAge&&(d.ageHeader=h.getCacheAge()||0),(!h.getCacheAge||isNaN(d.ageHeader))&&(d.ageHeader=0));switch(y){case O.PlaylistContextType.MANIFEST:case O.PlaylistContextType.LEVEL:this.hls.trigger(C.Events.LEVEL_LOADED,{details:d,level:m||0,id:x||0,stats:n,networkDetails:b,deliveryDirectives:l});break;case O.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(C.Events.AUDIO_TRACK_LOADED,{details:d,id:x||0,groupId:_||"",stats:n,networkDetails:b,deliveryDirectives:l});break;case O.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(C.Events.SUBTITLE_TRACK_LOADED,{details:d,id:x||0,groupId:_||"",stats:n,networkDetails:b,deliveryDirectives:l});break}},r}();M.default=a},"./src/polyfills/number.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isFiniteNumber",function(){return j}),I.d(M,"MAX_SAFE_INTEGER",function(){return C});var j=Number.isFinite||function(R){return typeof R=="number"&&isFinite(R)},C=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Q,M,I){"use strict";I.r(M);var j=function(){function C(){}return C.getSilentFrame=function(W,k){switch(W){case"mp4a.40.2":if(k===1)return new Uint8Array([0,200,0,128,35,128]);if(k===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(k===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(k===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(k===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(k===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(k===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(k===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(k===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},C}();M.default=j},"./src/remux/mp4-generator.ts":function(Q,M,I){"use strict";I.r(M);var j=Math.pow(2,32)-1,C=function(){function R(){}return R.init=function(){R.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 k;for(k in R.types)R.types.hasOwnProperty(k)&&(R.types[k]=[k.charCodeAt(0),k.charCodeAt(1),k.charCodeAt(2),k.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),O=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]);R.HDLR_TYPES={video:e,audio:O};var g=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),p=new Uint8Array([0,0,0,0,0,0,0,0]);R.STTS=R.STSC=R.STCO=p,R.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),R.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),R.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var u=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);R.FTYP=R.box(R.types.ftyp,u,r,u,a),R.DINF=R.box(R.types.dinf,R.box(R.types.dref,g))},R.box=function(k){for(var e=8,O=arguments.length,g=new Array(O>1?O-1:0),p=1;p<O;p++)g[p-1]=arguments[p];for(var u=g.length,a=u;u--;)e+=g[u].byteLength;var r=new Uint8Array(e);for(r[0]=e>>24&255,r[1]=e>>16&255,r[2]=e>>8&255,r[3]=e&255,r.set(k,4),u=0,e=8;u<a;u++)r.set(g[u],e),e+=g[u].byteLength;return r},R.hdlr=function(k){return R.box(R.types.hdlr,R.HDLR_TYPES[k])},R.mdat=function(k){return R.box(R.types.mdat,k)},R.mdhd=function(k,e){e*=k;var O=Math.floor(e/(j+1)),g=Math.floor(e%(j+1));return R.box(R.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,k>>24&255,k>>16&255,k>>8&255,k&255,O>>24,O>>16&255,O>>8&255,O&255,g>>24,g>>16&255,g>>8&255,g&255,85,196,0,0]))},R.mdia=function(k){return R.box(R.types.mdia,R.mdhd(k.timescale,k.duration),R.hdlr(k.type),R.minf(k))},R.mfhd=function(k){return R.box(R.types.mfhd,new Uint8Array([0,0,0,0,k>>24,k>>16&255,k>>8&255,k&255]))},R.minf=function(k){return k.type==="audio"?R.box(R.types.minf,R.box(R.types.smhd,R.SMHD),R.DINF,R.stbl(k)):R.box(R.types.minf,R.box(R.types.vmhd,R.VMHD),R.DINF,R.stbl(k))},R.moof=function(k,e,O){return R.box(R.types.moof,R.mfhd(k),R.traf(O,e))},R.moov=function(k){for(var e=k.length,O=[];e--;)O[e]=R.trak(k[e]);return R.box.apply(null,[R.types.moov,R.mvhd(k[0].timescale,k[0].duration)].concat(O).concat(R.mvex(k)))},R.mvex=function(k){for(var e=k.length,O=[];e--;)O[e]=R.trex(k[e]);return R.box.apply(null,[R.types.mvex].concat(O))},R.mvhd=function(k,e){e*=k;var O=Math.floor(e/(j+1)),g=Math.floor(e%(j+1)),p=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,k>>24&255,k>>16&255,k>>8&255,k&255,O>>24,O>>16&255,O>>8&255,O&255,g>>24,g>>16&255,g>>8&255,g&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 R.box(R.types.mvhd,p)},R.sdtp=function(k){var e=k.samples||[],O=new Uint8Array(4+e.length),g,p;for(g=0;g<e.length;g++)p=e[g].flags,O[g+4]=p.dependsOn<<4|p.isDependedOn<<2|p.hasRedundancy;return R.box(R.types.sdtp,O)},R.stbl=function(k){return R.box(R.types.stbl,R.stsd(k),R.box(R.types.stts,R.STTS),R.box(R.types.stsc,R.STSC),R.box(R.types.stsz,R.STSZ),R.box(R.types.stco,R.STCO))},R.avc1=function(k){var e=[],O=[],g,p,u;for(g=0;g<k.sps.length;g++)p=k.sps[g],u=p.byteLength,e.push(u>>>8&255),e.push(u&255),e=e.concat(Array.prototype.slice.call(p));for(g=0;g<k.pps.length;g++)p=k.pps[g],u=p.byteLength,O.push(u>>>8&255),O.push(u&255),O=O.concat(Array.prototype.slice.call(p));var a=R.box(R.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|k.sps.length].concat(e).concat([k.pps.length]).concat(O))),r=k.width,o=k.height,s=k.pixelRatio[0],i=k.pixelRatio[1];return R.box(R.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,r>>8&255,r&255,o>>8&255,o&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,R.box(R.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),R.box(R.types.pasp,new Uint8Array([s>>24,s>>16&255,s>>8&255,s&255,i>>24,i>>16&255,i>>8&255,i&255])))},R.esds=function(k){var e=k.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(k.config).concat([6,1,2]))},R.mp4a=function(k){var e=k.samplerate;return R.box(R.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,k.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),R.box(R.types.esds,R.esds(k)))},R.mp3=function(k){var e=k.samplerate;return R.box(R.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,k.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},R.stsd=function(k){return k.type==="audio"?!k.isAAC&&k.codec==="mp3"?R.box(R.types.stsd,R.STSD,R.mp3(k)):R.box(R.types.stsd,R.STSD,R.mp4a(k)):R.box(R.types.stsd,R.STSD,R.avc1(k))},R.tkhd=function(k){var e=k.id,O=k.duration*k.timescale,g=k.width,p=k.height,u=Math.floor(O/(j+1)),a=Math.floor(O%(j+1));return R.box(R.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,a>>24,a>>16&255,a>>8&255,a&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,g>>8&255,g&255,0,0,p>>8&255,p&255,0,0]))},R.traf=function(k,e){var O=R.sdtp(k),g=k.id,p=Math.floor(e/(j+1)),u=Math.floor(e%(j+1));return R.box(R.types.traf,R.box(R.types.tfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255])),R.box(R.types.tfdt,new Uint8Array([1,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,u>>24,u>>16&255,u>>8&255,u&255])),R.trun(k,O.length+16+20+8+16+8+8),O)},R.trak=function(k){return k.duration=k.duration||4294967295,R.box(R.types.trak,R.tkhd(k),R.mdia(k))},R.trex=function(k){var e=k.id;return R.box(R.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},R.trun=function(k,e){var O=k.samples||[],g=O.length,p=12+16*g,u=new Uint8Array(p),a,r,o,s,i,n;for(e+=8+p,u.set([0,0,15,1,g>>>24&255,g>>>16&255,g>>>8&255,g&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),a=0;a<g;a++)r=O[a],o=r.duration,s=r.size,i=r.flags,n=r.cts,u.set([o>>>24&255,o>>>16&255,o>>>8&255,o&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,i.isLeading<<2|i.dependsOn,i.isDependedOn<<6|i.hasRedundancy<<4|i.paddingValue<<1|i.isNonSync,i.degradPrio&240<<8,i.degradPrio&15,n>>>24&255,n>>>16&255,n>>>8&255,n&255],12+16*a);return R.box(R.types.trun,u)},R.initSegment=function(k){R.types||R.init();var e=R.moov(k),O=new Uint8Array(R.FTYP.byteLength+e.byteLength);return O.set(R.FTYP),O.set(e,R.FTYP.byteLength),O},R}();C.types=void 0,C.HDLR_TYPES=void 0,C.STTS=void 0,C.STSC=void 0,C.STCO=void 0,C.STSZ=void 0,C.VMHD=void 0,C.SMHD=void 0,C.STSD=void 0,C.FTYP=void 0,C.DINF=void 0,M.default=C},"./src/remux/mp4-remuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return n}),I.d(M,"normalizePts",function(){return t});var j=I("./src/polyfills/number.ts"),C=I("./src/remux/aac-helper.ts"),R=I("./src/remux/mp4-generator.ts"),W=I("./src/events.ts"),k=I("./src/errors.ts"),e=I("./src/utils/logger.ts"),O=I("./src/types/loader.ts"),g=I("./src/utils/timescale-conversion.ts");function p(){return p=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var h=arguments[_];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(x[d]=h[d])}return x},p.apply(this,arguments)}var u=10*1e3,a=1024,r=1152,o=null,s=null,i=!1,n=function(){function x(h,d,l,c){if(c===void 0&&(c=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=h,this.config=d,this.typeSupported=l,this.ISGenerated=!1,o===null){var v=navigator.userAgent||"",f=v.match(/Chrome\/(\d+)/i);o=f?parseInt(f[1]):0}if(s===null){var T=navigator.userAgent.match(/Safari\/(\d+)/i);s=T?parseInt(T[1]):0}i=!!o&&o<75||!!s&&s<600}var _=x.prototype;return _.destroy=function(){},_.resetTimeStamp=function(d){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=d},_.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},_.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},_.getVideoStartPts=function(d){var l=!1,c=d.reduce(function(v,f){var T=f.pts-v;return T<-4294967296?(l=!0,t(v,f.pts)):T>0?v:f.pts},d[0].pts);return l&&e.logger.debug("PTS rollover detected"),c},_.remux=function(d,l,c,v,f,T,L,P){var S,A,H,D,K,V,oe=f,le=f,Ce=d.pid>-1,xe=l.pid>-1,ie=l.samples.length,Se=d.samples.length>0,Pe=ie>1,de=(!Ce||Se)&&(!xe||Pe)||this.ISGenerated||L;if(de){this.ISGenerated||(H=this.generateIS(d,l,f));var $=this.isVideoContiguous,Ne=-1;if(Pe&&(Ne=b(l.samples),!$&&this.config.forceKeyFrameOnDiscontinuity))if(V=!0,Ne>0){e.logger.warn("[mp4-remuxer]: Dropped "+Ne+" out of "+ie+" video samples due to a missing keyframe");var lt=this.getVideoStartPts(l.samples);l.samples=l.samples.slice(Ne),l.dropped+=Ne,le+=(l.samples[0].pts-lt)/(l.timescale||9e4)}else Ne===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+ie+" video samples"),V=!1);if(this.ISGenerated){if(Se&&Pe){var it=this.getVideoStartPts(l.samples),Je=t(d.samples[0].pts,it)-it,at=Je/l.inputTimeScale;oe+=Math.max(0,at),le+=Math.max(0,-at)}if(Se){if(d.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),H=this.generateIS(d,l,f)),A=this.remuxAudio(d,oe,this.isAudioContiguous,T,xe||Pe||P===O.PlaylistLevelType.AUDIO?le:void 0),Pe){var Ue=A?A.endPTS-A.startPTS:0;l.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),H=this.generateIS(d,l,f)),S=this.remuxVideo(l,le,$,Ue)}}else Pe&&(S=this.remuxVideo(l,le,$,0));S&&(S.firstKeyFrame=Ne,S.independent=Ne!==-1)}}return this.ISGenerated&&(c.samples.length&&(K=this.remuxID3(c,f)),v.samples.length&&(D=this.remuxText(v,f))),{audio:A,video:S,initSegment:H,independent:V,text:D,id3:K}},_.generateIS=function(d,l,c){var v=d.samples,f=l.samples,T=this.typeSupported,L={},P=!Object(j.isFiniteNumber)(this._initPTS),S="audio/mp4",A,H,D;if(P&&(A=H=Infinity),d.config&&v.length&&(d.timescale=d.samplerate,d.isAAC||(T.mpeg?(S="audio/mpeg",d.codec=""):T.mp3&&(d.codec="mp3")),L.audio={id:"audio",container:S,codec:d.codec,initSegment:!d.isAAC&&T.mpeg?new Uint8Array(0):R.default.initSegment([d]),metadata:{channelCount:d.channelCount}},P&&(D=d.inputTimeScale,A=H=v[0].pts-Math.round(D*c))),l.sps&&l.pps&&f.length&&(l.timescale=l.inputTimeScale,L.video={id:"main",container:"video/mp4",codec:l.codec,initSegment:R.default.initSegment([l]),metadata:{width:l.width,height:l.height}},P)){D=l.inputTimeScale;var K=this.getVideoStartPts(f),V=Math.round(D*c);H=Math.min(H,t(f[0].dts,K)-V),A=Math.min(A,K-V)}if(Object.keys(L).length)return this.ISGenerated=!0,P&&(this._initPTS=A,this._initDTS=H),{tracks:L,initPTS:A,timescale:D}},_.remuxVideo=function(d,l,c,v){var f=d.inputTimeScale,T=d.samples,L=[],P=T.length,S=this._initPTS,A=this.nextAvcDts,H=8,D,K,V,oe=Number.POSITIVE_INFINITY,le=Number.NEGATIVE_INFINITY,Ce=0,xe=!1;if(!c||A===null){var ie=l*f,Se=T[0].pts-t(T[0].dts,T[0].pts);A=ie-Se}for(var Pe=0;Pe<P;Pe++){var de=T[Pe];if(de.pts=t(de.pts-S,A),de.dts=t(de.dts-S,A),de.dts>de.pts){var $=9e4*.2;Ce=Math.max(Math.min(Ce,de.pts-de.dts),-1*$)}de.dts<T[Pe>0?Pe-1:Pe].dts&&(xe=!0)}xe&&T.sort(function(ot,st){var Qe=ot.dts-st.dts,_t=ot.pts-st.pts;return Qe||_t}),K=T[0].dts,V=T[T.length-1].dts;var Ne=Math.round((V-K)/(P-1));if(Ce<0){if(Ce<Ne*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(g.toMsFromMpegTsClock)(-Ne,!0)+" ms");for(var lt=Ce,it=0;it<P;it++)T[it].dts=lt=Math.max(lt,T[it].pts-Ne),T[it].pts=Math.max(lt,T[it].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(g.toMsFromMpegTsClock)(Ce,!0)+" ms to overcome this issue");for(var Je=0;Je<P;Je++)T[Je].dts=T[Je].dts+Ce}K=T[0].dts}if(c){var at=K-A,Ue=at>Ne,ze=at<-1;if(Ue||ze){Ue?e.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(at,!0)+" ms ("+at+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(-at,!0)+" ms ("+at+"dts) overlapping between fragments detected"),K=A;var et=T[0].pts-at;T[0].dts=K,T[0].pts=et,e.logger.log("Video: First PTS/DTS adjusted: "+Object(g.toMsFromMpegTsClock)(et,!0)+"/"+Object(g.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(g.toMsFromMpegTsClock)(at,!0)+" ms")}}i&&(K=Math.max(0,K));for(var ee=0,ge=0,_e=0;_e<P;_e++){for(var we=T[_e],Ve=we.units,Ze=Ve.length,rt=0,$e=0;$e<Ze;$e++)rt+=Ve[$e].data.length;ge+=rt,ee+=Ze,we.length=rt,we.dts=Math.max(we.dts,K),we.pts=Math.max(we.pts,we.dts,0),oe=Math.min(we.pts,oe),le=Math.max(we.pts,le)}V=T[P-1].dts;var ft=ge+4*ee+8,ht;try{ht=new Uint8Array(ft)}catch(ot){this.observer.emit(W.Events.ERROR,W.Events.ERROR,{type:k.ErrorTypes.MUX_ERROR,details:k.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ft,reason:"fail allocating video mdat "+ft});return}var ye=new DataView(ht.buffer);ye.setUint32(0,ft),ht.set(R.default.types.mdat,4);for(var Ae=0;Ae<P;Ae++){for(var ke=T[Ae],He=ke.units,Ie=0,Le=0,fe=He.length;Le<fe;Le++){var re=He[Le],ae=re.data,Y=re.data.byteLength;ye.setUint32(H,Y),H+=4,ht.set(ae,H),H+=Y,Ie+=4+Y}if(Ae<P-1)D=T[Ae+1].dts-ke.dts;else{var J=this.config,Z=ke.dts-T[Ae>0?Ae-1:Ae].dts;if(J.stretchShortVideoTrack&&this.nextAudioPts!==null){var se=Math.floor(J.maxBufferHole*f),Ee=(v?oe+v*f:this.nextAudioPts)-ke.pts;Ee>se?(D=Ee-Z,D<0&&(D=Z),e.logger.log("[mp4-remuxer]: It is approximately "+Ee/90+" ms to the next segment; using duration "+D/90+" ms for the last video frame.")):D=Z}else D=Z}var De=Math.round(ke.pts-ke.dts);L.push(new y(ke.key,D,Ie,De))}if(L.length&&o&&o<70){var Ke=L[0].flags;Ke.dependsOn=2,Ke.isNonSync=0}console.assert(D!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=A=V+D,this.isVideoContiguous=!0;var ut=R.default.moof(d.sequenceNumber++,K,p({},d,{samples:L})),ct="video",Oe={data1:ut,data2:ht,startPTS:oe/f,endPTS:(le+D)/f,startDTS:K/f,endDTS:A/f,type:ct,hasAudio:!1,hasVideo:!0,nb:L.length,dropped:d.dropped};return d.samples=[],d.dropped=0,console.assert(ht.length,"MDAT length must not be zero"),Oe},_.remuxAudio=function(d,l,c,v,f){var T=d.inputTimeScale,L=d.samplerate?d.samplerate:T,P=T/L,S=d.isAAC?a:r,A=S*P,H=this._initPTS,D=!d.isAAC&&this.typeSupported.mpeg,K=[],V=d.samples,oe=D?0:8,le=this.nextAudioPts||-1,Ce=l*T;if(this.isAudioContiguous=c=c||V.length&&le>0&&(v&&Math.abs(Ce-le)<9e3||Math.abs(t(V[0].pts-H,Ce)-le)<20*A),V.forEach(function(ae){ae.pts=t(ae.pts-H,Ce)}),!c||le<0){if(V=V.filter(function(ae){return ae.pts>=0}),!V.length)return;f===0?le=0:v?le=Math.max(0,Ce):le=V[0].pts}if(d.isAAC)for(var xe=f!==void 0,ie=this.config.maxAudioFramesDrift,Se=0,Pe=le;Se<V.length;Se++){var de=V[Se],$=de.pts,Ne=$-Pe,lt=Math.abs(1e3*Ne/T);if(Ne<=-ie*A&&xe)Se===0&&(e.logger.warn("Audio frame @ "+($/T).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*Ne/T)+" ms."),this.nextAudioPts=le=Pe=$);else if(Ne>=ie*A&<<u&&xe){var it=Math.round(Ne/A);Pe=$-it*A,Pe<0&&(it--,Pe+=A),Se===0&&(this.nextAudioPts=le=Pe),e.logger.warn("[mp4-remuxer]: Injecting "+it+" audio frame @ "+(Pe/T).toFixed(3)+"s due to "+Math.round(1e3*Ne/T)+" ms gap.");for(var Je=0;Je<it;Je++){var at=Math.max(Pe,0),Ue=C.default.getSilentFrame(d.manifestCodec||d.codec,d.channelCount);Ue||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ue=de.unit.subarray()),V.splice(Se,0,{unit:Ue,pts:at}),Pe+=A,Se++}}de.pts=Pe,Pe+=A}for(var ze=null,et=null,ee,ge=0,_e=V.length;_e--;)ge+=V[_e].unit.byteLength;for(var we=0,Ve=V.length;we<Ve;we++){var Ze=V[we],rt=Ze.unit,$e=Ze.pts;if(et!==null){var ft=K[we-1];ft.duration=Math.round(($e-et)/P)}else if(c&&d.isAAC&&($e=le),ze=$e,ge>0){ge+=oe;try{ee=new Uint8Array(ge)}catch(ae){this.observer.emit(W.Events.ERROR,W.Events.ERROR,{type:k.ErrorTypes.MUX_ERROR,details:k.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ge,reason:"fail allocating audio mdat "+ge});return}if(!D){var ht=new DataView(ee.buffer);ht.setUint32(0,ge),ee.set(R.default.types.mdat,4)}}else return;ee.set(rt,oe);var ye=rt.byteLength;oe+=ye,K.push(new y(!0,S,ye,0)),et=$e}var Ae=K.length;if(!Ae)return;var ke=K[K.length-1];this.nextAudioPts=le=et+P*ke.duration;var He=D?new Uint8Array(0):R.default.moof(d.sequenceNumber++,ze/P,p({},d,{samples:K}));d.samples=[];var Ie=ze/T,Le=le/T,fe="audio",re={data1:He,data2:ee,startPTS:Ie,endPTS:Le,startDTS:Ie,endDTS:Le,type:fe,hasAudio:!0,hasVideo:!1,nb:Ae};return this.isAudioContiguous=!0,console.assert(ee.length,"MDAT length must not be zero"),re},_.remuxEmptyAudio=function(d,l,c,v){var f=d.inputTimeScale,T=d.samplerate?d.samplerate:f,L=f/T,P=this.nextAudioPts,S=(P!==null?P:v.startDTS*f)+this._initDTS,A=v.endDTS*f+this._initDTS,H=L*a,D=Math.ceil((A-S)/H),K=C.default.getSilentFrame(d.manifestCodec||d.codec,d.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!K){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var V=[],oe=0;oe<D;oe++){var le=S+oe*H;V.push({unit:K,pts:le,dts:le})}return d.samples=V,this.remuxAudio(d,l,c,!1)},_.remuxID3=function(d,l){var c=d.samples.length;if(!c)return;for(var v=d.inputTimeScale,f=this._initPTS,T=this._initDTS,L=0;L<c;L++){var P=d.samples[L];P.pts=t(P.pts-f,l*v)/v,P.dts=t(P.dts-T,l*v)/v}var S=d.samples;return d.samples=[],{samples:S}},_.remuxText=function(d,l){var c=d.samples.length;if(!c)return;for(var v=d.inputTimeScale,f=this._initPTS,T=0;T<c;T++){var L=d.samples[T];L.pts=t(L.pts-f,l*v)/v}d.samples.sort(function(S,A){return S.pts-A.pts});var P=d.samples;return d.samples=[],{samples:P}},x}();function t(x,_){var h;if(_===null)return x;for(_<x?h=-8589934592:h=8589934592;Math.abs(x-_)>4294967296;)x+=h;return x}function b(x){for(var _=0;_<x.length;_++)if(x[_].key)return _;return-1}var y=function(_,h,d,l){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=h,this.size=d,this.cts=l,this.flags=new m(_)},m=function(_){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=_?2:1,this.isNonSync=_?0:1}},"./src/remux/passthrough-remuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/utils/mp4-tools.ts"),R=I("./src/loader/fragment.ts"),W=I("./src/utils/logger.ts"),k=function(){function g(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var p=g.prototype;return p.destroy=function(){},p.resetTimeStamp=function(a){this.initPTS=a,this.lastEndDTS=null},p.resetNextTimestamp=function(){this.lastEndDTS=null},p.resetInitSegment=function(a,r,o){this.audioCodec=r,this.videoCodec=o,this.generateInitSegment(a),this.emitInitSegment=!0},p.generateInitSegment=function(a){var r=this.audioCodec,o=this.videoCodec;if(!a||!a.byteLength){this.initTracks=void 0,this.initData=void 0;return}var s=this.initData=Object(C.parseInitSegment)(a);r||(r=O(s.audio,R.ElementaryStreamTypes.AUDIO)),o||(o=O(s.video,R.ElementaryStreamTypes.VIDEO));var i={};s.audio&&s.video?i.audiovideo={container:"video/mp4",codec:r+","+o,initSegment:a,id:"main"}:s.audio?i.audio={container:"audio/mp4",codec:r,initSegment:a,id:"audio"}:s.video?i.video={container:"video/mp4",codec:o,initSegment:a,id:"main"}:W.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},p.remux=function(a,r,o,s,i){var n=this.initPTS,t=this.lastEndDTS,b={audio:void 0,video:void 0,text:s,id3:o,initSegment:void 0};Object(j.isFiniteNumber)(t)||(t=this.lastEndDTS=i||0);var y=r.samples;if(!y||!y.length)return b;var m={initPTS:void 0,timescale:1},x=this.initData;if((!x||!x.length)&&(this.generateInitSegment(y),x=this.initData),!x||!x.length)return W.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),b;this.emitInitSegment&&(m.tracks=this.initTracks,this.emitInitSegment=!1),Object(j.isFiniteNumber)(n)||(this.initPTS=m.initPTS=n=e(x,y,t));var _=Object(C.getDuration)(y,x),h=t,d=_+h;Object(C.offsetStartDTS)(x,y,n),_>0?this.lastEndDTS=d:(W.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var l=!!x.audio,c=!!x.video,v="";l&&(v+="audio"),c&&(v+="video");var f={data1:y,startPTS:h,startDTS:h,endPTS:d,endDTS:d,type:v,hasAudio:l,hasVideo:c,nb:1,dropped:0};return b.audio=f.type==="audio"?f:void 0,b.video=f.type!=="audio"?f:void 0,b.text=s,b.id3=o,b.initSegment=m,b},g}(),e=function(p,u,a){return Object(C.getStartDTS)(p,u)-a};function O(g,p){var u=g==null?void 0:g.codec;return u&&u.length>4?u:u==="hvc1"?"hvc1.1.c.L120.90":u==="av01"?"av01.0.04M.08":u==="avc1"||p===R.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}M.default=k},"./src/task-loop.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var R=C.prototype;return R.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},R.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},R.onHandlerDestroyed=function(){},R.hasInterval=function(){return!!this._tickInterval},R.hasNextTick=function(){return!!this._tickTimer},R.setInterval=function(k){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,k),!0)},R.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},R.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},R.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},R.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},R.doTick=function(){},C}()},"./src/types/cmcd.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"CMCDVersion",function(){return j}),I.d(M,"CMCDObjectType",function(){return C}),I.d(M,"CMCDStreamingFormat",function(){return R}),I.d(M,"CMCDStreamType",function(){return W});var j=1,C;(function(k){k.MANIFEST="m",k.AUDIO="a",k.VIDEO="v",k.MUXED="av",k.INIT="i",k.CAPTION="c",k.TIMED_TEXT="tt",k.KEY="k",k.OTHER="o"})(C||(C={}));var R;(function(k){k.DASH="d",k.HLS="h",k.SMOOTH="s",k.OTHER="o"})(R||(R={}));var W;(function(k){k.VOD="v",k.LIVE="l"})(W||(W={}))},"./src/types/level.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"HlsSkip",function(){return R}),I.d(M,"getSkipValue",function(){return W}),I.d(M,"HlsUrlParameters",function(){return k}),I.d(M,"Level",function(){return e});function j(O,g){for(var p=0;p<g.length;p++){var u=g[p];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(O,u.key,u)}}function C(O,g,p){return g&&j(O.prototype,g),p&&j(O,p),O}var R;(function(O){O.No="",O.Yes="YES",O.v2="v2"})(R||(R={}));function W(O,g){var p=O.canSkipUntil,u=O.canSkipDateRanges,a=O.endSN,r=g!==void 0?g-a:0;return p&&r<p?u?R.v2:R.Yes:R.No}var k=function(){function O(p,u,a){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=p,this.part=u,this.skip=a}var g=O.prototype;return g.addDirectives=function(u){var a=new self.URL(u);return this.msn!==void 0&&a.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&a.searchParams.set("_HLS_part",this.part.toString()),this.skip&&a.searchParams.set("_HLS_skip",this.skip),a.toString()},O}(),e=function(){function O(g){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[g.url],this.attrs=g.attrs,this.bitrate=g.bitrate,g.details&&(this.details=g.details),this.id=g.id||0,this.name=g.name,this.width=g.width||0,this.height=g.height||0,this.audioCodec=g.audioCodec,this.videoCodec=g.videoCodec,this.unknownCodecs=g.unknownCodecs,this.codecSet=[g.videoCodec,g.audioCodec].filter(function(p){return p}).join(",").replace(/\.[^.,]+/g,"")}return C(O,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(p){var u=p%this.url.length;this._urlId!==u&&(this.details=void 0,this._urlId=u)}}]),O}()},"./src/types/loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"PlaylistContextType",function(){return j}),I.d(M,"PlaylistLevelType",function(){return C});var j;(function(R){R.MANIFEST="manifest",R.LEVEL="level",R.AUDIO_TRACK="audioTrack",R.SUBTITLE_TRACK="subtitleTrack"})(j||(j={}));var C;(function(R){R.MAIN="main",R.AUDIO="audio",R.SUBTITLE="subtitle"})(C||(C={}))},"./src/types/transmuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"ChunkMetadata",function(){return j});var j=function(W,k,e,O,g,p){O===void 0&&(O=0),g===void 0&&(g=-1),p===void 0&&(p=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=C(),this.buffering={audio:C(),video:C(),audiovideo:C()},this.level=W,this.sn=k,this.id=e,this.size=O,this.part=g,this.partial=p};function C(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"AttrList",function(){return R});var j=/^(\d+)x(\d+)$/,C=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,R=function(){function W(e){typeof e=="string"&&(e=W.parseAttrList(e));for(var O in e)e.hasOwnProperty(O)&&(this[O]=e[O])}var k=W.prototype;return k.decimalInteger=function(O){var g=parseInt(this[O],10);return g>Number.MAX_SAFE_INTEGER?Infinity:g},k.hexadecimalInteger=function(O){if(this[O]){var g=(this[O]||"0x").slice(2);g=(g.length&1?"0":"")+g;for(var p=new Uint8Array(g.length/2),u=0;u<g.length/2;u++)p[u]=parseInt(g.slice(u*2,u*2+2),16);return p}else return null},k.hexadecimalIntegerAsNumber=function(O){var g=parseInt(this[O],16);return g>Number.MAX_SAFE_INTEGER?Infinity:g},k.decimalFloatingPoint=function(O){return parseFloat(this[O])},k.optionalFloat=function(O,g){var p=this[O];return p?parseFloat(p):g},k.enumeratedString=function(O){return this[O]},k.bool=function(O){return this[O]==="YES"},k.decimalResolution=function(O){var g=j.exec(this[O]);return g===null?void 0:{width:parseInt(g[1],10),height:parseInt(g[2],10)}},W.parseAttrList=function(O){var g,p={},u='"';for(C.lastIndex=0;(g=C.exec(O))!==null;){var a=g[2];a.indexOf(u)===0&&a.lastIndexOf(u)===a.length-1&&(a=a.slice(1,-1)),p[g[1]]=a}return p},W}()},"./src/utils/binary-search.ts":function(Q,M,I){"use strict";I.r(M);var j={search:function(R,W){for(var k=0,e=R.length-1,O=null,g=null;k<=e;){O=(k+e)/2|0,g=R[O];var p=W(g);if(p>0)k=O+1;else if(p<0)e=O-1;else return g}return null}};M.default=j},"./src/utils/buffer-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"BufferHelper",function(){return R});var j=I("./src/utils/logger.ts"),C={length:0,start:function(){return 0},end:function(){return 0}},R=function(){function W(){}return W.isBuffered=function(e,O){try{if(e){for(var g=W.getBuffered(e),p=0;p<g.length;p++)if(O>=g.start(p)&&O<=g.end(p))return!0}}catch(u){}return!1},W.bufferInfo=function(e,O,g){try{if(e){var p=W.getBuffered(e),u=[],a;for(a=0;a<p.length;a++)u.push({start:p.start(a),end:p.end(a)});return this.bufferedInfo(u,O,g)}}catch(r){}return{len:0,start:O,end:O,nextStart:void 0}},W.bufferedInfo=function(e,O,g){O=Math.max(0,O),e.sort(function(m,x){var _=m.start-x.start;return _||x.end-m.end});var p=[];if(g)for(var u=0;u<e.length;u++){var a=p.length;if(a){var r=p[a-1].end;e[u].start-r<g?e[u].end>r&&(p[a-1].end=e[u].end):p.push(e[u])}else p.push(e[u])}else p=e;for(var o=0,s,i=O,n=O,t=0;t<p.length;t++){var b=p[t].start,y=p[t].end;if(O+g>=b&&O<y)i=b,n=y,o=n-O;else if(O+g<b){s=b;break}}return{len:o,start:i||0,end:n||0,nextStart:s}},W.getBuffered=function(e){try{return e.buffered}catch(O){return j.logger.log("failed to get media.buffered",O),C}},W}()},"./src/utils/cea-608-parser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"Row",function(){return n}),I.d(M,"CaptionScreen",function(){return t});var j=I("./src/utils/logger.ts"),C={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},R=function(d){var l=d;return C.hasOwnProperty(d)&&(l=C[d]),String.fromCharCode(l)},W=15,k=100,e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},O={17:2,18:4,21:6,22:8,23:10,19:13,20:15},g={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},p={25:2,26:4,29:6,30:8,31:10,27:13,28:15},u=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],a;(function(h){h[h.ERROR=0]="ERROR",h[h.TEXT=1]="TEXT",h[h.WARNING=2]="WARNING",h[h.INFO=2]="INFO",h[h.DEBUG=3]="DEBUG",h[h.DATA=3]="DATA"})(a||(a={}));var r=function(){function h(){this.time=null,this.verboseLevel=a.ERROR}var d=h.prototype;return d.log=function(c,v){this.verboseLevel>=c&&j.logger.log(this.time+" ["+c+"] "+v)},h}(),o=function(d){for(var l=[],c=0;c<d.length;c++)l.push(d[c].toString(16));return l},s=function(){function h(l,c,v,f,T){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=l||"white",this.underline=c||!1,this.italics=v||!1,this.background=f||"black",this.flash=T||!1}var d=h.prototype;return d.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},d.setStyles=function(c){for(var v=["foreground","underline","italics","background","flash"],f=0;f<v.length;f++){var T=v[f];c.hasOwnProperty(T)&&(this[T]=c[T])}},d.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},d.equals=function(c){return this.foreground===c.foreground&&this.underline===c.underline&&this.italics===c.italics&&this.background===c.background&&this.flash===c.flash},d.copy=function(c){this.foreground=c.foreground,this.underline=c.underline,this.italics=c.italics,this.background=c.background,this.flash=c.flash},d.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},h}(),i=function(){function h(l,c,v,f,T,L){this.uchar=void 0,this.penState=void 0,this.uchar=l||" ",this.penState=new s(c,v,f,T,L)}var d=h.prototype;return d.reset=function(){this.uchar=" ",this.penState.reset()},d.setChar=function(c,v){this.uchar=c,this.penState.copy(v)},d.setPenState=function(c){this.penState.copy(c)},d.equals=function(c){return this.uchar===c.uchar&&this.penState.equals(c.penState)},d.copy=function(c){this.uchar=c.uchar,this.penState.copy(c.penState)},d.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},h}(),n=function(){function h(l){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var c=0;c<k;c++)this.chars.push(new i);this.logger=l,this.pos=0,this.currPenState=new s}var d=h.prototype;return d.equals=function(c){for(var v=!0,f=0;f<k;f++)if(!this.chars[f].equals(c.chars[f])){v=!1;break}return v},d.copy=function(c){for(var v=0;v<k;v++)this.chars[v].copy(c.chars[v])},d.isEmpty=function(){for(var c=!0,v=0;v<k;v++)if(!this.chars[v].isEmpty()){c=!1;break}return c},d.setCursor=function(c){this.pos!==c&&(this.pos=c),this.pos<0?(this.logger.log(a.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>k&&(this.logger.log(a.DEBUG,"Too large cursor position "+this.pos),this.pos=k)},d.moveCursor=function(c){var v=this.pos+c;if(c>1)for(var f=this.pos+1;f<v+1;f++)this.chars[f].setPenState(this.currPenState);this.setCursor(v)},d.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},d.insertChar=function(c){c>=144&&this.backSpace();var v=R(c);if(this.pos>=k){this.logger.log(a.ERROR,"Cannot insert "+c.toString(16)+" ("+v+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(v,this.currPenState),this.moveCursor(1)},d.clearFromPos=function(c){var v;for(v=c;v<k;v++)this.chars[v].reset()},d.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},d.clearToEndOfRow=function(){this.clearFromPos(this.pos)},d.getTextString=function(){for(var c=[],v=!0,f=0;f<k;f++){var T=this.chars[f].uchar;T!==" "&&(v=!1),c.push(T)}return v?"":c.join("")},d.setPenStyles=function(c){this.currPenState.setStyles(c);var v=this.chars[this.pos];v.setPenState(this.currPenState)},h}(),t=function(){function h(l){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var c=0;c<W;c++)this.rows.push(new n(l));this.logger=l,this.currRow=W-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var d=h.prototype;return d.reset=function(){for(var c=0;c<W;c++)this.rows[c].clear();this.currRow=W-1},d.equals=function(c){for(var v=!0,f=0;f<W;f++)if(!this.rows[f].equals(c.rows[f])){v=!1;break}return v},d.copy=function(c){for(var v=0;v<W;v++)this.rows[v].copy(c.rows[v])},d.isEmpty=function(){for(var c=!0,v=0;v<W;v++)if(!this.rows[v].isEmpty()){c=!1;break}return c},d.backSpace=function(){var c=this.rows[this.currRow];c.backSpace()},d.clearToEndOfRow=function(){var c=this.rows[this.currRow];c.clearToEndOfRow()},d.insertChar=function(c){var v=this.rows[this.currRow];v.insertChar(c)},d.setPen=function(c){var v=this.rows[this.currRow];v.setPenStyles(c)},d.moveCursor=function(c){var v=this.rows[this.currRow];v.moveCursor(c)},d.setCursor=function(c){this.logger.log(a.INFO,"setCursor: "+c);var v=this.rows[this.currRow];v.setCursor(c)},d.setPAC=function(c){this.logger.log(a.INFO,"pacData = "+JSON.stringify(c));var v=c.row-1;if(this.nrRollUpRows&&v<this.nrRollUpRows-1&&(v=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==v){for(var f=0;f<W;f++)this.rows[f].clear();var T=this.currRow+1-this.nrRollUpRows,L=this.lastOutputScreen;if(L){var P=L.rows[T].cueStartTime,S=this.logger.time;if(P&&S!==null&&P<S)for(var A=0;A<this.nrRollUpRows;A++)this.rows[v-this.nrRollUpRows+A+1].copy(L.rows[T+A])}}this.currRow=v;var H=this.rows[this.currRow];if(c.indent!==null){var D=c.indent,K=Math.max(D-1,0);H.setCursor(c.indent),c.color=H.chars[K].penState.foreground}var V={foreground:c.color,underline:c.underline,italics:c.italics,background:"black",flash:!1};this.setPen(V)},d.setBkgData=function(c){this.logger.log(a.INFO,"bkgData = "+JSON.stringify(c)),this.backSpace(),this.setPen(c),this.insertChar(32)},d.setRollUpRows=function(c){this.nrRollUpRows=c},d.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(a.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(a.TEXT,this.getDisplayText());var c=this.currRow+1-this.nrRollUpRows,v=this.rows.splice(c,1)[0];v.clear(),this.rows.splice(this.currRow,0,v),this.logger.log(a.INFO,"Rolling up")},d.getDisplayText=function(c){c=c||!1;for(var v=[],f="",T=-1,L=0;L<W;L++){var P=this.rows[L].getTextString();P&&(T=L+1,c?v.push("Row "+T+": '"+P+"'"):v.push(P.trim()))}return v.length>0&&(c?f="["+v.join(" | ")+"]":f=v.join(`
|
|
`)),f},d.getTextAndFormat=function(){return this.rows},h}(),b=function(){function h(l,c,v){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=l,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new t(v),this.nonDisplayedMemory=new t(v),this.lastOutputScreen=new t(v),this.currRollUpRow=this.displayedMemory.rows[W-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=v}var d=h.prototype;return d.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[W-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},d.getHandler=function(){return this.outputFilter},d.setHandler=function(c){this.outputFilter=c},d.setPAC=function(c){this.writeScreen.setPAC(c)},d.setBkgData=function(c){this.writeScreen.setBkgData(c)},d.setMode=function(c){if(c===this.mode)return;this.mode=c,this.logger.log(a.INFO,"MODE="+c),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=c},d.insertChars=function(c){for(var v=0;v<c.length;v++)this.writeScreen.insertChar(c[v]);var f=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(a.INFO,f+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(a.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},d.ccRCL=function(){this.logger.log(a.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},d.ccBS=function(){if(this.logger.log(a.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},d.ccAOF=function(){},d.ccAON=function(){},d.ccDER=function(){this.logger.log(a.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},d.ccRU=function(c){this.logger.log(a.INFO,"RU("+c+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(c)},d.ccFON=function(){this.logger.log(a.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},d.ccRDC=function(){this.logger.log(a.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},d.ccTR=function(){this.logger.log(a.INFO,"TR"),this.setMode("MODE_TEXT")},d.ccRTD=function(){this.logger.log(a.INFO,"RTD"),this.setMode("MODE_TEXT")},d.ccEDM=function(){this.logger.log(a.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},d.ccCR=function(){this.logger.log(a.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},d.ccENM=function(){this.logger.log(a.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},d.ccEOC=function(){if(this.logger.log(a.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var c=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=c,this.writeScreen=this.nonDisplayedMemory,this.logger.log(a.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},d.ccTO=function(c){this.logger.log(a.INFO,"TO("+c+") - Tab Offset"),this.writeScreen.moveCursor(c)},d.ccMIDROW=function(c){var v={flash:!1};if(v.underline=c%2===1,v.italics=c>=46,v.italics)v.foreground="white";else{var f=Math.floor(c/2)-16,T=["white","green","blue","cyan","red","yellow","magenta"];v.foreground=T[f]}this.logger.log(a.INFO,"MIDROW: "+JSON.stringify(v)),this.writeScreen.setPen(v)},d.outputDataUpdate=function(c){c===void 0&&(c=!1);var v=this.logger.time;if(v===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=v:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,v,this.lastOutputScreen),c&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:v),this.lastOutputScreen.copy(this.displayedMemory))},d.cueSplitAtTime=function(c){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,c,this.displayedMemory),this.cueStartTime=c))},h}(),y=function(){function h(l,c,v){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var f=new r;this.channels=[null,new b(l,c,f),new b(l+1,v,f)],this.cmdHistory=_(),this.logger=f}var d=h.prototype;return d.getHandler=function(c){return this.channels[c].getHandler()},d.setHandler=function(c,v){this.channels[c].setHandler(v)},d.addData=function(c,v){var f,T,L,P=!1;this.logger.time=c;for(var S=0;S<v.length;S+=2){if(T=v[S]&127,L=v[S+1]&127,T===0&&L===0)continue;if(this.logger.log(a.DATA,"["+o([v[S],v[S+1]])+"] -> ("+o([T,L])+")"),f=this.parseCmd(T,L),f||(f=this.parseMidrow(T,L)),f||(f=this.parsePAC(T,L)),f||(f=this.parseBackgroundAttributes(T,L)),!f&&(P=this.parseChars(T,L),P)){var A=this.currentChannel;if(A&&A>0){var H=this.channels[A];H.insertChars(P)}else this.logger.log(a.WARNING,"No channel found yet. TEXT-MODE?")}!f&&!P&&this.logger.log(a.WARNING,"Couldn't parse cleaned data "+o([T,L])+" orig: "+o([v[S],v[S+1]]))}},d.parseCmd=function(c,v){var f=this.cmdHistory,T=(c===20||c===28||c===21||c===29)&&v>=32&&v<=47,L=(c===23||c===31)&&v>=33&&v<=35;if(!(T||L))return!1;if(x(c,v,f))return m(null,null,f),this.logger.log(a.DEBUG,"Repeated command ("+o([c,v])+") is dropped"),!0;var P=c===20||c===21||c===23?1:2,S=this.channels[P];return c===20||c===21||c===28||c===29?v===32?S.ccRCL():v===33?S.ccBS():v===34?S.ccAOF():v===35?S.ccAON():v===36?S.ccDER():v===37?S.ccRU(2):v===38?S.ccRU(3):v===39?S.ccRU(4):v===40?S.ccFON():v===41?S.ccRDC():v===42?S.ccTR():v===43?S.ccRTD():v===44?S.ccEDM():v===45?S.ccCR():v===46?S.ccENM():v===47&&S.ccEOC():S.ccTO(v-32),m(c,v,f),this.currentChannel=P,!0},d.parseMidrow=function(c,v){var f=0;if((c===17||c===25)&&v>=32&&v<=47){if(c===17?f=1:f=2,f!==this.currentChannel)return this.logger.log(a.ERROR,"Mismatch channel in midrow parsing"),!1;var T=this.channels[f];return T?(T.ccMIDROW(v),this.logger.log(a.DEBUG,"MIDROW ("+o([c,v])+")"),!0):!1}return!1},d.parsePAC=function(c,v){var f,T=this.cmdHistory,L=(c>=17&&c<=23||c>=25&&c<=31)&&v>=64&&v<=127,P=(c===16||c===24)&&v>=64&&v<=95;if(!(L||P))return!1;if(x(c,v,T))return m(null,null,T),!0;var S=c<=23?1:2;v>=64&&v<=95?f=S===1?e[c]:g[c]:f=S===1?O[c]:p[c];var A=this.channels[S];return A?(A.setPAC(this.interpretPAC(f,v)),m(c,v,T),this.currentChannel=S,!0):!1},d.interpretPAC=function(c,v){var f,T={color:null,italics:!1,indent:null,underline:!1,row:c};return v>95?f=v-96:f=v-64,T.underline=(f&1)===1,f<=13?T.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(f/2)]:f<=15?(T.italics=!0,T.color="white"):T.indent=Math.floor((f-16)/2)*4,T},d.parseChars=function(c,v){var f,T=null,L=null;if(c>=25?(f=2,L=c-8):(f=1,L=c),L>=17&&L<=19){var P;L===17?P=v+80:L===18?P=v+112:P=v+144,this.logger.log(a.INFO,"Special char '"+R(P)+"' in channel "+f),T=[P]}else c>=32&&c<=127&&(T=v===0?[c]:[c,v]);if(T){var S=o(T);this.logger.log(a.DEBUG,"Char codes = "+S.join(",")),m(c,v,this.cmdHistory)}return T},d.parseBackgroundAttributes=function(c,v){var f=(c===16||c===24)&&v>=32&&v<=47,T=(c===23||c===31)&&v>=45&&v<=47;if(!(f||T))return!1;var L,P={};c===16||c===24?(L=Math.floor((v-32)/2),P.background=u[L],v%2===1&&(P.background=P.background+"_semi")):v===45?P.background="transparent":(P.foreground="black",v===47&&(P.underline=!0));var S=c<=23?1:2,A=this.channels[S];return A.setBkgData(P),m(c,v,this.cmdHistory),!0},d.reset=function(){for(var c=0;c<Object.keys(this.channels).length;c++){var v=this.channels[c];v&&v.reset()}this.cmdHistory=_()},d.cueSplitAtTime=function(c){for(var v=0;v<this.channels.length;v++){var f=this.channels[v];f&&f.cueSplitAtTime(c)}},h}();function m(h,d,l){l.a=h,l.b=d}function x(h,d,l){return l.a===h&&l.b===d}function _(){return{a:null,b:null}}M.default=y},"./src/utils/codecs.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isCodecType",function(){return C}),I.d(M,"isCodecSupportedInMp4",function(){return R});var j={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function C(W,k){var e=j[k];return!!e&&e[W.slice(0,4)]===!0}function R(W,k){return MediaSource.isTypeSupported((k||"video")+'/mp4;codecs="'+W+'"')}},"./src/utils/cues.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/vttparser.ts"),C=I("./src/utils/webvtt-parser.ts"),R=I("./src/utils/texttrack-utils.ts"),W=/\s/,k={newCue:function(O,g,p,u){for(var a=[],r,o,s,i,n,t=self.VTTCue||self.TextTrackCue,b=0;b<u.rows.length;b++)if(r=u.rows[b],s=!0,i=0,n="",!r.isEmpty()){for(var y=0;y<r.chars.length;y++)W.test(r.chars[y].uchar)&&s?i++:(n+=r.chars[y].uchar,s=!1);r.cueStartTime=g,g===p&&(p+=1e-4),i>=16?i--:i++;var m=Object(j.fixLineBreaks)(n.trim()),x=Object(C.generateCueId)(g,p,m);(!O||!O.cues||!O.cues.getCueById(x))&&(o=new t(g,p,m),o.id=x,o.line=b+1,o.align="left",o.position=10+Math.min(80,Math.floor(i*8/32)*10),a.push(o))}return O&&a.length&&(a.sort(function(_,h){return _.line==="auto"||h.line==="auto"?0:_.line>8&&h.line>8?h.line-_.line:_.line-h.line}),a.forEach(function(_){return Object(R.addCueToTrack)(O,_)})),a}};M.default=k},"./src/utils/discontinuities.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"findFirstFragWithCC",function(){return W}),I.d(M,"shouldAlignOnDiscontinuities",function(){return k}),I.d(M,"findDiscontinuousReferenceFrag",function(){return e}),I.d(M,"adjustSlidingStart",function(){return g}),I.d(M,"alignStream",function(){return p}),I.d(M,"alignPDT",function(){return a}),I.d(M,"alignFragmentByPDTDelta",function(){return r}),I.d(M,"alignMediaPlaylistByPDT",function(){return o});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/logger.ts"),R=I("./src/controller/level-helper.ts");function W(s,i){for(var n=null,t=0,b=s.length;t<b;t++){var y=s[t];if(y&&y.cc===i){n=y;break}}return n}function k(s,i,n){return!!(i.details&&(n.endCC>n.startCC||s&&s.cc<n.startCC))}function e(s,i){var n=s.fragments,t=i.fragments;if(!t.length||!n.length){C.logger.log("No fragments to align");return}var b=W(n,t[0].cc);if(!b||b&&!b.startPTS){C.logger.log("No frag in previous level to align on");return}return b}function O(s,i){if(s){var n=s.start+i;s.start=s.startPTS=n,s.endPTS=n+s.duration}}function g(s,i){for(var n=i.fragments,t=0,b=n.length;t<b;t++)O(n[t],s);i.fragmentHint&&O(i.fragmentHint,s),i.alignedSliding=!0}function p(s,i,n){if(!i)return;u(s,n,i),!n.alignedSliding&&i.details&&a(n,i.details),!n.alignedSliding&&i.details&&!n.skippedSegments&&Object(R.adjustSliding)(i.details,n)}function u(s,i,n){if(k(s,n,i)){var t=e(n.details,i);t&&Object(j.isFiniteNumber)(t.start)&&(C.logger.log("Adjusting PTS using last level due to CC increase within current level "+i.url),g(t.start,i))}}function a(s,i){if(!i.fragments.length||!s.hasProgramDateTime||!i.hasProgramDateTime)return;var n=i.fragments[0].programDateTime,t=s.fragments[0].programDateTime,b=(t-n)/1e3+i.fragments[0].start;b&&Object(j.isFiniteNumber)(b)&&(C.logger.log("Adjusting PTS using programDateTime delta "+(t-n)+"ms, sliding:"+b.toFixed(3)+" "+s.url+" "),g(b,s))}function r(s,i){var n=s.programDateTime;if(!n)return;var t=(n-i)/1e3;s.start=s.startPTS=t,s.endPTS=t+s.duration}function o(s,i){if(!i.fragments.length||!s.hasProgramDateTime||!i.hasProgramDateTime)return;var n=i.fragments[0].programDateTime,t=i.fragments[0].start,b=n-t*1e3;s.fragments.forEach(function(y){r(y,b)}),s.fragmentHint&&r(s.fragmentHint,b),s.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/ewma.ts"),C=function(){function R(k,e,O){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=O,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new j.default(k),this.fast_=new j.default(e)}var W=R.prototype;return W.update=function(e,O){var g=this.slow_,p=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new j.default(e,g.getEstimate(),g.getTotalWeight())),this.fast_.halfLife!==O&&(this.fast_=new j.default(O,p.getEstimate(),p.getTotalWeight()))},W.sample=function(e,O){e=Math.max(e,this.minDelayMs_);var g=8*O,p=e/1e3,u=g/p;this.fast_.sample(p,u),this.slow_.sample(p,u)},W.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},W.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},W.destroy=function(){},R}();M.default=C},"./src/utils/ewma.ts":function(Q,M,I){"use strict";I.r(M);var j=function(){function C(W,k,e){k===void 0&&(k=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=W,this.alpha_=W?Math.exp(Math.log(.5)/W):0,this.estimate_=k,this.totalWeight_=e}var R=C.prototype;return R.sample=function(k,e){var O=Math.pow(this.alpha_,k);this.estimate_=e*(1-O)+O*this.estimate_,this.totalWeight_+=k},R.getTotalWeight=function(){return this.totalWeight_},R.getEstimate=function(){if(this.alpha_){var k=1-Math.pow(this.alpha_,this.totalWeight_);if(k)return this.estimate_/k}return this.estimate_},C}();M.default=j},"./src/utils/fetch-loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"fetchSupported",function(){return r});var j=I("./src/polyfills/number.ts"),C=I("./src/loader/load-stats.ts"),R=I("./src/demux/chunk-cache.ts");function W(t,b){t.prototype=Object.create(b.prototype),t.prototype.constructor=t,p(t,b)}function k(t){var b=typeof Map=="function"?new Map:void 0;return k=function(m){if(m===null||!g(m))return m;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(typeof b!="undefined"){if(b.has(m))return b.get(m);b.set(m,x)}function x(){return e(m,arguments,u(this).constructor)}return x.prototype=Object.create(m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),p(x,m)},k(t)}function e(t,b,y){return O()?e=Reflect.construct:e=function(x,_,h){var d=[null];d.push.apply(d,_);var l=Function.bind.apply(x,d),c=new l;return h&&p(c,h.prototype),c},e.apply(null,arguments)}function O(){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(t){return!1}}function g(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function p(t,b){return p=Object.setPrototypeOf||function(m,x){return m.__proto__=x,m},p(t,b)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},u(t)}function a(){return a=Object.assign||function(t){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var m in y)Object.prototype.hasOwnProperty.call(y,m)&&(t[m]=y[m])}return t},a.apply(this,arguments)}function r(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}var o=function(){function t(y){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=y.fetchSetup||i,this.controller=new self.AbortController,this.stats=new C.LoadStats}var b=t.prototype;return b.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},b.abortInternal=function(){var m=this.response;(!m||!m.ok)&&(this.stats.aborted=!0,this.controller.abort())},b.abort=function(){var m;this.abortInternal(),(m=this.callbacks)!==null&&m!==void 0&&m.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},b.load=function(m,x,_){var h=this,d=this.stats;if(d.loading.start)throw new Error("Loader can only be used once.");d.loading.start=self.performance.now();var l=s(m,this.controller.signal),c=_.onProgress,v=m.responseType==="arraybuffer",f=v?"byteLength":"length";this.context=m,this.config=x,this.callbacks=_,this.request=this.fetchSetup(m,l),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){h.abortInternal(),_.onTimeout(d,m,h.response)},x.timeout),self.fetch(this.request).then(function(T){if(h.response=h.loader=T,!T.ok){var L=T.status,P=T.statusText;throw new n(P||"fetch, bad network response",L,T)}return d.loading.first=Math.max(self.performance.now(),d.loading.start),d.total=parseInt(T.headers.get("Content-Length")||"0"),c&&Object(j.isFiniteNumber)(x.highWaterMark)?h.loadProgressively(T,d,m,x.highWaterMark,c):v?T.arrayBuffer():T.text()}).then(function(T){var L=h.response;self.clearTimeout(h.requestTimeout),d.loading.end=Math.max(self.performance.now(),d.loading.first),d.loaded=d.total=T[f];var P={url:L.url,data:T};c&&!Object(j.isFiniteNumber)(x.highWaterMark)&&c(d,m,T,L),_.onSuccess(P,d,m,L)}).catch(function(T){if(self.clearTimeout(h.requestTimeout),d.aborted)return;var L=T.code||0;_.onError({code:L,text:T.message},m,T.details)})},b.getCacheAge=function(){var m=null;if(this.response){var x=this.response.headers.get("age");m=x?parseFloat(x):null}return m},b.loadProgressively=function(m,x,_,h,d){h===void 0&&(h=0);var l=new R.default,c=m.body.getReader(),v=function f(){return c.read().then(function(T){if(T.done)return l.dataLength&&d(x,_,l.flush(),m),Promise.resolve(new ArrayBuffer(0));var L=T.value,P=L.length;return x.loaded+=P,P<h||l.dataLength?(l.push(L),l.dataLength>=h&&d(x,_,l.flush(),m)):d(x,_,L,m),f()}).catch(function(){return Promise.reject()})};return v()},t}();function s(t,b){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:b,headers:new self.Headers(a({},t.headers))};return t.rangeEnd&&y.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),y}function i(t,b){return new self.Request(t.url,b)}var n=function(t){W(b,t);function b(y,m,x){var _;return _=t.call(this,y)||this,_.code=void 0,_.details=void 0,_.code=m,_.details=x,_}return b}(k(Error));M.default=o},"./src/utils/imsc1-ttml-parser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"IMSC1_CODEC",function(){return g}),I.d(M,"parseIMSC1",function(){return r});var j=I("./src/utils/mp4-tools.ts"),C=I("./src/utils/vttparser.ts"),R=I("./src/utils/vttcue.ts"),W=I("./src/demux/id3.ts"),k=I("./src/utils/timescale-conversion.ts"),e=I("./src/utils/webvtt-parser.ts");function O(){return O=Object.assign||function(h){for(var d=1;d<arguments.length;d++){var l=arguments[d];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(h[c]=l[c])}return h},O.apply(this,arguments)}var g="stpp.ttml.im1t",p=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,u=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,a={left:"start",center:"center",right:"end",start:"start",end:"end"};function r(h,d,l,c,v){var f=Object(j.findBox)(new Uint8Array(h),["mdat"]);if(f.length===0){v(new Error("Could not parse IMSC1 mdat"));return}var T=f[0],L=Object(W.utf8ArrayToStr)(new Uint8Array(h,T.start,T.end-T.start)),P=Object(k.toTimescaleFromScale)(d,1,l);try{c(o(L,P))}catch(S){v(S)}}function o(h,d){var l=new DOMParser,c=l.parseFromString(h,"text/xml"),v=c.getElementsByTagName("tt")[0];if(!v)throw new Error("Invalid ttml");var f={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},T=Object.keys(f).reduce(function(H,D){return H[D]=v.getAttribute("ttp:"+D)||f[D],H},{}),L=v.getAttribute("xml:space")!=="preserve",P=i(s(v,"styling","style")),S=i(s(v,"layout","region")),A=s(v,"body","[begin]");return[].map.call(A,function(H){var D=n(H,L);if(!D||!H.hasAttribute("begin"))return null;var K=m(H.getAttribute("begin"),T),V=m(H.getAttribute("dur"),T),oe=m(H.getAttribute("end"),T);if(K===null)throw y(H);if(oe===null){if(V===null)throw y(H);oe=K+V}var le=new R.default(K-d,oe-d,D);le.id=Object(e.generateCueId)(le.startTime,le.endTime,le.text);var Ce=S[H.getAttribute("region")],xe=P[H.getAttribute("style")];le.position=10,le.size=80;var ie=t(Ce,xe),Se=ie.textAlign;if(Se){var Pe=a[Se];Pe&&(le.lineAlign=Pe),le.align=Se}return O(le,ie),le}).filter(function(H){return H!==null})}function s(h,d,l){var c=h.getElementsByTagName(d)[0];return c?[].slice.call(c.querySelectorAll(l)):[]}function i(h){return h.reduce(function(d,l){var c=l.getAttribute("xml:id");return c&&(d[c]=l),d},{})}function n(h,d){return[].slice.call(h.childNodes).reduce(function(l,c,v){var f;return c.nodeName==="br"&&v?l+`
|
|
`:(f=c.childNodes)!==null&&f!==void 0&&f.length?n(c,d):d?l+c.textContent.trim().replace(/\s+/g," "):l+c.textContent},"")}function t(h,d){var l="http://www.w3.org/ns/ttml#styling",c=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return c.reduce(function(v,f){var T=b(d,l,f)||b(h,l,f);return T&&(v[f]=T),v},{})}function b(h,d,l){return h.hasAttributeNS(d,l)?h.getAttributeNS(d,l):null}function y(h){return new Error("Could not parse ttml timestamp "+h)}function m(h,d){if(!h)return null;var l=Object(C.parseTimeStamp)(h);return l===null&&(p.test(h)?l=x(h,d):u.test(h)&&(l=_(h,d))),l}function x(h,d){var l=p.exec(h),c=(l[4]|0)+(l[5]|0)/d.subFrameRate;return(l[1]|0)*3600+(l[2]|0)*60+(l[3]|0)+c/d.frameRate}function _(h,d){var l=u.exec(h),c=Number(l[1]),v=l[2];switch(v){case"h":return c*3600;case"m":return c*60;case"ms":return c*1e3;case"f":return c/d.frameRate;case"t":return c/d.tickRate}return c}},"./src/utils/logger.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"enableLogs",function(){return e}),I.d(M,"logger",function(){return O});var j=function(){},C={trace:j,debug:j,log:j,warn:j,info:j,error:j},R=C;function W(g){var p=self.console[g];return p?p.bind(self.console,"["+g+"] >"):j}function k(g){for(var p=arguments.length,u=new Array(p>1?p-1:0),a=1;a<p;a++)u[a-1]=arguments[a];u.forEach(function(r){R[r]=g[r]?g[r].bind(g):W(r)})}function e(g){if(self.console&&g===!0||typeof g=="object"){k(g,"debug","log","info","warn","error");try{R.log()}catch(p){R=C}}else R=C}var O=R},"./src/utils/mediakeys-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"KeySystems",function(){return j}),I.d(M,"requestMediaKeySystemAccess",function(){return C});var j;(function(R){R.WIDEVINE="com.widevine.alpha",R.PLAYREADY="com.microsoft.playready"})(j||(j={}));var C=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"getMediaSource",function(){return j});function j(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"bin2str",function(){return k}),I.d(M,"readUint16",function(){return e}),I.d(M,"readUint32",function(){return O}),I.d(M,"writeUint32",function(){return g}),I.d(M,"findBox",function(){return p}),I.d(M,"parseSegmentIndex",function(){return u}),I.d(M,"parseInitSegment",function(){return a}),I.d(M,"getStartDTS",function(){return r}),I.d(M,"getDuration",function(){return o}),I.d(M,"computeRawDurationFromSamples",function(){return s}),I.d(M,"offsetStartDTS",function(){return i}),I.d(M,"segmentValidRange",function(){return n}),I.d(M,"appendUint8Array",function(){return t});var j=I("./src/utils/typed-array.ts"),C=I("./src/loader/fragment.ts"),R=Math.pow(2,32)-1,W=[].push;function k(b){return String.fromCharCode.apply(null,b)}function e(b,y){"data"in b&&(y+=b.start,b=b.data);var m=b[y]<<8|b[y+1];return m<0?65536+m:m}function O(b,y){"data"in b&&(y+=b.start,b=b.data);var m=b[y]<<24|b[y+1]<<16|b[y+2]<<8|b[y+3];return m<0?4294967296+m:m}function g(b,y,m){"data"in b&&(y+=b.start,b=b.data),b[y]=m>>24,b[y+1]=m>>16&255,b[y+2]=m>>8&255,b[y+3]=m&255}function p(b,y){var m=[];if(!y.length)return m;var x,_,h;"data"in b?(x=b.data,_=b.start,h=b.end):(x=b,_=0,h=x.byteLength);for(var d=_;d<h;){var l=O(x,d),c=k(x.subarray(d+4,d+8)),v=l>1?d+l:h;if(c===y[0])if(y.length===1)m.push({data:x,start:d+8,end:v});else{var f=p({data:x,start:d+8,end:v},y.slice(1));f.length&&W.apply(m,f)}d=v}return m}function u(b){var y=p(b,["moov"]),m=y[0],x=m?m.end:null,_=p(b,["sidx"]);if(!_||!_[0])return null;var h=[],d=_[0],l=d.data[0],c=l===0?8:16,v=O(d,c);c+=4;var f=0,T=0;l===0?c+=8:c+=16,c+=2;var L=d.end+T,P=e(d,c);c+=2;for(var S=0;S<P;S++){var A=c,H=O(d,A);A+=4;var D=H&2147483647,K=(H&2147483648)>>>31;if(K===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var V=O(d,A);A+=4,h.push({referenceSize:D,subsegmentDuration:V,info:{duration:V/v,start:L,end:L+D-1}}),L+=D,A+=4,c=A}return{earliestPresentationTime:f,timescale:v,version:l,referencesCount:P,references:h,moovEndOffset:x}}function a(b){for(var y=[],m=p(b,["moov","trak"]),x=0;x<m.length;x++){var _=m[x],h=p(_,["tkhd"])[0];if(h){var d=h.data[h.start],l=d===0?12:20,c=O(h,l),v=p(_,["mdia","mdhd"])[0];if(v){d=v.data[v.start],l=d===0?12:20;var f=O(v,l),T=p(_,["mdia","hdlr"])[0];if(T){var L=k(T.data.subarray(T.start+8,T.start+12)),P={soun:C.ElementaryStreamTypes.AUDIO,vide:C.ElementaryStreamTypes.VIDEO}[L];if(P){var S=p(_,["mdia","minf","stbl","stsd"])[0],A=void 0;S&&(A=k(S.data.subarray(S.start+12,S.start+16))),y[c]={timescale:f,type:P},y[P]={timescale:f,id:c,codec:A}}}}}}var H=p(b,["moov","mvex","trex"]);return H.forEach(function(D){var K=O(D,4),V=y[K];V&&(V.default={duration:O(D,12),flags:O(D,20)})}),y}function r(b,y){return p(y,["moof","traf"]).reduce(function(m,x){var _=p(x,["tfdt"])[0],h=_.data[_.start],d=p(x,["tfhd"]).reduce(function(l,c){var v=O(c,4),f=b[v];if(f){var T=O(_,4);h===1&&(T*=Math.pow(2,32),T+=O(_,8));var L=f.timescale||9e4,P=T/L;if(isFinite(P)&&(l===null||P<l))return P}return l},null);return d!==null&&isFinite(d)&&(m===null||d<m)?d:m},null)||0}function o(b,y){for(var m=0,x=0,_=0,h=p(b,["moof","traf"]),d=0;d<h.length;d++){var l=h[d],c=p(l,["tfhd"])[0],v=O(c,4),f=y[v];if(!f)continue;var T=f.default,L=O(c,0)|(T==null?void 0:T.flags),P=T==null?void 0:T.duration;L&8&&(L&2?P=O(c,12):P=O(c,8));for(var S=f.timescale||9e4,A=p(l,["trun"]),H=0;H<A.length;H++){if(P){var D=O(A[H],4);m=P*D}else m=s(A[H]);f.type===C.ElementaryStreamTypes.VIDEO?x+=m/S:f.type===C.ElementaryStreamTypes.AUDIO&&(_+=m/S)}}if(x===0&&_===0){var K=u(b);if(K!=null&&K.references)return K.references.reduce(function(V,oe){return V+oe.info.duration||0},0)}return x||_}function s(b){var y=O(b,0),m=8;y&1&&(m+=4),y&4&&(m+=4);for(var x=0,_=O(b,4),h=0;h<_;h++){if(y&256){var d=O(b,m);x+=d,m+=4}y&512&&(m+=4),y&1024&&(m+=4),y&2048&&(m+=4)}return x}function i(b,y,m){p(y,["moof","traf"]).forEach(function(x){p(x,["tfhd"]).forEach(function(_){var h=O(_,4),d=b[h];if(!d)return;var l=d.timescale||9e4;p(x,["tfdt"]).forEach(function(c){var v=c.data[c.start],f=O(c,4);if(v===0)g(c,4,f-m*l);else{f*=Math.pow(2,32),f+=O(c,8),f-=m*l,f=Math.max(f,0);var T=Math.floor(f/(R+1)),L=Math.floor(f%(R+1));g(c,4,T),g(c,8,L)}})})})}function n(b){var y={valid:null,remainder:null},m=p(b,["moof"]);if(m){if(m.length<2)return y.remainder=b,y}else return y;var x=m[m.length-1];return y.valid=Object(j.sliceUint8)(b,0,x.start-8),y.remainder=Object(j.sliceUint8)(b,x.start-8),y}function t(b,y){var m=new Uint8Array(b.length+y.length);return m.set(b),m.set(y,b.length),m}},"./src/utils/output-filter.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(W,k){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=W,this.trackName=k}var R=C.prototype;return R.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},R.newCue=function(k,e,O){(this.startTime===null||this.startTime>k)&&(this.startTime=k),this.endTime=e,this.screen=O,this.timelineController.createCaptionsTrack(this.trackName)},R.reset=function(){this.cueRanges=[]},C}()},"./src/utils/texttrack-utils.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"sendAddTrackEvent",function(){return C}),I.d(M,"addCueToTrack",function(){return R}),I.d(M,"clearCurrentCues",function(){return W}),I.d(M,"removeCuesInRange",function(){return k}),I.d(M,"getCuesInRange",function(){return O});var j=I("./src/utils/logger.ts");function C(g,p){var u;try{u=new Event("addtrack")}catch(a){u=document.createEvent("Event"),u.initEvent("addtrack",!1,!1)}u.track=g,p.dispatchEvent(u)}function R(g,p){var u=g.mode;if(u==="disabled"&&(g.mode="hidden"),g.cues&&!g.cues.getCueById(p.id))try{if(g.addCue(p),!g.cues.getCueById(p.id))throw new Error("addCue is failed for: "+p)}catch(r){j.logger.debug("[texttrack-utils]: "+r);var a=new self.TextTrackCue(p.startTime,p.endTime,p.text);a.id=p.id,g.addCue(a)}u==="disabled"&&(g.mode=u)}function W(g){var p=g.mode;if(p==="disabled"&&(g.mode="hidden"),g.cues)for(var u=g.cues.length;u--;)g.removeCue(g.cues[u]);p==="disabled"&&(g.mode=p)}function k(g,p,u){var a=g.mode;if(a==="disabled"&&(g.mode="hidden"),g.cues&&g.cues.length>0)for(var r=O(g.cues,p,u),o=0;o<r.length;o++)g.removeCue(r[o]);a==="disabled"&&(g.mode=a)}function e(g,p){if(p<g[0].startTime)return 0;var u=g.length-1;if(p>g[u].endTime)return-1;for(var a=0,r=u;a<=r;){var o=Math.floor((r+a)/2);if(p<g[o].startTime)r=o-1;else if(p>g[o].startTime&&a<u)a=o+1;else return o}return g[a].startTime-p<p-g[r].startTime?a:r}function O(g,p,u){var a=[],r=e(g,p);if(r>-1)for(var o=r,s=g.length;o<s;o++){var i=g[o];if(i.startTime>=p&&i.endTime<=u)a.push(i);else if(i.startTime>u)return a}return a}},"./src/utils/time-ranges.ts":function(Q,M,I){"use strict";I.r(M);var j={toString:function(R){for(var W="",k=R.length,e=0;e<k;e++)W+="["+R.start(e).toFixed(3)+","+R.end(e).toFixed(3)+"]";return W}};M.default=j},"./src/utils/timescale-conversion.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"toTimescaleFromBase",function(){return C}),I.d(M,"toTimescaleFromScale",function(){return R}),I.d(M,"toMsFromMpegTsClock",function(){return W}),I.d(M,"toMpegTsClockFromTimescale",function(){return k});var j=9e4;function C(e,O,g,p){g===void 0&&(g=1),p===void 0&&(p=!1);var u=e*O*g;return p?Math.round(u):u}function R(e,O,g,p){return g===void 0&&(g=1),p===void 0&&(p=!1),C(e,O,1/g,p)}function W(e,O){return O===void 0&&(O=!1),C(e,1e3,1/j,O)}function k(e,O){return O===void 0&&(O=1),C(e,j,1/O)}},"./src/utils/typed-array.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"sliceUint8",function(){return j});function j(C,R,W){return Uint8Array.prototype.slice?C.slice(R,W):new Uint8Array(Array.prototype.slice.call(C,R,W))}},"./src/utils/vttcue.ts":function(Q,M,I){"use strict";I.r(M),M.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var j=["","lr","rl"],C=["start","middle","end","left","right"];function R(g,p){if(typeof p!="string")return!1;if(!Array.isArray(g))return!1;var u=p.toLowerCase();return~g.indexOf(u)?u:!1}function W(g){return R(j,g)}function k(g){return R(C,g)}function e(g){for(var p=arguments.length,u=new Array(p>1?p-1:0),a=1;a<p;a++)u[a-1]=arguments[a];for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)g[s]=o[s]}return g}function O(g,p,u){var a=this,r={enumerable:!0};a.hasBeenReset=!1;var o="",s=!1,i=g,n=p,t=u,b=null,y="",m=!0,x="auto",_="start",h=50,d="middle",l=50,c="middle";Object.defineProperty(a,"id",e({},r,{get:function(){return o},set:function(f){o=""+f}})),Object.defineProperty(a,"pauseOnExit",e({},r,{get:function(){return s},set:function(f){s=!!f}})),Object.defineProperty(a,"startTime",e({},r,{get:function(){return i},set:function(f){if(typeof f!="number")throw new TypeError("Start time must be set to a number.");i=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",e({},r,{get:function(){return n},set:function(f){if(typeof f!="number")throw new TypeError("End time must be set to a number.");n=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",e({},r,{get:function(){return t},set:function(f){t=""+f,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",e({},r,{get:function(){return b},set:function(f){b=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",e({},r,{get:function(){return y},set:function(f){var T=W(f);if(T===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=T,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",e({},r,{get:function(){return m},set:function(f){m=!!f,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",e({},r,{get:function(){return x},set:function(f){if(typeof f!="number"&&f!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");x=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",e({},r,{get:function(){return _},set:function(f){var T=k(f);if(!T)throw new SyntaxError("An invalid or illegal string was specified.");_=T,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",e({},r,{get:function(){return h},set:function(f){if(f<0||f>100)throw new Error("Position must be between 0 and 100.");h=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",e({},r,{get:function(){return d},set:function(f){var T=k(f);if(!T)throw new SyntaxError("An invalid or illegal string was specified.");d=T,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",e({},r,{get:function(){return l},set:function(f){if(f<0||f>100)throw new Error("Size must be between 0 and 100.");l=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",e({},r,{get:function(){return c},set:function(f){var T=k(f);if(!T)throw new SyntaxError("An invalid or illegal string was specified.");c=T,this.hasBeenReset=!0}})),a.displayState=void 0}return O.prototype.getCueAsHTML=function(){var g=self.WebVTT;return g.convertCueToDOMTree(self,this.text)},O}()},"./src/utils/vttparser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"parseTimeStamp",function(){return R}),I.d(M,"fixLineBreaks",function(){return p}),I.d(M,"VTTParser",function(){return u});var j=I("./src/utils/vttcue.ts"),C=function(){function a(){}var r=a.prototype;return r.decode=function(s,i){if(!s)return"";if(typeof s!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(s))},a}();function R(a){function r(s,i,n,t){return(s|0)*3600+(i|0)*60+(n|0)+parseFloat(t||0)}var o=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return o?parseFloat(o[2])>59?r(o[2],o[3],0,o[4]):r(o[1],o[2],o[3],o[4]):null}var W=function(){function a(){this.values=Object.create(null)}var r=a.prototype;return r.set=function(s,i){!this.get(s)&&i!==""&&(this.values[s]=i)},r.get=function(s,i,n){return n?this.has(s)?this.values[s]:i[n]:this.has(s)?this.values[s]:i},r.has=function(s){return s in this.values},r.alt=function(s,i,n){for(var t=0;t<n.length;++t)if(i===n[t]){this.set(s,i);break}},r.integer=function(s,i){/^-?\d+$/.test(i)&&this.set(s,parseInt(i,10))},r.percent=function(s,i){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(i)){var n=parseFloat(i);if(n>=0&&n<=100)return this.set(s,n),!0}return!1},a}();function k(a,r,o,s){var i=s?a.split(s):[a];for(var n in i){if(typeof i[n]!="string")continue;var t=i[n].split(o);if(t.length!==2)continue;var b=t[0],y=t[1];r(b,y)}}var e=new j.default(0,0,""),O=e.align==="middle"?"middle":"center";function g(a,r,o){var s=a;function i(){var b=R(a);if(b===null)throw new Error("Malformed timestamp: "+s);return a=a.replace(/^[^\sa-zA-Z-]+/,""),b}function n(b,y){var m=new W;k(b,function(h,d){var l;switch(h){case"region":for(var c=o.length-1;c>=0;c--)if(o[c].id===d){m.set(h,o[c].region);break}break;case"vertical":m.alt(h,d,["rl","lr"]);break;case"line":l=d.split(","),m.integer(h,l[0]),m.percent(h,l[0])&&m.set("snapToLines",!1),m.alt(h,l[0],["auto"]),l.length===2&&m.alt("lineAlign",l[1],["start",O,"end"]);break;case"position":l=d.split(","),m.percent(h,l[0]),l.length===2&&m.alt("positionAlign",l[1],["start",O,"end","line-left","line-right","auto"]);break;case"size":m.percent(h,d);break;case"align":m.alt(h,d,["start",O,"end","left","right"]);break}},/:/,/\s/),y.region=m.get("region",null),y.vertical=m.get("vertical","");var x=m.get("line","auto");x==="auto"&&e.line===-1&&(x=-1),y.line=x,y.lineAlign=m.get("lineAlign","start"),y.snapToLines=m.get("snapToLines",!0),y.size=m.get("size",100),y.align=m.get("align",O);var _=m.get("position","auto");_==="auto"&&e.position===50&&(_=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=_}function t(){a=a.replace(/^\s+/,"")}if(t(),r.startTime=i(),t(),a.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+s);a=a.substr(3),t(),r.endTime=i(),t(),n(a,r)}function p(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
`)}var u=function(){function a(){this.state="INITIAL",this.buffer="",this.decoder=new C,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var r=a.prototype;return r.parse=function(s){var i=this;s&&(i.buffer+=i.decoder.decode(s,{stream:!0}));function n(){var _=i.buffer,h=0;for(_=p(_);h<_.length&&_[h]!=="\r"&&_[h]!==`
|
|
`;)++h;var d=_.substr(0,h);return _[h]==="\r"&&++h,_[h]===`
|
|
`&&++h,i.buffer=_.substr(h),d}function t(_){k(_,function(h,d){},/:/)}try{var b="";if(i.state==="INITIAL"){if(!/\r\n|\n/.test(i.buffer))return this;b=n();var y=b.match(/^()?WEBVTT([ \t].*)?$/);if(!y||!y[0])throw new Error("Malformed WebVTT signature.");i.state="HEADER"}for(var m=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;m?m=!1:b=n();switch(i.state){case"HEADER":/:/.test(b)?t(b):b||(i.state="ID");continue;case"NOTE":b||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(b)){i.state="NOTE";break}if(!b)continue;if(i.cue=new j.default(0,0,""),i.state="CUE",b.indexOf("-->")===-1){i.cue.id=b;continue}case"CUE":if(!i.cue){i.state="BADCUE";continue}try{g(b,i.cue,i.regionList)}catch(_){i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":{var x=b.indexOf("-->")!==-1;if(!b||x&&(m=!0)){i.oncue&&i.cue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}if(i.cue===null)continue;i.cue.text&&(i.cue.text+=`
|
|
`),i.cue.text+=b}continue;case"BADCUE":b||(i.state="ID")}}}catch(_){i.state==="CUETEXT"&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state=i.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},r.flush=function(){var s=this;try{if((s.cue||s.state==="HEADER")&&(s.buffer+=`
|
|
|
|
`,s.parse()),s.state==="INITIAL"||s.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(i){s.onparsingerror&&s.onparsingerror(i)}return s.onflush&&s.onflush(),this},a}()},"./src/utils/webvtt-parser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"generateCueId",function(){return u}),I.d(M,"parseWebVTT",function(){return r});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/vttparser.ts"),R=I("./src/demux/id3.ts"),W=I("./src/utils/timescale-conversion.ts"),k=I("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,O=function(s,i,n){return n===void 0&&(n=0),s.substr(n,i.length)===i},g=function(s){var i=parseInt(s.substr(-3)),n=parseInt(s.substr(-6,2)),t=parseInt(s.substr(-9,2)),b=s.length>9?parseInt(s.substr(0,s.indexOf(":"))):0;if(!Object(j.isFiniteNumber)(i)||!Object(j.isFiniteNumber)(n)||!Object(j.isFiniteNumber)(t)||!Object(j.isFiniteNumber)(b))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+s);return i+=1e3*n,i+=60*1e3*t,i+=60*60*1e3*b,i},p=function(s){for(var i=5381,n=s.length;n;)i=i*33^s.charCodeAt(--n);return(i>>>0).toString()};function u(o,s,i){return p(o.toString())+p(s.toString())+p(i)}var a=function(s,i,n){var t=s[i],b=s[t.prevCC];if(!b||!b.new&&t.new){s.ccOffset=s.presentationOffset=t.start,t.new=!1;return}for(;(y=b)!==null&&y!==void 0&&y.new;){var y;s.ccOffset+=t.start-b.start,t.new=!1,t=b,b=s[t.prevCC]}s.presentationOffset=n};function r(o,s,i,n,t,b,y,m){var x=new C.VTTParser,_=Object(R.utf8ArrayToStr)(new Uint8Array(o)).trim().replace(e,`
|
|
`).split(`
|
|
`),h=[],d=Object(W.toMpegTsClockFromTimescale)(s,i),l="00:00.000",c=0,v=0,f,T=!0,L=!1;x.oncue=function(P){var S=n[t],A=n.ccOffset,H=(c-d)/9e4;if(S!=null&&S.new&&(v!==void 0?A=n.ccOffset=S.start:a(n,t,H)),H&&(A=H-n.presentationOffset),L){var D=P.endTime-P.startTime,K=Object(k.normalizePts)((P.startTime+A-v)*9e4,b*9e4)/9e4;P.startTime=K,P.endTime=K+D}var V=P.text.trim();P.text=decodeURIComponent(encodeURIComponent(V)),P.id||(P.id=u(P.startTime,P.endTime,V)),P.endTime>0&&h.push(P)},x.onparsingerror=function(P){f=P},x.onflush=function(){if(f){m(f);return}y(h)},_.forEach(function(P){if(T)if(O(P,"X-TIMESTAMP-MAP=")){T=!1,L=!0,P.substr(16).split(",").forEach(function(S){O(S,"LOCAL:")?l=S.substr(6):O(S,"MPEGTS:")&&(c=parseInt(S.substr(7)))});try{v=g(l)/1e3}catch(S){L=!1,f=S}return}else P===""&&(T=!1);x.parse(P+`
|
|
`)}),x.flush()}},"./src/utils/xhr-loader.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/logger.ts"),C=I("./src/loader/load-stats.ts"),R=/^age:\s*[\d.]+\s*$/m,W=function(){function k(O){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=O?O.xhrSetup:null,this.stats=new C.LoadStats,this.retryDelay=0}var e=k.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var g=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),g&&(g.onreadystatechange=null,g.onprogress=null,g.readyState!==4&&(this.stats.aborted=!0,g.abort()))},e.abort=function(){var g;this.abortInternal(),(g=this.callbacks)!==null&&g!==void 0&&g.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(g,p,u){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=g,this.config=p,this.callbacks=u,this.retryDelay=p.retryDelay,this.loadInternal()},e.loadInternal=function(){var g=this.config,p=this.context;if(!g)return;var u=this.loader=new self.XMLHttpRequest,a=this.stats;a.loading.first=0,a.loaded=0;var r=this.xhrSetup;try{if(r)try{r(u,p.url)}catch(i){u.open("GET",p.url,!0),r(u,p.url)}u.readyState||u.open("GET",p.url,!0);var o=this.context.headers;if(o)for(var s in o)u.setRequestHeader(s,o[s])}catch(i){this.callbacks.onError({code:u.status,text:i.message},p,u);return}p.rangeEnd&&u.setRequestHeader("Range","bytes="+p.rangeStart+"-"+(p.rangeEnd-1)),u.onreadystatechange=this.readystatechange.bind(this),u.onprogress=this.loadprogress.bind(this),u.responseType=p.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),g.timeout),u.send()},e.readystatechange=function(){var g=this.context,p=this.loader,u=this.stats;if(!g||!p)return;var a=p.readyState,r=this.config;if(u.aborted)return;if(a>=2)if(self.clearTimeout(this.requestTimeout),u.loading.first===0&&(u.loading.first=Math.max(self.performance.now(),u.loading.start)),a===4){p.onreadystatechange=null,p.onprogress=null;var o=p.status;if(o>=200&&o<300){u.loading.end=Math.max(self.performance.now(),u.loading.first);var s,i;if(g.responseType==="arraybuffer"?(s=p.response,i=s.byteLength):(s=p.responseText,i=s.length),u.loaded=u.total=i,!this.callbacks)return;var n=this.callbacks.onProgress;if(n&&n(u,g,s,p),!this.callbacks)return;var t={url:p.responseURL,data:s};this.callbacks.onSuccess(t,u,g,p)}else u.retry>=r.maxRetry||o>=400&&o<499?(j.logger.error(o+" while loading "+g.url),this.callbacks.onError({code:o,text:p.statusText},g,p)):(j.logger.warn(o+" while loading "+g.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,r.maxRetryDelay),u.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout)},e.loadtimeout=function(){j.logger.warn("timeout while loading "+this.context.url);var g=this.callbacks;g&&(this.abortInternal(),g.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(g){var p=this.stats;p.loaded=g.loaded,g.lengthComputable&&(p.total=g.total)},e.getCacheAge=function(){var g=null;if(this.loader&&R.test(this.loader.getAllResponseHeaders())){var p=this.loader.getResponseHeader("age");g=p?parseFloat(p):null}return g},k}();M.default=W}}).default})},vHTk:function(je,ne,N){je.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(je,ne,N){"use strict";N.d(ne,"a",function(){return rt});var Q=N("rePB"),M=N("VTBJ"),I=N("KQm4"),j=N("U8pU"),C=N("ODXe"),R=N("q1tI"),W=N("TSYQ"),k=N.n(W),e=N("Gytx"),O=N.n(e),g=N("Kwbf"),p=N("t23M"),u=N("qx4F"),a=N("6eGT"),r=N("IBYe"),o=N("Ff2n"),s=N("c+Xe"),i=N("fyJ8"),n=N("biw7");function t(ye,Ae,ke,He,Ie){var Le=ke[ye]||{},fe=ke[Ae]||{},re,ae;Le.fixed==="left"?re=He.left[ye]:fe.fixed==="right"&&(ae=He.right[Ae]);var Y=!1,J=!1,Z=!1,se=!1,Ee=ke[Ae+1],De=ke[ye-1];if(Ie==="rtl"){if(re!==void 0){var Ke=De&&De.fixed==="left";se=!Ke}else if(ae!==void 0){var ut=Ee&&Ee.fixed==="right";Z=!ut}}else if(re!==void 0){var ct=Ee&&Ee.fixed==="left";Y=!ct}else if(ae!==void 0){var Oe=De&&De.fixed==="right";J=!Oe}return{fixLeft:re,fixRight:ae,lastFixLeft:Y,firstFixRight:J,lastFixRight:Z,firstFixLeft:se,isSticky:He.isSticky}}var b=N("sR1s");function y(ye){var Ae=ye.cells,ke=ye.stickyOffsets,He=ye.flattenColumns,Ie=ye.rowComponent,Le=ye.cellComponent,fe=ye.onHeaderRow,re=ye.index,ae=R.useContext(n.a),Y=ae.prefixCls,J=ae.direction,Z;fe&&(Z=fe(Ae.map(function(Ee){return Ee.column}),re));var se=Object(b.a)(Ae.map(function(Ee){return Ee.column}));return R.createElement(Ie,Object.assign({},Z),Ae.map(function(Ee,De){var Ke=Ee.column,ut=t(Ee.colStart,Ee.colEnd,He,ke,J),ct;return Ke&&Ke.onHeaderCell&&(ct=Ee.column.onHeaderCell(Ke)),R.createElement(i.a,Object.assign({},Ee,{ellipsis:Ke.ellipsis,align:Ke.align,component:Le,prefixCls:Y,key:se[De]},ut,{additionalProps:ct,rowType:"header"}))}))}y.displayName="HeaderRow";var m=y;function x(ye){var Ae=[];function ke(fe,re){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ae[ae]=Ae[ae]||[];var Y=re,J=fe.filter(Boolean).map(function(Z){var se={key:Z.key,className:Z.className||"",children:Z.title,column:Z,colStart:Y},Ee=1,De=Z.children;return De&&De.length>0&&(Ee=ke(De,Y,ae+1).reduce(function(Ke,ut){return Ke+ut},0),se.hasSubColumns=!0),"colSpan"in Z&&(Ee=Z.colSpan),"rowSpan"in Z&&(se.rowSpan=Z.rowSpan),se.colSpan=Ee,se.colEnd=se.colStart+Ee-1,Ae[ae].push(se),Y+=Ee,Ee});return J}ke(ye,0);for(var He=Ae.length,Ie=function(re){Ae[re].forEach(function(ae){!("rowSpan"in ae)&&!ae.hasSubColumns&&(ae.rowSpan=He-re)})},Le=0;Le<He;Le+=1)Ie(Le);return Ae}function _(ye){var Ae=ye.stickyOffsets,ke=ye.columns,He=ye.flattenColumns,Ie=ye.onHeaderRow,Le=R.useContext(n.a),fe=Le.prefixCls,re=Le.getComponent,ae=R.useMemo(function(){return x(ke)},[ke]),Y=re(["header","wrapper"],"thead"),J=re(["header","row"],"tr"),Z=re(["header","cell"],"th");return R.createElement(Y,{className:"".concat(fe,"-thead")},ae.map(function(se,Ee){var De=R.createElement(m,{key:Ee,flattenColumns:He,cells:se,stickyOffsets:Ae,rowComponent:J,cellComponent:Z,onHeaderRow:Ie,index:Ee});return De}))}var h=_,d=N("hW8S");function l(ye){for(var Ae=ye.colWidths,ke=ye.columns,He=ye.columCount,Ie=[],Le=He||ke.length,fe=!1,re=Le-1;re>=0;re-=1){var ae=Ae[re],Y=ke&&ke[re],J=Y&&Y[d.a];(ae||J||fe)&&(Ie.unshift(R.createElement("col",Object.assign({key:re,style:{width:ae,minWidth:ae}},J))),fe=!0)}return R.createElement("colgroup",null,Ie)}var c=l;function v(ye,Ae){return Object(R.useMemo)(function(){for(var ke=[],He=0;He<Ae;He+=1){var Ie=ye[He];if(Ie!==void 0)ke[He]=Ie;else return null}return ke},[ye.join("_"),Ae])}var f=R.forwardRef(function(ye,Ae){var ke=ye.noData,He=ye.columns,Ie=ye.flattenColumns,Le=ye.colWidths,fe=ye.columCount,re=ye.stickyOffsets,ae=ye.direction,Y=ye.fixHeader,J=ye.offsetHeader,Z=ye.stickyClassName,se=ye.onScroll,Ee=Object(o.a)(ye,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),De=R.useContext(n.a),Ke=De.prefixCls,ut=De.scrollbarSize,ct=De.isSticky,Oe=ct&&!Y?0:ut,ot=R.useRef(null),st=R.useCallback(function(xt){Object(s.b)(Ae,xt),Object(s.b)(ot,xt)},[]);R.useEffect(function(){var xt;function Ot(qe){var Bt=qe.currentTarget,gt=qe.deltaX;gt&&(se({currentTarget:Bt,scrollLeft:Bt.scrollLeft+gt}),qe.preventDefault())}return(xt=ot.current)===null||xt===void 0||xt.addEventListener("wheel",Ot),function(){var qe;(qe=ot.current)===null||qe===void 0||qe.removeEventListener("wheel",Ot)}},[]);var Qe=Ie[Ie.length-1],_t={fixed:Qe?Qe.fixed:null,onHeaderCell:function(){return{className:"".concat(Ke,"-cell-scrollbar")}}},Tt=Object(R.useMemo)(function(){return Oe?[].concat(Object(I.a)(He),[_t]):He},[Oe,He]),Et=Object(R.useMemo)(function(){return Oe?[].concat(Object(I.a)(Ie),[_t]):Ie},[Oe,Ie]),Rt=Object(R.useMemo)(function(){var xt=re.right,Ot=re.left;return Object(M.a)(Object(M.a)({},re),{},{left:ae==="rtl"?[].concat(Object(I.a)(Ot.map(function(qe){return qe+Oe})),[0]):Ot,right:ae==="rtl"?xt:[].concat(Object(I.a)(xt.map(function(qe){return qe+Oe})),[0]),isSticky:ct})},[Oe,re,ct]),bt=v(Le,fe);return R.createElement("div",{style:Object(M.a)({overflow:"hidden"},ct?{top:J}:{}),ref:st,className:k()("".concat(Ke,"-header"),Object(Q.a)({},Z,!!Z))},R.createElement("table",{style:{tableLayout:"fixed",visibility:ke||bt?null:"hidden"}},R.createElement(c,{colWidths:bt?[].concat(Object(I.a)(bt),[Oe]):[],columCount:fe+1,columns:Et}),R.createElement(h,Object.assign({},Ee,{stickyOffsets:Rt,columns:Tt,flattenColumns:Et}))))});f.displayName="FixedHeader";var T=f,L=R.createContext(null),P=L;function S(ye){var Ae=ye.prefixCls,ke=ye.children,He=ye.component,Ie=ye.cellComponent,Le=ye.fixHeader,fe=ye.fixColumn,re=ye.horizonScroll,ae=ye.className,Y=ye.expanded,J=ye.componentWidth,Z=ye.colSpan,se=R.useContext(n.a),Ee=se.scrollbarSize;return R.useMemo(function(){var De=ke;return fe&&(De=R.createElement("div",{style:{width:J-(Le?Ee:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ae,"-expanded-row-fixed")},De)),R.createElement(He,{className:ae,style:{display:Y?null:"none"}},R.createElement(i.a,{component:Ie,prefixCls:Ae,colSpan:Z},De))},[ke,He,Le,re,ae,Y,J,Z,Ee])}var A=S;function H(ye){var Ae=ye.className,ke=ye.style,He=ye.record,Ie=ye.index,Le=ye.rowKey,fe=ye.getRowKey,re=ye.rowExpandable,ae=ye.expandedKeys,Y=ye.onRow,J=ye.indent,Z=J===void 0?0:J,se=ye.rowComponent,Ee=ye.cellComponent,De=ye.childrenColumnName,Ke=R.useContext(n.a),ut=Ke.prefixCls,ct=Ke.fixedInfoList,Oe=R.useContext(P),ot=Oe.fixHeader,st=Oe.fixColumn,Qe=Oe.horizonScroll,_t=Oe.componentWidth,Tt=Oe.flattenColumns,Et=Oe.expandableType,Rt=Oe.expandRowByClick,bt=Oe.onTriggerExpand,xt=Oe.rowClassName,Ot=Oe.expandedRowClassName,qe=Oe.indentSize,Bt=Oe.expandIcon,gt=Oe.expandedRowRender,vt=Oe.expandIconColumnIndex,wt=R.useState(!1),pt=Object(C.a)(wt,2),tn=pt[0],Yt=pt[1],cn=ae&&ae.has(ye.recordKey);R.useEffect(function(){cn&&Yt(!0)},[cn]);var Ht=Et==="row"&&(!re||re(He)),At=Et==="nest",Ft=De&&He&&He[De],fn=Ht||At,ln;Y&&(ln=Y(He,Ie));var Tn=function(E){if(Rt&&fn&&bt(He,E),ln&&ln.onClick){for(var w,U=arguments.length,G=new Array(U>1?U-1:0),F=1;F<U;F++)G[F-1]=arguments[F];(w=ln).onClick.apply(w,[E].concat(G))}},Mn;typeof xt=="string"?Mn=xt:typeof xt=="function"&&(Mn=xt(He,Ie,Z));var Vn=Object(b.a)(Tt),Yn=R.createElement(se,Object.assign({},ln,{"data-row-key":Le,className:k()(Ae,"".concat(ut,"-row"),"".concat(ut,"-row-level-").concat(Z),Mn,ln&&ln.className),style:Object(M.a)(Object(M.a)({},ke),ln?ln.style:null),onClick:Tn}),Tt.map(function(B,E){var w=B.render,U=B.dataIndex,G=B.className,F=Vn[E],me=ct[E],Ge;E===(vt||0)&&At&&(Ge=R.createElement(R.Fragment,null,R.createElement("span",{style:{paddingLeft:"".concat(qe*Z,"px")},className:"".concat(ut,"-row-indent indent-level-").concat(Z)}),Bt({prefixCls:ut,expanded:cn,expandable:Ft,record:He,onExpand:bt})));var dt;return B.onCell&&(dt=B.onCell(He,Ie)),R.createElement(i.a,Object.assign({className:G,ellipsis:B.ellipsis,align:B.align,component:Ee,prefixCls:ut,key:F,record:He,index:Ie,dataIndex:U,render:w,shouldCellUpdate:B.shouldCellUpdate},me,{appendNode:Ge,additionalProps:dt}))})),Ut;if(Ht&&(tn||cn)){var qn=gt(He,Ie,Z+1,cn),fi=Ot&&Ot(He,Ie,Z);Ut=R.createElement(A,{expanded:cn,className:k()("".concat(ut,"-expanded-row"),"".concat(ut,"-expanded-row-level-").concat(Z+1),fi),prefixCls:ut,fixHeader:ot,fixColumn:st,horizonScroll:Qe,component:se,componentWidth:_t,cellComponent:Ee,colSpan:Tt.length},qn)}var $n;return Ft&&cn&&($n=(He[De]||[]).map(function(B,E){var w=fe(B,E);return R.createElement(H,Object.assign({},ye,{key:w,rowKey:w,record:B,recordKey:w,index:E,indent:Z+1}))})),R.createElement(R.Fragment,null,Yn,Ut,$n)}H.displayName="BodyRow";var D=H,K=R.createContext(null),V=K;function oe(ye){var Ae=ye.columnKey,ke=ye.onColumnResize,He=R.useRef();return R.useEffect(function(){He.current&&ke(Ae,He.current.offsetWidth)},[]),R.createElement(p.a,{onResize:function(Le){var fe=Le.offsetWidth;ke(Ae,fe)}},R.createElement("td",{ref:He,style:{padding:0,border:0,height:0}},R.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function le(ye){var Ae=ye.data,ke=ye.getRowKey,He=ye.measureColumnWidth,Ie=ye.expandedKeys,Le=ye.onRow,fe=ye.rowExpandable,re=ye.emptyNode,ae=ye.childrenColumnName,Y=R.useContext(V),J=Y.onColumnResize,Z=R.useContext(n.a),se=Z.prefixCls,Ee=Z.getComponent,De=R.useContext(P),Ke=De.fixHeader,ut=De.horizonScroll,ct=De.flattenColumns,Oe=De.componentWidth;return R.useMemo(function(){var ot=Ee(["body","wrapper"],"tbody"),st=Ee(["body","row"],"tr"),Qe=Ee(["body","cell"],"td"),_t;Ae.length?_t=Ae.map(function(Et,Rt){var bt=ke(Et,Rt);return R.createElement(D,{key:bt,rowKey:bt,record:Et,recordKey:bt,index:Rt,rowComponent:st,cellComponent:Qe,expandedKeys:Ie,onRow:Le,getRowKey:ke,rowExpandable:fe,childrenColumnName:ae})}):_t=R.createElement(A,{expanded:!0,className:"".concat(se,"-placeholder"),prefixCls:se,fixHeader:Ke,fixColumn:ut,horizonScroll:ut,component:st,componentWidth:Oe,cellComponent:Qe,colSpan:ct.length},re);var Tt=Object(b.a)(ct);return R.createElement(ot,{className:"".concat(se,"-tbody")},He&&R.createElement("tr",{"aria-hidden":"true",className:"".concat(se,"-measure-row"),style:{height:0}},Tt.map(function(Et){return R.createElement(oe,{key:Et,columnKey:Et,onColumnResize:J})})),_t)},[Ae,se,Le,He,Ie,ke,Ee,Oe,re,ct])}var Ce=R.memo(le);Ce.displayName="Body";var xe=Ce,ie=N("wRmb"),Se=N("xEkU"),Pe=N.n(Se);function de(ye){var Ae=Object(R.useRef)(ye),ke=Object(R.useState)({}),He=Object(C.a)(ke,2),Ie=He[1],Le=Object(R.useRef)(null),fe=Object(R.useRef)([]);function re(ae){Le.current===null&&(fe.current=[],Le.current=Pe()(function(){fe.current.forEach(function(Y){Ae.current=Y(Ae.current)}),Le.current=null,Ie({})})),fe.current.push(ae)}return Object(R.useEffect)(function(){return function(){Pe.a.cancel(Le.current)}},[]),[Ae.current,re]}function $(ye){var Ae=Object(R.useRef)(ye),ke=Object(R.useRef)(null);function He(){window.clearTimeout(ke.current)}function Ie(fe){Ae.current=fe,He(),ke.current=window.setTimeout(function(){Ae.current=null,ke.current=null},100)}function Le(){return Ae.current}return Object(R.useEffect)(function(){return He},[]),[Ie,Le]}function Ne(ye,Ae,ke){var He=Object(R.useMemo)(function(){for(var Ie=[],Le=[],fe=0,re=0,ae=0;ae<Ae;ae+=1)if(ke==="rtl"){Le[ae]=re,re+=ye[ae]||0;var Y=Ae-ae-1;Ie[Y]=fe,fe+=ye[Y]||0}else{Ie[ae]=fe,fe+=ye[ae]||0;var J=Ae-ae-1;Le[J]=re,re+=ye[J]||0}return{left:Ie,right:Le}},[ye,Ae,ke]);return He}var lt=Ne;function it(ye){var Ae=ye.className,ke=ye.children;return R.createElement("div",{className:Ae},ke)}var Je=it,at=N("n6Qo");function Ue(ye){var Ae,ke=ye.prefixCls,He=ye.record,Ie=ye.onExpand,Le=ye.expanded,fe=ye.expandable,re="".concat(ke,"-row-expand-icon");if(!fe)return R.createElement("span",{className:k()(re,"".concat(ke,"-row-spaced"))});var ae=function(J){Ie(He,J),J.stopPropagation()};return R.createElement("span",{className:k()(re,(Ae={},Object(Q.a)(Ae,"".concat(ke,"-row-expanded"),Le),Object(Q.a)(Ae,"".concat(ke,"-row-collapsed"),!Le),Ae)),onClick:ae})}function ze(ye,Ae,ke){var He=[];function Ie(Le){(Le||[]).forEach(function(fe,re){He.push(Ae(fe,re)),Ie(fe[ke])})}return Ie(ye),He}var et=N("zT1h"),ee=N("y0+3"),ge=function(Ae,ke){var He,Ie,Le=Ae.scrollBodyRef,fe=Ae.onScroll,re=Ae.offsetScroll,ae=R.useContext(n.a),Y=ae.prefixCls,J=((He=Le.current)===null||He===void 0?void 0:He.scrollWidth)||0,Z=((Ie=Le.current)===null||Ie===void 0?void 0:Ie.clientWidth)||0,se=J&&Z*(Z/J),Ee=R.useRef(),De=de({scrollLeft:0,isHiddenScrollBar:!1}),Ke=Object(C.a)(De,2),ut=Ke[0],ct=Ke[1],Oe=R.useRef({delta:0,x:0}),ot=R.useState(!1),st=Object(C.a)(ot,2),Qe=st[0],_t=st[1],Tt=function(){_t(!1)},Et=function(qe){qe.persist(),Oe.current.delta=qe.pageX-ut.scrollLeft,Oe.current.x=0,_t(!0),qe.preventDefault()},Rt=function(qe){var Bt,gt=qe||((Bt=window)===null||Bt===void 0?void 0:Bt.event),vt=gt.buttons;if(!Qe||vt===0){Qe&&_t(!1);return}var wt=Oe.current.x+qe.pageX-Oe.current.x-Oe.current.delta;wt<=0&&(wt=0),wt+se>=Z&&(wt=Z-se),fe({scrollLeft:wt/Z*(J+2)}),Oe.current.x=qe.pageX},bt=function(){var qe=Object(ee.b)(Le.current).top,Bt=qe+Le.current.offsetHeight,gt=document.documentElement.scrollTop+window.innerHeight;Bt-Object(u.a)()<=gt||qe>=gt-re?ct(function(vt){return Object(M.a)(Object(M.a)({},vt),{},{isHiddenScrollBar:!0})}):ct(function(vt){return Object(M.a)(Object(M.a)({},vt),{},{isHiddenScrollBar:!1})})},xt=function(qe){ct(function(Bt){return Object(M.a)(Object(M.a)({},Bt),{},{scrollLeft:qe/J*Z||0})})};return R.useImperativeHandle(ke,function(){return{setScrollLeft:xt}}),R.useEffect(function(){var Ot=Object(et.a)(document.body,"mouseup",Tt,!1),qe=Object(et.a)(document.body,"mousemove",Rt,!1);return bt(),function(){Ot.remove(),qe.remove()}},[se,Qe]),R.useEffect(function(){var Ot=Object(et.a)(window,"scroll",bt,!1),qe=Object(et.a)(window,"resize",bt,!1);return function(){Ot.remove(),qe.remove()}},[]),R.useEffect(function(){ut.isHiddenScrollBar||ct(function(Ot){var qe,Bt;return Object(M.a)(Object(M.a)({},Ot),{},{scrollLeft:Le.current.scrollLeft/((qe=Le.current)===null||qe===void 0?void 0:qe.scrollWidth)*((Bt=Le.current)===null||Bt===void 0?void 0:Bt.clientWidth)})})},[ut.isHiddenScrollBar]),J<=Z||!se||ut.isHiddenScrollBar?null:R.createElement("div",{style:{height:Object(u.a)(),width:Z,bottom:re},className:"".concat(Y,"-sticky-scroll")},R.createElement("div",{onMouseDown:Et,ref:Ee,className:k()("".concat(Y,"-sticky-scroll-bar"),Object(Q.a)({},"".concat(Y,"-sticky-scroll-bar-active"),Qe)),style:{width:"".concat(se,"px"),transform:"translate3d(".concat(ut.scrollLeft,"px, 0, 0)")}}))},_e=R.forwardRef(ge);function we(ye,Ae){return R.useMemo(function(){var ke=!!ye;return{isSticky:ke,stickyClassName:ke?"".concat(Ae,"-sticky-header"):"",offsetHeader:Object(j.a)(ye)==="object"&&ye.offsetHeader||0,offsetScroll:Object(j.a)(ye)==="object"&&ye.offsetScroll||0}},[ye,Ae])}var Ve=[],Ze={},rt="rc-table-internal-hook",$e=R.memo(function(ye){var Ae=ye.children;return Ae},function(ye,Ae){return O()(ye.props,Ae.props)?ye.pingLeft!==Ae.pingLeft||ye.pingRight!==Ae.pingRight:!1});function ft(ye){var Ae,ke=ye.prefixCls,He=ye.className,Ie=ye.rowClassName,Le=ye.style,fe=ye.data,re=ye.rowKey,ae=ye.scroll,Y=ye.tableLayout,J=ye.direction,Z=ye.title,se=ye.footer,Ee=ye.summary,De=ye.id,Ke=ye.showHeader,ut=ye.components,ct=ye.emptyText,Oe=ye.onRow,ot=ye.onHeaderRow,st=ye.internalHooks,Qe=ye.transformColumns,_t=ye.internalRefs,Tt=ye.sticky,Et=fe||Ve,Rt=!!Et.length,bt=R.useState(0),xt=Object(C.a)(bt,2),Ot=xt[0],qe=xt[1];R.useEffect(function(){qe(Object(u.a)())});var Bt=R.useMemo(function(){return Object(b.c)(ut,{})},[ut]),gt=R.useCallback(function(Xt,qt){return Object(b.b)(Bt,Xt)||qt},[Bt]),vt=R.useMemo(function(){return typeof re=="function"?re:function(Xt){var qt=Xt&&Xt[re];return qt}},[re]),wt=Object(d.c)(ye),pt=wt.expandIcon,tn=wt.expandedRowKeys,Yt=wt.defaultExpandedRowKeys,cn=wt.defaultExpandAllRows,Ht=wt.expandedRowRender,At=wt.onExpand,Ft=wt.onExpandedRowsChange,fn=wt.expandRowByClick,ln=wt.rowExpandable,Tn=wt.expandIconColumnIndex,Mn=wt.expandedRowClassName,Vn=wt.childrenColumnName,Yn=wt.indentSize,Ut=pt||Ue,qn=Vn||"children",fi=R.useMemo(function(){return Ht?"row":ye.expandable&&st===rt&&ye.expandable.__PARENT_RENDER_ICON__||Et.some(function(Xt){return Xt&&Object(j.a)(Xt)==="object"&&Xt[qn]})?"nest":!1},[!!Ht,Et]),$n=R.useState(function(){return Yt||(cn?ze(Et,vt,qn):[])}),B=Object(C.a)($n,2),E=B[0],w=B[1],U=R.useMemo(function(){return new Set(tn||E||[])},[tn,E]),G=R.useCallback(function(Xt){var qt=vt(Xt,Et.indexOf(Xt)),_n,Nn=U.has(qt);Nn?(U.delete(qt),_n=Object(I.a)(U)):_n=[].concat(Object(I.a)(U),[qt]),w(_n),At&&At(!Nn,Xt),Ft&&Ft(_n)},[vt,U,Et,At,Ft]),F=R.useState(0),me=Object(C.a)(F,2),Ge=me[0],dt=me[1],St=Object(ie.b)(Object(M.a)(Object(M.a)(Object(M.a)({},ye),wt),{},{expandable:!!Ht,expandedKeys:U,getRowKey:vt,onTriggerExpand:G,expandIcon:Ut,expandIconColumnIndex:Tn,direction:J}),st===rt?Qe:null),Ye=Object(C.a)(St,2),Dt=Ye[0],Nt=Ye[1],on=R.useMemo(function(){return{columns:Dt,flattenColumns:Nt}},[Dt,Nt]),kn=R.useRef(),Xn=R.useRef(),Me=R.useRef(),Dn=R.useState(!1),oi=Object(C.a)(Dn,2),Jn=oi[0],pi=oi[1],ei=R.useState(!1),wn=Object(C.a)(ei,2),Kn=wn[0],li=wn[1],mi=de(new Map),xi=Object(C.a)(mi,2),Ni=xi[0],ui=xi[1],Ln=Object(b.a)(Nt),ti=Ln.map(function(Xt){return Ni.get(Xt)}),Ri=R.useMemo(function(){return ti},[ti.join("_")]),gi=lt(Ri,Nt.length,J),dn=ae&&Object(b.d)(ae.y),Wt=ae&&Object(b.d)(ae.x),yn=Wt&&Nt.some(function(Xt){var qt=Xt.fixed;return qt}),Zt=R.useRef(),On=we(Tt,ke),un=On.isSticky,vi=On.offsetHeader,Rn=On.offsetScroll,Ti=On.stickyClassName,yi,bi,ni;dn&&(bi={overflowY:"scroll",maxHeight:ae.y}),Wt&&(yi={overflowX:"auto"},dn||(bi={overflowY:"hidden"}),ni={width:ae.x===!0?"auto":ae.x,minWidth:"100%"});var ci=R.useCallback(function(Xt,qt){ui(function(_n){var Nn=new Map(_n);return Nn.set(Xt,qt),Nn})},[]),Si=$(null),di=Object(C.a)(Si,2),Ki=di[0],Gi=di[1];function wi(Xt,qt){if(!qt)return;typeof qt=="function"?qt(Xt):qt.scrollLeft!==Xt&&(qt.scrollLeft=Xt)}var hi=function(qt){var _n=qt.currentTarget,Nn=qt.scrollLeft,jn=typeof Nn=="number"?Nn:_n.scrollLeft,Xi=_n||Ze;if(!Gi()||Gi()===Xi){var Fi;Ki(Xi),wi(jn,Xn.current),wi(jn,Me.current),wi(jn,(Fi=Zt.current)===null||Fi===void 0?void 0:Fi.setScrollLeft)}if(_n){var Ji=_n.scrollWidth,Qi=_n.clientWidth;pi(jn>0),li(jn<Ji-Qi)}},Ii=function(){Me.current&&hi({currentTarget:Me.current})},zi=function(qt){var _n=qt.width;Ii(),dt(kn.current?kn.current.offsetWidth:_n)};R.useEffect(function(){return Ii},[]),R.useEffect(function(){Wt&&Ii()},[Wt]),R.useEffect(function(){st===rt&&_t&&(_t.body.current=Me.current)});var ki=gt(["table"],"table"),_i=R.useMemo(function(){return Y||(yn?ae.x==="max-content"?"auto":"fixed":dn||Nt.some(function(Xt){var qt=Xt.ellipsis;return qt})?"fixed":"auto")},[dn,yn,Nt,Y]),Ci,Ui={colWidths:Ri,columCount:Nt.length,stickyOffsets:gi,onHeaderRow:ot,fixHeader:dn},ii=R.useMemo(function(){return Rt?null:typeof ct=="function"?ct():ct},[Rt,ct]),$i=R.createElement(xe,{data:Et,measureColumnWidth:dn||Wt||un,expandedKeys:U,rowExpandable:ln,getRowKey:vt,onRow:Oe,emptyNode:ii,childrenColumnName:qn}),Bi=R.createElement(c,{colWidths:Nt.map(function(Xt){var qt=Xt.width;return qt}),columns:Nt}),er=Ee&&R.createElement(at.b,null,Ee(Et)),Vi=gt(["body"]);if(dn||un){var ji;typeof Vi=="function"?(ji=Vi(Et,{scrollbarSize:Ot,ref:Me,onScroll:hi}),Ui.colWidths=Nt.map(function(Xt,qt){var _n=Xt.width,Nn=qt===Dt.length-1?_n-Ot:_n;return typeof Nn=="number"&&!Number.isNaN(Nn)?Nn:(Object(g.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):ji=R.createElement("div",{style:Object(M.a)(Object(M.a)({},yi),bi),onScroll:hi,ref:Me,className:k()("".concat(ke,"-body"))},R.createElement(ki,{style:Object(M.a)(Object(M.a)({},ni),{},{tableLayout:_i})},Bi,$i,er),un&&R.createElement(_e,{ref:Zt,offsetScroll:Rn,scrollBodyRef:Me,onScroll:hi})),Ci=R.createElement(R.Fragment,null,Ke!==!1&&R.createElement(T,Object.assign({noData:!Et.length},Ui,on,{direction:J,offsetHeader:vi,stickyClassName:Ti,ref:Xn,onScroll:hi})),ji)}else Ci=R.createElement("div",{style:Object(M.a)(Object(M.a)({},yi),bi),className:k()("".concat(ke,"-content")),onScroll:hi,ref:Me},R.createElement(ki,{style:Object(M.a)(Object(M.a)({},ni),{},{tableLayout:_i})},Bi,Ke!==!1&&R.createElement(h,Object.assign({},Ui,on)),$i,er));var Gn=Object(d.b)(ye),Ai=R.createElement("div",Object.assign({className:k()(ke,He,(Ae={},Object(Q.a)(Ae,"".concat(ke,"-rtl"),J==="rtl"),Object(Q.a)(Ae,"".concat(ke,"-ping-left"),Jn),Object(Q.a)(Ae,"".concat(ke,"-ping-right"),Kn),Object(Q.a)(Ae,"".concat(ke,"-layout-fixed"),Y==="fixed"),Object(Q.a)(Ae,"".concat(ke,"-fixed-header"),dn),Object(Q.a)(Ae,"".concat(ke,"-fixed-column"),yn),Object(Q.a)(Ae,"".concat(ke,"-scroll-horizontal"),Wt),Object(Q.a)(Ae,"".concat(ke,"-has-fix-left"),Nt[0]&&Nt[0].fixed),Object(Q.a)(Ae,"".concat(ke,"-has-fix-right"),Nt[Nt.length-1]&&Nt[Nt.length-1].fixed==="right"),Ae)),style:Le,id:De,ref:kn},Gn),R.createElement($e,{pingLeft:Jn,pingRight:Kn,props:Object(M.a)(Object(M.a)({},ye),{},{stickyOffsets:gi,mergedExpandedKeys:U})},Z&&R.createElement(Je,{className:"".concat(ke,"-title")},Z(Et)),R.createElement("div",{className:"".concat(ke,"-container")},Ci),se&&R.createElement(Je,{className:"".concat(ke,"-footer")},se(Et))));Wt&&(Ai=R.createElement(p.a,{onResize:zi},Ai));var Yi=R.useMemo(function(){return{prefixCls:ke,getComponent:gt,scrollbarSize:Ot,direction:J,fixedInfoList:Nt.map(function(Xt,qt){return t(qt,qt,Nt,gi,J)}),isSticky:un}},[ke,gt,Ot,J,Nt,gi,J,un]),tr=R.useMemo(function(){return Object(M.a)(Object(M.a)({},on),{},{tableLayout:_i,rowClassName:Ie,expandedRowClassName:Mn,componentWidth:Ge,fixHeader:dn,fixColumn:yn,horizonScroll:Wt,expandIcon:Ut,expandableType:fi,expandRowByClick:fn,expandedRowRender:Ht,onTriggerExpand:G,expandIconColumnIndex:Tn,indentSize:Yn})},[on,_i,Ie,Mn,Ge,dn,yn,Wt,Ut,fi,fn,Ht,G,Tn,Yn]),Di=R.useMemo(function(){return{onColumnResize:ci}},[ci]);return R.createElement(n.a.Provider,{value:Yi},R.createElement(P.Provider,{value:tr},R.createElement(V.Provider,{value:Di},Ai)))}ft.Column=r.a,ft.ColumnGroup=a.a,ft.Summary=at.a,ft.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var ht=ne.b=ft},wRmb:function(je,ne,N){"use strict";N.d(ne,"a",function(){return O});var Q=N("rePB"),M=N("KQm4"),I=N("VTBJ"),j=N("Ff2n"),C=N("q1tI"),R=N.n(C),W=N("Kwbf"),k=N("Zm9Q"),e=N("hW8S");function O(r){return Object(k.a)(r).filter(function(o){return C.isValidElement(o)}).map(function(o){var s=o.key,i=o.props,n=i.children,t=Object(j.a)(i,["children"]),b=Object(I.a)({key:s},t);return n&&(b.children=O(n)),b})}function g(r){return r.reduce(function(o,s){var i=s.fixed,n=i===!0?"left":i,t=s.children;return t&&t.length>0?[].concat(Object(M.a)(o),Object(M.a)(g(t).map(function(b){return Object(I.a)({fixed:n},b)}))):[].concat(Object(M.a)(o),[Object(I.a)(Object(I.a)({},s),{},{fixed:n})])},[])}function p(r){for(var o=!0,s=0;s<r.length;s+=1){var i=r[s];if(o&&i.fixed!=="left")o=!1;else if(!o&&i.fixed==="left"){Object(W.a)(!1,"Index ".concat(s-1," of `columns` missing `fixed='left'` prop."));break}}for(var n=!0,t=r.length-1;t>=0;t-=1){var b=r[t];if(n&&b.fixed!=="right")n=!1;else if(!n&&b.fixed==="right"){Object(W.a)(!1,"Index ".concat(t+1," of `columns` missing `fixed='right'` prop."));break}}}function u(r){return r.map(function(o){var s=o.fixed,i=Object(j.a)(o,["fixed"]),n=s;return s==="left"?n="right":s==="right"&&(n="left"),Object(I.a)({fixed:n},i)})}function a(r,o){var s=r.prefixCls,i=r.columns,n=r.children,t=r.expandable,b=r.expandedKeys,y=r.getRowKey,m=r.onTriggerExpand,x=r.expandIcon,_=r.rowExpandable,h=r.expandIconColumnIndex,d=r.direction,l=r.expandRowByClick,c=C.useMemo(function(){return i||O(n)},[i,n]),v=C.useMemo(function(){if(t){var L,P=h||0,S=c[P],A=(L={},Object(Q.a)(L,e.a,{className:"".concat(s,"-expand-icon-col")}),Object(Q.a)(L,"title",""),Object(Q.a)(L,"fixed",S?S.fixed:null),Object(Q.a)(L,"className","".concat(s,"-row-expand-icon-cell")),Object(Q.a)(L,"render",function(K,V,oe){var le=y(V,oe),Ce=b.has(le),xe=_?_(V):!0,ie=x({prefixCls:s,expanded:Ce,expandable:xe,record:V,onExpand:m});return l?C.createElement("span",{onClick:function(Pe){return Pe.stopPropagation()}},ie):ie}),L),H=c.slice();return P>=0&&H.splice(P,0,A),H}return c},[t,c,y,b,x,d]),f=C.useMemo(function(){var L=v;return o&&(L=o(L)),L.length||(L=[{render:function(){return null}}]),L},[o,v,d]),T=C.useMemo(function(){return d==="rtl"?u(g(f)):g(f)},[f,d]);return[f,T]}ne.b=a},wwSX:function(je,ne,N){je.exports=N.p+"static/b2.5b0009be.svg"},xiVL:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x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ne,N){"use strict";N.d(ne,"a",function(){return g}),N.d(ne,"b",function(){return u});var Q=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function j(a){return a.nodeType===1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}}function C(a,r,o){if(r=r.toLowerCase(),o==="auto"){if(r==="height")return a.offsetHeight;if(r==="width")return a.offsetWidth}return r in M||(M[r]=Q.test(r)),M[r]?parseFloat(o)||0:o}function R(a,r){var o=arguments.length,s=j(a);return r=I[r]?"cssFloat"in a.style?"cssFloat":"styleFloat":r,o===1?s:C(a,r,s[r]||a.style[r])}function W(a,r,o){var s=arguments.length;if(r=I[r]?"cssFloat"in a.style?"cssFloat":"styleFloat":r,s===3)return typeof o=="number"&&Q.test(r)&&(o="".concat(o,"px")),a.style[r]=o,o;for(var i in r)r.hasOwnProperty(i)&&W(a,i,r[i]);return j(a)}function k(a){return a===document.body?document.documentElement.clientWidth:a.offsetWidth}function e(a){return a===document.body?window.innerHeight||document.documentElement.clientHeight:a.offsetHeight}function O(){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:a,height:r}}function g(){var a=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:a,height:r}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(a){var r=a.getBoundingClientRect(),o=document.documentElement;return{left:r.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||document.body.clientTop||0)}}},y3Jh:function(je,ne,N){"use strict";N.r(ne);var Q=N("5Dmo"),M=N("3S7+"),I=N("fV52"),j=N("3I+P"),C=N("g9YV"),R=N("wCAj"),W=N("Znn+"),k=N("ZTPi"),e=N("5NDa"),O=N("5rEg"),g=N("OaEy"),p=N("2fM7"),u=N("14J3"),a=N("BMrR"),r=N("jCWc"),o=N("kPKH"),s=N("7Kak"),i=N("9yH6"),n=N("lUTK"),t=N("BvKs"),b=N("2qtc"),y=N("kLXV"),m=N("miYZ"),x=N("tsqr"),_=N("k1fw"),h=N("oBTY"),d=N("+L6B"),l=N("2/Rp"),c=N("qVdP"),v=N("jsC+"),f=N("9og8"),T=N("tJVT"),L=N("WmNS"),P=N.n(L),S=N("q1tI"),A=N.n(S),H=N("Ty5D"),D=N("9kvl"),K=N("9Bee"),V=N("wd/R"),oe=N.n(V),le=N("m3rI"),Ce=N("ErOA"),xe=N("5A5F"),ie=N.n(xe),Se=N("xKgJ"),Pe=N("zqRK"),de=N.n(Pe),$=N("+92d"),Ne=N.n($),lt=N("wwSX"),it=N.n(lt),Je=N("zlzj"),at=N.n(Je),Ue=N("pxMS"),ze=N.n(Ue),et=N("xwll"),ee=N.n(et),ge=N("a2OE"),_e=N.n(ge),we=N("Nf5h"),Ve=N("LvDl"),Ze=N.n(Ve),rt=N("1vsH"),$e=N("yDOu"),ft=N.n($e),ht=N("SVaM"),ye=function(ke){var He,Ie,Le,fe,re,ae,Y,J,Z,se,Ee,De,Ke,ut,ct,Oe,ot,st=ke.globalSetting,Qe=ke.user,_t=ke.dispatch,Tt=Object(H.h)(),Et={page:1,per_page:30,tag_discipline_id:[-1],source_discipline_id:[-1],status:null,difficulty:null,search:"",save_search:"",sort_by:null,sort_direction:null,filter:(Tt==null||((He=Tt.query)===null||He===void 0)?void 0:He.tab)||"public"},Rt=Object(S.useState)(0),bt=Object(T.a)(Rt,2),xt=bt[0],Ot=bt[1],qe=Object(S.useState)(0),Bt=Object(T.a)(qe,2),gt=Bt[0],vt=Bt[1],wt=Object(S.useState)(0),pt=Object(T.a)(wt,2),tn=pt[0],Yt=pt[1],cn=Object(S.useState)([]),Ht=Object(T.a)(cn,2),At=Ht[0],Ft=Ht[1],fn=Object(S.useState)([]),ln=Object(T.a)(fn,2),Tn=ln[0],Mn=ln[1],Vn=Object(S.useState)({}),Yn=Object(T.a)(Vn,2),Ut=Yn[0],qn=Yn[1],fi=Object(S.useState)(!1),$n=Object(T.a)(fi,2),B=$n[0],E=$n[1],w=Object(S.useState)([]),U=Object(T.a)(w,2),G=U[0],F=U[1],me=Object(S.useState)(!0),Ge=Object(T.a)(me,2),dt=Ge[0],St=Ge[1],Ye=Object(S.useState)(null),Dt=Object(T.a)(Ye,2),Nt=Dt[0],on=Dt[1],kn=Object(S.useState)(Et),Xn=Object(T.a)(kn,2),Me=Xn[0],Dn=Xn[1],oi=Object(S.useRef)(null),Jn=Object(S.useRef)(null),pi=Object(S.useState)([]),ei=Object(T.a)(pi,2),wn=ei[0],Kn=ei[1],li=Object(S.useMemo)(function(){return["not_reviewed","under_review","review_finished"].includes(Me.filter)},[Me.filter]),mi=Object(S.useState)(!1),xi=Object(T.a)(mi,2),Ni=xi[0],ui=xi[1],Ln=Object(S.useState)(!1),ti=Object(T.a)(Ln,2),Ri=ti[0],gi=ti[1],dn=Object(S.useState)(""),Wt=Object(T.a)(dn,2),yn=Wt[0],Zt=Wt[1],On=Object(S.useState)([]),un=Object(T.a)(On,2),vi=un[0],Rn=un[1],Ti=Object(S.useState)(!1),yi=Object(T.a)(Ti,2),bi=yi[0],ni=yi[1],ci=Object(S.useState)([]),Si=Object(T.a)(ci,2),di=Si[0],Ki=Si[1],Gi=Object(S.useState)(!1),wi=Object(T.a)(Gi,2),hi=wi[0],Ii=wi[1],zi=Object(S.useState)(!1),ki=Object(T.a)(zi,2),_i=ki[0],Ci=ki[1],Ui=Qe.userInfo.identity==="teacher",ii=function(){var Fe=Object(f.a)(P.a.mark(function We(Xe,yt,Pt){var It,gn,Cn,te,pe;return P.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Xe.persist(),Xe!=null&&(It=Xe.target)!==null&&It!==void 0&&(gn=It.style)!==null&&gn!==void 0&&gn.pointerEvents&&(Xe.target.style.pointerEvents="none"),ue.next=4,Object(Ce.a)("/api/practices/".concat(yt.identifier,"/start"),{method:"get"});case 4:if(pe=ue.sent,!((pe==null?void 0:pe.status)===0)){ue.next=10;break}if(!Pt){ue.next=9;break}return Object(rt.S)("/problems/".concat(pe==null?void 0:pe.identifier,"/oj/").concat(yt==null?void 0:yt.identifier,"?tab=3")),ue.abrupt("return");case 9:Object(rt.S)("/problems/".concat(pe==null?void 0:pe.identifier,"/oj/").concat(yt==null?void 0:yt.identifier));case 10:Xe!=null&&(Cn=Xe.target)!==null&&Cn!==void 0&&(te=Cn.style)!==null&&te!==void 0&&te.pointerEvents&&(Xe.target.style.pointerEvents="auto");case 11:case"end":return ue.stop()}},We)}));return function(Xe,yt,Pt){return Fe.apply(this,arguments)}}();Object(S.useEffect)(function(){var Fe=oe()().add(0,"days").unix(),We=localStorage.getItem("problemsclose");if(!We){ni(!0);return}Fe>parseInt(We)&&ni(!0)},[]);var $i=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],Bi=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:function(We,Xe){return A.a.createElement("div",{className:ie.a.titleWarp},(Me==null?void 0:Me.filter)==="mine"?A.a.createElement("span",{className:ie.a.tag},$i[Xe.practice_status]):null,A.a.createElement("span",{title:We,className:ie.a.hov,onClick:function(Pt){return ii(Pt,Xe)}},We))}},(Me==null?void 0:Me.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:function(We,Xe){return A.a.createElement("span",{style:{display:"flex"}},A.a.createElement("span",{onClick:function(Pt){return ii(Pt,Xe,!0)},className:"current"},We),(Xe==null?void 0:Xe.has_video_solution)&&A.a.createElement("img",{className:"ml5",src:de.a}))}}:null,(Me==null?void 0:Me.filter)==="public"?{title:"\u901A\u8FC7\u7387",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:function(We){return A.a.createElement(A.a.Fragment,null,We===1&&A.a.createElement("span",{className:ie.a["btn-style-1"]},"\u7B80\u5355"),We===2&&A.a.createElement("span",{className:ie.a["btn-style-2"]},"\u9002\u4E2D"),We===3&&A.a.createElement("span",{className:ie.a["btn-style-3"]},"\u56F0\u96BE"))}},(Me==null?void 0:Me.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(Me==null?void 0:Me.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:90,render:function(We,Xe){return Object(Se.p)()?A.a.createElement(A.a.Fragment,null,Nt===(Xe==null?void 0:Xe.identifier)?A.a.createElement("span",{className:ie.a.hovBtn,onClick:function(Pt){return ii(Pt,Xe)}},"\u5F00\u542F\u5237\u9898"):A.a.createElement(A.a.Fragment,null,We===0&&A.a.createElement("span",{className:ie.a.statusText},"\u672A\u5F00\u542F"),We===1&&A.a.createElement("span",{className:ie.a.statusText},"\u8FDB\u884C\u4E2D"),We===2&&A.a.createElement("span",{className:ie.a.statusText},"\u5DF2\u901A\u8FC7"))):"-"}}:null,(Me==null?void 0:Me.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:function(We){return A.a.createElement("span",null,We==null?void 0:We.join("\u3001"))}}:null,(Me==null?void 0:Me.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(Me==null?void 0:Me.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,Object(Se.v)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:function(We,Xe){return A.a.createElement(v.a,{className:"ml10",overlay:Fi(Xe==null?void 0:Xe.identifier,Xe)},A.a.createElement("span",{style:{cursor:"default"},onClick:function(Pt){return Pt.preventDefault()}},A.a.createElement("span",null,"\u66F4\u591A"),A.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}}:B&&(Me==null?void 0:Me.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:function(We,Xe){return Xe!=null&&Xe.is_self&&(Xe==null?void 0:Xe.practice_status)!==1?A.a.createElement(v.a,{className:"ml10",overlay:Ji(Xe==null?void 0:Xe.identifier,Xe)},A.a.createElement("span",{style:{cursor:"default"},onClick:function(Pt){return Pt.preventDefault()}},A.a.createElement("span",null,"\u66F4\u591A"),A.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}}:null].filter(function(Fe){return!!Fe}),er=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:function(We,Xe){return A.a.createElement("span",{className:ie.a.hov,onClick:function(Pt){return ii(Pt,Xe)}},We)}},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:function(We){return A.a.createElement(A.a.Fragment,null,We===1&&A.a.createElement("span",{className:ie.a["btn-style-1"]},"\u7B80\u5355"),We===2&&A.a.createElement("span",{className:ie.a["btn-style-2"]},"\u9002\u4E2D"),We===3&&A.a.createElement("span",{className:ie.a["btn-style-3"]},"\u56F0\u96BE"))}},(Me==null?void 0:Me.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(Me==null?void 0:Me.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(Me==null?void 0:Me.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(Me==null?void 0:Me.filter)==="review_finished"?{title:"\u6700\u540E\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",width:180}:null,{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"center",width:120,render:function(We,Xe){var yt;switch(Me==null?void 0:Me.filter){case"under_review":yt=A.a.createElement("div",{style:{display:"flex"}},A.a.createElement(l.a,{type:"link",size:"small",onClick:function(It){return ii(It,Xe)}},"\u5BA1\u6838"),A.a.createElement(l.a,{type:"link",style:{color:"#666"},size:"small",onClick:function(It){return Ai({e:It,record:Xe,op:"release"})}},"\u79FB\u51FA"));break;case"review_finished":yt=A.a.createElement(l.a,{type:"link",size:"small",onClick:function(It){ui(!0),Vi(Xe)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:yt=A.a.createElement(l.a,{type:"link",block:!0,onClick:function(It){return Ai({e:It,record:Xe,op:"claim"})}},"\u5F00\u59CB\u5BA1\u6838");break}return yt}}].filter(function(Fe){return!!Fe}),Vi=function(){var Fe=Object(f.a)(P.a.mark(function We(Xe){var yt;return P.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return Rn([]),It.next=3,Object(Ce.a)("/api/practices/".concat(Xe.identifier,"/review_list"),{method:"get"});case 3:yt=It.sent,Rn(yt==null?void 0:yt.reviews_list);case 5:case"end":return It.stop()}},We)}));return function(Xe){return Fe.apply(this,arguments)}}(),ji=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:function(We,Xe){return A.a.createElement("span",null,oe()(We).format("YYYY-MM-DD HH:mm:ss"))}},{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",key:"reviewer"},{title:"\u5BA1\u6838\u7ED3\u679C",dataIndex:"status",width:120,key:"status",render:function(We,Xe){return We==="5"||We===5?A.a.createElement("div",{style:{display:"flex",alignItems:"center"}},A.a.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),A.a.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:function(){Zt(Xe.description),gi(!0)}},"\u67E5\u770B\u539F\u56E0")):A.a.createElement("span",null,"\u5DF2\u901A\u8FC7")}}];Object(S.useEffect)(function(){tr(),Gn(Me)},[]),Object(S.useEffect)(function(){if(At.length!==0){var Fe;(oi==null||((Fe=oi.current)===null||Fe===void 0)?void 0:Fe.clientHeight)>98&&Ot(1)}},[At]),Object(S.useEffect)(function(){if(Tn.length!==0){var Fe;(Jn==null||((Fe=Jn.current)===null||Fe===void 0)?void 0:Fe.clientHeight)>98&&vt(1)}},[Tn]),Object(S.useEffect)(function(){return _t({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),_t({type:"globalSetting/setShowQuestionBackTop",payload:!0}),function(){_t({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),_t({type:"globalSetting/setShowQuestionBackTop",payload:!1})}},[]),Object(S.useEffect)(function(){var Fe;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(Fe=document.title)!==null&&Fe!==void 0&&Fe.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[st]),Object(S.useEffect)(function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}},[]);var Gn=function(){var Fe=Object(f.a)(P.a.mark(function We(Xe){var yt,Pt,It,gn;return P.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Xe.search=encodeURIComponent(Xe.search),It=Ze.a.cloneDeep(Xe),It.tag_discipline_id=(yt=It.tag_discipline_id)!==null&&yt!==void 0&&yt.includes(-1)?[]:It.tag_discipline_id,It.source_discipline_id=(Pt=It.source_discipline_id)!==null&&Pt!==void 0&&Pt.includes(-1)?[]:It.source_discipline_id,console.log(It,"sendData"),St(!0),F([]),te.next=9,Object(Ce.a)("/api/practices.json",{method:"get",params:It});case 9:gn=te.sent,Kn([]),St(!1),Yt(gn==null?void 0:gn.practices_count),F(gn==null?void 0:gn.practices_list),Ki((gn==null?void 0:gn.recommend_subjects)||[]);case 15:case"end":return te.stop()}},We)}));return function(Xe){return Fe.apply(this,arguments)}}(),Ai=function(){var Fe=Object(f.a)(P.a.mark(function We(Xe){var yt,Pt,It,gn,Cn,te;return P.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return yt=Xe.op,Pt=Xe.description,It=Xe.record,gn=Xe.e,Cn={op:yt,description:Pt},St(!0),be.next=5,Object(Ce.a)("/api/practices/".concat(It.identifier,"/review"),{method:"post",body:Cn});case 5:te=be.sent,St(!1),yt==="claim"&&(te.status===0||te.status==="0")&&ii(gn,It),Gn(Me);case 9:case"end":return be.stop()}},We)}));return function(Xe){return Fe.apply(this,arguments)}}(),Yi=function(){var Fe=Object(f.a)(P.a.mark(function We(Xe){var yt;return P.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return St(!0),It.next=3,Object(Ce.a)("/api/practices/".concat(Xe.identifier,"/publish"),{method:"post"});case 3:yt=It.sent,St(!1),Gn(Me);case 6:case"end":return It.stop()}},We)}));return function(Xe){return Fe.apply(this,arguments)}}(),tr=function(){var Fe=Object(f.a)(P.a.mark(function We(){var Xe,yt,Pt,It,gn,Cn;return P.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(Ce.a)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});case 2:return yt=pe.sent,pe.next=5,Object(Ce.a)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}});case 5:return Pt=pe.sent,pe.next=8,Object(Ce.a)("/api/mypractices/rank_list",{method:"get",params:{}});case 8:It=pe.sent,yt!=null&&yt.tag_disciplines&&(gn=[{id:-1,name:"\u5168\u90E8",count:yt==null?void 0:yt.totalCount}].concat(Object(h.a)(yt==null?void 0:yt.tag_disciplines)),Ft(gn)),Pt!=null&&Pt.tag_disciplines&&(Cn=[{id:-1,name:"\u5168\u90E8",count:Pt==null?void 0:Pt.totalCount}].concat(Object(h.a)(Pt==null?void 0:Pt.tag_disciplines)),Mn(Cn)),qn(It||{}),E(It==null||((Xe=It.my_record)===null||Xe===void 0)?void 0:Xe.outsource);case 13:case"end":return pe.stop()}},We)}));return function(){return Fe.apply(this,arguments)}}(),Di=function(We,Xe){var yt;Me.page=1;var Pt=Me["".concat(Xe,"_discipline_id")];(yt=Me["".concat(Xe,"_discipline_id")])!==null&&yt!==void 0&&yt.includes(We)?Pt=Pt.filter(function(It){return It!==We}):Pt.push(We),We===-1?Pt=[-1]:(Pt=Pt.filter(function(It){return It!==-1}),Pt.length||(Pt=[-1])),Me["".concat(Xe,"_discipline_id")]=Pt,Dn(Object(_.a)({},Me)),Gn(Me)},Xt=function(We,Xe){Me.page=1,Me[Xe]=typeof We=="number"?We:null,Dn(Object(_.a)({},Me)),Gn(Me)},qt=function(We){Me.page=1,Me.save_search=We,Dn(Object(_.a)({},Me))},_n=function(We,Xe,yt){Me.page=We==null?void 0:We.current,Me.per_page=We==null?void 0:We.pageSize,yt!=null&&yt.order?(Me.sort_by=yt==null?void 0:yt.field,Me.sort_direction=(yt==null?void 0:yt.order)==="ascend"?"asc":"desc"):(Me.sort_by=null,Me.sort_direction=null),Dn(Object(_.a)({},Me)),Gn(Me)},Nn=function(We){Me.page=1,Me.filter=We,Me.status=null,Me.practice_status=null,Dn(Object(_.a)({},Me)),Gn(Me)},jn=function(We,Xe){if((Xe==null?void 0:Xe.length)===0){x.b.warn("\u8BF7\u9009\u62E9\u8BD5\u9898");return}var yt=function(){var Pt=Object(f.a)(P.a.mark(function It(){var gn,Cn;return P.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(Ce.a)("/api/practices/batch_op.json",{method:"post",body:{identifier:Xe,op:We}});case 2:gn=pe.sent,(gn==null?void 0:gn.status)===0&&(Cn=G.length===1&&Me.page!==1?Me.page-1:Me.page,Me.page=Cn,Dn(Object(_.a)({},Me)),Gn(Me));case 4:case"end":return pe.stop()}},It)}));return function(){return Pt.apply(this,arguments)}}();if(We===-1){y.a.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u786E\u8BA4",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u9898\u76EE\u5C06\u4E0D\u53EF\u518D\u627E\u56DE\u3002",onOk:yt});return}yt()},Xi=A.a.createElement(t.a,null,(Me==null?void 0:Me.filter)==="public"?A.a.createElement(t.a.Item,{onClick:function(){return jn(0,wn)}},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[A.a.createElement(t.a.Item,{key:2,onClick:function(){return jn(1,wn)}},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),A.a.createElement(t.a.Item,{key:1,onClick:function(){return jn(0,wn)}},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],Object(Se.v)()&&A.a.createElement(t.a.Item,{onClick:function(){return nr()}},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(Me==null?void 0:Me.filter)!=="public"&&A.a.createElement(t.a.Item,{onClick:function(){return jn(-1,wn)}},"\u6279\u91CF\u5220\u9664")),Fi=function(We,Xe){return A.a.createElement(t.a,null,(Xe==null?void 0:Xe.practice_status)===1?A.a.createElement(t.a.Item,{onClick:function(){return jn(0,[We])}},"\u79FB\u51FA\u516C\u5171"):A.a.createElement(t.a.Item,{onClick:function(){return jn(1,[We])}},"\u79FB\u5165\u516C\u5171"),(Me==null?void 0:Me.filter)==="mine"?A.a.createElement(t.a.Item,{onClick:function(){return Yi(Xe)},disabled:![0,4,5].includes(Xe.practice_status)},[0,4,5].includes(Xe.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,A.a.createElement(t.a.Item,{onClick:function(){return Object(rt.S)("/problems/".concat(We,"/ojedit"))}},"\u7F16\u8F91"),(Me==null?void 0:Me.filter)!=="public"&&A.a.createElement(t.a.Item,{onClick:function(){return jn(-1,[We])}},"\u5220\u9664"))},Ji=function(We,Xe){return A.a.createElement(t.a,null,A.a.createElement(t.a.Item,{onClick:function(){return Yi(Xe)},disabled:![0,4,5].includes(Xe.practice_status)},[0,4,5].includes(Xe.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),A.a.createElement(t.a.Item,{onClick:function(){return Object(rt.S)("/problems/".concat(We,"/ojedit"))}},"\u7F16\u8F91"),A.a.createElement(t.a.Item,{onClick:function(){return jn(-1,[We])}},"\u5220\u9664"))},Qi=function(We){Kn(We)},nr=function(){if(!wn.length){x.b.warn("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}var We=null;y.a.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93",icon:null,className:"custom-modal-divider",content:A.a.createElement("div",null,A.a.createElement("p",{className:"mt20"},"\u5DF2\u9009",A.a.createElement("span",{className:"c-light-primary"},wn.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),A.a.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),A.a.createElement(i.a.Group,{onChange:function(yt){We=yt.target.value,document.getElementById("send-to-modal").style.display="none"}},A.a.createElement(i.a,{value:"c"},"C"),A.a.createElement(i.a,{value:"c++"},"C++"),A.a.createElement(i.a,{value:"java"},"Java"),A.a.createElement(i.a,{value:"python"},"Python")),A.a.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:function(){var Xe=Object(f.a)(P.a.mark(function Pt(){var It;return P.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(We){Cn.next=3;break}return document.getElementById("send-to-modal").style.display="block",Cn.abrupt("return",Promise.reject());case 3:return Cn.next=5,Object(Ce.a)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:wn,language:We}});case 5:It=Cn.sent,(It==null?void 0:It.status)===0&&x.b.success("\u53D1\u9001\u6210\u529F");case 7:case"end":return Cn.stop()}},Pt)}));function yt(){return Xe.apply(this,arguments)}return yt}()})},dr={selectedRowKeys:wn,columnWidth:40,onChange:Qi};return A.a.createElement("section",{className:ie.a.wrap},A.a.createElement(we.a,{img:ze.a,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:A.a.createElement(v.a,{overlay:A.a.createElement(t.a,null,A.a.createElement(t.a.Item,{key:1,onClick:function(){D.d.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),A.a.createElement(t.a.Item,{key:2,onClick:function(){D.d.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"))},A.a.createElement("div",{className:ie.a.addQuestion,style:{visibility:Object(Se.v)()||B?"visible":"hidden"}},A.a.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),A.a.createElement("div",{className:ie.a.content},A.a.createElement("div",{className:ie.a.left},A.a.createElement(a.a,{className:"".concat(ie.a.filterPoint," mb10"),align:"top"},A.a.createElement(o.a,{className:ie.a.filterType},"\u77E5\u8BC6\u70B9"),A.a.createElement(o.a,{className:ie.a.btnWarp,ref:oi,style:xt>0?{height:xt===1?76:"auto"}:{}},At==null?void 0:At.map(function(Fe){var We;return A.a.createElement("div",{onClick:function(){return Di(Fe.id,"tag")},key:Fe.id,className:Me!=null&&(We=Me.tag_discipline_id)!==null&&We!==void 0&&We.includes(Fe.id)?"".concat(ie.a.btn," ").concat(ie.a.btnActive):ie.a.btn},A.a.createElement("span",{title:Fe.name},Fe.name),A.a.createElement("span",{className:ie.a.count,style:{display:Fe.count?"block":"none"}},Fe.count))})),!!xt&&A.a.createElement(o.a,{className:ie.a.fold},xt===1?A.a.createElement("div",{onClick:function(){return Ot(2)},className:ie.a.action},"\u5C55\u5F00",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):A.a.createElement("div",{onClick:function(){return Ot(1)},className:ie.a.action},"\u6536\u8D77",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!Tn.length&&A.a.createElement(a.a,{className:ie.a.filterPoint,align:"top",style:{marginBottom:22}},A.a.createElement(o.a,{className:ie.a.filterType},"\u6765\u6E90"),A.a.createElement(o.a,{className:ie.a.btnWarp,ref:Jn,style:gt>0?{height:gt===1?76:"auto"}:{}},Tn==null?void 0:Tn.map(function(Fe){var We;return A.a.createElement("div",{onClick:function(){return Di(Fe.id,"source")},key:Fe.id,className:Me!=null&&(We=Me.source_discipline_id)!==null&&We!==void 0&&We.includes(Fe.id)?"".concat(ie.a.btn," ").concat(ie.a.btnActive):ie.a.btn},A.a.createElement("span",{title:Fe.name},Fe.name),A.a.createElement("span",{className:ie.a.count},Fe.count))}),!!gt&&A.a.createElement(o.a,{className:ie.a.fold},gt===1?A.a.createElement("div",{onClick:function(){return vt(2)},className:ie.a.action},"\u5C55\u5F00",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):A.a.createElement("div",{onClick:function(){return vt(1)},className:ie.a.action},"\u6536\u8D77",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),A.a.createElement("div",{className:ie.a.control},A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:Me==null?void 0:Me.difficulty,onChange:function(We){return Xt(We,"difficulty")}},A.a.createElement(p.a.Option,{value:1},"\u7B80\u5355"),A.a.createElement(p.a.Option,{value:2},"\u9002\u4E2D"),A.a.createElement(p.a.Option,{value:3},"\u56F0\u96BE")),Object(Se.p)()&&Me.filter==="public"&&A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Me==null?void 0:Me.status,onChange:function(We){return Xt(We,"status")}},A.a.createElement(p.a.Option,{value:0},"\u672A\u5F00\u542F"),A.a.createElement(p.a.Option,{value:1},"\u8FDB\u884C\u4E2D"),A.a.createElement(p.a.Option,{value:2},"\u5DF2\u901A\u8FC7")),Object(Se.p)()&&Me.filter==="mine"&&A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Me==null?void 0:Me.practice_status,onChange:function(We){return Xt(We,"practice_status")}},A.a.createElement(p.a.Option,{value:0},"\u672A\u53D1\u5E03"),A.a.createElement(p.a.Option,{value:1},"\u5DF2\u516C\u5F00"),A.a.createElement(p.a.Option,{value:2},"\u672A\u5BA1\u6838"),A.a.createElement(p.a.Option,{value:3},"\u5BA1\u6838\u4E2D"),A.a.createElement(p.a.Option,{value:4},"\u672A\u516C\u5F00"),A.a.createElement(p.a.Option,{value:5},"\u672A\u901A\u8FC7")),Object(Se.p)()&&Me.filter==="all"&&A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Me==null?void 0:Me.practice_status,onChange:function(We){return Xt(We,"practice_status")}},A.a.createElement(p.a.Option,{value:0},"\u672A\u53D1\u5E03"),A.a.createElement(p.a.Option,{value:1},"\u5DF2\u516C\u5F00"),A.a.createElement(p.a.Option,{value:2},"\u672A\u5BA1\u6838"),A.a.createElement(p.a.Option,{value:3},"\u5BA1\u6838\u4E2D"),A.a.createElement(p.a.Option,{value:4},"\u672A\u516C\u5F00"),A.a.createElement(p.a.Option,{value:5},"\u672A\u901A\u8FC7")),A.a.createElement(O.a.Search,{className:ie.a.search,size:"large",suffix:A.a.createElement("i",{className:"iconfont icon-sousuo9 font14 ".concat(ie.a.searchIcon),onClick:function(){Me.page=1,Me.search=Me.save_search,Dn(Object(_.a)({},Me)),Me.save_search&&Object(ht.a)({name:Me.save_search,copywriting:Me.save_search,position:"Practice"}),Gn(Me)}}),placeholder:Object(Se.v)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:Me==null?void 0:Me.save_search,onChange:function(We){return qt(We.target.value)},onSearch:function(We){Me.page=1,Me.search=Me.save_search,Dn(Object(_.a)({},Me)),We&&Object(ht.a)({name:We,copywriting:We,position:"Practice"}),Gn(Me)}})),A.a.createElement("div",{className:ie.a.table},A.a.createElement("div",{className:ie.a.tabWarp,style:Object(Se.v)()||B?{}:{height:10,border:0}},Object(Se.v)()?A.a.createElement(k.a,{className:ie.a.tab,activeKey:li?"not_reviewed":Me.filter,onChange:Nn,tabBarExtraContent:!li&&A.a.createElement(v.a,{overlay:Xi},A.a.createElement("span",{className:"ant-dropdown-link font14 current",onClick:function(We){return We.preventDefault()}},"\u6279\u91CF\u64CD\u4F5C"," ",A.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},A.a.createElement(k.a.TabPane,{tab:"\u516C\u5171",key:"public"}),A.a.createElement(k.a.TabPane,{tab:"\u5168\u90E8",key:"all"}),A.a.createElement(k.a.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),A.a.createElement(k.a.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):B?A.a.createElement(k.a,{className:ie.a.tab,activeKey:li?"not_reviewed":Me.filter,onChange:Nn},A.a.createElement(k.a.TabPane,{tab:"\u516C\u5171",key:"public"}),A.a.createElement(k.a.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),A.a.createElement(k.a.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),li?A.a.createElement("div",{className:ie.a.tabWarp,style:Object(Se.v)()||B?{}:{height:10,border:0}},A.a.createElement(k.a,{className:ie.a.tab,activeKey:Me.filter,onChange:Nn},A.a.createElement(k.a.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),A.a.createElement(k.a.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),A.a.createElement(k.a.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!(Object(Se.v)()||B)&&Ui&&A.a.createElement("div",{className:ie.a.tabWarp2,style:{justifyContent:"end"}},hi?A.a.createElement(a.a,{align:"middle"},A.a.createElement(a.a,{onClick:function(){return Ci(!0)},align:"middle",className:"current"},A.a.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),A.a.createElement("span",null,"\u5DF2\u9009",A.a.createElement("span",{className:"c-light-primary"},wn.length),"\u4E2A")),A.a.createElement(l.a,{className:"mr20 ml40",ghost:!0,onClick:function(){Ii(!1),Kn([])},type:"primary"},"\u53D6\u6D88"),A.a.createElement(l.a,{onClick:nr,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):A.a.createElement(l.a,{onClick:function(){return Ii(!0)},type:"primary"},A.a.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),A.a.createElement(R.a,{rowSelection:Object(Se.v)()||hi?dr:void 0,className:ie.a.customTable,dataSource:G,bordered:!1,rowKey:function(We){return We.identifier},columns:li?er:Bi,rowClassName:ie.a.row,loading:dt,onRow:function(We){return{onMouseEnter:function(yt){on(We==null?void 0:We.identifier)},onMouseLeave:function(yt){on(null)}}},onChange:_n,pagination:{pageSize:Me.per_page,total:tn,current:Me.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:function(We){return A.a.createElement("span",{className:"mr10"},"\u5171",A.a.createElement("span",{className:"c-orange"},We),"\u6761\u6570\u636E")}}}))),A.a.createElement("div",{className:ie.a.right},A.a.createElement("div",{className:ie.a.statistics},A.a.createElement("img",{src:ee.a,alt:""}),A.a.createElement("div",{className:ie.a.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),A.a.createElement(a.a,{justify:"space-between"},A.a.createElement(o.a,{className:ie.a.statisticItem},A.a.createElement("div",{className:ie.a.rate},Object(Se.p)()?(Ut==null||((Ie=Ut.my_record)===null||Ie===void 0)?void 0:Ie.passed_ratio)||0:"-"),A.a.createElement("div",{className:ie.a.dataName},"\u901A\u8FC7\u7387(%)")),A.a.createElement(o.a,{className:ie.a.statisticItem},A.a.createElement("div",{className:ie.a.rate},Object(Se.p)()?(Ut==null||((Le=Ut.my_record)===null||Le===void 0)?void 0:Le.passed_count)||0:"-"),A.a.createElement("div",{className:ie.a.dataName},"\u5237\u9898\u6570")),A.a.createElement(o.a,{className:ie.a.statisticItem},A.a.createElement("div",{className:ie.a.rate},Object(Se.p)()?Ut==null||((fe=Ut.my_record)===null||fe===void 0||((re=fe.time_count)===null||re===void 0))?void 0:re.toFixed(2):"-"),A.a.createElement("div",{className:ie.a.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!(Ut!=null&&(ae=Ut.rank_list)!==null&&ae!==void 0&&ae.length)&&A.a.createElement(A.a.Fragment,null,((Y=Qe.userInfo)===null||Y===void 0?void 0:Y.user_id)!=2&&Object(Se.m)()&&(st==null||((J=st.setting)===null||J===void 0)?void 0:J.main_site)&&bi&&(di==null?void 0:di.length)>0&&A.a.createElement("div",{className:ie.a.problemsclose,style:{position:"relative"}},A.a.createElement(j.a,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},di==null?void 0:di.map(function(Fe,We){return A.a.createElement("div",{style:{display:"flex"},key:We},A.a.createElement("a",{href:"/paths/".concat(Fe.identifier)},A.a.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:le.a.IMG_SERVER+"/"+Fe.image_url})))})),A.a.createElement("img",{className:ie.a.imgsrc,onClick:function(){localStorage.setItem("problemsclose",oe()().add(1,"days").unix()+""),ni(!1)},src:ft.a})),A.a.createElement("div",{className:ie.a.sort},A.a.createElement("div",{className:ie.a.rankHeader},A.a.createElement("img",{src:_e.a,className:ie.a.rankIcon})),!!(Ut!=null&&(Z=Ut.my_record)!==null&&Z!==void 0&&Z.rank)&&A.a.createElement("div",{className:"".concat(ie.a.myRecord," ").concat(ie.a.li)},A.a.createElement("span",{className:"".concat(ie.a.recordPrefix," ").concat(ie.a.mine)},"\u6211\u7684"),A.a.createElement("img",{className:ie.a.avatar,src:le.a.IMG_SERVER+"/images/"+(Ut==null||((se=Ut.my_record)===null||se===void 0)?void 0:se.image_url)}),A.a.createElement("span",{title:Ut==null||((Ee=Ut.my_record)===null||Ee===void 0)?void 0:Ee.nickname,className:ie.a.nickname},Ut==null||((De=Ut.my_record)===null||De===void 0)?void 0:De.nickname),A.a.createElement("span",{className:ie.a.myRank},(Ut==null||((Ke=Ut.my_record)===null||Ke===void 0)?void 0:Ke.rank)>999?"\u7B2C999+\u540D":"\u7B2C".concat(Ut==null||((ut=Ut.my_record)===null||ut===void 0)?void 0:ut.rank,"\u540D")),A.a.createElement("span",{className:ie.a.questionNumber},Ut==null||((ct=Ut.my_record)===null||ct===void 0)?void 0:ct.passed_count,"\u9898")),Ut==null||((Oe=Ut.rank_list)===null||Oe===void 0)?void 0:Oe.map(function(Fe,We){var Xe=We+1;return We===0&&(Xe=Ne.a),We===1&&(Xe=it.a),We===2&&(Xe=at.a),A.a.createElement("div",{className:ie.a.li,key:We},typeof Xe=="number"?A.a.createElement("span",{className:ie.a.recordPrefix},Xe):A.a.createElement("span",{className:ie.a.recordPrefix},A.a.createElement("img",{src:Xe})),A.a.createElement("img",{className:ie.a.avatar,src:le.a.IMG_SERVER+"/images/"+(Fe==null?void 0:Fe.image_url)}),A.a.createElement("span",{title:Fe==null?void 0:Fe.nickname,className:ie.a.nickname},Fe==null?void 0:Fe.nickname),A.a.createElement("span",{className:ie.a.questionNumber},Fe.passed_count,"\u9898"))}))))),A.a.createElement(y.a,{title:"\u5BA1\u6838\u8BB0\u5F55",visible:Ni,onOk:function(){},onCancel:function(){ui(!1)},footer:null,closable:!0},A.a.createElement(R.a,{dataSource:vi,columns:ji})),A.a.createElement(y.a,{title:"\u672A\u901A\u8FC7\u539F\u56E0",visible:Ri,onOk:function(){},onCancel:function(){gi(!1)},footer:null,closable:!0},A.a.createElement(K.a,{value:yn})),A.a.createElement(y.a,{visible:_i,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:function(){return Ci(!1)},cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:Object(f.a)(P.a.mark(function Fe(){return P.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:Ci(!1),nr();case 2:case"end":return Xe.stop()}},Fe)})),title:"\u67E5\u770B\u5DF2\u9009"},A.a.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",wn==null?void 0:wn.length,"\u4E2A"),A.a.createElement("div",{style:{height:400,overflow:"auto"}},G==null||((ot=G.filter(function(Fe){return wn.includes(Fe.identifier)}))===null||ot===void 0)?void 0:ot.map(function(Fe,We){var Xe,yt;return A.a.createElement("div",{key:We,className:ie.a.sendModal},A.a.createElement("div",{className:ie.a.li},A.a.createElement("p",null,Fe==null?void 0:Fe.name),A.a.createElement("div",{className:ie.a.bottom},A.a.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),A.a.createElement("i",{className:ie.a.line}),A.a.createElement("span",{className:"c-grey-333"},Fe.difficulty===1&&"\u7B80\u5355",Fe.difficulty===2&&"\u9002\u4E2D",Fe.difficulty===3&&"\u56F0\u96BE"),A.a.createElement("i",{className:ie.a.line}),A.a.createElement("span",null,"\u521B\u5EFA\u8005\xA0",A.a.createElement(M.a,{title:Fe==null?void 0:Fe.creator},A.a.createElement("span",{className:"c-grey-333"},(Fe==null||((Xe=Fe.creator)===null||Xe===void 0)?void 0:Xe.length)>6?(Fe==null||((yt=Fe.creator)===null||yt===void 0)?void 0:yt.substr(0,3))+"...":Fe==null?void 0:Fe.creator))),A.a.createElement("i",{className:ie.a.line}),A.a.createElement("span",{className:ie.a.des},"\u66F4\u65B0\xA0",A.a.createElement("span",{className:"c-grey-333"},Fe==null?void 0:Fe.updated_at)))),A.a.createElement("div",{className:ie.a.del,onClick:function(){Kn(wn.filter(function(It){return It!==Fe.identifier}))}},"\u5220\u9664"))}))))};ne.default=Object(D.a)(function(Ae){var ke=Ae.user,He=Ae.globalSetting;return{user:ke,globalSetting:He}})(ye)},yDOu:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABZlJREFUaEPtmd1rXNUah5/1tfdkkrSNMdWO+C0pp6mKYhURURRFvPFGiwj+A4p44Y30pngj5+ZcHET/AUGkeuONiKIoIqJVRO0UDdpzPAen2hhTm2Qye68vWdlOmYQ2M/2gYaQDw2K+f8/7/t53r/WOYMhvYsj1cxFgszN4MQN/mwzEGM8om0KIeD7gz+hH1//getEvvDBYU9i/nzXizwXmrAB6hXdFN3dV4mcOV2urtRam0ahEN3dV68zhau2FORuQMwI4nfAkurUDsXC0Er00j1hZXAswMk4cm6xET+wgNo4SE8y5ggwM0BXfG/Gu8P8fQibBUxOIzjKi2ILY2l4L8EedmJ8g1kaJcwvEBHTlbsLpQAbNxkAA68V/CHJ6B2JV+CRivIWsaWQxhmgfR47VEbZYC2By4lKbWN9GyJeIHUdYbBBG5iuQ2aPEeyH02moQiIEBegpUNkEmm4xpJAVqSSGlQ3UkMpNIbxG1HOFsBaENsVMQlSGWgVALhKDxY55Ajl9yhGSvmQrgJMR5AeiNfor8FMi5/yLHM6TYhpIlatGitnhUO6BkjvIeoQUy+ApAKqKLBKWIocDXJf6Ewo8bfMjw8Th+sSRMXUOYg5Ay0S3ufhB9M5AAUvRTl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